@clickview/library-editor 1.54.1-dev.0 → 1.55.0-dev.0

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 (167) hide show
  1. package/dist/bundles.json +3 -3
  2. package/dist/css/{2601-library-editor-8922d361d6.chunk.css → 2601-library-editor-df40499c04.chunk.css} +2 -2
  3. package/dist/css/{4001-library-editor-da87291909.chunk.css → 4001-library-editor-f6d2f9fb58.chunk.css} +1 -1
  4. package/dist/css/{9383-library-editor-02381b537c.chunk.css → 9383-library-editor-41fc3cc85e.chunk.css} +2 -2
  5. package/dist/css/{library-editor-app-08d619de95.css → library-editor-app-bcca987662.css} +1 -1
  6. package/dist/languages/en.json +4321 -1
  7. package/dist/scripts/101-8f41923234.chunk.js +1 -0
  8. package/dist/scripts/{1010-2c4e71bac2.chunk.js → 1010-4a381a84d4.chunk.js} +1 -1
  9. package/dist/scripts/{1086-d0efa1a0ca.chunk.js → 1086-7632f7b45b.chunk.js} +1 -1
  10. package/dist/scripts/112-4f413f94c0.chunk.js +1 -0
  11. package/dist/scripts/1216-83f6fbc7be.chunk.js +1 -0
  12. package/dist/scripts/{1269-ec70091b19.chunk.js → 1269-02d8d91784.chunk.js} +1 -1
  13. package/dist/scripts/{1409-f3fea6c3c3.chunk.js → 1409-58db6bd9f7.chunk.js} +1 -1
  14. package/dist/scripts/152-808e046b1f.chunk.js +2 -0
  15. package/dist/scripts/{1703-0e6940a3c0.chunk.js → 1703-45ced13ccd.chunk.js} +1 -1
  16. package/dist/scripts/{1832-9fd96d5efe.chunk.js → 1832-6a54b38248.chunk.js} +1 -1
  17. package/dist/scripts/{1876-fc815ba31e.chunk.js → 1876-e0567188b8.chunk.js} +1 -1
  18. package/dist/scripts/1973-7a1768228d.chunk.js +1 -0
  19. package/dist/scripts/2417-7628573bf3.chunk.js +1 -0
  20. package/dist/scripts/{243-d27b3c7903.chunk.js → 243-25fcce188c.chunk.js} +1 -1
  21. package/dist/scripts/2482-ded3090c15.chunk.js +1 -0
  22. package/dist/scripts/{259-d6a4aa6694.chunk.js → 259-e24fcf8f12.chunk.js} +1 -1
  23. package/dist/scripts/{2601-d42245cb40.chunk.js → 2601-944902ba08.chunk.js} +1 -1
  24. package/dist/scripts/{2644-cadc6531d6.chunk.js → 2644-98304e9394.chunk.js} +1 -1
  25. package/dist/scripts/2648-0a58c0fc05.chunk.js +1 -0
  26. package/dist/scripts/{2692-b7dff9da8a.chunk.js → 2692-1ddd87476e.chunk.js} +1 -1
  27. package/dist/scripts/2802-d428814c29.chunk.js +2 -0
  28. package/dist/scripts/2802-d428814c29.chunk.js.LICENSE.txt +8 -0
  29. package/dist/scripts/{2803-026f3af7cb.chunk.js → 2803-fbb9d2439d.chunk.js} +1 -1
  30. package/dist/scripts/{2888-a406bcd564.chunk.js → 2888-c2c8b859cd.chunk.js} +1 -1
  31. package/dist/scripts/299-1a0d6a88dc.chunk.js +1 -0
  32. package/dist/scripts/{2998-a3c3a1e950.chunk.js → 2998-aae0ec14de.chunk.js} +1 -1
  33. package/dist/scripts/{3400-326dc33968.chunk.js → 3400-ebc91cde7a.chunk.js} +1 -1
  34. package/dist/scripts/343-41502b5d24.chunk.js +1 -0
  35. package/dist/scripts/{35-d04a61537f.chunk.js → 35-68aa98885c.chunk.js} +1 -1
  36. package/dist/scripts/{3551-97ac416527.chunk.js → 3551-ad62e3a403.chunk.js} +1 -1
  37. package/dist/scripts/{3639-171b53e474.chunk.js → 3639-c5cc04c72d.chunk.js} +1 -1
  38. package/dist/scripts/3746-9c62c31099.chunk.js +1 -0
  39. package/dist/scripts/376-83584040a3.chunk.js +1 -0
  40. package/dist/scripts/{3763-21a9bc8c81.chunk.js → 3763-47619f0e54.chunk.js} +1 -1
  41. package/dist/scripts/3969-c636ff3159.chunk.js +1 -0
  42. package/dist/scripts/4001-a84ada264e.chunk.js +2 -0
  43. package/dist/scripts/4024-5bc8aa8dcd.chunk.js +1 -0
  44. package/dist/scripts/{4201-9f363cadea.chunk.js → 4201-ffd35af9cb.chunk.js} +1 -1
  45. package/dist/scripts/{4245-3680566469.chunk.js → 4245-59b4242cad.chunk.js} +1 -1
  46. package/dist/scripts/4523-55c4df85c8.chunk.js +1 -0
  47. package/dist/scripts/{4591-84bc2f21f0.chunk.js → 4591-78600e384c.chunk.js} +1 -1
  48. package/dist/scripts/{4860-7e9c7b578f.chunk.js → 4860-6001ab4e2a.chunk.js} +1 -1
  49. package/dist/scripts/5046-cb525612c6.chunk.js +1 -0
  50. package/dist/scripts/514-eeb95eba47.chunk.js +1 -0
  51. package/dist/scripts/{5173-6fe93f90b8.chunk.js → 5173-d333602893.chunk.js} +1 -1
  52. package/dist/scripts/{5286-c55bd5882c.chunk.js → 5286-7aac82c4d1.chunk.js} +1 -1
  53. package/dist/scripts/535-27d0457532.chunk.js +1 -0
  54. package/dist/scripts/{5412-abf3c7ab24.chunk.js → 5412-e2505df3a4.chunk.js} +1 -1
  55. package/dist/scripts/{5418-4cf3592f6a.chunk.js → 5418-f84d0ff359.chunk.js} +1 -1
  56. package/dist/scripts/{5424-fb9af4cac5.chunk.js → 5424-65be3c657c.chunk.js} +1 -1
  57. package/dist/scripts/5524-04583b6e40.chunk.js +1 -0
  58. package/dist/scripts/{5707-2455798bbe.chunk.js → 5707-fcb653aa7a.chunk.js} +1 -1
  59. package/dist/scripts/{5747-dc100fe944.chunk.js → 5747-674f00efcd.chunk.js} +1 -1
  60. package/dist/scripts/5850-74b0b14549.chunk.js +1 -0
  61. package/dist/scripts/5891-0864c38750.chunk.js +1 -0
  62. package/dist/scripts/{6093-c4d7d99258.chunk.js → 6093-e19df1d1fa.chunk.js} +1 -1
  63. package/dist/scripts/61-ec794cf02d.chunk.js +2 -0
  64. package/dist/scripts/{6352-9f5498c43f.chunk.js → 6352-6452f77c89.chunk.js} +1 -1
  65. package/dist/scripts/6532-48f3f080f5.chunk.js +2 -0
  66. package/dist/scripts/{6732-0223b7e084.chunk.js → 6732-85afd02f41.chunk.js} +1 -1
  67. package/dist/scripts/{6774-7d16e3a1b2.chunk.js → 6774-a002ac7253.chunk.js} +1 -1
  68. package/dist/scripts/{6788-1baf5483df.chunk.js → 6788-dc6b522995.chunk.js} +1 -1
  69. package/dist/scripts/6963-0e2bf1bde7.chunk.js +1 -0
  70. package/dist/scripts/7002-eef9319d36.chunk.js +1 -0
  71. package/dist/scripts/{7053-5f6f2bf8ee.chunk.js → 7053-35b82818eb.chunk.js} +1 -1
  72. package/dist/scripts/7071-6f7e375aaa.chunk.js +1 -0
  73. package/dist/scripts/708-c74c75f82a.chunk.js +1 -0
  74. package/dist/scripts/7153-57796cd98e.chunk.js +1 -0
  75. package/dist/scripts/{7190-b143292308.chunk.js → 7190-2b40df1e89.chunk.js} +1 -1
  76. package/dist/scripts/7295-474c754cb6.chunk.js +1 -0
  77. package/dist/scripts/{7376-e476873e22.chunk.js → 7376-e3bf3a94f9.chunk.js} +1 -1
  78. package/dist/scripts/{7408-eb04403233.chunk.js → 7408-15b5cc4a39.chunk.js} +1 -1
  79. package/dist/scripts/7827-ce63697325.chunk.js +1 -0
  80. package/dist/scripts/8113-d678e76098.chunk.js +1 -0
  81. package/dist/scripts/8130-0a0a9c4cab.chunk.js +1 -0
  82. package/dist/scripts/8213-14b105169f.chunk.js +1 -0
  83. package/dist/scripts/{8362-2712404025.chunk.js → 8362-267efdac61.chunk.js} +1 -1
  84. package/dist/scripts/8542-64733a5c92.chunk.js +1 -0
  85. package/dist/scripts/8591-149f4a2b62.chunk.js +1 -0
  86. package/dist/scripts/{8726-10013d1e22.chunk.js → 8726-2d0bc64637.chunk.js} +1 -1
  87. package/dist/scripts/{4506-e3e16c1c39.chunk.js → 8727-9077c2b877.chunk.js} +1 -1
  88. package/dist/scripts/{8762-0c818e61d0.chunk.js → 8762-be126e413d.chunk.js} +1 -1
  89. package/dist/scripts/{8906-3052c24e98.chunk.js → 8906-2ae58fb990.chunk.js} +1 -1
  90. package/dist/scripts/{8952-5dfd08cdc7.chunk.js → 8952-a9a7742f72.chunk.js} +2 -2
  91. package/dist/scripts/{9357-04700677af.chunk.js → 9357-e71ea6a34d.chunk.js} +1 -1
  92. package/dist/scripts/9369-1e706eb521.chunk.js +2 -0
  93. package/dist/scripts/9383-405d522f62.chunk.js +1 -0
  94. package/dist/scripts/{9695-8b46921478.chunk.js → 9695-636ea0ef64.chunk.js} +1 -1
  95. package/dist/scripts/{9927-1a5a65a341.chunk.js → 9927-7a935c955d.chunk.js} +1 -1
  96. package/dist/scripts/bundle-1a963db722.min.js +2 -0
  97. package/dist/scripts/bundle-1a963db722.min.js.LICENSE.txt +10 -0
  98. package/dist/scripts/{polyfills-e4d8584da7.min.js → polyfills-5ce436cbbe.min.js} +1 -1
  99. package/package.json +4 -5
  100. package/typings/libs/CVEvents.d.ts +13 -0
  101. package/typings/libs/CVLanguages.d.ts +24 -0
  102. package/typings/libs/LazyLoad.d.ts +30 -0
  103. package/typings/libs/LazyLoad.ts +27 -0
  104. package/typings/libs/cookiesjs.d.ts +24 -0
  105. package/dist/scripts/101-1aa755b98b.chunk.js +0 -1
  106. package/dist/scripts/1216-9d2e314558.chunk.js +0 -1
  107. package/dist/scripts/1537-2945b91924.chunk.js +0 -1
  108. package/dist/scripts/1973-074d4e72c2.chunk.js +0 -1
  109. package/dist/scripts/209-f9e52775b1.chunk.js +0 -1
  110. package/dist/scripts/2516-0290fc7712.chunk.js +0 -1
  111. package/dist/scripts/2639-efe1222211.chunk.js +0 -2
  112. package/dist/scripts/2639-efe1222211.chunk.js.LICENSE.txt +0 -8
  113. package/dist/scripts/2648-61a84bc983.chunk.js +0 -1
  114. package/dist/scripts/2955-521e238d27.chunk.js +0 -1
  115. package/dist/scripts/299-32a1391000.chunk.js +0 -1
  116. package/dist/scripts/3746-9f89d2e526.chunk.js +0 -1
  117. package/dist/scripts/376-4d9e8d5305.chunk.js +0 -1
  118. package/dist/scripts/3969-14f58e46c8.chunk.js +0 -1
  119. package/dist/scripts/4001-5f16bcaff3.chunk.js +0 -2
  120. package/dist/scripts/4024-e76b07c207.chunk.js +0 -1
  121. package/dist/scripts/4523-e918636e67.chunk.js +0 -1
  122. package/dist/scripts/471-9ae0a7d088.chunk.js +0 -2
  123. package/dist/scripts/4984-e55e0bfa17.chunk.js +0 -1
  124. package/dist/scripts/514-9e42f33112.chunk.js +0 -2
  125. package/dist/scripts/514-9e42f33112.chunk.js.LICENSE.txt +0 -6
  126. package/dist/scripts/535-96be75b325.chunk.js +0 -1
  127. package/dist/scripts/5524-83e92242a1.chunk.js +0 -1
  128. package/dist/scripts/5698-74d4a95cab.chunk.js +0 -1
  129. package/dist/scripts/5850-21711256a9.chunk.js +0 -1
  130. package/dist/scripts/5891-1f548b9c62.chunk.js +0 -1
  131. package/dist/scripts/61-35a4e0dd3d.chunk.js +0 -2
  132. package/dist/scripts/6637-3078ed12bc.chunk.js +0 -1
  133. package/dist/scripts/6725-52d65e0d02.chunk.js +0 -2
  134. package/dist/scripts/6963-2e5edf04ac.chunk.js +0 -1
  135. package/dist/scripts/7071-9ae15d6979.chunk.js +0 -1
  136. package/dist/scripts/7153-11798dda90.chunk.js +0 -1
  137. package/dist/scripts/7295-c5ccbfe2be.chunk.js +0 -1
  138. package/dist/scripts/7416-bafece2a3d.chunk.js +0 -1
  139. package/dist/scripts/7827-53c10fe9d7.chunk.js +0 -1
  140. package/dist/scripts/8080-540165cb5c.chunk.js +0 -1
  141. package/dist/scripts/8113-eb9901344c.chunk.js +0 -1
  142. package/dist/scripts/8213-4d11becb33.chunk.js +0 -1
  143. package/dist/scripts/8542-7dbc2fa676.chunk.js +0 -1
  144. package/dist/scripts/8591-920b0560e4.chunk.js +0 -1
  145. package/dist/scripts/8757-8ba60a3c5f.chunk.js +0 -2
  146. package/dist/scripts/8757-8ba60a3c5f.chunk.js.LICENSE.txt +0 -44
  147. package/dist/scripts/9077-fd1d054d31.chunk.js +0 -1
  148. package/dist/scripts/9134-8845590ece.chunk.js +0 -1
  149. package/dist/scripts/9369-cacc5f30e5.chunk.js +0 -2
  150. package/dist/scripts/9383-26ce3e3847.chunk.js +0 -1
  151. package/dist/scripts/bundle-5d010f1f12.min.js +0 -2
  152. package/dist/scripts/bundle-5d010f1f12.min.js.LICENSE.txt +0 -133
  153. /package/dist/css/{6637-library-editor-6a2d152d7d.chunk.css → 112-library-editor-6a2d152d7d.chunk.css} +0 -0
  154. /package/dist/css/{6725-library-editor-01b4461ff1.chunk.css → 152-library-editor-01b4461ff1.chunk.css} +0 -0
  155. /package/dist/css/{1537-library-editor-46f8e6e95b.chunk.css → 2417-library-editor-46f8e6e95b.chunk.css} +0 -0
  156. /package/dist/css/{209-library-editor-1b6dc45d45.chunk.css → 2482-library-editor-1b6dc45d45.chunk.css} +0 -0
  157. /package/dist/css/{2955-library-editor-d2f704c6a5.chunk.css → 343-library-editor-d2f704c6a5.chunk.css} +0 -0
  158. /package/dist/css/{9077-library-editor-765ea88cb0.chunk.css → 5046-library-editor-765ea88cb0.chunk.css} +0 -0
  159. /package/dist/css/{8080-library-editor-7ffe353138.chunk.css → 708-library-editor-7ffe353138.chunk.css} +0 -0
  160. /package/dist/css/{9134-library-editor-5a1c6fc3b4.chunk.css → 8130-library-editor-5a1c6fc3b4.chunk.css} +0 -0
  161. /package/dist/scripts/{6725-52d65e0d02.chunk.js.LICENSE.txt → 152-808e046b1f.chunk.js.LICENSE.txt} +0 -0
  162. /package/dist/scripts/{4001-5f16bcaff3.chunk.js.LICENSE.txt → 4001-a84ada264e.chunk.js.LICENSE.txt} +0 -0
  163. /package/dist/scripts/{546-2cf4378b0c.chunk.js → 546-f770211173.chunk.js} +0 -0
  164. /package/dist/scripts/{61-35a4e0dd3d.chunk.js.LICENSE.txt → 61-ec794cf02d.chunk.js.LICENSE.txt} +0 -0
  165. /package/dist/scripts/{471-9ae0a7d088.chunk.js.LICENSE.txt → 6532-48f3f080f5.chunk.js.LICENSE.txt} +0 -0
  166. /package/dist/scripts/{8952-5dfd08cdc7.chunk.js.LICENSE.txt → 8952-a9a7742f72.chunk.js.LICENSE.txt} +0 -0
  167. /package/dist/scripts/{9369-cacc5f30e5.chunk.js.LICENSE.txt → 9369-1e706eb521.chunk.js.LICENSE.txt} +0 -0
