@clickview/library-editor 1.64.0-rc.1 → 1.64.0-rc.2

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 (214) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/languages/en.json +1 -1
  3. package/dist/scripts/1010-5488aa2ff0.chunk.js +1 -0
  4. package/dist/scripts/1115-ea197312ba.chunk.js +1 -0
  5. package/dist/scripts/1200-5edfc011db.chunk.js +1 -0
  6. package/dist/scripts/1318-3fc90ae380.chunk.js +1 -0
  7. package/dist/scripts/1524-0256080e94.chunk.js +1 -0
  8. package/dist/scripts/1752-1cc77fb182.chunk.js +1 -0
  9. package/dist/scripts/1934-1deec5c14f.chunk.js +2 -0
  10. package/dist/scripts/2035-550073891d.chunk.js +1 -0
  11. package/dist/scripts/2539-4aab3368d8.chunk.js +1 -0
  12. package/dist/scripts/2591-06b808d96f.chunk.js +1 -0
  13. package/dist/scripts/2781-bd09622ade.chunk.js +2 -0
  14. package/dist/scripts/2781-bd09622ade.chunk.js.LICENSE.txt +1 -0
  15. package/dist/scripts/2803-b9bcf14dbc.chunk.js +1 -0
  16. package/dist/scripts/2888-bc66454b24.chunk.js +1 -0
  17. package/dist/scripts/299-f4a952cbbf.chunk.js +1 -0
  18. package/dist/scripts/3236-6a7cb9be48.chunk.js +2 -0
  19. package/dist/scripts/3236-6a7cb9be48.chunk.js.LICENSE.txt +1 -0
  20. package/dist/scripts/3305-5e7276a25d.chunk.js +1 -0
  21. package/dist/scripts/336-aaaad34c63.chunk.js +2 -0
  22. package/dist/scripts/336-aaaad34c63.chunk.js.LICENSE.txt +1 -0
  23. package/dist/scripts/3373-0b8fc10032.chunk.js +1 -0
  24. package/dist/scripts/3391-7d6d13408d.chunk.js +1 -0
  25. package/dist/scripts/3400-0cf6cbede5.chunk.js +1 -0
  26. package/dist/scripts/3450-4284a60805.chunk.js +1 -0
  27. package/dist/scripts/3475-8a3623ae22.chunk.js +1 -0
  28. package/dist/scripts/3639-ff8bf51fe5.chunk.js +1 -0
  29. package/dist/scripts/3643-cc5b2ec6d9.chunk.js +1 -0
  30. package/dist/scripts/3664-c8fe2e77de.chunk.js +1 -0
  31. package/dist/scripts/3763-93c217e1d6.chunk.js +1 -0
  32. package/dist/scripts/3873-a70c87d3a8.chunk.js +1 -0
  33. package/dist/scripts/4096-f73b3f1eb3.chunk.js +1 -0
  34. package/dist/scripts/4201-9fb1d6fa7e.chunk.js +1 -0
  35. package/dist/scripts/4245-ea180d7240.chunk.js +1 -0
  36. package/dist/scripts/4327-274f834810.chunk.js +1 -0
  37. package/dist/scripts/4567-ea4c943187.chunk.js +1 -0
  38. package/dist/scripts/4591-3158e38f59.chunk.js +1 -0
  39. package/dist/scripts/4796-715e3f2b8b.chunk.js +2 -0
  40. package/dist/scripts/4796-715e3f2b8b.chunk.js.LICENSE.txt +1 -0
  41. package/dist/scripts/5173-5459fe9617.chunk.js +1 -0
  42. package/dist/scripts/5180-35612cb57e.chunk.js +1 -0
  43. package/dist/scripts/5327-90b0daeedd.chunk.js +1 -0
  44. package/dist/scripts/5346-96ba841e31.chunk.js +1 -0
  45. package/dist/scripts/5412-806e4b03b6.chunk.js +1 -0
  46. package/dist/scripts/5418-d9b73741e6.chunk.js +1 -0
  47. package/dist/scripts/5424-e6d5e20449.chunk.js +1 -0
  48. package/dist/scripts/5513-ce9c27b731.chunk.js +1 -0
  49. package/dist/scripts/576-275aeaa88a.chunk.js +1 -0
  50. package/dist/scripts/5972-bd6ca57952.chunk.js +1 -0
  51. package/dist/scripts/6239-b216beeef2.chunk.js +1 -0
  52. package/dist/scripts/6350-fe2f5d07ae.chunk.js +1 -0
  53. package/dist/scripts/6439-8af974fe93.chunk.js +1 -0
  54. package/dist/scripts/6450-179a533a35.chunk.js +1 -0
  55. package/dist/scripts/6467-e4856f0f90.chunk.js +1 -0
  56. package/dist/scripts/6567-e6d3411b91.chunk.js +2 -0
  57. package/dist/scripts/{6567-02b07e94bc.chunk.js.LICENSE.txt → 6567-e6d3411b91.chunk.js.LICENSE.txt} +1 -1
  58. package/dist/scripts/6587-a52e6ae3db.chunk.js +1 -0
  59. package/dist/scripts/6591-1f53a56a4f.chunk.js +1 -0
  60. package/dist/scripts/6677-679046f587.chunk.js +1 -0
  61. package/dist/scripts/6697-72ac40931d.chunk.js +1 -0
  62. package/dist/scripts/6768-945c9c69c7.chunk.js +1 -0
  63. package/dist/scripts/6774-e23988f663.chunk.js +1 -0
  64. package/dist/scripts/6788-40d07b7ac5.chunk.js +1 -0
  65. package/dist/scripts/6796-2744de7ac8.chunk.js +1 -0
  66. package/dist/scripts/7071-21381973d1.chunk.js +1 -0
  67. package/dist/scripts/7182-700d11a1b6.chunk.js +2 -0
  68. package/dist/scripts/7190-9f654e9bab.chunk.js +1 -0
  69. package/dist/scripts/7197-46b37cfd17.chunk.js +2 -0
  70. package/dist/scripts/7197-46b37cfd17.chunk.js.LICENSE.txt +1 -0
  71. package/dist/scripts/7366-438b9e40d9.chunk.js +1 -0
  72. package/dist/scripts/7384-738b216ce5.chunk.js +1 -0
  73. package/dist/scripts/775-f94fdf08a6.chunk.js +1 -0
  74. package/dist/scripts/777-ad756c2420.chunk.js +2 -0
  75. package/dist/scripts/777-ad756c2420.chunk.js.LICENSE.txt +1 -0
  76. package/dist/scripts/7925-afa4ac58db.chunk.js +2 -0
  77. package/dist/scripts/8113-f198ecf002.chunk.js +1 -0
  78. package/dist/scripts/8143-3881cf510e.chunk.js +1 -0
  79. package/dist/scripts/8306-7a937af758.chunk.js +1 -0
  80. package/dist/scripts/8362-e513473f50.chunk.js +1 -0
  81. package/dist/scripts/8542-29e39900a1.chunk.js +1 -0
  82. package/dist/scripts/8591-4b212ec72d.chunk.js +1 -0
  83. package/dist/scripts/8757-218873f759.chunk.js +2 -0
  84. package/dist/scripts/8797-d74aa54767.chunk.js +1 -0
  85. package/dist/scripts/8862-d4faaa1043.chunk.js +1 -0
  86. package/dist/scripts/8915-60cef85b59.chunk.js +1 -0
  87. package/dist/scripts/8989-f5a1466541.chunk.js +1 -0
  88. package/dist/scripts/9011-8ad9cd886b.chunk.js +1 -0
  89. package/dist/scripts/9037-8ee5edeb0f.chunk.js +1 -0
  90. package/dist/scripts/9082-6ae95039ff.chunk.js +1 -0
  91. package/dist/scripts/9090-9d0aafabc4.chunk.js +1 -0
  92. package/dist/scripts/9096-a05aba009e.chunk.js +1 -0
  93. package/dist/scripts/9219-a62eb8dec1.chunk.js +1 -0
  94. package/dist/scripts/9357-cacc922e17.chunk.js +1 -0
  95. package/dist/scripts/9376-a690087044.chunk.js +1 -0
  96. package/dist/scripts/95-14875ad65e.chunk.js +1 -0
  97. package/dist/scripts/9620-47637ac50e.chunk.js +1 -0
  98. package/dist/scripts/968-4da16290ef.chunk.js +1 -0
  99. package/dist/scripts/9734-a32f5aa1b8.chunk.js +1 -0
  100. package/dist/scripts/9743-1a17ae4c30.chunk.js +1 -0
  101. package/dist/scripts/9766-22dd736844.chunk.js +2 -0
  102. package/dist/scripts/9825-40ead8d7a8.chunk.js +1 -0
  103. package/dist/scripts/9928-7069d8d073.chunk.js +1 -0
  104. package/dist/scripts/bundle-441218310a.min.js +2 -0
  105. package/dist/scripts/{bundle-7c1c669253.min.js.LICENSE.txt → bundle-441218310a.min.js.LICENSE.txt} +1 -1
  106. package/dist/scripts/polyfills-be59146258.min.js +1 -0
  107. package/package.json +1 -1
  108. package/dist/scripts/1010-9c54dac5ec.chunk.js +0 -1
  109. package/dist/scripts/1115-189174d1dd.chunk.js +0 -1
  110. package/dist/scripts/1200-9c85c3d5ca.chunk.js +0 -1
  111. package/dist/scripts/1318-11b8de6498.chunk.js +0 -1
  112. package/dist/scripts/1524-ae7b7beeda.chunk.js +0 -1
  113. package/dist/scripts/1752-111d0ad14d.chunk.js +0 -1
  114. package/dist/scripts/1934-84460445ad.chunk.js +0 -2
  115. package/dist/scripts/2035-4bf3392b3a.chunk.js +0 -1
  116. package/dist/scripts/2539-915297f0b5.chunk.js +0 -1
  117. package/dist/scripts/2591-730e72b14a.chunk.js +0 -1
  118. package/dist/scripts/2781-efa54c8c8c.chunk.js +0 -2
  119. package/dist/scripts/2781-efa54c8c8c.chunk.js.LICENSE.txt +0 -1
  120. package/dist/scripts/2803-d7cf29380f.chunk.js +0 -1
  121. package/dist/scripts/2888-97c3b4f37c.chunk.js +0 -1
  122. package/dist/scripts/299-f415ca8856.chunk.js +0 -1
  123. package/dist/scripts/3236-24a5bf1bb8.chunk.js +0 -2
  124. package/dist/scripts/3236-24a5bf1bb8.chunk.js.LICENSE.txt +0 -1
  125. package/dist/scripts/3305-d21eab0110.chunk.js +0 -1
  126. package/dist/scripts/336-86a858ee3c.chunk.js +0 -2
  127. package/dist/scripts/336-86a858ee3c.chunk.js.LICENSE.txt +0 -1
  128. package/dist/scripts/3373-c35e99d4f4.chunk.js +0 -1
  129. package/dist/scripts/3391-c1544af17d.chunk.js +0 -1
  130. package/dist/scripts/3400-7a082a0377.chunk.js +0 -1
  131. package/dist/scripts/3450-2b77dc7d81.chunk.js +0 -1
  132. package/dist/scripts/3475-c2090d0f65.chunk.js +0 -1
  133. package/dist/scripts/3639-a0854003d2.chunk.js +0 -1
  134. package/dist/scripts/3643-877406d207.chunk.js +0 -1
  135. package/dist/scripts/3664-7bab52835f.chunk.js +0 -1
  136. package/dist/scripts/3763-7ae73d91fa.chunk.js +0 -1
  137. package/dist/scripts/3873-32cef8b267.chunk.js +0 -1
  138. package/dist/scripts/4096-2f0afc78f8.chunk.js +0 -1
  139. package/dist/scripts/4201-f856bd659a.chunk.js +0 -1
  140. package/dist/scripts/4245-09abccc77c.chunk.js +0 -1
  141. package/dist/scripts/4327-b8cd9a74f9.chunk.js +0 -1
  142. package/dist/scripts/4567-3ca6ef4308.chunk.js +0 -1
  143. package/dist/scripts/4591-7f81bdcc51.chunk.js +0 -1
  144. package/dist/scripts/4796-1330a255f5.chunk.js +0 -2
  145. package/dist/scripts/4796-1330a255f5.chunk.js.LICENSE.txt +0 -1
  146. package/dist/scripts/5173-9338a14ee3.chunk.js +0 -1
  147. package/dist/scripts/5180-542a42cb27.chunk.js +0 -1
  148. package/dist/scripts/5327-c4b6d0885a.chunk.js +0 -1
  149. package/dist/scripts/5346-4a50d1fd29.chunk.js +0 -1
  150. package/dist/scripts/5412-9a31b69a02.chunk.js +0 -1
  151. package/dist/scripts/5418-a9d060f9d0.chunk.js +0 -1
  152. package/dist/scripts/5424-843a480e1a.chunk.js +0 -1
  153. package/dist/scripts/5513-1c7c464e84.chunk.js +0 -1
  154. package/dist/scripts/576-b7bc67c359.chunk.js +0 -1
  155. package/dist/scripts/5972-e170671a7c.chunk.js +0 -1
  156. package/dist/scripts/6239-b13c96eaf8.chunk.js +0 -1
  157. package/dist/scripts/6350-ebae8f11b0.chunk.js +0 -1
  158. package/dist/scripts/6439-8aac0bd92a.chunk.js +0 -1
  159. package/dist/scripts/6450-8de9792b20.chunk.js +0 -1
  160. package/dist/scripts/6467-eae5f517db.chunk.js +0 -1
  161. package/dist/scripts/6567-02b07e94bc.chunk.js +0 -2
  162. package/dist/scripts/6587-2e97f69e7a.chunk.js +0 -1
  163. package/dist/scripts/6591-62947b6aea.chunk.js +0 -1
  164. package/dist/scripts/6677-5c66883ffc.chunk.js +0 -1
  165. package/dist/scripts/6697-efdc49a3ce.chunk.js +0 -1
  166. package/dist/scripts/6768-416924be66.chunk.js +0 -1
  167. package/dist/scripts/6774-7ed47e1b8c.chunk.js +0 -1
  168. package/dist/scripts/6788-5ad863550d.chunk.js +0 -1
  169. package/dist/scripts/6796-d47d2fa948.chunk.js +0 -1
  170. package/dist/scripts/7071-e41e06917b.chunk.js +0 -1
  171. package/dist/scripts/7182-e45ad5e0fe.chunk.js +0 -2
  172. package/dist/scripts/7190-3b8aefddee.chunk.js +0 -1
  173. package/dist/scripts/7197-35da0227f2.chunk.js +0 -2
  174. package/dist/scripts/7197-35da0227f2.chunk.js.LICENSE.txt +0 -1
  175. package/dist/scripts/7366-4b7b22791a.chunk.js +0 -1
  176. package/dist/scripts/7384-8f86b79bd6.chunk.js +0 -1
  177. package/dist/scripts/775-96028af5a8.chunk.js +0 -1
  178. package/dist/scripts/777-03d78e4162.chunk.js +0 -2
  179. package/dist/scripts/777-03d78e4162.chunk.js.LICENSE.txt +0 -1
  180. package/dist/scripts/7925-b80cab7a7a.chunk.js +0 -2
  181. package/dist/scripts/8113-fa8be2fe60.chunk.js +0 -1
  182. package/dist/scripts/8143-3c844e6f7b.chunk.js +0 -1
  183. package/dist/scripts/8306-7e1ecc6b80.chunk.js +0 -1
  184. package/dist/scripts/8362-976c6b3cfc.chunk.js +0 -1
  185. package/dist/scripts/8542-a96ff58cda.chunk.js +0 -1
  186. package/dist/scripts/8591-047736d51e.chunk.js +0 -1
  187. package/dist/scripts/8757-9ff47570ba.chunk.js +0 -2
  188. package/dist/scripts/8797-2e772deab9.chunk.js +0 -1
  189. package/dist/scripts/8862-292b678cef.chunk.js +0 -1
  190. package/dist/scripts/8915-e31f2d1282.chunk.js +0 -1
  191. package/dist/scripts/8989-1ca7a01335.chunk.js +0 -1
  192. package/dist/scripts/9011-4862aa077d.chunk.js +0 -1
  193. package/dist/scripts/9037-7ce5f91571.chunk.js +0 -1
  194. package/dist/scripts/9082-ad6d7d2f96.chunk.js +0 -1
  195. package/dist/scripts/9090-42d71ef295.chunk.js +0 -1
  196. package/dist/scripts/9096-ce7dabfccf.chunk.js +0 -1
  197. package/dist/scripts/9219-5a71a27c3e.chunk.js +0 -1
  198. package/dist/scripts/9357-64d247d840.chunk.js +0 -1
  199. package/dist/scripts/9376-fa6bc20209.chunk.js +0 -1
  200. package/dist/scripts/95-d04a83d83f.chunk.js +0 -1
  201. package/dist/scripts/9620-3ba8334ebc.chunk.js +0 -1
  202. package/dist/scripts/968-b8e7ead008.chunk.js +0 -1
  203. package/dist/scripts/9734-bf7adc8154.chunk.js +0 -1
  204. package/dist/scripts/9743-d88fb1f700.chunk.js +0 -1
  205. package/dist/scripts/9766-da39830c71.chunk.js +0 -2
  206. package/dist/scripts/9825-965bc63629.chunk.js +0 -1
  207. package/dist/scripts/9928-0d83a09f31.chunk.js +0 -1
  208. package/dist/scripts/bundle-7c1c669253.min.js +0 -2
  209. package/dist/scripts/polyfills-4c06ebd0dd.min.js +0 -1
  210. /package/dist/scripts/{1934-84460445ad.chunk.js.LICENSE.txt → 1934-1deec5c14f.chunk.js.LICENSE.txt} +0 -0
  211. /package/dist/scripts/{7182-e45ad5e0fe.chunk.js.LICENSE.txt → 7182-700d11a1b6.chunk.js.LICENSE.txt} +0 -0
  212. /package/dist/scripts/{7925-b80cab7a7a.chunk.js.LICENSE.txt → 7925-afa4ac58db.chunk.js.LICENSE.txt} +0 -0
  213. /package/dist/scripts/{8757-9ff47570ba.chunk.js.LICENSE.txt → 8757-218873f759.chunk.js.LICENSE.txt} +0 -0
  214. /package/dist/scripts/{9766-da39830c71.chunk.js.LICENSE.txt → 9766-22dd736844.chunk.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1010],{51010:function(e,t,n){"use strict";n.r(t),n.d(t,{DisableReviewView:function(){return k}});var r=n(21679),o=n(57857),i=n(31647),a=n(52076),u=n(70065),l=n(10101),c=n(88172),s=n(45390),f=n(67670),p=n(19226),y=n(93569),b=n(17654),v=n.n(b);function h(e){return h="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},h(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var k=function(e){function t(){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"==h(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,g()?Reflect.construct(t,n||[],w(e).constructor):t.apply(e,n))}(this,t,arguments)}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,(b=[{key:"initialize",value:function(){this.bindListeners(),this.contentUpdatesDataService=r.u.getInstance(s.Or.ContentUpdates,this)}},{key:"name",get:function(){return"DisableReviewView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"template",get:function(){return v()}},{key:"lang",get:function(){return"contentUpdates.disableReview"}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:o.T.getPhrase(this.lang,"heading"),behaviorClass:l.Yw,spinnerButtonOptions:{model:this.spinnerModel=new f.v,channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"offBtn"),onClick:function(){return e.onClickDisable()}}}]}},{key:"bindListeners",value:function(){this.listenTo(s.Vk.VIDEO,"".concat(s.M_.VIDEOS_TO_REVIEW,":sync"),this.render)}},{key:"videosToReview",value:function(){return!!this.videoCollection&&!!this.videoCollection.length}},{key:"onClickDisable",value:function(){this.videosToReview()?this.approveAllThenDisableReview():this.disableReview(),this.triggerMethod("hide")}},{key:"approveAllThenDisableReview",value:function(){var e=this;this.contentUpdatesDataService.approveAllVideos(function(){return e.disableReview()})}},{key:"disableReview",value:function(){this.contentUpdatesDataService.disableLibraryReview(this.redirectToPastReleases),this.logAction()}},{key:"redirectToPastReleases",value:function(){i.Q.C$.trigger({application:s.OV.CONTENT_UPDATES,action:s.eX.ContentUpdates.PAST_RELEASES})}},{key:"logAction",value:function(){var e={location:u.LZ.Popup,actionType:u.Vw.Disable,entity:u.py.CustomerSetting,descriptor:u.YK.LibraryReview,workflowPhase:u.eu.Complete},t={approvedCount:this.videoCollection.length};a.k.logUserAction(t,e)}},{key:"requiredResources",get:function(){return{currentUser:p.K.currentUser}}},{key:"onBeforeRender",value:function(){this.videoCollection=this.contentUpdatesDataService.getVideosToReview(),this.videoCollection&&this.spinnerModel.set(c.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){return{videosToReview:this.videosToReview(),dataFetched:!!this.videoCollection,spinnerEl:y.Kp.getSpinner({size:y.Ey.Large,extraClasses:"mx-auto"})}}}])&&d(n.prototype,b),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,b}(i.Q.G7)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});var r=n(31647),o=n(88172);function i(e){return i="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},i(e)}function a(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){function t(){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=s(t),function(e,t){if(t&&("object"==i(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||[],s(e).constructor):t.apply(e,n))}(this,t,arguments)}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&&f(e,t)}(t,e),n=t,(r=[{key:"defaults",value:function(){return a(a({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&u(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},17654:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing,l=e.escapeExpression;return'<p class="m-0 pb-2">'+l((n.lang||t&&t.lang||u).call(a,"noReview",{name:"lang",hash:{},data:o}))+"</p>\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.videosToReview:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+'<p class="m-0">'+l((n.lang||t&&t.lang||u).call(a,"undoInstructions",{name:"lang",hash:{},data:o}))+"</p>\n"},4:function(e,t,n,r,o){return e.propertyIsEnumerable,'<p class="m-0 pb-2">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"automaticApproval",{name:"lang",hash:{},data:o}))+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1115],{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)},92266: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(45390),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(24959),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(45390),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})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1200],{59054:function(e,t,n){"use strict";var o;n.d(t,{f:function(){return o}}),function(e){e.Share="share",e.MasterObject="masterobject"}(o||(o={}))},45114:function(e,t,n){"use strict";n.d(t,{L:function(){return g}});var o=n(43823),i=n(99249),r=n(31647),a=n(85475),l=n(10101),s=n(93569),c=n(40622),u=n(61596),p=n(89039),d=n.n(p);function h(e){return h="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},h(e)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,m(o.key),o)}}function m(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}var g=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=v(t),function(e,t){if(t&&("object"==h(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||[],v(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&&b(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(){var e=this;this.options.playerViewModelKey&&this.listenToPlayerViewModel(),this.initViewModel(),this.listenTo(this.options.channelName,"timeupdate",function(t){e.webPlayerTime=t,e.syncTime()}),this.options.editing&&this.syncTime()}},{key:"name",get:function(){return"ChapterFormComponent"}},{key:"lang",get:function(){return"libraryEditor.chapterForm"}},{key:"tagName",get:function(){return"form"}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"template",get:function(){return d()}},{key:"className",get:function(){return this.options.creating?"py-3":"border-top p-2"}},{key:"behaviors",get:function(){return[{behaviorClass:l.fS,bindViewModel:!0},{behaviorClass:l.Bp,bindViewModel:!0}]}},{key:"events",value:function(){return{submit:"onSubmit","change .chapter-name":"validateName","keyup .chapter-name":"validateName","change .time-input":"onTimeInputUpdate","click .time-input":"onTimeInputUpdate","keyup .time-input":"onTimeInputUpdate","click .cancel":"destroyView"}}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}},"[name=hours]":{observe:"hours",setOptions:{validate:!0}},"[name=minutes]":{observe:"minutes",setOptions:{validate:!0}},"[name=seconds]":{observe:"seconds",setOptions:{validate:!0}}}}},{key:"initViewModel",value:function(){this.viewModel=i.r.get(this.viewModelName,this.model.toJSON())}},{key:"listenToPlayerViewModel",value:function(){var e=i.r.get(this.options.playerViewModelKey);this.listenTo(e,"change:currenttime",this.updateTime)}},{key:"updateTime",value:function(e){this.webPlayerTime=e.get("currenttime"),this.syncTime()}},{key:"syncTime",value:function(){var e=this.viewModel.get("startTime")||this.webPlayerTime;this.viewModel.set({hours:s.X4.getHoursComponent(e)||"",minutes:s.X4.getMinutesComponent(e)||"",seconds:s.X4.getSecondsComponent(e)})}},{key:"getNewTime",value:function(){return this.enabled()?s.X4.parseTime(this.viewModel.pick("hours","minutes","seconds")):0}},{key:"enabled",value:function(){return this.options.creating||0!==this.model.collection.indexOf(this.model)}},{key:"maxTimes",value:function(){var e=s.X4.millisecondsToSeconds(this.options.duration),t=s.X4.getHoursComponent(e),n=t>0?59:s.X4.getMinutesComponent(e);return{maxHr:t,maxMin:n,maxSec:n>0?59:s.X4.getSecondsComponent(e)}}},{key:"onTimeInputUpdate",value:function(){o.Radio.channel(this.options.channelName).trigger(c.NT.UpdateChapterTime,this.getNewTime()),this.validateStartTime()}},{key:"destroyView",value:function(){o.Radio.channel(this.options.channelName).trigger(c.NT.CancelChapterEdit),this.destroy()}},{key:"onSubmit",value:function(e){if(e.preventDefault(),!this.validate())return!1;var t={id:this.viewModel.get("id"),name:this.viewModel.get("name"),startTime:this.getNewTime()},n=o.Radio.channel(this.options.channelName),r=c.NT.CreateChapter;this.options.editing&&(r=c.NT.UpdateChapter),n.trigger(r,t),this.stopListening(this.viewModel),i.r.clear(this.viewModelName)}},{key:"validate",value:function(){this.viewModel.validate();var e=this.validateStartTime(),t=this.validateName();return this.viewModel.isValid()&&e&&t}},{key:"validateStartTime",value:function(){var e=this,t=o.Validation.callbacks,n=t.valid,i=t.invalid,r=this.model.collection||this.options.collection,a=this.getNewTime(),l=u.$.isValidChapterTime(this.model,a,this.options.duration,r),s=[],c=["seconds","minutes","hours"];return a<0?s=c:l&&(s.push("seconds"),a>59&&s.push("minutes"),a>3540&&s.push("hours")),c.forEach(function(t){return n(e,t,null)}),s.forEach(function(t){return i(e,t,l,null)}),!l}},{key:"validateName",value:function(e){if(!e||13!==e.keyCode){var t=o.Validation.callbacks,n=t.valid,i=t.invalid,r=this.model.collection||this.options.collection,a=u.$.isValidChapterName(this.model,this.viewModel.get("name"),r);return a?i(this,"name",a,null):n(this,"name",null),!a}}},{key:"viewOptions",value:function(){var e=this.maxTimes(),t=e.maxHr,n=e.maxMin,o=0===e.maxSec,i=0===n,r=0===t;return Object.assign(Object.assign({},this.options),{enabled:this.enabled(),timeId:"".concat(this.cid,"-time"),chapterId:"".concat(this.cid,"-chapter-name"),plusSvg:a.Nj.getSvg(a.vn.Plus),secDisabled:o,minDisabled:i,hrDisabled:r})}}],r&&f(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},71733:function(e,t,n){"use strict";n.d(t,{Q:function(){return R}});var o=n(31647),i=n(43823),r=n(56210),a=n(85475),l=n(93569),s=n(45114),c=n(40622),u=n(95637),p=n.n(u),d={loading:"rOhrX",darkBackground:"Ubazj",svgContainer:"SiNm3",chapterItem:"MOpQI"},h=n(6723);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function 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,y(o.key),o)}}function y(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}var w=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=b(t),function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,n||[],b(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&&g(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"ChapterItemComponent"}},{key:"lang",get:function(){return"libraryEditor.chapterItem"}},{key:"instanceChannelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"chapter ".concat(d.chapterItem)}},{key:"behaviors",get:function(){return[{behaviorClass:r.H,selector:".action"}]}},{key:"regions",value:function(){return{editForm:{replaceElement:!1,el:".edit-form-region"}}}},{key:"elements",get:function(){return{chapterItem:".chapter-item",editChapter:".edit-chapter",deleteChapter:".delete-chapter"}}},{key:"events",value:function(){return{"click @ui.editChapter":"onEditChapter","click @ui.deleteChapter":"onDeleteChapter","click .clickable-seek":"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.instanceChannelName,c.NT.CancelChapterEdit,this.onCancelEdit),this.listenTo(this.instanceChannelName,c.NT.UpdateChapter,this.onUpdateChapter),this.listenTo(this.instanceChannelName,c.NT.UpdateChapterTime,this.onUpdateChapterTime),this.listenTo(this.model,"change:showEditor",this.onShowEditorChange),this.listenTo(this.model,"change:loading",this.onLoadingChange);var e=this.model.collection.first();this.model!==e?this.listenTo(this.model.collection,"sort",this.render):this.listenTo(this.model.collection,"add remove sort",this.render)}},{key:"onClick",value:function(){i.Radio.channel(this.options.channelName).trigger(c.NT.UpdateChapterTime,this.model.get("startTime"))}},{key:"onLoadingChange",value:function(){var e=this.model.get("loading")?"disable":"enable";this.getUI("editChapter").tooltip(e),this.getUI("deleteChapter").tooltip(e),this.model.set("showEditor",!1,{silent:!0}),this.render()}},{key:"onShowEditorChange",value:function(){this.model.get("loading")||(this.model.get("showEditor")?this.showEditView():this.hideEditView())}},{key:"showEditView",value:function(){this.renderEditForm(),this.getUI("chapterItem").addClass(d.darkBackground)}},{key:"hideEditView",value:function(){this.model.set("showEditor",!1,{silent:!0}),this.getUI("chapterItem").removeClass(d.darkBackground),this.detachChildView("editForm")}},{key:"onCancelEdit",value:function(){this.hideEditView()}},{key:"onDeleteChapter",value:function(){this.model.get("loading")||i.Radio.channel(this.options.channelName).trigger(c.NT.DeleteChapter,this.model)}},{key:"onUpdateChapter",value:function(e){i.Radio.channel(this.options.channelName).trigger(c.NT.UpdateChapter,e),this.render()}},{key:"onUpdateChapterTime",value:function(e){i.Radio.channel(this.options.channelName).trigger(c.NT.UpdateChapterTime,e)}},{key:"onEditChapter",value:function(){i.Radio.channel(this.options.channelName).trigger(c.NT.ToggleEdit,this.model)}},{key:"canDelete",value:function(e){var t=this.model.collection.length;return 1===e&&1===t||!(1===e&&t>1)}},{key:"viewOptions",value:function(){var e=this.model.collection.indexOf(this.model)+1,t=l.X4.trimToMinutes(l.X4.secondsToHoursFormatted(this.model.get("startTime")));return Object.assign(Object.assign({},this.options),{styles:d,time:t,index:e,loading:this.model.get("loading"),allowDelete:this.canDelete(e),editSvg:a.Nj.getSvg(a.vn.Edit),deleteSvg:a.Nj.getSvg(a.vn.Delete)})}},{key:"renderEditForm",value:function(){this.showChildView("editForm",new s.L({model:this.model,editing:!0,channelName:this.instanceChannelName,duration:this.options.duration}))}},{key:"onBeforeDetach",value:function(){h(".tooltip").remove()}}])&&m(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA);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 C(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,T(o.key),o)}}function T(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 O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(O=function(){return!!e})()}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}var S=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=E(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,O()?Reflect.construct(t,n||[],E(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,(o=[{key:"initialize",value:function(){this.bindEditorListeners()}},{key:"name",get:function(){return"ChapterComponentCollection"}},{key:"className",get:function(){return"chapters"}},{key:"childView",get:function(){return w}},{key:"bindEditorListeners",value:function(){this.options.editable&&this.listenTo(this.options.channelName,c.NT.ToggleEdit,this.toggleEditForm)}},{key:"toggleEditForm",value:function(e){this.collection.each(function(t){return t!==e&&t.set("showEditor",!1)}),e.set("showEditor",!e.get("showEditor"))}},{key:"childViewOptions",get:function(){return{showActions:this.options.showActions,duration:this.options.duration,channelName:this.options.channelName}}}])&&C(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.$W),N=n(46055),P=n.n(N);function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function _(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,M(o.key),o)}}function M(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(I=function(){return!!e})()}function V(e){return V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},V(e)}function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}var R=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=V(t),function(e,t){if(t&&("object"==x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,I()?Reflect.construct(t,n||[],V(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,(o=[{key:"name",get:function(){return"ChaptersComponent"}},{key:"template",get:function(){return P()}},{key:"lang",get:function(){return"libraryEditor.chapters"}},{key:"className",get:function(){return"chapters ".concat(!this.options.editable&&"py-3 border-top")}},{key:"regions",value:function(){return{chapterList:{replaceElement:!0,el:".chapter-list-region"}}}},{key:"viewOptions",value:function(){return{showHeader:this.options.showHeader}}},{key:"onRender",value:function(){this.showChildView("chapterList",new S({collection:this.collection,duration:this.options.duration,channelName:this.options.channelName,showActions:this.options.showActions,editable:this.options.editable}))}}])&&_(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},89039:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-6 form-group">\n <label class="d-block" for="'+l(a(null!=(r=null!=t?t.options:t)?r.timeId:r,t))+'">'+l((n.lang||t&&t.lang||c).call(s,"startTimeLabel",{name:"lang",hash:{},data:i}))+'</label>\n <div class="d-flex">\n <div class="d-flex col h-100 align-items-center">\n <input\n class="form-control d-inline-block time-input hour-input"\n type="number"\n placeholder="'+l((n.lang||t&&t.lang||c).call(s,"hoursPlaceholder",{name:"lang",hash:{},data:i}))+'"\n name="hours"\n autocomplete="off"\n '+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.hrDisabled:r,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?r:"")+'\n >\n <span class="px-1">:</span>\n </div>\n <div class="d-flex col h-100 align-items-center">\n <input\n class="form-control d-inline-block time-input minute-input"\n type="number"\n placeholder="'+l((n.lang||t&&t.lang||c).call(s,"minutesPlaceholder",{name:"lang",hash:{},data:i}))+'"\n name="minutes"\n autocomplete="off"\n '+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.minDisabled:r,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?r:"")+'\n >\n <span class="px-1">:</span>\n </div>\n <div class="d-flex col h-100">\n <input\n class="form-control d-inline-block time-input second-input"\n type="number"\n placeholder="'+l((n.lang||t&&t.lang||c).call(s,"secondsPlaceholder",{name:"lang",hash:{},data:i}))+'"\n name="seconds"\n id="'+l(a(null!=(r=null!=t?t.options:t)?r.timeId:r,t))+'"\n autocomplete="off"\n '+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.secDisabled:r,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?r:"")+'\n >\n </div>\n </div>\n <div class="form-feedback d-block"></div>\n </div>\n'},2:function(e,t,n,o,i){return"disabled"},4:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,' <div class="row">\n <button type="submit" class="btn btn-dark ms-2">\n <span class="d-inline-block align-middle svg-container">'+(null!=(r=e.lambda(null!=(r=null!=t?t.options:t)?r.plusSvg:r,t))?r:"")+'</span>\n <span class="align-middle">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"add",{name:"lang",hash:{},data:i}))+"</span>\n </button>\n </div>\n"},6:function(e,t,n,o,i){e.propertyIsEnumerable;var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return' <button type="submit" class="btn btn-dark me-2">'+l((n.lang||t&&t.lang||a).call(r,"save",{name:"lang",hash:{},data:i}))+'</button>\n <button type="button" class="btn btn-secondary cancel me-2">'+l((n.lang||t&&t.lang||a).call(r,"cancel",{name:"lang",hash:{},data:i}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="row">\n <div class="col-6 form-group">\n <label for="'+l(a(null!=(r=null!=t?t.options:t)?r.chapterId:r,t))+'">'+l((n.lang||t&&t.lang||c).call(s,"nameLabel",{name:"lang",hash:{},data:i}))+'</label>\n <input type="text" class="form-control chapter-name" name="name" id="'+l(a(null!=(r=null!=t?t.options:t)?r.chapterId:r,t))+'" placeholder="'+l((n.lang||t&&t.lang||c).call(s,"namePlaceholder",{name:"lang",hash:{},data:i}))+'" autofocus autocomplete="off">\n <div class="form-feedback"></div>\n </div>\n'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.enabled:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+"</div>\n\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.creating:r,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?r:"")+"\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.editing:r,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},95637:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.loading:r,t))},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-2 text-end">\n <a class="action edit-chapter my-2 svg-container '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+' d-inline-block text-secondary"\n title="'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"edit",{name:"lang",hash:{},data:i}))+'">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.editSvg:r,t))?r:"")+"</a>\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.allowDelete:r,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?r:"")+" </div>\n"},4:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return' <a class="action delete-chapter my-2 svg-container '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+' d-inline-block text-secondary"\n title="'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"delete",{name:"lang",hash:{},data:i}))+'">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.deleteSvg:r,t))?r:"")+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=null!=t?t:e.nullContext||{},s=e.lambda,c=e.escapeExpression;return'<div class="row mx-0 border-top chapter-item '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.loading:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">\n <div class="clickable-seek col-1">\n <p class="m-0 py-2">'+c(s(null!=(r=null!=t?t.options:t)?r.index:r,t))+'</p>\n </div>\n <div class="clickable-seek col-6">\n <p class="m-0 py-2">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(l,{name:"name",hash:{},data:i}):a)+'</p>\n </div>\n <div class="clickable-seek col-3 text-end">\n <p class="m-0 py-2">'+c(s(null!=(r=null!=t?t.options:t)?r.time:r,t))+"</p>\n </div>\n"+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.showActions:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'</div>\n<div class="edit-form-region"></div>\n'},useData:!0})},46055: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,i){e.propertyIsEnumerable;var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return"<h5>"+l((n.lang||t&&t.lang||a).call(r,"chapters",{name:"lang",hash:{},data:i}))+'</h5>\n<div class="row mt-3 m-0 border-bottom">\n <div class="col-1">\n <label>#</label>\n </div>\n <div class="col-6">\n <label>'+l((n.lang||t&&t.lang||a).call(r,"nameLabel",{name:"lang",hash:{},data:i}))+'</label>\n </div>\n <div class="col-3 text-end">\n <label>'+l((n.lang||t&&t.lang||a).call(r,"startLabel",{name:"lang",hash:{},data:i}))+'</>\n </div>\n</div>\n<div class="chapter-list-region"></div>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1318],{39023:function(e,t,n){n.d(t,{X:function(){return i}});var r=n(32735);function i(e){var t=e.isLabelEllipsis,n=r.useRef(null);return r.useEffect(function(){n.current&&(e.checked?n.current.indeterminate&&(n.current.indeterminate=!1):!e.indeterminate||n.current.indeterminate?!e.indeterminate&&n.current.indeterminate&&(n.current.indeterminate=!1):n.current.indeterminate=!0)},[n.current,e.indeterminate,e.checked]),r.createElement("div",{className:"form-check pe-2 ".concat(e.className)},r.createElement("input",{ref:n,type:"checkbox",className:"".concat(e.inputClassName," form-check-input"),id:e.id,name:e.name,checked:e.checked,onChange:e.onChange,disabled:e.disabled,"aria-checked":e.checked,"aria-label":e.ariaLabel}),e.label&&r.createElement("label",{className:"form-check-label cursor-pointer align-top",htmlFor:e.id},r.createElement("span",{className:"".concat(t?"clamp-1":"")},e.label)))}i.defaultProps={checked:!1,label:"",className:""}},74483:function(e,t,n){var r;n.d(t,{w:function(){return r}}),function(e){e.Disabled="Disabled",e.Active="Active",e.Inactive="Inactive"}(r||(r={}))},71318:function(e,t,n){n.r(t),n.d(t,{PastRequestsView:function(){return tr}});var r=n(32735),i=n(57857),a=n(86120),o=n(23689),l=n(86242),c=n(66703),s=n(90335),u=n(15408),d=n(2491),f=n(30317),m=n(22430),v=n(50997),y=n(68893),p=n(48404),g=n(19226),b=n(95061),h=n(39396),S=n(85475),E=n(50072),A="libraryRequests.closedAlert";function O(e){var t;return(null===(t=e.libraryRequest)||void 0===t?void 0:t.status)!==E.l.Closed?r.createElement(r.Fragment,null):r.createElement("div",{className:"alert alert-warning mb-3 rounded d-flex align-items-center px-2",role:"alert"},r.createElement(h.x,{svgName:S.vn.Lock,className:"d-inline-block svg-container me-2"}),r.createElement(c.x,{namespace:A,phrase:"closedRequest"}))}var w=n(70065),C=n(40221),N=n(95544),k=n(85887),T=n(42539),j=n(58424),I="search.filterActions";function P(e){return r.createElement("div",{className:"d-flex justify-content-between ".concat(e.className)},e.active?r.createElement(j.L,{className:"text-secondary hover-text-underline cursor-pointer",onClick:e.onClickReset},r.createElement(c.x,{namespace:I,phrase:"reset"})):r.createElement("div",{className:"invisible"}),r.createElement(j.L,{className:"info-link",onClick:e.onClickApply},r.createElement(c.x,{namespace:I,phrase:"apply"})))}P.defaultProps={active:!1,className:""};var L=(0,r.createContext)(null);function R(e,t){return"update"===t.type?t.payload:e}var x=n(53808),F=n(31647),U=n(52076),B=n(18881);function D(e){return r.createElement("label",{htmlFor:e.id,className:"mb-0"},r.createElement("h3",{className:"h6 mb-2"},e.title))}var q=n(39023);function M(e){return function(e){if(Array.isArray(e))return V(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return V(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function G(e){var t=e.draftState.selection,n=e.options.map(function(n){var i=e.filter.disabled||n.disabled,a=!!e.draftState.selection.find(function(e){return e.id.toString()===n.id.toString()}),o=Array.isArray(n.id)?n.id.join("_"):n.id;return r.createElement("li",{key:o,className:"my-1 ".concat(e.displayOptionsIn2Columns?"col-md-6 col-12":"")},r.createElement(q.X,{label:n.name,name:o,id:o,onChange:function(){return function(n,r){if(r){var i=-1;t.find(function(e,t){i>-1||e.id.toString()===n.id.toString()&&(i=t)});var a=[].concat(M(t.slice(0,i)),M(t.slice(i+1)));e.setDraftState({active:!!a.length,selection:a})}else{var o=M(t);o.push(n),e.setDraftState({active:!!o.length,selection:o})}}(n,a)},checked:!i&&a,isLabelEllipsis:e.displayOptionsIn2Columns,disabled:i}))});return r.createElement("ul",{className:"list-unstyled ".concat(e.displayOptionsIn2Columns?"d-flex flex-wrap":"")},n)}function _(e){var t=et.displayTwoColumns(e.filter);return r.createElement(r.Fragment,null,r.createElement(D,{title:e.filter.name}),r.createElement(B.Z,{className:"mb-3"},r.createElement(G,{displayOptionsIn2Columns:t,options:e.filter.options,filter:e.filter,draftState:e.draftState,setDraftState:e.setDraftState})))}function Q(e,t){if(e){if("string"==typeof e)return Y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(e,t):void 0}}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function J(e){var t,n,i,a=[],o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Q(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(o)throw i}}}}(e.filter.options);try{var l=function(){var o,l=i.value,c=e.filter.disabled||l.disabled,s=null===(t=e.draftState.selection)||void 0===t?void 0:t.find(function(e){return(null==e?void 0:e.id)===l.id}),u=null!==(n=l.secondLayerOptions)&&void 0!==n?n:[],d=function(e,t){var n,r,i=(null===(n=null==e?void 0:e.secondLayerSelection)||void 0===n?void 0:n.length)>0,a=(null===(r=null==e?void 0:e.secondLayerSelection)||void 0===r?void 0:r.length)===t.length;return i&&!a}(s,u),f=!d&&!!s;a.push(r.createElement(q.X,{key:l.id,label:l.name,name:l.id,id:l.id,indeterminate:d,onChange:function(){return e.onToggleItem(l,f||d)},checked:!c&&f,className:"my-1",disabled:c})),et.hasManyFilterOptions(u)&&a.push.apply(a,(o=u.map(function(t){var n,i=c||t.disabled,a=!!(null===(n=null==s?void 0:s.secondLayerSelection)||void 0===n?void 0:n.find(function(e){return e.id===t.id}));return r.createElement(q.X,{key:t.id,label:t.name,name:t.id,id:t.id,onChange:function(){return e.onToggleChildItem(t,a,l)},checked:!i&&a,className:"my-1 ms-3",disabled:i})}),function(e){if(Array.isArray(e))return Y(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||Q(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))};for(o.s();!(i=o.n()).done;)l()}catch(e){o.e(e)}finally{o.f()}return r.createElement(r.Fragment,null,a)}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function H(e){var t,n,i,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}(e.filter.options);try{var o,l=function(){var a=i.value,o=e.filter.disabled||a.disabled,l=null===(t=e.draftState.selection)||void 0===t?void 0:t.find(function(e){return(null==e?void 0:e.id)===a.id}),c=(null!==(n=a.secondLayerOptions)&&void 0!==n?n:[]).map(function(t){var n,i=o||t.disabled,c=!!(null===(n=null==l?void 0:l.secondLayerSelection)||void 0===n?void 0:n.find(function(e){return e.id===t.id}));return r.createElement(q.X,{key:t.id,label:t.name,name:t.id,id:t.id,onChange:function(){return e.onToggleChildItem(t,c,a)},checked:!i&&c,className:"my-1",disabled:i})});return{v:r.createElement(r.Fragment,null,c)}};for(a.s();!(i=a.n()).done;)if(o=l())return o.v}catch(e){a.e(e)}finally{a.f()}}function $(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Z(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function W(e){var t=e.filter.options;function n(t,n,r){var i,a,o=e.draftState.selection,l=o.findIndex(function(e){return e.id===r.id});if(!n){var c=[].concat($(null!==(a=null===(i=o[l])||void 0===i?void 0:i.secondLayerSelection)&&void 0!==a?a:[]),[t]);if(0===o.length||-1===l){var s=Object.assign(Object.assign({},r),{secondLayerSelection:c}),u=[].concat($(o),[s]);return void e.setDraftState({active:!!u.length,selection:u})}if(-1!==l){var d=o.map(function(e){return e.id===r.id?Object.assign(Object.assign({},e),{secondLayerSelection:c}):e});return void e.setDraftState({active:!!d.length,selection:d})}}var f=o.map(function(e){if(e.id===r.id){var n=C.m.removeItem(e.secondLayerSelection,t);return Object.assign(Object.assign({},r),{secondLayerSelection:n})}return e});0===f[l].secondLayerSelection.length&&(f=C.m.removeItem(f,r)),e.setDraftState({active:!!f.length,selection:f})}return r.createElement(r.Fragment,null,r.createElement(D,{title:e.filter.name}),r.createElement(B.Z,{className:"mb-3"},et.hasManyFilterOptions(t)?r.createElement(J,Object.assign({onToggleItem:function(n,r){var i,a=e.draftState.selection,o=a.findIndex(function(e){return e.id===n.id});if(!r){var l=null===(i=null==t?void 0:t.find(function(e){return e.id===n.id}).secondLayerOptions)||void 0===i?void 0:i.filter(function(e){return!e.disabled}),c=Object.assign(Object.assign({},n),{secondLayerSelection:l});if(0===a.length||-1===o){var s=[].concat($(a),[c]);return void e.setDraftState({active:!0,selection:s})}if(-1!==o){var u=a.map(function(e){return e.id===n.id?c:e});return void e.setDraftState({active:!!u.length,selection:u})}}var d=C.m.removeItemFromIndex(a,a.findIndex(function(e){return e.id===n.id}));e.setDraftState({active:!!d.length,selection:d})},onToggleChildItem:n},e)):r.createElement(H,Object.assign({onToggleChildItem:n},e))))}var z=n(9063);function K(e){var t=e.draftState.active;return r.createElement(r.Fragment,null,r.createElement(D,{id:e.filter.id,title:e.filter.name}),r.createElement("div",{className:"d-flex align-items-start justify-content-between"},r.createElement("p",{className:"d-inline-block w-75"},e.filter.description),r.createElement(z.Z,{id:e.filter.id,disabled:e.filter.disabled,onClick:function(){e.setDraftState({active:!t})},on:t})))}function ee(e){return r.createElement(r.Fragment,null,e.filter.options.map(function(t){return r.createElement(T.Z.Item,{key:t.id,onClick:function(){return function(t){e.setDraftState({active:!t.default,selection:[t]})}(t)},disabled:e.filter.disabled||t.disabled},t.name)}))}function te(e){return r.createElement(r.Fragment,null,r.createElement(D,{title:e.filter.name}),r.createElement(B.Z,null,r.createElement("ul",{className:"".concat(e.isOnMoreFilters?"d-flex flex-wrap":""," list-unstyled")},e.filter.options.map(function(t){var n,i=e.filter.disabled||t.disabled,a=(null===(n=C.m.first(e.draftState.selection))||void 0===n?void 0:n.id.toString())===t.id.toString();return r.createElement("li",{key:t.id,className:"".concat(e.isOnMoreFilters?"w-50":"")},r.createElement(B.Z.Check,{type:"radio",label:t.name,name:t.id,id:t.id,value:t.id,onChange:function(){return function(t){e.setDraftState({active:!t.default,selection:[t]})}(t)},checked:!i&&a,className:"".concat("B3rOI"),disabled:i}))}))))}var ne=n(95685),re=n.n(ne),ie=n(46304),ae=n(74512);const oe=r.forwardRef(({bsPrefix:e,size:t,vertical:n=!1,className:r,role:i="group",as:a="div",...o},l)=>{const c=(0,ie.vE)(e,"btn-group");let s=c;return n&&(s=`${c}-vertical`),(0,ae.jsx)(a,{...o,ref:l,role:i,className:re()(r,s,t&&`${c}-${t}`)})});oe.displayName="ButtonGroup";var le=oe,ce=n(21326),se=n(32557);function ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return de(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fe(e){var t=ue((0,se.X)({delay:1}),2),n=t[0],i=t[1];if(r.useEffect(function(){e.onHover(i?e.rating:null)},[i]),!e.rating.code)return r.createElement(r.Fragment,null);var a=r.createElement(j.L,{ref:n,className:e.getButtonClasses(e.rating,e.isActive,i),onClick:e.onClick,disabled:e.disabled},e.rating.code);return e.disabled?a:r.createElement(ce.u,{title:e.rating.name,spanHack:!0},a)}function me(e){var t=ue(r.useState([]),2),n=t[0],i=t[1];function a(t){t&&!e.isDisabled(t)||i([])}function o(t){return n.length?!!n.find(function(e){return e.id===t.id}):!!e.selections.find(function(e){return e.id===t.id})}return r.createElement("div",null,r.createElement(le,{as:"ul",className:"list-unstyled mb-0"},e.ratings.map(function(t){var n;return r.createElement("li",{key:t.id},r.createElement(fe,{rating:t,onClick:function(){return function(t){e.onSelectRange(function(t){return e.ratings.filter(function(e){return e.code&&e.value<=t.value})}(t))}(t)},onHover:a,isActive:o(t),disabled:e.disabled||(null===(n=e.isDisabled)||void 0===n?void 0:n.call(e,t)),getButtonClasses:e.getButtonClasses}))})))}me.defaultProps={selections:[]};function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ye(e){var t,n,i=e.filter.options,a=i.filter(function(e){return e.code}),o=(t=a,n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return ve(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],l=a[a.length-1];return r.createElement(r.Fragment,null,r.createElement(D,{title:e.filter.name}),r.createElement("div",{className:"mb-2"},r.createElement(me,{ratings:i,selections:e.draftState.selection,onSelectRange:function(t){e.setDraftState({active:!!t.length,selection:t})},disabled:e.filter.disabled,isDisabled:function(e){return e.disabled},getButtonClasses:function(e,t,n){var r="btn border text-nowrap";return r+=t||n?" btn-dark":" btn-outline-dark",n&&(r+=" active"),1===a.length?r+=" rounded":o.id===e.id?r+=" sLa86":l.id===e.id?r+=" xDcnT":r+=" rounded-0",r}})))}var pe="filters.",ge=n(40484),be=n(75459);function he(e){return he="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},he(e)}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}i.T.encloseNamespace("sharedSearch.utils");var Ee,Ae,Oe,we,Ce="".concat(pe,"library"),Ne=function(e,t){return(Array.isArray(e)?e:[e]).reduce(function(e,n){return t.reduce(function(e,t){var r,i=e[Ce]||[];return n===ge.fi.MyVideos&&t.type===be.r.Workspace||n===ge.fi.School&&t.type===be.r.CustomLibrary||n===ge.fi.ExchangeArchive&&t.type===be.r.Exchange||n===ge.fi.ClickView&&t.type===be.r.HostedLibrary?Object.assign(Object.assign({},e),function(e,t,n){return(t=function(e){var t=function(e){if("object"!=he(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=he(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==he(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},Ce,[].concat(function(e){if(Array.isArray(e))return Se(e)}(r=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return Se(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Se(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[t.id.toString()]))):e},e)},{})},ke=n(66016),Te=n(16045);!function(e){e[e.Unclassified=0]="Unclassified",e[e.Active=1]="Active",e[e.Prospect=2]="Prospect",e[e.LostCustomer=3]="LostCustomer",e[e.Disabled=4]="Disabled",e[e.Other=5]="Other"}(Ee||(Ee={})),function(e){e.Unclassified="Unclassified",e.Active="Active",e.Prospect="Prospect",e.LostCustomer="LostCustomer",e.Disabled="Disabled",e.Other="Other"}(Ae||(Ae={})),function(e){e[e.Unclassified=0]="Unclassified",e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.K12=3]="K12",e[e.Tertiary=4]="Tertiary",e[e.NonEducational=5]="NonEducational",e[e.Partners=6]="Partners",e[e.Internal=7]="Internal",e[e.Other=8]="Other",e[e.ClickView=254]="ClickView",e[e.System=255]="System"}(Oe||(Oe={})),function(e){e.Unclassified="Unclassified",e.Primary="Primary",e.Secondary="Secondary",e.K12="K12",e.Tertiary="Tertiary",e.NonEducational="NonEducational",e.Partners="Partners",e.Internal="Internal",e.Other="Other",e.ClickView="ClickView",e.System="System"}(we||(we={}));var je=n(7754);function Ie(e){return Ie="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},Ie(e)}function Pe(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ie(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ie(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le,Re,xe,Fe,Ue,Be=Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe({},je.JU.BreakingNews,"Breaking news"),je.JU.HistoricalEvent,"Historical event"),je.JU.Holiday,"Holiday"),je.JU.Informal,"Informal"),je.JU.Livestream,"Livestream"),je.JU.NaturalDisaster,"Natural disaster"),je.JU.Observance,"Observance"),je.JU.ReligiousEvent,"Religious event"),je.JU.SportingEvent,"Sporting event"),je.JU.Other,"Other");function De(e,t){if(e){if("string"==typeof e)return qe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qe(e,t):void 0}}function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Me(e){var t,n={},i=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=De(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(o)throw i}}}}(e.filter.options);try{for(i.s();!(t=i.n()).done;){var a=t.value;a.group&&(n[a.group]||(n[a.group]=[]),n[a.group].push(a))}}catch(e){i.e(e)}finally{i.f()}return r.createElement(B.Z,{className:"mb-3"},Object.entries(n).map(function(t){var n,i,a=(i=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(n,i)||De(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=a[0],l=a[1];return r.createElement("ul",{className:"list-unstyled",key:o},r.createElement(D,{title:o}),r.createElement(G,{filter:e.filter,options:l,draftState:e.draftState,setDraftState:e.setDraftState,displayOptionsIn2Columns:!1}))}))}n(11306),n(79410),n(10657),n(1268),n(74483),n(46237),n(77037),n(76044),function(e){e.Online="online",e.Primary="primary",e.Curator="curator"}(Le||(Le={})),n(52086),r.createContext({}),function(e){e[e.Unknown=0]="Unknown",e[e.Staff=1]="Staff",e[e.Learner=2]="Learner",e[e.MasterVideo=3]="MasterVideo",e[e.Rostering=8]="Rostering",e[e.MarketingProfile=16]="MarketingProfile"}(Re||(Re={})),function(e){e.YearGroupRollover="year-group-rollover",e.ChangeYearGroup="change-year-group",e.DeleteUser="delete-user",e.RemoveUser="remove-user",e.DeactivateUser="deactivate-user",e.ActivateUser="activate-user",e.AddToClassroom="add-to-classroom",e.ResetPassword="reset-password",e.SendResetPasswordEmail="send-reset-password-email",e.SendAccountActivationEmail="send-account-activation-email",e.CreateUser="create-user",e.AddToAudience="add-to-audience",e.AddToBackboneClassification="add-to-backbone-classification",e.AddToBackboneAudience="add-to-backbone-audience",e.AddToClassification="add-to-classification",e.AddToSeries="add-to-series",e.AddToDirector="add-to-director",e.AddToDistributor="add-to-distributor",e.AddToProductionCompany="add-to-production-company",e.AddToProducer="add-to-producer",e.SetProductionYear="set-production-year",e.AddToLibrary="add-to-library",e.AddToCurationTag="add-to-curation-tag",e.AddToSkillTag="add-to-skill-tag",e.AddToPedagogyTag="add-to-pedagogy-tag",e.AddToNormalTag="add-to-normal-tag",e.AddToHiddenTag="add-to-hidden-tag",e.AddResourceAndLink="add-resource-and-link",e.Rostering="rostering",e.MarketingProfile="marketing-profile"}(xe||(xe={})),function(e){e[e.NoAction=1]="NoAction",e[e.Succeed=1]="Succeed",e[e.Unknown=10]="Unknown",e[e.CustomerNotFound=100]="CustomerNotFound",e[e.UserNotFound=101]="UserNotFound",e[e.EmailNotVerified=131]="EmailNotVerified",e[e.UserDisabled=133]="UserDisabled",e[e.InvalidYearGroup=200]="InvalidYearGroup",e[e.MissingYearGroup=201]="MissingYearGroup",e[e.NewYearGroupNotSet=202]="NewYearGroupNotSet",e[e.ObjectNotFoundInBackboneClassification=300]="ObjectNotFoundInBackboneClassification",e[e.ObjectNotFoundInBackboneAudience=301]="ObjectNotFoundInBackboneAudience"}(Fe||(Fe={})),function(e){e[e.RolloverYearGroup=1]="RolloverYearGroup",e[e.DeactivateUser=2]="DeactivateUser",e[e.ChangeYearGroup=3]="ChangeYearGroup",e[e.DeleteUser=4]="DeleteUser",e[e.CreateUser=5]="CreateUser",e[e.ResetPassword=6]="ResetPassword",e[e.AddUsersClassroom=7]="AddUsersClassroom",e[e.SendAccountReminderEmail=8]="SendAccountReminderEmail",e[e.ActivateUser=9]="ActivateUser",e[e.AddToBackboneClassification=10]="AddToBackboneClassification",e[e.AddToClassification=11]="AddToClassification",e[e.AddToBackboneAudience=12]="AddToBackboneAudience",e[e.AddToAudience=13]="AddToAudience",e[e.AddVideosSeries=14]="AddVideosSeries",e[e.AddVideosDistributor=15]="AddVideosDistributor",e[e.AddVideosProductionCompany=16]="AddVideosProductionCompany",e[e.AddVideosProducer=17]="AddVideosProducer",e[e.AddVideosDirector=18]="AddVideosDirector",e[e.AddVideosLibrary=19]="AddVideosLibrary",e[e.AddVideosResourceAndLinks=21]="AddVideosResourceAndLinks",e[e.AddVideosTag=22]="AddVideosTag",e[e.SendAccountActivationEmail=23]="SendAccountActivationEmail",e[e.RemoveUser=24]="RemoveUser",e[e.Rostering=25]="Rostering",e[e.MarketingProfile=26]="MarketingProfile",e[e.SetProductionYear=28]="SetProductionYear"}(Ue||(Ue={})),n(74421),n(84868),i.T.encloseNamespace("userManager.utils"),Ue.ActivateUser,Ue.AddUsersClassroom,Ue.ChangeYearGroup,Ue.DeactivateUser,Ue.DeleteUser,Ue.ResetPassword,Ue.RolloverYearGroup,Ue.SendAccountReminderEmail,Ue.CreateUser,Ue.SendAccountActivationEmail,Ue.RemoveUser;var Ve=(i.T.encloseNamespace("sharedSearch.utils"),function(e){switch(e){case"bite-sized":return"...179999";case"short":return"180000...299999";case"medium":return"300000...899999";case"long":return"900000..."}}),Ge=(i.T.encloseNamespace("sharedSearch.utils"),function(e){var t=(new Date).getFullYear();switch(e){case"any-year":return"";case"this-year":return"".concat(t,"...");case"last-3-years":return"".concat(t-3,"...");case"last-5-years":return"".concat(t-5,"...")}});function _e(e,t){var n=e.split("-to-").map(function(e){return t.find(function(t){return t.code===e})});return n.every(function(e){return!!e})?n:[]}var Qe=n(41066);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 Je(e,t,n){return(t=function(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+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=$e(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function He(e){return function(e){if(Array.isArray(e))return Ze(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$e(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $e(e,t){if(e){if("string"==typeof e)return Ze(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ze(e,t):void 0}}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var We=i.T.encloseNamespace("sharedSearch.utils"),ze={classification:!0,categoryId:!0,channel:!0},Ke={series:!0,video:!0,playlist:!0,classification:!0,clip:!0,interactive:!0,company:!0,category:!0},et={displayTwoLayers:function(e){var t=this;return"nested-checkbox"===e.type&&!!this.hasManyFilterOptions(e.options)&&!e.options.every(function(e){return!t.hasManyFilterOptions(null==e?void 0:e.secondLayerOptions)})},hasManyFilterOptions:function(e){return e.length>=ke._.MULTI_PRESENTATION_THRESHOLD},displayTwoColumns:function(e){var t;return ze[e.id]&&(null===(t=e.options)||void 0===t?void 0:t.length)>=10},showPresentationFilter:function(e){var t,n;return!!(null===(t=e.options)||void 0===t?void 0:t.length)&&(e.options.length>1||(null===(n=C.m.first(e.options).secondLayerOptions)||void 0===n?void 0:n.length)>1)},getMoreFilters:function(e){return{id:"moreFilters",name:We("moreFilters"),type:"more-filters",filters:e}},mapTypeToComponent:function(e){switch(e){case"switch":return function(e){return r.createElement(K,Object.assign({key:e.id},e))};case"checkbox":return function(e){return r.createElement(_,Object.assign({key:e.id},e))};case"nested-checkbox":return function(e){return r.createElement(W,Object.assign({key:e.id},e))};case"grouped-checkbox":return function(e){return r.createElement(Me,Object.assign({key:e.id},e))};case"radio":return function(e){return r.createElement(te,Object.assign({key:e.id},e))};case"rating":return function(e){return r.createElement(ye,Object.assign({key:e.id},e))};case"dropdown":return function(e){return r.createElement(ee,Object.assign({key:e.id},e))};default:return function(){return r.createElement(r.Fragment,null)}}},deriveInitialStateFromQuery:function(){var e,t,n,r,i,a,o,l,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,d=arguments.length>3?arguments[3]:void 0,f={sort:{active:!!c.sort,selection:tt(c,s,"sort")},classification:{active:!!c.classification,selection:tt(c,s,"classification")},presentation:{active:!!c.presentation,selection:tt(c,s,"presentation")},type:{active:!!c.type,selection:tt(c,s,"type")},specialEventType:{active:!!c.specialEventType,selection:tt(c,s,"specialEventType")},rating:{active:!!c.rating,selection:tt(c,s,"rating")},interactives:{active:"true"===(null===(e=c.interactives)||void 0===e?void 0:e.toString())},clips:{active:"true"===(null===(t=c.clips)||void 0===t?void 0:t.toString())},yearGroup:{active:!!c.yearGroup,selection:tt(c,s,"yearGroup")},moviesAndTv:{active:"true"===(null===(n=c.moviesAndTv)||void 0===n?void 0:n.toString())},classroom:{active:!!c.classroom,selection:tt(c,s,"classroom")},audience:{active:!!c.audience,selection:tt(c,s,"audience")},hasResources:{active:"true"===(null===(r=c.hasResources)||void 0===r?void 0:r.toString())},hasSubtitles:{active:"true"===(null===(i=c.hasSubtitles)||void 0===i?void 0:i.toString())},productionYear:{active:!!c.productionYear,selection:tt(c,null==u?void 0:u.filters,"productionYear")},isHd:{active:"true"===(null===(a=c.isHd)||void 0===a?void 0:a.toString())},producedByClickView:{active:"true"===(null===(o=c.producedByClickView)||void 0===o?void 0:o.toString())},duration:{active:c.duration,selection:tt(c,null==u?void 0:u.filters,"duration")},tagOrClassification:{active:!!c.tagOrClassification,selection:tt(c,s,"tagOrClassification")},status:{active:!!c.status,selection:tt(c,s,"status")},jobStatus:{active:!!c.jobStatus,selection:tt(c,s,"jobStatus")},isAdmin:{active:"true"===(null===(l=c.isAdmin)||void 0===l?void 0:l.toString())},bulkActionType:{active:!!c.bulkActionType,selection:tt(c,s,"bulkActionType")},userType:{active:!!c.userType,selection:tt(c,s,"userType")},filter:{active:!!c.filter,selection:tt(c,s,"filter")},channel:{active:!!c.channel,selection:tt(c,s,"channel")},dateBroadcast:{active:!!c.dateBroadcast,selection:tt(c,s,"dateBroadcast")},categoryId:{active:!!c.categoryId,selection:tt(c,s,"categoryId")},hasInteractives:{active:!!c.hasInteractives,selection:tt(c,s,"hasInteractives")},source:{active:!!c.source,selection:tt(c,s,"source")},customerStatus:{active:!!c.customerStatus,selection:tt(c,s,"customerStatus")},customerType:{active:!!c.customerType,selection:tt(c,s,"customerType")}},m=function(e,t){var n,r=f[t.id];return r.active&&"selection"in r&&!(null===(n=r.selection)||void 0===n?void 0:n.length)&&(r.active=!1),e[t.id]=f[t.id],e},v=s.reduce(m,{});return(null==u?void 0:u.filters)&&(v.moreFilters=u.filters.reduce(m,{})),v.appLink=d,v},hasActiveFilters:function(e){var t=Object.keys(e);return!!t.length&&!!t.filter(function(t){return"query"!==t&&"cursor"!==t&&"page"!==t&&t!==Qe.z&&!(Array.isArray(e[t])&&!e[t].length)}).length},getLabel:function(e,t){var n,r;if(!(null===(n=null==t?void 0:t.selection)||void 0===n?void 0:n.length))return e.name;if("dropdown"===e.type)return C.m.first(t.selection).name;if("radio"===e.type){var i=C.m.first(t.selection);return!i||i.default?e.name:i.name}if("nested-checkbox"===e.type||"checkbox"===e.type||"grouped-checkbox"===e.type){var a=e.options.find(function(e){return e.default&&t.selection.find(function(t){return t.id===e.id})});if(a)return e.name;if(e.secondaryId){var o=null===(r=t.selection)||void 0===r?void 0:r.reduce(function(t,n){var r,i,a,o=e.options,l=o.findIndex(function(e){return e.id===n.id});return 0===(null===(r=o[l].secondLayerOptions)||void 0===r?void 0:r.length)?t+1:null!==(a=t+(null===(i=n.secondLayerSelection)||void 0===i?void 0:i.length))&&void 0!==a?a:0},0);return"".concat(e.name," - ").concat(o)}return"".concat(e.name," - ").concat(t.selection.length)}if("rating"===e.type){if(!t.selection.length)return e.name;var l=C.m.first(t.selection),c=C.m.last(t.selection);return 1===t.selection.length?"".concat(e.name,": ").concat(l.code):"".concat(e.name,": ").concat(l.code," to ").concat(c.code)}},buildFrontendFilterParams:function(e,t){var n=Object.assign({},e);return t.forEach(function(e){var t,r;if(null==e?void 0:e.filter){var i=e.filter,a=i.id,o=i.type,l=e.state,c=l.active,s=l.selection;switch(o){case"switch":case"button":n[a]=c?"true":"";break;case"radio":case"dropdown":var u=1===(null===(t=e.state.selection)||void 0===t?void 0:t.length)&&(null===(r=C.m.first(e.state.selection))||void 0===r?void 0:r.default);n[a]=e.state.selection.length&&!u?C.m.first(e.state.selection).id:"";break;case"nested-checkbox":n[a]=c?s.map(function(e){return e.id}):null;var d,f=e.filter.secondaryId;f&&(n[f]=(d=[]).concat.apply(d,He(s.map(function(e){return e.secondLayerSelection.map(function(e){return e.id})}))));break;case"checkbox":case"grouped-checkbox":if(!c){n[a]=null;break}var m,v=[],y=Xe(s);try{for(y.s();!(m=y.n()).done;){var p=m.value,g=p.id.toString().split(":");if(g.length>1){var b,h=Xe(g);try{for(h.s();!(b=h.n()).done;){var S=b.value;v.push(S)}}catch(e){h.e(e)}finally{h.f()}}else v.push(p.id)}}catch(e){y.e(e)}finally{y.f()}n[a]=v;break;case"tag":n[a]=c?s.map(function(e){return e.id}):null;break;case"rating":n[a]=c?function(e){if(!(null==e?void 0:e.length))return"";var t=C.m.first(e),n=C.m.last(e);return 1===e.length?t.code:"".concat(t.code,"-to-").concat(n.code)}(s):null}n[a]||delete n[a]}}),k.t.omit(n,["cursor"])},buildBackendFilterParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,i=n?Je(Je({},"filters.presentation",arguments.length>2?arguments[2]:void 0),"isLearner",n):{};return Object.keys(e).reduce(function(n,i){var a=e[i];return Array.isArray(a)&&!a.length||!a?n:ge.BC[i]?"rating"===i?(n["".concat(pe).concat(i)]=function(e,t){var n=_e(e,t);if(n.length){if(1===n.length){var r=C.m.first(n);return"0...".concat(r.value)}var i=C.m.last(n);return"0...".concat(i.value)}}(a,t),n):"productionYear"===i?(n["".concat(pe).concat(i)]=Ge(a),n):"duration"===i?(n["".concat(pe).concat(i)]=Ve(a),n):"moviesAndTv"===i?(n["".concat(pe,"curationTag")]=Te.b.MOVIES_AND_TV,n):"source"===i?Object.assign(Object.assign({},n),Ne(a,r)):(n["".concat(pe).concat(i)]=a,n):n},i)},getAppliedIndices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.type,r=["category"];function i(e){return(t||!r.includes(e))&&Ke[e]}if(n){if(!Array.isArray(n))return[n].filter(i);if(n.length)return n.filter(i)}var a=[];return t&&a.push.apply(a,r),e.source?["video","clip","interactive"].concat(a):["series","video","playlist","classification","clip","interactive","company"].concat(a)},applyFilter:function(e,t,n,r){if(!k.t.isEqual(t,n)){var i=Object.keys(n).map(function(t){var r,i,a=e.find(function(e){return e.id===t}),o=n[t],l=1===(null===(r=o.selection)||void 0===r?void 0:r.length)&&(null===(i=C.m.first(o.selection))||void 0===i?void 0:i.default);return{filter:a,state:{active:o.active&&!l,selection:o.selection}}}),a=F.Q.Ab.GetQuery();F.Q.C$.trigger(Object.assign(Object.assign({},r),{params:et.buildFrontendFilterParams(a,i)}),{replace:!0})}},mixinDisabledFields:function(e,t,n,r){var i,a=[].concat(He(n),He(null!==(i=null==r?void 0:r.filters)&&void 0!==i?i:[]));a=function(e,t,n){var r=n.reduce(function(e,t){return e[t]=!0,e},{});return t.map(function(n){var i;if(!(null===(i=n.compatibleIndices)||void 0===i?void 0:i.length))return n;if(!n.compatibleIndices.find(function(e){return r[e]}))return Object.assign(Object.assign({},n),{disabled:!0});var a=Object.keys(e).filter(function(t){var n=e[t];return"active"in n&&n.active}),o=!1;return a.forEach(function(e){var r;if(!o){var i=t.find(function(t){return t.id===e});if(null===(r=i.compatibleIndices)||void 0===r?void 0:r.length){var a=i.compatibleIndices.reduce(function(e,t){return e[t]=!0,e},{});n.compatibleIndices.find(function(e){return a[e]})||(o=!0)}}}),Object.assign(Object.assign({},n),{disabled:o})})}(e,a,t),a=function(e,t){return t.map(function(n){if(!x.q.isFunction(n.disableOptions))return n;var r=n.disableOptions(n.options,t,e);return Object.assign(Object.assign({},n),{options:r})})}(e,a);var o={mainFilters:a.filter(function(e){return n.find(function(t){return t.id===e.id})})};return(null==r?void 0:r.filters)&&(o.moreFilters=Object.assign(Object.assign({},r),{filters:a.filter(function(e){return r.filters.find(function(t){return t.id===e.id})})})),o},logFilterEvent:function(e,t,n,r,i){var a,o=[];null==e||e.forEach(function(e){var t=n[e.id];t.active&&o.push({type:e.id,selection:t.selection})}),null===(a=null==t?void 0:t.filters)||void 0===a||a.forEach(function(e){var t=n.moreFilters[e.id];t.active&&o.push({type:e.id,selection:t.selection})}),o.length||(i.descriptor=w.OR.Reset),U.k.logUserAction({query:null!=r?r:"",filters:o},U.k.mergeOptions(i,{workflowPhase:w.eu.Complete,actionType:w.Vw.Filter}))},getObjectTypeOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(arguments.length>1?arguments[1]:void 0)?[{id:"video",name:We("videos"),group:We("videoTypes")},{id:"interactive",name:We("interactives"),group:We("videoTypes")},{id:"clip",name:We("clips"),group:We("videoTypes")},{id:"classification",name:We("topics"),group:We("collections")},{id:"series",name:We("series"),group:We("collections")},{id:"playlist",name:We("playlists"),group:We("collections")},{id:"category",name:We("category"),group:We("collections")}].filter(function(t){return!e.find(function(e){return e===t.id})}):[{id:"classification",name:We("topics")},{id:"playlist",name:We("playlists")},{id:"series",name:We("series")},{id:"video",name:We("videos")},{id:"clip",name:We("clips")},{id:"interactive",name:We("interactives")}].filter(function(t){return!e.find(function(e){return e===t.id})})},getIsObjectTypeOptionDisabled:function(e,t,n){return e.map(function(e){var r=!1;return t.forEach(function(t){var i;if(!r){var a=n[t.id]||n.moreFilters[t.id];(null==a?void 0:a.active)&&(null===(i=t.compatibleIndices)||void 0===i?void 0:i.length)&&(t.compatibleIndices.find(function(t){return e.id===t})||(r=!0))}}),Object.assign(Object.assign({},e),{disabled:r})})},getNameSortOptions:function(){return[{id:"newest",name:We("newest")},{id:"oldest",name:We("oldest")},{id:"first-name-atoz",name:We("firstNameAToZ")},{id:"first-name-ztoa",name:We("firstNameZToA")},{id:"surname-atoz",name:We("surnameAToZ")},{id:"surname-ztoa",name:We("surnameZToA")}]},getYearGroupOptions:function(e){return(null==e?void 0:e.length)?e.map(function(e){return{id:e.value.toString(),name:e.name}}):[]},getStatusOptions:function(){return[{id:"active",name:We("active")},{id:"deactivated",name:We("deactivated")},{id:"pending",name:We("pending")}]},getJobStatusOptions:function(){return[{id:"completed",name:We("completed")},{id:"failed",name:We("errored")},{id:"inProgress",name:We("inProgress")}]},getTvFieldsOptions:function(){return[{id:"0",name:We("allFields"),default:!0},{id:"1",name:We("titleDescriptionField")},{id:"2",name:We("captionsField")}]},getTvChannelOptions:function(e){return(null==e?void 0:e.length)?e.map(function(e){return{id:e.name,name:e.name}}):[]},getTvDateBroadcastOptions:function(){return[{id:"any-time",name:We("anyTime"),default:!0},{id:"yesterday",name:We("yesterday")},{id:"last-week",name:We("lastWeek")},{id:"last-2-weeks",name:We("last2Weeks")}]},getCustomerStatusOptions:function(){return[{id:Ee.Unclassified.toString(),name:Ae.Unclassified},{id:Ee.Active.toString(),name:Ae.Active},{id:Ee.Prospect.toString(),name:Ae.Prospect},{id:Ee.LostCustomer.toString(),name:Ae.LostCustomer},{id:Ee.Disabled.toString(),name:Ae.Disabled},{id:Ee.Other.toString(),name:Ae.Other}]},getCustomerTypeOptions:function(){return[{id:Oe.Unclassified.toString(),name:we.Unclassified},{id:Oe.Primary.toString(),name:we.Primary},{id:Oe.Secondary.toString(),name:we.Secondary},{id:Oe.K12.toString(),name:we.K12},{id:Oe.Tertiary.toString(),name:we.Tertiary},{id:Oe.NonEducational.toString(),name:we.NonEducational},{id:Oe.Partners.toString(),name:we.Partners},{id:Oe.Internal.toString(),name:we.Internal},{id:Oe.Other.toString(),name:we.Other},{id:Oe.ClickView.toString(),name:we.ClickView},{id:Oe.System.toString(),name:we.System}]},getCategoriesOptions:function(e){return(null==e?void 0:e.length)?e.map(function(e){return{id:e.data.id,name:e.data.name}}):[]},getSpecialEventTypeOptions:function(){return[{id:je.JU.BreakingNews,name:Be[je.JU.BreakingNews]},{id:je.JU.SportingEvent,name:Be[je.JU.SportingEvent]},{id:je.JU.Observance,name:Be[je.JU.Observance]},{id:je.JU.NaturalDisaster,name:Be[je.JU.NaturalDisaster]},{id:je.JU.HistoricalEvent,name:Be[je.JU.HistoricalEvent]},{id:je.JU.Holiday,name:Be[je.JU.Holiday]},{id:je.JU.Informal,name:Be[je.JU.Informal]},{id:je.JU.ReligiousEvent,name:Be[je.JU.ReligiousEvent]},{id:je.JU.Other,name:Be[je.JU.Other]}]}};function tt(e){var t,n,r=arguments.length>2?arguments[2]:void 0,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).find(function(e){return e.id===r});if(!i)return[];if(!e[r])return null!==(n=null===(t=i.options)||void 0===t?void 0:t.filter(function(e){return e.default}))&&void 0!==n?n:[];if("rating"===r)return function(e,t){if(Array.isArray(e))return e;var n=t.options,r=_e(e,n);if(!r.length)return[];var i=C.m.last(r);return n.filter(function(e){return e.value>0&&e.value<=i.value})}(e[r],i);var a=e[r];return Array.isArray(a)||(a=[a]),"classification"===r?function(e,t){var n,r;return null!==(r=null===(n=null==e?void 0:e.options)||void 0===n?void 0:n.filter(function(e){return e.id.split(":").every(function(e){return t.find(function(t){return t.toString()===e.toString()})})}))&&void 0!==r?r:[]}(i,a):"presentation"===r?function(e,t,n){return nt(e,t).map(function(e){var t=n.audience;if(!(null==t?void 0:t.length))return e;var r=nt(e.secondLayerOptions,t);return Object.assign(Object.assign({},e),{secondLayerSelection:r})}).filter(function(e){var t;return!!(null===(t=e.secondLayerSelection)||void 0===t?void 0:t.length)})}(i.options,a,e):nt(i.options,a)}function nt(e,t){var n;return Array.isArray(t)||(t=[t]),null!==(n=null==e?void 0:e.filter(function(e){return t.find(function(t){return t.toString()===e.id.toString()})}))&&void 0!==n?n:[]}var rt={hideCaret:"KDq7l",filterMenu:"E9o_Q",twoColumnsWidth:"C70vU",nestedCheckboxesWidth:"kUHcg",switchWidth:"bi1FH",moreFiltersWidth:"rbr22",svgContainer:"UwDMA"};function it(e){return it="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},it(e)}function at(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ot(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lt(e){var t=r.useContext(L).state,n=t[e.filter.id],i="dropdown"===e.filter.type,a=at(r.useState(e.filter.name),2),o=a[0],l=a[1],c=at(r.useState(!1),2),s=c[0],u=c[1],d=at(r.useState(n),2),f=d[0],m=d[1];function v(e){m(e),i&&y(e)}function y(){var r,i,a,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;et.applyFilter([e.filter],n,(r={},i=e.filter.id,a=o,(i=function(e){var t=function(e){if("object"!=it(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=it(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==it(t)?t:t+""}(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r),t.appLink)}r.useEffect(function(){l(et.getLabel(e.filter,n)),m(n)},[e.filter,null==n?void 0:n.selection]);var p,g=r.useMemo(function(){return e.filter.customComponent?e.filter.customComponent:et.mapTypeToComponent(e.filter.type)},[e.filter.type]),b=e.hideCaret&&!i?rt.hideCaret:"",S=(p=e.filter,et.displayTwoColumns(p)?rt.twoColumnsWidth:"classification"===p.id?rt.classificationWidth:et.displayTwoLayers(p)?rt.nestedCheckboxesWidth:"switch"===p.type?rt.switchWidth:"");return"button"===e.filter.type?r.createElement(g,{filter:e.filter,draftState:f,setDraftState:v}):r.createElement(T.Z,{onToggle:function(e){u(e),e||i||y()},show:s},r.createElement(T.Z.Toggle,{id:"filterButton-".concat(e.filter.id),className:"".concat("fw-semibold mx-1 btn d-flex align-items-center"," ").concat(b),variant:n.active&&!i?"dark":"outline-dark",disabled:e.filter.disabled},!!e.filter.icon&&r.createElement("div",{className:rt.svgContainer},r.createElement(h.x,{svgName:e.filter.icon})),e.filter.labelPrefix," ",o),r.createElement(T.Z.Menu,null,r.createElement("div",{className:"mx-1 ".concat(rt.filterMenu," ").concat(S," ").concat(i?"":"px-2 py-1")},r.createElement(g,{filter:e.filter,draftState:f,setDraftState:v}),!i&&!e.filter.disabled&&r.createElement(P,{active:f.active,onClickReset:function(){var t,n=null===(t=e.filter.options)||void 0===t?void 0:t.find(function(e){return e.default});m({active:!1,selection:n?[n]:[]})},onClickApply:function(){y(),u(!1)}}))))}function ct(e){return ct="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},ct(e)}lt.defaultProps={hideCaret:!0};var st={getSetStateByKey:function(e,t,n){return function(r){return e(function(e){var i,a,o,l=x.q.isFunction(n)?n:x.q.useIdentity();return Object.assign(Object.assign({},e),(i={},a=t,o=l(r,e),(a=function(e){var t=function(e){if("object"!=ct(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ct(t)?t:t+""}(a))in i?Object.defineProperty(i,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[a]=o,i))})}}};function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ft(e){return Object.keys(e).reduce(function(t,n){return e[n].active?t+1:t},0)}function mt(e){var t=r.useContext(L).state,n=t.moreFilters,i=ut(r.useState(e.filter.name),2),a=i[0],o=i[1],l=ut(r.useState(!1),2),c=l[0],s=l[1],u=ut(r.useState(n),2),d=u[0],f=u[1],m=ut(r.useState(ft(n)),2),v=m[0],y=m[1],p=Object.keys(n).map(function(e){return"".concat(e,":").concat(n[e].active)}).join("-");function g(){et.applyFilter(e.filter.filters,n,d,t.appLink)}r.useEffect(function(){f(n),y(ft(n))},[e.filter,p]),r.useEffect(function(){o(v?"".concat(e.filter.name," - ").concat(v):e.filter.name)},[v]);var b="fw-semibold ".concat(rt.hideCaret," mx-1 btn");return r.createElement(T.Z,{onToggle:function(e){s(e),e||g()},show:c},r.createElement(T.Z.Toggle,{id:e.filter.id,className:b,variant:v?"dark":"outline-dark"},a),r.createElement(T.Z.Menu,{onClick:function(e){return e.stopPropagation()}},r.createElement("div",{className:"mx-1 ".concat(rt.moreFiltersWidth," ").concat("dropdown"!==e.filter.type?"px-2 py-1":"")},e.filter.filters.map(function(e){var t=e.customComponent?e.customComponent:et.mapTypeToComponent(e.type);return r.createElement("fieldset",{key:e.id},r.createElement(t,{filter:e,draftState:d[e.id],setDraftState:st.getSetStateByKey(f,e.id),isOnMoreFilters:!0}))}),r.createElement(P,{active:!!Object.keys(d).find(function(e){return d[e].active}),onClickReset:function(){var t=Object.keys(n).reduce(function(t,n){var r,i=null===(r=e.filter.filters.find(function(e){return e.id===n}).options)||void 0===r?void 0:r.find(function(e){return e.default});return t[n]={active:!1,selection:i?[i]:[]},t},{});f(t)},onClickApply:function(){g(),s(!1)}}))))}var vt={tagList:"Zw6d9",badgeBase:"irnbf",disabled:"jlL1c",partialTag:"too_N",removeBadge:"_9FVm",removeBadgeText:"nhoAA",close:"X9joI"},yt=r.memo(function(e){var t=e.tagClass,n="partial-loading-background d-inline-block rounded-pill py-1 px-2 mb-1 me-1 text-nowrap ".concat(void 0===t?"":t," ").concat(vt.partialTag);return r.createElement("div",{className:"mt-1"},r.createElement("span",{className:n}," "))}),pt=n(37360),gt=n(19650);function bt(e){return bt="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},bt(e)}function ht(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return St(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?St(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function St(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Et,At=400;function Ot(e){var t=e.type,n=e.state,i=e.containerRef,a=e.mediaQuery,o=ht(r.useState(!1),2),l=o[0],c=o[1],s=ht(r.useState({}),2),u=s[0],d=s[1],f=ht(r.useState(null),2),m=f[0],v=f[1],y=r.useMemo(function(){return pt.V.isTouchScreen()},[]);return r.useEffect(function(){"dynamic"===t&&i.current&&n.containerLeftPosition&&!y&&setTimeout(function(){return function(){var e,t=n;if(null===(e=i.current)||void 0===e?void 0:e.children){var r=Array.from(i.current.children).reduce(function(e,n){var r,i,a,o=null==n?void 0:n.getBoundingClientRect(),l=o.left<t.containerRightPosition&&o.right>t.containerLeftPosition;return Object.assign(Object.assign({},e),(r={},i=n.id,a=l?{"aria-hidden":!1}:{"aria-hidden":!0,inert:"true"},(i=function(e){var t=function(e){if("object"!=bt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bt(t)?t:t+""}(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r))},{});d(r)}}()},At+50)},[i.current,a,n.offset,n.containerLeftPosition]),{isTabbing:l,onFocusWidget:function(e){document.querySelector(".user-is-tabbing")&&(c(!0),v(e))},onBlurWidget:function(){document.querySelector(".user-is-tabbing")||(c(!1),v(null))},getFixedAttributes:function(e){var t=n;return y||e>=t.offset-t.viewableItems&&e<t.offset?{"aria-hidden":!1}:{inert:"true","aria-hidden":!0}},dynamicAttributes:u,focusNext:function(){setTimeout(function(){if(i.current){for(var e=i.current.querySelectorAll("li[aria-hidden]"),t=null,n=m+1;n<e.length&&!t;n++)t=e[n].querySelector('a[tabindex="0"]');t&&t.focus()}},At+100)},focusPrev:function(){setTimeout(function(){if(i.current){for(var e=i.current.querySelectorAll("li[aria-hidden]"),t=null,n=m-1;n>=0&&!t;n--)t=e[n].querySelector('a[tabindex="0"]');t&&t.focus()}},At+100)}}}!function(e){e.Percentage="%",e.Pixels="px"}(Et||(Et={}));var wt=new Image;wt.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var Ct,Nt=function(e){e.dataTransfer.setDragImage&&x.q.isFunction(e.dataTransfer.setDragImage)&&e.dataTransfer.setDragImage(wt,0,0)},kt=pt.V.isTouchScreen(),Tt=r.forwardRef(function(e,t){var n,i,a,o,l=e.children,c=e.positionType,s=e.onDrag,u=e.onDragEnd,d=e.onTouchMove,f=e.onTouchEnd,m=e.percentageDragged,v=e.position,y=void 0===v?0:v;return r.createElement("ul",Object.assign({className:"list-unstyled d-flex flex-nowrap position-relative w-100 mb-0",style:(i=y,a=c,o=m,a===Et.Percentage&&o&&(i-=o),{transform:"translate3d(".concat(i).concat(a,", 0px, 0px)"),transition:"transform .4s ease-in-out"}),ref:t},(n={},s&&u&&(n.draggable=!0,n.onDragEnd=u,n.onDragStart=Nt,n.onDragOver=s),d&&f&&kt&&(n.onTouchMoveCapture=d,n.onTouchEndCapture=f),n)),l)}),jt="VSAPU",It="kgeXh",Pt=i.T.encloseNamespace("shared.widgetButton");!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(Ct||(Ct={}));var Lt,Rt=r.memo(function(e){var t,n,i,a=e.direction===Ct.Left,o=a?S.vn.ChevronLeft:S.vn.ChevronRight;return e.hide?r.createElement(r.Fragment,null):r.createElement("div",{className:"".concat("_ejId"," ").concat(e.containerClassName?e.containerClassName:""),style:"videos"===(null===(n=e.state)||void 0===n?void 0:n.contents)?{paddingBottom:56.25/(null===(i=e.state)||void 0===i?void 0:i.viewableItems)+"%"}:{height:"100%"}},e.useGradientBackdrop&&r.createElement("div",{className:a?"".concat("Pt3nx"," ").concat(e.leftGradientClassName):"".concat("ZuAif"," ").concat(e.rightGradientClassName)}),!e.hideExtendedClickableArea&&r.createElement("button",{onClick:e.onClick,className:"".concat("AtsWP"," ").concat(a?jt:It),tabIndex:-1}),r.createElement("button",{className:"".concat((t="BVcIS",t+=a?" ".concat(jt," ").concat(e.leftButtonClassName):" ".concat(It," ").concat(e.rightButtonClassName))," ").concat("gAsE9"," ").concat(e.className||""),onClick:e.onClick,"aria-label":Pt(a?"previous":"next")},e.hoverText&&r.createElement("span",{className:"ps-3 pe-2 ".concat("APA36")},e.hoverText),r.createElement(h.x,{svgName:o,size:h.S.Medium,className:"svg-container d-inline-block ".concat("Ev4hr")})))});!function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag",e.Update="update",e.JumpToIndex="jump-to-index"}(Lt||(Lt={}));var xt=n(90547),Ft=n(5256),Ut=n(29267);function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Dt=n(89146),qt=n(41814),Mt=function(e,t,n){return function(){e.container.current&&(e.container.current.style.transition=""),t({type:Lt.Resize,payload:{elementRefs:e,mediaQuery:n}})}},Vt=function(e){return function(){e.current&&(e.current.style.transition="transform .4s ease-in-out")}},Gt=function(e,t,n,r,i){return function(a){var o=a.clientX,l=r;l||(l=Object.assign(Object.assign({},t),{initialMouseX:o}),i(l),e.current.style.transition=""),n({type:Lt.Drag,payload:{widgetSnapshot:l,currentMouseX:o}})}},_t=function(e,t){return function(){e.current.style.transition="transform .4s ease-in-out",t(null)}};function Qt(e){return e===xt.r.XS?200:e===xt.r.SM||e===xt.r.MD?350:500}var Yt={offset:0,containerLeftPosition:null,containerRightPosition:null,firstElementPosition:null,lastElementPosition:null,hideLeftButton:!0,hideRightButton:!0,maxSlideDistance:0,leftOffsetLimit:null},Jt=function(e){var t=e.elementRefs,n=t.container,r=t.lastElement;if(!(null==n?void 0:n.current)||!(null==r?void 0:r.current))return Yt;var i=n.current.getBoundingClientRect(),a=i.left,o=i.right,l=a,c=r.current.getBoundingClientRect().right,s=o-c;return Object.assign(Object.assign({},Yt),{containerLeftPosition:a,containerRightPosition:o,firstElementPosition:l,lastElementPosition:c,hideRightButton:c<o,leftOffsetLimit:s,maxSlideDistance:Qt(e.mediaQuery)})},Xt=function(e){var t=Jt(Object.assign(Object.assign({},e),e.elementRefs));return Object.assign(Object.assign({},t),{maxSlideDistance:Qt(e.mediaQuery)})},Ht=function(e){var t=e.firstElementPosition,n=e.lastElementPosition,r=e.maxSlideDistance,i=e.offset,a=e.containerRightPosition,o=n-a>=r?r:n-a;return{firstElementPosition:t-o,lastElementPosition:n-o,offset:i-o,hideRightButton:n-o===a,hideLeftButton:!1}},$t=function(e){var t=e.containerLeftPosition,n=e.firstElementPosition,r=e.lastElementPosition,i=e.maxSlideDistance,a=e.offset,o=n+i<=t,l=o?i:Math.abs(a);return{firstElementPosition:n+l,lastElementPosition:r+l,offset:a+l,hideLeftButton:!o||n+l===t,hideRightButton:!1}},Zt=function(e,t){var n=t.widgetSnapshot,r=t.currentMouseX;if(n.hideLeftButton&&n.hideRightButton)return{};var i=n.initialMouseX-r,a=n.offset-i,o=n.firstElementPosition-i,l=n.lastElementPosition-i,c=!1,s=!1;return o>e.containerLeftPosition&&(a=0,o=e.containerLeftPosition,l=e.lastElementPosition,c=!0),l<=e.containerRightPosition&&(a=e.leftOffsetLimit,o=e.containerLeftPosition-Math.abs(e.leftOffsetLimit),l=n.containerRightPosition,s=!0),{offset:a,firstElementPosition:o,lastElementPosition:l,hideLeftButton:c,hideRightButton:s}};function Wt(e,t){switch(t.type){case Lt.Init:return Object.assign(Object.assign({},e),Jt(t.payload));case Lt.Resize:return Object.assign(Object.assign({},e),Xt(t.payload));case Lt.Next:return Object.assign(Object.assign({},e),Ht(e));case Lt.Previous:return Object.assign(Object.assign({},e),$t(e));case Lt.Drag:return Object.assign(Object.assign({},e),Zt(e,t.payload));default:return e}}var zt={itemSpacing:"fDc_6",header:"WMgSZ",mobileScroll:"aLSzv",leftGradient:"YheD1",leftGradientNoPadding:"Vl2_g",leftButton:"ISepF",leftButtonNoPadding:"N4rAS",rightGradient:"i9XEE",rightGradientNoPadding:"APhNv",rightButton:"OxM84",rightButtonNoPadding:"nmSQo"};function Kt(e){return function(e){if(Array.isArray(e))return nn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function en(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||tn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tn(e,t){if(e){if("string"==typeof e)return nn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nn(e,t):void 0}}function nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rn(e){var t,n,i,a,o,l,c,s=e.childComponent,u=e.staticChildren,d=e.getWidgetItemAnalyticsData,f=void 0===d?function(){}:d,m=en(r.useReducer(Wt,Yt),2),v=m[0],y=m[1],p=en(r.useState(null),2),g=p[0],b=p[1],h={container:r.useRef(null),firstElement:r.useRef(null),lastElement:r.useRef(null)},S=(t=(0,Ft.a)(xt.r.XS),n=(0,Ft.a)(xt.r.SM),i=(0,Ft.a)(xt.r.MD),a=(0,Ft.a)(xt.r.LG),o=(0,Ft.a)(xt.r.XL),l=(0,Ft.a)(xt.r.XXL),c=xt.r.LG,t&&(c=xt.r.XS),n&&(c=xt.r.SM),i&&(c=xt.r.MD),a&&(c=xt.r.LG),o&&(c=xt.r.XL),l&&(c=xt.r.XXL),c),E=pt.V.isTabletOrMobile(),A=Ot({type:"dynamic",state:v,containerRef:h.container,mediaQuery:S}),O=A.dynamicAttributes,w=A.focusNext,N=A.focusPrev,T=A.onFocusWidget,j=A.onBlurWidget;!function(e,t){var n,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=function(){e(),window.clearTimeout(n),n=window.setTimeout(t,100)};r.useEffect(function(){return window.addEventListener("resize",t?o:e),function(){return window.removeEventListener("resize",t?o:e)}},function(e){if(Array.isArray(e))return Bt(e)}(i=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return Bt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}(Mt(h,y,S),Vt(h.container),[S]);var I=(0,Ut.Y)({prevent:!e.lazyLoad}),P=I.ref,L=I.inView,R=e.collection;if(!e.collection&&x.q.isFunction(e.fetch)){var F=e.fetch(L);R=F.data}r.useEffect(function(){R&&!k.t.isEmpty(R)&&y({type:Lt.Init,payload:{elementRefs:h,mediaQuery:S}})},[R]);var B=r.useMemo(function(){var t,n;if(R){var i=null!==(t=null==u?void 0:u.filter(function(e){return"start"===e.position}))&&void 0!==t?t:[],a=null!==(n=null==u?void 0:u.filter(function(e){return"end"===e.position}))&&void 0!==n?n:[],o=R.map(function(t,n){var o;t===C.m.first(R)&&(null==i?void 0:i.length)&&(o=h.firstElement),t!==C.m.last(R)||(null==a?void 0:a.length)||(o=h.lastElement);var l=n+1===R.length;return r.createElement("li",Object.assign({id:t.id,key:t.id,ref:o,onFocus:function(){return T(n)},onBlur:function(){return j()},className:"".concat(zt.itemSpacing," ").concat(e.childClassName||""," ").concat(l&&E?"pe-4":"")},O[t.id]),r.createElement(s,Object.assign({getChildAppLink:e.getChildAppLink,data:t,getSubtitle:e.getSubtitle,analyticsData:Object.assign(Object.assign({itemIndex:n},e.analyticsData),f(t)),analyticsOptions:Object.assign(Object.assign({},null==e?void 0:e.analyticsOptions),qt.d.getSliderItemAnalyticsOptions())},e.childComponentProps)))});return i.length&&(o=[].concat(Kt(i.map(function(t,n){var i=t.component;return r.createElement("li",{key:"first-widget-component:".concat(n),ref:0===n?h.firstElement:null,className:"".concat(zt.itemSpacing," ").concat(e.childClassName||"")},r.createElement(i,null))})),Kt(o))),a.length&&(o=[].concat(Kt(o),Kt(a.map(function(t,n){var i=t.component;return r.createElement("li",{key:"end-widget-component:".concat(n),ref:n===a.length-1?h.lastElement:null,className:"".concat(zt.itemSpacing," ").concat(e.childClassName||"")},r.createElement(i,null))})))),r.createElement(r.Fragment,null,o)}},[R,O,v.offset,S].concat(Kt(e.widgetDataDeps||[])));if(R&&!R.length&&!(null==u?void 0:u.length))return r.createElement(r.Fragment,null);if(!R||k.t.isEmpty(R))return r.createElement("div",{ref:P},r.createElement(an,{partialLoadingComponent:e.partialLoadingComponent,partialLoadingOptions:e.partialLoadingOptions}));var D=function(t){return Object.assign(Object.assign({},e.analyticsData),{id:e.id,name:e.heading,direction:t===Lt.Next?"right":"left"})},q=E||e.hideButtons;return r.createElement("div",{className:"".concat(e.noNegativePadding?"":"mx-n4")},r.createElement("div",{className:"px-4 ".concat(zt.header)},r.createElement(gt.B,{name:e.heading,description:e.description,appLink:e.headingAppLink,showSeeMoreLink:!!e.headingAppLink})),r.createElement("div",{className:"position-relative"},r.createElement("div",{className:"".concat(e.noNegativePadding?"":"px-4"," py-3 my-n3 position-relative ").concat(E?zt.mobileScroll:"overflow-hidden-x")},r.createElement("div",{className:"position-relative ".concat(e.hideButtons?"overflow-hidden-x":"")},!q&&r.createElement(Rt,{direction:Ct.Left,onClick:function(){N(),y({type:Lt.Previous}),U.k.logUserAction(D(Lt.Previous),qt.d.getSliderAnalyticsOptions())},leftButtonClassName:"".concat(zt.leftButton," ").concat(e.noNegativePadding?zt.leftButtonNoPadding:""),leftGradientClassName:"".concat(zt.leftGradient," ").concat(e.noNegativePadding?zt.leftGradientNoPadding:""),hide:v.hideLeftButton,useGradientBackdrop:!0}),r.createElement(Tt,{position:v.offset,positionType:Et.Pixels,onDrag:Gt(h.container,v,y,g,b),onDragEnd:_t(h.container,b),ref:h.container},B),!q&&r.createElement(Rt,{direction:Ct.Right,onClick:function(){w(),y({type:Lt.Next}),U.k.logUserAction(D(Lt.Next),qt.d.getSliderAnalyticsOptions())},hide:v.hideRightButton,rightButtonClassName:"".concat(zt.rightButton," ").concat(e.noNegativePadding?zt.rightButtonNoPadding:""),rightGradientClassName:"".concat(zt.rightGradient," ").concat(e.noNegativePadding?zt.rightGradientNoPadding:""),useGradientBackdrop:!0})))))}rn.defaultProps={heading:"",description:"",childComponentProps:{}};var an=function(e){var t=e.partialLoadingComponent,n=e.partialLoadingOptions;return r.createElement("div",{className:"d-flex flex-nowrap overflow-hidden"},Dt.u.getPartialLoadingItems(n).map(function(e,n){return r.createElement(t,{key:n})}))},on=n(77105),ln=n(89603),cn=i.T.encloseNamespace("shared.tags");function sn(e){var t,n,i=e.tag,a=e.appLink,o=e.onClick,l=e.disabled,c=e.tagClass,s=void 0===c?"tag":c,u=i.name.toLowerCase(),d=null===(t=i.tagType)||void 0===t?void 0:t.toLowerCase(),f=d===ln.Q.Normal&&e.themeColours&&!!(null===(n=e.themeColours)||void 0===n?void 0:n.secondary),m="".concat(vt.badgeBase," rounded-pill py-1 px-2 my-1 me-1 ").concat(s," ").concat(function(e,t){switch(e){case ln.Q.Pedagogy:case ln.Q.Skill:return"pedagogy-tag text-white";case ln.Q.Hidden:return"hidden-tag fw-normal";case ln.Q.Normal:return t?"":"bg-gray-100 fw-normal";default:return""}}(d,f)),v="text-truncate text-nowrap";f&&(m+=" text-white"),!a&&!o||l||(m+=" cursor-pointer"),l&&(m+=" "+vt.disabled),e.onRemove&&(m+=" "+vt.removeBadge,v+=" "+"".concat(vt.removeBadgeText," d-inline-flex align-items-center lh-1")),a||(m+=" d-inline-block");var y=f?{backgroundColor:e.themeColours.secondary}:{};return a?r.createElement(on.F,{onClick:o,appLink:a,className:m,title:u,style:y},r.createElement("span",{className:v},u)):r.createElement("button",{onClick:o,className:m,title:u,style:y,"aria-label":"".concat(cn("ariaFilter")," ").concat(u)},r.createElement("span",{className:v},u,e.onRemove&&r.createElement("button",{onClick:e.onRemove,className:"".concat(vt.close," btn-close font-size-normal"),role:"button","aria-label":"Close"})))}function un(e){var t=e.selectedItems.find(function(t){return t.id===e.data.id})?"bg-gray-900 text-white":"bg-light";return r.createElement(sn,{tag:e.data,appLink:e.appLink,tagClass:"no-decoration ".concat(t," lh-1"),onClick:function(){return e.onClick(e.data)}})}var dn={tagItem:"j84HW"};function fn(e){return fn="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},fn(e)}function mn(e){return function(e){if(Array.isArray(e))return vn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return vn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yn(e){var t,n,i,a,o=r.useContext(L).state;if(!(null===(t=e.filter)||void 0===t?void 0:t.id))return r.createElement(r.Fragment,null);var l=o[e.filter.id],c=l.selection,s=null!==(a=null===(i=null===(n=e.filter)||void 0===n?void 0:n.options)||void 0===i?void 0:i.filter(function(e){return!(null==c?void 0:c.find(function(t){return t.id===e.id}))}))&&void 0!==a?a:[];function u(t){var n,r,i,a=null,s=-1;if(c.find(function(e,n){s>-1||e.id.toString()===t.id.toString()&&(s=n)}),s>=0){var u=[].concat(mn(c.slice(0,s)),mn(c.slice(s+1)));a={active:!!u.length,selection:u}}else a={active:!0,selection:c.concat(t)};et.applyFilter([e.filter],l,(n={},r=e.filter.id,i=a,(r=function(e){var t=function(e){if("object"!=fn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fn(t)?t:t+""}(r))in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n),o.appLink)}var d,f=[].concat(mn(c),mn(e.isFetching?[]:s));return r.createElement("div",{className:e.isFetching||f.length?"py-2":""},r.createElement("div",{className:(d="mb-3",f.length&&e.isFetching?d+=" mt-n1":f.length||e.isFetching||(d+=" d-none"),d)},(!!f.length||e.isFetching)&&r.createElement(rn,{collection:f,childComponent:function(e){return r.createElement(un,Object.assign({},e,{selectedItems:c,onClick:u}))},staticChildren:e.isFetching?new Array(3).fill({component:function(){return r.createElement(yt,{tagClass:dn.tagItem})},position:"end"}):[],partialLoadingComponent:function(){return r.createElement("div",{className:"me-2"},r.createElement(yt,{tagClass:"".concat(dn.tagItem)}))}})))}var pn=n(47327);function gn(e){var t=r.useContext(L).state;return r.createElement(j.L,{onClick:function(){var e,n,r=null!==(n=null===(e=pn.O.getCurrentRoute().appLink)||void 0===e?void 0:e.params)&&void 0!==n?n:{},i=k.t.pick(r,["query",Qe.z]);F.Q.C$.trigger(Object.assign(Object.assign({},t.appLink),{params:i}))},className:"".concat(e.alignLeft?"order-first":""," hover-text-underline cursor-pointer d-flex align-items-center mx-2")},r.createElement(c.x,{namespace:"search.resetButton",phrase:"reset"}))}var bn={partialFilterHeading:"O8f8H",partialButton:"ThKam",filtersContainer:"JIp3h"};function hn(e){return function(e){if(Array.isArray(e))return En(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Sn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sn(e,t){if(e){if("string"==typeof e)return En(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?En(e,t):void 0}}function En(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function An(e){var t,n,i=e.queryParams,a=e.appLink,o=e.hideHeading,l=e.isFetchingOptions,s=e.constantIndices,u=void 0===s?[]:s,d=r.useMemo(function(){return et.deriveInitialStateFromQuery(i,e.mainFilters,e.moreFilters,a)},[i,l]),f=(t=r.useReducer(R,d),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||Sn(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=f[0],v=f[1];r.useEffect(function(){k.t.isEqual(d,m)||(v({type:"update",payload:d}),e.analyticsOptions&&et.logFilterEvent(e.mainFilters,e.moreFilters,d,i.query,e.analyticsOptions))},[d]);var y=C.m.uniq([].concat(hn(et.getAppliedIndices(i,e._hasNewSearch)),hn(u))),p=et.mixinDisabledFields(m,y,e.mainFilters,e.moreFilters),g=p.mainFilters,b=p.moreFilters,h=g.filter(function(e){return"tag"!==e.type}),S=g.find(function(e){return"tag"===e.type});return r.createElement(L.Provider,{value:{state:m,dispatch:v}},r.createElement(c.D.Provider,{value:"search.searchFilters"},r.createElement("section",null,r.createElement("div",{className:(0,N.A)("d-flex",!e.hideDivider&&"border-bottom pb-3 mb-3",e._hasNewSearch&&e.hideDivider&&"pb-3",e._hasNewSearch&&!e.hideDivider&&"border-gray-300")},!o&&r.createElement("h2",{className:"h5 mb-0 d-inline-block pe-2 border-end d-flex align-items-center"},r.createElement(c.x,{phrase:"heading"})),r.createElement("div",{className:(0,N.A)("d-flex flex-wrap ".concat(bn.filtersContainer),!o&&"ms-2")},h.map(function(t){return r.createElement(lt,{key:t.id,filter:t,hideCaret:e.hideCaret})}),b&&r.createElement(mt,{filter:b}),et.hasActiveFilters(i)&&!e.hideResetButton&&r.createElement(gn,{mainFilters:e.mainFilters,moreFilters:e.moreFilters,currentQueryParam:i.query,analyticsOptions:e.analyticsOptions,alignLeft:e.alignResetButtonLeft}))),r.createElement(yn,{filter:S,queryParams:i,isFetching:e.isFetchingOptions}))))}var On=i.T.encloseNamespace("libraryRequests.filters");function wn(e){return r.createElement(An,{queryParams:e.queryParams,mainFilters:[{id:"status",name:"Status",type:"checkbox",options:[{id:"approved",name:On("approved")},{id:"rejected",name:On("rejected")},{id:"closed",name:On("closed")},{id:"autoApproved",name:On("autoApproved")}],compatibleIndices:[]}],appLink:{application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.PAST_REQUESTS,args:[e.id],params:e.queryParams},analyticsOptions:{entity:w.py.LibraryRequest,location:w.LZ.LibraryRequestDetails},constantIndices:[],hideDivider:!0})}var Cn=n(12145),Nn=n(49824),kn=n(40913),Tn=n(7044),jn=n(21974),In=n(264),Pn=n(5984),Ln="libraryRequests.pastDetails";function Rn(e){var t=(0,Pn.$)(e.status);return r.createElement("span",{className:"ms-1"},t)}function xn(e){var t,n,i,a,o,s,u,d=e.libraryRequest.sourceLibrary||e.libraryRequest.sourceCategory,f="";e.libraryRequest.actionedBy&&(f="".concat(e.libraryRequest.actionedBy.name," ").concat(e.libraryRequest.actionedBy.surname));var m=function(e){switch(e){case E.l.AutoApproved:return"addedBy";case E.l.Approved:return"approvedBy";default:return"rejectedBy"}}(e.libraryRequest.status),y=e.libraryRequest.sender&&"".concat(null!==(n=null===(t=e.libraryRequest.sender)||void 0===t?void 0:t.name)&&void 0!==n?n:""," ").concat(null!==(a=null===(i=e.libraryRequest.sender)||void 0===i?void 0:i.surname)&&void 0!==a?a:""),p="";return(null===(o=e.libraryRequest.senderCustomer)||void 0===o?void 0:o.id.toString())!==e.user.get("customerId").toString()&&(p=null===(s=e.libraryRequest.senderCustomer)||void 0===s?void 0:s.name),r.createElement("div",{className:"bg-white rounded p-3 mb-3"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col-3 offset-9 mb-n3"},r.createElement("div",{className:"d-flex justify-content-end align-items-start"},r.createElement(Pn.h,{status:e.libraryRequest.status}),r.createElement(Rn,{status:e.libraryRequest.status}))),r.createElement("div",{className:"col-12"},!!f&&r.createElement("div",{className:"row mb-3"},r.createElement("div",{className:"col-3 font-label"},r.createElement(c.x,{namespace:Ln,phrase:m})),r.createElement("div",{className:"col-6"},f)),!!y&&e.libraryRequest.status!==E.l.AutoApproved&&r.createElement("div",{className:"row mb-3"},r.createElement("div",{className:"col-3"},r.createElement("label",null,r.createElement(c.x,{namespace:Ln,phrase:"requestedBy"}))),r.createElement("div",{className:"col-6"},r.createElement(r.Fragment,null,y,!!p&&r.createElement(r.Fragment,null," (",p,")")))),r.createElement("div",{className:"row mb-3"},r.createElement("div",{className:"col-3 font-label"},d&&r.createElement(c.x,{namespace:Ln,phrase:"videoSource"})),r.createElement("div",{className:"col-6"},!!e.libraryRequest.sourceLibrary&&r.createElement("span",{className:"badge p-1 me-1 text-white ".concat(jn.u.mapSourceToClass(e.libraryRequest.sourceLibrary.type))},jn.u.mapSourceToDisplayName(e.libraryRequest.sourceLibrary,In.g.hasLite)),!!e.libraryRequest.sourceCategory&&r.createElement("span",{className:"ms-1"},e.libraryRequest.sourceCategory.name))),(null===(u=e.folderPath)||void 0===u?void 0:u.length)&&r.createElement("div",{className:"row"},r.createElement("div",{className:"col-3 font-label"},r.createElement(c.x,{namespace:Ln,phrase:"libraryLocation"})),r.createElement("div",{className:"col-9"},r.createElement(l.Oo,{breadcrumbs:e.folderPath.map(function(e,t){return{name:e.name,appLink:{application:v.OV.LIBRARY_EDITOR,action:0===t?v.eX.LibraryEditor.LIBRARY:v.eX.LibraryEditor.FOLDER,args:[e.id]}}})}))))))}function Fn(){return r.createElement("div",{className:"bg-white rounded p-3 mb-3"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col-3"},r.createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"6rem"}})),r.createElement("div",{className:"col-6 mb-2"},r.createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"9rem"}})),r.createElement("div",{className:"col-3 d-flex justify-content-end"},r.createElement("div",{className:"partial-loading-background rounded",style:{height:"1.25rem",width:"6rem"}})),r.createElement("div",{className:"col-3"},r.createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"7rem"}})),r.createElement("div",{className:"col-6"},r.createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"15rem"}}))))}var Un=n(17950),Bn=n(32178),Dn=n(25796),qn=n(41026),Mn=n(59198),Vn=n(85739),Gn=n(30328),_n=n(64429),Qn=n(39123),Yn=n(56535),Jn=n(56154),Xn="libraryRequests.pastRequestsEmptyState",Hn=i.T.encloseNamespace(Xn);function $n(e){return r.createElement("div",{className:"bg-white rounded p-3 py-5"},r.createElement(Yn.u,null,r.createElement(Yn.u.Image,{src:Jn.W.EmptyStates.PAST_REQUESTS}),r.createElement(Yn.u.Info,{className:"mb-1"},r.createElement(c.x,{namespace:Xn,phrase:"info"})),e.hasLibraries&&r.createElement(Yn.u.Cta,{text:Hn("cta"),className:"btn btn-link text-info",appLink:{application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES}})))}function Zn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var zn="libraryRequests.pastRequests",Kn=i.T.encloseNamespace(zn),er=[E.l.Approved,E.l.Closed,E.l.Rejected,E.l.AutoApproved];function tr(e){var t,n,i,h,S,E=a.a.useGetFetch(),A=(0,d.Z)(),w=(0,Vn.p)(e.queryParams.sort||s.D.Newest,e.queryParams.status||er),C=a.a.useBasicFetch(e.id&&Dn.y.libraryRequest(e.id)),N=(0,Mn.s)(e.id),k=Zn(r.useState(null),2),T=k[0],j=k[1];(0,o.i)(b.T.getLibrariesFetchOptions(function(e){return j(e.toJSON())}),[]),(0,Qn.g)(j);var I=a.a.useBasicFetch(C.data&&(null===(t=C.data.destinationLibrary)||void 0===t?void 0:t.id)&&(null===(n=C.data.destinationCategory)||void 0===n?void 0:n.id)&&Dn.y.categoryPath(C.data.destinationLibrary.id,C.data.destinationCategory.id)),P=Zn(r.useState(null),2),L=P[0],R=P[1];(0,o.i)(p.p.getConfigFetchOptions(R),[]);var x=Zn(r.useState(null),2),F=x[0],U=x[1];(0,o.i)(g.K.getCurrentUserFetchOptions(U),[]);var B=a.a.useBasicFetch(u.N.currentUser());(0,f.v)(C),(0,Gn.A)({id:e.id,requests:w.items,appLink:{application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.PAST_REQUESTS,params:e.queryParams}}),(0,_n.m)(C.data,"past",e.queryParams),(0,qn.K)(C.data);var D=((null===(i=w.items)||void 0===i?void 0:i.length)||w.hasCompleted)&&L&&B.data,q=C.data&&N.hasCompleted,M=!e.queryParams.status&&C.hasCompleted&&!(null===(h=w.items)||void 0===h?void 0:h.length);return r.createElement("div",null,r.createElement("h1",{className:"h2"},r.createElement(c.x,{namespace:zn,phrase:"title"})),r.createElement("div",{className:"mb-3"},r.createElement(l.Oo,{breadcrumbs:[{name:Kn("libraryEditor"),appLink:{application:v.OV.LIBRARY_EDITOR,action:v.eX.LibraryEditor.HOME}},{name:Kn("title"),active:!0}]})),r.createElement(Bn.A,{active:"past"}),!M&&r.createElement("div",{className:"d-flex justify-content-between mb-3"},r.createElement(wn,{id:e.id,queryParams:e.queryParams}),r.createElement(Un.F,{appLink:{application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.PAST_REQUESTS,args:[e.id]},queryParams:e.queryParams})),!D||(null===(S=w.items)||void 0===S?void 0:S.length)?r.createElement("div",{className:"row"},r.createElement("div",{className:"col-4"},D?r.createElement(kn.q,{libraryRequests:w.items,selectedId:e.id,appLink:{application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.PAST_REQUESTS},queryParams:e.queryParams,fetchNext:w.fetchNext,isFetching:w.isFetching,nextCursor:w.nextCursor}):r.createElement(Tn.p,null)),r.createElement("div",{className:"col-8"},D&&q?r.createElement(r.Fragment,null,r.createElement(O,{libraryRequest:C.data}),r.createElement(xn,{libraryRequest:C.data,folderPath:I.data,user:F}),r.createElement(Cn.x,{libraryRequest:C.data,currentUser:B.data,comments:N.items,config:L,user:F,createViewKey:function(t,n){var r=Dn.y.createViewKey(e.id,function(e){return n(new y.y(e))},function(e){return A.error(m.M.libraryApiError(e))});E(r)}})):r.createElement(r.Fragment,null,r.createElement(Fn,null),r.createElement(Nn.j,null)))):r.createElement($n,{hasLibraries:!!T.length}))}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1524],{59054:function(e,t,n){"use strict";var r;n.d(t,{f:function(){return r}}),function(e){e.Share="share",e.MasterObject="masterobject"}(r||(r={}))},24259:function(e,t,n){"use strict";n.d(t,{_:function(){return k}});var r=n(31647),i=n(70065),o=n(45837),a=n(65816),l=n(61356),s=n(19226),c=n(93569),u=n(24959),p=n(25887),f=n(70042),d=n(17349),y=n.n(d),h={interactive:"N1mrU"};function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e){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 g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var k=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"==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,g()?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&&O(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.isClickViewContent=this.model&&!c.BK.canEditVideo(this.model)}},{key:"name",get:function(){return"VideoSidebarInfoComponent"}},{key:"lang",get:function(){return"libraryEditor.videoSidebarInfo"}},{key:"className",get:function(){return"py-3 h-100"}},{key:"template",get:function(){return y()}},{key:"regions",value:function(){return{preview:{el:".video-preview-region",replaceElement:!0},folders:{el:".folders-region",replaceElement:!0},tags:{el:".tags-region",replaceElement:!0}}}},{key:"requiredResources",get:function(){return{currentUser:s.K.currentUser}}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new l.c({model:this.model,webPlayerUrl:this.options.webPlayerUrl,channelName:this.options.channelName,analyticsOptions:{location:i.LZ.VideoDetails},currentUser:this.options.currentUser,createViewKey:this.options.createViewKey,playerApiUrl:this.options.playerApiUrl}))}},{key:"renderTags",value:function(){this.model.get("tags")&&this.model.get("tags").length&&this.showChildView("tags",new u.K({collection:this.model.get("tags"),orientation:p.zM.Flex,behavior:p.Dm.Link}))}},{key:"renderFolders",value:function(){this.model.get("categories")&&this.model.get("categories").length&&this.showChildView("folders",new a.V({model:this.model,libraries:this.options.libraries,showFolder:!0,hideLabel:!0}))}},{key:"viewOptions",value:function(){return{styles:h,interactive:f.u.isInteractive(this.model),duration:c.T.ToDisplayDuration(this.model.get("duration")),folders:this.model.categories&&this.model.categories.length,multipleFolders:this.model.categories.length>1,tags:this.model.get("tags")&&this.model.get("tags").length,isClickViewContent:this.isClickViewContent,hasCustomerTags:this.isClickViewContent&&c.BK.filterObjectsByOwnerType(this.model.tags,o.N.Customer,this.options.currentUser.get("customerId")).length}}},{key:"onRender",value:function(){this.renderVideoPreview(),this.renderTags(),this.renderFolders()}}])&&b(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},88435:function(e,t,n){"use strict";n.r(t),n.d(t,{ClipDetailsView:function(){return N}});var r=n(21161),i=n(99748),o=n(21679),a=n(31647),l=n(59054),s=n(50997),c=n(57085),u=n(7020),p=n(39809),f=n(82771),d=n(32546),y=n.n(d);function h(e){return h="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},h(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}function b(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}var O=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=g(t),function(e,t){if(t&&("object"==h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,m()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}(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&&w(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"ClipBasicInfoComponent"}},{key:"className",get:function(){return"py-3 pe-2"}},{key:"template",get:function(){return y()}},{key:"lang",get:function(){return"shared.clipBasicInfo"}},{key:"defaults",get:function(){return{truncateDescription:!0}}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},mediaTypeBadge:{el:".media-type-badge-region",replaceElement:!0},duration:{replaceElement:!0,el:".duration-region"}}}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new f.Z({model:this.model,linkify:!0,size:f.t.Large,truncate:this.options.truncateDescription,allowExpand:!0});this.showChildView("description",e)}}},{key:"renderMediaTypeBadge",value:function(){var e=new p.Z({model:this.model});this.showChildView("mediaTypeBadge",e)}},{key:"renderDuration",value:function(){var e=new u.s({model:this.model});this.showChildView("duration",e)}},{key:"onRender",value:function(){this.renderDescription(),this.renderMediaTypeBadge(),this.renderDuration()}}])&&v(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.Q.wA),k=n(45390),E=n(21251),T=n(33800),C=n(29457),D=n(48404),j=n(64649),P=n(19226),S=n(52834),_=n(24259),V=n(56906),I=n(95061),x=n(96491),B=n.n(x);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 L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M(r.key),r)}}function M(e){var t=function(e){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 U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(U=function(){return!!e})()}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(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=A(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,U()?Reflect.construct(t,n||[],A(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&&K(e,t)}(t,e),n=t,(u=[{key:"initialize",value:function(){this.bindListeners(),this.videoDataService=o.u.getInstance(T.O.Video,this),this.videoMixinService=o.u.getInstance(T.K.VideoMixin,this),this.localCacheDataService=o.u.getInstance(T.O.LocalCache,this),this.playerDataService=o.u.getInstance(T.O.Player,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"createViewKey",value:function(e,t){this.playerDataService.createViewKey(e,l.f.MasterObject,t)}},{key:"bindListeners",value:function(){this.listenTo(k.Vk.VIDEO,"".concat(E.M.CLIPS,":").concat(this.options.clipId,":sync"),this.render),this.listenTo(k.Vk.VIDEO,"".concat(E.M.CLIPS,":").concat(this.options.clipId,":error"),this.onError),this.listenTo(k.Vk.VIDEO,"".concat(E.M.RESTRICTED_OBJECTS,":").concat(this.options.clipId,":sync"),this.render),this.listenTo(k.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(k.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(k.Vk.RESTRICTED_VIDEO,"".concat(E.M.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestriction),this.listenTo(k.Vk.RESTRICTED_VIDEO,"".concat(E.M.RESTRICTED_OBJECTS,":").concat(this.options.clipId,":sync"),this.render),this.listenTo(k.Vk.LOCAL_CACHE,"".concat(E.M.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(k.Vk.LOCAL_CACHE,"".concat(E.M.LOCAL_CACHE_DEVICES,":error"),this.onError),this.listenTo(k.Vk.VIDEO,"".concat(E.M.DELETE_VIDEO,":sync"),this.destroy)}},{key:"onError",value:function(e){switch(e.type){case i.h.NotFound:a.Q.Ry.throw(new V.l1);break;case i.h.Forbidden:a.Q.Ry.throw(new V.aV)}}},{key:"updateRestriction",value:function(){this.videoMixinService.getAndMixinVideoRestriction(this.clip)}},{key:"name",get:function(){return"ClipDetailsView"}},{key:"title",get:function(){return this.clip&&this.clip.get("name")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return B()}},{key:"className",get:function(){return"container-fluid h-100 bg-white rounded"}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1,partialLoading:C.LP.Breadcrumbs},header:{replaceElement:!0,el:".clip-header-region",partialLoading:C.LP.VideoHeader},main:{replaceElement:!0,el:".main-clip-information-region",partialLoading:C.LP.VideoSidebarInfo},basic:{replaceElement:!1,el:".basic-clip-information-region",partialLoading:C.LP.ClipBasicInfo}}}},{key:"getCustomLibraryFolders",value:function(){var e;if(!(null===(e=this.clip)||void 0===e?void 0:e.categories)||!this.libraries)return[];var t=this.libraries.reduce(function(e,t){return e[t.id]=!0,e},{});return this.clip.categories.filter(function(e){var n=e.libraries.first().get("id");return t[n]})}},{key:"renderBreadcrumbs",value:function(){this.folder&&this.clip&&this.showChildView("breadcrumbs",new c.n({folder:this.folder,libraries:this.libraries,video:this.clip,enableLastItemAppLink:!1}))}},{key:"renderVideoHeader",value:function(){this.showChildView("header",new S.U({model:this.clip,customerHasLocalCache:s.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),collectionIdentifier:this.folder&&new s.F7(this.folder.id,s.x$.GetCurrentSortType()),config:this.config,products:this.products,libraries:this.libraries}))}},{key:"renderSidebarInfo",value:function(){this.showChildView("main",new _._({model:this.clip,webPlayerUrl:this.config.get("webPlayerUrl"),channelName:this.channelName,currentUser:this.currentUser,createViewKey:this.createViewKey,playerApiUrl:this.config.get("playerApiUrl"),libraries:this.libraries}))}},{key:"renderBasicInfo",value:function(){this.clip&&this.showChildView("basic",new O({model:this.clip}))}},{key:"requiredResources",get:function(){return{config:D.p.config,currentUser:P.K.currentUser,libraries:I.T.libraries,products:j.s.products}}},{key:"onBeforeRender",value:function(){return this.clip=this.videoDataService.getClip(this.options.clipId),this.clip&&(this.folder=r.default.first(this.getCustomLibraryFolders())),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),!!this.clip}},{key:"viewOptions",value:function(){if(this.clip)return{hasFolder:!!this.folder}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderVideoHeader(),this.renderSidebarInfo(),this.renderBasicInfo()}}])&&L(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(a.Q.G7)},7020:function(e,t,n){"use strict";n.d(t,{s:function(){return y}});var r=n(31647),i=n(27866),o=n(30225),a=n.n(o),l={durationBar:"zIvWt"};function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var y=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=f(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?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&&d(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"ClipDurationIndicatorComponent"}},{key:"template",get:function(){return a()}},{key:"getDuration",value:function(){return 1e3*(this.model.get("endTime")-this.model.get("startTime"))}},{key:"getDisplayDuration",value:function(){var e=i.T.ToDisplayDurationNewStyle(this.getDuration(),!0),t=i.T.ToDisplayDuration(1e3*this.model.get("startTime")),n=i.T.ToDisplayDuration(1e3*this.model.get("endTime"));return"".concat(e," (").concat(t," - ").concat(n,")")}},{key:"getClipPosition",value:function(){var e;return"left:"+this.model.get("startTime")/((null===(e=this.model._parentVideo)||void 0===e?void 0:e.get("duration"))/1e3)*100+"%"}},{key:"getClipDurationWidth",value:function(){return"width:"+Math.round(this.getDuration()/this.model._parentVideo.get("duration")*100)+"%"}},{key:"viewOptions",value:function(){return{styles:l,startDuration:i.T.ToDisplayDuration(0),parentDuration:i.T.ToDisplayDuration(this.model._parentVideo.get("duration")),clipDurationWidth:this.getClipDurationWidth(),clipPosition:this.getClipPosition(),duration:this.getDisplayDuration()}}}])&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},39809:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(57857),i=n(31647),o=n(83324),a=n(93569),l=n(7190),s=n(85348),c=n.n(s),u={mediaTypeBadge:"goWw9"};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}var m=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=v(t),function(e,t){if(t&&("object"==p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],v(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&&b(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"MediaTypeBadgeComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"shared.mediaTypeBadge"}},{key:"getMediaTypeOptions",value:function(e){var t=f(f({},o.D.Interactive,"interactiveLabel"),o.D.Clip,"clipLabel");return{bgClass:l.uB.mapMediaTypeToClass(e),label:r.T.getPhrase(this.lang,t[a.M2.getMediaType(e)]),svg:l.uB.mapMediaTypeToSvg(e)}}},{key:"viewOptions",value:function(){return{styles:u,mediaType:this.getMediaTypeOptions(this.model)}}}])&&d(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},17349:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.escapeExpression;return' <span class="badge p-1 '+a(e.lambda(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.interactive:o,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:i}))+"</span>\n"},3:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,' <div class="mt-3">\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"folders",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.folders:o},data:i}))+'</h5>\n <div class="folders-region"></div>\n </div>\n'},5:function(e,t,n,r,i){return e.propertyIsEnumerable,' <div class="mt-3">\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"tags",{name:"lang",hash:{},data:i}))+'</h5>\n <div class="tags-region"></div>\n </div>\n'},7:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.escapeExpression;return' <div class="mt-3">\n <h5>'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"curriculumLinks",{name:"lang",hash:{},data:i}))+"</h5>\n <p>"+a(e.lambda(null!=(o=null!=t?t.options:t)?o.links:o,t))+"</p>\n </div>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{};return'<div class="h-100 ps-2 pe-2">\n <div class="video-preview-region"></div>\n <div class="mt-3">\n'+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.interactive:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+" </div>\n\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.folders:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.tags:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.links:o,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?o:"")+"</div>"},useData:!0})},96491:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="row border-bottom">\n <div class="clip-header-region"></div>\n\n <div class="px-3 pb-3">\n <div class="breadcrumbs-region"></div>\n </div>\n</div>\n\n<div class="row">\n <div class="col-4">\n <div class="main-clip-information-region"></div>\n </div>\n <div class="col-8">\n <div class="basic-clip-information-region"></div>\n </div>\n</div>'},useData:!0})},32546:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return' <div class="col-3 fw-semibold">'+s((n.lang||t&&t.lang||l).call(a,"title",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:l)?o.call(a,{name:"name",hash:{},data:i}):o)+"</p>\n"},3:function(e,t,n,r,i){return e.propertyIsEnumerable,' <div class="col-3 fw-semibold">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"description",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9">\n <div class="description-region"></div>\n </div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="position-relative">\n <h5 class="d-inline-block">'+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:i}))+'</h5>\n</div>\n<div class="row mb-0">\n'+(null!=(o=n.if.call(a,null!=t?t.name:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=n.if.call(a,null!=t?t.description:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+'\n <div class="col-3 fw-semibold">'+s((n.lang||t&&t.lang||l).call(a,"type",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9 mb-3">\n <div class="media-type-badge-region"></div>\n </div>\n\n <p class="fw-semibold col-3">'+s((n.lang||t&&t.lang||l).call(a,"duration",{name:"lang",hash:{},data:i}))+'</p>\n \n <div class="col-9">\n <div class="duration-region"></div>\n </div>\n</div>'},useData:!0})},30225:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,l=e.escapeExpression;return"<p>"+l(a(null!=(o=null!=t?t.options:t)?o.duration:o,t))+"</p>\n\n<div class='overflow-hidden rounded-3 border border-secondary-subtle p-3'>\n <div class='position-relative z-1'>\n <div class='position-absolute w-100'>\n <div class='bg-light rounded-3 "+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.durationBar:o,t))+"'></div>\n </div>\n </div>\n <div class='position-relative z-1' style="+l(a(null!=(o=null!=t?t.options:t)?o.clipPosition:o,t))+">\n <div class='bg-blue rounded-3 px-1 "+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.durationBar:o,t))+"' style="+l(a(null!=(o=null!=t?t.options:t)?o.clipDurationWidth:o,t))+"></div>\n </div>\n <div class='d-flex justify-content-between text-body-secondary'>\n <span>"+l(a(null!=(o=null!=t?t.options:t)?o.startDuration:o,t))+"</span>\n <span>"+l(a(null!=(o=null!=t?t.options:t)?o.parentDuration:o,t))+"</span>\n </div>\n</div>"},useData:!0})},85348:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,l=e.escapeExpression;return'<div class="d-inline-block rounded-pill text-white ps-1 pe-2 '+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.mediaTypeBadge:o,t))+" "+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.mediaType:o)?o.bgClass:o,t))+'">\n <div class="svg-container sm">'+(null!=(o=a(null!=(o=null!=(o=null!=t?t.options:t)?o.mediaType:o)?o.svg:o,t))?o:"")+'</div>\n <span class="font-size-sm align-text-top">'+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.mediaType:o)?o.label:o,t))+"</span>\n</div>"},useData:!0})}}]);