@clickview/library-editor 1.42.0 → 1.43.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/css/{4293-library-editor-f09d854115.chunk.css → 3778-library-editor-30b6f4a9e6.chunk.css} +2 -1
- package/dist/css/{8039-library-editor-bd2eb65aa8.chunk.css → 435-library-editor-1bf620364f.chunk.css} +12 -15
- package/dist/css/{61-library-editor-99f1501ab2.chunk.css → 61-library-editor-af56e745db.chunk.css} +5 -5
- package/dist/css/{3522-library-editor-caf03857f1.chunk.css → 7265-library-editor-8cd863992c.chunk.css} +0 -1
- package/dist/css/library-editor-app-e458f6f722.css +62 -0
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1010-15bfd0e2e2.chunk.js +1 -0
- package/dist/scripts/1086-18354eee73.chunk.js +1 -0
- package/dist/scripts/112-6a9fb5a3b4.chunk.js +1 -0
- package/dist/scripts/1216-3a338cf937.chunk.js +1 -0
- package/dist/scripts/1269-ebb70ecc87.chunk.js +1 -0
- package/dist/scripts/1409-3266733722.chunk.js +1 -0
- package/dist/scripts/1601-a7df278c88.chunk.js +2 -0
- package/dist/scripts/1703-9bf208d1af.chunk.js +1 -0
- package/dist/scripts/1832-819b1ccc4a.chunk.js +1 -0
- package/dist/scripts/1876-8a58bcc17f.chunk.js +1 -0
- package/dist/scripts/2417-38a64e3d12.chunk.js +1 -0
- package/dist/scripts/243-c7d2f16d38.chunk.js +1 -0
- package/dist/scripts/2482-2e771aa32e.chunk.js +1 -0
- package/dist/scripts/259-a9b4038b9f.chunk.js +1 -0
- package/dist/scripts/2601-19bbaf1796.chunk.js +1 -0
- package/dist/scripts/2644-e902b701ab.chunk.js +1 -0
- package/dist/scripts/2692-72f0ddadb4.chunk.js +1 -0
- package/dist/scripts/2803-d7f348b7f5.chunk.js +1 -0
- package/dist/scripts/2888-808acc2fef.chunk.js +1 -0
- package/dist/scripts/299-b7a814c887.chunk.js +1 -0
- package/dist/scripts/2998-a78cff549d.chunk.js +1 -0
- package/dist/scripts/{3087-bd524a57f9.chunk.js → 3087-5568b6f0d8.chunk.js} +1 -1
- package/dist/scripts/3400-2e845c4564.chunk.js +1 -0
- package/dist/scripts/343-a0c8fb4f28.chunk.js +1 -0
- package/dist/scripts/35-d8f006c39a.chunk.js +1 -0
- package/dist/scripts/3551-ccced9a938.chunk.js +1 -0
- package/dist/scripts/3639-bf6b264ec9.chunk.js +1 -0
- package/dist/scripts/376-843259f6ce.chunk.js +1 -0
- package/dist/scripts/3763-408ce1508a.chunk.js +1 -0
- package/dist/scripts/3778-95c9be3a02.chunk.js +1 -0
- package/dist/scripts/4201-30387c4a99.chunk.js +1 -0
- package/dist/scripts/4245-d60147b7d2.chunk.js +1 -0
- package/dist/scripts/435-72cf20b42f.chunk.js +2 -0
- package/dist/scripts/4591-e149bc74c4.chunk.js +1 -0
- package/dist/scripts/4860-0d9f4a4d0b.chunk.js +1 -0
- package/dist/scripts/5046-6c4ba66b08.chunk.js +1 -0
- package/dist/scripts/514-c6a928c7c4.chunk.js +1 -0
- package/dist/scripts/5286-6642fe4afa.chunk.js +1 -0
- package/dist/scripts/5412-c8877fa040.chunk.js +1 -0
- package/dist/scripts/5418-c3e6433e3e.chunk.js +1 -0
- package/dist/scripts/5424-66a285070b.chunk.js +1 -0
- package/dist/scripts/546-5322ba9438.chunk.js +1 -0
- package/dist/scripts/5524-e3ae3829ab.chunk.js +1 -0
- package/dist/scripts/5707-5afc9794d4.chunk.js +1 -0
- package/dist/scripts/5747-b29b11ef8c.chunk.js +1 -0
- package/dist/scripts/6093-defd3e7edf.chunk.js +1 -0
- package/dist/scripts/61-7ac06b86f9.chunk.js +2 -0
- package/dist/scripts/6352-b25f71e62c.chunk.js +1 -0
- package/dist/scripts/6427-9dd141a8c6.chunk.js +1 -0
- package/dist/scripts/6732-33c1578a4a.chunk.js +1 -0
- package/dist/scripts/6774-5ec2037d61.chunk.js +1 -0
- package/dist/scripts/6788-fabfcf71cf.chunk.js +1 -0
- package/dist/scripts/7002-5f00527776.chunk.js +1 -0
- package/dist/scripts/7053-811d21804f.chunk.js +1 -0
- package/dist/scripts/7071-c547b68bba.chunk.js +1 -0
- package/dist/scripts/708-b92e9adddd.chunk.js +1 -0
- package/dist/scripts/{7190-92d6511c8e.chunk.js → 7190-62556429f8.chunk.js} +1 -1
- package/dist/scripts/7265-471f7cafa6.chunk.js +1 -0
- package/dist/scripts/7295-bdea5df4cc.chunk.js +1 -0
- package/dist/scripts/7376-2a91178587.chunk.js +1 -0
- package/dist/scripts/7408-78e0102457.chunk.js +1 -0
- package/dist/scripts/8113-133ecdfe0c.chunk.js +1 -0
- package/dist/scripts/8213-400f1712b3.chunk.js +1 -0
- package/dist/scripts/8362-b11e7dbcbd.chunk.js +1 -0
- package/dist/scripts/8542-48fd3a46e3.chunk.js +1 -0
- package/dist/scripts/8726-8f24d59af7.chunk.js +1 -0
- package/dist/scripts/8727-7cfc7188db.chunk.js +1 -0
- package/dist/scripts/8762-ded7396830.chunk.js +1 -0
- package/dist/scripts/8906-327640bf39.chunk.js +1 -0
- package/dist/scripts/9357-35c3761c84.chunk.js +1 -0
- package/dist/scripts/9383-c630c62e24.chunk.js +1 -0
- package/dist/scripts/9695-0cf4f10b51.chunk.js +1 -0
- package/dist/scripts/9927-8e56991c93.chunk.js +1 -0
- package/dist/scripts/bundle-e0a102cb5a.min.js +2 -0
- package/package.json +1 -1
- package/dist/css/library-editor-app-bca55a2b94.css +0 -66
- package/dist/scripts/1010-ccfc933e4a.chunk.js +0 -1
- package/dist/scripts/1086-d0524e6814.chunk.js +0 -1
- package/dist/scripts/112-f7a1dd87cf.chunk.js +0 -1
- package/dist/scripts/1216-ae44942ec0.chunk.js +0 -1
- package/dist/scripts/1269-65eb334e36.chunk.js +0 -1
- package/dist/scripts/1409-24f32108a3.chunk.js +0 -1
- package/dist/scripts/1492-e47c20e1e2.chunk.js +0 -1
- package/dist/scripts/1601-92aebf3641.chunk.js +0 -2
- package/dist/scripts/1703-9b90fdd089.chunk.js +0 -1
- package/dist/scripts/1832-11d2e90817.chunk.js +0 -1
- package/dist/scripts/1876-ee2e5930fe.chunk.js +0 -1
- package/dist/scripts/2417-dd7416caad.chunk.js +0 -1
- package/dist/scripts/243-90478a752f.chunk.js +0 -1
- package/dist/scripts/2482-a2940d20c1.chunk.js +0 -1
- package/dist/scripts/259-1ccff765e8.chunk.js +0 -1
- package/dist/scripts/2601-09e770d106.chunk.js +0 -1
- package/dist/scripts/2644-3b5cc8face.chunk.js +0 -1
- package/dist/scripts/2692-78248cc3cf.chunk.js +0 -1
- package/dist/scripts/2803-afaa9720a7.chunk.js +0 -1
- package/dist/scripts/2888-56333db4d4.chunk.js +0 -1
- package/dist/scripts/299-952bef0d6e.chunk.js +0 -1
- package/dist/scripts/2998-89c62035d5.chunk.js +0 -1
- package/dist/scripts/3400-04972a9c4f.chunk.js +0 -1
- package/dist/scripts/343-499357ee34.chunk.js +0 -1
- package/dist/scripts/35-8bd662588e.chunk.js +0 -1
- package/dist/scripts/3522-9cb18ea94f.chunk.js +0 -1
- package/dist/scripts/3551-c8c601ef86.chunk.js +0 -1
- package/dist/scripts/3639-72a0aedfdb.chunk.js +0 -1
- package/dist/scripts/376-1c990f4466.chunk.js +0 -1
- package/dist/scripts/3763-0d33be2a48.chunk.js +0 -1
- package/dist/scripts/4201-b83136ee20.chunk.js +0 -1
- package/dist/scripts/4245-16fa79a2c7.chunk.js +0 -1
- package/dist/scripts/4293-e13603d9b4.chunk.js +0 -1
- package/dist/scripts/4591-3e56779cc0.chunk.js +0 -1
- package/dist/scripts/4860-ecd0f16f32.chunk.js +0 -1
- package/dist/scripts/5046-8994ca4e32.chunk.js +0 -1
- package/dist/scripts/514-b2ab55e242.chunk.js +0 -1
- package/dist/scripts/5286-07efed4490.chunk.js +0 -1
- package/dist/scripts/5412-890acc67f9.chunk.js +0 -1
- package/dist/scripts/5418-5bacba1f08.chunk.js +0 -1
- package/dist/scripts/5424-f73cc69163.chunk.js +0 -1
- package/dist/scripts/546-c73c102502.chunk.js +0 -1
- package/dist/scripts/5524-9c37501175.chunk.js +0 -1
- package/dist/scripts/5707-dfab80e46e.chunk.js +0 -1
- package/dist/scripts/5747-c929092195.chunk.js +0 -1
- package/dist/scripts/6093-fb397173d3.chunk.js +0 -1
- package/dist/scripts/61-feb49f1354.chunk.js +0 -2
- package/dist/scripts/6352-5b8474151f.chunk.js +0 -1
- package/dist/scripts/6732-f57737a0b7.chunk.js +0 -1
- package/dist/scripts/6774-1459396196.chunk.js +0 -1
- package/dist/scripts/6788-18b20f336f.chunk.js +0 -1
- package/dist/scripts/7002-07547e2a6a.chunk.js +0 -1
- package/dist/scripts/7053-b4a29a5e49.chunk.js +0 -1
- package/dist/scripts/7071-d64fe020b9.chunk.js +0 -1
- package/dist/scripts/708-057b85292d.chunk.js +0 -1
- package/dist/scripts/7376-c7d547d8ad.chunk.js +0 -1
- package/dist/scripts/7408-7a37d26507.chunk.js +0 -1
- package/dist/scripts/8039-0ff5939ce0.chunk.js +0 -2
- package/dist/scripts/8113-af6da90997.chunk.js +0 -1
- package/dist/scripts/8213-298d64a86f.chunk.js +0 -1
- package/dist/scripts/8316-57718b3e30.chunk.js +0 -1
- package/dist/scripts/8362-dd89d446bd.chunk.js +0 -1
- package/dist/scripts/8542-35d1c3890f.chunk.js +0 -1
- package/dist/scripts/8726-3072ba6953.chunk.js +0 -1
- package/dist/scripts/8727-9a9ffc31ba.chunk.js +0 -1
- package/dist/scripts/8762-7f056bd5d9.chunk.js +0 -1
- package/dist/scripts/8906-2bc258c89c.chunk.js +0 -1
- package/dist/scripts/9357-3c5497422c.chunk.js +0 -1
- package/dist/scripts/9383-53ec8e93e0.chunk.js +0 -1
- package/dist/scripts/9695-6f0d09d3b3.chunk.js +0 -1
- package/dist/scripts/9927-c23126c5dd.chunk.js +0 -1
- package/dist/scripts/bundle-8e5edc2a41.min.js +0 -2
- /package/dist/css/{1492-library-editor-a539c72655.chunk.css → 7295-library-editor-a539c72655.chunk.css} +0 -0
- /package/dist/scripts/{1601-92aebf3641.chunk.js.LICENSE.txt → 1601-a7df278c88.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{61-feb49f1354.chunk.js.LICENSE.txt → 435-72cf20b42f.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8039-0ff5939ce0.chunk.js.LICENSE.txt → 61-7ac06b86f9.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-8e5edc2a41.min.js.LICENSE.txt → bundle-e0a102cb5a.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[35],{47022:function(e,t,n){"use strict";n.d(t,{Q:function(){return v}});var o=n(39479),r=n(31647),i=n(52076),l=n(70065),u=n(99186),c=n.n(u);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}function y(e,t,n){return t=d(t),function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}var v=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),y(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,(r=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var t=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous,!0);+t<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,e[".previous-applink"]=n}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(e,t){var n=this.options.appLink.params;return t?(null==n?void 0:n.previous)?{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:{cursor:null==n?void 0:n.previous}}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,s(s({},this.options.cursorParamName,e),"previous",n.cursor))}}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var t=i.k.mergeOptions(this.options.analyticsOptions,{location:l.LZ.Pagination,entity:l.py.Pagination,actionType:l.Vw.Navigate}),n={id:this.options.collectionId,page:e};i.k.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},8614:function(e,t,n){"use strict";n.d(t,{fH:function(){return Se},$V:function(){return ye},wY:function(){return rt},b_:function(){return Le},SV:function(){return ze},b5:function(){return ie}});var o=n(48088),r=n(31647),i=n(52076),l=n(70065),u=n(57098),c=n(29457),a=n(7170),s=n(57857),p=n(99249),f=n(30644),y=n(21769),h=n(5344),d=n(11060),b=n.n(d);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,g(o.key),o)}}function g(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}function w(e,t,n){return t=O(t),function(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,k()?Reflect.construct(t,n||[],O(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}var S=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),w(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"FilterItemComponent"}},{key:"template",get:function(){return b()}},{key:"className",get:function(){return"py-1"}},{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderOptions",value:function(){this.showChildView("options",new Le({collection:this.model.options,model:this.model,channelName:this.options.channelName}))}},{key:"onRender",value:function(){this.renderOptions()}}])&&m(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(r.Q.wA),P=n(65882),C=n.n(P);function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,R(o.key),o)}}function _(e,t,n){return t&&F(e.prototype,t),n&&F(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function R(e){var t=function(e,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=T(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==T(t)?t:t+""}function x(e,t,n){return t=L(t),function(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,N()?Reflect.construct(t,n||[],L(e).constructor):t.apply(e,n))}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(N=function(){return!!e})()}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function I(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}function V(e,t){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},V(e,t)}var D=function(e){function t(e){return E(this,t),x(this,t,[e])}return I(t,e),_(t,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterListComponent"}},{key:"template",get:function(){return C()}},{key:"lang",get:function(){return"search.filterList"}},{key:"className",get:function(){return"px-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick","click .apply-filters":"onClickApplyFilters","click .clear-filters":"onClickClearFilters"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,u.Vy.Filters.OPTION_SELECTED,this.render)}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickApplyFilters",value:function(e){e.stopPropagation(),this.applyFilters(),this.render()}},{key:"onClickClearFilters",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger("reset:filters"),h.qr.clearFilters(this.collection),this.isTagFilterType()&&o.Radio.channel(y.I.TagFilter).trigger("change:relevant:tags"),this.render()}},{key:"applyFilters",value:function(){o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.APPLY_FILTER)}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return h.qr.isSelected(e)}))}},{key:"isTagFilterType",value:function(){return!!this.collection.findWhere({type:f.K.Tags})}},{key:"viewOptions",value:function(){return{showApplyFilters:!this.isTagFilterType(),showClearFilters:this.hasFiltersSelected()}}},{key:"onRender",value:function(){this.showChildView("filterList",new A({collection:this.collection,channelName:this.channelName}))}}])}(r.Q.wA),A=function(e){function t(e){return E(this,t),x(this,t,[e])}return I(t,e),_(t,[{key:"name",get:function(){return"FilterComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"m-0 p-0"}},{key:"childView",get:function(){return S}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}])}(r.Q.$W),B={label:"PxEgY",filterButton:"CCepL",dropdownMenu:"tqkX2"},M=n(42007),q=n.n(M);function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}function H(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,U(o.key),o)}}function U(e){var t=function(e,t){if("object"!=Q(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=Q(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Q(t)?t:t+""}function W(e,t,n){return t=z(t),function(e,t){if(t&&("object"===Q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$()?Reflect.construct(t,n||[],z(e).constructor):t.apply(e,n))}function $(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($=function(){return!!e})()}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}var Y=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),W(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilters(),this.bindListeners()}},{key:"name",get:function(){return"MoreFiltersButtonComponent"}},{key:"template",get:function(){return q()}},{key:"lang",get:function(){return"search.moreFiltersButton"}},{key:"className",get:function(){return"rounded cursor-pointer ".concat("axS5I")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return this.name}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}},{key:"regions",value:function(){return{filters:{el:".filters-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=p.r.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,u.Vy.Filters.APPLY_FILTER,this.onClickApplyFilters),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilters",value:function(){this.initialFilters=new a.y(this.collection.toJSON())}},{key:"onClickApplyFilters",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilters(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilters",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.haveFiltersChanged()&&(this.logFilterApplyAction(e),this.setInitialFilters(),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.FILTER_CHANGED),this.render())}},{key:"haveFiltersChanged",value:function(){var e=this;return!this.collection.every((function(t,n){return!h.qr.hasFilterChanged(e.initialFilters.at(n),t)}))}},{key:"isSelected",value:function(){return this.collection.some((function(e){return h.qr.isSelected(e)}))}},{key:"numSelectedFilters",value:function(){return this.collection.filter((function(e){return h.qr.isSelected(e)})).length}},{key:"getLabel",value:function(){var e=s.T.getPhrase(this.lang,"moreFilters"),t=this.numSelectedFilters();return t&&(e+=" - ".concat(t)),e}},{key:"getButtonClass",value:function(){var e="btn ".concat(B.filterButton);return this.isSelected()?e+=" btn-dark":e+=" btn-outline-dark",e}},{key:"logFilterApplyAction",value:function(e){var t=this;this.collection.each((function(n,o){h.qr.hasFilterChanged(t.initialFilters.at(o),n)&&t.logFilter(n,e)}))}},{key:"logFilter",value:function(e,t){var n={location:l.LZ.SearchFilters,actionType:l.Vw.Filter,entity:l.py.Video,workflowPhase:l.eu.Complete},o={type:e.get("title"),value:h.qr.getFilterSelectedOptionsAnalyticsData(e),applyClicked:t};i.k.logUserAction(o,n)}},{key:"logFilterResetAction",value:function(){var e={location:l.LZ.SearchFilters,actionType:l.Vw.Filter,descriptor:l.OR.Reset,entity:l.py.Video,workflowPhase:l.eu.Complete};i.k.logUserAction({type:"More Filters"},e)}},{key:"viewOptions",value:function(){return{label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilters",value:function(){this.showChildView("filters",new D({collection:this.collection,channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilters(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}}],r&&H(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),Z=n(92689),G=n.n(Z);function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function X(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ee(o.key),o)}}function ee(e){var t=function(e,t){if("object"!=J(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=J(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==J(t)?t:t+""}function te(e,t,n){return t=oe(t),function(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ne()?Reflect.construct(t,n||[],oe(e).constructor):t.apply(e,n))}function ne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ne=function(){return!!e})()}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}function re(e,t){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},re(e,t)}var ie=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),te(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&re(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"FiltersComponent"}},{key:"template",get:function(){return G()}},{key:"lang",get:function(){return"search.filters"}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceRegion:!0,partialLoading:c.LP.SearchFilter},moreFilters:{el:".more-filters-region",replaceRegion:!0}}}},{key:"events",value:function(){return{"click .clear-filters":"onClickClearFilters"}}},{key:"onClickClearFilters",value:function(){h.qr.clearFilters(this.collection),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.FILTER_CHANGED),this.logFilterResetAction()}},{key:"getVisibleFilters",value:function(){return new a.y(this.collection.filter((function(e){return!e.get("showInMoreFilters")&&h.qr.showFilter(e)})))}},{key:"getMoreFilters",value:function(){return new a.y(this.collection.filter((function(e){return e.get("showInMoreFilters")&&h.qr.showFilter(e)})))}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return h.qr.isSelected(e)}))}},{key:"logFilterResetAction",value:function(){var e={location:l.LZ.SearchFilters,actionType:l.Vw.Filter,descriptor:l.OR.Reset,entity:l.py.Video,workflowPhase:l.eu.Complete};i.k.logUserAction({type:"All",active:!1},e)}},{key:"renderFilterList",value:function(){var e=new ye({collection:this.getVisibleFilters(),channelName:this.options.channelName});this.showChildView("filterList",e)}},{key:"renderMoreFilters",value:function(){var e=new Y({collection:this.getMoreFilters(),channelName:this.options.channelName});this.showChildView("moreFilters",e)}},{key:"viewOptions",value:function(){return{labelClass:B.label,hasFiltersSelected:this.collection&&this.hasFiltersSelected(),clearFiltersClass:B.clearFilters}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderFilterList(),this.renderMoreFilters()}}])&&X(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA);function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}function ue(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ce(o.key),o)}}function ce(e){var t=function(e,t){if("object"!=le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=le(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==le(t)?t:t+""}function ae(e,t,n){return t=pe(t),function(e,t){if(t&&("object"===le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,se()?Reflect.construct(t,n||[],pe(e).constructor):t.apply(e,n))}function se(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(se=function(){return!!e})()}function pe(e){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pe(e)}function fe(e,t){return fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fe(e,t)}var ye=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ae(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fe(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"FilterListComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"d-flex gap-2 me-1 mt-1 ps-0"}},{key:"childView",get:function(){return Se}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,analyticsOptions:{location:l.LZ.SearchFilters,entity:l.py.Video}}}}])&&ue(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(r.Q.$W),he=n(44937),de=n(91776),be=n.n(de);function ve(e){return ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ve(e)}function me(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ge(o.key),o)}}function ge(e){var t=function(e,t){if("object"!=ve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=ve(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ve(t)?t:t+""}function we(e,t,n){return t=Oe(t),function(e,t){if(t&&("object"===ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ke()?Reflect.construct(t,n||[],Oe(e).constructor):t.apply(e,n))}function ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ke=function(){return!!e})()}function Oe(e){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oe(e)}function je(e,t){return je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},je(e,t)}var Se=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),we(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&je(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilter(),this.bindListeners()}},{key:"name",get:function(){return"FilterButtonItemComponent"}},{key:"template",get:function(){return be()}},{key:"className",get:function(){return"d-inline-block"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.model.get("type"))}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}},{key:"regions",value:function(){return{filter:{el:".filter-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=p.r.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,u.Vy.Filters.APPLY_FILTER,this.onClickApplyFilter),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilter",value:function(){this.initialFilter=new he.wn(this.model.toJSON())}},{key:"onClickApplyFilter",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilter(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilter",value:function(e){h.qr.hasFilterChanged(this.initialFilter,this.model)&&this.model.get("type")!==f.K.Tags&&(this.setInitialFilter(),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.FILTER_CHANGED),this.logFilterApplyAction(e))}},{key:"getLabel",value:function(){return h.qr.isSelected(this.model)?h.qr.getFilterLabel(this.model):this.model.get("title")}},{key:"getButtonClass",value:function(){var e="btn ".concat(B.filterButton);return h.qr.isSelected(this.model)?e+=" btn-dark":e+=" btn-outline-dark",e}},{key:"logFilterApplyAction",value:function(e){var t=i.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Filter,workflowPhase:l.eu.Complete}),n={type:this.model.get("title"),value:h.qr.getFilterSelectedOptionsAnalyticsData(this.model),applyClicked:e};i.k.logUserAction(n,t)}},{key:"logFilterResetAction",value:function(){var e=i.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Filter,descriptor:l.OR.Reset,workflowPhase:l.eu.Complete}),t={type:this.model.get("title")};i.k.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:B,label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilter",value:function(){this.showChildView("filter",new D({collection:new a.y([this.model]),channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilter(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}}])&&me(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),Pe=n(81637),Ce=n.n(Pe);function Te(e){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(e)}function Ee(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Fe(o.key),o)}}function Fe(e){var t=function(e,t){if("object"!=Te(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=Te(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Te(t)?t:t+""}function _e(e,t,n){return t=xe(t),function(e,t){if(t&&("object"===Te(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Re()?Reflect.construct(t,n||[],xe(e).constructor):t.apply(e,n))}function Re(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Re=function(){return!!e})()}function xe(e){return xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xe(e)}function Ne(e,t){return Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ne(e,t)}var Le=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_e(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ne(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterOptionsComponent"}},{key:"template",get:function(){return Ce()}},{key:"className",get:function(){return"py-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{optionsList:".option-list-region"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,u.Vy.Filters.OPTION_SELECTED,this.onChangeOption)}},{key:"onChangeOption",value:function(e,t){e&&this.isInclusiveType()&&this.onChangeInclusiveOption(e),e&&this.isExclusiveType()&&this.onChangeExclusiveOption(e),e&&this.isRangeType()&&this.onChangeRangeOption(e),e&&this.isTagType()&&this.onChangeTagOption(e),t||(o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.OPTION_SELECTED),this.render())}},{key:"onChangeInclusiveOption",value:function(e){e.set("active",!e.get("active"))}},{key:"onChangeExclusiveOption",value:function(e){h.qr.clearOptions(this.model),e.set("active",!0)}},{key:"onChangeRangeOption",value:function(e){h.qr.clearOptions(this.model),this.collection.each((function(t){t.get("value")<=e.get("value")&&t.set("active",!0)}))}},{key:"onChangeTagOption",value:function(e){var t=this.collection.findWhere({name:e.get("name")});t.set("active",!t.get("active"))}},{key:"isBooleanType",value:function(){return this.model.get("behavior")===h.xF.Boolean}},{key:"isInclusiveType",value:function(){return this.model.get("behavior")===h.xF.Inclusive}},{key:"isExclusiveType",value:function(){return this.model.get("behavior")===h.xF.Exclusive}},{key:"isRangeType",value:function(){return this.model.get("behavior")===h.xF.Range}},{key:"isTagType",value:function(){return this.model.get("behavior")===h.xF.Tag}},{key:"getChildComponent",value:function(){return this.model.get("type")===f.K.Duration?Qt:this.isTagType()?yn:this.isRangeType()?Tt:this.isBooleanType()?ht:ze}},{key:"renderOptionsList",value:function(){this.showChildView("optionsList",new(this.getChildComponent())({collection:this.collection,model:this.model,channelName:this.channelName,isExclusiveType:this.isExclusiveType()}))}},{key:"onRender",value:function(){this.renderOptionsList()}}])&&Ee(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),Ie=n(91713),Ve=n.n(Ie);function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Be(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,qe(o.key),o)}}function Me(e,t,n){return t&&Be(e.prototype,t),n&&Be(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qe(e){var t=function(e,t){if("object"!=De(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=De(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==De(t)?t:t+""}function Qe(e,t,n){return t=Ue(t),function(e,t){if(t&&("object"===De(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,He()?Reflect.construct(t,n||[],Ue(e).constructor):t.apply(e,n))}function He(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(He=function(){return!!e})()}function Ue(e){return Ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ue(e)}function We(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$e(e,t)}function $e(e,t){return $e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$e(e,t)}var ze=function(e){function t(e){return Ae(this,t),Qe(this,t,[e])}return We(t,e),Me(t,[{key:"name",get:function(){return"FilterOptionsListComponent"}},{key:"template",get:function(){return Ve()}},{key:"regions",value:function(){return{options:".options-region"}}},{key:"events",value:function(){return{"click .default-option":"onClickDefaultOption"}}},{key:"onClickDefaultOption",value:function(e){e.stopPropagation(),this.model.get("behavior")===h.xF.Inclusive?h.qr.selectAllOptions(this.model):h.qr.clearOptions(this.model),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.OPTION_SELECTED),this.render()}},{key:"defaultOptionSelected",value:function(){return this.model.get("behavior")===h.xF.Inclusive?h.qr.allOptionsSelected(this.model):!h.qr.hasOptionSelected(this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType(),defaultOptionSelected:this.defaultOptionSelected(),defaultOptionLabel:this.model.get("defaultOptionLabel")}}},{key:"renderOptions",value:function(){this.showChildView("options",new Ke({collection:this.collection,childOptions:{channelName:this.options.channelName,isExclusiveType:this.options.isExclusiveType}}))}},{key:"onRender",value:function(){this.renderOptions()}}])}(r.Q.wA),Ke=function(e){function t(e){return Ae(this,t),Qe(this,t,[e])}return We(t,e),Me(t,[{key:"name",get:function(){return"FilterOptionComponentCollection"}},{key:"childView",get:function(){return rt}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])}(r.Q.$W),Ye=n(72673),Ze=n.n(Ye);function Ge(e){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(e)}function Je(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Xe(o.key),o)}}function Xe(e){var t=function(e,t){if("object"!=Ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=Ge(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ge(t)?t:t+""}function et(e,t,n){return t=nt(t),function(e,t){if(t&&("object"===Ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,tt()?Reflect.construct(t,n||[],nt(e).constructor):t.apply(e,n))}function tt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tt=function(){return!!e})()}function nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nt(e)}function ot(e,t){return ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ot(e,t)}var rt=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),et(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ot(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterOptionItemComponent"}},{key:"template",get:function(){return Ze()}},{key:"className",get:function(){return"filter-option-item py-1 cursor-pointer"}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.render)}},{key:"onClick",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.OPTION_SELECTED,this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType()}}}])&&Je(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),it=n(18818),lt=n.n(it);function ut(e){return ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ut(e)}function ct(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,at(o.key),o)}}function at(e){var t=function(e,t){if("object"!=ut(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=ut(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ut(t)?t:t+""}function st(e,t,n){return t=ft(t),function(e,t){if(t&&("object"===ut(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pt()?Reflect.construct(t,n||[],ft(e).constructor):t.apply(e,n))}function pt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pt=function(){return!!e})()}function ft(e){return ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ft(e)}function yt(e,t){return yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yt(e,t)}var ht=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),st(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yt(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"BoolFilterOptionComponent"}},{key:"template",get:function(){return lt()}},{key:"events",value:function(){return{"click .toggle-option":"onClickToggleOption"}}},{key:"onClickToggleOption",value:function(e){e.stopPropagation(),this.model.set("active",!this.model.get("active")),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.OPTION_SELECTED),this.render()}},{key:"viewOptions",value:function(){return{isSelected:this.model.get("active")}}}])&&ct(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),dt=n(62568),bt=n.n(dt);function vt(e){return vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vt(e)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,kt(o.key),o)}}function wt(e,t,n){return t&>(e.prototype,t),n&>(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kt(e){var t=function(e,t){if("object"!=vt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=vt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vt(t)?t:t+""}function Ot(e,t,n){return t=St(t),function(e,t){if(t&&("object"===vt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jt()?Reflect.construct(t,n||[],St(e).constructor):t.apply(e,n))}function jt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jt=function(){return!!e})()}function St(e){return St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},St(e)}function Pt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ct(e,t)}function Ct(e,t){return Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ct(e,t)}var Tt=function(e){function t(){return mt(this,t),Ot(this,t,arguments)}return Pt(t,e),wt(t,[{key:"name",get:function(){return"RatingFilterOptionComponentCollection"}},{key:"className",get:function(){return"btn-group ".concat("U9MEr"," my-2")}},{key:"attributes",get:function(){return{role:"group"}}},{key:"childView",get:function(){return Et}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}])}(r.Q.$W),Et=function(e){function t(){return mt(this,t),Ot(this,t,arguments)}return Pt(t,e),wt(t,[{key:"name",get:function(){return"RatingFilterOptionItemComponent"}},{key:"template",get:function(){return bt()}},{key:"tagName",get:function(){return"button"}},{key:"className",get:function(){var e="".concat("zSUig"," border btn btn-");return this.isSelected()?"".concat(e,"dark"):"".concat(e,"outline-dark")}},{key:"attributes",get:function(){return{type:"button",title:this.model.get("fullName")}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"onRender",value:function(){this.$el.tooltip()}},{key:"onBeforeDestroy",value:function(){this.$el.tooltip("dispose")}}])}(r.Q.wA),Ft=n(16869),_t=n.n(Ft),Rt={optionItem:"EM99Q",customOptionItem:"aEaSA",selected:"i4EVL"};function xt(e){return xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xt(e)}function Nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Vt(o.key),o)}}function It(e,t,n){return t&&Lt(e.prototype,t),n&&Lt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vt(e){var t=function(e,t){if("object"!=xt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=xt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xt(t)?t:t+""}function Dt(e,t,n){return t=Bt(t),function(e,t){if(t&&("object"===xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,At()?Reflect.construct(t,n||[],Bt(e).constructor):t.apply(e,n))}function At(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(At=function(){return!!e})()}function Bt(e){return Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bt(e)}function Mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qt(e,t)}function qt(e,t){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qt(e,t)}var Qt=function(e){function t(){return Nt(this,t),Dt(this,t,arguments)}return Mt(t,e),It(t,[{key:"name",get:function(){return"DurationFilterOptionComponentCollection"}},{key:"childView",get:function(){return Ht}},{key:"className",get:function(){return Rt.options}},{key:"getOptionItemClassName",value:function(){var e=Rt.optionItem;return 4===this.collection.length&&(e+=" ".concat(Rt.customOptionItem)),e}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,optionItemClassName:this.getOptionItemClassName()}}}])}(r.Q.$W),Ht=function(e){function t(e){return Nt(this,t),Dt(this,t,[e])}return Mt(t,e),It(t,[{key:"name",get:function(){return"DurationFilterItemComponent"}},{key:"template",get:function(){return _t()}},{key:"className",get:function(){return"d-inline-block p-1 ".concat(this.options.optionItemClassName)}},{key:"events",value:function(){return{"click .option-btn":"onClickOption"}}},{key:"viewOptions",value:function(){return{buttonClass:this.getButtonClass()}}},{key:"onClickOption",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"getButtonClass",value:function(){var e="btn ".concat(Rt.optionButton," p-1");return this.isSelected()?e+=" btn-dark":e+=" btn-outline-dark",e}}])}(r.Q.wA),Ut=n(39479),Wt=n(26457),$t=n(21626),zt=n.n($t),Kt=n(44391),Yt=n(9586),Zt=n.n(Yt);function Gt(e){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(e)}function Jt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Xt(o.key),o)}}function Xt(e){var t=function(e,t){if("object"!=Gt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=Gt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gt(t)?t:t+""}function en(e,t,n){return t=nn(t),function(e,t){if(t&&("object"===Gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,tn()?Reflect.construct(t,n||[],nn(e).constructor):t.apply(e,n))}function tn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tn=function(){return!!e})()}function nn(e){return nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nn(e)}function on(e,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},on(e,t)}var rn=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),en(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&on(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"TagFilterOptionsListComponent"}},{key:"template",get:function(){return Zt()}},{key:"regions",value:function(){return{tags:{el:".tags-region",replaceElement:!0,partialLoading:c.LP.TagFilter}}}},{key:"onBeforeRender",value:function(){return!Ut.isNull(this.collection)}},{key:"onRender",value:function(){this.showChildView("tags",new Kt.K({collection:this.collection,channelName:this.options.channelName,behavior:this.options.behavior,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}))}}])&&Jt(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(r.Q.wA);function ln(e){return ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ln(e)}function un(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,cn(o.key),o)}}function cn(e){var t=function(e,t){if("object"!=ln(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=ln(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ln(t)?t:t+""}function an(e,t,n){return t=pn(t),function(e,t){if(t&&("object"===ln(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,sn()?Reflect.construct(t,n||[],pn(e).constructor):t.apply(e,n))}function sn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sn=function(){return!!e})()}function pn(e){return pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pn(e)}function fn(e,t){return fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fn(e,t)}var yn=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),an(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fn(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.bindListeners(),this.setRelevantTags()}},{key:"name",get:function(){return"TagFilterOptionsComponent"}},{key:"template",get:function(){return zt()}},{key:"lang",get:function(){return"search.tagFilterOptions"}},{key:"className",get:function(){return"".concat("bBNF3")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{selectedTags:{el:".selected-tags-region",replaceElement:!0},relevantTags:{el:".relevant-tags-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"on:option:change",this.onChange)}},{key:"onChange",value:function(e){o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.OPTION_SELECTED,e,!0),o.Radio.channel(y.I.TagFilter).trigger("change:relevant:tags"),this.relevantTags=null,this.render()}},{key:"setRelevantTags",value:function(){var e=h.qr.getSelectedOptions(this.collection).map((function(e){return e.get("id")}));this.collection.length!==e.length?this.relevantTags=new a.q(this.collection.filter((function(t){return!Ut.contains(e,t.get("id"))})).slice(0,5)):this.relevantTags=null}},{key:"hasSelectedTags",value:function(){var e=h.qr.getSelectedOptions(this.collection);return e&&!!e.length}},{key:"hasRelevantTags",value:function(){return Ut.isNull(this.relevantTags)||this.relevantTags&&!!this.relevantTags.length}},{key:"renderSelectedTags",value:function(){if(this.hasSelectedTags()){var e=h.qr.getSelectedOptions(this.collection);this.showChildView("selectedTags",new rn({collection:e,channelName:this.channelName,behavior:Wt.Dm.Filter,removeEvent:"on:option:change"}))}}},{key:"renderRelevantTags",value:function(){this.showChildView("relevantTags",new rn({collection:this.relevantTags,channelName:this.channelName,behavior:Wt.Dm.Filter,clickEvent:"on:option:change"}))}},{key:"viewOptions",value:function(){return{showEmptyState:!this.hasSelectedTags()&&!this.hasRelevantTags(),useDivider:this.hasSelectedTags()&&this.hasRelevantTags()}}},{key:"onRender",value:function(){this.renderSelectedTags(),this.renderRelevantTags()}}])&&un(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},21769:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var o={TagFilter:"tag:filter"}},80867:function(e,t,n){"use strict";n.d(t,{Y:function(){return T}});var o=n(31647),r=n(52076),i=n(70065),l=n(50028),u=n(80758),c=n(10101),a=n(58688),s=n(37071),p=n(57098),f=n(29457),y=n(26457),h=n(30606),d=n.n(h);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,w(o.key),o)}}function g(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function w(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}function k(e,t,n){return t=j(t),function(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,O()?Reflect.construct(t,n||[],j(e).constructor):t.apply(e,n))}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O=function(){return!!e})()}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}var C=function(e){function t(e){return v(this,t),k(this,t,[e])}return S(t,e),g(t,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return s.j}},{key:"childViewOptions",get:function(){var e=this;return function(t,n){return{componentType:t.get("status")===l.X.Processing?a.U.ProcessingVideo:e.options.videoItemComponentType,videoWithMetadata:e.options.videosWithMetadata&&e.options.videosWithMetadata.get(t.get("id")),allowBulk:e.options.allowBulk,collectionIdentifier:e.options.collectionIdentifier,application:e.options.application,pendingItems:e.options.pendingItems,config:e.options.config,sourceMetadataOptions:e.options.sourceMetadataOptions,collectionViewChannel:e.options.collectionViewChannel,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,videoCollectionSource:e.options.videoCollectionSource,currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey,isLastItem:!e.options.hasCursors&&n===e.collection.length-1,libraries:e.options.libraries,products:e.options.products}}}}])}(o.Q.$W),T=function(e){function t(e){return v(this,t),k(this,t,[e])}return S(t,e),g(t,[{key:"name",get:function(){return"VideoListView"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return d()}},{key:"defaults",get:function(){return{videoItemComponentType:a.U.Base,allowBulk:!1,emptyState:f.ub.Default,videoCollectionSource:y.x_.Folder}}},{key:"behaviors",get:function(){var e=[{behaviorClass:c.Im,selector:".lazy-img",minBrowserSupportVersion:p.v9}];return this.options.showEmptyState&&e.push({behaviorClass:u.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:p.aW}),e}},{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var e=new C({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{location:i.LZ.VideoListItem,entity:i.py.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser,playerApiUrl:this.options.playerApiUrl,createViewKey:this.options.createViewKey,hasCursors:this.options.hasCursors,libraries:this.options.libraries,products:this.options.products});this.showChildView("videos",e)}}])}(o.Q.wA)},99186:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing,c=e.escapeExpression;return'<div class="p-3">\n <a class="btn previous-applink btn-outline-dark '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.previous:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+c((n.lang||t&&t.lang||u).call(l,"previous",{name:"lang",hash:{},data:r}))+'</a>\n <a class="btn next-applink btn-outline-dark '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.next:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+c((n.lang||t&&t.lang||u).call(l,"next",{name:"lang",hash:{},data:r}))+"</a>\n</div>"},useData:!0})},92689:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,'<div class="d-inline-block text-end">\n <a class="clear-filters cursor-pointer hover-text-underline">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\n</div>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<div class="d-inline-block border-end py-1 pe-3 '+l(e.lambda(null!=(i=null!=t?t.options:t)?i.labelClass:i,t))+'"><strong>'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(u,"heading",{name:"lang",hash:{},data:r}))+'</strong></div>\n<div class="filter-list-region d-inline-block ps-2"></div>\n<div class="more-filters-region d-inline-block me-2"></div>\n'+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.hasFiltersSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},91776:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,u=e.escapeExpression;return'<button class="'+u(l(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn cursor-pointer" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n '+u(l(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\n</button>\n<div class="dropdown-menu '+u(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dropdownMenu:i,t))+' p-2 filter-region"></div>'},useData:!0})},11060:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<h6 class="mb-0">'+e.escapeExpression("function"==typeof(i=null!=(i=n.title||(null!=t?t.title:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:r}):i)+'</h6>\n<div class="options-region"></div>'},useData:!0})},65882:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,' <a class="clear-filters float-start text-secondary hover-text-underline cursor-pointer">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\n"},3:function(e,t,n,o,r){return e.propertyIsEnumerable,' <a class="apply-filters d-block text-end info-link">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"apply",{name:"lang",hash:{},data:r}))+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="filter-list-region"></div>\n<div>\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showClearFilters:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showApplyFilters:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},81637:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="option-list-region"></div>'},useData:!0})},18818:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" on"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,u=null!=t?t:e.nullContext||{};return'<div class="custom-toggle toggle-option float-end'+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.isSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'"><span class="handle"></span></div>\n<p>'+e.escapeExpression("function"==typeof(l=null!=(l=n.description||(null!=t?t.description:t))?l:e.hooks.helperMissing)?l.call(u,{name:"description",hash:{},data:r}):l)+"</p>"},useData:!0})},16869:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,u=e.escapeExpression,c=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s="function";return'<button type="button" class="d-block option-btn w-100 '+u(e.lambda(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+'">\n '+u(typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:a)===s?l.call(c,{name:"name",hash:{},data:r}):l)+'\n</button>\n<div class="text-center">'+u(typeof(l=null!=(l=n.description||(null!=t?t.description:t))?l:a)===s?l.call(c,{name:"description",hash:{},data:r}):l)+"</div>"},useData:!0})},72673:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,u=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<div class="form-check">\n <input type='+u(e.lambda(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="form-check-input"'+(null!=(i=n.if.call(c,null!=t?t.active:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'>\n <label class="form-check-label align-middle cursor-pointer">'+u("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(c,{name:"name",hash:{},data:r}):l)+"</label>\n</div>"},useData:!0})},91713:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,u=e.escapeExpression;return'<div class="default-option py-1">\n <div class="form-check">\n <input type='+u(l(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="form-check-input"'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionSelected:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'>\n <label class="form-check-label align-middle cursor-pointer">'+u(l(null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,t))+"</label>\n </div>\n</div>\n"},2:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="options-region"></div>'},useData:!0})},62568:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)},useData:!0})},21626:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,'<p class="mb-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"emptyState",{name:"lang",hash:{},data:r}))+"</p>\n"},3:function(e,t,n,o,r){return'<div class="dropdown-divider"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showEmptyState:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\n<div class="selected-tags-region"></div>\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.useDivider:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="relevant-tags-region"></div>'},useData:!0})},9586:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="tags-region"></div>'},useData:!0})},42007:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,u=e.escapeExpression;return'<button class="'+u(l(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n '+u(l(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\n</button>\n<div class="dropdown-menu p-2 filters-region"></div>'},useData:!0})},30606:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="videos-region"></div>'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3551],{46814:function(e,t,n){"use strict";n.r(t),n.d(t,{PastReleasesView:function(){return re}});var i=n(39479),r=n(21679),o=n(57857),a=n(31647),s=n(52076),l=n(70065),c=n(47022),u=n(70763),f=n(58688),d=n(57098),h=n(29457),p=n(3059),y=n(64404),v=n(48404),b=n(19226),g=(n(14129),n(7572)),m=n(95920),w=n(7170),C=n(8614),S=n(5344),P=n(56750),k=n.n(P);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function R(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,E(i.key),i)}}function E(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=O(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(t)?t:t+""}function j(e,t,n){return t=V(t),function(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,T()?Reflect.construct(t,n||[],V(e).constructor):t.apply(e,n))}function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T=function(){return!!e})()}function V(e){return V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},V(e)}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}var L=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),j(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"PastReleasesFiltersComponent"}},{key:"template",get:function(){return k()}},{key:"lang",get:function(){return"contentUpdates.pastReleasesFilters"}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceRegion:!1,partialLoading:h.LP.PastReleasesSearchFilter}}}},{key:"getVisibleFilters",value:function(){return new w.y(this.collection.filter((function(e){return S.qr.showFilter(e)})))}},{key:"renderFilterList",value:function(){var e=new C.$V({collection:this.getVisibleFilters(),channelName:this.options.channelName});this.showChildView("filterList",e)}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderFilterList()}}])&&R(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),N=n(48088),I=n(68536),D=n.n(I);function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function U(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,x(i.key),i)}}function x(e){var t=function(e,t){if("object"!=F(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=F(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==F(t)?t:t+""}function A(e,t,n){return t=G(t),function(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,M()?Reflect.construct(t,n||[],G(e).constructor):t.apply(e,n))}function M(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(M=function(){return!!e})()}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}function H(e,t){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},H(e,t)}var B=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),A(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"PastReleasesHeaderComponent"}},{key:"props",get:function(){return["filterCollection"]}},{key:"lang",get:function(){return"contentUpdates.pastReleasesHeader"}},{key:"className",get:function(){return"d-flex justify-content-between align-items-center p-3 border-bottom"}},{key:"template",get:function(){return D()}},{key:"regions",value:function(){return{filters:{el:".filters-region"}}}},{key:"events",value:function(){return{"click .generate-pdf":"onClickGeneratePdf"}}},{key:"onClickGeneratePdf",value:function(){N.Radio.channel(this.options.channelName).trigger("generate:pdf")}},{key:"renderFilters",value:function(){var e=new L({collection:this.filterCollection,channelName:this.options.channelName});this.showChildView("filters",e)}},{key:"viewOptions",value:function(){return{showGeneratePdf:this.options.showGeneratePdf}}},{key:"onRender",value:function(){this.renderFilters()}}])&&U(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),Q=n(82405),W=n(73616),q=n(39090),z=n(29565),J=n(95061),X=n(69711),Z=n.n(X);function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function K(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Y(i.key),i)}}function Y(e){var t=function(e,t){if("object"!=$(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=$(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$(t)?t:t+""}function ee(e,t,n){return t=ne(t),function(e,t){if(t&&("object"===$(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,te()?Reflect.construct(t,n||[],ne(e).constructor):t.apply(e,n))}function te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(te=function(){return!!e})()}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ne(e)}function ie(e,t){return ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ie(e,t)}var re=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ee(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ie(e,t)}(t,e),n=t,(w=[{key:"initialize",value:function(){this.bindListeners(),this.contentUpdatesDataService=r.u.getInstance(d.Or.ContentUpdates,this),this.videoDataService=r.u.getInstance(d.Or.Video,this),this.libraryDataService=r.u.getInstance(d.Or.Library,this),this.videoMixinService=r.u.getInstance(d.K9.VideoMixin,this)}},{key:"name",get:function(){return"PastReleasesView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.pastReleases"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white rounded"}},{key:"template",get:function(){return Z()}},{key:"regions",value:function(){return{header:{el:".header-region",replaceElement:!0},leftNav:{el:".left-nav-region",replaceElement:!0},listHeader:{el:".list-header-region",replaceElement:!0},videos:{el:".video-list-region",replaceElement:!0,partialLoading:h.LP.VideoGroupList},pagination:{el:".pagination-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(d.Vk.CONTENT_UPDATES,"".concat(d.M_.LIBRARY_REVIEW_SETTINGS,":sync"),this.render),this.listenTo(this.channelName,"generate:pdf",this.onClickGeneratePdf),this.listenTo(d.Vk.RESTRICTED_VIDEO,"".concat(d.M_.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestrictedVideos),this.listenTo(this.channelName,d.Vy.Filters.FILTER_CHANGED,i.debounce(this.onFilterChange,100)),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"initializeFilterCollection",value:function(){var e=this;this.filterCollection||this.libraryDataService.getHostedLibraries((function(t){return e.onLibrariesSync(t)}))}},{key:"onLibrariesSync",value:function(e){var t=this;this.filterCollection||(this.libraryIds=q.RF.getLibraryIds(this.options.queryParams[W.g.Libraries],e),this.subjectCollectionIdentifier=new p.xw({dateQueryString:this.options.queryParams[W.g.ReleaseDate],libraryIds:this.libraryIds}),this.contentUpdatesDataService.getRecentVideoSubjects(this.subjectCollectionIdentifier,(function(n){return t.onSubjectsSync(e,n)})))}},{key:"onSubjectsSync",value:function(e,t){var n=q.RF.getSubjectOptions(t);this.filterCollection=q.RF.getFilterCollection(e,n,this.options.queryParams);var i=q.RF.getSelectedSubjects(this.filterCollection),r=n.length>1&&n.length===i.length;this.videoCollectionIdentifier=new p.IJ({dateQueryString:this.options.queryParams[W.g.ReleaseDate],libraryIds:this.libraryIds,subjects:!r&&i,cursor:this.options.queryParams.cursor}),this.listenTo(d.Vk.CONTENT_UPDATES,"".concat(this.videoCollectionIdentifier.toString(),":sync"),this.render),this.fetchVideos()}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new u.t(this.videoCollection.map((function(e){return new y.n({id:e.get("id")})}))))}},{key:"updateRestrictedVideos",value:function(){var e=this;this.videoMixinService.getAndMixinVideoCollectionRestrictions(this.videoCollection,null,(function(){return e.render()}))}},{key:"onFilterChange",value:function(){a.Q.C$.trigger({application:d.OV.CONTENT_UPDATES,action:d.eX.ContentUpdates.PAST_RELEASES,params:q.RF.getRouteQueryParams(this.filterCollection)})}},{key:"onClickGeneratePdf",value:function(){this.videoCollection.length&&(a.Q.C$.trigger({application:d.OV.CONTENT_UPDATES,action:d.eX.ContentUpdates.GENERATE_PDF,params:q.RF.getRouteQueryParams(this.filterCollection)}),this.logPdfAction())}},{key:"getContentClassName",value:function(){var e=z.Z.content;return this.reviewSetting&&this.reviewSetting.get("reviewPeriod")?e+=" d-inline-block border-start ".concat(z.Z.contentWithLeftNav):e+=" w-100",e}},{key:"logPdfAction",value:function(){var e={location:l.LZ.PastReleasesHeader,actionType:l.Vw.Create,entity:l.py.PDF,workflowPhase:l.eu.Start},t=q.RF.getSelectedSubjects(this.filterCollection),n=q.RF.getSelectedReleaseDate(this.filterCollection),i={libraries:this.libraryIds.join(","),subjects:t.map((function(e){return e.get("name")})).join(","),releaseDate:n.get("name")};s.k.logUserAction(i,e)}},{key:"renderHeader",value:function(){this.reviewSetting?this.showChildView("header",new g.u({activeTab:q.JI.PastReleases,reviewEnabled:this.reviewSetting.get("reviewPeriod")})):this.renderPartialLoading("header")}},{key:"renderLeftNav",value:function(){this.reviewSetting&&this.reviewSetting.get("reviewPeriod")&&this.showChildView("leftNav",new m.m({supportSiteUrl:this.config.get("supportSiteUrl"),currentUser:this.currentUser}))}},{key:"renderListHeader",value:function(){this.showChildView("listHeader",new B({filterCollection:this.filterCollection,channelName:this.channelName,showGeneratePdf:!!this.videoCollection&&!!this.videoCollection.length}))}},{key:"renderVideos",value:function(){this.config&&this.groupedVideoCollection?this.showChildView("videos",new Q.D({collection:this.groupedVideoCollection,childOptions:{config:this.config,videoItemComponentType:f.U.PastReleases,videosWithMetadata:this.videosWithMetadata,customerHasCustomLibrary:this.customLibraries&&!!this.customLibraries.length,collectionViewChannel:this.channelName,currentUser:this.currentUser,libraries:this.customLibraries},emptyStateType:h.ub.PastReleases,emptyStateOptions:{heading:o.T.getPhrase(this.lang,"emptyState")}})):this.renderPartialLoading("videos")}},{key:"renderPagination",value:function(){if(this.videoCollection){var e=this.contentUpdatesDataService.getVideoCollectionCursors(this.videoCollectionIdentifier),t=new c.Q({cursors:e,appLink:{application:d.OV.CONTENT_UPDATES,action:d.eX.ContentUpdates.PAST_RELEASES,params:q.RF.getRouteQueryParams(this.filterCollection)}});this.showChildView("pagination",t)}}},{key:"fetchVideos",value:function(){this.filterCollection&&!this.videoCollection&&(this.videoCollection=this.contentUpdatesDataService.getRecentVideos(this.videoCollectionIdentifier),this.videoCollection&&(this.setVideosWithMetadata(),this.groupedVideoCollection=q.RF.groupVideosByReleaseMonth(this.videoCollection)))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var i=t.videosWithMetadata.get(e);i&&(i.set(n.toJSON()),i.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:v.p.config,currentUser:b.K.currentUser,customLibraries:J.T.libraries}}},{key:"onBeforeRender",value:function(){this.initializeFilterCollection(),this.fetchVideos(),this.videoCollection&&(this.groupedVideoCollection=q.RF.groupVideosByReleaseMonth(this.videoCollection)),this.reviewSetting=this.contentUpdatesDataService.getLibraryReviewSettings()}},{key:"viewOptions",value:function(){return{showLeftNav:this.reviewSetting&&this.reviewSetting.get("reviewPeriod"),contentClass:this.getContentClassName()}}},{key:"onRender",value:function(){this.renderHeader(),this.renderLeftNav(),this.renderListHeader(),this.renderVideos(),this.renderPagination()}}])&&K(n.prototype,w),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,w}(a.Q.G7)},56750:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){return e.propertyIsEnumerable,'<div class="d-inline-block border-end py-1 pe-3"><strong>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"filters",{name:"lang",hash:{},data:r}))+'</strong></div>\n<div class="filter-list-region d-inline-block ps-2"></div>'},useData:!0})},68536:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,r){return e.propertyIsEnumerable,'<button class="generate-pdf btn btn-outline-dark d-inline-block" type="button">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"generatePdf",{name:"lang",hash:{},data:r}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){var o;return e.propertyIsEnumerable,'<div class="filters-region d-inline-block"></div>\n'+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showGeneratePdf:o,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?o:"")},useData:!0})},69711:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,r){return'<div class="left-nav-region"></div>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){var o;return e.propertyIsEnumerable,'<div class="header-region"></div>\n'+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showLeftNav:o,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?o:"")+'<div class="'+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.contentClass:o,t))+'">\n<div class="list-header-region"></div>\n<div class="video-list-region"></div>\n<div class="pagination-region"></div>\n</div>'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3639],{63639:function(e,t,n){"use strict";n.r(t),n.d(t,{DeleteLibraryView:function(){return O}});var r=n(48088),i=n(21679),o=n(57857),a=n(31647),l=n(52076),u=n(10101),c=n(88172),s=n(57098),f=n(93569),y=n(56906),b=n(72634),h=n.n(b);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}function g(e,t,n){return t=w(t),function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,n||[],w(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}var O=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(t,e),n=t,(b=[{key:"initialize",value:function(){this.listenTo(s.Vk.LIBRARY,"libraries:sync",this.render),this.libraryDataService=i.u.getInstance(s.Or.Library,this)}},{key:"name",get:function(){return"DeleteLibraryView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.deleteLibrary"}},{key:"template",get:function(){return h()}},{key:"channelName",get:function(){return f.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:o.T.getPhrase(this.lang,"removeLibrary"),behaviorClass:u.Yw,spinnerButtonOptions:{channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"remove"),extraButtonClass:"btn-danger",onClick:function(){return e.onClickDelete()}}}]}},{key:"onClickDelete",value:function(){r.Radio.channel(this.channelName).trigger(c.I3.ShowSpinner),this.libraryDataService.deleteLibrary(this.options.libraryId,(function(){a.Q.C$.trigger({application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.HOME})})),this.logAction()}},{key:"logAction",value:function(){var e={id:this.options.libraryId};l.k.logUserAction(e,this.options.analyticsOptions)}},{key:"onBeforeRender",value:function(){var e=this;if(this.libraryDataService.getFolderFromLibraries(this.options.libraryId,(function(t){e.model=t})),!this.model)return!1;var t=null;return this.model.get("hasSubscribers")?t=new y.YP:this.model.children.length&&(t=new y.d7),t?(window.setTimeout((function(){e.triggerMethod("hide"),a.Q.Ry.throw(t)}),s.pA.POPUP_FADE_TIMEOUT),!1):!!this.model}}])&&d(n.prototype,b),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,b}(a.Q.G7)},72634:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"check",{name:"lang",hash:{name:null!=t?t.name:t},data:i}))?o:""},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[376],{59054:function(e,t,n){"use strict";var r;n.d(t,{f:function(){return r}}),function(e){e.Share="share",e.MasterObject="masterobject"}(r||(r={}))},48362:function(e,t,n){"use strict";n.d(t,{_:function(){return E}});var r=n(31647),i=n(70065),o=n(45837),a=n(7427),l=n(61356),s=n(19226),c=n(93569),u=n(44391),p=n(26457),f=n(70042),d=n(17349),y=n.n(d),h={interactive:"N1mrU"};function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}function g(e,t,n){return t=O(t),function(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,w()?Reflect.construct(t,n||[],O(e).constructor):t.apply(e,n))}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}var E=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.isClickViewContent=this.model&&!c.BK.canEditVideo(this.model)}},{key:"name",get:function(){return"VideoSidebarInfoComponent"}},{key:"lang",get:function(){return"libraryEditor.videoSidebarInfo"}},{key:"className",get:function(){return"py-3 h-100"}},{key:"template",get:function(){return y()}},{key:"regions",value:function(){return{preview:{el:".video-preview-region",replaceElement:!0},folders:{el:".folders-region",replaceElement:!0},tags:{el:".tags-region",replaceElement:!0}}}},{key:"requiredResources",get:function(){return{currentUser:s.K.currentUser}}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new l.c({model:this.model,webPlayerUrl:this.options.webPlayerUrl,channelName:this.options.channelName,analyticsOptions:{location:i.LZ.VideoDetails},currentUser:this.options.currentUser,createViewKey:this.options.createViewKey,playerApiUrl:this.options.playerApiUrl}))}},{key:"renderTags",value:function(){this.model.get("tags")&&this.model.get("tags").length&&this.showChildView("tags",new u.K({collection:this.model.get("tags"),orientation:p.zM.Flex,behavior:p.Dm.Link}))}},{key:"renderFolders",value:function(){this.model.get("categories")&&this.model.get("categories").length&&this.showChildView("folders",new a.V({model:this.model,libraries:this.options.libraries,showFolder:!0,hideLabel:!0}))}},{key:"viewOptions",value:function(){return{styles:h,interactive:f.u.isInteractive(this.model),duration:c.T.ToDisplayDuration(this.model.get("duration")),folders:this.model.categories&&this.model.categories.length,multipleFolders:this.model.categories.length>1,tags:this.model.get("tags")&&this.model.get("tags").length,isClickViewContent:this.isClickViewContent,hasCustomerTags:this.isClickViewContent&&c.BK.filterObjectsByOwnerType(this.model.tags,o.N.Customer,this.options.currentUser.get("customerId")).length}}},{key:"onRender",value:function(){this.renderVideoPreview(),this.renderTags(),this.renderFolders()}}])&&b(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},88435:function(e,t,n){"use strict";n.r(t),n.d(t,{ClipDetailsView:function(){return z}});var r=n(39479),i=n.n(r),o=n(99748),a=n(21679),l=n(31647),s=n(59054),c=n(50997),u=n(57085),p=n(38115),f=n(30831),d=n(23130),y=n(32546),h=n.n(y);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}function g(e,t,n){return t=O(t),function(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,w()?Reflect.construct(t,n||[],O(e).constructor):t.apply(e,n))}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}var E=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"ClipBasicInfoComponent"}},{key:"className",get:function(){return"py-3 pe-2"}},{key:"template",get:function(){return h()}},{key:"lang",get:function(){return"shared.clipBasicInfo"}},{key:"defaults",get:function(){return{truncateDescription:!0}}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},mediaTypeBadge:{el:".media-type-badge-region",replaceElement:!0},duration:{replaceElement:!0,el:".duration-region"}}}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new d.Z({model:this.model,linkify:!0,size:d.t.Large,truncate:this.options.truncateDescription,allowExpand:!0});this.showChildView("description",e)}}},{key:"renderMediaTypeBadge",value:function(){var e=new f.Z({model:this.model});this.showChildView("mediaTypeBadge",e)}},{key:"renderDuration",value:function(){var e=new p.s({model:this.model});this.showChildView("duration",e)}},{key:"onRender",value:function(){this.renderDescription(),this.renderMediaTypeBadge(),this.renderDuration()}}])&&b(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(l.Q.wA),C=n(57098),T=n(21251),j=n(33800),D=n(29457),P=n(48404),S=n(64649),_=n(19226),V=n(24397),I=n(48362),x=n(56906),B=n(95061),R=n(96491),L=n.n(R);function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A(r.key),r)}}function A(e){var t=function(e,t){if("object"!=M(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==M(t)?t:t+""}function K(e,t,n){return t=F(t),function(e,t){if(t&&("object"===M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,N()?Reflect.construct(t,n||[],F(e).constructor):t.apply(e,n))}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(N=function(){return!!e})()}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}function H(e,t){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},H(e,t)}var z=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),K(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.bindListeners(),this.videoDataService=a.u.getInstance(j.O.Video,this),this.videoMixinService=a.u.getInstance(j.K.VideoMixin,this),this.localCacheDataService=a.u.getInstance(j.O.LocalCache,this),this.playerDataService=a.u.getInstance(j.O.Player,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"createViewKey",value:function(e,t){this.playerDataService.createViewKey(e,s.f.MasterObject,t)}},{key:"bindListeners",value:function(){this.listenTo(C.Vk.VIDEO,"".concat(T.M.CLIPS,":").concat(this.options.clipId,":sync"),this.render),this.listenTo(C.Vk.VIDEO,"".concat(T.M.CLIPS,":").concat(this.options.clipId,":error"),this.onError),this.listenTo(C.Vk.VIDEO,"".concat(T.M.RESTRICTED_OBJECTS,":").concat(this.options.clipId,":sync"),this.render),this.listenTo(C.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(C.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(C.Vk.RESTRICTED_VIDEO,"".concat(T.M.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestriction),this.listenTo(C.Vk.RESTRICTED_VIDEO,"".concat(T.M.RESTRICTED_OBJECTS,":").concat(this.options.clipId,":sync"),this.render),this.listenTo(C.Vk.LOCAL_CACHE,"".concat(T.M.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(C.Vk.LOCAL_CACHE,"".concat(T.M.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"onError",value:function(e){switch(e.type){case o.h.NotFound:l.Q.Ry.throw(new x.l1);break;case o.h.Forbidden:l.Q.Ry.throw(new x.aV)}}},{key:"updateRestriction",value:function(){this.videoMixinService.getAndMixinVideoRestriction(this.clip)}},{key:"name",get:function(){return"ClipDetailsView"}},{key:"title",get:function(){return this.clip&&this.clip.get("name")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return L()}},{key:"className",get:function(){return"container-fluid h-100 bg-white rounded"}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1,partialLoading:D.LP.Breadcrumbs},header:{replaceElement:!0,el:".clip-header-region",partialLoading:D.LP.VideoHeader},main:{replaceElement:!0,el:".main-clip-information-region",partialLoading:D.LP.VideoSidebarInfo},basic:{replaceElement:!1,el:".basic-clip-information-region",partialLoading:D.LP.ClipBasicInfo}}}},{key:"getCustomLibraryFolders",value:function(){var e;if(!(null===(e=this.clip)||void 0===e?void 0:e.categories)||!this.libraries)return[];var t=this.libraries.reduce((function(e,t){return e[t.id]=!0,e}),{});return this.clip.categories.filter((function(e){var n=e.libraries.first().get("id");return t[n]}))}},{key:"renderBreadcrumbs",value:function(){this.folder&&this.clip&&this.showChildView("breadcrumbs",new u.n({folder:this.folder,libraries:this.libraries,video:this.clip,enableLastItemAppLink:!1}))}},{key:"renderVideoHeader",value:function(){this.showChildView("header",new V.U({model:this.clip,customerHasLocalCache:c.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),collectionIdentifier:this.folder&&new c.F7(this.folder.id,c.x$.GetCurrentSortType()),config:this.config,products:this.products,libraries:this.libraries}))}},{key:"renderSidebarInfo",value:function(){this.showChildView("main",new I._({model:this.clip,webPlayerUrl:this.config.get("webPlayerUrl"),channelName:this.channelName,currentUser:this.currentUser,createViewKey:this.createViewKey,playerApiUrl:this.config.get("playerApiUrl"),libraries:this.libraries}))}},{key:"renderBasicInfo",value:function(){this.clip&&this.showChildView("basic",new E({model:this.clip}))}},{key:"requiredResources",get:function(){return{config:P.p.config,currentUser:_.K.currentUser,libraries:B.T.libraries,products:S.s.products}}},{key:"onBeforeRender",value:function(){return this.clip=this.videoDataService.getClip(this.options.clipId),this.clip&&(this.folder=i().first(this.getCustomLibraryFolders())),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),!!this.clip}},{key:"viewOptions",value:function(){if(this.clip)return{hasFolder:!!this.folder}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderVideoHeader(),this.renderSidebarInfo(),this.renderBasicInfo()}}])&&U(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(l.Q.G7)},38115:function(e,t,n){"use strict";n.d(t,{s:function(){return h}});var r=n(31647),i=n(27866),o=n(30225),a=n.n(o),l={durationBar:"zIvWt"};function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function p(e,t,n){return t=d(t),function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var h=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"ClipDurationIndicatorComponent"}},{key:"template",get:function(){return a()}},{key:"getDuration",value:function(){return 1e3*(this.model.get("endTime")-this.model.get("startTime"))}},{key:"getDisplayDuration",value:function(){var e=i.T.ToDisplayDurationNewStyle(this.getDuration(),!0),t=i.T.ToDisplayDuration(1e3*this.model.get("startTime")),n=i.T.ToDisplayDuration(1e3*this.model.get("endTime"));return"".concat(e," (").concat(t," - ").concat(n,")")}},{key:"getClipPosition",value:function(){var e;return"left:"+this.model.get("startTime")/((null===(e=this.model._parentVideo)||void 0===e?void 0:e.get("duration"))/1e3)*100+"%"}},{key:"getClipDurationWidth",value:function(){return"width:"+Math.round(this.getDuration()/this.model._parentVideo.get("duration")*100)+"%"}},{key:"viewOptions",value:function(){return{styles:l,startDuration:i.T.ToDisplayDuration(0),parentDuration:i.T.ToDisplayDuration(this.model._parentVideo.get("duration")),clipDurationWidth:this.getClipDurationWidth(),clipPosition:this.getClipPosition(),duration:this.getDisplayDuration()}}}])&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},30831:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(57857),i=n(31647),o=n(83324),a=n(93569),l=n(7190),s=n(85348),c=n.n(s),u={mediaTypeBadge:"goWw9"};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}function h(e,t,n){return t=b(t),function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var g=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),h(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"MediaTypeBadgeComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"shared.mediaTypeBadge"}},{key:"getMediaTypeOptions",value:function(e){var t=f(f({},o.D.Interactive,"interactiveLabel"),o.D.Clip,"clipLabel");return{bgClass:l.uB.mapMediaTypeToClass(e),label:r.T.getPhrase(this.lang,t[a.M2.getMediaType(e)]),svg:l.uB.mapMediaTypeToSvg(e)}}},{key:"viewOptions",value:function(){return{styles:u,mediaType:this.getMediaTypeOptions(this.model)}}}])&&d(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},17349:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.escapeExpression;return' <span class="badge p-1 '+a(e.lambda(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.interactive:o,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:i}))+"</span>\n"},3:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,' <div class="mt-3">\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"folders",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.folders:o},data:i}))+'</h5>\n <div class="folders-region"></div>\n </div>\n'},5:function(e,t,n,r,i){return e.propertyIsEnumerable,' <div class="mt-3">\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"tags",{name:"lang",hash:{},data:i}))+'</h5>\n <div class="tags-region"></div>\n </div>\n'},7:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.escapeExpression;return' <div class="mt-3">\n <h5>'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"curriculumLinks",{name:"lang",hash:{},data:i}))+"</h5>\n <p>"+a(e.lambda(null!=(o=null!=t?t.options:t)?o.links:o,t))+"</p>\n </div>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{};return'<div class="h-100 ps-2 pe-2">\n <div class="video-preview-region"></div>\n <div class="mt-3">\n'+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.interactive:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+" </div>\n\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.folders:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.tags:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.links:o,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?o:"")+"</div>"},useData:!0})},96491:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="row border-bottom">\n <div class="clip-header-region"></div>\n\n <div class="px-3 pb-3">\n <div class="breadcrumbs-region"></div>\n </div>\n</div>\n\n<div class="row">\n <div class="col-4">\n <div class="main-clip-information-region"></div>\n </div>\n <div class="col-8">\n <div class="basic-clip-information-region"></div>\n </div>\n</div>'},useData:!0})},32546:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return' <div class="col-3 fw-semibold">'+s((n.lang||t&&t.lang||l).call(a,"title",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:l)?o.call(a,{name:"name",hash:{},data:i}):o)+"</p>\n"},3:function(e,t,n,r,i){return e.propertyIsEnumerable,' <div class="col-3 fw-semibold">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"description",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9">\n <div class="description-region"></div>\n </div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="position-relative">\n <h5 class="d-inline-block">'+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:i}))+'</h5>\n</div>\n<div class="row mb-0">\n'+(null!=(o=n.if.call(a,null!=t?t.name:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=n.if.call(a,null!=t?t.description:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+'\n <div class="col-3 fw-semibold">'+s((n.lang||t&&t.lang||l).call(a,"type",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9 mb-3">\n <div class="media-type-badge-region"></div>\n </div>\n\n <p class="fw-semibold col-3">'+s((n.lang||t&&t.lang||l).call(a,"duration",{name:"lang",hash:{},data:i}))+'</p>\n \n <div class="col-9">\n <div class="duration-region"></div>\n </div>\n</div>'},useData:!0})},30225:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,l=e.escapeExpression;return"<p>"+l(a(null!=(o=null!=t?t.options:t)?o.duration:o,t))+"</p>\n\n<div class='overflow-hidden rounded-3 border border-secondary-subtle p-3'>\n <div class='position-relative z-1'>\n <div class='position-absolute w-100'>\n <div class='bg-light rounded-3 "+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.durationBar:o,t))+"'></div>\n </div>\n </div>\n <div class='position-relative z-1' style="+l(a(null!=(o=null!=t?t.options:t)?o.clipPosition:o,t))+">\n <div class='bg-blue rounded-3 px-1 "+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.durationBar:o,t))+"' style="+l(a(null!=(o=null!=t?t.options:t)?o.clipDurationWidth:o,t))+"></div>\n </div>\n <div class='d-flex justify-content-between text-body-secondary'>\n <span>"+l(a(null!=(o=null!=t?t.options:t)?o.startDuration:o,t))+"</span>\n <span>"+l(a(null!=(o=null!=t?t.options:t)?o.parentDuration:o,t))+"</span>\n </div>\n</div>"},useData:!0})},85348:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,l=e.escapeExpression;return'<div class="d-inline-block rounded-pill text-white ps-1 pe-2 '+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.mediaTypeBadge:o,t))+" "+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.mediaType:o)?o.bgClass:o,t))+'">\n <div class="svg-container sm">'+(null!=(o=a(null!=(o=null!=(o=null!=t?t.options:t)?o.mediaType:o)?o.svg:o,t))?o:"")+'</div>\n <span class="font-size-sm align-text-top">'+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.mediaType:o)?o.label:o,t))+"</span>\n</div>"},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3763],{33763:function(e,t,n){"use strict";n.r(t),n.d(t,{BannerUploadView:function(){return _}});var r=n(48088),o=n(39479),i=n(11306),a=n(21679),u=n(57857),c=n(99249),l=n(31647),s=n(10101),p=n(58025),f=n(88172),h=n(57098),d=n(29457),y=n(18375),g=n(93569),m=n(66266),b=n.n(m);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k(r.key),r)}}function k(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}function C(e,t,n){return t=I(t),function(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,O()?Reflect.construct(t,n||[],I(e).constructor):t.apply(e,n))}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O=function(){return!!e})()}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}var _=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),C(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(t,e),n=t,(m=[{key:"initialize",value:function(){this.libraryDataService=a.u.getInstance(h.Or.Library,this),this.imageUploadDataService=a.u.getInstance(h.Or.ImageUpload,this),this.viewModel=c.r.get("image:storage"),this.bindListeners(),this.initImageEl()}},{key:"name",get:function(){return"BannerUploadView"}},{key:"title",get:function(){return u.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.bannerUpload"}},{key:"template",get:function(){return b()}},{key:"channelName",get:function(){return g.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.Yw,title:u.T.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:u.T.getPhrase(this.lang,"crop"),onClick:function(){return e.onClickCrop()}}}]}},{key:"regions",value:function(){return{cropper:{el:".cropper-region",replaceElement:!0}}}},{key:"events",value:function(){return{"shown.bs.modal":"renderCropper"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,p.Y.ImageCropped,this.onImageCropped),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.FOLDER,":").concat(this.options.folderId,":sync"),this.render),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.UPDATE_FOLDER_BANNER,":").concat(this.options.folderId,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"initImageEl",value:function(){this.viewModel.get("dataUrl")||l.Q.Ry.throw(new i.H("DataUrl must be set on the image:storage ViewModel")),this.imageEl=new Image,this.imageEl.src=this.viewModel.get("dataUrl"),this.viewModel.unset("dataUrl")}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"onClickCrop",value:function(){r.Radio.channel(this.channelName).trigger(p.Y.CropImage),r.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner)}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,d.__.Banners,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this,n={folderId:this.options.folderId,imageModel:e,currentImageId:this.model.banner&&this.model.banner.id};this.libraryDataService.addOrUpdateBanner(n,(function(){return t.triggerMethod("hide")}))}},{key:"renderCropper",value:function(){var e=new y.E({dataUrl:this.imageEl.src,width:this.imageEl.width,height:this.imageEl.height});this.showChildView("cropper",new p.a({model:e,channelName:this.channelName,imageType:d.__.Banners,minWidth:h.yE[d.__.Banners].width,minHeight:h.yE[d.__.Banners].height,getCropRegionWidth:o.bind(this.getCropRegionWidth,this)}))}},{key:"onBeforeRender",value:function(){this.model=this.libraryDataService.getFolder(this.options.folderId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:g.Kp.getSpinner({size:g.Ey.Large,extraClasses:"mx-auto"})}}}])&&w(n.prototype,m),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,m}(l.Q.G7)},58025:function(e,t,n){"use strict";n.d(t,{Y:function(){return r},a:function(){return m}});var r,o=n(48088),i=n(51934),a=n.n(i),u=n(31647),c=n(91465),l=n.n(c);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function f(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function h(e,t,n){return t=y(t),function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(r||(r={}));var m=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),h(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,r.CropImage,this.crop)}},{key:"name",get:function(){return"ImageCropperComponent"}},{key:"template",get:function(){return l()}},{key:"className",get:function(){return"text-center"}},{key:"elements",get:function(){return{image:".img"}}},{key:"getMinCropBoxWidth",value:function(){return this.options.minWidth*this.getViewportToImageRatio()}},{key:"getMinCropBoxHeight",value:function(){return this.options.minHeight*this.getViewportToImageRatio()}},{key:"getViewportToImageRatio",value:function(){return this.options.getCropRegionWidth()/this.model.get("width")}},{key:"crop",value:function(){var e=this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());o.Radio.channel(this.options.channelName).trigger(r.ImageCropped,e)}},{key:"getImageMimeType",value:function(){var e=this.model.get("dataUrl").match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);if(e)return e[1]}},{key:"renderCropper",value:function(){this.getMinCropBoxWidth();var e=this.getUI("image").get(0);this.cropper=new(a())(e,{viewMode:1,aspectRatio:this.options.minWidth/this.options.minHeight,minCropBoxWidth:this.getMinCropBoxWidth(),minCropBoxHeight:this.getMinCropBoxHeight(),autoCropArea:1})}},{key:"onRender",value:function(){this.renderCropper()}},{key:"onBeforeDestroy",value:function(){this.cropper.destroy()}}])&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(u.Q.wA)},66266:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,n,r,o){return'<div class="cropper-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},91465:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,'<img src="'+e.escapeExpression("function"==typeof(i=null!=(i=n.dataUrl||(null!=t?t.dataUrl:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"dataUrl",hash:{},data:o}):i)+'" class="img img-fluid" />'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3778],{39023:function(e,t,n){n.d(t,{X:function(){return i}});var r=n(1024);function i(e){var t=e.isLabelEllipsis,n=r.useRef(null);return r.useEffect((function(){n.current&&(e.checked?n.current.indeterminate&&(n.current.indeterminate=!1):!e.indeterminate||n.current.indeterminate?!e.indeterminate&&n.current.indeterminate&&(n.current.indeterminate=!1):n.current.indeterminate=!0)}),[n.current,e.indeterminate,e.checked]),r.createElement("div",{className:"form-check pe-2 ".concat(e.className)},r.createElement("input",{ref:n,type:"checkbox",className:"form-check-input",id:e.id,name:e.name,checked:e.checked,onChange:e.onChange,disabled:e.disabled}),r.createElement("label",{className:"form-check-label cursor-pointer align-top",htmlFor:e.id},r.createElement("span",{className:"".concat(t?"clamp-1":"")},e.label)))}i.defaultProps={checked:!1,label:"",className:""}},52086:function(e,t,n){n.d(t,{g:function(){return r}});var r={PERMISSIONS:"permissions",AUDIENCE_FILTER:"audience:filter",BULK_USER_UPLOAD:"bulk:user:upload",BULK_REMOVE_USERS:"bulk:remove:users",BULK_USER_ACTIONS:"bulk:user:actions",CURATOR_WORKING_LISTS:"curator:working:lists",LOOKING_FOR_INTEGRATION:"looking:for:integration",PRESENTATION_ID:"presentation:id",BRAZE_BANNER_PREFIX:"braze:banner",SHOW_SEARCH_MASK:"show:search:mask"}},74483:function(e,t,n){var r;n.d(t,{w:function(){return r}}),function(e){e.Disabled="Disabled",e.Active="Active",e.Inactive="Inactive"}(r||(r={}))},53778:function(e,t,n){n.r(t),n.d(t,{PastRequestsView:function(){return Mn}});var r=n(1024),i=n.n(r),a=n(57857),o=n(86120),l=n(23689),c=n(86242),s=n(66703),u=n(90335),d=n(15408),f=n(2491),m=n(30317),v=n(22430),p=n(50997),y=n(68893),g=n(48404),b=n(19226),h=n(95061),S=n(39396),E=n(63791),A=n(50072),w="libraryRequests.closedAlert";function C(e){var t;return(null===(t=e.libraryRequest)||void 0===t?void 0:t.status)!==A.l.Closed?i().createElement(i().Fragment,null):i().createElement("div",{className:"alert alert-warning mb-3 rounded d-flex align-items-center px-2",role:"alert"},i().createElement(S.x,{svgName:E.vn.Lock,className:"d-inline-block svg-container me-2"}),i().createElement(s.x,{namespace:w,phrase:"closedRequest"}))}var O=n(70065),k=n(40221),L=n(85887),j=n(99910),N=n(58424),T="search.filterActions";function R(e){return r.createElement("div",{className:"d-flex justify-content-between ".concat(e.className)},e.active?r.createElement(N.L,{className:"text-secondary hover-text-underline cursor-pointer",onClick:e.onClickReset},r.createElement(s.x,{namespace:T,phrase:"reset"})):r.createElement("div",{className:"invisible"}),r.createElement(N.L,{className:"info-link",onClick:e.onClickApply},r.createElement(s.x,{namespace:T,phrase:"apply"})))}R.defaultProps={active:!1,className:""};var _=(0,r.createContext)(null);function I(e,t){return"update"===t.type?t.payload:e}var x=n(53808),P=n(31647),F=n(52076);function D(e){return i().createElement("h3",{className:"h6 mb-2"},e.title)}var B=n(39023);function U(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function q(e){var t,n=Fe.displayTwoColumns(e.filter),i=e.draftState.selection;return r.createElement(r.Fragment,null,r.createElement(D,{title:e.filter.name}),r.createElement(j.Form,{className:"mb-3"},(t=e.filter.options.map((function(t){var a=e.filter.disabled||t.disabled,o=!!e.draftState.selection.find((function(e){return e.id.toString()===t.id.toString()})),l=Array.isArray(t.id)?t.id.join("_"):t.id;return r.createElement(B.X,{key:l,label:t.name,name:l,id:l,onChange:function(){return function(t,n){if(n){var r=-1;i.find((function(e,n){r>-1||e.id.toString()===t.id.toString()&&(r=n)}));var a=[].concat(U(i.slice(0,r)),U(i.slice(r+1)));e.setDraftState({active:!!a.length,selection:a})}else{var o=U(i);o.push(t),e.setDraftState({active:!!o.length,selection:o})}}(t,o)},checked:!a&&o,className:"my-1 ".concat(n?"col-md-6 col-12":""),isLabelEllipsis:n,disabled:a})})),n?r.createElement("div",{className:"d-flex flex-wrap"},t):t)))}function V(e,t){if(e){if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function X(e){var t,n,i,a=[],o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=V(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}(e.filter.options);try{var l=function(){var o,l=i.value,c=e.filter.disabled||l.disabled,s=null===(t=e.draftState.selection)||void 0===t?void 0:t.find((function(e){return(null==e?void 0:e.id)===l.id})),u=null!==(n=l.secondLayerOptions)&&void 0!==n?n:[],d=function(e,t){var n,r,i=(null===(n=null==e?void 0:e.secondLayerSelection)||void 0===n?void 0:n.length)>0,a=(null===(r=null==e?void 0:e.secondLayerSelection)||void 0===r?void 0:r.length)===t.length;return i&&!a}(s,u),f=!d&&!!s;a.push(r.createElement(B.X,{key:l.id,label:l.name,name:l.id,id:l.id,indeterminate:d,onChange:function(){return e.onToggleItem(l,f||d)},checked:!c&&f,className:"my-1",disabled:c})),Fe.hasManyFilterOptions(u)&&a.push.apply(a,(o=u.map((function(t){var n,i=c||t.disabled,a=!!(null===(n=null==s?void 0:s.secondLayerSelection)||void 0===n?void 0:n.find((function(e){return e.id===t.id})));return r.createElement(B.X,{key:t.id,label:t.name,name:t.id,id:t.id,onChange:function(){return e.onToggleChildItem(t,a,l)},checked:!i&&a,className:"my-1 ms-3",disabled:i})})),function(e){if(Array.isArray(e))return G(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||V(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))};for(o.s();!(i=o.n()).done;)l()}catch(e){o.e(e)}finally{o.f()}return r.createElement(r.Fragment,null,a)}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Q(e){var t,n,i,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}(e.filter.options);try{var o,l=function(){var a=i.value,o=e.filter.disabled||a.disabled,l=null===(t=e.draftState.selection)||void 0===t?void 0:t.find((function(e){return(null==e?void 0:e.id)===a.id})),c=(null!==(n=a.secondLayerOptions)&&void 0!==n?n:[]).map((function(t){var n,i=o||t.disabled,c=!!(null===(n=null==l?void 0:l.secondLayerSelection)||void 0===n?void 0:n.find((function(e){return e.id===t.id})));return r.createElement(B.X,{key:t.id,label:t.name,name:t.id,id:t.id,onChange:function(){return e.onToggleChildItem(t,c,a)},checked:!i&&c,className:"my-1",disabled:i})}));return{v:r.createElement(r.Fragment,null,c)}};for(a.s();!(i=a.n()).done;)if(o=l())return o.v}catch(e){a.e(e)}finally{a.f()}}function H(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $(e){var t=e.filter.options;function n(t,n,r){var i,a,o=e.draftState.selection,l=o.findIndex((function(e){return e.id===r.id}));if(!n){var c=[].concat(H(null!==(a=null===(i=o[l])||void 0===i?void 0:i.secondLayerSelection)&&void 0!==a?a:[]),[t]);if(0===o.length||-1===l){var s=Object.assign(Object.assign({},r),{secondLayerSelection:c}),u=[].concat(H(o),[s]);return void e.setDraftState({active:!!u.length,selection:u})}if(-1!==l){var d=o.map((function(e){return e.id===r.id?Object.assign(Object.assign({},e),{secondLayerSelection:c}):e}));return void e.setDraftState({active:!!d.length,selection:d})}}var f=o.map((function(e){if(e.id===r.id){var n=k.m.removeItem(e.secondLayerSelection,t);return Object.assign(Object.assign({},r),{secondLayerSelection:n})}return e}));0===f[l].secondLayerSelection.length&&(f=k.m.removeItem(f,r)),e.setDraftState({active:!!f.length,selection:f})}return r.createElement(r.Fragment,null,r.createElement(D,{title:e.filter.name}),r.createElement(j.Form,{className:"mb-3"},Fe.hasManyFilterOptions(t)?r.createElement(X,Object.assign({onToggleItem:function(n,r){var i,a=e.draftState.selection,o=a.findIndex((function(e){return e.id===n.id}));if(!r){var l=null===(i=null==t?void 0:t.find((function(e){return e.id===n.id})).secondLayerOptions)||void 0===i?void 0:i.filter((function(e){return!e.disabled})),c=Object.assign(Object.assign({},n),{secondLayerSelection:l});if(0===a.length||-1===o){var s=[].concat(H(a),[c]);return void e.setDraftState({active:!0,selection:s})}if(-1!==o){var u=a.map((function(e){return e.id===n.id?c:e}));return void e.setDraftState({active:!!u.length,selection:u})}}var d=k.m.removeItemFromIndex(a,a.findIndex((function(e){return e.id===n.id})));e.setDraftState({active:!!d.length,selection:d})},onToggleChildItem:n},e)):r.createElement(Q,Object.assign({onToggleChildItem:n},e))))}var z=n(9063);function K(e){var t=e.draftState.active;return r.createElement(r.Fragment,null,r.createElement(D,{title:e.filter.name}),r.createElement("div",{className:"d-flex align-items-start justify-content-between"},r.createElement("p",{className:"d-inline-block w-75"},e.filter.description),r.createElement(z.Z,{disabled:e.filter.disabled,onClick:function(){e.setDraftState({active:!t})},on:t})))}function Z(e){return i().createElement(i().Fragment,null,e.filter.options.map((function(t){return i().createElement(j.Dropdown.Item,{key:t.id,onClick:function(){return function(t){e.setDraftState({active:!t.default,selection:[t]})}(t)},disabled:e.filter.disabled||t.disabled},t.name)})))}function J(e){return r.createElement(r.Fragment,null,r.createElement(D,{title:e.filter.name}),r.createElement(j.Form,{className:e.isOnMoreFilters?"d-flex flex-wrap":""},e.filter.options.map((function(t){var n,i=e.filter.disabled||t.disabled,a=(null===(n=k.m.first(e.draftState.selection))||void 0===n?void 0:n.id.toString())===t.id.toString();return r.createElement(j.Form.Check,{key:t.id,type:"radio",label:t.name,name:t.id,id:t.id,value:t.id,onChange:function(){return function(t){e.setDraftState({active:!t.default,selection:[t]})}(t)},checked:!i&&a,className:"".concat("B3rOI"," ").concat(e.isOnMoreFilters?"w-50":""),disabled:i})}))))}var ee=n(63946),te=n(32557);function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?re(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ie=a.T.encloseNamespace("shared.ratingRangeSelector");function ae(e){var t=ne((0,te.X)({delay:1}),2),n=t[0],r=t[1];if(i().useEffect((function(){e.onHover(r?e.rating:null,e.isRatingValid)}),[r]),!e.rating.code)return i().createElement(i().Fragment,null);var a=i().createElement(N.L,{ref:n,className:e.getButtonClasses(e.rating,e.isActive,r,e.isRatingValid),onClick:e.onClick,disabled:e.disabled},e.rating.code);return e.disabled?a:i().createElement(ee.u,{title:e.isRatingValid?e.rating.name:ie("invalidRating"),spanHack:!0},a)}function oe(e){var t=ne(i().useState(!1),2),n=t[0],r=t[1],a=ne(i().useState([]),2),o=a[0],l=a[1];function c(t){return e.ratings.filter((function(e){return e.code&&e.value<=t.value}))}function s(t,n){t&&!e.isDisabled(t)?(n&&l(c(t)),r(n)):l([])}function u(t){return o.length?!!o.find((function(e){return e.id===t.id})):!!e.selections.find((function(e){return e.id===t.id}))}function d(t){if(!t)return!1;var n=e.yearGroups.findIndex((function(t){return t.value===e.yearGroup.value}));return 0===n||e.yearGroups.slice(0,n).every((function(e){return t.value>=e.rating.value}))}return i().createElement("div",null,i().createElement(j.ButtonGroup,null,e.ratings.map((function(t){var r;return i().createElement(ae,{key:t.id,rating:t,isRatingValid:!e.yearGroup||d(t),onClick:function(){return function(t){if(n){var r=c(t);e.onSelectRange(r)}}(t)},onHover:s,isActive:u(t),disabled:e.disabled||(null===(r=e.isDisabled)||void 0===r?void 0:r.call(e,t)),getButtonClasses:e.getButtonClasses})}))))}oe.defaultProps={selections:[]};function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ce(e){var t,n,i=e.filter.options,a=i.filter((function(e){return e.code})),o=(t=a,n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],l=a[a.length-1];return r.createElement(r.Fragment,null,r.createElement(D,{title:e.filter.name}),r.createElement("div",{className:"mb-2"},r.createElement(oe,{ratings:i,selections:e.draftState.selection,onSelectRange:function(t){e.setDraftState({active:!!t.length,selection:t})},disabled:e.filter.disabled,isDisabled:function(e){return e.disabled},getButtonClasses:function(e,t,n){var r="btn border text-nowrap";return r+=t||n?" btn-dark":" btn-outline-dark",n&&(r+=" active"),1===a.length?r+=" rounded":o.id===e.id?r+=" sLa86":l.id===e.id?r+=" xDcnT":r+=" rounded-0",r}})))}var se="filters.";function ue(e){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ue(e)}var de,fe={type:!0},me=["sort","classification","presentation","audience","yearGroup","moviesAndTv","type","rating","interactives","clips","classroom","hasResources","hasSubtitles","productionYear","isHd","producedByClickView","duration","tagOrClassification","status","isAdmin","bulkActionType","userType","filter","channel","dateBroadcast","categoryId","hasInteractives","jobStatus","source"].reduce((function(e,t){return Object.assign(Object.assign({},e),(n={},i=!fe[t],a=function(e,t){if("object"!=ue(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r=t),(r="symbol"==ue(a)?a:a+"")in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n));var n,r,i,a}),{});!function(e){e.MyVideos="my-videos",e.School="school",e.ExchangeArchive="exchange-archive",e.ClickView="clickview"}(de||(de={}));var ve=n(75459);function pe(e){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}a.T.encloseNamespace("sharedSearch.utils");var ge,be,he,Se,Ee,Ae,we="".concat(se,"library"),Ce=function(e,t){return(Array.isArray(e)?e:[e]).reduce((function(e,n){return t.reduce((function(e,t){var r,i=e[we]||[];return n===de.MyVideos&&t.type===ve.r.Workspace||n===de.School&&t.type===ve.r.CustomLibrary||n===de.ExchangeArchive&&t.type===ve.r.Exchange||n===de.ClickView&&t.type===ve.r.HostedLibrary?Object.assign(Object.assign({},e),function(e,t,n){var r;return r=function(e,t){if("object"!=pe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==pe(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},we,[].concat(function(e){if(Array.isArray(e))return ye(e)}(r=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[t.id.toString()]))):e}),e)}),{})};!function(e){e.CLICKVIEW_CURATED="is_clickview_curated",e.MOVIES_AND_TV="is_movies_and_tv",e.STREAMABLE_CURATED="is_streamable_learning_curated"}(ge||(ge={})),n(11306),n(79410),n(56285),n(1268),n(74483),n(46237),n(38182),n(76044),function(e){e.Online="online",e.Primary="primary",e.Curator="curator"}(be||(be={})),n(52086),i().createContext({}),function(e){e[e.Unknown=0]="Unknown",e[e.Staff=1]="Staff",e[e.Learner=2]="Learner",e[e.MasterVideo=3]="MasterVideo"}(he||(he={})),function(e){e.YearGroupRollover="year-group-rollover",e.ChangeYearGroup="change-year-group",e.DeleteUser="delete-user",e.RemoveUser="remove-user",e.DeactivateUser="deactivate-user",e.ActivateUser="activate-user",e.AddToClassroom="add-to-classroom",e.ResetPassword="reset-password",e.SendResetPasswordEmail="send-reset-password-email",e.SendAccountActivationEmail="send-account-activation-email",e.CreateUser="create-user",e.AddToAudience="add-to-audience",e.AddToBackboneClassification="add-to-backbone-classification",e.AddToBackboneAudience="add-to-backbone-audience",e.AddToClassification="add-to-classification",e.AddToSeries="add-to-series",e.AddToDirector="add-to-director",e.AddToDistributor="add-to-distributor",e.AddToProductionCompany="add-to-production-company",e.AddToProducer="add-to-producer",e.AddToLibrary="add-to-library",e.AddToCurationTag="add-to-curation-tag",e.AddToSkillTag="add-to-skill-tag",e.AddToPedagogyTag="add-to-pedagogy-tag",e.AddToNormalTag="add-to-normal-tag",e.AddToHiddenTag="add-to-hidden-tag",e.AddResourceAndLink="add-resource-and-link",e.Rostering="rostering"}(Se||(Se={})),function(e){e[e.NoAction=1]="NoAction",e[e.Succeed=1]="Succeed",e[e.Unknown=10]="Unknown",e[e.CustomerNotFound=100]="CustomerNotFound",e[e.UserNotFound=101]="UserNotFound",e[e.EmailNotVerified=131]="EmailNotVerified",e[e.UserDisabled=133]="UserDisabled",e[e.InvalidYearGroup=200]="InvalidYearGroup",e[e.MissingYearGroup=201]="MissingYearGroup",e[e.NewYearGroupNotSet=202]="NewYearGroupNotSet",e[e.ObjectNotFoundInBackboneClassification=300]="ObjectNotFoundInBackboneClassification",e[e.ObjectNotFoundInBackboneAudience=301]="ObjectNotFoundInBackboneAudience"}(Ee||(Ee={})),function(e){e[e.RolloverYearGroup=1]="RolloverYearGroup",e[e.DeactivateUser=2]="DeactivateUser",e[e.ChangeYearGroup=3]="ChangeYearGroup",e[e.DeleteUser=4]="DeleteUser",e[e.CreateUser=5]="CreateUser",e[e.ResetPassword=6]="ResetPassword",e[e.AddUsersClassroom=7]="AddUsersClassroom",e[e.SendAccountReminderEmail=8]="SendAccountReminderEmail",e[e.ActivateUser=9]="ActivateUser",e[e.AddToBackboneClassification=10]="AddToBackboneClassification",e[e.AddToClassification=11]="AddToClassification",e[e.AddToBackboneAudience=12]="AddToBackboneAudience",e[e.AddToAudience=13]="AddToAudience",e[e.AddVideosSeries=14]="AddVideosSeries",e[e.AddVideosDistributor=15]="AddVideosDistributor",e[e.AddVideosProductionCompany=16]="AddVideosProductionCompany",e[e.AddVideosProducer=17]="AddVideosProducer",e[e.AddVideosDirector=18]="AddVideosDirector",e[e.AddVideosLibrary=19]="AddVideosLibrary",e[e.AddVideosResourceAndLinks=21]="AddVideosResourceAndLinks",e[e.AddVideosTag=22]="AddVideosTag",e[e.SendAccountActivationEmail=23]="SendAccountActivationEmail",e[e.RemoveUser=24]="RemoveUser",e[e.Rostering=25]="Rostering"}(Ae||(Ae={})),n(74421),n(84868),a.T.encloseNamespace("userManager.utils"),Ae.ActivateUser,Ae.AddUsersClassroom,Ae.ChangeYearGroup,Ae.DeactivateUser,Ae.DeleteUser,Ae.ResetPassword,Ae.RolloverYearGroup,Ae.SendAccountReminderEmail,Ae.CreateUser,Ae.SendAccountActivationEmail,Ae.RemoveUser;var Oe=(a.T.encloseNamespace("sharedSearch.utils"),function(e){switch(e){case"bite-sized":return"...179999";case"short":return"180000...299999";case"medium":return"300000...899999";case"long":return"900000..."}}),ke=(a.T.encloseNamespace("sharedSearch.utils"),function(e){var t=(new Date).getFullYear();switch(e){case"any-year":return"";case"this-year":return"".concat(t,"...");case"last-3-years":return"".concat(t-3,"...");case"last-5-years":return"".concat(t-5,"...")}});function Le(e,t){return e.split("-to-").map((function(e){return t.find((function(t){return t.code===e}))}))}function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function Ne(e,t,n){var r;return r=function(e,t){if("object"!=je(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==je(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_e(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function Re(e){return function(e){if(Array.isArray(e))return Ie(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_e(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(e,t){if(e){if("string"==typeof e)return Ie(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ie(e,t):void 0}}function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xe=a.T.encloseNamespace("sharedSearch.utils"),Pe={classification:!0,categoryId:!0,channel:!0},Fe={displayTwoLayers:function(e){var t=this;return"nested-checkbox"===e.type&&!!this.hasManyFilterOptions(e.options)&&!e.options.every((function(e){return!t.hasManyFilterOptions(null==e?void 0:e.secondLayerOptions)}))},hasManyFilterOptions:function(e){return e.length>=2},displayTwoColumns:function(e){var t;return Pe[e.id]&&(null===(t=e.options)||void 0===t?void 0:t.length)>=10},showPresentationFilter:function(e){var t,n;return!!(null===(t=e.options)||void 0===t?void 0:t.length)&&(e.options.length>1||!!(null===(n=k.m.first(e.options).secondLayerOptions)||void 0===n?void 0:n.length))},getMoreFilters:function(e){return{id:"moreFilters",name:xe("moreFilters"),type:"more-filters",filters:e}},mapTypeToComponent:function(e){switch(e){case"switch":return function(e){return r.createElement(K,Object.assign({key:e.id},e))};case"checkbox":return function(e){return r.createElement(q,Object.assign({key:e.id},e))};case"nested-checkbox":return function(e){return r.createElement($,Object.assign({key:e.id},e))};case"radio":return function(e){return r.createElement(J,Object.assign({key:e.id},e))};case"rating":return function(e){return r.createElement(ce,Object.assign({key:e.id},e))};case"dropdown":return function(e){return r.createElement(Z,Object.assign({key:e.id},e))};default:return function(){return r.createElement(r.Fragment,null)}}},deriveInitialStateFromQuery:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i={sort:{active:!!e.sort,selection:De(e,t,"sort")},classification:{active:!!e.classification,selection:De(e,t,"classification")},presentation:{active:!!e.presentation,selection:De(e,t,"presentation")},type:{active:!!e.type,selection:De(e,t,"type")},rating:{active:!!e.rating,selection:De(e,t,"rating")},interactives:{active:e.interactives},clips:{active:e.clips},yearGroup:{active:!!e.yearGroup,selection:De(e,t,"yearGroup")},moviesAndTv:{active:!!e.moviesAndTv},classroom:{active:!!e.classroom,selection:De(e,t,"classroom")},audience:{active:!!e.audience,selection:De(e,t,"audience")},hasResources:{active:e.hasResources},hasSubtitles:{active:e.hasSubtitles},productionYear:{active:!!e.productionYear,selection:De(e,null==n?void 0:n.filters,"productionYear")},isHd:{active:e.isHd},producedByClickView:{active:e.producedByClickView},duration:{active:e.duration,selection:De(e,null==n?void 0:n.filters,"duration")},tagOrClassification:{active:!!e.tagOrClassification,selection:De(e,t,"tagOrClassification")},status:{active:!!e.status,selection:De(e,t,"status")},jobStatus:{active:!!e.jobStatus,selection:De(e,t,"jobStatus")},isAdmin:{active:e.isAdmin},bulkActionType:{active:!!e.bulkActionType,selection:De(e,t,"bulkActionType")},userType:{active:!!e.userType,selection:De(e,t,"userType")},filter:{active:!!e.filter,selection:De(e,t,"filter")},channel:{active:!!e.channel,selection:De(e,t,"channel")},dateBroadcast:{active:!!e.dateBroadcast,selection:De(e,t,"dateBroadcast")},categoryId:{active:!!e.categoryId,selection:De(e,t,"categoryId")},hasInteractives:{active:!!e.hasInteractives,selection:De(e,t,"hasInteractives")},source:{active:!!e.source,selection:De(e,t,"source")}},a=t.reduce((function(e,t){return e[t.id]=i[t.id],e}),{});return(null==n?void 0:n.filters)&&(a.moreFilters=n.filters.reduce((function(e,t){return e[t.id]=i[t.id],e}),{})),a.appLink=r,a},hasActiveFilters:function(e){var t=Object.keys(e);return!!t.length&&!!t.filter((function(t){return"query"!==t&&"cursor"!==t&&"page"!==t&&!(Array.isArray(e[t])&&!e[t].length)})).length},getLabel:function(e,t){var n,r;if(!(null===(n=null==t?void 0:t.selection)||void 0===n?void 0:n.length))return e.name;if("dropdown"===e.type)return k.m.first(t.selection).name;if("radio"===e.type){var i=k.m.first(t.selection);return!i||i.default?e.name:i.name}if("nested-checkbox"===e.type||"checkbox"===e.type){var a=e.options.find((function(e){return e.default&&t.selection.find((function(t){return t.id===e.id}))}));if(a)return e.name;if(e.secondaryId){var o=null===(r=t.selection)||void 0===r?void 0:r.reduce((function(t,n){var r,i,a,o=e.options,l=o.findIndex((function(e){return e.id===n.id}));return 0===(null===(r=o[l].secondLayerOptions)||void 0===r?void 0:r.length)?t+1:null!==(a=t+(null===(i=n.secondLayerSelection)||void 0===i?void 0:i.length))&&void 0!==a?a:0}),0);return"".concat(e.name," - ").concat(o)}return"".concat(e.name," - ").concat(t.selection.length)}if("rating"===e.type){if(!t.selection.length)return e.name;var l=k.m.first(t.selection),c=k.m.last(t.selection);return 1===t.selection.length?"".concat(e.name,": ").concat(l.code):"".concat(e.name,": ").concat(l.code," to ").concat(c.code)}},buildFrontendFilterParams:function(e,t){var n=Object.assign({},e);return t.forEach((function(e){var t,r;if(null==e?void 0:e.filter){var i=e.filter,a=i.id,o=i.type,l=e.state,c=l.active,s=l.selection;switch(o){case"switch":case"button":n[a]=c?"true":"";break;case"radio":case"dropdown":var u=1===(null===(t=e.state.selection)||void 0===t?void 0:t.length)&&(null===(r=k.m.first(e.state.selection))||void 0===r?void 0:r.default);n[a]=e.state.selection.length&&!u?k.m.first(e.state.selection).id:"";break;case"nested-checkbox":n[a]=c?s.map((function(e){return e.id})):null;var d,f=e.filter.secondaryId;f&&(n[f]=(d=[]).concat.apply(d,Re(s.map((function(e){return e.secondLayerSelection.map((function(e){return e.id}))})))));break;case"checkbox":if(!c){n[a]=null;break}var m,v=[],p=Te(s);try{for(p.s();!(m=p.n()).done;){var y=m.value,g=y.id.toString().split(":");if(g.length>1){var b,h=Te(g);try{for(h.s();!(b=h.n()).done;){var S=b.value;v.push(S)}}catch(e){h.e(e)}finally{h.f()}}else v.push(y.id)}}catch(e){p.e(e)}finally{p.f()}n[a]=v;break;case"tag":n[a]=c?s.map((function(e){return e.id})):null;break;case"rating":n[a]=c?function(e){if(!(null==e?void 0:e.length))return"";var t=k.m.first(e),n=k.m.last(e);return 1===e.length?t.code:"".concat(t.code,"-to-").concat(n.code)}(s):null}n[a]||delete n[a]}})),L.t.omit(n,["cursor"])},buildBackendFilterParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,i=n?Ne(Ne({},"filters.presentation",arguments.length>2?arguments[2]:void 0),"isLearner",n):{};return Object.keys(e).reduce((function(n,i){var a=e[i];return Array.isArray(a)&&!a.length||!a?n:me[i]?"rating"===i?(n["".concat(se).concat(i)]=function(e,t){var n=Le(e,t);if(1===n.length){var r=k.m.first(n);return"0...".concat(r.value)}var i=k.m.last(n);return"0...".concat(i.value)}(a,t),n):"productionYear"===i?(n["".concat(se).concat(i)]=ke(a),n):"duration"===i?(n["".concat(se).concat(i)]=Oe(a),n):"moviesAndTv"===i?(n["".concat(se,"curationTag")]=ge.MOVIES_AND_TV,n):"source"===i?Object.assign(Object.assign({},n),Ce(a,r)):(n["".concat(se).concat(i)]=a,n):n}),i)},getAppliedIndices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;if(t){if(!Array.isArray(t))return[t];if(t.length)return t}return e.source?["video","clip","interactive"]:["series","video","playlist","classification","clip","interactive","company"]},applyFilter:function(e,t,n,r){if(!L.t.isEqual(t,n)){var i=Object.keys(n).map((function(t){var r,i,a=e.find((function(e){return e.id===t})),o=n[t],l=1===(null===(r=o.selection)||void 0===r?void 0:r.length)&&(null===(i=k.m.first(o.selection))||void 0===i?void 0:i.default);return{filter:a,state:{active:o.active&&!l,selection:o.selection}}})),a=P.Q.Ab.GetQuery();P.Q.C$.trigger(Object.assign(Object.assign({},r),{params:Fe.buildFrontendFilterParams(a,i)}),{replace:!0})}},mixinDisabledFields:function(e,t,n,r){var i,a=[].concat(Re(n),Re(null!==(i=null==r?void 0:r.filters)&&void 0!==i?i:[]));a=function(e,t,n){var r=n.reduce((function(e,t){return e[t]=!0,e}),{});return t.map((function(n){var i;if(!(null===(i=n.compatibleIndices)||void 0===i?void 0:i.length))return n;if(!n.compatibleIndices.find((function(e){return r[e]})))return Object.assign(Object.assign({},n),{disabled:!0});var a=Object.keys(e).filter((function(t){var n=e[t];return"active"in n&&n.active})),o=!1;return a.forEach((function(e){var r;if(!o){var i=t.find((function(t){return t.id===e}));if(null===(r=i.compatibleIndices)||void 0===r?void 0:r.length){var a=i.compatibleIndices.reduce((function(e,t){return e[t]=!0,e}),{});n.compatibleIndices.find((function(e){return a[e]}))||(o=!0)}}})),Object.assign(Object.assign({},n),{disabled:o})}))}(e,a,t),a=function(e,t){return t.map((function(n){if(!x.q.isFunction(n.disableOptions))return n;var r=n.disableOptions(n.options,t,e);return Object.assign(Object.assign({},n),{options:r})}))}(e,a);var o={mainFilters:a.filter((function(e){return n.find((function(t){return t.id===e.id}))}))};return(null==r?void 0:r.filters)&&(o.moreFilters=Object.assign(Object.assign({},r),{filters:a.filter((function(e){return r.filters.find((function(t){return t.id===e.id}))}))})),o},logFilterEvent:function(e,t,n,r,i){var a,o=[];null==e||e.forEach((function(e){var t=n[e.id];t.active&&o.push({type:e.id,selection:t.selection})})),null===(a=null==t?void 0:t.filters)||void 0===a||a.forEach((function(e){var t=n.moreFilters[e.id];t.active&&o.push({type:e.id,selection:t.selection})})),o.length||(i.descriptor=O.OR.Reset),F.k.logUserAction({query:null!=r?r:"",filters:o},F.k.mergeOptions(i,{workflowPhase:O.eu.Complete,actionType:O.Vw.Filter}))},getObjectTypeOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[{id:"classification",name:xe("topics")},{id:"playlist",name:xe("playlists")},{id:"series",name:xe("series")},{id:"video",name:xe("videos")},{id:"clip",name:xe("clips")},{id:"interactive",name:xe("interactives")}].filter((function(t){return!e.find((function(e){return e===t.id}))}))},getIsObjectTypeOptionDisabled:function(e,t,n){return e.map((function(e){var r=!1;return t.forEach((function(t){var i;if(!r){var a=n[t.id]||n.moreFilters[t.id];(null==a?void 0:a.active)&&(null===(i=t.compatibleIndices)||void 0===i?void 0:i.length)&&(t.compatibleIndices.find((function(t){return e.id===t}))||(r=!0))}})),Object.assign(Object.assign({},e),{disabled:r})}))},getNameSortOptions:function(){return[{id:"newest",name:xe("newest")},{id:"oldest",name:xe("oldest")},{id:"first-name-atoz",name:xe("firstNameAToZ")},{id:"first-name-ztoa",name:xe("firstNameZToA")},{id:"surname-atoz",name:xe("surnameAToZ")},{id:"surname-ztoa",name:xe("surnameZToA")}]},getYearGroupOptions:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.value.toString(),name:e.name}})):[]},getStatusOptions:function(){return[{id:"active",name:xe("active")},{id:"deactivated",name:xe("deactivated")},{id:"pending",name:xe("pending")}]},getJobStatusOptions:function(){return[{id:"completed",name:xe("completed")},{id:"failed",name:xe("errored")},{id:"inProgress",name:xe("inProgress")}]},getTvFieldsOptions:function(){return[{id:"0",name:xe("allFields"),default:!0},{id:"1",name:xe("titleDescriptionField")},{id:"2",name:xe("captionsField")}]},getTvChannelOptions:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.name,name:e.name}})):[]},getTvDateBroadcastOptions:function(){return[{id:"any-time",name:xe("anyTime"),default:!0},{id:"yesterday",name:xe("yesterday")},{id:"last-week",name:xe("lastWeek")},{id:"last-2-weeks",name:xe("last2Weeks")}]},getCategoriesOptions:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.data.id,name:e.data.name}})):[]}};function De(e){var t,n,r=arguments.length>2?arguments[2]:void 0,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).find((function(e){return e.id===r}));if(!i)return[];if(!e[r])return null!==(n=null===(t=i.options)||void 0===t?void 0:t.filter((function(e){return e.default})))&&void 0!==n?n:[];if("rating"===r)return function(e,t){if(Array.isArray(e))return e;var n=t.options,r=Le(e,n),i=k.m.last(r);return n.filter((function(e){return e.value>0&&e.value<=i.value}))}(e[r],i);var a=e[r];return Array.isArray(a)||(a=[a]),"classification"===r?function(e,t){var n,r;return null!==(r=null===(n=null==e?void 0:e.options)||void 0===n?void 0:n.filter((function(e){return e.id.split(":").every((function(e){return t.find((function(t){return t.toString()===e.toString()}))}))})))&&void 0!==r?r:[]}(i,a):"presentation"===r?function(e,t,n){return Be(e,t).map((function(e){var t=n.audience,r=Be(e.secondLayerOptions,t);return Object.assign(Object.assign({},e),{secondLayerSelection:r})}))}(i.options,a,e):Be(i.options,a)}function Be(e,t){var n;return Array.isArray(t)||(t=[t]),null!==(n=null==e?void 0:e.filter((function(e){return t.find((function(t){return t.toString()===e.id.toString()}))})))&&void 0!==n?n:[]}var Ue={hideCaret:"KDq7l",filterMenu:"E9o_Q",twoColumnsWidth:"C70vU",nestedCheckboxesWidth:"kUHcg",switchWidth:"bi1FH",moreFiltersWidth:"rbr22",svgContainer:"UwDMA"};function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}function qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ve(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ge(e){var t=r.useContext(_).state,n=t[e.filter.id],i="dropdown"===e.filter.type,a=qe(r.useState(e.filter.name),2),o=a[0],l=a[1],c=qe(r.useState(!1),2),s=c[0],u=c[1],d=qe(r.useState(n),2),f=d[0],m=d[1];function v(e){m(e),i&&p(e)}function p(){var r,i,a,o,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;Fe.applyFilter([e.filter],n,(r={},i=e.filter.id,a=l,o=function(e,t){if("object"!=Me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i),(i="symbol"==Me(o)?o:o+"")in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r),t.appLink)}r.useEffect((function(){l(Fe.getLabel(e.filter,n)),m(n)}),[e.filter,null==n?void 0:n.selection]);var y,g=r.useMemo((function(){return e.filter.customComponent?e.filter.customComponent:Fe.mapTypeToComponent(e.filter.type)}),[e.filter.type]),b=e.hideCaret&&!i?Ue.hideCaret:"",h=(y=e.filter,Fe.displayTwoColumns(y)?Ue.twoColumnsWidth:"classification"===y.id?Ue.classificationWidth:Fe.displayTwoLayers(y)?Ue.nestedCheckboxesWidth:"switch"===y.type?Ue.switchWidth:"");return"button"===e.filter.type?r.createElement(g,{filter:e.filter,draftState:f,setDraftState:v}):r.createElement(j.Dropdown,{onToggle:function(e){u(e),e||i||p()},show:s},r.createElement(j.Dropdown.Toggle,{id:"filterButton-".concat(e.filter.id),className:"".concat("fw-semibold mx-1 btn d-flex align-items-center"," ").concat(b),variant:n.active&&!i?"dark":"outline-dark",disabled:e.filter.disabled},!!e.filter.icon&&r.createElement("div",{className:Ue.svgContainer},r.createElement(S.x,{svgName:e.filter.icon})),e.filter.labelPrefix," ",o),r.createElement(j.Dropdown.Menu,null,r.createElement("div",{className:"mx-1 ".concat(Ue.filterMenu," ").concat(h," ").concat(i?"":"px-2 py-1")},r.createElement(g,{filter:e.filter,draftState:f,setDraftState:v}),!i&&!e.filter.disabled&&r.createElement(R,{active:f.active,onClickReset:function(){var t,n=null===(t=e.filter.options)||void 0===t?void 0:t.find((function(e){return e.default}));m({active:!1,selection:n?[n]:[]})},onClickApply:function(){p(),u(!1)}}))))}function Xe(e){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xe(e)}Ge.defaultProps={hideCaret:!0};var Ye={getSetStateByKey:function(e,t,n){return function(r){return e((function(e){var i=x.q.isFunction(n)?n:x.q.useIdentity();return Object.assign(Object.assign({},e),function(e,t,n){var r;return r=function(e,t){if("object"!=Xe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Xe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==Xe(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,i(r,e)))}))}}};function Qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return He(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?He(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function He(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function We(e){return Object.keys(e).reduce((function(t,n){return e[n].active?t+1:t}),0)}function $e(e){var t=r.useContext(_).state,n=t.moreFilters,i=Qe(r.useState(e.filter.name),2),a=i[0],o=i[1],l=Qe(r.useState(!1),2),c=l[0],s=l[1],u=Qe(r.useState(n),2),d=u[0],f=u[1],m=Qe(r.useState(We(n)),2),v=m[0],p=m[1],y=Object.keys(n).map((function(e){return"".concat(e,":").concat(n[e].active)})).join("-");function g(){Fe.applyFilter(e.filter.filters,n,d,t.appLink)}r.useEffect((function(){f(n),p(We(n))}),[e.filter,y]),r.useEffect((function(){o(v?"".concat(e.filter.name," - ").concat(v):e.filter.name)}),[v]);var b="fw-semibold ".concat(Ue.hideCaret," mx-1 btn");return r.createElement(j.Dropdown,{onToggle:function(e){s(e),e||g()},show:c},r.createElement(j.Dropdown.Toggle,{id:e.filter.id,className:b,variant:v?"dark":"outline-dark"},a),r.createElement(j.Dropdown.Menu,{onClick:function(e){return e.stopPropagation()}},r.createElement("div",{className:"mx-1 ".concat(Ue.moreFiltersWidth," ").concat("dropdown"!==e.filter.type?"px-2 py-1":"")},e.filter.filters.map((function(e){var t=e.customComponent?e.customComponent:Fe.mapTypeToComponent(e.type);return r.createElement("div",{key:e.id,className:"mb-2"},r.createElement(t,{filter:e,draftState:d[e.id],setDraftState:Ye.getSetStateByKey(f,e.id),isOnMoreFilters:!0}))})),r.createElement(R,{active:!!Object.keys(d).find((function(e){return d[e].active})),onClickReset:function(){var t=Object.keys(n).reduce((function(t,n){var r,i=null===(r=e.filter.filters.find((function(e){return e.id===n})).options)||void 0===r?void 0:r.find((function(e){return e.default}));return t[n]={active:!1,selection:i?[i]:[]},t}),{});f(t)},onClickApply:function(){g(),s(!1)}}))))}var ze,Ke={tagList:"Zw6d9",disabled:"jlL1c",partialTag:"too_N",badge:"OjtN8",close:"X9joI"},Ze=i().memo((function(e){var t=e.tagClass,n="partial-loading-background d-inline-block rounded-pill py-1 px-2 mb-1 me-1 text-nowrap ".concat(void 0===t?"":t," ").concat(Ke.partialTag);return i().createElement("div",{className:"mt-1"},i().createElement("span",{className:n}," "))})),Je=n(37360),et=n(49642),tt={seeMore:"yv0FS"},nt=a.T.encloseNamespace("shared.widgetHeader");function rt(e){return i().createElement("div",{className:"ms-3 ".concat(tt.seeMore)},i().createElement(et.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{descriptor:O._S.SeeMore}),className:"text-decoration-none ".concat(e.appLink?"curated-widget-link":"")},i().createElement("p",{className:"hover-text-underline text-dark curated-widget-heading"},nt("seeMore"))))}function it(e){var t=!!e.description;return e.name||e.description?i().createElement("div",{className:"curated-widget-header"},i().createElement("div",{className:"d-flex justify-content-between"},!!e.name&&i().createElement("div",{className:tt.title},i().createElement(et.F,{appLink:e.appLink,analyticsOptions:e.analyticsOptions,analyticsData:e.analyticsData,className:"text-decoration-none ".concat(e.appLink?"curated-widget-link":"")},i().createElement("h2",{className:"h4 curated-widget-heading"},e.name))),!!e.appLink&&!t&&!!e.showSeeMoreLink&&i().createElement(rt,Object.assign({},e))),t&&i().createElement("div",{className:"d-flex justify-content-between align-items-end"},i().createElement("p",{className:"description curated-widget-description ".concat(tt.description)},i().createElement("span",{className:"clamp-2"},e.description)),!!e.appLink&&!!e.showSeeMoreLink&&i().createElement(rt,Object.assign({},e)))):i().createElement(i().Fragment,null)}!function(e){e.Percentage="%",e.Pixels="px"}(ze||(ze={}));var at=new Image;at.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var ot,lt=function(e){e.dataTransfer.setDragImage&&x.q.isFunction(e.dataTransfer.setDragImage)&&e.dataTransfer.setDragImage(at,0,0)},ct=Je.V.isTouchScreen(),st=r.forwardRef((function(e,t){var n,i,a,o,l=e.children,c=e.positionType,s=e.onDrag,u=e.onDragEnd,d=e.onTouchMove,f=e.onTouchEnd,m=e.percentageDragged,v=e.position,p=void 0===v?0:v;return r.createElement("div",Object.assign({className:"d-flex flex-nowrap position-relative w-100",style:(i=p,a=c,o=m,a===ze.Percentage&&o&&(i-=o),{transform:"translate3d(".concat(i).concat(a,", 0px, 0px)"),transition:"transform .4s ease-in-out"}),ref:t},(n={},s&&u&&(n.draggable=!0,n.onDragEnd=u,n.onDragStart=lt,n.onDragOver=s),d&&f&&ct&&(n.onTouchMoveCapture=d,n.onTouchEndCapture=f),n)),l)})),ut="VSAPU",dt="kgeXh";!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(ot||(ot={}));var ft,mt=r.memo((function(e){var t,n,i,a=e.direction===ot.Left,o=a?E.vn.ChevronLeft:E.vn.ChevronRight;return e.hide?r.createElement(r.Fragment,null):r.createElement("div",{className:"_ejId",style:"videos"===(null===(n=e.state)||void 0===n?void 0:n.contents)?{paddingBottom:56.25/(null===(i=e.state)||void 0===i?void 0:i.viewableItems)+"%"}:{height:"100%"}},e.useGradientBackdrop&&r.createElement("div",{className:a?"".concat("Pt3nx"," ").concat(e.leftGradientClassName):"".concat("ZuAif"," ").concat(e.rightGradientClassName)}),!e.hideExtendedClickableArea&&r.createElement("div",{role:"button",onClick:e.onClick,className:"".concat("AtsWP"," ").concat(a?ut:dt)}),r.createElement("div",{role:"button",className:"".concat((t="BVcIS",t+=a?" ".concat(ut," ").concat(e.leftButtonClassName):" ".concat(dt," ").concat(e.rightButtonClassName))," ").concat("gAsE9"," ").concat(e.className||""),onClick:e.onClick},e.hoverText&&r.createElement("span",{className:"ps-3 pe-2 ".concat("APA36")},e.hoverText),r.createElement(S.x,{svgName:o,size:S.S.Medium,className:"svg-container d-inline-block ".concat("Ev4hr")})))}));!function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag",e.Update="update",e.JumpToIndex="jump-to-index"}(ft||(ft={}));var vt=n(90547),pt=n(5256),yt=n(29267);function gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bt,ht,St,Et=n(89146);!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived"}(bt||(bt={})),function(e){e.ThumbnailHeroMedia="thumbnail_hero_media",e.ThumbnailFeaturedMedia="thumbnail_featured_media",e.ThumbnailSlidingListSmall="thumbnail_sliding_list_small",e.ThumbnailSlidingListSmallV2="thumbnail_sliding_list_small_v2",e.ThumbnailSlidingListLarge="thumbnail_sliding_list_large",e.CoverSlidingPillListSmall="cover_sliding_pill_list_small",e.CoverFixedPillListLarge="cover_fixed_pill_list_large",e.CoverFixedPillListXSmall="cover_fixed_pill_list_xsmall",e.CoverFixedTileList="cover_fixed_tile_list",e.PosterSlidingListLarge="poster_sliding_list_large",e.PosterSlidingListMedium="poster_sliding_list_medium",e.PosterSlidingListSmall="poster_sliding_list_small",e.FeaturedThumbnailSlidingList="featured_thumbnail_sliding_list",e.HeroBanner="hero_banner",e.HeroBannerSmall="hero_banner_small",e.HeroThumbnailSmall="hero_thumbnail_small",e.ThumbnailFixedListXLarge="thumbnail_fixed_list_xlarge",e.ThumbnailFixedListLarge="thumbnail_fixed_list_large",e.ThumbnailFixedListSmall="thumbnail_fixed_list_small",e.EditableCoverFixedPillListSmall="editable_cover_fixed_pill_list_small",e.Heading="heading",e.AuthorReviewer="author_reviewer",e.Question="question",e.QuestionAccordion="question_accordion",e.ThumbnailFixedListMediaLarge="thumbnail_fixed_list_media_large",e.PopoutThumbnailSlidingListLarge="popout_thumbnail_sliding_list_large",e.PopoutThumbnailSlidingListSmall="popout_thumbnail_sliding_list_small",e.OnboardingSteps="onboarding_steps",e.ThumbnailVerticalList="thumbnail_vertical_list",e.CircleLogoSlidingList="circle_logo_sliding_list",e.FilterSlidingPillListSmall="filter_sliding_pill_list_small",e.EventIconSlidingList="event_icon_sliding_list"}(ht||(ht={})),function(e){e.CuratedMedia="curated_media",e.PlaylistMedia="playlist_media",e.ClassificationMedia="classification_media",e.LatestReleasedVideos="latest_released_videos",e.ContinueWatching="continue_watching_videos",e.CompanyLatestReleasedVideo="company_latest_released_video",e.CompanyVideos="company_videos",e.ClassificationLatestReleasedVideo="classification_latest_released_video",e.CuratedClassifications="curated_classifications",e.Classifications="classifications",e.ClassificationLatestReleasedVideos="classification_latest_released_videos",e.SpecialEventClassifications="special_event_classifications",e.CuratedSeries="curated_series",e.CuratedPlaylists="curated_playlists",e.Blurb="blurb",e.DynamicBlurb="dynamic_blurb",e.AuthorReviewer="author_reviewer",e.Faq="faq",e.CuratedCompanies="curated_companies",e.Ratings="ratings",e.Presentations="presentations",e.UpcomingLivestreams="upcoming_livestreams",e.CuratedMultimedia="curated_multimedia",e.ClassificationPlaylists="classification_playlists",e.ClassificationSeries="classification_series",e.ClassificationFeaturedVideo="classification_featured_video",e.ClassificationPinnedVideos="classification_pinned_videos"}(St||(St={}));var At,wt=n(71551);function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(At||(At={}));var Ot={getSliderAnalyticsOptions:function(){return{actionType:O.Vw.Click,location:O.LZ.SlidingList,entity:O.py.Widget,descriptor:O._S.Slide}},getSliderItemAnalyticsOptions:function(){return{location:O.LZ.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:O.Vw.Click,location:O.LZ.SlidingList,entity:O.py.Widget,descriptor:O._S.Title}},useGetContent:function(e,t){return i().useMemo((function(){var n;if(!e)return{content:null,unfilteredContent:null};if(!Array.isArray(e))return{content:e,unfilteredContent:e};var r,i=null!==(n=null==t?void 0:t.reduce((function(e,t){return e[t.id]=t,e}),{}))&&void 0!==n?n:{},a=function(e){if(Array.isArray(e))return Ct(e)}(r=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=a.sort((function(e,t){var n,r,o,l,c=null!==(r=null===(n=i[e.id])||void 0===n?void 0:n.index)&&void 0!==r?r:a.findIndex((function(t){return t.id===e.id})),s=null!==(l=null===(o=i[t.id])||void 0===o?void 0:o.index)&&void 0!==l?l:a.findIndex((function(e){return e.id===t.id}));return c<s?-1:c>s?1:0}));return{content:o.filter((function(e){var t;return!(null===(t=i[e.id])||void 0===t?void 0:t.hidden)})),unfilteredContent:o}}),[e,t])},getCustomAppLink:function(e){var t,n,r,i,a,o;return(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===wt.OL.LatestReleases?null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.latestReleases)||void 0===r?void 0:r.call(n):(null===(i=e.metadata)||void 0===i?void 0:i.appLink)===wt.OL.ExploreAllTopics?null===(o=null===(a=e.appLinks)||void 0===a?void 0:a.allTopics)||void 0===o?void 0:o.call(a,e.presentation.id):null},getWidgetStatus:function(e){var t=e.status;if("string"==typeof t)switch(t){case At.Archived:t=bt.Archived;break;case At.Published:t=bt.Published;break;case At.Draft:t=bt.Draft}return t},formatResponseData:function(e,t){var n=e.content;if(!n)return e;if("author"in n)return e.content=[n],e;switch("data"in n?e.content=n.data:Array.isArray(n)||(e.content=[n]),e.widgetId){case St.ClassificationSeries:e.content=e.content.filter((function(e){var t;return!!(null===(t=e.tallPoster)||void 0===t?void 0:t.id)}));break;case St.ClassificationPlaylists:e.content=e.content.filter((function(e){var t;return!!(null===(t=e.cover)||void 0===t?void 0:t.id)}));break;case St.ContinueWatching:e.content=e.content.map((function(e){return e.object}));default:break;case St.Presentations:e.content=e.content.filter((function(e){var n;return e.id.toString()!==(null===(n=null==t?void 0:t.id)||void 0===n?void 0:n.toString())}))}return e},isWidgetInTableOfContents:function(e){return!!(null==e?void 0:e.showInTableOfContents)},hasNoContent:function(e){return e===St.Blurb},canDisplayOnScreenSize:function(e,t,n){return t!==St.Blurb||n!==ht.HeroBannerSmall||!e.xs&&!e.sm},isCompanyWidget:function(e){switch(e){case St.CompanyLatestReleasedVideo:case St.CompanyVideos:return!0;default:return!1}}},kt=function(e,t,n){return function(){e.container.current&&(e.container.current.style.transition=""),t({type:ft.Resize,payload:{elementRefs:e,mediaQuery:n}})}},Lt=function(e){return function(){e.current&&(e.current.style.transition="transform .4s ease-in-out")}},jt=function(e,t,n,r,i){return function(a){var o=a.clientX,l=r;l||(l=Object.assign(Object.assign({},t),{initialMouseX:o}),i(l),e.current.style.transition=""),n({type:ft.Drag,payload:{widgetSnapshot:l,currentMouseX:o}})}},Nt=function(e,t){return function(){e.current.style.transition="transform .4s ease-in-out",t(null)}};function Tt(e){return e===vt.r.XS?200:e===vt.r.SM||e===vt.r.MD?350:500}var Rt={offset:0,containerLeftPosition:null,containerRightPosition:null,firstElementPosition:null,lastElementPosition:null,hideLeftButton:!0,hideRightButton:!0,maxSlideDistance:0,leftOffsetLimit:null},_t=function(e){var t=e.elementRefs,n=t.container,r=t.lastElement;if(!(null==n?void 0:n.current)||!(null==r?void 0:r.current))return Rt;var i=n.current.getBoundingClientRect(),a=i.left,o=i.right,l=a,c=r.current.getBoundingClientRect().right,s=o-c;return Object.assign(Object.assign({},Rt),{containerLeftPosition:a,containerRightPosition:o,firstElementPosition:l,lastElementPosition:c,hideRightButton:c<o,leftOffsetLimit:s,maxSlideDistance:Tt(e.mediaQuery)})},It=function(e){var t=_t(Object.assign(Object.assign({},e),e.elementRefs));return Object.assign(Object.assign({},t),{maxSlideDistance:Tt(e.mediaQuery)})},xt=function(e){var t=e.firstElementPosition,n=e.lastElementPosition,r=e.maxSlideDistance,i=e.offset,a=e.containerRightPosition,o=n-a>=r?r:n-a;return{firstElementPosition:t-o,lastElementPosition:n-o,offset:i-o,hideRightButton:n-o===a,hideLeftButton:!1}},Pt=function(e){var t=e.containerLeftPosition,n=e.firstElementPosition,r=e.lastElementPosition,i=e.maxSlideDistance,a=e.offset,o=n+i<=t,l=o?i:Math.abs(a);return{firstElementPosition:n+l,lastElementPosition:r+l,offset:a+l,hideLeftButton:!o||n+l===t,hideRightButton:!1}},Ft=function(e,t){var n=t.widgetSnapshot,r=t.currentMouseX;if(n.hideLeftButton&&n.hideRightButton)return{};var i=n.initialMouseX-r,a=n.offset-i,o=n.firstElementPosition-i,l=n.lastElementPosition-i,c=!1,s=!1;return o>e.containerLeftPosition&&(a=0,o=e.containerLeftPosition,l=e.lastElementPosition,c=!0),l<=e.containerRightPosition&&(a=e.leftOffsetLimit,o=e.containerLeftPosition-Math.abs(e.leftOffsetLimit),l=n.containerRightPosition,s=!0),{offset:a,firstElementPosition:o,lastElementPosition:l,hideLeftButton:c,hideRightButton:s}};function Dt(e,t){switch(t.type){case ft.Init:return Object.assign(Object.assign({},e),_t(t.payload));case ft.Resize:return Object.assign(Object.assign({},e),It(t.payload));case ft.Next:return Object.assign(Object.assign({},e),xt(e));case ft.Previous:return Object.assign(Object.assign({},e),Pt(e));case ft.Drag:return Object.assign(Object.assign({},e),Ft(e,t.payload));default:return e}}var Bt={itemSpacing:"fDc_6",mobileScroll:"aLSzv",leftGradient:"YheD1",leftButton:"ISepF",rightGradient:"i9XEE",rightButton:"OxM84"};function Ut(e){return function(e){if(Array.isArray(e))return Vt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||qt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(e,t){if(e){if("string"==typeof e)return Vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vt(e,t):void 0}}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gt(e){var t,n,i,a,o,l,c,s=e.childComponent,u=e.staticChildren,d=e.getWidgetItemAnalyticsData,f=void 0===d?function(){}:d,m=Mt(r.useReducer(Dt,Rt),2),v=m[0],p=m[1],y=Mt(r.useState(null),2),g=y[0],b=y[1],h={container:r.useRef(null),firstElement:r.useRef(null),lastElement:r.useRef(null)},S=(t=(0,pt.a)(vt.r.XS),n=(0,pt.a)(vt.r.SM),i=(0,pt.a)(vt.r.MD),a=(0,pt.a)(vt.r.LG),o=(0,pt.a)(vt.r.XL),l=(0,pt.a)(vt.r.XXL),c=vt.r.LG,t&&(c=vt.r.XS),n&&(c=vt.r.SM),i&&(c=vt.r.MD),a&&(c=vt.r.LG),o&&(c=vt.r.XL),l&&(c=vt.r.XXL),c),E=Je.V.isTabletOrMobile();!function(e,t){var n,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=function(){e(),window.clearTimeout(n),n=window.setTimeout(t,100)};r.useEffect((function(){return window.addEventListener("resize",t?o:e),function(){return window.removeEventListener("resize",t?o:e)}}),function(e){if(Array.isArray(e))return gt(e)}(i=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gt(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}(kt(h,p,S),Lt(h.container),[S]);var A=(0,yt.Y)({prevent:!e.lazyLoad}),w=A.ref,C=A.inView,O=e.collection;if(!e.collection&&x.q.isFunction(e.fetch)){var j=e.fetch(C);O=j.data}r.useEffect((function(){O&&!L.t.isEmpty(O)&&p({type:ft.Init,payload:{elementRefs:h,mediaQuery:S}})}),[O]);var N=r.useMemo((function(){var t,n;if(O){var i=null!==(t=null==u?void 0:u.filter((function(e){return"start"===e.position})))&&void 0!==t?t:[],a=null!==(n=null==u?void 0:u.filter((function(e){return"end"===e.position})))&&void 0!==n?n:[],o=O.map((function(t,n){var o;t===k.m.first(O)&&(null==i?void 0:i.length)&&(o=h.firstElement),t!==k.m.last(O)||(null==a?void 0:a.length)||(o=h.lastElement);var l=n+1===O.length;return r.createElement("div",{key:t.id,ref:o,className:"".concat(Bt.itemSpacing," ").concat(l&&E?"pe-4":"")},r.createElement(s,{getChildAppLink:e.getChildAppLink,data:t,getSubtitle:e.getSubtitle,analyticsData:Object.assign(Object.assign({itemIndex:n},e.analyticsData),f(t)),analyticsOptions:Object.assign(Object.assign({},null==e?void 0:e.analyticsOptions),Ot.getSliderItemAnalyticsOptions())}))}));return i.length&&(o=[].concat(Ut(i.map((function(e,t){var n=e.component;return r.createElement("div",{key:"first-widget-component:".concat(t),ref:0===t?h.firstElement:null,className:Bt.itemSpacing},r.createElement(n,null))}))),Ut(o))),a.length&&(o=[].concat(Ut(o),Ut(a.map((function(e,t){var n=e.component;return r.createElement("div",{key:"end-widget-component:".concat(t),ref:t===a.length-1?h.lastElement:null,className:Bt.itemSpacing},r.createElement(n,null))}))))),r.createElement(r.Fragment,null,o)}}),[O]);if(O&&!O.length&&!(null==u?void 0:u.length))return r.createElement(r.Fragment,null);if(!O||L.t.isEmpty(O))return r.createElement("div",{ref:w},r.createElement(Qt,{partialLoadingComponent:e.partialLoadingComponent,partialLoadingOptions:e.partialLoadingOptions}));var T=function(t){return Object.assign(Object.assign({},e.analyticsData),{name:e.heading,direction:t===ft.Next?"right":"left"})},R=E||e.hideButtons;return r.createElement("div",{className:"mx-n4"},r.createElement("div",{className:"px-4"},r.createElement(it,{name:e.heading,description:e.description,appLink:e.headingAppLink})),r.createElement("div",{className:"position-relative"},r.createElement("div",{className:"px-4 py-3 my-n3 position-relative ".concat(E?Bt.mobileScroll:"overflow-hidden-x")},r.createElement("div",{className:"position-relative ".concat(e.hideButtons?"overflow-hidden-x":"")},!R&&r.createElement(mt,{direction:ot.Left,onClick:function(){p({type:ft.Previous}),F.k.logUserAction(T(ft.Previous),Ot.getSliderAnalyticsOptions())},leftButtonClassName:Bt.leftButton,leftGradientClassName:Bt.leftGradient,hide:v.hideLeftButton,useGradientBackdrop:!0}),r.createElement(st,{position:v.offset,positionType:ze.Pixels,onDrag:jt(h.container,v,p,g,b),onDragEnd:Nt(h.container,b),ref:h.container},N),!R&&r.createElement(mt,{direction:ot.Right,onClick:function(){p({type:ft.Next}),F.k.logUserAction(T(ft.Next),Ot.getSliderAnalyticsOptions())},hide:v.hideRightButton,rightButtonClassName:Bt.rightButton,rightGradientClassName:Bt.rightGradient,useGradientBackdrop:!0})))))}Gt.defaultProps={heading:"",description:""};var Xt,Yt,Qt=function(e){var t=e.partialLoadingComponent,n=e.partialLoadingOptions;return r.createElement("div",{className:"d-flex flex-nowrap overflow-hidden"},Et.u.getPartialLoadingItems(n).map((function(e,n){return r.createElement(t,{key:n})})))};function Ht(e){var t,n,r=e.tag,a=e.appLink,o=e.onClick,l=e.disabled,c=e.tagClass,s=void 0===c?"tag":c,u=r.name.toLowerCase(),d=null===(t=r.tagType)||void 0===t?void 0:t.toLowerCase(),f="rounded-pill py-1 px-2 my-1 me-1 ".concat(s," ").concat(function(e){switch(e){case Xt.Pedagogy:case Xt.Skill:return"pedagogy-tag text-white";case Xt.Hidden:return"hidden-tag";case Xt.Normal:default:return""}}(d)),m=d===Xt.Normal&&!!(null===(n=e.themeColours)||void 0===n?void 0:n.secondary);m&&(f+=" text-white"),!a&&!o||l||(f+=" cursor-pointer"),l&&(f+=" "+Ke.disabled),e.onRemove&&(f+=" "+Ke.badge),a||(f+=" d-inline-block");var v=m?{backgroundColor:e.themeColours.secondary}:{};return a?i().createElement(et.F,{onClick:o,appLink:a,className:f,title:u,style:v},i().createElement("span",{className:"text-truncate text-nowrap"},u)):i().createElement("span",{onClick:o,className:f,title:u,style:v},i().createElement("span",{className:"text-truncate text-nowrap"},u,e.onRemove&&i().createElement("button",{onClick:e.onRemove,className:"".concat(Ke.close," btn-close font-size-normal"),role:"button","aria-label":"Close"})))}!function(e){e.Normal="normal",e.Pedagogy="pedagogy",e.Hidden="hidden",e.Skill="skill",e.Curation="curation"}(Xt||(Xt={})),function(e){e[e.Normal=0]="Normal",e[e.Pedagogy=1]="Pedagogy",e[e.Hidden=2]="Hidden",e[e.Skill=3]="Skill",e[e.Curation=4]="Curation"}(Yt||(Yt={}));var Wt={tagItem:"EcurS",selected:"FypfE"};function $t(e){var t=e.selectedItems.find((function(t){return t.id===e.data.id}))?"".concat(Wt.selected," text-info"):"bg-light";return i().createElement(Ht,{tag:e.data,appLink:e.appLink,tagClass:"no-decoration ".concat(t," ").concat(Wt.tagItem),onClick:function(){return e.onClick(e.data)}})}var zt={tagItem:"j84HW"};function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}function Zt(e){return function(e){if(Array.isArray(e))return Jt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Jt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jt(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function en(e){var t,n,r,a,o=i().useContext(_).state;if(!(null===(t=e.filter)||void 0===t?void 0:t.id))return i().createElement(i().Fragment,null);var l=o[e.filter.id],c=l.selection,s=null!==(a=null===(r=null===(n=e.filter)||void 0===n?void 0:n.options)||void 0===r?void 0:r.filter((function(e){return!(null==c?void 0:c.find((function(t){return t.id===e.id})))})))&&void 0!==a?a:[];function u(t){var n,r,i,a,s=null,u=-1;if(c.find((function(e,n){u>-1||e.id.toString()===t.id.toString()&&(u=n)})),u>=0){var d=[].concat(Zt(c.slice(0,u)),Zt(c.slice(u+1)));s={active:!!d.length,selection:d}}else s={active:!0,selection:c.concat(t)};Fe.applyFilter([e.filter],l,(n={},r=e.filter.id,i=s,a=function(e,t){if("object"!=Kt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Kt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r),(r="symbol"==Kt(a)?a:a+"")in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n),o.appLink)}var d,f=[].concat(Zt(c),Zt(e.isFetching?[]:s));return i().createElement("div",{className:e.isFetching||f.length?"py-2":""},i().createElement("div",{className:(d="mb-3",f.length&&e.isFetching?d+=" mt-n1":f.length||e.isFetching||(d+=" d-none"),d)},(!!f.length||e.isFetching)&&i().createElement(Gt,{collection:f,childComponent:function(e){return i().createElement($t,Object.assign({},e,{selectedItems:c,onClick:u}))},staticChildren:e.isFetching?new Array(3).fill({component:function(){return i().createElement(Ze,{tagClass:zt.tagItem})},position:"end"}):[],partialLoadingComponent:function(){return i().createElement("div",{className:"me-2"},i().createElement(Ze,{tagClass:"".concat(zt.tagItem)}))}})))}function tn(e){var t=r.useContext(_).state;return r.createElement(N.L,{onClick:function(){P.Q.C$.trigger(Object.assign(Object.assign({},t.appLink),{params:e.currentQueryParam?{query:e.currentQueryParam}:null}))},className:"hover-text-underline cursor-pointer d-flex align-items-center ms-2"},r.createElement(s.x,{namespace:"search.resetButton",phrase:"reset"}))}var nn={partialFilterHeading:"O8f8H",partialButton:"ThKam",filtersContainer:"JIp3h"};function rn(e){return function(e){if(Array.isArray(e))return on(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||an(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function an(e,t){if(e){if("string"==typeof e)return on(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?on(e,t):void 0}}function on(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ln(e){var t,n,i=e.queryParams,a=e.appLink,o=e.hideHeading,l=e.isFetchingOptions,c=e.constantIndices,u=void 0===c?[]:c,d=r.useMemo((function(){return Fe.deriveInitialStateFromQuery(i,e.mainFilters,e.moreFilters,a)}),[i,l]),f=(t=r.useReducer(I,d),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||an(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=f[0],v=f[1];r.useEffect((function(){L.t.isEqual(d,m)||(v({type:"update",payload:d}),e.analyticsOptions&&Fe.logFilterEvent(e.mainFilters,e.moreFilters,d,i.query,e.analyticsOptions))}),[d]);var p=k.m.uniq([].concat(rn(Fe.getAppliedIndices(i)),rn(u))),y=Fe.mixinDisabledFields(m,p,e.mainFilters,e.moreFilters),g=y.mainFilters,b=y.moreFilters,h=g.filter((function(e){return"tag"!==e.type})),S=g.find((function(e){return"tag"===e.type}));return r.createElement(_.Provider,{value:{state:m,dispatch:v}},r.createElement(s.D.Provider,{value:"search.searchFilters"},r.createElement("section",null,r.createElement("div",{className:"d-flex ".concat(e.hideDivider?"":"border-bottom pb-3 mb-3")},!o&&r.createElement("h2",{className:"h5 mb-0 d-inline-block pe-2 border-end d-flex align-items-center"},r.createElement(s.x,{phrase:"heading"})),r.createElement("div",{className:"d-flex flex-wrap ".concat(nn.filtersContainer," ").concat(o?"":"ms-2")},h.map((function(t){return r.createElement(Ge,{key:t.id,filter:t,hideCaret:e.hideCaret})})),b&&r.createElement($e,{filter:b}),Fe.hasActiveFilters(i)&&!e.hideResetButton&&r.createElement(tn,{mainFilters:e.mainFilters,moreFilters:e.moreFilters,currentQueryParam:i.query,analyticsOptions:e.analyticsOptions}))),r.createElement(en,{filter:S,queryParams:i,isFetching:e.isFetchingOptions}))))}var cn=a.T.encloseNamespace("libraryRequests.filters");function sn(e){return i().createElement(ln,{queryParams:e.queryParams,mainFilters:[{id:"status",name:"Status",type:"checkbox",options:[{id:"approved",name:cn("approved")},{id:"rejected",name:cn("rejected")},{id:"closed",name:cn("closed")},{id:"autoApproved",name:cn("autoApproved")}],compatibleIndices:[]}],appLink:{application:p.OV.LIBRARY_REQUESTS,action:p.eX.LibraryRequests.PAST_REQUESTS,args:[e.id],params:e.queryParams},analyticsOptions:{entity:O.py.LibraryRequest,location:O.LZ.LibraryRequestDetails},constantIndices:[],hideDivider:!0})}var un=n(90784),dn=n(49824),fn=n(72067),mn=n(7044),vn=n(21974),pn=n(264),yn=n(65402),gn="libraryRequests.pastDetails";function bn(e){var t=(0,yn.$)(e.status);return i().createElement("span",{className:"ms-1"},t)}function hn(e){var t,n,r,a,o,l,u,d=e.libraryRequest.sourceLibrary||e.libraryRequest.sourceCategory,f="";e.libraryRequest.actionedBy&&(f="".concat(e.libraryRequest.actionedBy.name," ").concat(e.libraryRequest.actionedBy.surname));var m=function(e){switch(e){case A.l.AutoApproved:return"addedBy";case A.l.Approved:return"approvedBy";default:return"rejectedBy"}}(e.libraryRequest.status),v=e.libraryRequest.sender&&"".concat(null!==(n=null===(t=e.libraryRequest.sender)||void 0===t?void 0:t.name)&&void 0!==n?n:""," ").concat(null!==(a=null===(r=e.libraryRequest.sender)||void 0===r?void 0:r.surname)&&void 0!==a?a:""),y="";return(null===(o=e.libraryRequest.senderCustomer)||void 0===o?void 0:o.id.toString())!==e.user.get("customerId").toString()&&(y=null===(l=e.libraryRequest.senderCustomer)||void 0===l?void 0:l.name),i().createElement("div",{className:"bg-white rounded p-3 mb-3"},i().createElement("div",{className:"row"},i().createElement("div",{className:"col-3 offset-9 mb-n3"},i().createElement("div",{className:"d-flex justify-content-end align-items-start"},i().createElement(yn.h,{status:e.libraryRequest.status}),i().createElement(bn,{status:e.libraryRequest.status}))),i().createElement("div",{className:"col-12"},!!f&&i().createElement("div",{className:"row mb-3"},i().createElement("div",{className:"col-3 font-label"},i().createElement(s.x,{namespace:gn,phrase:m})),i().createElement("div",{className:"col-6"},f)),!!v&&e.libraryRequest.status!==A.l.AutoApproved&&i().createElement("div",{className:"row mb-3"},i().createElement("div",{className:"col-3"},i().createElement("label",null,i().createElement(s.x,{namespace:gn,phrase:"requestedBy"}))),i().createElement("div",{className:"col-6"},i().createElement(i().Fragment,null,v,!!y&&i().createElement(i().Fragment,null," (",y,")")))),i().createElement("div",{className:"row mb-3"},i().createElement("div",{className:"col-3 font-label"},d&&i().createElement(s.x,{namespace:gn,phrase:"videoSource"})),i().createElement("div",{className:"col-6"},!!e.libraryRequest.sourceLibrary&&i().createElement("span",{className:"badge p-1 me-1 text-white ".concat(vn.u.mapSourceToClass(e.libraryRequest.sourceLibrary.type))},vn.u.mapSourceToDisplayName(e.libraryRequest.sourceLibrary,pn.g.hasLite)),!!e.libraryRequest.sourceCategory&&i().createElement("span",{className:"ms-1"},e.libraryRequest.sourceCategory.name))),(null===(u=e.folderPath)||void 0===u?void 0:u.length)&&i().createElement("div",{className:"row"},i().createElement("div",{className:"col-3 font-label"},i().createElement(s.x,{namespace:gn,phrase:"libraryLocation"})),i().createElement("div",{className:"col-9"},i().createElement(c.Oo,{breadcrumbs:e.folderPath.map((function(e,t){return{name:e.name,appLink:{application:p.OV.LIBRARY_EDITOR,action:0===t?p.eX.LibraryEditor.LIBRARY:p.eX.LibraryEditor.FOLDER,args:[e.id]}}}))}))))))}function Sn(){return i().createElement("div",{className:"bg-white rounded p-3 mb-3"},i().createElement("div",{className:"row"},i().createElement("div",{className:"col-3"},i().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"6rem"}})),i().createElement("div",{className:"col-6 mb-2"},i().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"9rem"}})),i().createElement("div",{className:"col-3 d-flex justify-content-end"},i().createElement("div",{className:"partial-loading-background rounded",style:{height:"1.25rem",width:"6rem"}})),i().createElement("div",{className:"col-3"},i().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"7rem"}})),i().createElement("div",{className:"col-6"},i().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"15rem"}}))))}var En=n(17950),An=n(9416),wn=n(25796),Cn=n(41026),On=n(59198),kn=n(85739),Ln=n(30328),jn=n(64429),Nn=n(39123),Tn=n(41777),Rn=n(56154),_n="libraryRequests.pastRequestsEmptyState",In=a.T.encloseNamespace(_n);function xn(e){return i().createElement("div",{className:"bg-white rounded p-3 py-5"},i().createElement(Tn.u,null,i().createElement(Tn.u.Image,{src:Rn.W.EmptyStates.PAST_REQUESTS}),i().createElement(Tn.u.Info,{className:"mb-1"},i().createElement(s.x,{namespace:_n,phrase:"info"})),e.hasLibraries&&i().createElement(Tn.u.Cta,{text:In("cta"),className:"btn btn-link text-info",appLink:{application:p.OV.LIBRARY_REQUESTS,action:p.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES}})))}function Pn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Dn="libraryRequests.pastRequests",Bn=a.T.encloseNamespace(Dn),Un=[A.l.Approved,A.l.Closed,A.l.Rejected,A.l.AutoApproved];function Mn(e){var t,n,r,a,S,E=o.a.useGetFetch(),A=(0,f.Z)(),w=(0,kn.p)(e.queryParams.sort||u.D.Newest,e.queryParams.status||Un),O=o.a.useBasicFetch(e.id&&wn.y.libraryRequest(e.id)),k=(0,On.s)(e.id),L=Pn(i().useState(null),2),j=L[0],N=L[1];(0,l.i)(h.T.getLibrariesFetchOptions((function(e){return N(e.toJSON())})),[]),(0,Nn.g)(N);var T=o.a.useBasicFetch(O.data&&(null===(t=O.data.destinationLibrary)||void 0===t?void 0:t.id)&&(null===(n=O.data.destinationCategory)||void 0===n?void 0:n.id)&&wn.y.categoryPath(O.data.destinationLibrary.id,O.data.destinationCategory.id)),R=Pn(i().useState(null),2),_=R[0],I=R[1];(0,l.i)(g.p.getConfigFetchOptions(I),[]);var x=Pn(i().useState(null),2),P=x[0],F=x[1];(0,l.i)(b.K.getCurrentUserFetchOptions(F),[]);var D=o.a.useBasicFetch(d.N.currentUser());(0,m.v)(O),(0,Ln.A)({id:e.id,requests:w.items,appLink:{application:p.OV.LIBRARY_REQUESTS,action:p.eX.LibraryRequests.PAST_REQUESTS,params:e.queryParams}}),(0,jn.m)(O.data,"past",e.queryParams),(0,Cn.K)(O.data);var B=((null===(r=w.items)||void 0===r?void 0:r.length)||w.hasCompleted)&&_&&D.data,U=O.data&&k.hasCompleted,M=!e.queryParams.status&&O.hasCompleted&&!(null===(a=w.items)||void 0===a?void 0:a.length);return i().createElement("div",null,i().createElement("h1",{className:"h2"},i().createElement(s.x,{namespace:Dn,phrase:"title"})),i().createElement("div",{className:"mb-3"},i().createElement(c.Oo,{breadcrumbs:[{name:Bn("libraryEditor"),appLink:{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.HOME}},{name:Bn("title"),active:!0}]})),i().createElement(An.A,{active:"past"}),!M&&i().createElement("div",{className:"d-flex justify-content-between mb-3"},i().createElement(sn,{id:e.id,queryParams:e.queryParams}),i().createElement(En.F,{appLink:{application:p.OV.LIBRARY_REQUESTS,action:p.eX.LibraryRequests.PAST_REQUESTS,args:[e.id]},queryParams:e.queryParams})),!B||(null===(S=w.items)||void 0===S?void 0:S.length)?i().createElement("div",{className:"row"},i().createElement("div",{className:"col-4"},B?i().createElement(fn.q,{libraryRequests:w.items,selectedId:e.id,appLink:{application:p.OV.LIBRARY_REQUESTS,action:p.eX.LibraryRequests.PAST_REQUESTS},queryParams:e.queryParams,fetchNext:w.fetchNext,isFetching:w.isFetching,nextCursor:w.nextCursor}):i().createElement(mn.p,null)),i().createElement("div",{className:"col-8"},B&&U?i().createElement(i().Fragment,null,i().createElement(C,{libraryRequest:O.data}),i().createElement(hn,{libraryRequest:O.data,folderPath:T.data,user:P}),i().createElement(un.x,{libraryRequest:O.data,currentUser:D.data,comments:k.items,config:_,user:P,createViewKey:function(t,n){var r=wn.y.createViewKey(e.id,(function(e){return n(new y.y(e))}),(function(e){return A.error(v.M.libraryApiError(e))}));E(r)}})):i().createElement(i().Fragment,null,i().createElement(Sn,null),i().createElement(dn.j,null)))):i().createElement(xn,{hasLibraries:!!j.length}))}}}]);
|