@@ -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 mt},SeriesView:function(){return vt}});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){if("object"!=R(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==R(t)?t:t+""}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(B=function(){return!!e})()}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}var N=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),function(e,t,n){return t=F(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,B()?Reflect.construct(t,n||[],F(e).constructor):t.apply(e,n))}(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"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),Q=n(4705),H=n(63791),U=n(87002),Y=n(73368),z=n.n(Y),W={svgContainer:"mMWNm",caretClosed:"Fe74o"};function K(e){return K="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},K(e)}function X(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z(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,G(i.key),i)}}function $(e,t,n){return t&&Z(e.prototype,t),n&&Z(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function G(e){var t=function(e){if("object"!=K(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==K(t)?t:t+""}function q(e,t,n){return t=ee(t),function(e,t){if(t&&("object"==K(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,J()?Reflect.construct(t,n||[],ee(e).constructor):t.apply(e,n))}function J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(J=function(){return!!e})()}function ee(e){return ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ee(e)}function te(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)}function ne(e,t){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ne(e,t)}var ie="has:expanded:library:folders",oe=function(e){function t(){return X(this,t),q(this,t,arguments)}return te(t,e),$(t,[{key:"name",get:function(){return"SubFoldersCollectionView"}},{key:"className",get:function(){return"row px-2"}},{key:"childView",get:function(){return U.Y}},{key:"childViewOptions",get:function(){return{location:"subfolder"}}}])}(a.Q.$W),re=function(e){function t(e){return X(this,t),q(this,t,[e])}return te(t,e),$(t,[{key:"initialize",value:function(){this.forceExpanded=this.options.forceExpanded||this.collection.length<=6,this.forceExpanded?this.isExpanded=!0:this.isExpanded=Q.SG.get(ie)||!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 z()}},{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,Q.SG.set(ie,this.isExpanded),this.render())}},{key:"viewOptions",value:function(){return{styles:W,caretSvg:H.Nj.getSvg(H.vn.Caret),isExpanded:this.isExpanded,forceExpanded:this.forceExpanded,caretClass:this.isExpanded?"":W.caretClosed,count:this.collection.length}}},{key:"onRender",value:function(){this.showChildView("subFolders",new oe({collection:this.isExpanded?this.collection:new a.Q.FE(this.collection.first(6))}))}}])}(a.Q.wA),le=n(57085),ae=n(8420),ce=n.n(ae);function se(e){return se="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},se(e)}function ue(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,fe(i.key),i)}}function fe(e){var t=function(e){if("object"!=se(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=se(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==se(t)?t:t+""}function pe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pe=function(){return!!e})()}function de(e){return de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},de(e)}function he(e,t){return he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},he(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),function(e,t,n){return t=de(t),function(e,t){if(t&&("object"==se(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||[],de(e).constructor):t.apply(e,n))}(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&&he(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"VideoListHeaderComponent"}},{key:"template",get:function(){return ce()}},{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 le.n({folder:this.options.folder,libraries:this.options.libraries}))}},{key:"onBeforeRender",value:function(){return!!this.options.folder}},{key:"onRender",value:function(){this.renderBreadcrumbs()}}])&&ue(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),be=n(52076),me=n(50028),ve=n(71641),ge=n(40622),we=n(34670),ke=n.n(we);function Oe(e){return Oe="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},Oe(e)}function Se(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,Ee(i.key),i)}}function Ee(e){var t=function(e){if("object"!=Oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oe(t)?t:t+""}function Ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ce=function(){return!!e})()}function Ie(e){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ie(e)}function je(e,t){return je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},je(e,t)}var Pe=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),function(e,t,n){return t=Ie(t),function(e,t){if(t&&("object"==Oe(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,Ce()?Reflect.construct(t,n||[],Ie(e).constructor):t.apply(e,n))}(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,(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,ge.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 ke()}},{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:ge.De.VIDEO_LIST,collection:this.collection,excludePredicate:function(e){return e.get("status")===me.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:be.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:be.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 ve.w({displayOptions:{alignment:"end"},channelName:"".concat(this.name).concat(this.cid),collection:this.getActions(),analyticsHelper:be.k}))}}])&&Se(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),Te=n(12542),Ve=n(8614),_e=n(5344),Le=n(39479),xe=n(53370),Re=n.n(xe);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){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,Be(i.key),i)}}function Be(e){var t=function(e){if("object"!=De(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==De(t)?t:t+""}function Fe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fe=function(){return!!e})()}function Me(e){return Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Me(e)}function Ne(e,t){return Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ne(e,t)}var Qe=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),function(e,t,n){return t=Me(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,Fe()?Reflect.construct(t,n||[],Me(e).constructor):t.apply(e,n))}(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,(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 Re()}},{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=be.k.mergeOptions(this.options.analyticsOptions,{actionType:j.Vw.Sort,workflowPhase:e}),n={id:this.options.collectionIdentifier.id,sort:this.model.get("name")};be.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(Le.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 ve.w({collection:i,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"sort:selected"},displayOptions:{alignment:"end"},analyticsHelper:be.k}))}}])&&Ae(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),He=n(56846),Ue=n.n(He);function Ye(e){return Ye="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},Ye(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,We(i.key),i)}}function We(e){var t=function(e){if("object"!=Ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ye(t)?t:t+""}function Ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ke=function(){return!!e})()}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}function Ze(e,t){return Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ze(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),function(e,t,n){return t=Xe(t),function(e,t){if(t&&("object"==Ye(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||[],Xe(e).constructor):t.apply(e,n))}(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&&Ze(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.analyticsOptions=be.k.mergeOptions(this.options.analyticsOptions,{location:j.LZ.VideoListHeader})}},{key:"name",get:function(){return"VideoListSubheadingComponent"}},{key:"template",get:function(){return Ue()}},{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 Te.Y({className:"float-start",key:this.collectionIdentifier.toString(),type:ge.De.VIDEO_LIST,numberOfItems:this.collection.length}))}},{key:"renderBulkActions",value:function(){this.options.allowBulk&&this.showChildView("bulkActions",new Pe({collection:this.collection,collectionIdentifier:this.collectionIdentifier,application:this.options.application,analyticsOptions:be.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 Qe({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 Ve.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!(!_e.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),Ge=n(25887),qe=n(56906),Je=n(95061),et=n(7170),tt=n(44937),nt=n(93089),it=n.n(nt);function ot(e){return ot="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},ot(e)}function rt(e,t,n,i){var o=lt(dt(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function lt(){return lt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=dt(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}},lt.apply(null,arguments)}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ct(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,ut(i.key),i)}}function st(e,t,n){return t&&ct(e.prototype,t),n&&ct(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ut(e){var t=function(e){if("object"!=ot(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ot(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ot(t)?t:t+""}function ft(e,t,n){return t=dt(t),function(e,t){if(t&&("object"==ot(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||[],dt(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 dt(e){return dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dt(e)}function ht(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)}function yt(e,t){return yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yt(e,t)}var bt=function(e){function t(e){return at(this,t),ft(this,t,[e])}return ht(t,e),st(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 it()}},{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 N({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 re({collection:this.folders,forceExpanded:0===this.videoCollection.length});this.showChildView("childFolders",t)}}},{key:"renderHeader",value:function(){this.showChildView("header",new ye({collection:this.videoCollection,libraries:this.libraryCollection,folder:this.model instanceof k.g&&this.model}))}},{key:"renderSubheading",value:function(){var e;this.showChildView("subheading",new $e({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 et.y([{title:"Types",type:c.K.MediaType,behavior:_e.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:tt.AE})}},{key:"setQueryParams",value:function(){_e.yf.setQueryParams(Object.assign({},this.collectionIdentifier.toParams()),this.queryModel,this.filterCollection)}},{key:"filterChanged",value:function(){var e=a.Q.C$.getCurrentAppLink().params,t=_e.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:Je.T.libraries,exchanges:Je.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),mt=function(e){function t(){return at(this,t),ft(this,t,arguments)}return ht(t,e),st(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),rt(t,"bindListeners",this,3)([])}},{key:"onError",value:function(e){switch(e.type){case i.h.Forbidden:a.Q.Ry.throw(new qe.gO);break;case i.h.NotFound:a.Q.Ry.throw(new qe.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 Ge.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(),rt(t,"onBeforeRender",this,3)([])&&!!this.folders}}])}(bt),vt=function(e){function t(){return at(this,t),ft(this,t,arguments)}return ht(t,e),st(t,[{key:"initialize",value:function(){this.seriesDataService=o.u.getInstance(m.Or.Series,this),rt(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=rt(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),rt(t,"bindListeners",this,3)([])}},{key:"onError",value:function(e){e.type===i.h.NotFound&&a.Q.Ry.throw(new qe.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 Ge.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"))}}])}(bt)},57085:function(e,t,n){"use strict";n.d(t,{n:function(){return P}});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){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;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){if("object"!=O(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(t)?t:t+""}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}var P=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),function(e,t,n){return t=I(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,C()?Reflect.construct(t,n||[],I(e).constructor):t.apply(e,n))}(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,(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})}}]);
@@ -1 +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 b}});var o=n(21161),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){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(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),function(e,t,n){return t=h(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,y()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}(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&&d(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 ge},$V:function(){return ae},wY:function(){return Ge},b_:function(){return Ee},SV:function(){return qe},b5:function(){return ne}});var o=n(43823),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){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var j=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),function(e,t,n){return t=k(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||[],k(e).constructor):t.apply(e,n))}(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&&O(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 Ee({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),S=n(65882),P=n.n(S);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 T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(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,_(o.key),o)}}function F(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _(e){var t=function(e){if("object"!=C(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==C(t)?t:t+""}function R(e,t,n){return t=N(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,x()?Reflect.construct(t,n||[],N(e).constructor):t.apply(e,n))}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}function L(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&&I(e,t)}function I(e,t){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I(e,t)}var V=function(e){function t(e){return T(this,t),R(this,t,[e])}return L(t,e),F(t,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterListComponent"}},{key:"template",get:function(){return P()}},{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 D({collection:this.collection,channelName:this.channelName}))}}])}(r.Q.wA),D=function(e){function t(e){return T(this,t),R(this,t,[e])}return L(t,e),F(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 j}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}])}(r.Q.$W),A={label:"PxEgY",filterButton:"CCepL",dropdownMenu:"tqkX2"},B=n(42007),M=n.n(B);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 Q(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,H(o.key),o)}}function H(e){var t=function(e){if("object"!=q(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==q(t)?t:t+""}function U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(U=function(){return!!e})()}function W(e){return W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},W(e)}function $(e,t){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$(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),function(e,t,n){return t=W(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,U()?Reflect.construct(t,n||[],W(e).constructor):t.apply(e,n))}(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,r=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilters(),this.bindListeners()}},{key:"name",get:function(){return"MoreFiltersButtonComponent"}},{key:"template",get:function(){return M()}},{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(A.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 V({collection:this.collection,channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilters(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}}],r&&Q(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),K=n(92689),Y=n.n(K);function Z(e){return Z="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},Z(e)}function G(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,J(o.key),o)}}function J(e){var t=function(e){if("object"!=Z(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Z(t)?t:t+""}function X(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(X=function(){return!!e})()}function ee(e){return ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ee(e)}function te(e,t){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},te(e,t)}var ne=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),function(e,t,n){return t=ee(t),function(e,t){if(t&&("object"==Z(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,X()?Reflect.construct(t,n||[],ee(e).constructor):t.apply(e,n))}(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&&te(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"FiltersComponent"}},{key:"template",get:function(){return Y()}},{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 ae({collection:this.getVisibleFilters(),channelName:this.options.channelName});this.showChildView("filterList",e)}},{key:"renderMoreFilters",value:function(){var e=new z({collection:this.getMoreFilters(),channelName:this.options.channelName});this.showChildView("moreFilters",e)}},{key:"viewOptions",value:function(){return{labelClass:A.label,hasFiltersSelected:this.collection&&this.hasFiltersSelected(),clearFiltersClass:A.clearFilters}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderFilterList(),this.renderMoreFilters()}}])&&G(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA);function oe(e){return oe="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},oe(e)}function re(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,ie(o.key),o)}}function ie(e){var t=function(e){if("object"!=oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oe(t)?t:t+""}function le(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(le=function(){return!!e})()}function ue(e){return ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ue(e)}function ce(e,t){return ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ce(e,t)}var ae=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),function(e,t,n){return t=ue(t),function(e,t){if(t&&("object"==oe(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,le()?Reflect.construct(t,n||[],ue(e).constructor):t.apply(e,n))}(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&&ce(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 ge}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,analyticsOptions:{location:l.LZ.SearchFilters,entity:l.py.Video}}}}])&&re(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(r.Q.$W),se=n(44937),pe=n(91776),fe=n.n(pe);function ye(e){return ye="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},ye(e)}function he(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,de(o.key),o)}}function de(e){var t=function(e){if("object"!=ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ye(t)?t:t+""}function be(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(be=function(){return!!e})()}function ve(e){return ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ve(e)}function me(e,t){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},me(e,t)}var ge=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),function(e,t,n){return t=ve(t),function(e,t){if(t&&("object"==ye(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,be()?Reflect.construct(t,n||[],ve(e).constructor):t.apply(e,n))}(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&&me(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 fe()}},{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 se.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(A.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:A,label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilter",value:function(){this.showChildView("filter",new V({collection:new a.y([this.model]),channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilter(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}}])&&he(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),we=n(81637),ke=n.n(we);function Oe(e){return Oe="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},Oe(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,Se(o.key),o)}}function Se(e){var t=function(e){if("object"!=Oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oe(t)?t:t+""}function Pe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Pe=function(){return!!e})()}function Ce(e){return Ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ce(e)}function Te(e,t){return Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Te(e,t)}var Ee=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),function(e,t,n){return t=Ce(t),function(e,t){if(t&&("object"==Oe(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||[],Ce(e).constructor):t.apply(e,n))}(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&&Te(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterOptionsComponent"}},{key:"template",get:function(){return ke()}},{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?Lt:this.isTagType()?nn:this.isRangeType()?gt:this.isBooleanType()?lt:qe}},{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()}}])&&je(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),Fe=n(91713),_e=n.n(Fe);function Re(e){return Re="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},Re(e)}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ne(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,Ie(o.key),o)}}function Le(e,t,n){return t&&Ne(e.prototype,t),n&&Ne(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ie(e){var t=function(e){if("object"!=Re(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Re(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Re(t)?t:t+""}function Ve(e,t,n){return t=Ae(t),function(e,t){if(t&&("object"==Re(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,De()?Reflect.construct(t,n||[],Ae(e).constructor):t.apply(e,n))}function De(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(De=function(){return!!e})()}function Ae(e){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ae(e)}function Be(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&&Me(e,t)}function Me(e,t){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Me(e,t)}var qe=function(e){function t(e){return xe(this,t),Ve(this,t,[e])}return Be(t,e),Le(t,[{key:"name",get:function(){return"FilterOptionsListComponent"}},{key:"template",get:function(){return _e()}},{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 Qe({collection:this.collection,childOptions:{channelName:this.options.channelName,isExclusiveType:this.options.isExclusiveType}}))}},{key:"onRender",value:function(){this.renderOptions()}}])}(r.Q.wA),Qe=function(e){function t(e){return xe(this,t),Ve(this,t,[e])}return Be(t,e),Le(t,[{key:"name",get:function(){return"FilterOptionComponentCollection"}},{key:"childView",get:function(){return Ge}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])}(r.Q.$W),He=n(72673),Ue=n.n(He);function We(e){return We="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},We(e)}function $e(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,ze(o.key),o)}}function ze(e){var t=function(e){if("object"!=We(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=We(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==We(t)?t:t+""}function Ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ke=function(){return!!e})()}function Ye(e){return Ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ye(e)}function Ze(e,t){return Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ze(e,t)}var Ge=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),function(e,t,n){return t=Ye(t),function(e,t){if(t&&("object"==We(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||[],Ye(e).constructor):t.apply(e,n))}(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&&Ze(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterOptionItemComponent"}},{key:"template",get:function(){return Ue()}},{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&&$e(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),Je=n(18818),Xe=n.n(Je);function et(e){return et="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},et(e)}function tt(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,nt(o.key),o)}}function nt(e){var t=function(e){if("object"!=et(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==et(t)?t:t+""}function ot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ot=function(){return!!e})()}function rt(e){return rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rt(e)}function it(e,t){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},it(e,t)}var lt=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),function(e,t,n){return t=rt(t),function(e,t){if(t&&("object"==et(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,ot()?Reflect.construct(t,n||[],rt(e).constructor):t.apply(e,n))}(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&&it(e,t)}(t,e),n=t,r=[{key:"name",get:function(){return"BoolFilterOptionComponent"}},{key:"template",get:function(){return Xe()}},{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&&tt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),ut=n(62568),ct=n.n(ut);function at(e){return at="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},at(e)}function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pt(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,yt(o.key),o)}}function ft(e,t,n){return t&&pt(e.prototype,t),n&&pt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yt(e){var t=function(e){if("object"!=at(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=at(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==at(t)?t:t+""}function ht(e,t,n){return t=bt(t),function(e,t){if(t&&("object"==at(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,dt()?Reflect.construct(t,n||[],bt(e).constructor):t.apply(e,n))}function dt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dt=function(){return!!e})()}function bt(e){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bt(e)}function vt(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&&mt(e,t)}function mt(e,t){return mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mt(e,t)}var gt=function(e){function t(){return st(this,t),ht(this,t,arguments)}return vt(t,e),ft(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 wt}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}])}(r.Q.$W),wt=function(e){function t(){return st(this,t),ht(this,t,arguments)}return vt(t,e),ft(t,[{key:"name",get:function(){return"RatingFilterOptionItemComponent"}},{key:"template",get:function(){return ct()}},{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),kt=n(16869),Ot=n.n(kt),jt={optionItem:"EM99Q",customOptionItem:"aEaSA",selected:"i4EVL"};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 Pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,Et(o.key),o)}}function Tt(e,t,n){return t&&Ct(e.prototype,t),n&&Ct(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Et(e){var t=function(e){if("object"!=St(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=St(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==St(t)?t:t+""}function Ft(e,t,n){return t=Rt(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,_t()?Reflect.construct(t,n||[],Rt(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 Rt(e){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rt(e)}function xt(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&&Nt(e,t)}function Nt(e,t){return Nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nt(e,t)}var Lt=function(e){function t(){return Pt(this,t),Ft(this,t,arguments)}return xt(t,e),Tt(t,[{key:"name",get:function(){return"DurationFilterOptionComponentCollection"}},{key:"childView",get:function(){return It}},{key:"className",get:function(){return jt.options}},{key:"getOptionItemClassName",value:function(){var e=jt.optionItem;return 4===this.collection.length&&(e+=" ".concat(jt.customOptionItem)),e}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,optionItemClassName:this.getOptionItemClassName()}}}])}(r.Q.$W),It=function(e){function t(e){return Pt(this,t),Ft(this,t,[e])}return xt(t,e),Tt(t,[{key:"name",get:function(){return"DurationFilterItemComponent"}},{key:"template",get:function(){return Ot()}},{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(jt.optionButton," p-1");return this.isSelected()?e+=" btn-dark":e+=" btn-outline-dark",e}}])}(r.Q.wA),Vt=n(21161),Dt=n(25887),At=n(21626),Bt=n.n(At),Mt=n(44391),qt=n(9586),Qt=n.n(qt);function Ht(e){return Ht="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},Ht(e)}function Ut(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,Wt(o.key),o)}}function Wt(e){var t=function(e){if("object"!=Ht(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ht(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ht(t)?t:t+""}function $t(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($t=function(){return!!e})()}function zt(e){return zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zt(e)}function Kt(e,t){return Kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kt(e,t)}var Yt=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),function(e,t,n){return t=zt(t),function(e,t){if(t&&("object"==Ht(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||[],zt(e).constructor):t.apply(e,n))}(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&&Kt(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"TagFilterOptionsListComponent"}},{key:"template",get:function(){return Qt()}},{key:"regions",value:function(){return{tags:{el:".tags-region",replaceElement:!0,partialLoading:c.LP.TagFilter}}}},{key:"onBeforeRender",value:function(){return!Vt.isNull(this.collection)}},{key:"onRender",value:function(){this.showChildView("tags",new Mt.K({collection:this.collection,channelName:this.options.channelName,behavior:this.options.behavior,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}))}}])&&Ut(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(r.Q.wA);function Zt(e){return Zt="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},Zt(e)}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,Jt(o.key),o)}}function Jt(e){var t=function(e){if("object"!=Zt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zt(t)?t:t+""}function Xt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xt=function(){return!!e})()}function en(e){return en=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},en(e)}function tn(e,t){return tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tn(e,t)}var nn=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),function(e,t,n){return t=en(t),function(e,t){if(t&&("object"==Zt(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,Xt()?Reflect.construct(t,n||[],en(e).constructor):t.apply(e,n))}(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&&tn(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 Bt()}},{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!Vt.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 Vt.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 Yt({collection:e,channelName:this.channelName,behavior:Dt.Dm.Filter,removeEvent:"on:option:change"}))}}},{key:"renderRelevantTags",value:function(){this.showChildView("relevantTags",new Yt({collection:this.relevantTags,channelName:this.channelName,behavior:Dt.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&&Gt(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(25887),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){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;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(31197);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(31197);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(31197);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(31197);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(31197);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(31197);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(31197);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(31197);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(31197);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(31197);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(31197);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(31197);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(31197);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(31197);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(31197);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})}}]);
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 b}});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){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(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),function(e,t,n){return t=h(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,y()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}(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&&d(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 ge},$V:function(){return ae},wY:function(){return Ge},b_:function(){return Ee},SV:function(){return qe},b5:function(){return ne}});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){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var j=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),function(e,t,n){return t=k(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||[],k(e).constructor):t.apply(e,n))}(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&&O(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 Ee({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),S=n(65882),P=n.n(S);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 T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(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,_(o.key),o)}}function F(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _(e){var t=function(e){if("object"!=C(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==C(t)?t:t+""}function R(e,t,n){return t=N(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,x()?Reflect.construct(t,n||[],N(e).constructor):t.apply(e,n))}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}function L(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&&I(e,t)}function I(e,t){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I(e,t)}var V=function(e){function t(e){return T(this,t),R(this,t,[e])}return L(t,e),F(t,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterListComponent"}},{key:"template",get:function(){return P()}},{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 D({collection:this.collection,channelName:this.channelName}))}}])}(r.Q.wA),D=function(e){function t(e){return T(this,t),R(this,t,[e])}return L(t,e),F(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 j}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}])}(r.Q.$W),A={label:"PxEgY",filterButton:"CCepL",dropdownMenu:"tqkX2"},B=n(42007),M=n.n(B);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 Q(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,H(o.key),o)}}function H(e){var t=function(e){if("object"!=q(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==q(t)?t:t+""}function U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(U=function(){return!!e})()}function W(e){return W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},W(e)}function $(e,t){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$(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),function(e,t,n){return t=W(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,U()?Reflect.construct(t,n||[],W(e).constructor):t.apply(e,n))}(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,r=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilters(),this.bindListeners()}},{key:"name",get:function(){return"MoreFiltersButtonComponent"}},{key:"template",get:function(){return M()}},{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(A.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 V({collection:this.collection,channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilters(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}}],r&&Q(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),K=n(92689),Y=n.n(K);function Z(e){return Z="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},Z(e)}function G(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,J(o.key),o)}}function J(e){var t=function(e){if("object"!=Z(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Z(t)?t:t+""}function X(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(X=function(){return!!e})()}function ee(e){return ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ee(e)}function te(e,t){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},te(e,t)}var ne=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),function(e,t,n){return t=ee(t),function(e,t){if(t&&("object"==Z(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,X()?Reflect.construct(t,n||[],ee(e).constructor):t.apply(e,n))}(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&&te(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"FiltersComponent"}},{key:"template",get:function(){return Y()}},{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 ae({collection:this.getVisibleFilters(),channelName:this.options.channelName});this.showChildView("filterList",e)}},{key:"renderMoreFilters",value:function(){var e=new z({collection:this.getMoreFilters(),channelName:this.options.channelName});this.showChildView("moreFilters",e)}},{key:"viewOptions",value:function(){return{labelClass:A.label,hasFiltersSelected:this.collection&&this.hasFiltersSelected(),clearFiltersClass:A.clearFilters}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderFilterList(),this.renderMoreFilters()}}])&&G(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA);function oe(e){return oe="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},oe(e)}function re(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,ie(o.key),o)}}function ie(e){var t=function(e){if("object"!=oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oe(t)?t:t+""}function le(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(le=function(){return!!e})()}function ue(e){return ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ue(e)}function ce(e,t){return ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ce(e,t)}var ae=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),function(e,t,n){return t=ue(t),function(e,t){if(t&&("object"==oe(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,le()?Reflect.construct(t,n||[],ue(e).constructor):t.apply(e,n))}(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&&ce(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 ge}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,analyticsOptions:{location:l.LZ.SearchFilters,entity:l.py.Video}}}}])&&re(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(r.Q.$W),se=n(44937),pe=n(91776),fe=n.n(pe);function ye(e){return ye="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},ye(e)}function he(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,de(o.key),o)}}function de(e){var t=function(e){if("object"!=ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ye(t)?t:t+""}function be(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(be=function(){return!!e})()}function ve(e){return ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ve(e)}function me(e,t){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},me(e,t)}var ge=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),function(e,t,n){return t=ve(t),function(e,t){if(t&&("object"==ye(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,be()?Reflect.construct(t,n||[],ve(e).constructor):t.apply(e,n))}(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&&me(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 fe()}},{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 se.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(A.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:A,label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilter",value:function(){this.showChildView("filter",new V({collection:new a.y([this.model]),channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilter(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}}])&&he(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),we=n(81637),ke=n.n(we);function Oe(e){return Oe="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},Oe(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,Se(o.key),o)}}function Se(e){var t=function(e){if("object"!=Oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oe(t)?t:t+""}function Pe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Pe=function(){return!!e})()}function Ce(e){return Ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ce(e)}function Te(e,t){return Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Te(e,t)}var Ee=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),function(e,t,n){return t=Ce(t),function(e,t){if(t&&("object"==Oe(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||[],Ce(e).constructor):t.apply(e,n))}(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&&Te(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterOptionsComponent"}},{key:"template",get:function(){return ke()}},{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?Lt:this.isTagType()?nn:this.isRangeType()?gt:this.isBooleanType()?lt:qe}},{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()}}])&&je(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),Fe=n(91713),_e=n.n(Fe);function Re(e){return Re="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},Re(e)}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ne(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,Ie(o.key),o)}}function Le(e,t,n){return t&&Ne(e.prototype,t),n&&Ne(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ie(e){var t=function(e){if("object"!=Re(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Re(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Re(t)?t:t+""}function Ve(e,t,n){return t=Ae(t),function(e,t){if(t&&("object"==Re(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,De()?Reflect.construct(t,n||[],Ae(e).constructor):t.apply(e,n))}function De(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(De=function(){return!!e})()}function Ae(e){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ae(e)}function Be(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&&Me(e,t)}function Me(e,t){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Me(e,t)}var qe=function(e){function t(e){return xe(this,t),Ve(this,t,[e])}return Be(t,e),Le(t,[{key:"name",get:function(){return"FilterOptionsListComponent"}},{key:"template",get:function(){return _e()}},{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 Qe({collection:this.collection,childOptions:{channelName:this.options.channelName,isExclusiveType:this.options.isExclusiveType}}))}},{key:"onRender",value:function(){this.renderOptions()}}])}(r.Q.wA),Qe=function(e){function t(e){return xe(this,t),Ve(this,t,[e])}return Be(t,e),Le(t,[{key:"name",get:function(){return"FilterOptionComponentCollection"}},{key:"childView",get:function(){return Ge}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])}(r.Q.$W),He=n(72673),Ue=n.n(He);function We(e){return We="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},We(e)}function $e(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,ze(o.key),o)}}function ze(e){var t=function(e){if("object"!=We(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=We(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==We(t)?t:t+""}function Ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ke=function(){return!!e})()}function Ye(e){return Ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ye(e)}function Ze(e,t){return Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ze(e,t)}var Ge=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),function(e,t,n){return t=Ye(t),function(e,t){if(t&&("object"==We(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||[],Ye(e).constructor):t.apply(e,n))}(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&&Ze(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterOptionItemComponent"}},{key:"template",get:function(){return Ue()}},{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&&$e(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),Je=n(18818),Xe=n.n(Je);function et(e){return et="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},et(e)}function tt(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,nt(o.key),o)}}function nt(e){var t=function(e){if("object"!=et(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==et(t)?t:t+""}function ot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ot=function(){return!!e})()}function rt(e){return rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rt(e)}function it(e,t){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},it(e,t)}var lt=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),function(e,t,n){return t=rt(t),function(e,t){if(t&&("object"==et(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,ot()?Reflect.construct(t,n||[],rt(e).constructor):t.apply(e,n))}(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&&it(e,t)}(t,e),n=t,r=[{key:"name",get:function(){return"BoolFilterOptionComponent"}},{key:"template",get:function(){return Xe()}},{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&&tt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),ut=n(62568),ct=n.n(ut);function at(e){return at="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},at(e)}function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pt(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,yt(o.key),o)}}function ft(e,t,n){return t&&pt(e.prototype,t),n&&pt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yt(e){var t=function(e){if("object"!=at(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=at(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==at(t)?t:t+""}function ht(e,t,n){return t=bt(t),function(e,t){if(t&&("object"==at(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,dt()?Reflect.construct(t,n||[],bt(e).constructor):t.apply(e,n))}function dt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dt=function(){return!!e})()}function bt(e){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bt(e)}function vt(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&&mt(e,t)}function mt(e,t){return mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mt(e,t)}var gt=function(e){function t(){return st(this,t),ht(this,t,arguments)}return vt(t,e),ft(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 wt}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}])}(r.Q.$W),wt=function(e){function t(){return st(this,t),ht(this,t,arguments)}return vt(t,e),ft(t,[{key:"name",get:function(){return"RatingFilterOptionItemComponent"}},{key:"template",get:function(){return ct()}},{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),kt=n(16869),Ot=n.n(kt),jt={optionItem:"EM99Q",customOptionItem:"aEaSA",selected:"i4EVL"};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 Pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,Et(o.key),o)}}function Tt(e,t,n){return t&&Ct(e.prototype,t),n&&Ct(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Et(e){var t=function(e){if("object"!=St(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=St(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==St(t)?t:t+""}function Ft(e,t,n){return t=Rt(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,_t()?Reflect.construct(t,n||[],Rt(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 Rt(e){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rt(e)}function xt(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&&Nt(e,t)}function Nt(e,t){return Nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nt(e,t)}var Lt=function(e){function t(){return Pt(this,t),Ft(this,t,arguments)}return xt(t,e),Tt(t,[{key:"name",get:function(){return"DurationFilterOptionComponentCollection"}},{key:"childView",get:function(){return It}},{key:"className",get:function(){return jt.options}},{key:"getOptionItemClassName",value:function(){var e=jt.optionItem;return 4===this.collection.length&&(e+=" ".concat(jt.customOptionItem)),e}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,optionItemClassName:this.getOptionItemClassName()}}}])}(r.Q.$W),It=function(e){function t(e){return Pt(this,t),Ft(this,t,[e])}return xt(t,e),Tt(t,[{key:"name",get:function(){return"DurationFilterItemComponent"}},{key:"template",get:function(){return Ot()}},{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(jt.optionButton," p-1");return this.isSelected()?e+=" btn-dark":e+=" btn-outline-dark",e}}])}(r.Q.wA),Vt=n(39479),Dt=n(25887),At=n(21626),Bt=n.n(At),Mt=n(44391),qt=n(9586),Qt=n.n(qt);function Ht(e){return Ht="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},Ht(e)}function Ut(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,Wt(o.key),o)}}function Wt(e){var t=function(e){if("object"!=Ht(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ht(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ht(t)?t:t+""}function $t(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($t=function(){return!!e})()}function zt(e){return zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zt(e)}function Kt(e,t){return Kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kt(e,t)}var Yt=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),function(e,t,n){return t=zt(t),function(e,t){if(t&&("object"==Ht(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||[],zt(e).constructor):t.apply(e,n))}(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&&Kt(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"TagFilterOptionsListComponent"}},{key:"template",get:function(){return Qt()}},{key:"regions",value:function(){return{tags:{el:".tags-region",replaceElement:!0,partialLoading:c.LP.TagFilter}}}},{key:"onBeforeRender",value:function(){return!Vt.isNull(this.collection)}},{key:"onRender",value:function(){this.showChildView("tags",new Mt.K({collection:this.collection,channelName:this.options.channelName,behavior:this.options.behavior,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}))}}])&&Ut(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(r.Q.wA);function Zt(e){return Zt="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},Zt(e)}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,Jt(o.key),o)}}function Jt(e){var t=function(e){if("object"!=Zt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zt(t)?t:t+""}function Xt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xt=function(){return!!e})()}function en(e){return en=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},en(e)}function tn(e,t){return tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tn(e,t)}var nn=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),function(e,t,n){return t=en(t),function(e,t){if(t&&("object"==Zt(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,Xt()?Reflect.construct(t,n||[],en(e).constructor):t.apply(e,n))}(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&&tn(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 Bt()}},{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!Vt.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 Vt.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 Yt({collection:e,channelName:this.channelName,behavior:Dt.Dm.Filter,removeEvent:"on:option:change"}))}}},{key:"renderRelevantTags",value:function(){this.showChildView("relevantTags",new Yt({collection:this.relevantTags,channelName:this.channelName,behavior:Dt.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&&Gt(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(25887),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){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;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})}}]);