@clickview/library-editor 1.43.1-rc.1 → 1.44.1-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{2482-library-editor-9683109615.chunk.css → 2482-library-editor-5078795cf9.chunk.css} +1 -1
  3. package/dist/css/{3087-library-editor-32398cd1ad.chunk.css → 3087-library-editor-48ea20c815.chunk.css} +1 -1
  4. package/dist/css/{343-library-editor-c4402b71ea.chunk.css → 343-library-editor-b5257118f9.chunk.css} +1 -1
  5. package/dist/css/{3551-library-editor-875234ea74.chunk.css → 3551-library-editor-d7b4563664.chunk.css} +2 -2
  6. package/dist/css/{9290-library-editor-8cd863992c.chunk.css → 3567-library-editor-e9cac790d6.chunk.css} +0 -1
  7. package/dist/css/4251-library-editor-5368f03ffe.chunk.css +16 -0
  8. package/dist/css/{6352-library-editor-a033138bd8.chunk.css → 6352-library-editor-644fb58ac8.chunk.css} +1 -1
  9. package/dist/css/{8572-library-editor-af134cb76e.chunk.css → 6582-library-editor-47a75275ca.chunk.css} +4 -4
  10. package/dist/css/{library-editor-app-0f996b4d1d.css → library-editor-app-94ad6d7654.css} +3 -3
  11. package/dist/languages/en.json +1 -1
  12. package/dist/scripts/101-59428084bf.chunk.js +1 -0
  13. package/dist/scripts/1010-d5c811879c.chunk.js +1 -0
  14. package/dist/scripts/1086-2682e6d3f7.chunk.js +1 -0
  15. package/dist/scripts/112-24c19e2cde.chunk.js +1 -0
  16. package/dist/scripts/1216-f3e3f911fa.chunk.js +1 -0
  17. package/dist/scripts/1269-a34a1de36d.chunk.js +1 -0
  18. package/dist/scripts/1409-e77c8982bb.chunk.js +1 -0
  19. package/dist/scripts/1479-9cdc81c093.chunk.js +1 -0
  20. package/dist/scripts/1601-807fe6b883.chunk.js +2 -0
  21. package/dist/scripts/1703-a4165b29f0.chunk.js +1 -0
  22. package/dist/scripts/1832-64d40684a4.chunk.js +1 -0
  23. package/dist/scripts/1876-a62d35b891.chunk.js +1 -0
  24. package/dist/scripts/2417-f6194f2c0e.chunk.js +1 -0
  25. package/dist/scripts/243-845572fbbb.chunk.js +1 -0
  26. package/dist/scripts/2482-1f565c0998.chunk.js +1 -0
  27. package/dist/scripts/259-b9143cebc3.chunk.js +1 -0
  28. package/dist/scripts/2601-3c14f9bb49.chunk.js +1 -0
  29. package/dist/scripts/2644-d371f7f2cf.chunk.js +1 -0
  30. package/dist/scripts/2692-438539ccbe.chunk.js +1 -0
  31. package/dist/scripts/{2802-600d2b3485.chunk.js → 2802-31b24a8131.chunk.js} +1 -1
  32. package/dist/scripts/2803-3cee0dd7a5.chunk.js +1 -0
  33. package/dist/scripts/2888-55edc16fd6.chunk.js +1 -0
  34. package/dist/scripts/299-902bf9f064.chunk.js +1 -0
  35. package/dist/scripts/2998-24191bc8ab.chunk.js +1 -0
  36. package/dist/scripts/3087-10641264a6.chunk.js +1 -0
  37. package/dist/scripts/3400-95d7a3a0d6.chunk.js +1 -0
  38. package/dist/scripts/343-f4fe764628.chunk.js +1 -0
  39. package/dist/scripts/35-059b230132.chunk.js +1 -0
  40. package/dist/scripts/3551-f653ca1b11.chunk.js +1 -0
  41. package/dist/scripts/3567-77588c7fee.chunk.js +1 -0
  42. package/dist/scripts/{3578-92cbcc9f66.chunk.js → 3578-c16c72054d.chunk.js} +2 -2
  43. package/dist/scripts/3639-02abbd0b71.chunk.js +1 -0
  44. package/dist/scripts/3746-65a75d633b.chunk.js +1 -0
  45. package/dist/scripts/376-f1479ce5b5.chunk.js +1 -0
  46. package/dist/scripts/3763-c5de5a36a1.chunk.js +1 -0
  47. package/dist/scripts/3778-c1359747ac.chunk.js +1 -0
  48. package/dist/scripts/3969-06f3eacbc6.chunk.js +1 -0
  49. package/dist/scripts/4064-0862db0614.chunk.js +1 -0
  50. package/dist/scripts/4201-6311ac5cac.chunk.js +1 -0
  51. package/dist/scripts/4245-05262bc3f2.chunk.js +1 -0
  52. package/dist/scripts/4251-0b0c374686.chunk.js +2 -0
  53. package/dist/scripts/4523-ca8248823d.chunk.js +1 -0
  54. package/dist/scripts/4591-9e342f97bc.chunk.js +1 -0
  55. package/dist/scripts/4860-955b4bf901.chunk.js +1 -0
  56. package/dist/scripts/5046-d96f9b8a40.chunk.js +1 -0
  57. package/dist/scripts/514-927a43219d.chunk.js +1 -0
  58. package/dist/scripts/{5173-1b1806ceaa.chunk.js → 5173-ae0218ce2b.chunk.js} +1 -1
  59. package/dist/scripts/5286-cd51d38877.chunk.js +1 -0
  60. package/dist/scripts/5412-95152820bb.chunk.js +1 -0
  61. package/dist/scripts/5418-f31f79952c.chunk.js +1 -0
  62. package/dist/scripts/5424-f53a7d8068.chunk.js +1 -0
  63. package/dist/scripts/546-dbcd00e8a9.chunk.js +1 -0
  64. package/dist/scripts/5524-3ecfd1675f.chunk.js +1 -0
  65. package/dist/scripts/5707-7a54774b60.chunk.js +1 -0
  66. package/dist/scripts/5747-459f8afa94.chunk.js +1 -0
  67. package/dist/scripts/5891-1f84bfeb5a.chunk.js +1 -0
  68. package/dist/scripts/6093-7e5c1af050.chunk.js +1 -0
  69. package/dist/scripts/61-afc963ebe2.chunk.js +2 -0
  70. package/dist/scripts/6352-f59224dcd2.chunk.js +1 -0
  71. package/dist/scripts/{6427-5d16b4c64a.chunk.js → 6427-373276a90b.chunk.js} +1 -1
  72. package/dist/scripts/6582-3d53d7e4cd.chunk.js +2 -0
  73. package/dist/scripts/6721-b31c7b97e8.chunk.js +1 -0
  74. package/dist/scripts/6732-5bf9ec4e56.chunk.js +1 -0
  75. package/dist/scripts/6774-3cad51b5b7.chunk.js +1 -0
  76. package/dist/scripts/6788-6e4efcfd00.chunk.js +1 -0
  77. package/dist/scripts/{6963-8de06d6ea2.chunk.js → 6963-9742b1ac30.chunk.js} +1 -1
  78. package/dist/scripts/7002-580c3dac24.chunk.js +1 -0
  79. package/dist/scripts/7053-62aabdd574.chunk.js +1 -0
  80. package/dist/scripts/7071-5ff3233cde.chunk.js +1 -0
  81. package/dist/scripts/708-5773723b46.chunk.js +1 -0
  82. package/dist/scripts/{7190-62556429f8.chunk.js → 7190-bb5d61afc5.chunk.js} +1 -1
  83. package/dist/scripts/7295-0ee9d9bd85.chunk.js +1 -0
  84. package/dist/scripts/7376-baac126511.chunk.js +1 -0
  85. package/dist/scripts/7408-40f786ee81.chunk.js +1 -0
  86. package/dist/scripts/8113-b8b033a0fb.chunk.js +1 -0
  87. package/dist/scripts/8213-ef3077d565.chunk.js +1 -0
  88. package/dist/scripts/8362-e82bef3e07.chunk.js +1 -0
  89. package/dist/scripts/8542-727d658bd8.chunk.js +1 -0
  90. package/dist/scripts/8726-edded1064e.chunk.js +1 -0
  91. package/dist/scripts/8727-273095d854.chunk.js +1 -0
  92. package/dist/scripts/8762-4ee15995c8.chunk.js +1 -0
  93. package/dist/scripts/8906-3bde92a78d.chunk.js +1 -0
  94. package/dist/scripts/9024-06b27d2b22.chunk.js +1 -0
  95. package/dist/scripts/9357-c5c5984ec8.chunk.js +1 -0
  96. package/dist/scripts/9383-66ee024166.chunk.js +1 -0
  97. package/dist/scripts/9695-a04e508364.chunk.js +1 -0
  98. package/dist/scripts/9927-a667775ac4.chunk.js +1 -0
  99. package/dist/scripts/bundle-3d909cf0e8.min.js +2 -0
  100. package/dist/scripts/bundle-3d909cf0e8.min.js.LICENSE.txt +1 -0
  101. package/package.json +1 -1
  102. package/dist/scripts/101-b1dbc86a90.chunk.js +0 -1
  103. package/dist/scripts/1010-b04f5455e5.chunk.js +0 -1
  104. package/dist/scripts/1086-18354eee73.chunk.js +0 -1
  105. package/dist/scripts/112-6a9fb5a3b4.chunk.js +0 -1
  106. package/dist/scripts/1216-3a338cf937.chunk.js +0 -1
  107. package/dist/scripts/1269-ebb70ecc87.chunk.js +0 -1
  108. package/dist/scripts/1409-7e3844a2c1.chunk.js +0 -1
  109. package/dist/scripts/1601-5e4723da8a.chunk.js +0 -2
  110. package/dist/scripts/1703-a0ce73193e.chunk.js +0 -1
  111. package/dist/scripts/1832-6237ec0650.chunk.js +0 -1
  112. package/dist/scripts/1876-bd3b0a577a.chunk.js +0 -1
  113. package/dist/scripts/2417-facbb43a54.chunk.js +0 -1
  114. package/dist/scripts/243-065eeeb636.chunk.js +0 -1
  115. package/dist/scripts/2482-2e771aa32e.chunk.js +0 -1
  116. package/dist/scripts/259-3fa2437542.chunk.js +0 -1
  117. package/dist/scripts/2601-bce7a0176e.chunk.js +0 -1
  118. package/dist/scripts/2644-c4c2859dbf.chunk.js +0 -1
  119. package/dist/scripts/2692-72f0ddadb4.chunk.js +0 -1
  120. package/dist/scripts/2803-d7f348b7f5.chunk.js +0 -1
  121. package/dist/scripts/2888-808acc2fef.chunk.js +0 -1
  122. package/dist/scripts/299-eaa1354f0c.chunk.js +0 -1
  123. package/dist/scripts/2998-a78cff549d.chunk.js +0 -1
  124. package/dist/scripts/3087-acee4b4e17.chunk.js +0 -1
  125. package/dist/scripts/3400-2e845c4564.chunk.js +0 -1
  126. package/dist/scripts/343-7a796e6a56.chunk.js +0 -1
  127. package/dist/scripts/35-d9c25d5624.chunk.js +0 -1
  128. package/dist/scripts/3551-ad54980e13.chunk.js +0 -1
  129. package/dist/scripts/3639-bf6b264ec9.chunk.js +0 -1
  130. package/dist/scripts/3746-a3ca46cf28.chunk.js +0 -1
  131. package/dist/scripts/376-15ce0b43dd.chunk.js +0 -1
  132. package/dist/scripts/3763-408ce1508a.chunk.js +0 -1
  133. package/dist/scripts/3778-f55494fe5a.chunk.js +0 -1
  134. package/dist/scripts/3969-92dd3b164a.chunk.js +0 -1
  135. package/dist/scripts/4201-30387c4a99.chunk.js +0 -1
  136. package/dist/scripts/4245-d1ded0584f.chunk.js +0 -1
  137. package/dist/scripts/4523-1ccb20cd86.chunk.js +0 -1
  138. package/dist/scripts/4591-e149bc74c4.chunk.js +0 -1
  139. package/dist/scripts/4860-0d9f4a4d0b.chunk.js +0 -1
  140. package/dist/scripts/5046-7a4e1b7df0.chunk.js +0 -1
  141. package/dist/scripts/514-c6a928c7c4.chunk.js +0 -1
  142. package/dist/scripts/5286-472885bf9c.chunk.js +0 -1
  143. package/dist/scripts/5412-c8877fa040.chunk.js +0 -1
  144. package/dist/scripts/5418-c3e6433e3e.chunk.js +0 -1
  145. package/dist/scripts/5424-66a285070b.chunk.js +0 -1
  146. package/dist/scripts/546-dd9117fa94.chunk.js +0 -1
  147. package/dist/scripts/5524-e3ae3829ab.chunk.js +0 -1
  148. package/dist/scripts/5707-aa2a8aed09.chunk.js +0 -1
  149. package/dist/scripts/5747-3c7f3e0bb1.chunk.js +0 -1
  150. package/dist/scripts/5891-e5d8930469.chunk.js +0 -1
  151. package/dist/scripts/6093-defd3e7edf.chunk.js +0 -1
  152. package/dist/scripts/61-e24004149c.chunk.js +0 -2
  153. package/dist/scripts/6352-ed9a44d7bf.chunk.js +0 -1
  154. package/dist/scripts/6721-e479e42307.chunk.js +0 -1
  155. package/dist/scripts/6732-33c1578a4a.chunk.js +0 -1
  156. package/dist/scripts/6774-5ec2037d61.chunk.js +0 -1
  157. package/dist/scripts/6788-fabfcf71cf.chunk.js +0 -1
  158. package/dist/scripts/7002-df13e9f6c5.chunk.js +0 -1
  159. package/dist/scripts/7053-8aa0d915f9.chunk.js +0 -1
  160. package/dist/scripts/7071-a6d0bdadd1.chunk.js +0 -1
  161. package/dist/scripts/708-80efe251de.chunk.js +0 -1
  162. package/dist/scripts/7295-8a525c7426.chunk.js +0 -1
  163. package/dist/scripts/7376-2a91178587.chunk.js +0 -1
  164. package/dist/scripts/7408-50b66e1a5a.chunk.js +0 -1
  165. package/dist/scripts/8113-133ecdfe0c.chunk.js +0 -1
  166. package/dist/scripts/8213-400f1712b3.chunk.js +0 -1
  167. package/dist/scripts/8362-b11e7dbcbd.chunk.js +0 -1
  168. package/dist/scripts/8542-48fd3a46e3.chunk.js +0 -1
  169. package/dist/scripts/8572-df35f37677.chunk.js +0 -2
  170. package/dist/scripts/8726-8f24d59af7.chunk.js +0 -1
  171. package/dist/scripts/8727-16694cfdf0.chunk.js +0 -1
  172. package/dist/scripts/8762-ded7396830.chunk.js +0 -1
  173. package/dist/scripts/8906-327640bf39.chunk.js +0 -1
  174. package/dist/scripts/9290-9ccb931dbe.chunk.js +0 -1
  175. package/dist/scripts/9357-35c3761c84.chunk.js +0 -1
  176. package/dist/scripts/9383-941f88b031.chunk.js +0 -1
  177. package/dist/scripts/9695-0cf4f10b51.chunk.js +0 -1
  178. package/dist/scripts/9770-f9c6709b6e.chunk.js +0 -1
  179. package/dist/scripts/9927-8e56991c93.chunk.js +0 -1
  180. package/dist/scripts/bundle-03f36c0a76.min.js +0 -2
  181. /package/dist/scripts/{1601-5e4723da8a.chunk.js.LICENSE.txt → 1601-807fe6b883.chunk.js.LICENSE.txt} +0 -0
  182. /package/dist/scripts/{2802-600d2b3485.chunk.js.LICENSE.txt → 2802-31b24a8131.chunk.js.LICENSE.txt} +0 -0
  183. /package/dist/scripts/{3578-92cbcc9f66.chunk.js.LICENSE.txt → 3578-c16c72054d.chunk.js.LICENSE.txt} +0 -0
  184. /package/dist/scripts/{61-e24004149c.chunk.js.LICENSE.txt → 4251-0b0c374686.chunk.js.LICENSE.txt} +0 -0
  185. /package/dist/scripts/{8572-df35f37677.chunk.js.LICENSE.txt → 61-afc963ebe2.chunk.js.LICENSE.txt} +0 -0
  186. /package/dist/scripts/{bundle-03f36c0a76.min.js.LICENSE.txt → 6582-3d53d7e4cd.chunk.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[343],{59054:function(e,t,n){"use strict";var i;n.d(t,{f:function(){return i}}),function(e){e.Share="share",e.MasterObject="masterobject"}(i||(i={}))},27719:function(e,t,n){"use strict";n.r(t),n.d(t,{FolderView:function(){return kt},SeriesView:function(){return Ot}});var i=n(99748),o=n(21679),r=n(57857),l=n(99249),a=n(31647),c=n(30644),s=n(59054),u=n(25692),f=n(47022),p=n(77502),d=n(98985),h=n(70763),y=n(58688),b=n(80867),m=n(57098),v=n(29457),g=n(83324),w=n(3059),k=n(60602),O=n(51174),S=n(48404),E=n(64649),C=n(19226),I=n(93569),j=n(70065),P=n(24828),T=n(22231),V=n(51785),_=n(85552),L=n.n(_),x=n(21625);function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function D(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,A(i.key),i)}}function A(e){var t=function(e,t){if("object"!=R(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=R(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==R(t)?t:t+""}function B(e,t,n){return t=M(t),function(e,t){if(t&&("object"==R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,F()?Reflect.construct(t,n||[],M(e).constructor):t.apply(e,n))}function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(F=function(){return!!e})()}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},N(e,t)}var Q=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),B(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"BannerComponent"}},{key:"className",get:function(){var e=(0,T.x)(this.model.get("name"),P.o);return"px-3 position-relative rounded-top ".concat(x.Z.banner," ").concat(e)}},{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"attributes",get:function(){var e=I.jw.createBannerUrl(this.model.banner);return e?{style:"background-image: url('".concat(e,"')")}:null}},{key:"template",get:function(){return L()}},{key:"renderActions",value:function(){this.showChildView("options",new V.c({model:this.model,extraClasses:"".concat(x.Z.actions," rounded-circle me-2 mt-2"),buttonClass:"text-light",analyticsOptions:{location:j.LZ.Banner}}))}},{key:"onRender",value:function(){this.renderActions()}}])&&D(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),H=n(4705),U=n(63791),Y=n(87002),z=n(73368),W=n.n(z),K={svgContainer:"mMWNm",caretClosed:"Fe74o"};function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,q(i.key),i)}}function G(e,t,n){return t&&$(e.prototype,t),n&&$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function q(e){var t=function(e,t){if("object"!=X(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=X(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==X(t)?t:t+""}function J(e,t,n){return t=te(t),function(e,t){if(t&&("object"==X(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ee()?Reflect.construct(t,n||[],te(e).constructor):t.apply(e,n))}function ee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ee=function(){return!!e})()}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}function ne(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ie(e,t)}function ie(e,t){return ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ie(e,t)}var oe="has:expanded:library:folders",re=function(e){function t(){return Z(this,t),J(this,t,arguments)}return ne(t,e),G(t,[{key:"name",get:function(){return"SubFoldersCollectionView"}},{key:"className",get:function(){return"row px-2"}},{key:"childView",get:function(){return Y.Y}},{key:"childViewOptions",get:function(){return{location:"subfolder"}}}])}(a.Q.$W),le=function(e){function t(e){return Z(this,t),J(this,t,[e])}return ne(t,e),G(t,[{key:"initialize",value:function(){this.forceExpanded=this.options.forceExpanded||this.collection.length<=6,this.forceExpanded?this.isExpanded=!0:this.isExpanded=H.SG.get(oe)||!1}},{key:"name",get:function(){return"SubFoldersView"}},{key:"className",get:function(){return"container-fluid pb-3"}},{key:"lang",get:function(){return"libraryEditor.subfolders"}},{key:"template",get:function(){return W()}},{key:"events",value:function(){return{"click .expand-toggle":"onClickExpandToggle"}}},{key:"regions",value:function(){return{subFolders:{replaceElement:!0,el:".subfolders-region"}}}},{key:"onClickExpandToggle",value:function(){this.options.forceExpanded||(this.isExpanded=!this.isExpanded,H.SG.set(oe,this.isExpanded),this.render())}},{key:"viewOptions",value:function(){return{styles:K,caretSvg:U.Nj.getSvg(U.vn.Caret),isExpanded:this.isExpanded,forceExpanded:this.forceExpanded,caretClass:this.isExpanded?"":K.caretClosed,count:this.collection.length}}},{key:"onRender",value:function(){this.showChildView("subFolders",new re({collection:this.isExpanded?this.collection:new a.Q.FE(this.collection.first(6))}))}}])}(a.Q.wA),ae=n(57085),ce=n(8420),se=n.n(ce);function ue(e){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ue(e)}function fe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,pe(i.key),i)}}function pe(e){var t=function(e,t){if("object"!=ue(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=ue(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ue(t)?t:t+""}function de(e,t,n){return t=ye(t),function(e,t){if(t&&("object"==ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,he()?Reflect.construct(t,n||[],ye(e).constructor):t.apply(e,n))}function he(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(he=function(){return!!e})()}function ye(e){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ye(e)}function be(e,t){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},be(e,t)}var me=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),de(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&be(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"VideoListHeaderComponent"}},{key:"template",get:function(){return se()}},{key:"className",get:function(){return this.options.folder?"px-3 mb-3":"mb-3"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1}}}},{key:"renderBreadcrumbs",value:function(){this.options.folder&&this.options.libraries&&this.showChildView("breadcrumbs",new ae.n({folder:this.options.folder,libraries:this.options.libraries}))}},{key:"onBeforeRender",value:function(){return!!this.options.folder}},{key:"onRender",value:function(){this.renderBreadcrumbs()}}])&&fe(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),ve=n(52076),ge=n(50028),we=n(71641),ke=n(40622),Oe=n(34670),Se=n.n(Oe);function Ee(e){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ee(e)}function Ce(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ie(i.key),i)}}function Ie(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Ee(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ee(t)?t:t+""}function je(e,t,n){return t=Te(t),function(e,t){if(t&&("object"==Ee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Pe()?Reflect.construct(t,n||[],Te(e).constructor):t.apply(e,n))}function Pe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Pe=function(){return!!e})()}function Te(e){return Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Te(e)}function Ve(e,t){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ve(e,t)}var _e=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),je(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ve(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"getViewModel",value:function(){var e=this.options.collectionIdentifier.toString();this.model=I.S0.GetViewModel(e,ke.De.VIDEO_LIST)}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.collection,"remove",this.render)}},{key:"name",get:function(){return"BulkVideoActionsComponent"}},{key:"template",get:function(){return Se()}},{key:"lang",get:function(){return"shared.bulkVideoActions"}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".dropdown-menu-region"}}}},{key:"getSelectedIds",value:function(){return I.S0.GetSelectedIds({key:this.options.collectionIdentifier.toString(),type:ke.De.VIDEO_LIST,collection:this.collection,excludePredicate:function(e){return e.get("status")===ge.X.Processing}})}},{key:"getActions",value:function(){if(this.options.collectionIdentifier){var e=this.getSelectedIds();return new a.Q.FE([{title:r.T.getPhrase(this.lang,"move",{smartCount:e.length}),appLink:{application:this.options.application,action:m.eX.Shared.MOVE_VIDEOS,args:[e.join(","),this.options.collectionIdentifier.id]},analyticsOptions:ve.k.mergeOptions(this.options.analyticsOptions,{actionType:j.Vw.Move,workflowPhase:j.eu.Start})},{title:r.T.getPhrase(this.lang,"remove",{smartCount:e.length}),appLink:{application:m.OV.LIBRARY_EDITOR,action:m.eX.Shared.DELETE_VIDEOS,args:[this.options.collectionIdentifier.id,e.join(",")]},analyticsOptions:ve.k.mergeOptions(this.options.analyticsOptions,{actionType:j.Vw.Delete,workflowPhase:j.eu.Start}),classes:"text-danger"}])}}},{key:"viewOptions",value:function(){return{enabled:this.getSelectedIds().length}}},{key:"onRender",value:function(){this.showChildView("dropdownItems",new we.w({displayOptions:{alignment:"end"},channelName:"".concat(this.name).concat(this.cid),collection:this.getActions(),analyticsHelper:ve.k}))}}])&&Ce(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),Le=n(12542),xe=n(8614),Re=n(5344),De=n(39479),Ae=n(53370),Be=n.n(Ae);function Fe(e){return Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fe(e)}function Me(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ne(i.key),i)}}function Ne(e){var t=function(e,t){if("object"!=Fe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Fe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fe(t)?t:t+""}function Qe(e,t,n){return t=Ue(t),function(e,t){if(t&&("object"==Fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,He()?Reflect.construct(t,n||[],Ue(e).constructor):t.apply(e,n))}function He(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(He=function(){return!!e})()}function Ue(e){return Ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ue(e)}function Ye(e,t){return Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ye(e,t)}var ze=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Qe(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ye(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.getViewModel(),this.setSort(),this.bindListeners(),this.initializeCollection()}},{key:"getViewModel",value:function(){this.model=I.x$.GetSortViewModel()}},{key:"setSort",value:function(){var e=this.options.collectionIdentifier.sort;if(e!==this.model.get("sortType")){var t=I.x$.CreateSortObject(e);this.model.set(t)}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"sort:selected",this.onSortSelected)}},{key:"initializeCollection",value:function(){this.collection||(this.collection=I.x$.CreateSortCollection())}},{key:"name",get:function(){return"SortSelectComponent"}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"template",get:function(){return Be()}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){this.logAction(j.eu.Start)}},{key:"onSortSelected",value:function(e){this.model.set(e.toJSON()),this.render(),this.logAction(j.eu.Complete)}},{key:"logAction",value:function(e){var t=ve.k.mergeOptions(this.options.analyticsOptions,{actionType:j.Vw.Sort,workflowPhase:e}),n={id:this.options.collectionIdentifier.id,sort:this.model.get("name")};ve.k.logUserAction(n,t)}},{key:"onRender",value:function(){var e=this,t=this.collection.filter((function(t){return t.get("name")!==e.model.get("name")})),n=a.Q.C$.getCurrentAppLink().params,i=new a.Q.FE(De.map(t,(function(t){var i=t.toJSON();return i.appLink={application:e.options.appLink.application,action:e.options.appLink.action,args:[e.options.collectionIdentifier.id],params:Object.assign(Object.assign({},n),{sort:t.get("sortName")})},i})));this.showChildView("dropdown",new we.w({collection:i,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"sort:selected"},displayOptions:{alignment:"end"},analyticsHelper:ve.k}))}}])&&Me(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),We=n(56846),Ke=n.n(We);function Xe(e){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xe(e)}function Ze(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,$e(i.key),i)}}function $e(e){var t=function(e,t){if("object"!=Xe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Xe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xe(t)?t:t+""}function Ge(e,t,n){return t=Je(t),function(e,t){if(t&&("object"==Xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qe()?Reflect.construct(t,n||[],Je(e).constructor):t.apply(e,n))}function qe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qe=function(){return!!e})()}function Je(e){return Je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Je(e)}function et(e,t){return et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},et(e,t)}var tt=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ge(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&et(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.analyticsOptions=ve.k.mergeOptions(this.options.analyticsOptions,{location:j.LZ.VideoListHeader})}},{key:"name",get:function(){return"VideoListSubheadingComponent"}},{key:"template",get:function(){return Ke()}},{key:"className",get:function(){return"px-3"}},{key:"lang",get:function(){return"libraryEditor.videoListSubheading"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{checkAll:{el:".check-all-region",replaceElement:!1},bulkActions:{el:".bulk-actions-region",replaceElement:!0},sorting:{el:".sorting-region",replaceElement:!0},typeFilter:{el:".type-filter-region",replaceElement:!0}}}},{key:"renderCheckAll",value:function(){this.options.allowBulk&&this.showChildView("checkAll",new Le.Y({className:"float-start",key:this.collectionIdentifier.toString(),type:ke.De.VIDEO_LIST,numberOfItems:this.collection.length}))}},{key:"renderBulkActions",value:function(){this.options.allowBulk&&this.showChildView("bulkActions",new _e({collection:this.collection,collectionIdentifier:this.collectionIdentifier,application:this.options.application,analyticsOptions:ve.k.mergeOptions(this.options.analyticsOptions,{descriptor:j.yh.Bulk,location:j.LZ.VideoListHeader,entity:j.py.Video,workflowPhase:j.eu.Start})}))}},{key:"renderSorting",value:function(){this.showChildView("sorting",new ze({collectionIdentifier:this.collectionIdentifier,analyticsOptions:this.analyticsOptions,appLink:{application:this.options.application,action:this.options.action}}))}},{key:"renderTypeFilter",value:function(){this.options.showTypeFilter&&this.showChildView("typeFilter",new xe.fH({model:this.options.filterCollection.first(),analyticsOptions:this.analyticsOptions,channelName:this.options.collectionViewChannel}))}},{key:"viewOptions",value:function(){return{showBulkActions:this.options.allowBulk&&this.collection.length>0,showHeading:this.options.showHeading}}},{key:"onBeforeRender",value:function(){return!(!Re.qr.hasOptionSelected(this.options.filterCollection.first())&&!this.collection.length)}},{key:"onRender",value:function(){this.renderCheckAll(),this.renderTypeFilter(),this.renderBulkActions(),this.renderSorting()}}])&&Ze(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),nt=n(26457),it=n(56906),ot=n(95061),rt=n(7170),lt=n(44937),at=n(93089),ct=n.n(at);function st(e){return st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},st(e)}function ut(){return ut="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=mt(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ut.apply(null,arguments)}function ft(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 i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ht(i.key),i)}}function dt(e,t,n){return t&&pt(e.prototype,t),n&&pt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ht(e){var t=function(e,t){if("object"!=st(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=st(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==st(t)?t:t+""}function yt(e,t,n){return t=mt(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,bt()?Reflect.construct(t,n||[],mt(e).constructor):t.apply(e,n))}function bt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bt=function(){return!!e})()}function mt(e){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mt(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&&gt(e,t)}function gt(e,t){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gt(e,t)}var wt=function(e){function t(e){return ft(this,t),yt(this,t,[e])}return vt(t,e),dt(t,[{key:"initialize",value:function(){this.initializeQuery(),this.bindListeners(),this.getSortType(),this.getMediaType(),this.videoDataService=o.u.getInstance(m.Or.Video,this),this.libraryDataService=o.u.getInstance(m.Or.Library,this),this.pendingItemsService=o.u.getInstance(m.K9.PendingItems,this),this.localCacheDataService=o.u.getInstance(m.Or.LocalCache,this),this.playerDataService=o.u.getInstance(m.Or.Player,this),this.videoMixinService=o.u.getInstance(m.K9.VideoMixin,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"template",get:function(){return ct()}},{key:"className",get:function(){return"bg-white rounded"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{banner:{el:".banner-region",replaceElement:!0,partialLoading:v.LP.Banner},header:{el:".header-region",replaceElement:!0,partialLoading:v.LP.VideoListHeader},videoList:{el:".video-list-region",replaceElement:!0,partialLoading:v.LP.VideoListWithBulkActions},childFolders:{el:".child-folders-region",replaceElement:!1,partialLoading:v.LP.SubFolder},pagination:{el:".pagination-region",replaceElement:!0},subheading:{el:".subheading-region",replaceElement:!0,partialLoading:v.LP.VideoListSubheading}}}},{key:"bindListeners",value:function(){var e=this.options.collectionIdentifier.toString();this.listenTo(m.Vk.VIDEO,"".concat(e,":sync"),this.render),this.listenTo(m.Vk.VIDEO,"".concat(m.M_.DELETE_VIDEO,":sync"),this.fetchData),this.listenTo(m.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(m.Vk.RESTRICTED_VIDEO,"".concat(m.M_.RESTRICTED_OBJECTS,":").concat(e,":invalidate"),this.updateRestrictedVideos),this.listenTo(this.channelName,"cancel:pending:item",this.cancelPendingItem),this.listenTo(this.channelName,"retry:pending:item",this.retryPendingItem),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(this.channelName,m.Vy.Filters.FILTER_CHANGED,this.filterChanged),this.listenTo(m.Vk.LOCAL_CACHE,"".concat(m.M_.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(m.Vk.LOCAL_CACHE,"".concat(m.M_.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"getSortType",value:function(){this.sortType||(this.sortType=this.options.collectionIdentifier.sort)}},{key:"getMediaType",value:function(){this.mediaType||(this.mediaType=this.options.collectionIdentifier.mediaType)}},{key:"updateRestrictedVideos",value:function(){var e=this;this.videoMixinService.getAndMixinVideoCollectionRestrictions(this.videoCollection,this.collectionIdentifier,(function(){return e.render()}))}},{key:"cancelPendingItem",value:function(e){this.pendingItemsService.clearPendingItem(e)}},{key:"retryPendingItem",value:function(e){this.pendingItemsService.retryPendingItem(e)}},{key:"createViewKey",value:function(e,t){this.playerDataService.createViewKey(e,s.f.MasterObject,t)}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&(this.videosWithMetadata=new h.t(this.videoCollection.map((function(e){return(0,O.Z)({id:e.get("id"),typeId:e.get("typeId")})}))))}},{key:"renderBanner",value:function(){var e=new Q({model:this.model,channelName:this.channelName,imageCdnUrl:this.config.get("imageCdnUrl")});this.showChildView("banner",e)}},{key:"renderChildFolders",value:function(){var e;if(null===(e=this.folders)||void 0===e?void 0:e.length){var t=new le({collection:this.folders,forceExpanded:0===this.videoCollection.length});this.showChildView("childFolders",t)}}},{key:"renderHeader",value:function(){this.showChildView("header",new me({collection:this.videoCollection,libraries:this.libraryCollection,folder:this.model instanceof k.g&&this.model}))}},{key:"renderSubheading",value:function(){var e;this.showChildView("subheading",new tt({collection:this.videoCollection,application:m.OV.LIBRARY_EDITOR,action:this.appLinkAction(),allowBulk:this.allowBulk(),showTypeFilter:this.showTypeFilter(),filterCollection:this.filterCollection,collectionIdentifier:this.collectionIdentifier,collectionViewChannel:this.channelName,analyticsOptions:this.options.analyticsOptions,showHeading:!!(null===(e=this.folders)||void 0===e?void 0:e.length)}))}},{key:"renderVideoList",value:function(){var e,t=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),n=new b.Y({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:m.OV.LIBRARY_EDITOR,allowBulk:this.allowBulk(),collectionIdentifier:this.collectionIdentifier,config:this.config,pendingItems:this.pendingItemsService.getPendingItems(),videoItemComponentType:this.componentType,emptyStateType:this.emptyStateType(),emptyStateOptions:this.emptyStateOptions(),supportSiteUrl:this.config.get("supportSiteUrl"),collectionViewChannel:this.channelName,customerHasLocalCache:I.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),customerHasExchange:this.exchanges.any(),analyticsOptions:this.options.analyticsOptions,sourceMetadataOptions:{showFolder:this.showFolderSource(),libraries:this.libraryCollection},videoCollectionSource:this.getVideoCollectionSource(),currentUser:this.currentUser,playerApiUrl:this.config.get("playerApiUrl"),createViewKey:this.createViewKey,hasCursors:!!t,showEmptyState:!(null===(e=this.folders)||void 0===e?void 0:e.length)||!this.videoCollection.length,libraries:this.libraryCollection,products:this.products});this.showChildView("videoList",n)}},{key:"renderPagination",value:function(){var e=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),t=new f.Q({cursors:e,collectionId:this.options.collectionIdentifier.id,appLink:{application:m.OV.LIBRARY_EDITOR,action:this.appLinkAction(),args:[this.collectionIdentifier.id],params:Object.assign(Object.assign({},this.collectionIdentifier.toParams()),{previous:this.options.previous,cursor:this.options.cursor})},analyticsOptions:this.options.analyticsOptions});this.showChildView("pagination",t)}},{key:"fetchData",value:function(){this.fetchModel(),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),this.fetchVideoCollection()}},{key:"fetchVideoWithMetadata",value:function(e,t){var n=this;this.videoDataService.getUnionVideo(e,t,(function(t){var i=n.videosWithMetadata.get(e);i&&(i.set(t.toJSON()),i.set({dataFetched:!0}))}))}},{key:"initializeQuery",value:function(){this.queryModel=this.getSearchModel()}},{key:"initializeFilterCollection",value:function(){var e,t,n;this.filterCollection=new rt.y([{title:"Types",type:c.K.MediaType,behavior:Re.xF.Inclusive,isDynamic:!1,showInMoreFilters:!1,selectAllWhenNoneSelected:!1,minNumOptions:0,prefixWhenActive:!1,options:[{id:g.D.Clip,name:r.T.getPhrase(this.lang,"clips"),value:g.D.Clip,active:null===(e=this.mediaType)||void 0===e?void 0:e.includes(g.D.Clip)},{id:g.D.Video,name:r.T.getPhrase(this.lang,"videos"),value:g.D.Video,active:null===(t=this.mediaType)||void 0===t?void 0:t.includes(g.D.Video)},{id:g.D.Interactive,name:r.T.getPhrase(this.lang,"interactives"),value:g.D.Interactive,active:null===(n=this.mediaType)||void 0===n?void 0:n.includes(g.D.Interactive)}]}]),this.setQueryParams()}},{key:"getSearchModel",value:function(){return l.r.get("search",{ctor:lt.AE})}},{key:"setQueryParams",value:function(){Re.yf.setQueryParams(Object.assign({},this.collectionIdentifier.toParams()),this.queryModel,this.filterCollection)}},{key:"filterChanged",value:function(){var e=a.Q.C$.getCurrentAppLink().params,t=Re.yf.getRouteQueryParams(this.queryModel,this.filterCollection,null);a.Q.C$.trigger({application:m.OV.LIBRARY_EDITOR,action:m.eX.LibraryEditor.FOLDER,args:[this.collectionIdentifier.id],params:Object.assign(Object.assign({},e),{mediaType:t.mediaType})})}},{key:"requiredResources",get:function(){return{config:S.p.config,currentUser:C.K.currentUser,libraryCollection:ot.T.libraries,exchanges:ot.T.exchanges,products:E.s.products}}},{key:"onBeforeRender",value:function(){return this.initializeFilterCollection(),this.fetchData(),!!this.videoCollection&&(this.setVideosWithMetadata(),!!this.model)}},{key:"onRender",value:function(){this.renderBanner(),this.renderHeader(),this.renderChildFolders(),this.renderSubheading(),this.renderVideoList(),this.renderPagination()}}])}(a.Q.G7),kt=function(e){function t(){return ft(this,t),yt(this,t,arguments)}return vt(t,e),dt(t,[{key:"name",get:function(){return"FolderView"}},{key:"lang",get:function(){return"libraryEditor.folderView"}},{key:"componentType",get:function(){return y.U.Draggable}},{key:"bindListeners",value:function(){this.listenTo(m.Vk.LIBRARY,"".concat(m.M_.FOLDER,":").concat(this.options.collectionIdentifier.id,":sync libraries:sync"),this.render),this.listenTo(m.Vk.LIBRARY,"".concat(m.M_.FOLDER,":").concat(this.options.collectionIdentifier.id,":error"),this.onError),this.listenTo(m.Vk.LIBRARY,"".concat(m.M_.UPDATE_FOLDER_BANNER,":").concat(this.options.collectionIdentifier.id,":sync"),this.fetchModel),this.listenTo(m.Vk.LIBRARY,"".concat(new w.KX(this.options.collectionIdentifier.id,p.E.AtoZ),":invalidate"),this.onFoldersInvalidate),ut(mt(t.prototype),"bindListeners",this).call(this)}},{key:"onError",value:function(e){switch(e.type){case i.h.Forbidden:a.Q.Ry.throw(new it.gO);break;case i.h.NotFound:a.Q.Ry.throw(new it.Zv)}}},{key:"appLinkAction",value:function(){return m.eX.LibraryEditor.FOLDER}},{key:"allowBulk",value:function(){return!0}},{key:"showTypeFilter",value:function(){return!0}},{key:"emptyStateType",value:function(){return v.ub.Folder}},{key:"emptyStateOptions",value:function(){return{heading:r.T.getPhrase(this.lang,"emptyStateHeading"),description:r.T.getPhrase(this.lang,"emptyStateInfo",{url:d.o.getHybridArticle(u.s.AddFromOnline,u.b.AddFromLite),classNames:"info-link"})}}},{key:"showFolderSource",value:function(){return!1}},{key:"getVideoCollectionSource",value:function(){return nt.x_.Folder}},{key:"fetchModel",value:function(){this.model=this.libraryDataService.getFolder(this.collectionIdentifier.id)}},{key:"fetchVideoCollection",value:function(){this.videoCollection=this.videoDataService.getCollectionVideos(this.collectionIdentifier)}},{key:"onFoldersInvalidate",value:function(){this.fetchFolders(null,!0)}},{key:"fetchFolders",value:function(e,t){var n=this,i=new w.KX(this.collectionIdentifier.id,p.E.AtoZ,e);this.libraryDataService.getFolders(i,(function(e){t||!n.folders?n.folders=e:n.folders.add(e.models);var o=n.libraryDataService.getFoldersCursors(i);(null==o?void 0:o.next)?n.fetchFolders(o.next):n.render()}))}},{key:"onBeforeRender",value:function(){return this.folders||this.fetchFolders(),ut(mt(t.prototype),"onBeforeRender",this).call(this)&&!!this.folders}}])}(wt),Ot=function(e){function t(){return ft(this,t),yt(this,t,arguments)}return vt(t,e),dt(t,[{key:"initialize",value:function(){this.seriesDataService=o.u.getInstance(m.Or.Series,this),ut(mt(t.prototype),"initialize",this).call(this)}},{key:"name",get:function(){return"SeriesView"}},{key:"lang",get:function(){return"libraryEditor.seriesView"}},{key:"componentType",get:function(){return y.U.Base}},{key:"regions",value:function(){var e=ut(mt(t.prototype),"regions",this).call(this);return e.subheading.partialLoading=v.LP.SeriesVideoListSubheading,delete e.header.partialLoading,delete e.childFolders.partialLoading,e}},{key:"bindListeners",value:function(){this.listenTo(m.Vk.SERIES,"".concat(m.M_.SERIES,":").concat(this.options.collectionIdentifier.id,":sync"),this.render),this.listenTo(m.Vk.SERIES,"".concat(m.M_.SERIES,":").concat(this.options.collectionIdentifier.id,":error"),this.onError),ut(mt(t.prototype),"bindListeners",this).call(this)}},{key:"onError",value:function(e){e.type===i.h.NotFound&&a.Q.Ry.throw(new it.Ag)}},{key:"appLinkAction",value:function(){return m.eX.LibraryEditor.SERIES}},{key:"allowBulk",value:function(){return!1}},{key:"showTypeFilter",value:function(){return!1}},{key:"emptyStateType",value:function(){return v.ub.Series}},{key:"emptyStateOptions",value:function(){return{heading:r.T.getPhrase(this.lang,"emptyStateHeading"),description:r.T.getPhrase(this.lang,"emptyStateInfo",{url:d.o.getHybridArticle(u.s.AddFromOnline,u.b.AddFromLite),classNames:"info-link"})}}},{key:"showFolderSource",value:function(){return!0}},{key:"getVideoCollectionSource",value:function(){return nt.x_.Series}},{key:"fetchModel",value:function(){this.model=this.seriesDataService.getSeries(this.collectionIdentifier.id)}},{key:"fetchVideoCollection",value:function(){this.videoCollection=this.videoDataService.getSeriesVideos(this.collectionIdentifier,this.libraryCollection.pluck("id"))}}])}(wt)},57085:function(e,t,n){"use strict";n.d(t,{n:function(){return T}});var i=n(31647),o=n(57098),r=n(22557),l=n(86363),a=n.n(l);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,p(i.key),i)}}function f(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}function d(e,t,n){return t=y(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var v=function(e){function t(){return s(this,t),d(this,t,arguments)}return b(t,e),f(t,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return a()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}])}(i.Q.wA),g=function(e){function t(){return s(this,t),d(this,t,arguments)}return b(t,e),f(t,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return v}}])}(i.Q.$W),w=n(93933),k=n.n(w);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function S(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,E(i.key),i)}}function E(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=O(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(t)?t:t+""}function C(e,t,n){return t=j(t),function(e,t){if(t&&("object"==O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,I()?Reflect.construct(t,n||[],j(e).constructor):t.apply(e,n))}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(I=function(){return!!e})()}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}var T=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),C(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(t,e),n=t,(l=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return k()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var e=this;this.breadcrumbCollection=new i.Q.FE([]);var t,n=this.options.folder;do{if(!n)break;if(t=r.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!t),{at:0}),!t)break;n=t}while(t);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(t){return e.breadcrumbCollection.add(t)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?o.eX.LibraryEditor.FOLDER:o.eX.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:o.OV.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new g({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&S(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,l}(i.Q.wA)},85552:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r;return e.propertyIsEnumerable,'<h1 class="text-white position-absolute m-0">\n '+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):r)+'\n</h1>\n<div class="options-region"></div>'},useData:!0})},53370:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r;return e.propertyIsEnumerable,'<button class="btn btn-outline-dark dropdown-toggle" type="button" id="sortSelectButton" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n '+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):r)+'\n</button>\n<div class="dropdown-menu-region"></div>'},useData:!0})},73368:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,o){return"ps-2"},3:function(e,t,n,i,o){return"cursor-pointer"},5:function(e,t,n,i,o){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="'+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+" "+a(l(null!=(r=null!=t?t.options:t)?r.caretClass:r,t))+'">\n '+(null!=(r=l(null!=(r=null!=t?t.options:t)?r.caretSvg:r,t))?r:"")+"\n </div>\n"},7:function(e,t,n,i,o){var r;return e.propertyIsEnumerable,' <div class="d-flex justify-content-end justify-self-end px-2 expand-toggle">\n <span class="info-link d-inline-block">\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.isExpanded:r,{name:"if",hash:{},fn:e.program(8,o,0),inverse:e.program(10,o,0),data:o}))?r:"")+" </span>\n </div>\n"},8:function(e,t,n,i,o){return e.propertyIsEnumerable," "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeLess",{name:"lang",hash:{},data:o}))+"\n"},10:function(e,t,n,i,o){var r;return e.propertyIsEnumerable," "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{smartCount:null!=(r=null!=t?t.options:t)?r.count:r},data:o}))+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{},a=e.escapeExpression;return'<div class="d-flex justify-content-between align-items-center">\n <div class="d-inline-flex align-items-center mb-2 expand-toggle '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.forceExpanded:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?r:"")+'">\n'+(null!=(r=n.unless.call(l,null!=(r=null!=t?t.options:t)?r.forceExpanded:r,{name:"unless",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?r:"")+' <h2 class="h4 mb-0">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folders",{name:"lang",hash:{},data:o}))+" ("+a(e.lambda(null!=(r=null!=t?t.options:t)?r.count:r,t))+")</h2>\n </div>\n"+(null!=(r=n.unless.call(l,null!=(r=null!=t?t.options:t)?r.forceExpanded:r,{name:"unless",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?r:"")+'</div>\n<div class="subfolders-region"></div>'},useData:!0})},8420:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div class="py-3 border-bottom">\n <div class="breadcrumbs-region d-inline-flex align-items-center"></div>\n</div>'},useData:!0})},56846:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,o){return e.propertyIsEnumerable,'<h2 class="h4">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"videos",{name:"lang",hash:{},data:o}))+"</h2>"},3:function(e,t,n,i,o){return"pt-2"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{};return(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.showHeading:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+'\n<div class="d-flex justify-content-between align-items-center pb-2 '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.showHeading:r,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?r:"")+'">\n <div class="d-inline-flex justify-content-start">\n <div class="check-all-region d-inline-flex align-items-center"></div>\n <div class="bulk-actions-region"></div>\n <div class="ms-2">\n <div class="type-filter-region"></div>\n </div>\n </div>\n <div class="sorting-region"></div>\n</div>'},useData:!0})},93089:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div class="banner-region"></div>\n<div class="header-region"></div>\n<div class="child-folders-region"></div>\n<div class="subheading-region"></div>\n<div class="video-list-region"></div>\n<div class="pagination-region"></div>'},useData:!0})},86363:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,o){var r;return e.propertyIsEnumerable,'<span class="fw-bolder">'+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):r)+"</span>\n"},3:function(e,t,n,i,o){var r;return e.propertyIsEnumerable,"<a>"+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):r)+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r;return e.propertyIsEnumerable,null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.isActive:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?r:""},useData:!0})},93933:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},34670:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{};return'<button\n class="dropdown-toggle btn btn-outline-dark ms-2 '+(null!=(r=n.unless.call(l,null!=(r=null!=t?t.options:t)?r.enabled:r,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+'"\n type="button"\n id="bulkActions"\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n '+(null!=(r=n.unless.call(l,null!=(r=null!=t?t.options:t)?r.enabled:r,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+"\n>\n "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"options",{name:"lang",hash:{},data:o}))+'\n</button>\n<div class="dropdown-menu-region"></div>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[35],{47022:function(e,t,n){"use strict";n.d(t,{Q:function(){return v}});var o=n(39479),r=n(31647),i=n(52076),l=n(70065),u=n(99186),c=n.n(u);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}function y(e,t,n){return t=d(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}var v=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),y(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,(r=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var t=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous,!0);+t<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,e[".previous-applink"]=n}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(e,t){var n=this.options.appLink.params;return t?(null==n?void 0:n.previous)?{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:{cursor:null==n?void 0:n.previous}}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,s(s({},this.options.cursorParamName,e),"previous",n.cursor))}}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var t=i.k.mergeOptions(this.options.analyticsOptions,{location:l.LZ.Pagination,entity:l.py.Pagination,actionType:l.Vw.Navigate}),n={id:this.options.collectionId,page:e};i.k.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},8614:function(e,t,n){"use strict";n.d(t,{fH:function(){return Se},$V:function(){return ye},wY:function(){return rt},b_:function(){return Le},SV:function(){return ze},b5:function(){return ie}});var o=n(48088),r=n(31647),i=n(52076),l=n(70065),u=n(57098),c=n(29457),a=n(7170),s=n(57857),p=n(99249),f=n(30644),y=n(21769),h=n(5344),d=n(11060),b=n.n(d);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,g(o.key),o)}}function g(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}function w(e,t,n){return t=O(t),function(e,t){if(t&&("object"==v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,k()?Reflect.construct(t,n||[],O(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}var S=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),w(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"FilterItemComponent"}},{key:"template",get:function(){return b()}},{key:"className",get:function(){return"py-1"}},{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderOptions",value:function(){this.showChildView("options",new Le({collection:this.model.options,model:this.model,channelName:this.options.channelName}))}},{key:"onRender",value:function(){this.renderOptions()}}])&&m(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(r.Q.wA),P=n(65882),C=n.n(P);function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,R(o.key),o)}}function _(e,t,n){return t&&F(e.prototype,t),n&&F(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function R(e){var t=function(e,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=T(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==T(t)?t:t+""}function x(e,t,n){return t=L(t),function(e,t){if(t&&("object"==T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,N()?Reflect.construct(t,n||[],L(e).constructor):t.apply(e,n))}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(N=function(){return!!e})()}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function I(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}function V(e,t){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},V(e,t)}var D=function(e){function t(e){return E(this,t),x(this,t,[e])}return I(t,e),_(t,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterListComponent"}},{key:"template",get:function(){return C()}},{key:"lang",get:function(){return"search.filterList"}},{key:"className",get:function(){return"px-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick","click .apply-filters":"onClickApplyFilters","click .clear-filters":"onClickClearFilters"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,u.Vy.Filters.OPTION_SELECTED,this.render)}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickApplyFilters",value:function(e){e.stopPropagation(),this.applyFilters(),this.render()}},{key:"onClickClearFilters",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger("reset:filters"),h.qr.clearFilters(this.collection),this.isTagFilterType()&&o.Radio.channel(y.I.TagFilter).trigger("change:relevant:tags"),this.render()}},{key:"applyFilters",value:function(){o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.APPLY_FILTER)}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return h.qr.isSelected(e)}))}},{key:"isTagFilterType",value:function(){return!!this.collection.findWhere({type:f.K.Tags})}},{key:"viewOptions",value:function(){return{showApplyFilters:!this.isTagFilterType(),showClearFilters:this.hasFiltersSelected()}}},{key:"onRender",value:function(){this.showChildView("filterList",new A({collection:this.collection,channelName:this.channelName}))}}])}(r.Q.wA),A=function(e){function t(e){return E(this,t),x(this,t,[e])}return I(t,e),_(t,[{key:"name",get:function(){return"FilterComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"m-0 p-0"}},{key:"childView",get:function(){return S}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}])}(r.Q.$W),B={label:"PxEgY",filterButton:"CCepL",dropdownMenu:"tqkX2"},M=n(42007),q=n.n(M);function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}function H(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,U(o.key),o)}}function U(e){var t=function(e,t){if("object"!=Q(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=Q(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Q(t)?t:t+""}function W(e,t,n){return t=z(t),function(e,t){if(t&&("object"==Q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$()?Reflect.construct(t,n||[],z(e).constructor):t.apply(e,n))}function $(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($=function(){return!!e})()}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}var Y=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),W(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilters(),this.bindListeners()}},{key:"name",get:function(){return"MoreFiltersButtonComponent"}},{key:"template",get:function(){return q()}},{key:"lang",get:function(){return"search.moreFiltersButton"}},{key:"className",get:function(){return"rounded cursor-pointer ".concat("axS5I")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return this.name}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}},{key:"regions",value:function(){return{filters:{el:".filters-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=p.r.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,u.Vy.Filters.APPLY_FILTER,this.onClickApplyFilters),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilters",value:function(){this.initialFilters=new a.y(this.collection.toJSON())}},{key:"onClickApplyFilters",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilters(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilters",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.haveFiltersChanged()&&(this.logFilterApplyAction(e),this.setInitialFilters(),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.FILTER_CHANGED),this.render())}},{key:"haveFiltersChanged",value:function(){var e=this;return!this.collection.every((function(t,n){return!h.qr.hasFilterChanged(e.initialFilters.at(n),t)}))}},{key:"isSelected",value:function(){return this.collection.some((function(e){return h.qr.isSelected(e)}))}},{key:"numSelectedFilters",value:function(){return this.collection.filter((function(e){return h.qr.isSelected(e)})).length}},{key:"getLabel",value:function(){var e=s.T.getPhrase(this.lang,"moreFilters"),t=this.numSelectedFilters();return t&&(e+=" - ".concat(t)),e}},{key:"getButtonClass",value:function(){var e="btn ".concat(B.filterButton);return this.isSelected()?e+=" btn-dark":e+=" btn-outline-dark",e}},{key:"logFilterApplyAction",value:function(e){var t=this;this.collection.each((function(n,o){h.qr.hasFilterChanged(t.initialFilters.at(o),n)&&t.logFilter(n,e)}))}},{key:"logFilter",value:function(e,t){var n={location:l.LZ.SearchFilters,actionType:l.Vw.Filter,entity:l.py.Video,workflowPhase:l.eu.Complete},o={type:e.get("title"),value:h.qr.getFilterSelectedOptionsAnalyticsData(e),applyClicked:t};i.k.logUserAction(o,n)}},{key:"logFilterResetAction",value:function(){var e={location:l.LZ.SearchFilters,actionType:l.Vw.Filter,descriptor:l.OR.Reset,entity:l.py.Video,workflowPhase:l.eu.Complete};i.k.logUserAction({type:"More Filters"},e)}},{key:"viewOptions",value:function(){return{label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilters",value:function(){this.showChildView("filters",new D({collection:this.collection,channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilters(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}}],r&&H(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),Z=n(92689),G=n.n(Z);function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function X(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ee(o.key),o)}}function ee(e){var t=function(e,t){if("object"!=J(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=J(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==J(t)?t:t+""}function te(e,t,n){return t=oe(t),function(e,t){if(t&&("object"==J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ne()?Reflect.construct(t,n||[],oe(e).constructor):t.apply(e,n))}function ne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ne=function(){return!!e})()}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}function re(e,t){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},re(e,t)}var ie=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),te(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&re(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"FiltersComponent"}},{key:"template",get:function(){return G()}},{key:"lang",get:function(){return"search.filters"}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceRegion:!0,partialLoading:c.LP.SearchFilter},moreFilters:{el:".more-filters-region",replaceRegion:!0}}}},{key:"events",value:function(){return{"click .clear-filters":"onClickClearFilters"}}},{key:"onClickClearFilters",value:function(){h.qr.clearFilters(this.collection),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.FILTER_CHANGED),this.logFilterResetAction()}},{key:"getVisibleFilters",value:function(){return new a.y(this.collection.filter((function(e){return!e.get("showInMoreFilters")&&h.qr.showFilter(e)})))}},{key:"getMoreFilters",value:function(){return new a.y(this.collection.filter((function(e){return e.get("showInMoreFilters")&&h.qr.showFilter(e)})))}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return h.qr.isSelected(e)}))}},{key:"logFilterResetAction",value:function(){var e={location:l.LZ.SearchFilters,actionType:l.Vw.Filter,descriptor:l.OR.Reset,entity:l.py.Video,workflowPhase:l.eu.Complete};i.k.logUserAction({type:"All",active:!1},e)}},{key:"renderFilterList",value:function(){var e=new ye({collection:this.getVisibleFilters(),channelName:this.options.channelName});this.showChildView("filterList",e)}},{key:"renderMoreFilters",value:function(){var e=new Y({collection:this.getMoreFilters(),channelName:this.options.channelName});this.showChildView("moreFilters",e)}},{key:"viewOptions",value:function(){return{labelClass:B.label,hasFiltersSelected:this.collection&&this.hasFiltersSelected(),clearFiltersClass:B.clearFilters}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderFilterList(),this.renderMoreFilters()}}])&&X(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA);function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}function ue(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ce(o.key),o)}}function ce(e){var t=function(e,t){if("object"!=le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=le(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==le(t)?t:t+""}function ae(e,t,n){return t=pe(t),function(e,t){if(t&&("object"==le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,se()?Reflect.construct(t,n||[],pe(e).constructor):t.apply(e,n))}function se(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(se=function(){return!!e})()}function pe(e){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pe(e)}function fe(e,t){return fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fe(e,t)}var ye=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ae(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fe(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"FilterListComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"d-flex gap-2 me-1 mt-1 ps-0"}},{key:"childView",get:function(){return Se}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,analyticsOptions:{location:l.LZ.SearchFilters,entity:l.py.Video}}}}])&&ue(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(r.Q.$W),he=n(44937),de=n(91776),be=n.n(de);function ve(e){return ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ve(e)}function me(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ge(o.key),o)}}function ge(e){var t=function(e,t){if("object"!=ve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=ve(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ve(t)?t:t+""}function we(e,t,n){return t=Oe(t),function(e,t){if(t&&("object"==ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ke()?Reflect.construct(t,n||[],Oe(e).constructor):t.apply(e,n))}function ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ke=function(){return!!e})()}function Oe(e){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oe(e)}function je(e,t){return je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},je(e,t)}var Se=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),we(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&je(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilter(),this.bindListeners()}},{key:"name",get:function(){return"FilterButtonItemComponent"}},{key:"template",get:function(){return be()}},{key:"className",get:function(){return"d-inline-block"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.model.get("type"))}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}},{key:"regions",value:function(){return{filter:{el:".filter-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=p.r.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,u.Vy.Filters.APPLY_FILTER,this.onClickApplyFilter),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilter",value:function(){this.initialFilter=new he.wn(this.model.toJSON())}},{key:"onClickApplyFilter",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilter(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilter",value:function(e){h.qr.hasFilterChanged(this.initialFilter,this.model)&&this.model.get("type")!==f.K.Tags&&(this.setInitialFilter(),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.FILTER_CHANGED),this.logFilterApplyAction(e))}},{key:"getLabel",value:function(){return h.qr.isSelected(this.model)?h.qr.getFilterLabel(this.model):this.model.get("title")}},{key:"getButtonClass",value:function(){var e="btn ".concat(B.filterButton);return h.qr.isSelected(this.model)?e+=" btn-dark":e+=" btn-outline-dark",e}},{key:"logFilterApplyAction",value:function(e){var t=i.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Filter,workflowPhase:l.eu.Complete}),n={type:this.model.get("title"),value:h.qr.getFilterSelectedOptionsAnalyticsData(this.model),applyClicked:e};i.k.logUserAction(n,t)}},{key:"logFilterResetAction",value:function(){var e=i.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Filter,descriptor:l.OR.Reset,workflowPhase:l.eu.Complete}),t={type:this.model.get("title")};i.k.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:B,label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilter",value:function(){this.showChildView("filter",new D({collection:new a.y([this.model]),channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilter(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}}])&&me(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),Pe=n(81637),Ce=n.n(Pe);function Te(e){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(e)}function Ee(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Fe(o.key),o)}}function Fe(e){var t=function(e,t){if("object"!=Te(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=Te(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Te(t)?t:t+""}function _e(e,t,n){return t=xe(t),function(e,t){if(t&&("object"==Te(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Re()?Reflect.construct(t,n||[],xe(e).constructor):t.apply(e,n))}function Re(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Re=function(){return!!e})()}function xe(e){return xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xe(e)}function Ne(e,t){return Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ne(e,t)}var Le=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_e(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ne(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterOptionsComponent"}},{key:"template",get:function(){return Ce()}},{key:"className",get:function(){return"py-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{optionsList:".option-list-region"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,u.Vy.Filters.OPTION_SELECTED,this.onChangeOption)}},{key:"onChangeOption",value:function(e,t){e&&this.isInclusiveType()&&this.onChangeInclusiveOption(e),e&&this.isExclusiveType()&&this.onChangeExclusiveOption(e),e&&this.isRangeType()&&this.onChangeRangeOption(e),e&&this.isTagType()&&this.onChangeTagOption(e),t||(o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.OPTION_SELECTED),this.render())}},{key:"onChangeInclusiveOption",value:function(e){e.set("active",!e.get("active"))}},{key:"onChangeExclusiveOption",value:function(e){h.qr.clearOptions(this.model),e.set("active",!0)}},{key:"onChangeRangeOption",value:function(e){h.qr.clearOptions(this.model),this.collection.each((function(t){t.get("value")<=e.get("value")&&t.set("active",!0)}))}},{key:"onChangeTagOption",value:function(e){var t=this.collection.findWhere({name:e.get("name")});t.set("active",!t.get("active"))}},{key:"isBooleanType",value:function(){return this.model.get("behavior")===h.xF.Boolean}},{key:"isInclusiveType",value:function(){return this.model.get("behavior")===h.xF.Inclusive}},{key:"isExclusiveType",value:function(){return this.model.get("behavior")===h.xF.Exclusive}},{key:"isRangeType",value:function(){return this.model.get("behavior")===h.xF.Range}},{key:"isTagType",value:function(){return this.model.get("behavior")===h.xF.Tag}},{key:"getChildComponent",value:function(){return this.model.get("type")===f.K.Duration?Qt:this.isTagType()?yn:this.isRangeType()?Tt:this.isBooleanType()?ht:ze}},{key:"renderOptionsList",value:function(){this.showChildView("optionsList",new(this.getChildComponent())({collection:this.collection,model:this.model,channelName:this.channelName,isExclusiveType:this.isExclusiveType()}))}},{key:"onRender",value:function(){this.renderOptionsList()}}])&&Ee(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),Ie=n(91713),Ve=n.n(Ie);function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Be(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,qe(o.key),o)}}function Me(e,t,n){return t&&Be(e.prototype,t),n&&Be(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qe(e){var t=function(e,t){if("object"!=De(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=De(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==De(t)?t:t+""}function Qe(e,t,n){return t=Ue(t),function(e,t){if(t&&("object"==De(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,He()?Reflect.construct(t,n||[],Ue(e).constructor):t.apply(e,n))}function He(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(He=function(){return!!e})()}function Ue(e){return Ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ue(e)}function We(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$e(e,t)}function $e(e,t){return $e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$e(e,t)}var ze=function(e){function t(e){return Ae(this,t),Qe(this,t,[e])}return We(t,e),Me(t,[{key:"name",get:function(){return"FilterOptionsListComponent"}},{key:"template",get:function(){return Ve()}},{key:"regions",value:function(){return{options:".options-region"}}},{key:"events",value:function(){return{"click .default-option":"onClickDefaultOption"}}},{key:"onClickDefaultOption",value:function(e){e.stopPropagation(),this.model.get("behavior")===h.xF.Inclusive?h.qr.selectAllOptions(this.model):h.qr.clearOptions(this.model),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.OPTION_SELECTED),this.render()}},{key:"defaultOptionSelected",value:function(){return this.model.get("behavior")===h.xF.Inclusive?h.qr.allOptionsSelected(this.model):!h.qr.hasOptionSelected(this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType(),defaultOptionSelected:this.defaultOptionSelected(),defaultOptionLabel:this.model.get("defaultOptionLabel")}}},{key:"renderOptions",value:function(){this.showChildView("options",new Ke({collection:this.collection,childOptions:{channelName:this.options.channelName,isExclusiveType:this.options.isExclusiveType}}))}},{key:"onRender",value:function(){this.renderOptions()}}])}(r.Q.wA),Ke=function(e){function t(e){return Ae(this,t),Qe(this,t,[e])}return We(t,e),Me(t,[{key:"name",get:function(){return"FilterOptionComponentCollection"}},{key:"childView",get:function(){return rt}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])}(r.Q.$W),Ye=n(72673),Ze=n.n(Ye);function Ge(e){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(e)}function Je(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Xe(o.key),o)}}function Xe(e){var t=function(e,t){if("object"!=Ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=Ge(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ge(t)?t:t+""}function et(e,t,n){return t=nt(t),function(e,t){if(t&&("object"==Ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,tt()?Reflect.construct(t,n||[],nt(e).constructor):t.apply(e,n))}function tt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tt=function(){return!!e})()}function nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nt(e)}function ot(e,t){return ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ot(e,t)}var rt=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),et(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ot(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterOptionItemComponent"}},{key:"template",get:function(){return Ze()}},{key:"className",get:function(){return"filter-option-item py-1 cursor-pointer"}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.render)}},{key:"onClick",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.OPTION_SELECTED,this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType()}}}],r&&Je(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),it=n(18818),lt=n.n(it);function ut(e){return ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ut(e)}function ct(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,at(o.key),o)}}function at(e){var t=function(e,t){if("object"!=ut(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=ut(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ut(t)?t:t+""}function st(e,t,n){return t=ft(t),function(e,t){if(t&&("object"==ut(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pt()?Reflect.construct(t,n||[],ft(e).constructor):t.apply(e,n))}function pt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pt=function(){return!!e})()}function ft(e){return ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ft(e)}function yt(e,t){return yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yt(e,t)}var ht=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),st(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yt(e,t)}(t,e),n=t,r=[{key:"name",get:function(){return"BoolFilterOptionComponent"}},{key:"template",get:function(){return lt()}},{key:"events",value:function(){return{"click .toggle-option":"onClickToggleOption"}}},{key:"onClickToggleOption",value:function(e){e.stopPropagation(),this.model.set("active",!this.model.get("active")),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.OPTION_SELECTED),this.render()}},{key:"viewOptions",value:function(){return{isSelected:this.model.get("active")}}}],r&&ct(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA),dt=n(62568),bt=n.n(dt);function vt(e){return vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vt(e)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,kt(o.key),o)}}function wt(e,t,n){return t&&gt(e.prototype,t),n&&gt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kt(e){var t=function(e,t){if("object"!=vt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=vt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vt(t)?t:t+""}function Ot(e,t,n){return t=St(t),function(e,t){if(t&&("object"==vt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jt()?Reflect.construct(t,n||[],St(e).constructor):t.apply(e,n))}function jt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jt=function(){return!!e})()}function St(e){return St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},St(e)}function Pt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ct(e,t)}function Ct(e,t){return Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ct(e,t)}var Tt=function(e){function t(){return mt(this,t),Ot(this,t,arguments)}return Pt(t,e),wt(t,[{key:"name",get:function(){return"RatingFilterOptionComponentCollection"}},{key:"className",get:function(){return"btn-group ".concat("U9MEr"," my-2")}},{key:"attributes",get:function(){return{role:"group"}}},{key:"childView",get:function(){return Et}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}])}(r.Q.$W),Et=function(e){function t(){return mt(this,t),Ot(this,t,arguments)}return Pt(t,e),wt(t,[{key:"name",get:function(){return"RatingFilterOptionItemComponent"}},{key:"template",get:function(){return bt()}},{key:"tagName",get:function(){return"button"}},{key:"className",get:function(){var e="".concat("zSUig"," border btn btn-");return this.isSelected()?"".concat(e,"dark"):"".concat(e,"outline-dark")}},{key:"attributes",get:function(){return{type:"button",title:this.model.get("fullName")}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"onRender",value:function(){this.$el.tooltip()}},{key:"onBeforeDestroy",value:function(){this.$el.tooltip("dispose")}}])}(r.Q.wA),Ft=n(16869),_t=n.n(Ft),Rt={optionItem:"EM99Q",customOptionItem:"aEaSA",selected:"i4EVL"};function xt(e){return xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xt(e)}function Nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Vt(o.key),o)}}function It(e,t,n){return t&&Lt(e.prototype,t),n&&Lt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vt(e){var t=function(e,t){if("object"!=xt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=xt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xt(t)?t:t+""}function Dt(e,t,n){return t=Bt(t),function(e,t){if(t&&("object"==xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,At()?Reflect.construct(t,n||[],Bt(e).constructor):t.apply(e,n))}function At(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(At=function(){return!!e})()}function Bt(e){return Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bt(e)}function Mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qt(e,t)}function qt(e,t){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qt(e,t)}var Qt=function(e){function t(){return Nt(this,t),Dt(this,t,arguments)}return Mt(t,e),It(t,[{key:"name",get:function(){return"DurationFilterOptionComponentCollection"}},{key:"childView",get:function(){return Ht}},{key:"className",get:function(){return Rt.options}},{key:"getOptionItemClassName",value:function(){var e=Rt.optionItem;return 4===this.collection.length&&(e+=" ".concat(Rt.customOptionItem)),e}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,optionItemClassName:this.getOptionItemClassName()}}}])}(r.Q.$W),Ht=function(e){function t(e){return Nt(this,t),Dt(this,t,[e])}return Mt(t,e),It(t,[{key:"name",get:function(){return"DurationFilterItemComponent"}},{key:"template",get:function(){return _t()}},{key:"className",get:function(){return"d-inline-block p-1 ".concat(this.options.optionItemClassName)}},{key:"events",value:function(){return{"click .option-btn":"onClickOption"}}},{key:"viewOptions",value:function(){return{buttonClass:this.getButtonClass()}}},{key:"onClickOption",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"getButtonClass",value:function(){var e="btn ".concat(Rt.optionButton," p-1");return this.isSelected()?e+=" btn-dark":e+=" btn-outline-dark",e}}])}(r.Q.wA),Ut=n(39479),Wt=n(26457),$t=n(21626),zt=n.n($t),Kt=n(44391),Yt=n(9586),Zt=n.n(Yt);function Gt(e){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(e)}function Jt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Xt(o.key),o)}}function Xt(e){var t=function(e,t){if("object"!=Gt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=Gt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gt(t)?t:t+""}function en(e,t,n){return t=nn(t),function(e,t){if(t&&("object"==Gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,tn()?Reflect.construct(t,n||[],nn(e).constructor):t.apply(e,n))}function tn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tn=function(){return!!e})()}function nn(e){return nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nn(e)}function on(e,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},on(e,t)}var rn=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),en(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&on(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"TagFilterOptionsListComponent"}},{key:"template",get:function(){return Zt()}},{key:"regions",value:function(){return{tags:{el:".tags-region",replaceElement:!0,partialLoading:c.LP.TagFilter}}}},{key:"onBeforeRender",value:function(){return!Ut.isNull(this.collection)}},{key:"onRender",value:function(){this.showChildView("tags",new Kt.K({collection:this.collection,channelName:this.options.channelName,behavior:this.options.behavior,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}))}}])&&Jt(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(r.Q.wA);function ln(e){return ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ln(e)}function un(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,cn(o.key),o)}}function cn(e){var t=function(e,t){if("object"!=ln(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=ln(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ln(t)?t:t+""}function an(e,t,n){return t=pn(t),function(e,t){if(t&&("object"==ln(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,sn()?Reflect.construct(t,n||[],pn(e).constructor):t.apply(e,n))}function sn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sn=function(){return!!e})()}function pn(e){return pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pn(e)}function fn(e,t){return fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fn(e,t)}var yn=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),an(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fn(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(){this.bindListeners(),this.setRelevantTags()}},{key:"name",get:function(){return"TagFilterOptionsComponent"}},{key:"template",get:function(){return zt()}},{key:"lang",get:function(){return"search.tagFilterOptions"}},{key:"className",get:function(){return"".concat("bBNF3")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{selectedTags:{el:".selected-tags-region",replaceElement:!0},relevantTags:{el:".relevant-tags-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"on:option:change",this.onChange)}},{key:"onChange",value:function(e){o.Radio.channel(this.options.channelName).trigger(u.Vy.Filters.OPTION_SELECTED,e,!0),o.Radio.channel(y.I.TagFilter).trigger("change:relevant:tags"),this.relevantTags=null,this.render()}},{key:"setRelevantTags",value:function(){var e=h.qr.getSelectedOptions(this.collection).map((function(e){return e.get("id")}));this.collection.length!==e.length?this.relevantTags=new a.q(this.collection.filter((function(t){return!Ut.contains(e,t.get("id"))})).slice(0,5)):this.relevantTags=null}},{key:"hasSelectedTags",value:function(){var e=h.qr.getSelectedOptions(this.collection);return e&&!!e.length}},{key:"hasRelevantTags",value:function(){return Ut.isNull(this.relevantTags)||this.relevantTags&&!!this.relevantTags.length}},{key:"renderSelectedTags",value:function(){if(this.hasSelectedTags()){var e=h.qr.getSelectedOptions(this.collection);this.showChildView("selectedTags",new rn({collection:e,channelName:this.channelName,behavior:Wt.Dm.Filter,removeEvent:"on:option:change"}))}}},{key:"renderRelevantTags",value:function(){this.showChildView("relevantTags",new rn({collection:this.relevantTags,channelName:this.channelName,behavior:Wt.Dm.Filter,clickEvent:"on:option:change"}))}},{key:"viewOptions",value:function(){return{showEmptyState:!this.hasSelectedTags()&&!this.hasRelevantTags(),useDivider:this.hasSelectedTags()&&this.hasRelevantTags()}}},{key:"onRender",value:function(){this.renderSelectedTags(),this.renderRelevantTags()}}],r&&un(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},21769:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var o={TagFilter:"tag:filter"}},80867:function(e,t,n){"use strict";n.d(t,{Y:function(){return T}});var o=n(31647),r=n(52076),i=n(70065),l=n(50028),u=n(80758),c=n(10101),a=n(58688),s=n(37071),p=n(57098),f=n(29457),y=n(26457),h=n(30606),d=n.n(h);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,w(o.key),o)}}function g(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function w(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}function k(e,t,n){return t=j(t),function(e,t){if(t&&("object"==b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,O()?Reflect.construct(t,n||[],j(e).constructor):t.apply(e,n))}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O=function(){return!!e})()}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}var C=function(e){function t(e){return v(this,t),k(this,t,[e])}return S(t,e),g(t,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return s.j}},{key:"childViewOptions",get:function(){var e=this;return function(t,n){return{componentType:t.get("status")===l.X.Processing?a.U.ProcessingVideo:e.options.videoItemComponentType,videoWithMetadata:e.options.videosWithMetadata&&e.options.videosWithMetadata.get(t.get("id")),allowBulk:e.options.allowBulk,collectionIdentifier:e.options.collectionIdentifier,application:e.options.application,pendingItems:e.options.pendingItems,config:e.options.config,sourceMetadataOptions:e.options.sourceMetadataOptions,collectionViewChannel:e.options.collectionViewChannel,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,videoCollectionSource:e.options.videoCollectionSource,currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey,isLastItem:!e.options.hasCursors&&n===e.collection.length-1,libraries:e.options.libraries,products:e.options.products}}}}])}(o.Q.$W),T=function(e){function t(e){return v(this,t),k(this,t,[e])}return S(t,e),g(t,[{key:"name",get:function(){return"VideoListView"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return d()}},{key:"defaults",get:function(){return{videoItemComponentType:a.U.Base,allowBulk:!1,emptyState:f.ub.Default,videoCollectionSource:y.x_.Folder}}},{key:"behaviors",get:function(){var e=[{behaviorClass:c.Im,selector:".lazy-img",minBrowserSupportVersion:p.v9}];return this.options.showEmptyState&&e.push({behaviorClass:u.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:p.aW}),e}},{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var e=new C({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{location:i.LZ.VideoListItem,entity:i.py.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser,playerApiUrl:this.options.playerApiUrl,createViewKey:this.options.createViewKey,hasCursors:this.options.hasCursors,libraries:this.options.libraries,products:this.options.products});this.showChildView("videos",e)}}])}(o.Q.wA)},99186:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing,c=e.escapeExpression;return'<div class="p-3">\n <a class="btn previous-applink btn-outline-dark '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.previous:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+c((n.lang||t&&t.lang||u).call(l,"previous",{name:"lang",hash:{},data:r}))+'</a>\n <a class="btn next-applink btn-outline-dark '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.next:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+c((n.lang||t&&t.lang||u).call(l,"next",{name:"lang",hash:{},data:r}))+"</a>\n</div>"},useData:!0})},92689:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,'<div class="d-inline-block text-end">\n <a class="clear-filters cursor-pointer hover-text-underline">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\n</div>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<div class="d-inline-block border-end py-1 pe-3 '+l(e.lambda(null!=(i=null!=t?t.options:t)?i.labelClass:i,t))+'"><strong>'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(u,"heading",{name:"lang",hash:{},data:r}))+'</strong></div>\n<div class="filter-list-region d-inline-block ps-2"></div>\n<div class="more-filters-region d-inline-block me-2"></div>\n'+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.hasFiltersSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},91776:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,u=e.escapeExpression;return'<button class="'+u(l(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn cursor-pointer" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n '+u(l(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\n</button>\n<div class="dropdown-menu '+u(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dropdownMenu:i,t))+' p-2 filter-region"></div>'},useData:!0})},11060:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<h6 class="mb-0">'+e.escapeExpression("function"==typeof(i=null!=(i=n.title||(null!=t?t.title:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:r}):i)+'</h6>\n<div class="options-region"></div>'},useData:!0})},65882:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,' <a class="clear-filters float-start text-secondary hover-text-underline cursor-pointer">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\n"},3:function(e,t,n,o,r){return e.propertyIsEnumerable,' <a class="apply-filters d-block text-end info-link">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"apply",{name:"lang",hash:{},data:r}))+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="filter-list-region"></div>\n<div>\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showClearFilters:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showApplyFilters:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},81637:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="option-list-region"></div>'},useData:!0})},18818:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" on"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,u=null!=t?t:e.nullContext||{};return'<div class="custom-toggle toggle-option float-end'+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.isSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'"><span class="handle"></span></div>\n<p>'+e.escapeExpression("function"==typeof(l=null!=(l=n.description||(null!=t?t.description:t))?l:e.hooks.helperMissing)?l.call(u,{name:"description",hash:{},data:r}):l)+"</p>"},useData:!0})},16869:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,u=e.escapeExpression,c=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s="function";return'<button type="button" class="d-block option-btn w-100 '+u(e.lambda(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+'">\n '+u(typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:a)===s?l.call(c,{name:"name",hash:{},data:r}):l)+'\n</button>\n<div class="text-center">'+u(typeof(l=null!=(l=n.description||(null!=t?t.description:t))?l:a)===s?l.call(c,{name:"description",hash:{},data:r}):l)+"</div>"},useData:!0})},72673:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,u=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<div class="form-check">\n <input type='+u(e.lambda(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="form-check-input"'+(null!=(i=n.if.call(c,null!=t?t.active:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'>\n <label class="form-check-label align-middle cursor-pointer">'+u("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(c,{name:"name",hash:{},data:r}):l)+"</label>\n</div>"},useData:!0})},91713:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,u=e.escapeExpression;return'<div class="default-option py-1">\n <div class="form-check">\n <input type='+u(l(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="form-check-input"'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionSelected:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'>\n <label class="form-check-label align-middle cursor-pointer">'+u(l(null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,t))+"</label>\n </div>\n</div>\n"},2:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="options-region"></div>'},useData:!0})},62568:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)},useData:!0})},21626:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,'<p class="mb-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"emptyState",{name:"lang",hash:{},data:r}))+"</p>\n"},3:function(e,t,n,o,r){return'<div class="dropdown-divider"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showEmptyState:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\n<div class="selected-tags-region"></div>\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.useDivider:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="relevant-tags-region"></div>'},useData:!0})},9586:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="tags-region"></div>'},useData:!0})},42007:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,u=e.escapeExpression;return'<button class="'+u(l(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n '+u(l(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\n</button>\n<div class="dropdown-menu p-2 filters-region"></div>'},useData:!0})},30606:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="videos-region"></div>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3551],{46814:function(e,t,n){"use strict";n.r(t),n.d(t,{PastReleasesView:function(){return re}});var i=n(39479),r=n(21679),o=n(57857),a=n(31647),s=n(52076),l=n(70065),c=n(47022),u=n(70763),f=n(58688),d=n(57098),h=n(29457),p=n(3059),y=n(64404),v=n(48404),b=n(19226),g=(n(14129),n(7572)),m=n(95920),w=n(7170),C=n(8614),S=n(5344),P=n(56750),k=n.n(P);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function R(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,E(i.key),i)}}function E(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=O(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(t)?t:t+""}function j(e,t,n){return t=V(t),function(e,t){if(t&&("object"==O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,T()?Reflect.construct(t,n||[],V(e).constructor):t.apply(e,n))}function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T=function(){return!!e})()}function V(e){return V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},V(e)}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}var L=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),j(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"PastReleasesFiltersComponent"}},{key:"template",get:function(){return k()}},{key:"lang",get:function(){return"contentUpdates.pastReleasesFilters"}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceRegion:!1,partialLoading:h.LP.PastReleasesSearchFilter}}}},{key:"getVisibleFilters",value:function(){return new w.y(this.collection.filter((function(e){return S.qr.showFilter(e)})))}},{key:"renderFilterList",value:function(){var e=new C.$V({collection:this.getVisibleFilters(),channelName:this.options.channelName});this.showChildView("filterList",e)}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderFilterList()}}])&&R(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),N=n(48088),I=n(68536),D=n.n(I);function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function U(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,x(i.key),i)}}function x(e){var t=function(e,t){if("object"!=F(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=F(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==F(t)?t:t+""}function A(e,t,n){return t=G(t),function(e,t){if(t&&("object"==F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,M()?Reflect.construct(t,n||[],G(e).constructor):t.apply(e,n))}function M(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(M=function(){return!!e})()}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}function H(e,t){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},H(e,t)}var B=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),A(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"PastReleasesHeaderComponent"}},{key:"props",get:function(){return["filterCollection"]}},{key:"lang",get:function(){return"contentUpdates.pastReleasesHeader"}},{key:"className",get:function(){return"d-flex justify-content-between align-items-center p-3 border-bottom"}},{key:"template",get:function(){return D()}},{key:"regions",value:function(){return{filters:{el:".filters-region"}}}},{key:"events",value:function(){return{"click .generate-pdf":"onClickGeneratePdf"}}},{key:"onClickGeneratePdf",value:function(){N.Radio.channel(this.options.channelName).trigger("generate:pdf")}},{key:"renderFilters",value:function(){var e=new L({collection:this.filterCollection,channelName:this.options.channelName});this.showChildView("filters",e)}},{key:"viewOptions",value:function(){return{showGeneratePdf:this.options.showGeneratePdf}}},{key:"onRender",value:function(){this.renderFilters()}}])&&U(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),Q=n(82405),W=n(73616),q=n(39090),z=n(29565),J=n(95061),X=n(69711),Z=n.n(X);function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function K(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Y(i.key),i)}}function Y(e){var t=function(e,t){if("object"!=$(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=$(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$(t)?t:t+""}function ee(e,t,n){return t=ne(t),function(e,t){if(t&&("object"==$(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,te()?Reflect.construct(t,n||[],ne(e).constructor):t.apply(e,n))}function te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(te=function(){return!!e})()}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ne(e)}function ie(e,t){return ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ie(e,t)}var re=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ee(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ie(e,t)}(t,e),n=t,(w=[{key:"initialize",value:function(){this.bindListeners(),this.contentUpdatesDataService=r.u.getInstance(d.Or.ContentUpdates,this),this.videoDataService=r.u.getInstance(d.Or.Video,this),this.libraryDataService=r.u.getInstance(d.Or.Library,this),this.videoMixinService=r.u.getInstance(d.K9.VideoMixin,this)}},{key:"name",get:function(){return"PastReleasesView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.pastReleases"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white rounded"}},{key:"template",get:function(){return Z()}},{key:"regions",value:function(){return{header:{el:".header-region",replaceElement:!0},leftNav:{el:".left-nav-region",replaceElement:!0},listHeader:{el:".list-header-region",replaceElement:!0},videos:{el:".video-list-region",replaceElement:!0,partialLoading:h.LP.VideoGroupList},pagination:{el:".pagination-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(d.Vk.CONTENT_UPDATES,"".concat(d.M_.LIBRARY_REVIEW_SETTINGS,":sync"),this.render),this.listenTo(this.channelName,"generate:pdf",this.onClickGeneratePdf),this.listenTo(d.Vk.RESTRICTED_VIDEO,"".concat(d.M_.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestrictedVideos),this.listenTo(this.channelName,d.Vy.Filters.FILTER_CHANGED,i.debounce(this.onFilterChange,100)),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"initializeFilterCollection",value:function(){var e=this;this.filterCollection||this.libraryDataService.getHostedLibraries((function(t){return e.onLibrariesSync(t)}))}},{key:"onLibrariesSync",value:function(e){var t=this;this.filterCollection||(this.libraryIds=q.RF.getLibraryIds(this.options.queryParams[W.g.Libraries],e),this.subjectCollectionIdentifier=new p.xw({dateQueryString:this.options.queryParams[W.g.ReleaseDate],libraryIds:this.libraryIds}),this.contentUpdatesDataService.getRecentVideoSubjects(this.subjectCollectionIdentifier,(function(n){return t.onSubjectsSync(e,n)})))}},{key:"onSubjectsSync",value:function(e,t){var n=q.RF.getSubjectOptions(t);this.filterCollection=q.RF.getFilterCollection(e,n,this.options.queryParams);var i=q.RF.getSelectedSubjects(this.filterCollection),r=n.length>1&&n.length===i.length;this.videoCollectionIdentifier=new p.IJ({dateQueryString:this.options.queryParams[W.g.ReleaseDate],libraryIds:this.libraryIds,subjects:!r&&i,cursor:this.options.queryParams.cursor}),this.listenTo(d.Vk.CONTENT_UPDATES,"".concat(this.videoCollectionIdentifier.toString(),":sync"),this.render),this.fetchVideos()}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new u.t(this.videoCollection.map((function(e){return new y.n({id:e.get("id")})}))))}},{key:"updateRestrictedVideos",value:function(){var e=this;this.videoMixinService.getAndMixinVideoCollectionRestrictions(this.videoCollection,null,(function(){return e.render()}))}},{key:"onFilterChange",value:function(){a.Q.C$.trigger({application:d.OV.CONTENT_UPDATES,action:d.eX.ContentUpdates.PAST_RELEASES,params:q.RF.getRouteQueryParams(this.filterCollection)})}},{key:"onClickGeneratePdf",value:function(){this.videoCollection.length&&(a.Q.C$.trigger({application:d.OV.CONTENT_UPDATES,action:d.eX.ContentUpdates.GENERATE_PDF,params:q.RF.getRouteQueryParams(this.filterCollection)}),this.logPdfAction())}},{key:"getContentClassName",value:function(){var e=z.Z.content;return this.reviewSetting&&this.reviewSetting.get("reviewPeriod")?e+=" d-inline-block border-start ".concat(z.Z.contentWithLeftNav):e+=" w-100",e}},{key:"logPdfAction",value:function(){var e={location:l.LZ.PastReleasesHeader,actionType:l.Vw.Create,entity:l.py.PDF,workflowPhase:l.eu.Start},t=q.RF.getSelectedSubjects(this.filterCollection),n=q.RF.getSelectedReleaseDate(this.filterCollection),i={libraries:this.libraryIds.join(","),subjects:t.map((function(e){return e.get("name")})).join(","),releaseDate:n.get("name")};s.k.logUserAction(i,e)}},{key:"renderHeader",value:function(){this.reviewSetting?this.showChildView("header",new g.u({activeTab:q.JI.PastReleases,reviewEnabled:this.reviewSetting.get("reviewPeriod")})):this.renderPartialLoading("header")}},{key:"renderLeftNav",value:function(){this.reviewSetting&&this.reviewSetting.get("reviewPeriod")&&this.showChildView("leftNav",new m.m({supportSiteUrl:this.config.get("supportSiteUrl"),currentUser:this.currentUser}))}},{key:"renderListHeader",value:function(){this.showChildView("listHeader",new B({filterCollection:this.filterCollection,channelName:this.channelName,showGeneratePdf:!!this.videoCollection&&!!this.videoCollection.length}))}},{key:"renderVideos",value:function(){this.config&&this.groupedVideoCollection?this.showChildView("videos",new Q.D({collection:this.groupedVideoCollection,childOptions:{config:this.config,videoItemComponentType:f.U.PastReleases,videosWithMetadata:this.videosWithMetadata,customerHasCustomLibrary:this.customLibraries&&!!this.customLibraries.length,collectionViewChannel:this.channelName,currentUser:this.currentUser,libraries:this.customLibraries},emptyStateType:h.ub.PastReleases,emptyStateOptions:{heading:o.T.getPhrase(this.lang,"emptyState")}})):this.renderPartialLoading("videos")}},{key:"renderPagination",value:function(){if(this.videoCollection){var e=this.contentUpdatesDataService.getVideoCollectionCursors(this.videoCollectionIdentifier),t=new c.Q({cursors:e,appLink:{application:d.OV.CONTENT_UPDATES,action:d.eX.ContentUpdates.PAST_RELEASES,params:q.RF.getRouteQueryParams(this.filterCollection)}});this.showChildView("pagination",t)}}},{key:"fetchVideos",value:function(){this.filterCollection&&!this.videoCollection&&(this.videoCollection=this.contentUpdatesDataService.getRecentVideos(this.videoCollectionIdentifier),this.videoCollection&&(this.setVideosWithMetadata(),this.groupedVideoCollection=q.RF.groupVideosByReleaseMonth(this.videoCollection)))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var i=t.videosWithMetadata.get(e);i&&(i.set(n.toJSON()),i.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:v.p.config,currentUser:b.K.currentUser,customLibraries:J.T.libraries}}},{key:"onBeforeRender",value:function(){this.initializeFilterCollection(),this.fetchVideos(),this.videoCollection&&(this.groupedVideoCollection=q.RF.groupVideosByReleaseMonth(this.videoCollection)),this.reviewSetting=this.contentUpdatesDataService.getLibraryReviewSettings()}},{key:"viewOptions",value:function(){return{showLeftNav:this.reviewSetting&&this.reviewSetting.get("reviewPeriod"),contentClass:this.getContentClassName()}}},{key:"onRender",value:function(){this.renderHeader(),this.renderLeftNav(),this.renderListHeader(),this.renderVideos(),this.renderPagination()}}])&&K(n.prototype,w),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,w}(a.Q.G7)},56750:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){return e.propertyIsEnumerable,'<div class="d-inline-block border-end py-1 pe-3"><strong>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"filters",{name:"lang",hash:{},data:r}))+'</strong></div>\n<div class="filter-list-region d-inline-block ps-2"></div>'},useData:!0})},68536:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,r){return e.propertyIsEnumerable,'<button class="generate-pdf btn btn-outline-dark d-inline-block" type="button">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"generatePdf",{name:"lang",hash:{},data:r}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){var o;return e.propertyIsEnumerable,'<div class="filters-region d-inline-block"></div>\n'+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showGeneratePdf:o,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?o:"")},useData:!0})},69711:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,r){return'<div class="left-nav-region"></div>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){var o;return e.propertyIsEnumerable,'<div class="header-region"></div>\n'+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showLeftNav:o,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?o:"")+'<div class="'+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.contentClass:o,t))+'">\n<div class="list-header-region"></div>\n<div class="video-list-region"></div>\n<div class="pagination-region"></div>\n</div>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3567],{83026:function(e,t,n){"use strict";n.r(t),n.d(t,{ShareView:function(){return _t}});var r=n(1024),a=n.n(r),i=n(58566),o=n(57857),c=n(86120),s=n(2248),l=n(68003),u=n(34254);function d(e){return d="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},d(e)}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){return function(e){if(Array.isArray(e))return f(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 f(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)?f(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 f(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 y={namespace:"share"},v={video:"thumbnail,_canBeConsumed",clip:"_parentVideo[rating],_canBeConsumed,_thumbnail",interactive:"_canBeConsumed,_parentVideo[rating],_parentClip,_thumbnail",series:"tallPoster",playlist:"cover"};function h(e,t){return{id:e,"query.user":"yearGroups,avatar,userprofiles{customer.id:".concat(t,"}"),"query.classroom":"enrolments[count()]{role:student,limit:0},customer{id:".concat(t,"}"),"query.classroom_group":"classroom,users[count()]{limit:0}"}}var g={getShareObject:function(e,t,n){return{url:"/api/share/find/".concat(e),key:"share:".concat(e),bootstrapName:"share:".concat(e),success:t,error:n}},sharedObjectsById:function(e){e.sort();var t=e.map((function(e){return"id=".concat(e)})),n=Object.keys(v).map((function(e){return"query.".concat(e,"=").concat(v[e])}));return{url:"{gateway}/v1/objects?".concat([].concat(p(t),p(n),["permissionFilterOption=".concat(u.r.StripMetadata)]).join("&")),key:"objects:".concat(e.join(","))}},sentShare:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.values(e).join(":");return{url:l._.urlBuilder("{gateway}/v1/users/me/share/sent-items",e),key:"sent:shares:".concat(t),normalize:!1}},getSentDirectShareByObjectId:function(e){return{url:"{gateway}/v1/users/me/share/direct/sent-items?objectId=".concat(e),key:"direct:share:sent:object:".concat(e),normalizeOptions:y}},createDirectShare:function(e,t,n,r){return{url:"{gateway}/v1/share",key:"create:direct:share",data:e,type:s.k.POST,normalizeOptions:y,invalidationKeys:["direct:share:sent:object:".concat(e.objectId),"sent:shares"],success:t,error:n,always:r}},updateDirectShareRecipients:function(e,t,n,r,a){var i="direct:share:recipients:".concat(e);return{url:"{gateway}/v1/share/".concat(e,"/recipients"),key:"edit:direct:share",data:t,type:s.k.POST,normalizeOptions:y,invalidationKeys:"sent:shares",updateState:{keys:i,updateData:function(e){return!e[i]||t.recipients.length?e:Object.assign(Object.assign({},e),m({},i,[]))}},success:n,error:r,always:a}},removeDirectShareRecipient:function(e,t,n,r,a){var i="direct:share:recipients:".concat(e);return{url:l._.urlBuilder("{gateway}/v1/share/".concat(e,"/recipients"),{recipientId:t}),key:"remove:direct:share:recipient",type:s.k.DELETE,normalizeOptions:y,invalidationKeys:"sent:shares",updateState:{keys:i,updateData:function(e){return e[i]?Object.assign(Object.assign({},e),m({},i,[])):e}},success:n,error:r,always:a}},getDirectShareRecipientsById:function(e,t,n){return{url:l._.urlBuilder("{gateway}/v1/objects",h(t.map((function(e){return e.id})),n)),key:"direct:share:recipients:".concat(e)}},getRecipientsById:function(e,t){return e.sort(),{url:l._.urlBuilder("{gateway}/v1/objects",h(e,t)),key:"share:recipients:".concat(e.join(","))}},getRecipientUsers:function(e,t){return{url:"{gateway}/v1/objects/".concat(e,"/users?query={limit:100}"),key:"share:recipients:".concat(e,":users"),success:t}},getObjectsSharedWithUser:function(e){var t={permissionFilterOption:u.r.StripMetadata};return e&&(t.cursor=e),{url:l._.urlBuilder("{gateway}/v1/users/me/share/received-items",t),key:"shared:with:me:".concat(e)}},getShareLinkByObjectId:function(e){return{url:"{gateway}/v1/share/links?objectId=".concat(e),key:"share:link:object:".concat(e),normalizeOptions:y,formatData:function(e){return Object.assign(Object.assign({},e),{linkExpireDate:e.linkExpireDate||null})}}},createShareLink:function(e,t,n,r){return{url:"{gateway}/v1/share/links",key:"create:share:link",type:s.k.POST,data:e,normalizeOptions:y,invalidationKeys:["share:link:object:".concat(e.resourceId),"privacy:".concat(e.resourceId),"sent:shares"],success:t,error:n,always:r}},editShareLink:function(e,t,n,r,a){return{url:"{gateway}/v1/share/links/".concat(e.id),key:"edit:share:link",data:t,type:s.k.PUT,normalizeOptions:y,invalidationKeys:["share:".concat(e.id),"share:link:object:".concat(e.objectId),"sent:shares"],success:n,error:r,always:a}},deleteShareLink:function(e,t,n,r){return{url:"{gateway}/v1/share/links/".concat(e.id),key:"delete:share:link",type:s.k.DELETE,normalizeOptions:y,invalidationKeys:["share:".concat(e.id),"share:link:object:".concat(e.objectId),"sent:shares"],success:t,error:n,always:r}},checkPassword:function(e,t,n,r){return{url:"/api/share/links/".concat(e,"/check-password"),key:"checkpassword:".concat(e),type:s.k.POST,data:{password:t},success:n,error:r}},getPrivacy:function(e){return{url:"{gateway}/v1/objects/".concat(e,"/access"),key:"privacy:".concat(e),normalize:!1}},updatePrivacy:function(e,t,n,r,a){return{url:"{gateway}/v1/share/links/".concat(e,"/privacy"),key:"update:privacy",type:s.k.PUT,data:{privacy:t,overrideRestrictions:n},invalidationKeys:"privacy",normalize:!1,success:r,error:a}}},b=n(4705),E={getRecentItem:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?t.get(e):t.cacheGet(e);return Array.isArray(n)||(n=[]),n},setRecentItem:function(e,t,n,r){Array.isArray(t)&&(r?n.cacheSet(e,t):n.set(e,t))},addRecentItem:function(e,t,n){var r=n.id,a=n.limit,i=void 0===a?5:a,o=n.expire,c=void 0===o||o,s=E.getRecentItem(e,t,c),l=s.indexOf(r);return l>-1&&s.splice(l,1),s.unshift(r),s.length>i&&(s=s.slice(0,i)),E.setRecentItem(e,s,t,c),s},removeRecentItem:function(e,t,n){var r=E.getRecentItem(e,n).filter((function(e){return e!==t.toString()}));E.setRecentItem(e,r,n)}},A=function(e){return"recently:shared:to:".concat(e)},k={getRecentlySharedTo:function(e){return E.getRecentItem(A(e),b.SG)},addRecentlySharedTo:function(e,t){return E.addRecentItem(A(e),b.SG,t)}},w=n(59087),S=n(52076),C=n(70065),x=n(99910),O=n(39023),I=n(66703),j="share.embedSize";function L(e){var t=e.autoplay,n=e.setAutoplay,r=e.videoSize,i=e.setVideoSize,o=e.videoSizes;return a().createElement("div",{className:"d-flex align-items-center"},!!o.length&&a().createElement(a().Fragment,null,a().createElement("div",{className:"me-1"},a().createElement(I.x,{namespace:j,phrase:"videoSize"})),a().createElement("div",{className:"pe-3"},a().createElement(x.Dropdown,null,a().createElement(x.Dropdown.Toggle,{id:"embed-resolution",variant:"outline-dark"},r.label),a().createElement(x.Dropdown.Menu,null,o.map((function(e){return a().createElement(x.Dropdown.Item,{key:"".concat(e.width,"x").concat(e.height),onClick:function(){return i(e)}},e.label)})))))),a().createElement("div",{className:"me-2"},a().createElement(I.x,{namespace:j,phrase:"autoplay"})),a().createElement(O.X,{id:"autoplay-checkbox",checked:t,onChange:function(){return n(!t)}}))}var P,N=n(22218),T=n(74421),D=n(40221);!function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos",e.PinnedVideos="pinnedVideos"}(P||(P={}));var U=n(84657);n(48050);var B,R,z,V,M=n(332),F=n(91432),G=n(48318);(V=B||(B={})).Newest="newest",V.Oldest="oldest",V.RecentlyUpdated="recently_added",V.AtoZ="atoz",V.ZtoA="ztoa",(z=R||(R={})).OwnedByMe="owned_by_me",z.Followed="followed",z.All="all",G.G,n(50028);var H=n(85887),X=n(12927),q=(n(15970),function(e){var t={query:U.v.SERIES};return{url:l._.urlBuilder("{gateway}/v1/objects/".concat(e),t),publicUrl:l._.urlBuilder("/api/objects/".concat(e),t),key:"series:".concat(e)}}),W=n(77131),Z=o.T.encloseNamespace("shared.share"),Y={getObjectTypeId:function(e){switch(e){case"video":return T.E.Video;case"playlist":return T.E.Playlist;case"subject":return T.E.Subject;case"series":return T.E.Series;case"interactive":return T.E.Interactive;case"clip":return T.E.Clip}},createLink:function(e){var t={resourceId:e.entity.id,overrideRestrictions:!1};e.password&&(t.password=e.password),e.linkExpireDate&&(t.linkExpireDate=e.linkExpireDate),c.a.fetch(e.dispatch,g.createShareLink(t,(function(t){S.k.logUserAction(t,S.k.mergeOptions(Y.getAnalyticsOptions(e.entityType),{actionType:N.Vw.Create,entity:N.py.ShareLink,eventVersion:N.eq.V3})),e.success&&e.success(t)}),(function(){e.alerts.error(Z("createLinkError",{name:e.entity.name}))})))},updateLink:function(e,t,n,r,a,i,o,s){c.a.fetch(e,g.editShareLink(r,a,(function(e){S.k.logUserAction(e,S.k.mergeOptions(Y.getAnalyticsOptions(n),{actionType:N.Vw.Edit,entity:N.py.ShareLink,eventVersion:N.eq.V3})),o&&o(e),i.success(Z("editSuccess",{name:t.name,escapeText:!0}))}),(function(){s&&s(),i.error(Z("editError",{name:t.name,escapeText:!0}))})))},deleteLink:function(e,t,n,r,a,i,o){c.a.fetch(e,g.deleteShareLink(r,(function(){S.k.logUserAction({shareLink:r},S.k.mergeOptions(Y.getAnalyticsOptions(n),{actionType:N.Vw.Delete,entity:N.py.ShareLink})),i&&i(),a.success(Z("deleteSuccess",{name:t.name,escapeText:!0}))}),(function(){a.error(Z("deleteError",{name:t.name,escapeText:!0}))}),(function(){o&&o()})))},createOrUpdateDirectShare:function(e){var t=e.dispatch,n=e.entity,r=e.entityType,a=e.currentUser,i=e.recipients,o=e.sentDirectShare,s=e.message,l=e.onSuccess,u=e.onError,d=e.onDone,m=function(e){l&&l(e),S.k.logUserAction(Object.assign(Object.assign({},n),{shareCount:i.length}),S.k.mergeOptions(Y.getAnalyticsOptions(r),{actionType:N.Vw.Share,descriptor:N.YM.DirectShare,eventVersion:N.eq.V3})),i.map((function(e){k.addRecentlySharedTo(a.id,{id:e.id})}))},p={objectId:n.id,objectTypeId:Y.getObjectTypeId(r),recipients:i,message:s},f={recipients:i,message:s},y=o?g.updateDirectShareRecipients(o.id,f,m,u,d):g.createDirectShare(p,m,u,d);c.a.fetch(t,y)},removeDirectShareRecipient:function(e,t,n,r,a,i){c.a.fetch(e,g.removeDirectShareRecipient(r.id,t,(function(e){a&&a(e),S.k.logUserAction({shareCount:1},S.k.mergeOptions(Y.getAnalyticsOptions(n),{actionType:N.Vw.Unshare}))}),i))},getDirectShareRecipientsRequest:function(e,t){var n;return!!(null===(n=null==t?void 0:t.recipients)||void 0===n?void 0:n.length)&&g.getDirectShareRecipientsById(t.id,t.recipients,e)},getAnalyticsEntity:function(e){switch(e){case"playlist":return N.py.Playlist;case"subject":return N.py.Classification;case"video":return N.py.Video;case"series":return N.py.Series;case"interactive":return N.py.Interactive;case"clip":return N.py.Clip}},getAnalyticsOptions:function(e){return{entity:Y.getAnalyticsEntity(e),location:N.LZ.Popup,workflowPhase:N.eu.Complete}},getFetchFunctionByType:function(e){switch(e){case"video":return function(e){return c.a.useBasicFetch(W.R.video(e))};case"playlist":return function(e){return c.a.useBasicFetch(function(e,t,n){return{url:l._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"".concat(U.v.PLAYLIST,",_isClickViewCurated,_liteOwner")}),publicUrl:l._.urlBuilder("/api/objects/".concat(e),{query:"".concat(U.v.PLAYLIST,",_isClickViewCurated")}),key:"playlist:".concat(e),success:t,error:n}}(e))};case"subject":return function(e,t){return c.a.useBasicFetch(function(e,t,n){return{url:l._.urlBuilder("/api/domain/v1/subjects/".concat(e),{query:U.v.CLASSIFICATION(t)}),publicUrl:l._.urlBuilder("/api/subjects/classifications/".concat(e),{query:U.t.CLASSIFICATION}),key:"classification:".concat(e),error:n}}(e,t))};case"series":return function(e){return c.a.useBasicFetch(q(e))};case"interactive":return function(e){return c.a.useBasicFetch(F.b.interactiveMetadata(e))};case"clip":return function(e){return c.a.useBasicFetch(M.e.clip(e))}}},getImageUrl:function(e){var t,n,r,a;return"thumbnail"in e&&e.thumbnail?null===(t=e.thumbnail)||void 0===t?void 0:t.url:"_thumbnail"in e&&e._thumbnail?null===(n=e._thumbnail)||void 0===n?void 0:n.url:"cover"in e?null===(r=e.cover)||void 0===r?void 0:r.url:"tallPoster"in e?null===(a=e.tallPoster)||void 0===a?void 0:a.url:""}},J=n(42905),K={embedHtmlInput:"mwvd0",copyBtnContainer:"myePx"};function Q(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,a,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(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)?_(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 _(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 $="share.copyEmbedHtml",ee=o.T.encloseNamespace($);function te(e){var t=J.i.getEmbedResolutions(),n=Q(a().useState("copy"),2),r=n[0],i=n[1],o=Q(a().useState(!1),2),c=o[0],s=o[1],l=Q(a().useState(t.find((function(e){return"100%"===e.width}))),2),u=l[0],d=l[1],m=Q(a().useState(!1),2),p=m[0],f=m[1],y=J.i.buildEmbedUrl({embedUrl:e.embedUrl,host:e.config.primaryUrl,shareId:e.shareId,autoplay:c}),v=J.i.getEmbedString({url:y,size:u});return a().createElement(I.D.Provider,{value:$},a().createElement("label",null,a().createElement(I.x,{namespace:$,phrase:"label"})),a().createElement("div",{className:"position-relative mb-3"},a().createElement("textarea",{className:"form-control rounded w-100 h-100 ".concat(K.embedHtmlInput),spellCheck:!1,value:v,rows:7,readOnly:!0}),a().createElement(w.CopyToClipboard,{onCopy:function(){i("copied"),setTimeout((function(){return i("copy")}),2e3),p||(f(!0),S.k.logUserAction(Object.assign(Object.assign({},e.entity),{embedDetails:{size:u,autoplay:c}}),S.k.mergeOptions(Y.getAnalyticsOptions(e.entityType),{actionType:C.Vw.Share,descriptor:C.YM.CopyEmbedHtml,eventVersion:C.eq.V3})))},text:v},a().createElement("button",{className:"btn btn-outline-dark border border-secondary position-absolute bottom-0 end-0 ".concat(K.copyBtnContainer),type:"button"},ee(r)))),a().createElement(L,{autoplay:c,setAutoplay:s,videoSize:u,setVideoSize:d,videoSizes:t}))}var ne=n(58424),re=n(83996),ae="shared.share";function ie(e){return a().createElement(a().Fragment,null,a().createElement("div",{className:"mb-3"},a().createElement(te,{embedUrl:e.shareLink.embedUrl,entity:e.entity,entityType:e.entityType,config:e.config,entityId:e.entityId,shareId:e.shareLink.id,analyticsOptions:e.analyticsOptions})),a().createElement(re.u,null,a().createElement(ne.L,{onClick:e.onClickCancel,className:"btn btn-outline-dark"},a().createElement(I.x,{namespace:ae,phrase:"back"}))))}var oe=n(42648),ce=n(39396),se=n(63791),le={hoverBackground:"ICTmv"},ue="share.getEmbedCode";function de(e){return a().createElement(ne.L,{onClick:e.onClickGetEmbedCode,className:"d-inline-block p-1 pe-2 rounded-1 ".concat(le.hoverBackground)},a().createElement("div",{className:"d-flex align-items-center"},a().createElement("div",{className:"bg-dark text-white rounded-1 me-2"},a().createElement(ce.x,{svgName:se.vn.Code,size:ce.S.Large})),a().createElement(I.x,{namespace:ue,phrase:"getEmbedCode"})))}var me=n(51566),pe=n(71185),fe=n(56285),ye=n(45428);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}var he,ge=o.T.encloseNamespace("share.shareLinkInfo");function be(e,t,n){var r;if(!e||!t)return null;if(n)return ge("justMySchoolTeachers");if(!X.M.isVideoType(e))return ge("collectionRating");var a=ye.l.getWeightedRestriction(null===(r=e._restrictions)||void 0===r?void 0:r.value);if(a&&!a.yearGroup)return ge("onlyAdmins");var i,o,c,s=X.M.getRating(e),l=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 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}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}(t);try{for(l.s();!(c=l.n()).done;){var u=c.value;(!i||u.value>i.value)&&(i=u),a&&u.value<=a.yearGroup||s&&u.rating.value<s.value||(!o||u.value<o.value)&&(o=u)}}catch(e){l.e(e)}finally{l.f()}return o?o.value===i.value?ge("maxYearGroup",{yearGroup:i.name}):ge("yearGroupRange",{yearGroup:o.name}):ge("onlyStaff")}function Ee(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,a,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ae(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)?Ae(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 Ae(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(e){e.Expired="Expired",e.Active="Active"}(he||(he={}));var ke=o.T.encloseNamespace("share.shareLinkInfo"),we=function(e){var t=e.linkExpireDate,n=e.isPasswordProtected,r=e.status;if(!t&&!n)return function(e){var t=e.entityTypeId,n=e.privacy,r=e.hasStudentExp,a=e.entity,i=e.yearGroups;if(t===T.E.Topic||t===T.E.Series)return{icon:se.vn.VisibleOn,text:ke(r?"justMySchoolTeachers":"justMySchoolDescription")};if(!Array.isArray(n))switch(n.privacy){case"public":return{icon:se.vn.VisibleOn,text:ke("publicDescription")};case"protected":return n.overrideRestrictions?{icon:se.vn.VisibleOn,text:ke("clickViewOnly")}:{icon:se.vn.Lock,text:be(a,i,r)};case"just_my_customer":return n.overrideRestrictions?{icon:se.vn.Lock,text:ke(r?"justMySchoolTeachers":"justMySchoolDescription")}:{icon:se.vn.Lock,text:be(a,i,r)};case"restricted":case"private":return{icon:se.vn.Lock,text:ke("privateDescription")};default:return{}}}(e);if(!t)return{icon:se.vn.Lock,text:ke("password")};var a=fe.O.isToday(t),i=fe.O.diffBetween(t,new Date,"day");if(!n){var o=a?ke("expiryToday"):ke("expiry",{days:i});return r===he.Expired&&(o=ke("expired")),{icon:se.vn.Timer,text:o}}var c=a?ke("passwordExpiryToday"):ke("passwordExpiry",{days:i});return r===he.Expired&&(c=ke("passwordExpired")),{icon:se.vn.Lock,text:c}};function Se(e){var t=e.active,n=e.title,r=e.description,i=e.onClick;return a().createElement("li",{className:"".concat(t?"bg-light-blue":""," dropdown-item d-flex align-items-center justify-content-between"),onClick:t?null:i},a().createElement("div",{className:"me-2"},a().createElement("p",{className:"fw-semibold mb-1"},n),a().createElement("p",{className:"font-size-sm mb-0"},r)),t&&a().createElement(ce.x,{svgName:se.vn.Check}))}function Ce(e){var t=Ee(a().useState(!1),2),n=t[0],r=t[1],i=Ee(a().useState(null),2),o=i[0],c=i[1],s=we(e),l=s.icon,u=s.text;a().useEffect((function(){r(e.privacy.canManageAccess),c(e.privacy.privacy)}),[e.privacy]);var d=n?"just_my_customer":"protected",m=!e.isPasswordProtected&&!e.linkExpireDate&&e.shareOverrideRestrictions&&!e.hasStudentExp;return a().createElement("div",{className:"d-flex align-items-center"},m?a().createElement("div",{className:"btn-group"},a().createElement("button",{className:"btn border-0 info-link dropdown-toggle p-1 bg-light-blue-hover","data-bs-toggle":"dropdown"},a().createElement(ce.x,{svgName:l,className:"svg-container me-1"}),a().createElement("span",{className:"me-1"},u)),a().createElement("ul",{className:"dropdown-menu cursor-pointer w-100"},n&&a().createElement(Se,{active:"public"===o,title:ke("public"),description:ke("publicDescription"),onClick:function(){return e.onClickSavePrivacy("public",!1)}}),a().createElement(Se,{active:o===d&&e.privacy.overrideRestrictions,title:ke("justMySchool"),description:ke(n?"justMySchoolDescription":"clickViewOnly"),onClick:function(){return e.onClickSavePrivacy(d,!0)}}),a().createElement(Se,{active:o===d&&!e.privacy.overrideRestrictions,title:ke("respectRatings"),description:be(e.entity,e.yearGroups,e.hasStudentExp),onClick:function(){return e.onClickSavePrivacy(d,!1)}}),a().createElement(Se,{active:"private"===o,title:ke("private"),description:ke("privateDescription"),onClick:function(){return e.onClickSavePrivacy("private",!1)}}))):a().createElement(a().Fragment,null,a().createElement(ce.x,{svgName:l,className:"svg-container me-1"}),a().createElement("span",null,u)))}var xe=n(63946);function Oe(){return a().createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a().createElement("circle",{cx:"12",cy:"12",r:"12",fill:"url(#pattern0)"}),a().createElement("defs",null,a().createElement("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},a().createElement("use",{xlinkHref:"#image0_3558_14996",transform:"scale(0.00520833)"})),a().createElement("image",{id:"image0_3558_14996",width:"192",height:"192",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAYAAABS3GwHAAAAAXNSR0IArs4c6QAAJ41JREFUeAHtfQm0XFWZ7r+r7jxPuTeXhExkgISYNFOGmwBJUEB8IPSD1whERXR1A22Cgv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njhOu5izQ10i1n7wXt4/79OsoT61K1NTFVvM85AQgz2jC4s765fgkFAzewIFzD73NNj7qT+/ZPkM+/jppaNgnBg4scpJwVgMi6NvZNKaLDPZdTMHgtv1/OA+dsXRFj0IuXyOd7nCaUPium7lccwhvJpey81wIQVa+GcbWfNm44m1sFGPFazl/JJhaIkihvmfEoRC9ndBOX5SUuxwZauvwtIZ50qO+QGUWON5daABQcMwfQHS0LyAhwy2AKxUK+pucmZEEYtL5mgl34N1B1/eu5MJBVVKHUWQuAlD1jHc3u0sHemSSGZ1FQzGKwzWKBGLl61nXqZDWEDzjtXZz2LvIZu1j9+H1qLN6tuzVj60z2RguAjDtxuoVMwRthYZjCaw91ZIg6EgYfesBXgmFgUchdqgLui4euSEOIQX43YF6JrwQDsUYrh23jsK38vo3f7TPBXiR2pdKOTpwsSXvv/x8AJDjD09C0zQAAAABJRU5ErkJggg=="})))}function Ie(){return a().createElement("svg",{viewBox:"0 0 40 40",fill:"none"},a().createElement("path",{d:"M29.692 15.31c.58 0 1.146-.173 1.628-.5a2.96 2.96 0 001.078-1.331 3.004 3.004 0 00-.634-3.235 2.918 2.918 0 00-1.5-.812 2.894 2.894 0 00-1.693.169 2.938 2.938 0 00-1.314 1.093 2.997 2.997 0 00.364 3.748 2.91 2.91 0 002.071.869zM20.043 26.267V13.849a.9.9 0 00-.259-.633.877.877 0 00-.624-.262H6.883a.877.877 0 00-.624.262.9.9 0 00-.259.633v12.418c0 .24.092.469.257.64.165.172.39.27.626.276H19.16a.899.899 0 00.626-.276.923.923 0 00.257-.64zm-3.51-10.389v1.92h-2.37v6.68H11.88V17.93H9.51v-2.182h7.022v.13z",fill:"#fff"}),a().createElement("path",{d:"M21.874 14.132v.917a4.03 4.03 0 002.05-1.47c.512-.699.79-1.545.793-2.415 0-1.1-.431-2.154-1.199-2.932a4.065 4.065 0 00-2.893-1.214 4.065 4.065 0 00-2.894 1.214 4.175 4.175 0 00-1.199 2.932h2.391a2.996 2.996 0 012.061.887c.55.552.868 1.297.89 2.081zM26.332 17.1h-4.458v8.883c0 .8-.309 1.566-.86 2.138-.552.57-1.302.9-2.091.917h-4.588a7.047 7.047 0 003.265 3.317c1.427.7 3.046.887 4.593.532a6.99 6.99 0 003.918-2.486 7.152 7.152 0 001.535-4.418v-7.551a1.348 1.348 0 00-.385-.942 1.313 1.313 0 00-.929-.39zM32.772 17.1h-3.597c.206.414.316.87.323 1.332v7.551a9.1 9.1 0 01-.516 2.859c.236.021.474.021.71 0a4.28 4.28 0 003.046-1.278A4.394 4.394 0 0034 24.477v-6.045c0-.339-.126-.665-.354-.912a1.307 1.307 0 00-.874-.42z",fill:"#fff"}))}var je={msTeamsContainer:"mPAD2",avatar:"qmP52"},Le="share.shareIntegrations";function Pe(){var e="".concat(je.avatar," border border-light rounded-circle overflow-hidden");return a().createElement(xe.u,{title:o.T.getPhrase(Le,"shareThroughIntegrations"),spanHack:!0},a().createElement("ul",{className:"list-unstyled d-flex mb-0"},a().createElement("li",{className:e,style:{zIndex:1}},a().createElement(Oe,null)),a().createElement("li",{className:"".concat(e," ").concat(je.msTeamsContainer),style:{zIndex:0}},a().createElement(Ie,null))))}var Ne={normal:"Q1UGv",copyBtn:"J3fBx"};function Te(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 De=o.T.encloseNamespace("shared.copyInput");function Ue(e){var t,n,a=(t=r.useState(!1),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,a,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Te(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)?Te(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.")}()),i=a[0],o=a[1],c=r.createElement("div",{className:"input-group"},r.createElement("input",{type:"text",autoComplete:"off",className:"form-control ".concat("normal"===e.styling?Ne.normal:""),spellCheck:!1,value:e.value,readOnly:!0}),r.createElement(w.CopyToClipboard,{text:e.value},r.createElement("button",{className:"btn btn-outline-dark border border-secondary py-0 text-nowrap",onClick:function(t){t.preventDefault(),e.onCopy&&e.onCopy(),i||(o(!0),setTimeout((function(){return o(!1)}),2e3))}},i?e.copiedText||De("copied"):e.copyText||De("copy"))));return e.label?r.createElement(x.Form.Group,{className:"form-group"},r.createElement(x.Form.Label,null,e.label),c):c}function Be(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}Ue.defaultProps={styling:"normal"};var Re="share.shareAsLink";function ze(e){var t,n,r=(t=a().useState(!1),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,a,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Be(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)?Be(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.")}()),i=r[0],o=r[1];return a().createElement(a().Fragment,null,a().createElement("div",{className:"d-flex justify-content-between align-items-center"},a().createElement("div",{className:"".concat(e.shareLink?"w-100":"w-75 d-flex align-items-center")},e.shareLink?a().createElement(a().Fragment,null,a().createElement("div",{className:"d-flex justify-content-between align-items-center mb-1"},a().createElement(Ce,{linkExpireDate:e.shareLink.linkExpireDate,isPasswordProtected:e.shareLink.isPasswordProtected,privacy:e.privacy,entityTypeId:e.shareLink.objectTypeId,status:e.shareLink.status,onClickSavePrivacy:e.onClickSavePrivacy,hasStudentExp:e.hasStudentExp,entity:e.entity,yearGroups:e.yearGroups,shareOverrideRestrictions:e.shareOverrideRestrictions})),a().createElement(Ue,{value:e.shareLink.url,onCopy:function(){i||(o(!0),S.k.logUserAction(Object.assign({},e.entity),S.k.mergeOptions(Y.getAnalyticsOptions(e.entityType),{actionType:C.Vw.Share,descriptor:C.YM.CopyLink,eventVersion:C.eq.V3})))}})):a().createElement("div",{className:"d-flex align-items-center"},a().createElement("div",{className:"me-2"},e.enableIntegrations?a().createElement(Pe,null):a().createElement(ce.x,{svgName:se.vn.Link,className:"svg-container"})),a().createElement("span",{className:"fw-semibold"},a().createElement(I.x,{namespace:Re,phrase:"createLink"})))),!e.shareLink&&a().createElement(ne.L,{className:"info-link",onClick:e.onClickCreateLink},a().createElement(I.x,{phrase:"createLink"}))))}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}var Me={};function Fe(e,t){var n,r,i=(n=a().useState(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(n,r)||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}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],c=i[1];return a().useEffect((function(){if(e&&t&&!Me[e]){var n=document.createElement("script");return n.src=e,n.async=!0,n.onload=function(){Me[e]=!0,window.setTimeout((function(){return c(!0)}),0)},document.body.appendChild(n),function(){n.onload=null,document.body.removeChild(n)}}}),[e,t]),Me[e]||o}var Ge="g-share-to-classroom",He=n(79410),Xe=n(49642),qe=n(52086);function We(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 Ze,Ye="shared.lookingForIntegration";function Je(e){var t,n,a=(t=(0,He.D)(qe.g.LOOKING_FOR_INTEGRATION,{show:!0},{storage:b.Z1.LocalStorage}),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,a,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return We(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)?We(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.")}()),i=a[0],c=a[1];return i.show?r.createElement("div",{className:"d-flex justify-content-between rounded p-2 bg-light-blue"},r.createElement(Xe.F,{appLink:e.appLink,onClick:function(){var t;return null===(t=e.closePopup)||void 0===t?void 0:t.call(e)},className:"d-inline-flex align-items-center mb-0"},r.createElement("span",{className:"ms-1 fw-semibold text-info"},o.T.getPhrase(Ye,"lookingForIntegration"))),r.createElement(ce.x,{svgName:se.vn.Close,size:ce.S.Small,className:"text-info d-inline-block svg-container cursor-pointer",onClick:function(){return c({show:!1})}})):r.createElement(r.Fragment,null)}!function(e){e.GoogleClassroom="google-classroom",e.MicrosoftTeams="microsoft-teams",e.Vivi="vivi",e.AppleTv="apply-tv"}(Ze||(Ze={}));var Ke="32";function Qe(e){var t,n,r,i,o=function(e){e&&(window.___gcfg={parsetags:"explicit"});var t=Fe("https://apis.google.com/js/platform.js",e);return a().useEffect((function(){var n,r;e&&t&&(null===(r=null===(n=window.gapi)||void 0===n?void 0:n.sharetoclassroom)||void 0===r||r.go(Ge))}),[e,t]),Ge}(null===(t=e.integrations)||void 0===t?void 0:t.includes(Ze.GoogleClassroom));if(r=null===(n=e.integrations)||void 0===n?void 0:n.includes(Ze.MicrosoftTeams),i=Fe("https://teams.microsoft.com/share/launcher.js",r),a().useEffect((function(){var e;r&&i&&(null===(e=window.shareToMicrosoftTeams)||void 0===e||e.renderButtons())}),[r,i]),!e.integrations.length)return a().createElement(Je,{appLink:e.appLink,closePopup:e.closePopup});var c="sm"===e.iconSize?"24":Ke,s={height:"".concat(c,"px"),width:"".concat(c,"px")};return a().createElement("div",{className:"d-flex gap-1"},e.integrations.includes(Ze.GoogleClassroom)&&a().createElement("div",{id:o,className:"rounded partial-loading-background",style:s},a().createElement("div",{className:"g-sharetoclassroom","data-size":c,"data-url":e.url})),e.integrations.includes(Ze.MicrosoftTeams)&&a().createElement("div",{className:"teams-share-button rounded ".concat(je.msTeamsContainer),style:s,"data-href":e.url,"data-button-type":"smallTransWhite","data-preview":"false","data-icon-px-size":c}))}var _e=n(92802),$e=n(5173),et=n(63038),tt=n(86347),nt=o.T.encloseNamespace("share.shareMessage"),rt=$e.Ry().shape({message:$e.Z_().max(280,(function(){return nt("maxMessageLen")}))});function at(){var e=(0,tt.b)();return a().createElement(_e.l0,null,a().createElement(et.W,{component:"textarea",name:"message",id:"message",placeholder:nt("placeholder"),value:e.values.message,label:nt("label"),showOptionalLabel:!0}),a().createElement(re.u,null,a().createElement(re.u.Submit,{variant:"dark",text:nt("share")})))}function it(e){return a().createElement(tt.n,{initialValues:{message:""},validationSchema:rt,onSubmit:function(t,n){var r=null;t.message&&(r=t.message),e.onClickShare(r,n)},allowInitialSubmit:!0},a().createElement(at,null))}var ot=n(74483),ct=n(13034),st=n(16771);function lt(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,a,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(e,t)||dt(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 ut(e){return function(e){if(Array.isArray(e))return mt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||dt(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 dt(e,t){if(e){if("string"==typeof e)return mt(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)?mt(e,t):void 0}}function mt(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 pt="shared.share",ft=o.T.encloseNamespace(pt);function yt(e,t,n,r){if(!e)return[];var a=[].concat(ut(t),ut(n)).map((function(e){return e.id}));return e.filter((function(e){return!a.includes(e.id)&&e.id!==r}))}function vt(e){var t,n,r=lt(a().useState([]),2),i=r[0],o=r[1],c=lt(a().useState(!1),2),s=c[0],u=c[1],d=(0,st.T)().hasPermissions,m=d(ct.C.ManageIntegrations),p=d(ct.C.ShareToUsers)||d(ct.C.ShareToClassrooms)||d(ct.C.ShareToClassroomGroups),f=yt(e.recentlySharedTo,i,e.directShareRecipients,e.currentUser.id);return a().useEffect((function(){u(!!e.shareLinkIsLoading)}),[e.shareLinkIsLoading]),a().createElement(a().Fragment,null,p&&a().createElement("div",{className:"bg-white rounded-bottom-3 pt-3 px-3 mb-2"},a().createElement("div",{className:"d-flex justify-content-between align-items-center pb-3"},a().createElement(pe.R,{key:null!==(t=null==f?void 0:f.map((function(e){return e.id})).join(":"))&&void 0!==t?t:"share:search",getRemoteUrl:function(){return l._.safeUrlConcat(e.gatewayApiUrl,"v4/search")},getRemotePostBody:function(t){var n=[];return d(ct.C.ShareToUsers)&&n.push({index:"user",filters:{userProfile:{status:["".concat(ot.w.Active.toLowerCase())],customerId:e.currentUser.customerId}}}),d(ct.C.ShareToClassrooms)&&n.push({index:"classroom"}),d(ct.C.ShareToClassroomGroups)&&n.push({index:"classroom_group"}),{query:t,indices:n,searchType:"user",limit:pe.d}},requestHeaders:e.searchRequestHeaders,formatRemoteSuggestions:function(t){return yt(null==t?void 0:t.results,i,e.directShareRecipients,e.currentUser.id)},recentSearches:f,selections:i,onSuggestionSelected:function(e){return o([].concat(ut(i),[e]))},removeSelection:function(e){return o(i.filter((function(t){return t.id!==e.id})))},placeholder:ft("searchPlaceholder"),imageCdnUrl:e.imageCdnUrl,activationLength:2,fetchSelectionMembers:e.fetchRecipientUsers&&function(t){e.fetchRecipientUsers&&e.fetchRecipientUsers(t,(function(e){var n=[];i.forEach((function(r){var a;if(r.id!==t)return n.push(r);var i=H.t.deepClone(r);(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.length)?i.users=e:i.users={count:0,data:[],pagination:null},n.push(i)})),o(D.m.uniq(n,"id"))}))},debounceTime:300,emptyStateImageUrl:e.emptyStateImageUrl,errorStateImageUrl:e.errorStateImageUrl,hasStudentExperience:d(ct.C.StudentExperience)})),!i.length&&e.directShareRecipients.length?a().createElement("div",null,a().createElement("h3",{className:"font-size-normal"},a().createElement(I.x,{phrase:"sharedTo"})),a().createElement(oe.$B,{autoHeight:!0},a().createElement("ul",{className:"list-unstyled"},e.directShareRecipients.map((function(t){return a().createElement("li",{key:t.id,className:"mb-2 pe-1"},a().createElement(me.j,{entity:t,imageCdnUrl:e.imageCdnUrl,removeRecipient:e.onClickRemoveRecipient,showDisplayName:d(ct.C.StudentExperience)}))}))))):a().createElement(a().Fragment,null),!!i.length&&a().createElement("div",{className:"pb-3"},a().createElement(it,{onClickShare:function(t,n){e.onClickShare(i.map((function(e){return{id:e.id,typeId:e.typeId}})),t,(function(){o([]),n()}))}}))),!i.length&&!s&&a().createElement("div",{className:"bg-white p-3 ".concat(p?"rounded-3":"rounded-bottom-3")},a().createElement("div",null,e.shareLink&&a().createElement("div",{className:"fw-semibold mb-2"},a().createElement(I.x,{namespace:pt,phrase:"shareLink"})),a().createElement(ze,{entity:e.entity,entityType:e.entityType,shareLink:e.shareLink,onClickShowSettings:e.onClickShowSettings,onClickCreateLink:function(){u(!0),e.onClickCreateLink()},shareLinkIsLoading:e.shareLinkIsLoading,canAddPolicies:e.canAddPolicies,privacy:e.privacy,entityTypeId:e.entity.typeId,onClickSavePrivacy:e.onClickSavePrivacy,enableIntegrations:e.enableIntegrationBanner,hasStudentExp:d(ct.C.StudentExperience),yearGroups:e.yearGroups,shareOverrideRestrictions:e.shareOverrideRestrictions}),e.shareLink&&e.enableIntegrationBanner&&a().createElement("div",{className:"".concat((null===(n=e.integrations)||void 0===n?void 0:n.length)&&e.canEmbed?"float-end":""," mt-1 pt-1")},a().createElement(Qe,{integrations:e.integrations,url:e.shareLink.url,closePopup:e.closePopup,appLink:m?e.integrationSettingAppLink:e.messagePopupAppLink})),e.shareLink&&e.canEmbed&&a().createElement("div",{className:"mt-1"},a().createElement(de,{onClickGetEmbedCode:e.onClickGetEmbedCode})),e.shareLink&&e.canAddPolicies&&a().createElement("button",{className:"btn btn-link text-info mt-2 p-0",onClick:e.onClickShowSettings},a().createElement(I.x,{namespace:pt,phrase:"advancedSettings"})))),s&&a().createElement("div",{className:"bg-white rounded-3 p-3 text-center"},a().createElement(x.Spinner,{as:"div",animation:"border",role:"status"})))}var ht=30;function gt(e){if(!e)return null;var t=new Date;return t.setDate(t.getDate()+ht),t.toISOString()}var bt=n(9063),Et="shared.linkExpiry",At=o.T.encloseNamespace(Et);function kt(e){var t=(0,_e.u6)();return a().createElement("div",{className:"d-flex justify-content-between align-items-center pb-3"},a().createElement("div",null,a().createElement("label",{className:"m-0",htmlFor:""},a().createElement(I.x,{namespace:Et,phrase:"linkExpirationHeading"})),a().createElement("p",{className:"m-0"},a().createElement(I.x,{namespace:Et,phrase:"linkExpirationInfo"}))),a().createElement(xe.u,{title:At("passwordProtected"),disable:!e.passwordProtectLink,spanHack:!0,trigger:"hover"},a().createElement(bt.Z,{onClick:function(){e.passwordProtectLink||t.setFieldValue("linkExpireDate",gt(!t.values.linkExpireDate))},on:!!t.values.linkExpireDate,disabled:e.passwordProtectLink,showStateWhenDisabled:!0})))}var wt={passwordButton:"W9Jl8"};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 Ct=o.T.encloseNamespace("share.setPasswordInput");function xt(e){var t,n,a,i=(n=r.useState(!1),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(n,a)||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}}(n,a)||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=i[0],c=i[1],s=null===(t=(0,_e.u6)().errors)||void 0===t?void 0:t.password;return r.createElement(r.Fragment,null,r.createElement("input",{className:"form-control ".concat(s?"is-invalid":""),value:e.value,onChange:function(t){e.canEdit&&e.onChange(t.target.value)},type:o?"text":"password",placeholder:e.placeholder||Ct("passwordPlaceholder"),readOnly:!e.canEdit}),!!s&&r.createElement(x.Form.Control.Feedback,{type:"invalid"},s),!!e.canEdit&&r.createElement(ne.L,{className:wt.passwordButton,onClick:function(){return c(!o)}},r.createElement(ce.x,{svgName:o?se.vn.VisibleOn:se.vn.VisibleOff,title:Ct(o?"hidePassword":"revealPassword"),tooltipPlacement:"top"})),!e.canEdit&&!!e.canReset&&!!e.onReset&&r.createElement(ne.L,{className:wt.passwordButton,onClick:e.onReset},r.createElement(ce.x,{svgName:se.vn.Close,title:Ct("resetPassword"),tooltipPlacement:"top"})))}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}var It="shared.linkPassword",jt="********";function Lt(e){var t,n,r,i=e.passwordProtectLink,o=e.setPasswordProtectLink,c=(0,_e.u6)(),s=(n=a().useState(!!(null===(t=e.shareLink)||void 0===t?void 0:t.isPasswordProtected)),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(n,r)||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}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],u=s[1];return a().createElement("div",{className:"pb-3"},a().createElement("div",{className:"d-flex justify-content-between align-items-center"},a().createElement("div",null,a().createElement("label",{className:"m-0",htmlFor:""},a().createElement(I.x,{namespace:It,phrase:"passwordProtectHeading"})),a().createElement("p",{className:"m-0"},a().createElement(I.x,{namespace:It,phrase:"passwordProtectInfo"}))),a().createElement(bt.Z,{onClick:function(){var t;(null===(t=e.shareLink)||void 0===t?void 0:t.isPasswordProtected)&&c.setFieldValue("removePassword",i),c.setFieldValue("password",""),o(!i),c.setFieldValue("linkExpireDate",gt(!i))},on:i})),i&&a().createElement("div",{className:"position-relative mt-2"},a().createElement(xt,{value:l?jt:c.values.password,onChange:function(e){c.setFieldValue("password",e)},onReset:function(){c.setFieldValue("password",""),c.setFieldValue("removePassword",!0),u(!1)},canEdit:!l,canReset:!0})))}var Pt=(0,$e.Ry)().shape({removePassword:(0,$e.O7)(),resourceId:(0,$e.Z_)(),linkExpireDate:(0,$e.Z_)().nullable(),password:(0,$e.Z_)().test({name:"password-length",exclusive:!1,params:{},message:o.T.getPhrase("share.validation","minPassword"),test:function(e){return!((null==e?void 0:e.length)&&e.length<3)}}).default("")});function Nt(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 Tt="shared.share",Dt=o.T.encloseNamespace(Tt);function Ut(e){var t,n,r=(0,st.T)().hasPermissions,i=(t=a().useState(!!e.shareLink.isPasswordProtected),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,a,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Nt(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)?Nt(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.")}()),o=i[0],c=i[1];return a().createElement(_e.l0,null,e.onClickDeleteLink&&a().createElement("div",{className:"d-flex justify-content-between align-items-center pb-3"},a().createElement("div",null,a().createElement("label",{className:"mb-0"},a().createElement(I.x,{namespace:Tt,phrase:"deleteLinkLabel"})),a().createElement("p",{className:"mb-0"},a().createElement(I.x,{namespace:Tt,phrase:"deleteLinkDescription"}))),a().createElement(ne.L,{onClick:e.onClickDeleteLink,className:"info-link justify-self-start"},a().createElement(I.x,{phrase:"deleteLink"}))),r(ct.C.ManageShareLinkSettings)&&a().createElement(a().Fragment,null,a().createElement(kt,{passwordProtectLink:o}),e.shareOverrideRestrictions&&a().createElement(Lt,{shareLink:e.shareLink,passwordProtectLink:o,setPasswordProtectLink:c})),a().createElement(re.u,null,a().createElement(re.u.Cancel,{onClick:e.onClickCancel,text:Dt("back"),variant:"link"}),a().createElement(re.u.Submit,{variant:"dark"})))}function Bt(e){var t={password:"",removePassword:!1,linkExpireDate:e.shareLink.linkExpireDate,overrideRestrictions:e.shareLink.overrideRestrictions};return a().createElement(a().Fragment,null,a().createElement(tt.n,{initialValues:t,onSubmit:e.onClickSaveLink,castInitialValues:!1,validationSchema:Pt},a().createElement(Ut,{entity:e.entity,entityType:e.entityType,config:e.config,shareLink:e.shareLink,entityId:e.entityId,onClickCancel:e.onClickCancel,analyticsOptions:e.analyticsOptions,privacy:e.privacy,onClickDeleteLink:e.onClickDeleteLink,hasStudentExp:e.hasStudentExp,shareOverrideRestrictions:e.shareOverrideRestrictions})))}var Rt=n(71575),zt=n(8190),Vt=n(62709),Mt=n(15408),Ft=n(2491),Gt=n(91656),Ht=n(36357),Xt=o.T.encloseNamespace("shared.shared-utils"),qt={getShareIntegrations:function(e,t){return[{id:Ze.GoogleClassroom,name:Xt("googleClassroom"),enabled:e,settingName:Ht.E.ShareToGoogleClassroom},{id:Ze.MicrosoftTeams,name:Xt("msftTeams"),enabled:t,settingName:Ht.E.ShareToMicrosoftTeams}]}};function Wt(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 Zt="shared.share",Yt=o.T.encloseNamespace(Zt);function Jt(e){switch(e){case"video":return Yt("titleVideo");case"clip":return Yt("titleClip");case"interactive":return Yt("titleInteractive");case"series":return Yt("titleSeries");case"playlist":return Yt("titlePlaylist");case"subject":return Yt("titleTopic")}}var Kt=function(e){return"video"===e||"interactive"===e||"clip"===e},Qt=function(e){return"video"===e||"interactive"===e||"clip"===e};function _t(e){var t,n,r,o,s,l=(0,i.useDispatch)(),u=(0,Ft.Z)(),d=!e.gatewayApiUrl,m=(o=a().useState("main"),s=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(o,s)||function(e,t){if(e){if("string"==typeof e)return Wt(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)?Wt(e,t):void 0}}(o,s)||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.")}()),p=m[0],f=m[1],y=(0,st.T)().hasPermissions,v=c.a.useBasicFetch(Mt.N.currentUser()),h=Y.getFetchFunctionByType(e.entityType)(e.entityId,null===(t=v.data)||void 0===t?void 0:t.id),b=c.a.useBasicFetch(zt.L.config()),E=c.a.useBasicFetch(d&&Mt.N.token()),A=c.a.useBasicFetch(g.getShareLinkByObjectId(e.entityId)),w=c.a.useBasicFetch(g.getSentDirectShareByObjectId(e.entityId)),S=c.a.useBasicFetch((null===(n=v.data)||void 0===n?void 0:n.customerId)&&Y.getDirectShareRecipientsRequest(v.data.customerId,w.data)),C=v.data&&k.getRecentlySharedTo(v.data.id),x=!!(null==C?void 0:C.length),O=c.a.useBasicFetch(x&&g.getRecipientsById(C,v.data.customerId)),j=c.a.useBasicFetch(g.getPrivacy(e.entityId)),L=c.a.useBasicFetch((null===(r=v.data)||void 0===r?void 0:r.isAuthenticated)&&Vt.h.yearGroups(v.data.customerId)),P=(0,Gt.r)(null),N=P.shareToGoogleClassroom,T=P.shareToMicrosoftTeams,D=P.shareOverrideRestrictions,U=P.isLoadingSettings;function B(e,t){var n;(null===(n=t.recipients)||void 0===n?void 0:n.length)&&c.a.getFetch(l)(Y.getDirectShareRecipientsRequest(e,t))}function R(e,t){c.a.getFetch(l)(g.getRecipientUsers(e,t))}function z(){A.data||Y.createLink({dispatch:l,entity:h.data,entityType:e.entityType,alerts:u})}function V(t,n){Y.updateLink(l,h.data,e.entityType,A.data,t,u,(function(){return f("main")}),n)}function M(){Y.deleteLink(l,h.data,e.entityType,A.data,u,(function(){return f("main")}))}function F(t,n,r){Y.createOrUpdateDirectShare({dispatch:l,entity:h.data,entityType:e.entityType,currentUser:v.data,recipients:t,message:n,sentDirectShare:w.data,onSuccess:function(e){return B(v.data.customerId,e)},onError:function(){return u.error(Yt("directShareError",{name:h.data.name}))},onDone:r})}function G(t,n){Y.removeDirectShareRecipient(l,t,e.entityType,w.data,(function(e){return B(v.data.customerId,e)}),(function(){u.error(Yt("removeDirectShareError")),n&&n()}))}function H(e,t){"private"!==e?c.a.fetch(l,g.updatePrivacy(A.data.id,e,t,(function(){return u.success(Yt("privaciesSuccess",{name:h.data.name}))}),(function(){return u.error(Yt("privaciesError",{name:h.data.name}))}))):M()}var X=!(!v.data||!b.data||d&&!E.data||!w.hasCompleted||!j.data||!h.data||U||!L.hasCompleted);return a().createElement(I.D.Provider,{value:Zt},a().createElement(Rt.G,{title:Jt(e.entityType),closePopup:e.closePopup,showLoadingSpinner:!X,contentClassName:X&&p?"bg-transparent border-0":"",bodyClassName:"p-0"},function(){if(!X)return a().createElement(a().Fragment,null);switch(p){case"main":return a().createElement(vt,{shareLink:A.data,shareLinkIsLoading:A.isFetching,entity:h.data,entityType:e.entityType,directShareRecipients:S.data||[],recentlySharedTo:O.data||[],onClickCreateLink:z,onClickShowSettings:function(){return f("link-settings")},onClickShare:F,onClickRemoveRecipient:G,onClickGetEmbedCode:function(){return f("copy-embed")},analyticsOptions:Y.getAnalyticsOptions(e.entityType),gatewayApiUrl:e.gatewayApiUrl||b.data.gatewayApiUrl,imageCdnUrl:b.data.imageCdnUrl,searchRequestHeaders:d?{authorization:"Bearer ".concat(E.data.value)}:null,currentUser:v.data,fetchRecipientUsers:R,privacy:j.data,onClickSavePrivacy:H,canAddPolicies:Qt(e.entityType),emptyStateImageUrl:e.emptyStateImageUrl,errorStateImageUrl:e.errorStateImageUrl,integrations:(t=N,n=T,qt.getShareIntegrations(t,n).filter((function(e){return e.enabled})).map((function(e){return e.id}))),integrationSettingAppLink:e.integrationSettingAppLink,messagePopupAppLink:e.messagePopupAppLink,closePopup:e.closePopup,enableIntegrationBanner:e.enableIntegrationBanner,canEmbed:Kt(e.entityType),yearGroups:L.data,shareOverrideRestrictions:D});case"link-settings":return a().createElement("div",{className:"bg-white p-3 rounded-bottom-3"},a().createElement(Bt,{entity:h.data,entityType:e.entityType,config:b.data,shareLink:A.data,entityId:e.entityId,analyticsOptions:Y.getAnalyticsOptions(e.entityType),onClickSaveLink:V,onClickDeleteLink:M,onClickCancel:function(){return f("main")},privacy:j.data,hasStudentExp:y(ct.C.StudentExperience),shareOverrideRestrictions:D}));case"copy-embed":return a().createElement("div",{className:"bg-white p-3 rounded-bottom-3"},a().createElement(ie,{entity:h.data,entityType:e.entityType,config:b.data,shareLink:A.data,entityId:e.entityId,analyticsOptions:Y.getAnalyticsOptions(e.entityType),onClickCancel:function(){return f("main")}}))}var t,n}()))}},39023:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var r=n(1024);function a(e){var t=e.isLabelEllipsis,n=r.useRef(null);return r.useEffect((function(){n.current&&(e.checked?n.current.indeterminate&&(n.current.indeterminate=!1):!e.indeterminate||n.current.indeterminate?!e.indeterminate&&n.current.indeterminate&&(n.current.indeterminate=!1):n.current.indeterminate=!0)}),[n.current,e.indeterminate,e.checked]),r.createElement("div",{className:"form-check pe-2 ".concat(e.className)},r.createElement("input",{ref:n,type:"checkbox",className:"form-check-input",id:e.id,name:e.name,checked:e.checked,onChange:e.onChange,disabled:e.disabled}),r.createElement("label",{className:"form-check-label cursor-pointer align-top",htmlFor:e.id},r.createElement("span",{className:"".concat(t?"clamp-1":"")},e.label)))}a.defaultProps={checked:!1,label:"",className:""}},74483:function(e,t,n){"use strict";var r;n.d(t,{w:function(){return r}}),function(e){e.Disabled="Disabled",e.Active="Active",e.Inactive="Inactive"}(r||(r={}))},42905:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(57857),a=n(68003),i="shared.shared-utils",o={getEmbedResolutions:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=[{label:r.T.getPhrase(i,"small"),width:"640",height:"360"},{label:r.T.getPhrase(i,"medium"),width:"1014",height:"576"},{label:r.T.getPhrase(i,"large"),width:"1280",height:"720"}];return e&&t.unshift({label:r.T.getPhrase(i,"responsive"),width:"100%",height:"100%"}),t},getEmbedString:function(e){var t=e.url,n=e.size,r="100%"===n.width,a=r?'style="position:absolute; top:0; left:0; width:100%; height:100%;"':'width="'.concat(n.width,'" height="').concat(n.height,'"'),i='src="'.concat(t,'"'),o="<iframe ".concat(a," ").concat('frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen allow="autoplay"'," ").concat(i,"></iframe>");return r?'<div style="padding:56.25% 0 0 0; position:relative;">'.concat(o,"</div>"):o},buildEmbedUrl:function(e){var t=e.embedUrl,n=e.host,r=e.shareId,i=e.autoplay,o=e.consumerKey,c=t;c||(c=a._.safeUrlConcat(n,"share/embed/".concat(r)));var s={};return i&&(s.a=!0),o&&(s.consumerKey=o),a._.urlBuilder(c,s)}}},91969:function(e,t,n){"use strict";var r=n(47033),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,o,c,s,l,u=!1;t||(t={}),n=t.debug||!1;try{if(o=r(),c=document.createRange(),s=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=a[t.format]||a.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),c.selectNodeContents(l),s.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(c):s.removeAllRanges()),l&&document.body.removeChild(l),o()}return u}},44818:function(e,t,n){"use strict";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)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var a=c(n(1024)),i=c(n(91969)),o=["text","onCopy","options","children"];function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){!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)}(v,e);var t,n,c,s,y=(c=v,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(c);if(s){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return 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 m(e)}(this,e)});function v(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(m(e=y.call.apply(y,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,o=n.onCopy,c=n.children,s=n.options,l=a.default.Children.only(c),u=(0,i.default)(r,s);o&&o(r,u),l&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(t)})),e}return t=v,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,o),r=a.default.Children.only(t);return a.default.cloneElement(r,l(l({},n),{},{onClick:this.onClick}))}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),v}(a.default.PureComponent);t.CopyToClipboard=y,f(y,"defaultProps",{onCopy:void 0,options:void 0})},59087:function(e,t,n){"use strict";var r=n(44818).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},47033:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}}}]);