@clickview/library-editor 1.50.1-dev.1 → 1.50.1-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.
Files changed (152) hide show
  1. package/dist/bundles.json +5 -0
  2. package/dist/css/101-library-editor-ea0aa41f12.chunk.css +2 -0
  3. package/dist/css/1086-library-editor-076ef8e022.chunk.css +4 -0
  4. package/dist/css/112-library-editor-f77f4c1797.chunk.css +16 -0
  5. package/dist/css/1409-library-editor-bc215e1152.chunk.css +1 -0
  6. package/dist/css/152-library-editor-01b4461ff1.chunk.css +10 -0
  7. package/dist/css/1601-library-editor-4a6aafa66a.chunk.css +4 -0
  8. package/dist/css/1703-library-editor-3334df179f.chunk.css +6 -0
  9. package/dist/css/1832-library-editor-e123877850.chunk.css +1 -0
  10. package/dist/css/1876-library-editor-3334df179f.chunk.css +6 -0
  11. package/dist/css/2417-library-editor-1c2828a69b.chunk.css +7 -0
  12. package/dist/css/243-library-editor-decee8d957.chunk.css +2 -0
  13. package/dist/css/2482-library-editor-6893a774e7.chunk.css +20 -0
  14. package/dist/css/2601-library-editor-8922d361d6.chunk.css +14 -0
  15. package/dist/css/2644-library-editor-cdc1c17774.chunk.css +13 -0
  16. package/dist/css/2692-library-editor-076ef8e022.chunk.css +4 -0
  17. package/dist/css/3087-library-editor-7c76d2234e.chunk.css +4 -0
  18. package/dist/css/343-library-editor-a5b4b92fa3.chunk.css +24 -0
  19. package/dist/css/3551-library-editor-37e6a3ecdc.chunk.css +24 -0
  20. package/dist/css/3746-library-editor-46e4b6af59.chunk.css +1 -0
  21. package/dist/css/376-library-editor-6d718e6fc5.chunk.css +8 -0
  22. package/dist/css/3969-library-editor-30997910e2.chunk.css +2 -0
  23. package/dist/css/4523-library-editor-c52f3ffbb0.chunk.css +2 -0
  24. package/dist/css/456-library-editor-a92bd26671.chunk.css +17 -0
  25. package/dist/css/4860-library-editor-f5eddb2400.chunk.css +1 -0
  26. package/dist/css/5046-library-editor-d255e3d3d5.chunk.css +15 -0
  27. package/dist/css/514-library-editor-4cb4f22674.chunk.css +1 -0
  28. package/dist/css/5314-library-editor-2013dd2fec.chunk.css +11 -0
  29. package/dist/css/5424-library-editor-cbb9c55dc8.chunk.css +5 -0
  30. package/dist/css/5524-library-editor-de77327cdc.chunk.css +11 -0
  31. package/dist/css/5747-library-editor-de4ea80bfc.chunk.css +1 -0
  32. package/dist/css/5891-library-editor-46e4b6af59.chunk.css +1 -0
  33. package/dist/css/6093-library-editor-446ee2e049.chunk.css +1 -0
  34. package/dist/css/61-library-editor-46bcd7b5f8.chunk.css +48 -0
  35. package/dist/css/6352-library-editor-c99ed407da.chunk.css +19 -0
  36. package/dist/css/6586-library-editor-02ff5dbd6e.chunk.css +83 -0
  37. package/dist/css/6732-library-editor-6233ce01e9.chunk.css +6 -0
  38. package/dist/css/6963-library-editor-46e4b6af59.chunk.css +1 -0
  39. package/dist/css/7053-library-editor-cbe896c46a.chunk.css +1 -0
  40. package/dist/css/708-library-editor-ce48b52d72.chunk.css +7 -0
  41. package/dist/css/7295-library-editor-a539c72655.chunk.css +9 -0
  42. package/dist/css/7408-library-editor-2a67dae087.chunk.css +4 -0
  43. package/dist/css/8762-library-editor-076ef8e022.chunk.css +4 -0
  44. package/dist/css/8906-library-editor-076ef8e022.chunk.css +4 -0
  45. package/dist/css/9369-library-editor-126f3beb94.chunk.css +16 -0
  46. package/dist/css/9383-library-editor-a65f7ef186.chunk.css +16 -0
  47. package/dist/css/9695-library-editor-c5004a1fec.chunk.css +1 -0
  48. package/dist/css/9927-library-editor-a11669ad9d.chunk.css +1 -0
  49. package/dist/css/library-editor-app-b4b31e00d1.css +62 -0
  50. package/dist/languages/en.json +1 -0
  51. package/dist/scripts/101-cd0245d087.chunk.js +1 -0
  52. package/dist/scripts/1010-60f6dfd832.chunk.js +1 -0
  53. package/dist/scripts/1086-2682e6d3f7.chunk.js +1 -0
  54. package/dist/scripts/112-24c19e2cde.chunk.js +1 -0
  55. package/dist/scripts/1216-f3e3f911fa.chunk.js +1 -0
  56. package/dist/scripts/1224-3ad7211630.chunk.js +1 -0
  57. package/dist/scripts/1269-a34a1de36d.chunk.js +1 -0
  58. package/dist/scripts/1409-93a72ff5bf.chunk.js +1 -0
  59. package/dist/scripts/152-2a8a32c9e8.chunk.js +2 -0
  60. package/dist/scripts/152-2a8a32c9e8.chunk.js.LICENSE.txt +50 -0
  61. package/dist/scripts/1601-cfa68d5d16.chunk.js +2 -0
  62. package/dist/scripts/1601-cfa68d5d16.chunk.js.LICENSE.txt +1 -0
  63. package/dist/scripts/1703-0ee4d1051b.chunk.js +1 -0
  64. package/dist/scripts/1832-23fead57c5.chunk.js +1 -0
  65. package/dist/scripts/1876-a98a0d0a0b.chunk.js +1 -0
  66. package/dist/scripts/1934-cf53d84778.chunk.js +2 -0
  67. package/dist/scripts/1934-cf53d84778.chunk.js.LICENSE.txt +9 -0
  68. package/dist/scripts/1973-d4b3f2d0a9.chunk.js +1 -0
  69. package/dist/scripts/2417-d1a2c3b7e1.chunk.js +1 -0
  70. package/dist/scripts/243-2012c53e96.chunk.js +1 -0
  71. package/dist/scripts/2482-955e4b3615.chunk.js +1 -0
  72. package/dist/scripts/259-7d1d480f6e.chunk.js +1 -0
  73. package/dist/scripts/2601-c8a6cf71d8.chunk.js +1 -0
  74. package/dist/scripts/2644-4188284c06.chunk.js +1 -0
  75. package/dist/scripts/2648-10e901bc4c.chunk.js +1 -0
  76. package/dist/scripts/2692-438539ccbe.chunk.js +1 -0
  77. package/dist/scripts/2802-31b24a8131.chunk.js +2 -0
  78. package/dist/scripts/2802-31b24a8131.chunk.js.LICENSE.txt +8 -0
  79. package/dist/scripts/2803-3cee0dd7a5.chunk.js +1 -0
  80. package/dist/scripts/2888-55edc16fd6.chunk.js +1 -0
  81. package/dist/scripts/299-eeaac48864.chunk.js +1 -0
  82. package/dist/scripts/2998-24191bc8ab.chunk.js +1 -0
  83. package/dist/scripts/3087-42c41a34b5.chunk.js +1 -0
  84. package/dist/scripts/3400-95d7a3a0d6.chunk.js +1 -0
  85. package/dist/scripts/343-4e17813e7a.chunk.js +1 -0
  86. package/dist/scripts/35-7bfbab50e6.chunk.js +1 -0
  87. package/dist/scripts/3551-5513258594.chunk.js +1 -0
  88. package/dist/scripts/3639-02abbd0b71.chunk.js +1 -0
  89. package/dist/scripts/3746-fab7340300.chunk.js +1 -0
  90. package/dist/scripts/376-98c734f74f.chunk.js +1 -0
  91. package/dist/scripts/3763-c5de5a36a1.chunk.js +1 -0
  92. package/dist/scripts/3969-fe64f3d542.chunk.js +1 -0
  93. package/dist/scripts/4064-217e21dc03.chunk.js +1 -0
  94. package/dist/scripts/4201-6311ac5cac.chunk.js +1 -0
  95. package/dist/scripts/4245-6e9e71cc7d.chunk.js +1 -0
  96. package/dist/scripts/4523-7a79c1890d.chunk.js +1 -0
  97. package/dist/scripts/456-d5a07590b3.chunk.js +1 -0
  98. package/dist/scripts/4591-9e342f97bc.chunk.js +1 -0
  99. package/dist/scripts/4860-955b4bf901.chunk.js +1 -0
  100. package/dist/scripts/5046-19d7090284.chunk.js +1 -0
  101. package/dist/scripts/514-927a43219d.chunk.js +1 -0
  102. package/dist/scripts/5173-ae0218ce2b.chunk.js +1 -0
  103. package/dist/scripts/5286-293188ce69.chunk.js +1 -0
  104. package/dist/scripts/5314-bd5f985235.chunk.js +1 -0
  105. package/dist/scripts/5412-95152820bb.chunk.js +1 -0
  106. package/dist/scripts/5418-f31f79952c.chunk.js +1 -0
  107. package/dist/scripts/5424-f53a7d8068.chunk.js +1 -0
  108. package/dist/scripts/546-9b17236feb.chunk.js +1 -0
  109. package/dist/scripts/5524-165e9fe50f.chunk.js +1 -0
  110. package/dist/scripts/5707-d7fa777817.chunk.js +1 -0
  111. package/dist/scripts/5747-0ab2cc3678.chunk.js +1 -0
  112. package/dist/scripts/5850-6391e3cda2.chunk.js +1 -0
  113. package/dist/scripts/5891-f7bd1916f7.chunk.js +1 -0
  114. package/dist/scripts/6093-7e5c1af050.chunk.js +1 -0
  115. package/dist/scripts/61-2cababfcc4.chunk.js +2 -0
  116. package/dist/scripts/61-2cababfcc4.chunk.js.LICENSE.txt +1 -0
  117. package/dist/scripts/6352-aaaf02499b.chunk.js +1 -0
  118. package/dist/scripts/6427-ca580c2f5d.chunk.js +1 -0
  119. package/dist/scripts/6532-ffb2f40362.chunk.js +2 -0
  120. package/dist/scripts/6532-ffb2f40362.chunk.js.LICENSE.txt +13 -0
  121. package/dist/scripts/6586-a7d3920a52.chunk.js +2 -0
  122. package/dist/scripts/6586-a7d3920a52.chunk.js.LICENSE.txt +1 -0
  123. package/dist/scripts/6721-60208978c9.chunk.js +1 -0
  124. package/dist/scripts/6732-5bf9ec4e56.chunk.js +1 -0
  125. package/dist/scripts/6774-3cad51b5b7.chunk.js +1 -0
  126. package/dist/scripts/6788-6e4efcfd00.chunk.js +1 -0
  127. package/dist/scripts/6963-898cb28e8d.chunk.js +1 -0
  128. package/dist/scripts/7002-3686f9dcfb.chunk.js +1 -0
  129. package/dist/scripts/7053-38535c04ca.chunk.js +1 -0
  130. package/dist/scripts/7071-5a543a7eec.chunk.js +1 -0
  131. package/dist/scripts/708-9aa6428a97.chunk.js +1 -0
  132. package/dist/scripts/7190-d26b5ef34d.chunk.js +1 -0
  133. package/dist/scripts/7295-594d2f2def.chunk.js +1 -0
  134. package/dist/scripts/7376-baac126511.chunk.js +1 -0
  135. package/dist/scripts/7408-209544dca5.chunk.js +1 -0
  136. package/dist/scripts/8113-879f7b221a.chunk.js +1 -0
  137. package/dist/scripts/8362-e82bef3e07.chunk.js +1 -0
  138. package/dist/scripts/8542-776c339eeb.chunk.js +1 -0
  139. package/dist/scripts/8726-edded1064e.chunk.js +1 -0
  140. package/dist/scripts/8727-2e314f9301.chunk.js +1 -0
  141. package/dist/scripts/8762-4ee15995c8.chunk.js +1 -0
  142. package/dist/scripts/8906-3bde92a78d.chunk.js +1 -0
  143. package/dist/scripts/9357-c5c5984ec8.chunk.js +1 -0
  144. package/dist/scripts/9369-ef153a7fd3.chunk.js +2 -0
  145. package/dist/scripts/9369-ef153a7fd3.chunk.js.LICENSE.txt +1 -0
  146. package/dist/scripts/9383-b01e8ae3c8.chunk.js +1 -0
  147. package/dist/scripts/9695-a04e508364.chunk.js +1 -0
  148. package/dist/scripts/9927-a667775ac4.chunk.js +1 -0
  149. package/dist/scripts/bundle-668698cd1f.min.js +2 -0
  150. package/dist/scripts/bundle-668698cd1f.min.js.LICENSE.txt +1 -0
  151. package/dist/scripts/polyfills-a15c0386f5.min.js +1 -0
  152. package/package.json +6 -1
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[343],{59054:function(e,t,n){"use strict";var i;n.d(t,{f:function(){return i}}),function(e){e.Share="share",e.MasterObject="masterobject"}(i||(i={}))},27719:function(e,t,n){"use strict";n.r(t),n.d(t,{FolderView:function(){return Ot},SeriesView:function(){return St}});var i=n(99748),o=n(21679),r=n(57857),l=n(99249),a=n(31647),c=n(30644),s=n(59054),u=n(25692),f=n(47022),p=n(77502),d=n(98985),h=n(70763),y=n(58688),b=n(80867),m=n(57098),v=n(29457),g=n(83324),w=n(3059),k=n(60602),O=n(51174),S=n(48404),E=n(64649),C=n(19226),I=n(93569),j=n(70065),P=n(24828),T=n(22231),V=n(51785),_=n(85552),L=n.n(_),x=n(21625);function R(e){return R="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},R(e)}function D(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,A(i.key),i)}}function A(e){var t=function(e,t){if("object"!=R(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=R(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==R(t)?t:t+""}function B(e,t,n){return t=M(t),function(e,t){if(t&&("object"==R(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||[],M(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 M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},N(e,t)}var Q=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),B(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&&N(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"BannerComponent"}},{key:"className",get:function(){var e=(0,T.x)(this.model.get("name"),P.o);return"px-3 position-relative rounded-top ".concat(x.Z.banner," ").concat(e)}},{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"attributes",get:function(){var e=I.jw.createBannerUrl(this.model.banner);return e?{style:"background-image: url('".concat(e,"')")}:null}},{key:"template",get:function(){return L()}},{key:"renderActions",value:function(){this.showChildView("options",new V.c({model:this.model,extraClasses:"".concat(x.Z.actions," rounded-circle me-2 mt-2"),buttonClass:"text-light",analyticsOptions:{location:j.LZ.Banner}}))}},{key:"onRender",value:function(){this.renderActions()}}])&&D(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),H=n(4705),U=n(63791),Y=n(87002),z=n(73368),W=n.n(z),K={svgContainer:"mMWNm",caretClosed:"Fe74o"};function X(e){return X="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},X(e)}function Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $(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,q(i.key),i)}}function G(e,t,n){return t&&$(e.prototype,t),n&&$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function q(e){var t=function(e,t){if("object"!=X(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=X(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==X(t)?t:t+""}function J(e,t,n){return t=te(t),function(e,t){if(t&&("object"==X(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,ee()?Reflect.construct(t,n||[],te(e).constructor):t.apply(e,n))}function ee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ee=function(){return!!e})()}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}function ne(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)}function ie(e,t){return ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ie(e,t)}var oe="has:expanded:library:folders",re=function(e){function t(){return Z(this,t),J(this,t,arguments)}return ne(t,e),G(t,[{key:"name",get:function(){return"SubFoldersCollectionView"}},{key:"className",get:function(){return"row px-2"}},{key:"childView",get:function(){return Y.Y}},{key:"childViewOptions",get:function(){return{location:"subfolder"}}}])}(a.Q.$W),le=function(e){function t(e){return Z(this,t),J(this,t,[e])}return ne(t,e),G(t,[{key:"initialize",value:function(){this.forceExpanded=this.options.forceExpanded||this.collection.length<=6,this.forceExpanded?this.isExpanded=!0:this.isExpanded=H.SG.get(oe)||!1}},{key:"name",get:function(){return"SubFoldersView"}},{key:"className",get:function(){return"container-fluid pb-3"}},{key:"lang",get:function(){return"libraryEditor.subfolders"}},{key:"template",get:function(){return W()}},{key:"events",value:function(){return{"click .expand-toggle":"onClickExpandToggle"}}},{key:"regions",value:function(){return{subFolders:{replaceElement:!0,el:".subfolders-region"}}}},{key:"onClickExpandToggle",value:function(){this.options.forceExpanded||(this.isExpanded=!this.isExpanded,H.SG.set(oe,this.isExpanded),this.render())}},{key:"viewOptions",value:function(){return{styles:K,caretSvg:U.Nj.getSvg(U.vn.Caret),isExpanded:this.isExpanded,forceExpanded:this.forceExpanded,caretClass:this.isExpanded?"":K.caretClosed,count:this.collection.length}}},{key:"onRender",value:function(){this.showChildView("subFolders",new re({collection:this.isExpanded?this.collection:new a.Q.FE(this.collection.first(6))}))}}])}(a.Q.wA),ae=n(57085),ce=n(8420),se=n.n(ce);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)}function fe(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,pe(i.key),i)}}function pe(e){var t=function(e,t){if("object"!=ue(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=ue(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ue(t)?t:t+""}function de(e,t,n){return t=ye(t),function(e,t){if(t&&("object"==ue(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||[],ye(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 ye(e){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ye(e)}function be(e,t){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},be(e,t)}var me=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),de(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&&be(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"VideoListHeaderComponent"}},{key:"template",get:function(){return se()}},{key:"className",get:function(){return this.options.folder?"px-3 mb-3":"mb-3"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1}}}},{key:"renderBreadcrumbs",value:function(){this.options.folder&&this.options.libraries&&this.showChildView("breadcrumbs",new ae.n({folder:this.options.folder,libraries:this.options.libraries}))}},{key:"onBeforeRender",value:function(){return!!this.options.folder}},{key:"onRender",value:function(){this.renderBreadcrumbs()}}])&&fe(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),ve=n(52076),ge=n(50028),we=n(71641),ke=n(40622),Oe=n(34670),Se=n.n(Oe);function Ee(e){return Ee="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},Ee(e)}function Ce(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,Ie(i.key),i)}}function Ie(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Ee(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ee(t)?t:t+""}function je(e,t,n){return t=Te(t),function(e,t){if(t&&("object"==Ee(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,Pe()?Reflect.construct(t,n||[],Te(e).constructor):t.apply(e,n))}function Pe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Pe=function(){return!!e})()}function Te(e){return Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Te(e)}function Ve(e,t){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ve(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),je(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&&Ve(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"getViewModel",value:function(){var e=this.options.collectionIdentifier.toString();this.model=I.S0.GetViewModel(e,ke.De.VIDEO_LIST)}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.collection,"remove",this.render)}},{key:"name",get:function(){return"BulkVideoActionsComponent"}},{key:"template",get:function(){return Se()}},{key:"lang",get:function(){return"shared.bulkVideoActions"}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".dropdown-menu-region"}}}},{key:"getSelectedIds",value:function(){return I.S0.GetSelectedIds({key:this.options.collectionIdentifier.toString(),type:ke.De.VIDEO_LIST,collection:this.collection,excludePredicate:function(e){return e.get("status")===ge.X.Processing}})}},{key:"getActions",value:function(){if(this.options.collectionIdentifier){var e=this.getSelectedIds();return new a.Q.FE([{title:r.T.getPhrase(this.lang,"move",{smartCount:e.length}),appLink:{application:this.options.application,action:m.eX.Shared.MOVE_VIDEOS,args:[e.join(","),this.options.collectionIdentifier.id]},analyticsOptions:ve.k.mergeOptions(this.options.analyticsOptions,{actionType:j.Vw.Move,workflowPhase:j.eu.Start})},{title:r.T.getPhrase(this.lang,"remove",{smartCount:e.length}),appLink:{application:m.OV.LIBRARY_EDITOR,action:m.eX.Shared.DELETE_VIDEOS,args:[this.options.collectionIdentifier.id,e.join(",")]},analyticsOptions:ve.k.mergeOptions(this.options.analyticsOptions,{actionType:j.Vw.Delete,workflowPhase:j.eu.Start}),classes:"text-danger"}])}}},{key:"viewOptions",value:function(){return{enabled:this.getSelectedIds().length}}},{key:"onRender",value:function(){this.showChildView("dropdownItems",new we.w({displayOptions:{alignment:"end"},channelName:"".concat(this.name).concat(this.cid),collection:this.getActions(),analyticsHelper:ve.k}))}}])&&Ce(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),Le=n(12542),xe=n(8614),Re=n(5344),De=n(39479),Ae=n(53370),Be=n.n(Ae);function Fe(e){return Fe="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},Fe(e)}function Me(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,Ne(i.key),i)}}function Ne(e){var t=function(e,t){if("object"!=Fe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Fe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fe(t)?t:t+""}function Qe(e,t,n){return t=Ue(t),function(e,t){if(t&&("object"==Fe(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 Ye(e,t){return Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ye(e,t)}var ze=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),Qe(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&&Ye(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.getViewModel(),this.setSort(),this.bindListeners(),this.initializeCollection()}},{key:"getViewModel",value:function(){this.model=I.x$.GetSortViewModel()}},{key:"setSort",value:function(){var e=this.options.collectionIdentifier.sort;if(e!==this.model.get("sortType")){var t=I.x$.CreateSortObject(e);this.model.set(t)}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"sort:selected",this.onSortSelected)}},{key:"initializeCollection",value:function(){this.collection||(this.collection=I.x$.CreateSortCollection())}},{key:"name",get:function(){return"SortSelectComponent"}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"template",get:function(){return Be()}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){this.logAction(j.eu.Start)}},{key:"onSortSelected",value:function(e){this.model.set(e.toJSON()),this.render(),this.logAction(j.eu.Complete)}},{key:"logAction",value:function(e){var t=ve.k.mergeOptions(this.options.analyticsOptions,{actionType:j.Vw.Sort,workflowPhase:e}),n={id:this.options.collectionIdentifier.id,sort:this.model.get("name")};ve.k.logUserAction(n,t)}},{key:"onRender",value:function(){var e=this,t=this.collection.filter((function(t){return t.get("name")!==e.model.get("name")})),n=a.Q.C$.getCurrentAppLink().params,i=new a.Q.FE(De.map(t,(function(t){var i=t.toJSON();return i.appLink={application:e.options.appLink.application,action:e.options.appLink.action,args:[e.options.collectionIdentifier.id],params:Object.assign(Object.assign({},n),{sort:t.get("sortName")})},i})));this.showChildView("dropdown",new we.w({collection:i,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"sort:selected"},displayOptions:{alignment:"end"},analyticsHelper:ve.k}))}}])&&Me(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),We=n(56846),Ke=n.n(We);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)}function Ze(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"!=Xe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Xe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xe(t)?t:t+""}function Ge(e,t,n){return t=Je(t),function(e,t){if(t&&("object"==Xe(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,qe()?Reflect.construct(t,n||[],Je(e).constructor):t.apply(e,n))}function qe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qe=function(){return!!e})()}function Je(e){return Je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Je(e)}function et(e,t){return et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},et(e,t)}var tt=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),Ge(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&&et(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.analyticsOptions=ve.k.mergeOptions(this.options.analyticsOptions,{location:j.LZ.VideoListHeader})}},{key:"name",get:function(){return"VideoListSubheadingComponent"}},{key:"template",get:function(){return Ke()}},{key:"className",get:function(){return"px-3"}},{key:"lang",get:function(){return"libraryEditor.videoListSubheading"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{checkAll:{el:".check-all-region",replaceElement:!1},bulkActions:{el:".bulk-actions-region",replaceElement:!0},sorting:{el:".sorting-region",replaceElement:!0},typeFilter:{el:".type-filter-region",replaceElement:!0}}}},{key:"renderCheckAll",value:function(){this.options.allowBulk&&this.showChildView("checkAll",new Le.Y({className:"float-start",key:this.collectionIdentifier.toString(),type:ke.De.VIDEO_LIST,numberOfItems:this.collection.length}))}},{key:"renderBulkActions",value:function(){this.options.allowBulk&&this.showChildView("bulkActions",new _e({collection:this.collection,collectionIdentifier:this.collectionIdentifier,application:this.options.application,analyticsOptions:ve.k.mergeOptions(this.options.analyticsOptions,{descriptor:j.yh.Bulk,location:j.LZ.VideoListHeader,entity:j.py.Video,workflowPhase:j.eu.Start})}))}},{key:"renderSorting",value:function(){this.showChildView("sorting",new ze({collectionIdentifier:this.collectionIdentifier,analyticsOptions:this.analyticsOptions,appLink:{application:this.options.application,action:this.options.action}}))}},{key:"renderTypeFilter",value:function(){this.options.showTypeFilter&&this.showChildView("typeFilter",new xe.fH({model:this.options.filterCollection.first(),analyticsOptions:this.analyticsOptions,channelName:this.options.collectionViewChannel}))}},{key:"viewOptions",value:function(){return{showBulkActions:this.options.allowBulk&&this.collection.length>0,showHeading:this.options.showHeading}}},{key:"onBeforeRender",value:function(){return!(!Re.qr.hasOptionSelected(this.options.filterCollection.first())&&!this.collection.length)}},{key:"onRender",value:function(){this.renderCheckAll(),this.renderTypeFilter(),this.renderBulkActions(),this.renderSorting()}}])&&Ze(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),nt=n(26457),it=n(56906),ot=n(95061),rt=n(7170),lt=n(44937),at=n(93089),ct=n.n(at);function st(e){return st="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},st(e)}function ut(e,t,n,i){var o=ft(vt(1&i?e.prototype:e),t,n);return 2&i?function(e){return o.apply(n,e)}:o}function ft(){return ft="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=vt(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ft.apply(null,arguments)}function pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dt(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,yt(i.key),i)}}function ht(e,t,n){return t&&dt(e.prototype,t),n&&dt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yt(e){var t=function(e,t){if("object"!=st(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=st(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==st(t)?t:t+""}function bt(e,t,n){return t=vt(t),function(e,t){if(t&&("object"==st(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,mt()?Reflect.construct(t,n||[],vt(e).constructor):t.apply(e,n))}function mt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mt=function(){return!!e})()}function vt(e){return vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vt(e)}function gt(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&&wt(e,t)}function wt(e,t){return wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wt(e,t)}var kt=function(e){function t(e){return pt(this,t),bt(this,t,[e])}return gt(t,e),ht(t,[{key:"initialize",value:function(){this.initializeQuery(),this.bindListeners(),this.getSortType(),this.getMediaType(),this.videoDataService=o.u.getInstance(m.Or.Video,this),this.libraryDataService=o.u.getInstance(m.Or.Library,this),this.pendingItemsService=o.u.getInstance(m.K9.PendingItems,this),this.localCacheDataService=o.u.getInstance(m.Or.LocalCache,this),this.playerDataService=o.u.getInstance(m.Or.Player,this),this.videoMixinService=o.u.getInstance(m.K9.VideoMixin,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"template",get:function(){return ct()}},{key:"className",get:function(){return"bg-white rounded"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{banner:{el:".banner-region",replaceElement:!0,partialLoading:v.LP.Banner},header:{el:".header-region",replaceElement:!0,partialLoading:v.LP.VideoListHeader},videoList:{el:".video-list-region",replaceElement:!0,partialLoading:v.LP.VideoListWithBulkActions},childFolders:{el:".child-folders-region",replaceElement:!1,partialLoading:v.LP.SubFolder},pagination:{el:".pagination-region",replaceElement:!0},subheading:{el:".subheading-region",replaceElement:!0,partialLoading:v.LP.VideoListSubheading}}}},{key:"bindListeners",value:function(){var e=this.options.collectionIdentifier.toString();this.listenTo(m.Vk.VIDEO,"".concat(e,":sync"),this.render),this.listenTo(m.Vk.VIDEO,"".concat(m.M_.DELETE_VIDEO,":sync"),this.fetchData),this.listenTo(m.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(m.Vk.RESTRICTED_VIDEO,"".concat(m.M_.RESTRICTED_OBJECTS,":").concat(e,":invalidate"),this.updateRestrictedVideos),this.listenTo(this.channelName,"cancel:pending:item",this.cancelPendingItem),this.listenTo(this.channelName,"retry:pending:item",this.retryPendingItem),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(this.channelName,m.Vy.Filters.FILTER_CHANGED,this.filterChanged),this.listenTo(m.Vk.LOCAL_CACHE,"".concat(m.M_.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(m.Vk.LOCAL_CACHE,"".concat(m.M_.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"getSortType",value:function(){this.sortType||(this.sortType=this.options.collectionIdentifier.sort)}},{key:"getMediaType",value:function(){this.mediaType||(this.mediaType=this.options.collectionIdentifier.mediaType)}},{key:"updateRestrictedVideos",value:function(){var e=this;this.videoMixinService.getAndMixinVideoCollectionRestrictions(this.videoCollection,this.collectionIdentifier,(function(){return e.render()}))}},{key:"cancelPendingItem",value:function(e){this.pendingItemsService.clearPendingItem(e)}},{key:"retryPendingItem",value:function(e){this.pendingItemsService.retryPendingItem(e)}},{key:"createViewKey",value:function(e,t){this.playerDataService.createViewKey(e,s.f.MasterObject,t)}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&(this.videosWithMetadata=new h.t(this.videoCollection.map((function(e){return(0,O.Z)({id:e.get("id"),typeId:e.get("typeId")})}))))}},{key:"renderBanner",value:function(){var e=new Q({model:this.model,channelName:this.channelName,imageCdnUrl:this.config.get("imageCdnUrl")});this.showChildView("banner",e)}},{key:"renderChildFolders",value:function(){var e;if(null===(e=this.folders)||void 0===e?void 0:e.length){var t=new le({collection:this.folders,forceExpanded:0===this.videoCollection.length});this.showChildView("childFolders",t)}}},{key:"renderHeader",value:function(){this.showChildView("header",new me({collection:this.videoCollection,libraries:this.libraryCollection,folder:this.model instanceof k.g&&this.model}))}},{key:"renderSubheading",value:function(){var e;this.showChildView("subheading",new tt({collection:this.videoCollection,application:m.OV.LIBRARY_EDITOR,action:this.appLinkAction(),allowBulk:this.allowBulk(),showTypeFilter:this.showTypeFilter(),filterCollection:this.filterCollection,collectionIdentifier:this.collectionIdentifier,collectionViewChannel:this.channelName,analyticsOptions:this.options.analyticsOptions,showHeading:!!(null===(e=this.folders)||void 0===e?void 0:e.length)}))}},{key:"renderVideoList",value:function(){var e,t=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),n=new b.Y({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:m.OV.LIBRARY_EDITOR,allowBulk:this.allowBulk(),collectionIdentifier:this.collectionIdentifier,config:this.config,pendingItems:this.pendingItemsService.getPendingItems(),videoItemComponentType:this.componentType,emptyStateType:this.emptyStateType(),emptyStateOptions:this.emptyStateOptions(),supportSiteUrl:this.config.get("supportSiteUrl"),collectionViewChannel:this.channelName,customerHasLocalCache:I.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),customerHasExchange:this.exchanges.any(),analyticsOptions:this.options.analyticsOptions,sourceMetadataOptions:{showFolder:this.showFolderSource(),libraries:this.libraryCollection},videoCollectionSource:this.getVideoCollectionSource(),currentUser:this.currentUser,playerApiUrl:this.config.get("playerApiUrl"),createViewKey:this.createViewKey,hasCursors:!!t,showEmptyState:!(null===(e=this.folders)||void 0===e?void 0:e.length)||!this.videoCollection.length,libraries:this.libraryCollection,products:this.products});this.showChildView("videoList",n)}},{key:"renderPagination",value:function(){var e=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),t=new f.Q({cursors:e,collectionId:this.options.collectionIdentifier.id,appLink:{application:m.OV.LIBRARY_EDITOR,action:this.appLinkAction(),args:[this.collectionIdentifier.id],params:Object.assign(Object.assign({},this.collectionIdentifier.toParams()),{previous:this.options.previous,cursor:this.options.cursor})},analyticsOptions:this.options.analyticsOptions});this.showChildView("pagination",t)}},{key:"fetchData",value:function(){this.fetchModel(),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),this.fetchVideoCollection()}},{key:"fetchVideoWithMetadata",value:function(e,t){var n=this;this.videoDataService.getUnionVideo(e,t,(function(t){var i=n.videosWithMetadata.get(e);i&&(i.set(t.toJSON()),i.set({dataFetched:!0}))}))}},{key:"initializeQuery",value:function(){this.queryModel=this.getSearchModel()}},{key:"initializeFilterCollection",value:function(){var e,t,n;this.filterCollection=new rt.y([{title:"Types",type:c.K.MediaType,behavior:Re.xF.Inclusive,isDynamic:!1,showInMoreFilters:!1,selectAllWhenNoneSelected:!1,minNumOptions:0,prefixWhenActive:!1,options:[{id:g.D.Clip,name:r.T.getPhrase(this.lang,"clips"),value:g.D.Clip,active:null===(e=this.mediaType)||void 0===e?void 0:e.includes(g.D.Clip)},{id:g.D.Video,name:r.T.getPhrase(this.lang,"videos"),value:g.D.Video,active:null===(t=this.mediaType)||void 0===t?void 0:t.includes(g.D.Video)},{id:g.D.Interactive,name:r.T.getPhrase(this.lang,"interactives"),value:g.D.Interactive,active:null===(n=this.mediaType)||void 0===n?void 0:n.includes(g.D.Interactive)}]}]),this.setQueryParams()}},{key:"getSearchModel",value:function(){return l.r.get("search",{ctor:lt.AE})}},{key:"setQueryParams",value:function(){Re.yf.setQueryParams(Object.assign({},this.collectionIdentifier.toParams()),this.queryModel,this.filterCollection)}},{key:"filterChanged",value:function(){var e=a.Q.C$.getCurrentAppLink().params,t=Re.yf.getRouteQueryParams(this.queryModel,this.filterCollection,null);a.Q.C$.trigger({application:m.OV.LIBRARY_EDITOR,action:m.eX.LibraryEditor.FOLDER,args:[this.collectionIdentifier.id],params:Object.assign(Object.assign({},e),{mediaType:t.mediaType})})}},{key:"requiredResources",get:function(){return{config:S.p.config,currentUser:C.K.currentUser,libraryCollection:ot.T.libraries,exchanges:ot.T.exchanges,products:E.s.products}}},{key:"onBeforeRender",value:function(){return this.initializeFilterCollection(),this.fetchData(),!!this.videoCollection&&(this.setVideosWithMetadata(),!!this.model)}},{key:"onRender",value:function(){this.renderBanner(),this.renderHeader(),this.renderChildFolders(),this.renderSubheading(),this.renderVideoList(),this.renderPagination()}}])}(a.Q.G7),Ot=function(e){function t(){return pt(this,t),bt(this,t,arguments)}return gt(t,e),ht(t,[{key:"name",get:function(){return"FolderView"}},{key:"lang",get:function(){return"libraryEditor.folderView"}},{key:"componentType",get:function(){return y.U.Draggable}},{key:"bindListeners",value:function(){this.listenTo(m.Vk.LIBRARY,"".concat(m.M_.FOLDER,":").concat(this.options.collectionIdentifier.id,":sync libraries:sync"),this.render),this.listenTo(m.Vk.LIBRARY,"".concat(m.M_.FOLDER,":").concat(this.options.collectionIdentifier.id,":error"),this.onError),this.listenTo(m.Vk.LIBRARY,"".concat(m.M_.UPDATE_FOLDER_BANNER,":").concat(this.options.collectionIdentifier.id,":sync"),this.fetchModel),this.listenTo(m.Vk.LIBRARY,"".concat(new w.KX(this.options.collectionIdentifier.id,p.E.AtoZ),":invalidate"),this.onFoldersInvalidate),ut(t,"bindListeners",this,3)([])}},{key:"onError",value:function(e){switch(e.type){case i.h.Forbidden:a.Q.Ry.throw(new it.gO);break;case i.h.NotFound:a.Q.Ry.throw(new it.Zv)}}},{key:"appLinkAction",value:function(){return m.eX.LibraryEditor.FOLDER}},{key:"allowBulk",value:function(){return!0}},{key:"showTypeFilter",value:function(){return!0}},{key:"emptyStateType",value:function(){return v.ub.Folder}},{key:"emptyStateOptions",value:function(){return{heading:r.T.getPhrase(this.lang,"emptyStateHeading"),description:r.T.getPhrase(this.lang,"emptyStateInfo",{url:d.o.getHybridArticle(u.s.AddFromOnline,u.b.AddFromLite),classNames:"info-link"})}}},{key:"showFolderSource",value:function(){return!1}},{key:"getVideoCollectionSource",value:function(){return nt.x_.Folder}},{key:"fetchModel",value:function(){this.model=this.libraryDataService.getFolder(this.collectionIdentifier.id)}},{key:"fetchVideoCollection",value:function(){this.videoCollection=this.videoDataService.getCollectionVideos(this.collectionIdentifier)}},{key:"onFoldersInvalidate",value:function(){this.fetchFolders(null,!0)}},{key:"fetchFolders",value:function(e,t){var n=this,i=new w.KX(this.collectionIdentifier.id,p.E.AtoZ,e);this.libraryDataService.getFolders(i,(function(e){t||!n.folders?n.folders=e:n.folders.add(e.models);var o=n.libraryDataService.getFoldersCursors(i);(null==o?void 0:o.next)?n.fetchFolders(o.next):n.render()}))}},{key:"onBeforeRender",value:function(){return this.folders||this.fetchFolders(),ut(t,"onBeforeRender",this,3)([])&&!!this.folders}}])}(kt),St=function(e){function t(){return pt(this,t),bt(this,t,arguments)}return gt(t,e),ht(t,[{key:"initialize",value:function(){this.seriesDataService=o.u.getInstance(m.Or.Series,this),ut(t,"initialize",this,3)([])}},{key:"name",get:function(){return"SeriesView"}},{key:"lang",get:function(){return"libraryEditor.seriesView"}},{key:"componentType",get:function(){return y.U.Base}},{key:"regions",value:function(){var e=ut(t,"regions",this,3)([]);return e.subheading.partialLoading=v.LP.SeriesVideoListSubheading,delete e.header.partialLoading,delete e.childFolders.partialLoading,e}},{key:"bindListeners",value:function(){this.listenTo(m.Vk.SERIES,"".concat(m.M_.SERIES,":").concat(this.options.collectionIdentifier.id,":sync"),this.render),this.listenTo(m.Vk.SERIES,"".concat(m.M_.SERIES,":").concat(this.options.collectionIdentifier.id,":error"),this.onError),ut(t,"bindListeners",this,3)([])}},{key:"onError",value:function(e){e.type===i.h.NotFound&&a.Q.Ry.throw(new it.Ag)}},{key:"appLinkAction",value:function(){return m.eX.LibraryEditor.SERIES}},{key:"allowBulk",value:function(){return!1}},{key:"showTypeFilter",value:function(){return!1}},{key:"emptyStateType",value:function(){return v.ub.Series}},{key:"emptyStateOptions",value:function(){return{heading:r.T.getPhrase(this.lang,"emptyStateHeading"),description:r.T.getPhrase(this.lang,"emptyStateInfo",{url:d.o.getHybridArticle(u.s.AddFromOnline,u.b.AddFromLite),classNames:"info-link"})}}},{key:"showFolderSource",value:function(){return!0}},{key:"getVideoCollectionSource",value:function(){return nt.x_.Series}},{key:"fetchModel",value:function(){this.model=this.seriesDataService.getSeries(this.collectionIdentifier.id)}},{key:"fetchVideoCollection",value:function(){this.videoCollection=this.videoDataService.getSeriesVideos(this.collectionIdentifier,this.libraryCollection.pluck("id"))}}])}(kt)},57085:function(e,t,n){"use strict";n.d(t,{n:function(){return T}});var i=n(31647),o=n(57098),r=n(22557),l=n(86363),a=n.n(l);function c(e){return c="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},c(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,p(i.key),i)}}function f(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}function d(e,t,n){return t=y(t),function(e,t){if(t&&("object"==c(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||[],y(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 y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(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)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var v=function(e){function t(){return s(this,t),d(this,t,arguments)}return b(t,e),f(t,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return a()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}])}(i.Q.wA),g=function(e){function t(){return s(this,t),d(this,t,arguments)}return b(t,e),f(t,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return v}}])}(i.Q.$W),w=n(93933),k=n.n(w);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 S(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 C(e,t,n){return t=j(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,I()?Reflect.construct(t,n||[],j(e).constructor):t.apply(e,n))}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(I=function(){return!!e})()}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}var T=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&&P(e,t)}(t,e),n=t,(l=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return k()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var e=this;this.breadcrumbCollection=new i.Q.FE([]);var t,n=this.options.folder;do{if(!n)break;if(t=r.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!t),{at:0}),!t)break;n=t}while(t);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(t){return e.breadcrumbCollection.add(t)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?o.eX.LibraryEditor.FOLDER:o.eX.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:o.OV.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new g({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&S(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,l}(i.Q.wA)},85552: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,o){var r;return e.propertyIsEnumerable,'<h1 class="text-white position-absolute m-0">\n '+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):r)+'\n</h1>\n<div class="options-region"></div>'},useData:!0})},53370: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,o){var r;return e.propertyIsEnumerable,'<button class="btn btn-outline-dark dropdown-toggle" type="button" id="sortSelectButton" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n '+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):r)+'\n</button>\n<div class="dropdown-menu-region"></div>'},useData:!0})},73368:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,o){return"ps-2"},3:function(e,t,n,i,o){return"cursor-pointer"},5:function(e,t,n,i,o){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="'+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+" "+a(l(null!=(r=null!=t?t.options:t)?r.caretClass:r,t))+'">\n '+(null!=(r=l(null!=(r=null!=t?t.options:t)?r.caretSvg:r,t))?r:"")+"\n </div>\n"},7:function(e,t,n,i,o){var r;return e.propertyIsEnumerable,' <div class="d-flex justify-content-end justify-self-end px-2 expand-toggle">\n <span class="info-link d-inline-block">\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.isExpanded:r,{name:"if",hash:{},fn:e.program(8,o,0),inverse:e.program(10,o,0),data:o}))?r:"")+" </span>\n </div>\n"},8:function(e,t,n,i,o){return e.propertyIsEnumerable," "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeLess",{name:"lang",hash:{},data:o}))+"\n"},10:function(e,t,n,i,o){var r;return e.propertyIsEnumerable," "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{smartCount:null!=(r=null!=t?t.options:t)?r.count:r},data:o}))+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{},a=e.escapeExpression;return'<div class="d-flex justify-content-between align-items-center">\n <div class="d-inline-flex align-items-center mb-2 expand-toggle '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.forceExpanded:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?r:"")+'">\n'+(null!=(r=n.unless.call(l,null!=(r=null!=t?t.options:t)?r.forceExpanded:r,{name:"unless",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?r:"")+' <h2 class="h4 mb-0">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folders",{name:"lang",hash:{},data:o}))+" ("+a(e.lambda(null!=(r=null!=t?t.options:t)?r.count:r,t))+")</h2>\n </div>\n"+(null!=(r=n.unless.call(l,null!=(r=null!=t?t.options:t)?r.forceExpanded:r,{name:"unless",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?r:"")+'</div>\n<div class="subfolders-region"></div>'},useData:!0})},8420: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,o){return'<div class="py-3 border-bottom">\n <div class="breadcrumbs-region d-inline-flex align-items-center"></div>\n</div>'},useData:!0})},56846:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,o){return e.propertyIsEnumerable,'<h2 class="h4">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"videos",{name:"lang",hash:{},data:o}))+"</h2>"},3:function(e,t,n,i,o){return"pt-2"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{};return(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.showHeading:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+'\n<div class="d-flex justify-content-between align-items-center pb-2 '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.showHeading:r,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?r:"")+'">\n <div class="d-inline-flex justify-content-start">\n <div class="check-all-region d-inline-flex align-items-center"></div>\n <div class="bulk-actions-region"></div>\n <div class="ms-2">\n <div class="type-filter-region"></div>\n </div>\n </div>\n <div class="sorting-region"></div>\n</div>'},useData:!0})},93089: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,o){return'<div class="banner-region"></div>\n<div class="header-region"></div>\n<div class="child-folders-region"></div>\n<div class="subheading-region"></div>\n<div class="video-list-region"></div>\n<div class="pagination-region"></div>'},useData:!0})},86363:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,o){var r;return e.propertyIsEnumerable,'<span class="fw-bolder">'+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):r)+"</span>\n"},3:function(e,t,n,i,o){var r;return e.propertyIsEnumerable,"<a>"+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):r)+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r;return e.propertyIsEnumerable,null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.isActive:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?r:""},useData:!0})},93933: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,o){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},34670:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{};return'<button\n class="dropdown-toggle btn btn-outline-dark ms-2 '+(null!=(r=n.unless.call(l,null!=(r=null!=t?t.options:t)?r.enabled:r,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+'"\n type="button"\n id="bulkActions"\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n '+(null!=(r=n.unless.call(l,null!=(r=null!=t?t.options:t)?r.enabled:r,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+"\n>\n "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"options",{name:"lang",hash:{},data:o}))+'\n</button>\n<div class="dropdown-menu-region"></div>'},useData:!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()}}}],r&&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")}}}],r&&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&&gt(e.prototype,t),n&&gt(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()}}],r&&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
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3746],{54096:function(e,r,n){n.d(r,{G:function(){return c}});var t=n(1024),o=n(21679);function c(e){var r,n;return r=e,n=o.u.getInstance(r),t.useEffect((function(){return function(){o.u.releaseInstance(r)}})),n}},2491:function(e,r,n){n.d(r,{Z:function(){return u}});var t=n(92159),o=n(21186),c=n(54096);function u(){var e=(0,c.G)(t.P.ALERT);return{success:function(r){e.success(r)()},error:function(r){e.error(r)()},warning:function(r){e.createAlert({type:o.NK.Warning,heading:o.R6.Warning,message:r})}}}},17942:function(e,r,n){n.r(r),n.d(r,{RemoveLogoView:function(){return b}});var t=n(1024),o=n.n(t),c=n(57857),u=n(86120),a=n(52076),i=n(70065),l=n(71575),s=n(83996),f=n(66703),m=n(2491),p=n(2248),v=n(57098),y={removeLogo:function(e,r,n,t){return{url:"/api/domain/v2/objects/".concat(e,"/logo/").concat(r),key:"remove:logo:".concat(r),type:p.k.DELETE,success:n,error:t,invalidationKeys:[v.M_.LOGO],dataServices:[v.Or.Customer]}}};function d(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=Array(r);n<r;n++)t[n]=e[n];return t}var g="libraryEditor.removeLogo",h=c.T.encloseNamespace(g);function b(e){var r,n,t=(r=o().useState(!1),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,c,u,a=[],i=!0,l=!1;try{if(c=(n=n.call(e)).next,0===r){if(Object(n)!==n)return;i=!1}else for(;!(i=(t=c.call(n)).done)&&(a.push(t.value),a.length!==r);i=!0);}catch(e){l=!0,o=e}finally{try{if(!i&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(r,n)||function(e,r){if(e){if("string"==typeof e)return d(e,r);var n={}.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)?d(e,r):void 0}}(r,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.")}()),c=t[0],p=t[1],v=u.a.useGetFetch(),b=(0,m.Z)();return o().createElement(l.G,{closePopup:e.closePopup,title:h("removeSchoolCrest")},o().createElement("p",null,o().createElement(f.x,{namespace:g,phrase:"areYouSure"})),o().createElement(s.u,null,o().createElement(s.u.Cancel,{onClick:e.closePopup}),o().createElement(s.u.Submit,{onClick:function(){p(!0),v(y.removeLogo(e.customerId,e.logoId,(function(){b.success(h("success")),a.k.logUserAction({id:e.logoId},{actionType:i.Vw.Remove,entity:i.py.Logo,workflowPhase:i.eu.Complete,location:i.LZ.Popup}),e.closePopup()}),(function(){b.success(h("error")),p(!1)})))},text:h("remove"),showSpinner:c,variant:"danger"})))}}}]);
@@ -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([[3969],{89375:function(e,r,t){t.d(r,{j:function(){return i}});var a=t(31647),n=" - ClickView",i={setPageTitle:function(e){e&&a.Q.Ab.SetPageTitle(function(e){return e.length+12<=60?e+n:e.substring(0,57)+"..."+n}(e))}}},86242:function(e,r,t){t.d(r,{Oo:function(){return f},b2:function(){return v}});var a=t(1024),n=t(57857),i=t(49642),c=t(90547),l=t(5256),o=t(89146),u=t(63791),s=t(39396);function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,n,i,c,l=[],o=!0,u=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;o=!1}else for(;!(o=(a=i.call(t)).done)&&(l.push(a.value),l.length!==r);o=!0);}catch(e){u=!0,n=e}finally{try{if(!o&&null!=t.return&&(c=t.return(),Object(c)!==c))return}finally{if(u)throw n}}return l}}(e,r)||function(e,r){if(e){if("string"==typeof e)return b(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?b(e,r):void 0}}(e,r)||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 b(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}var d=n.T.encloseNamespace("shared.breadcrumbComponent"),y=a.forwardRef((function(e,r){var t=e.breadcrumb,n=t.name,c=t.appLink,l=t.active,o=e.withBackIcon,m=n,b=null;return m.length>48&&(m=n.slice(0,48)+"...",b=n),a.createElement("li",{className:"breadcrumb-item".concat(l?" active":""),title:b},l?a.createElement("strong",null,m):a.createElement(i.F,{appLink:c,ref:r},o&&a.createElement(s.x,{svgName:u.vn.ChevronLeft,size:s.S.Small}),a.createElement("span",{className:o?"ms-2":""},m)))})),f=function(e){var r=e.breadcrumbs,t=(0,l.a)(c.r.XS),n=(null==r?void 0:r.length)||0,i=m(a.useState(!1),2),o=i[0],u=i[1],s=m(a.useState(!1),2),b=s[0],f=s[1],v=a.useRef();if(a.useEffect((function(){var e,t=null!==(e=null==r?void 0:r.reduce((function(e,r){return e+r.name.length}),0))&&void 0!==e?e:0;n>4&&t>64&&u(!0)}),[null==r?void 0:r.length]),a.useLayoutEffect((function(){var e;b&&(null===(e=v.current)||void 0===e||e.focus())}),[v.current,b]),!n||t&&n<2)return a.createElement(a.Fragment,null);if(t)return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},a.createElement(y,{breadcrumb:r[n-2],withBackIcon:!0})));var g=a.createElement(y,{breadcrumb:r[0]}),p=n>2?a.createElement(y,{breadcrumb:r[1]}):a.createElement(a.Fragment,null),h=n>3?a.createElement(y,{breadcrumb:r[n-2]}):a.createElement(a.Fragment,null),E=n>1?a.createElement(y,{breadcrumb:r[n-1]}):a.createElement(a.Fragment,null),w=r.slice(2,n-2);return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},g,p,o?a.createElement("li",{className:"breadcrumb-item"},a.createElement("button",{className:"btn-link",onClick:function(){u(!1),f(!0)},"aria-label":d("expand")},"...")):w.map((function(e,r){return a.createElement(y,{key:r,breadcrumb:e,ref:0===r?v:null})})),h,E))},v=a.memo((function(e){var r=e.numItems,t=void 0===r?3:r;return(0,l.a)(c.r.XS)?a.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},o.u.getPartialLoadingItems({numItems:t}).map((function(e,r){var t=e.width;return a.createElement("li",{key:r,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:t},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},84611:function(e,r,t){t.d(r,{f:function(){return l}});var a=t(1024),n=t.n(a),i=t(39396),c={circle:"Uxnsl",img:"BQ87Y"};function l(e){var r;return e.imageUrl||e.svgName?e.imageUrl?n().createElement("div",{className:"".concat(c.img," rounded-circle h-100 w-100"),style:{backgroundImage:"url(".concat(e.imageUrl,")")}}," "):n().createElement("div",{className:"".concat(c.circle," ").concat(e.variant?"bg-".concat(e.variant):""," text-").concat(e.textVariant," rounded-circle h-100 w-100 ").concat(null!==(r=e.svgWrapperClassName)&&void 0!==r?r:"")},n().createElement(i.x,{svgName:e.svgName,size:e.svgSize})):n().createElement(n().Fragment,null)}l.defaultProps={textVariant:"white"}},90547:function(e,r,t){var a;t.d(r,{r:function(){return a}}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(a||(a={}))},34107:function(e,r,t){t.d(r,{D:function(){return l}});var a=t(2248),n=t(68003),i=t(40221),c=t(84657),l={domainLibraries:function(e,r,t,a){return{url:n._.urlBuilder("/api/domain/v2/me/libraries",{type:e,maxCategoryDepth:0}),key:"libraries:".concat(e.sort().join(":")),formatData:function(e){return e.map((function(e){return e.data}))},success:r,error:t,always:a}},libraryRequestLibraries:function(){return{url:"{gateway}/v1/library-requests/libraries",key:"libraries"}},librariesWithCategories:function(){return{url:n._.urlBuilder("/api/domain/v2/me/libraries",{type:["sharedLibrary","customLibrary","unpublishedCustomLibrary"],maxCategoryDepth:5}),key:"libraries:with:categories",normalize:!1}},librariesWithOwnerLogos:function(e,r,t,a){return e.sort(),{url:n._.urlBuilder("/api/domain/v2/objects",{query:c.v.LIBRARY_COLLECTION,id:e}),key:"libraries:owner:logo:".concat(e.join(",")),success:r,error:t,always:a}},library:function(e,r,t,a){return{url:n._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:c.v.LIBRARY}),key:"library:".concat(e),success:r,error:t,always:a}},exchange:function(e){return{url:n._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"categorytree"}),key:"exchange"}},streamableLearning:function(){return{url:"{gateway}/v1/streamable-learning-library",key:"streamable:learning"}},librarySubscribers:function(e,r){var t={};return r&&(t.cursor=r),{url:n._.urlBuilder("{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers"),t),key:"library:subscribers:".concat(e,":").concat(r)}},libraryOwner:function(e){return{url:"{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers?ownerOnly=true"),key:"library:owner:".concat(e),formatData:function(e){return i.m.first(e.data)}}},updateSubscriberPermissions:function(e,r,t,n,i){return{url:"{gateway}/v1/libraries/".concat(e,"/library-request-permissions"),key:"update:subscriber:permissions:".concat(e,":").concat(r),type:a.k.PUT,data:{customerId:r,granted:t},invalidationKeys:["library:owner:".concat(e),"library:subscribers:".concat(e)],success:n,error:i}},removeSubscriber:function(e,r,t,n){return{url:"{gateway}/v1/objects/".concat(e,"/subscribedcustomers?memberId=").concat(r),key:"revoke:subscription:".concat(e,":").concat(r),type:a.k.DELETE,invalidationKeys:["library:subscribers:".concat(e)],success:t,error:n}},folder:function(e,r,t,a){return{url:"{gateway}/v1/objects/".concat(e,"?query=banner,libraries"),key:"library:folder:".concat(e),success:r,error:t,always:a}},videoFolders:function(e){return{url:"{gateway}/v1/objects/".concat(e,"/categories?query=libraries"),key:"video:folders:".concat(e)}},folderParentTree:function(e,r,t,a){return{url:"/api/domain/v2/categories/".concat(e,"/parent-tree?includeAll=false"),key:"folder:parent:tree".concat(e),success:r,error:t,always:a}},childFolders:function(e,r,t,a,n){var i="{gateway}/v1/objects/".concat(e,"/categories?query={limit:100}thumbnail"),c="child:folders:".concat(e);return r&&(i+="&cursor=".concat(r),c+=":".concat(r)),{url:i,key:c,formatData:function(e){var r=e.data.sort((function(e,r){return e.name.toLowerCase().localeCompare(r.name.toLowerCase())}));return Object.assign(Object.assign({},e),{data:r})},success:t,error:a,always:n}},addToLibrary:function(e,r){var t=["folder","videos",e.metadata.destinationCategoryId,r].filter((function(e){return!!e})).join(":");return{url:"{gateway}/v1/library-requests",key:"add:".concat(e.objectId,":to:").concat(e.destinationLibraryId,":").concat(e.metadata.destinationCategoryId),type:a.k.POST,data:e,invalidationKeys:t}},libraries:function(){return{url:"{gateway}/v1/users/me/libraries",key:"objects:libraries"}}}},89146:function(e,r,t){function a(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}t.d(r,{u:function(){return i}});var n={numItems:5,minWidth:50,maxWidth:100},i={getPartialLoadingItems:function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},n),r);return(e=Array(t.numItems),function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return a(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,r):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.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*t.maxWidth),t.minWidth),"px")}}))}}},52814:function(e,r,t){t.d(r,{y:function(){return i}});var a=t(1024),n=t.n(a);function i(){return n().createElement("div",{className:"partial-loading-background w-100 rounded-3",style:{height:"3.5rem"}}," ")}},23969:function(e,r,t){t.r(r),t.d(r,{LibraryRequestSettingsLibrariesView:function(){return L}});var a=t(1024),n=t.n(a),i=t(57857),c=t(31647),l=t(86120),o=t(40221),u=t(89375),s=t(86242),m=t(66703),b=t(34107),d=t(50997),y=t(52814),f=t(49642),v=t(84611),g=t(63791),p={libraryIcon:"hQt1a"};function h(e){var r,t;return n().createElement(f.F,{className:"p-2 border rounded-3 d-flex align-items-center mb-2 text-decoration-none",appLink:{application:d.OV.LIBRARY_REQUESTS,action:d.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[e.library.id]}},n().createElement("div",{className:"".concat(p.libraryIcon," me-2")},n().createElement(v.f,{svgName:g.vn.Library,imageUrl:null===(t=null===(r=e.library.owner)||void 0===r?void 0:r.logo)||void 0===t?void 0:t.url,variant:"dark-blue"})),n().createElement("h3",{className:"h6 mb-0"},e.library.name))}var E="libraryEditor.libraryRequestSettingsLibraries",w=i.T.encloseNamespace(E);function L(){var e=l.a.useBasicFetch(b.D.domainLibraries(["customLibrary","unpublishedCustomLibrary"]));n().useEffect((function(){return u.j.setPageTitle(w("libraryRequestSettings"))}),[]),n().useEffect((function(){e.data&&(e.data.length>1||c.Q.C$.trigger({application:d.OV.LIBRARY_REQUESTS,action:d.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[o.m.first(e.data).id]},{replace:!0}))}),[e.data]);var r=[{name:w("libraryEditor"),appLink:{application:d.OV.LIBRARY_EDITOR,action:d.eX.LibraryEditor.HOME}},{name:w("libraryRequestSettings"),appLink:{application:d.OV.LIBRARY_REQUESTS,action:d.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES},active:!0}];return n().createElement("div",{className:"bg-white p-3"},n().createElement("h1",{className:"h3 mb-2"},n().createElement(m.x,{namespace:E,phrase:"libraryRequestSettings"})),n().createElement(s.Oo,{breadcrumbs:r}),n().createElement("hr",null),n().createElement("h2",{className:"h5 mb-2"},n().createElement(m.x,{namespace:E,phrase:"myLibraries"})),e.data?n().createElement(n().Fragment,null,e.data.map((function(e){return n().createElement(h,{key:e.id,library:e})}))):n().createElement(n().Fragment,null,n().createElement("div",{className:"mb-2"},n().createElement(y.y,null)),n().createElement("div",{className:"mb-2"},n().createElement(y.y,null))))}}}]);