@clickview/library-editor 1.64.0-rc.1 → 1.64.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 (214) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/languages/en.json +1 -1
  3. package/dist/scripts/1010-5488aa2ff0.chunk.js +1 -0
  4. package/dist/scripts/1115-ea197312ba.chunk.js +1 -0
  5. package/dist/scripts/1200-5edfc011db.chunk.js +1 -0
  6. package/dist/scripts/1318-3fc90ae380.chunk.js +1 -0
  7. package/dist/scripts/1524-0256080e94.chunk.js +1 -0
  8. package/dist/scripts/1752-1cc77fb182.chunk.js +1 -0
  9. package/dist/scripts/1934-1deec5c14f.chunk.js +2 -0
  10. package/dist/scripts/2035-550073891d.chunk.js +1 -0
  11. package/dist/scripts/2539-4aab3368d8.chunk.js +1 -0
  12. package/dist/scripts/2591-06b808d96f.chunk.js +1 -0
  13. package/dist/scripts/2781-080a819ebe.chunk.js +2 -0
  14. package/dist/scripts/2781-080a819ebe.chunk.js.LICENSE.txt +1 -0
  15. package/dist/scripts/2803-b9bcf14dbc.chunk.js +1 -0
  16. package/dist/scripts/2888-bc66454b24.chunk.js +1 -0
  17. package/dist/scripts/299-f4a952cbbf.chunk.js +1 -0
  18. package/dist/scripts/3236-6a7cb9be48.chunk.js +2 -0
  19. package/dist/scripts/3236-6a7cb9be48.chunk.js.LICENSE.txt +1 -0
  20. package/dist/scripts/3305-5e7276a25d.chunk.js +1 -0
  21. package/dist/scripts/336-aaaad34c63.chunk.js +2 -0
  22. package/dist/scripts/336-aaaad34c63.chunk.js.LICENSE.txt +1 -0
  23. package/dist/scripts/3373-0b8fc10032.chunk.js +1 -0
  24. package/dist/scripts/3391-7d6d13408d.chunk.js +1 -0
  25. package/dist/scripts/3400-0cf6cbede5.chunk.js +1 -0
  26. package/dist/scripts/3450-4284a60805.chunk.js +1 -0
  27. package/dist/scripts/3475-8a3623ae22.chunk.js +1 -0
  28. package/dist/scripts/3639-ff8bf51fe5.chunk.js +1 -0
  29. package/dist/scripts/3643-cc5b2ec6d9.chunk.js +1 -0
  30. package/dist/scripts/3664-c8fe2e77de.chunk.js +1 -0
  31. package/dist/scripts/3763-93c217e1d6.chunk.js +1 -0
  32. package/dist/scripts/3873-a70c87d3a8.chunk.js +1 -0
  33. package/dist/scripts/4096-f73b3f1eb3.chunk.js +1 -0
  34. package/dist/scripts/4201-9fb1d6fa7e.chunk.js +1 -0
  35. package/dist/scripts/4245-ea180d7240.chunk.js +1 -0
  36. package/dist/scripts/4327-274f834810.chunk.js +1 -0
  37. package/dist/scripts/4567-ea4c943187.chunk.js +1 -0
  38. package/dist/scripts/4591-3158e38f59.chunk.js +1 -0
  39. package/dist/scripts/4796-715e3f2b8b.chunk.js +2 -0
  40. package/dist/scripts/4796-715e3f2b8b.chunk.js.LICENSE.txt +1 -0
  41. package/dist/scripts/5173-5459fe9617.chunk.js +1 -0
  42. package/dist/scripts/5180-35612cb57e.chunk.js +1 -0
  43. package/dist/scripts/5327-90b0daeedd.chunk.js +1 -0
  44. package/dist/scripts/5346-96ba841e31.chunk.js +1 -0
  45. package/dist/scripts/5412-806e4b03b6.chunk.js +1 -0
  46. package/dist/scripts/5418-d9b73741e6.chunk.js +1 -0
  47. package/dist/scripts/5424-e6d5e20449.chunk.js +1 -0
  48. package/dist/scripts/5513-ce9c27b731.chunk.js +1 -0
  49. package/dist/scripts/576-275aeaa88a.chunk.js +1 -0
  50. package/dist/scripts/5972-bd6ca57952.chunk.js +1 -0
  51. package/dist/scripts/6239-b216beeef2.chunk.js +1 -0
  52. package/dist/scripts/6350-fe2f5d07ae.chunk.js +1 -0
  53. package/dist/scripts/6439-8af974fe93.chunk.js +1 -0
  54. package/dist/scripts/6450-179a533a35.chunk.js +1 -0
  55. package/dist/scripts/6467-e4856f0f90.chunk.js +1 -0
  56. package/dist/scripts/6567-e6d3411b91.chunk.js +2 -0
  57. package/dist/scripts/{6567-02b07e94bc.chunk.js.LICENSE.txt → 6567-e6d3411b91.chunk.js.LICENSE.txt} +1 -1
  58. package/dist/scripts/6587-a52e6ae3db.chunk.js +1 -0
  59. package/dist/scripts/6591-1f53a56a4f.chunk.js +1 -0
  60. package/dist/scripts/6677-679046f587.chunk.js +1 -0
  61. package/dist/scripts/6697-72ac40931d.chunk.js +1 -0
  62. package/dist/scripts/6768-945c9c69c7.chunk.js +1 -0
  63. package/dist/scripts/6774-e23988f663.chunk.js +1 -0
  64. package/dist/scripts/6788-40d07b7ac5.chunk.js +1 -0
  65. package/dist/scripts/6796-2744de7ac8.chunk.js +1 -0
  66. package/dist/scripts/7071-21381973d1.chunk.js +1 -0
  67. package/dist/scripts/7182-700d11a1b6.chunk.js +2 -0
  68. package/dist/scripts/7190-9f654e9bab.chunk.js +1 -0
  69. package/dist/scripts/7197-46b37cfd17.chunk.js +2 -0
  70. package/dist/scripts/7197-46b37cfd17.chunk.js.LICENSE.txt +1 -0
  71. package/dist/scripts/7366-438b9e40d9.chunk.js +1 -0
  72. package/dist/scripts/7384-738b216ce5.chunk.js +1 -0
  73. package/dist/scripts/775-f94fdf08a6.chunk.js +1 -0
  74. package/dist/scripts/777-ad756c2420.chunk.js +2 -0
  75. package/dist/scripts/777-ad756c2420.chunk.js.LICENSE.txt +1 -0
  76. package/dist/scripts/7925-afa4ac58db.chunk.js +2 -0
  77. package/dist/scripts/8113-f198ecf002.chunk.js +1 -0
  78. package/dist/scripts/8143-3881cf510e.chunk.js +1 -0
  79. package/dist/scripts/8306-7a937af758.chunk.js +1 -0
  80. package/dist/scripts/8362-e513473f50.chunk.js +1 -0
  81. package/dist/scripts/8542-29e39900a1.chunk.js +1 -0
  82. package/dist/scripts/8591-4b212ec72d.chunk.js +1 -0
  83. package/dist/scripts/8757-218873f759.chunk.js +2 -0
  84. package/dist/scripts/8797-d74aa54767.chunk.js +1 -0
  85. package/dist/scripts/8862-d4faaa1043.chunk.js +1 -0
  86. package/dist/scripts/8915-60cef85b59.chunk.js +1 -0
  87. package/dist/scripts/8989-f5a1466541.chunk.js +1 -0
  88. package/dist/scripts/9011-8ad9cd886b.chunk.js +1 -0
  89. package/dist/scripts/9037-8ee5edeb0f.chunk.js +1 -0
  90. package/dist/scripts/9082-6ae95039ff.chunk.js +1 -0
  91. package/dist/scripts/9090-9d0aafabc4.chunk.js +1 -0
  92. package/dist/scripts/9096-a05aba009e.chunk.js +1 -0
  93. package/dist/scripts/9219-a62eb8dec1.chunk.js +1 -0
  94. package/dist/scripts/9357-cacc922e17.chunk.js +1 -0
  95. package/dist/scripts/9376-a690087044.chunk.js +1 -0
  96. package/dist/scripts/95-14875ad65e.chunk.js +1 -0
  97. package/dist/scripts/9620-47637ac50e.chunk.js +1 -0
  98. package/dist/scripts/968-4da16290ef.chunk.js +1 -0
  99. package/dist/scripts/9734-a32f5aa1b8.chunk.js +1 -0
  100. package/dist/scripts/9743-1a17ae4c30.chunk.js +1 -0
  101. package/dist/scripts/9766-22dd736844.chunk.js +2 -0
  102. package/dist/scripts/9825-40ead8d7a8.chunk.js +1 -0
  103. package/dist/scripts/9928-7069d8d073.chunk.js +1 -0
  104. package/dist/scripts/bundle-a45fdccb10.min.js +2 -0
  105. package/dist/scripts/{bundle-7c1c669253.min.js.LICENSE.txt → bundle-a45fdccb10.min.js.LICENSE.txt} +1 -1
  106. package/dist/scripts/polyfills-be59146258.min.js +1 -0
  107. package/package.json +1 -1
  108. package/dist/scripts/1010-9c54dac5ec.chunk.js +0 -1
  109. package/dist/scripts/1115-189174d1dd.chunk.js +0 -1
  110. package/dist/scripts/1200-9c85c3d5ca.chunk.js +0 -1
  111. package/dist/scripts/1318-11b8de6498.chunk.js +0 -1
  112. package/dist/scripts/1524-ae7b7beeda.chunk.js +0 -1
  113. package/dist/scripts/1752-111d0ad14d.chunk.js +0 -1
  114. package/dist/scripts/1934-84460445ad.chunk.js +0 -2
  115. package/dist/scripts/2035-4bf3392b3a.chunk.js +0 -1
  116. package/dist/scripts/2539-915297f0b5.chunk.js +0 -1
  117. package/dist/scripts/2591-730e72b14a.chunk.js +0 -1
  118. package/dist/scripts/2781-efa54c8c8c.chunk.js +0 -2
  119. package/dist/scripts/2781-efa54c8c8c.chunk.js.LICENSE.txt +0 -1
  120. package/dist/scripts/2803-d7cf29380f.chunk.js +0 -1
  121. package/dist/scripts/2888-97c3b4f37c.chunk.js +0 -1
  122. package/dist/scripts/299-f415ca8856.chunk.js +0 -1
  123. package/dist/scripts/3236-24a5bf1bb8.chunk.js +0 -2
  124. package/dist/scripts/3236-24a5bf1bb8.chunk.js.LICENSE.txt +0 -1
  125. package/dist/scripts/3305-d21eab0110.chunk.js +0 -1
  126. package/dist/scripts/336-86a858ee3c.chunk.js +0 -2
  127. package/dist/scripts/336-86a858ee3c.chunk.js.LICENSE.txt +0 -1
  128. package/dist/scripts/3373-c35e99d4f4.chunk.js +0 -1
  129. package/dist/scripts/3391-c1544af17d.chunk.js +0 -1
  130. package/dist/scripts/3400-7a082a0377.chunk.js +0 -1
  131. package/dist/scripts/3450-2b77dc7d81.chunk.js +0 -1
  132. package/dist/scripts/3475-c2090d0f65.chunk.js +0 -1
  133. package/dist/scripts/3639-a0854003d2.chunk.js +0 -1
  134. package/dist/scripts/3643-877406d207.chunk.js +0 -1
  135. package/dist/scripts/3664-7bab52835f.chunk.js +0 -1
  136. package/dist/scripts/3763-7ae73d91fa.chunk.js +0 -1
  137. package/dist/scripts/3873-32cef8b267.chunk.js +0 -1
  138. package/dist/scripts/4096-2f0afc78f8.chunk.js +0 -1
  139. package/dist/scripts/4201-f856bd659a.chunk.js +0 -1
  140. package/dist/scripts/4245-09abccc77c.chunk.js +0 -1
  141. package/dist/scripts/4327-b8cd9a74f9.chunk.js +0 -1
  142. package/dist/scripts/4567-3ca6ef4308.chunk.js +0 -1
  143. package/dist/scripts/4591-7f81bdcc51.chunk.js +0 -1
  144. package/dist/scripts/4796-1330a255f5.chunk.js +0 -2
  145. package/dist/scripts/4796-1330a255f5.chunk.js.LICENSE.txt +0 -1
  146. package/dist/scripts/5173-9338a14ee3.chunk.js +0 -1
  147. package/dist/scripts/5180-542a42cb27.chunk.js +0 -1
  148. package/dist/scripts/5327-c4b6d0885a.chunk.js +0 -1
  149. package/dist/scripts/5346-4a50d1fd29.chunk.js +0 -1
  150. package/dist/scripts/5412-9a31b69a02.chunk.js +0 -1
  151. package/dist/scripts/5418-a9d060f9d0.chunk.js +0 -1
  152. package/dist/scripts/5424-843a480e1a.chunk.js +0 -1
  153. package/dist/scripts/5513-1c7c464e84.chunk.js +0 -1
  154. package/dist/scripts/576-b7bc67c359.chunk.js +0 -1
  155. package/dist/scripts/5972-e170671a7c.chunk.js +0 -1
  156. package/dist/scripts/6239-b13c96eaf8.chunk.js +0 -1
  157. package/dist/scripts/6350-ebae8f11b0.chunk.js +0 -1
  158. package/dist/scripts/6439-8aac0bd92a.chunk.js +0 -1
  159. package/dist/scripts/6450-8de9792b20.chunk.js +0 -1
  160. package/dist/scripts/6467-eae5f517db.chunk.js +0 -1
  161. package/dist/scripts/6567-02b07e94bc.chunk.js +0 -2
  162. package/dist/scripts/6587-2e97f69e7a.chunk.js +0 -1
  163. package/dist/scripts/6591-62947b6aea.chunk.js +0 -1
  164. package/dist/scripts/6677-5c66883ffc.chunk.js +0 -1
  165. package/dist/scripts/6697-efdc49a3ce.chunk.js +0 -1
  166. package/dist/scripts/6768-416924be66.chunk.js +0 -1
  167. package/dist/scripts/6774-7ed47e1b8c.chunk.js +0 -1
  168. package/dist/scripts/6788-5ad863550d.chunk.js +0 -1
  169. package/dist/scripts/6796-d47d2fa948.chunk.js +0 -1
  170. package/dist/scripts/7071-e41e06917b.chunk.js +0 -1
  171. package/dist/scripts/7182-e45ad5e0fe.chunk.js +0 -2
  172. package/dist/scripts/7190-3b8aefddee.chunk.js +0 -1
  173. package/dist/scripts/7197-35da0227f2.chunk.js +0 -2
  174. package/dist/scripts/7197-35da0227f2.chunk.js.LICENSE.txt +0 -1
  175. package/dist/scripts/7366-4b7b22791a.chunk.js +0 -1
  176. package/dist/scripts/7384-8f86b79bd6.chunk.js +0 -1
  177. package/dist/scripts/775-96028af5a8.chunk.js +0 -1
  178. package/dist/scripts/777-03d78e4162.chunk.js +0 -2
  179. package/dist/scripts/777-03d78e4162.chunk.js.LICENSE.txt +0 -1
  180. package/dist/scripts/7925-b80cab7a7a.chunk.js +0 -2
  181. package/dist/scripts/8113-fa8be2fe60.chunk.js +0 -1
  182. package/dist/scripts/8143-3c844e6f7b.chunk.js +0 -1
  183. package/dist/scripts/8306-7e1ecc6b80.chunk.js +0 -1
  184. package/dist/scripts/8362-976c6b3cfc.chunk.js +0 -1
  185. package/dist/scripts/8542-a96ff58cda.chunk.js +0 -1
  186. package/dist/scripts/8591-047736d51e.chunk.js +0 -1
  187. package/dist/scripts/8757-9ff47570ba.chunk.js +0 -2
  188. package/dist/scripts/8797-2e772deab9.chunk.js +0 -1
  189. package/dist/scripts/8862-292b678cef.chunk.js +0 -1
  190. package/dist/scripts/8915-e31f2d1282.chunk.js +0 -1
  191. package/dist/scripts/8989-1ca7a01335.chunk.js +0 -1
  192. package/dist/scripts/9011-4862aa077d.chunk.js +0 -1
  193. package/dist/scripts/9037-7ce5f91571.chunk.js +0 -1
  194. package/dist/scripts/9082-ad6d7d2f96.chunk.js +0 -1
  195. package/dist/scripts/9090-42d71ef295.chunk.js +0 -1
  196. package/dist/scripts/9096-ce7dabfccf.chunk.js +0 -1
  197. package/dist/scripts/9219-5a71a27c3e.chunk.js +0 -1
  198. package/dist/scripts/9357-64d247d840.chunk.js +0 -1
  199. package/dist/scripts/9376-fa6bc20209.chunk.js +0 -1
  200. package/dist/scripts/95-d04a83d83f.chunk.js +0 -1
  201. package/dist/scripts/9620-3ba8334ebc.chunk.js +0 -1
  202. package/dist/scripts/968-b8e7ead008.chunk.js +0 -1
  203. package/dist/scripts/9734-bf7adc8154.chunk.js +0 -1
  204. package/dist/scripts/9743-d88fb1f700.chunk.js +0 -1
  205. package/dist/scripts/9766-da39830c71.chunk.js +0 -2
  206. package/dist/scripts/9825-965bc63629.chunk.js +0 -1
  207. package/dist/scripts/9928-0d83a09f31.chunk.js +0 -1
  208. package/dist/scripts/bundle-7c1c669253.min.js +0 -2
  209. package/dist/scripts/polyfills-4c06ebd0dd.min.js +0 -1
  210. /package/dist/scripts/{1934-84460445ad.chunk.js.LICENSE.txt → 1934-1deec5c14f.chunk.js.LICENSE.txt} +0 -0
  211. /package/dist/scripts/{7182-e45ad5e0fe.chunk.js.LICENSE.txt → 7182-700d11a1b6.chunk.js.LICENSE.txt} +0 -0
  212. /package/dist/scripts/{7925-b80cab7a7a.chunk.js.LICENSE.txt → 7925-afa4ac58db.chunk.js.LICENSE.txt} +0 -0
  213. /package/dist/scripts/{8757-9ff47570ba.chunk.js.LICENSE.txt → 8757-218873f759.chunk.js.LICENSE.txt} +0 -0
  214. /package/dist/scripts/{9766-da39830c71.chunk.js.LICENSE.txt → 9766-22dd736844.chunk.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9376],{92802:function(e,t,r){r.d(t,{Bc:function(){return Br},gN:function(){return Cr},l0:function(){return Ir},J9:function(){return Ar},k5:function(){return jr},u9:function(){return mr},u6:function(){return Sr}});var n=r(32735),o=r(8266),a=r.n(o),i=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===s}(e)}(e)},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function u(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function c(e,t,r){return e.concat(t).map(function(e){return u(e,r)})}function l(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||c,r.isMergeableObject=r.isMergeableObject||i;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(t){n[t]=u(e[t],r)}),Object.keys(t).forEach(function(o){r.isMergeableObject(t[o])&&e[o]?n[o]=l(e[o],t[o],r):n[o]=u(t[o],r)}),n}(e,t,r):u(t,r)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return l(e,r,t)},{})};var f=l,d="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,h=d||p||Function("return this")(),v=h.Symbol,y=Object.prototype,m=y.hasOwnProperty,b=y.toString,g=v?v.toStringTag:void 0,j=Object.prototype.toString,E=v?v.toStringTag:void 0,_=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":E&&E in Object(e)?function(e){var t=m.call(e,g),r=e[g];try{e[g]=void 0;var n=!0}catch(e){}var o=b.call(e);return n&&(t?e[g]=r:delete e[g]),o}(e):function(e){return j.call(e)}(e)},S=function(e,t){return function(r){return e(t(r))}},O=S(Object.getPrototypeOf,Object),w=function(e){return null!=e&&"object"==typeof e},x=Function.prototype,T=Object.prototype,A=x.toString,R=T.hasOwnProperty,k=A.call(Object),N=function(e){if(!w(e)||"[object Object]"!=_(e))return!1;var t=O(e);if(null===t)return!0;var r=R.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&A.call(r)==k},F=function(e,t){return e===t||e!=e&&t!=t},C=function(e,t){for(var r=e.length;r--;)if(F(e[r][0],t))return r;return-1},I=Array.prototype.splice;function P(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}P.prototype.clear=function(){this.__data__=[],this.size=0},P.prototype.delete=function(e){var t=this.__data__,r=C(t,e);return!(r<0||(r==t.length-1?t.pop():I.call(t,r,1),--this.size,0))},P.prototype.get=function(e){var t=this.__data__,r=C(t,e);return r<0?void 0:t[r][1]},P.prototype.has=function(e){return C(this.__data__,e)>-1},P.prototype.set=function(e,t){var r=this.__data__,n=C(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var M,D=P,L=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},$=function(e){if(!L(e))return!1;var t=_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},B=h["__core-js_shared__"],U=(M=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"",V=Function.prototype.toString,Z=function(e){if(null!=e){try{return V.call(e)}catch(e){}try{return e+""}catch(e){}}return""},z=/^\[object .+?Constructor\]$/,W=Function.prototype,H=Object.prototype,G=W.toString,K=H.hasOwnProperty,q=RegExp("^"+G.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=function(e){return!(!L(e)||(t=e,U&&U in t))&&($(e)?q:z).test(Z(e));var t},J=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Y(r)?r:void 0},Q=J(h,"Map"),X=J(Object,"create"),ee=Object.prototype.hasOwnProperty,te=Object.prototype.hasOwnProperty;function re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}re.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},re.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},re.prototype.get=function(e){var t=this.__data__;if(X){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ee.call(t,e)?t[e]:void 0},re.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:te.call(t,e)},re.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=X&&void 0===t?"__lodash_hash_undefined__":t,this};var ne=re,oe=function(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function ae(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ae.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(Q||D),string:new ne}},ae.prototype.delete=function(e){var t=oe(this,e).delete(e);return this.size-=t?1:0,t},ae.prototype.get=function(e){return oe(this,e).get(e)},ae.prototype.has=function(e){return oe(this,e).has(e)},ae.prototype.set=function(e,t){var r=oe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var ie=ae;function se(e){var t=this.__data__=new D(e);this.size=t.size}se.prototype.clear=function(){this.__data__=new D,this.size=0},se.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},se.prototype.get=function(e){return this.__data__.get(e)},se.prototype.has=function(e){return this.__data__.has(e)},se.prototype.set=function(e,t){var r=this.__data__;if(r instanceof D){var n=r.__data__;if(!Q||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ie(n)}return r.set(e,t),this.size=r.size,this};var ue=se,ce=function(){try{var e=J(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),le=function(e,t,r){"__proto__"==t&&ce?ce(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},fe=Object.prototype.hasOwnProperty,de=function(e,t,r){var n=e[t];fe.call(e,t)&&F(n,r)&&(void 0!==r||t in e)||le(e,t,r)},pe=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],u=n?n(r[s],e[s],s,r,e):void 0;void 0===u&&(u=e[s]),o?le(r,s,u):de(r,s,u)}return r},he=function(e){return w(e)&&"[object Arguments]"==_(e)},ve=Object.prototype,ye=ve.hasOwnProperty,me=ve.propertyIsEnumerable,be=he(function(){return arguments}())?he:function(e){return w(e)&&ye.call(e,"callee")&&!me.call(e,"callee")},ge=be,je=Array.isArray,Ee="object"==typeof exports&&exports&&!exports.nodeType&&exports,_e=Ee&&"object"==typeof module&&module&&!module.nodeType&&module,Se=_e&&_e.exports===Ee?h.Buffer:void 0,Oe=(Se?Se.isBuffer:void 0)||function(){return!1},we=/^(?:0|[1-9]\d*)$/,xe=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&we.test(e))&&e>-1&&e%1==0&&e<t},Te=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ae={};Ae["[object Float32Array]"]=Ae["[object Float64Array]"]=Ae["[object Int8Array]"]=Ae["[object Int16Array]"]=Ae["[object Int32Array]"]=Ae["[object Uint8Array]"]=Ae["[object Uint8ClampedArray]"]=Ae["[object Uint16Array]"]=Ae["[object Uint32Array]"]=!0,Ae["[object Arguments]"]=Ae["[object Array]"]=Ae["[object ArrayBuffer]"]=Ae["[object Boolean]"]=Ae["[object DataView]"]=Ae["[object Date]"]=Ae["[object Error]"]=Ae["[object Function]"]=Ae["[object Map]"]=Ae["[object Number]"]=Ae["[object Object]"]=Ae["[object RegExp]"]=Ae["[object Set]"]=Ae["[object String]"]=Ae["[object WeakMap]"]=!1;var Re=function(e){return function(t){return e(t)}},ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ne=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Fe=Ne&&Ne.exports===ke&&d.process,Ce=function(){try{return Ne&&Ne.require&&Ne.require("util").types||Fe&&Fe.binding&&Fe.binding("util")}catch(e){}}(),Ie=Ce&&Ce.isTypedArray,Pe=Ie?Re(Ie):function(e){return w(e)&&Te(e.length)&&!!Ae[_(e)]},Me=Object.prototype.hasOwnProperty,De=function(e,t){var r=je(e),n=!r&&ge(e),o=!r&&!n&&Oe(e),a=!r&&!n&&!o&&Pe(e),i=r||n||o||a,s=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=s.length;for(var c in e)!t&&!Me.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xe(c,u))||s.push(c);return s},Le=Object.prototype,$e=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)},Be=S(Object.keys,Object),Ue=Object.prototype.hasOwnProperty,Ve=function(e){return null!=e&&Te(e.length)&&!$(e)},Ze=function(e){return Ve(e)?De(e):function(e){if(!$e(e))return Be(e);var t=[];for(var r in Object(e))Ue.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)},ze=Object.prototype.hasOwnProperty,We=function(e){if(!L(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=$e(e),r=[];for(var n in e)("constructor"!=n||!t&&ze.call(e,n))&&r.push(n);return r},He=function(e){return Ve(e)?De(e,!0):We(e)},Ge="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ke=Ge&&"object"==typeof module&&module&&!module.nodeType&&module,qe=Ke&&Ke.exports===Ge?h.Buffer:void 0,Ye=qe?qe.allocUnsafe:void 0,Je=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},Qe=function(){return[]},Xe=Object.prototype.propertyIsEnumerable,et=Object.getOwnPropertySymbols,tt=et?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}(et(e),function(t){return Xe.call(e,t)}))}:Qe,rt=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},nt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)rt(t,tt(e)),e=O(e);return t}:Qe,ot=function(e,t,r){var n=t(e);return je(e)?n:rt(n,r(e))},at=function(e){return ot(e,Ze,tt)},it=function(e){return ot(e,He,nt)},st=J(h,"DataView"),ut=J(h,"Promise"),ct=J(h,"Set"),lt=J(h,"WeakMap"),ft="[object Map]",dt="[object Promise]",pt="[object Set]",ht="[object WeakMap]",vt="[object DataView]",yt=Z(st),mt=Z(Q),bt=Z(ut),gt=Z(ct),jt=Z(lt),Et=_;(st&&Et(new st(new ArrayBuffer(1)))!=vt||Q&&Et(new Q)!=ft||ut&&Et(ut.resolve())!=dt||ct&&Et(new ct)!=pt||lt&&Et(new lt)!=ht)&&(Et=function(e){var t=_(e),r="[object Object]"==t?e.constructor:void 0,n=r?Z(r):"";if(n)switch(n){case yt:return vt;case mt:return ft;case bt:return dt;case gt:return pt;case jt:return ht}return t});var _t=Et,St=Object.prototype.hasOwnProperty,Ot=h.Uint8Array,wt=function(e){var t=new e.constructor(e.byteLength);return new Ot(t).set(new Ot(e)),t},xt=/\w*$/,Tt=v?v.prototype:void 0,At=Tt?Tt.valueOf:void 0,Rt=function(e,t,r){var n,o,a,i=e.constructor;switch(t){case"[object ArrayBuffer]":return wt(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var r=t?wt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?wt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(a=new(o=e).constructor(o.source,xt.exec(o))).lastIndex=o.lastIndex,a;case"[object Symbol]":return n=e,At?Object(At.call(n)):{}}},kt=Object.create,Nt=function(){function e(){}return function(t){if(!L(t))return{};if(kt)return kt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Ft=Ce&&Ce.isMap,Ct=Ft?Re(Ft):function(e){return w(e)&&"[object Map]"==_t(e)},It=Ce&&Ce.isSet,Pt=It?Re(It):function(e){return w(e)&&"[object Set]"==_t(e)},Mt="[object Arguments]",Dt="[object Function]",Lt="[object Object]",$t={};$t[Mt]=$t["[object Array]"]=$t["[object ArrayBuffer]"]=$t["[object DataView]"]=$t["[object Boolean]"]=$t["[object Date]"]=$t["[object Float32Array]"]=$t["[object Float64Array]"]=$t["[object Int8Array]"]=$t["[object Int16Array]"]=$t["[object Int32Array]"]=$t["[object Map]"]=$t["[object Number]"]=$t[Lt]=$t["[object RegExp]"]=$t["[object Set]"]=$t["[object String]"]=$t["[object Symbol]"]=$t["[object Uint8Array]"]=$t["[object Uint8ClampedArray]"]=$t["[object Uint16Array]"]=$t["[object Uint32Array]"]=!0,$t["[object Error]"]=$t[Dt]=$t["[object WeakMap]"]=!1;var Bt=function e(t,r,n,o,a,i){var s,u=1&r,c=2&r,l=4&r;if(n&&(s=a?n(t,o,a,i):n(t)),void 0!==s)return s;if(!L(t))return t;var f=je(t);if(f){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&St.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!u)return Je(t,s)}else{var d=_t(t),p=d==Dt||"[object GeneratorFunction]"==d;if(Oe(t))return function(e,t){if(t)return e.slice();var r=e.length,n=Ye?Ye(r):new e.constructor(r);return e.copy(n),n}(t,u);if(d==Lt||d==Mt||p&&!a){if(s=c||p?{}:function(e){return"function"!=typeof e.constructor||$e(e)?{}:Nt(O(e))}(t),!u)return c?function(e,t){return pe(e,nt(e),t)}(t,function(e,t){return e&&pe(t,He(t),e)}(s,t)):function(e,t){return pe(e,tt(e),t)}(t,function(e,t){return e&&pe(t,Ze(t),e)}(s,t))}else{if(!$t[d])return a?t:{};s=Rt(t,d,u)}}i||(i=new ue);var h=i.get(t);if(h)return h;i.set(t,s),Pt(t)?t.forEach(function(o){s.add(e(o,r,n,o,t,i))}):Ct(t)&&t.forEach(function(o,a){s.set(a,e(o,r,n,a,t,i))});var v=f?void 0:(l?c?it:at:c?He:Ze)(t);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(v||t,function(o,a){v&&(o=t[a=o]),de(s,a,e(o,r,n,a,t,i))}),s},Ut=function(e){return Bt(e,4)},Vt=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},Zt=function(e){return"symbol"==typeof e||w(e)&&"[object Symbol]"==_(e)};function zt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(zt.Cache||ie),r}zt.Cache=ie;var Wt,Ht,Gt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kt=/\\(\\)?/g,qt=(Wt=zt(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Gt,function(e,r,n,o){t.push(n?o.replace(Kt,"$1"):r||e)}),t},function(e){return 500===Ht.size&&Ht.clear(),e}),Ht=Wt.cache,Wt),Yt=function(e){if("string"==typeof e||Zt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Jt=v?v.prototype:void 0,Qt=Jt?Jt.toString:void 0,Xt=function e(t){if("string"==typeof t)return t;if(je(t))return Vt(t,e)+"";if(Zt(t))return Qt?Qt.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},er=function(e){return null==e?"":Xt(e)},tr=function(e){return je(e)?Vt(e,Yt):Zt(e)?[e]:Je(qt(er(e)))},rr=function(e,t){},nr=r(86058),or=r.n(nr),ar=function(e){return Bt(e,5)};function ir(){return ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ir.apply(this,arguments)}function sr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ur(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function cr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var lr=function(e){return Array.isArray(e)&&0===e.length},fr=function(e){return"function"==typeof e},dr=function(e){return null!==e&&"object"==typeof e},pr=function(e){return String(Math.floor(Number(e)))===e},hr=function(e){return"[object String]"===Object.prototype.toString.call(e)},vr=function(e){return 0===n.Children.count(e)},yr=function(e){return dr(e)&&fr(e.then)};function mr(e,t,r,n){void 0===n&&(n=0);for(var o=tr(t);e&&n<o.length;)e=e[o[n++]];return void 0===e?r:e}function br(e,t,r){for(var n=Ut(e),o=n,a=0,i=tr(t);a<i.length-1;a++){var s=i[a],u=mr(e,i.slice(0,a+1));if(u&&(dr(u)||Array.isArray(u)))o=o[s]=Ut(u);else{var c=i[a+1];o=o[s]=pr(c)&&Number(c)>=0?[]:{}}}return(0===a?e:o)[i[a]]===r?e:(void 0===r?delete o[i[a]]:o[i[a]]=r,0===a&&void 0===r&&delete n[i[a]],n)}function gr(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,a=Object.keys(e);o<a.length;o++){var i=a[o],s=e[i];dr(s)?r.get(s)||(r.set(s,!0),n[i]=Array.isArray(s)?[]:{},gr(s,t,r,n[i])):n[i]=t}return n}var jr=(0,n.createContext)(void 0);jr.displayName="FormikContext";var Er=jr.Provider,_r=jr.Consumer;function Sr(){var e=(0,n.useContext)(jr);return e||rr(!1),e}function Or(e,t){switch(t.type){case"SET_VALUES":return ir({},e,{values:t.payload});case"SET_TOUCHED":return ir({},e,{touched:t.payload});case"SET_ERRORS":return a()(e.errors,t.payload)?e:ir({},e,{errors:t.payload});case"SET_STATUS":return ir({},e,{status:t.payload});case"SET_ISSUBMITTING":return ir({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return ir({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return ir({},e,{values:br(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return ir({},e,{touched:br(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return ir({},e,{errors:br(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return ir({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return ir({},e,{touched:gr(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return ir({},e,{isSubmitting:!1});default:return e}}var wr={},xr={};function Tr(e){var t=e.validateOnChange,r=void 0===t||t,o=e.validateOnBlur,i=void 0===o||o,s=e.validateOnMount,u=void 0!==s&&s,c=e.isInitialValid,l=e.enableReinitialize,d=void 0!==l&&l,p=e.onSubmit,h=ur(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),v=ir({validateOnChange:r,validateOnBlur:i,validateOnMount:u,onSubmit:p},h),y=(0,n.useRef)(v.initialValues),m=(0,n.useRef)(v.initialErrors||wr),b=(0,n.useRef)(v.initialTouched||xr),g=(0,n.useRef)(v.initialStatus),j=(0,n.useRef)(!1),E=(0,n.useRef)({});(0,n.useEffect)(function(){return j.current=!0,function(){j.current=!1}},[]);var _=(0,n.useReducer)(Or,{values:v.initialValues,errors:v.initialErrors||wr,touched:v.initialTouched||xr,status:v.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),S=_[0],O=_[1],w=(0,n.useCallback)(function(e,t){return new Promise(function(r,n){var o=v.validate(e,t);null==o?r(wr):yr(o)?o.then(function(e){r(e||wr)},function(e){n(e)}):r(o)})},[v.validate]),x=(0,n.useCallback)(function(e,t){var r=v.validationSchema,n=fr(r)?r(t):r,o=t&&n.validateAt?n.validateAt(t,e):function(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n={});var o=Rr(e);return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:n})}(e,n);return new Promise(function(e,t){o.then(function(){e(wr)},function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return br(t,e.path,e.message);var r=e.inner,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var a;if(n){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var i=a;mr(t,i.path)||(t=br(t,i.path,i.message))}}return t}(r)):t(r)})})},[v.validationSchema]),T=(0,n.useCallback)(function(e,t){return new Promise(function(r){return r(E.current[e].validate(t))})},[]),A=(0,n.useCallback)(function(e){var t=Object.keys(E.current).filter(function(e){return fr(E.current[e].validate)}),r=t.length>0?t.map(function(t){return T(t,mr(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=br(e,t[n],r)),e},{})})},[T]),R=(0,n.useCallback)(function(e){return Promise.all([A(e),v.validationSchema?x(e):{},v.validate?w(e):{}]).then(function(e){var t=e[0],r=e[1],n=e[2];return f.all([t,r,n],{arrayMerge:kr})})},[v.validate,v.validationSchema,A,w,x]),k=Fr(function(e){return void 0===e&&(e=S.values),O({type:"SET_ISVALIDATING",payload:!0}),R(e).then(function(e){return j.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:e})),e})});(0,n.useEffect)(function(){u&&!0===j.current&&a()(y.current,v.initialValues)&&k(y.current)},[u,k]);var N=(0,n.useCallback)(function(e){var t=e&&e.values?e.values:y.current,r=e&&e.errors?e.errors:m.current?m.current:v.initialErrors||{},n=e&&e.touched?e.touched:b.current?b.current:v.initialTouched||{},o=e&&e.status?e.status:g.current?g.current:v.initialStatus;y.current=t,m.current=r,b.current=n,g.current=o;var a=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(v.onReset){var i=v.onReset(S.values,Y);yr(i)?i.then(a):a()}else a()},[v.initialErrors,v.initialStatus,v.initialTouched]);(0,n.useEffect)(function(){!0!==j.current||a()(y.current,v.initialValues)||(d&&(y.current=v.initialValues,N()),u&&k(y.current))},[d,v.initialValues,N,u,k]),(0,n.useEffect)(function(){d&&!0===j.current&&!a()(m.current,v.initialErrors)&&(m.current=v.initialErrors||wr,O({type:"SET_ERRORS",payload:v.initialErrors||wr}))},[d,v.initialErrors]),(0,n.useEffect)(function(){d&&!0===j.current&&!a()(b.current,v.initialTouched)&&(b.current=v.initialTouched||xr,O({type:"SET_TOUCHED",payload:v.initialTouched||xr}))},[d,v.initialTouched]),(0,n.useEffect)(function(){d&&!0===j.current&&!a()(g.current,v.initialStatus)&&(g.current=v.initialStatus,O({type:"SET_STATUS",payload:v.initialStatus}))},[d,v.initialStatus,v.initialTouched]);var F=Fr(function(e){if(E.current[e]&&fr(E.current[e].validate)){var t=mr(S.values,e),r=E.current[e].validate(t);return yr(r)?(O({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e}).then(function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),O({type:"SET_ISVALIDATING",payload:!1})})):(O({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return v.validationSchema?(O({type:"SET_ISVALIDATING",payload:!0}),x(S.values,e).then(function(e){return e}).then(function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),O({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),C=(0,n.useCallback)(function(e,t){var r=t.validate;E.current[e]={validate:r}},[]),I=(0,n.useCallback)(function(e){delete E.current[e]},[]),P=Fr(function(e,t){return O({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?k(S.values):Promise.resolve()}),M=(0,n.useCallback)(function(e){O({type:"SET_ERRORS",payload:e})},[]),D=Fr(function(e,t){var n=fr(e)?e(S.values):e;return O({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?k(n):Promise.resolve()}),L=(0,n.useCallback)(function(e,t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),$=Fr(function(e,t,n){return O({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?k(br(S.values,e,t)):Promise.resolve()}),B=(0,n.useCallback)(function(e,t){var r,n=t,o=e;if(!hr(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,i=a.type,s=a.name,u=a.id,c=a.value,l=a.checked,f=(a.outerHTML,a.options),d=a.multiple;n=t||s||u,o=/number|range/.test(i)?(r=parseFloat(c),isNaN(r)?"":r):/checkbox/.test(i)?function(e,t,r){if("boolean"==typeof e)return Boolean(t);var n=[],o=!1,a=-1;if(Array.isArray(e))n=e,o=(a=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);return t&&r&&!o?n.concat(r):o?n.slice(0,a).concat(n.slice(a+1)):n}(mr(S.values,n),l,c):f&&d?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(f):c}n&&$(n,o)},[$,S.values]),U=Fr(function(e){if(hr(e))return function(t){return B(t,e)};B(e)}),V=Fr(function(e,t,r){return void 0===t&&(t=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?i:r)?k(S.values):Promise.resolve()}),Z=(0,n.useCallback)(function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,o=r.id,a=(r.outerHTML,t||n||o);V(a,!0)},[V]),z=Fr(function(e){if(hr(e))return function(t){return Z(t,e)};Z(e)}),W=(0,n.useCallback)(function(e){fr(e)?O({type:"SET_FORMIK_STATE",payload:e}):O({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),H=(0,n.useCallback)(function(e){O({type:"SET_STATUS",payload:e})},[]),G=(0,n.useCallback)(function(e){O({type:"SET_ISSUBMITTING",payload:e})},[]),K=Fr(function(){return O({type:"SUBMIT_ATTEMPT"}),k().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=J()))return}catch(e){throw e}return Promise.resolve(r).then(function(e){return j.current&&O({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(j.current)throw O({type:"SUBMIT_FAILURE"}),e})}if(j.current&&(O({type:"SUBMIT_FAILURE"}),t))throw e})}),q=Fr(function(e){e&&e.preventDefault&&fr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&fr(e.stopPropagation)&&e.stopPropagation(),K().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),Y={resetForm:N,validateForm:k,validateField:F,setErrors:M,setFieldError:L,setFieldTouched:V,setFieldValue:$,setStatus:H,setSubmitting:G,setTouched:P,setValues:D,setFormikState:W,submitForm:K},J=Fr(function(){return p(S.values,Y)}),Q=Fr(function(e){e&&e.preventDefault&&fr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&fr(e.stopPropagation)&&e.stopPropagation(),N()}),X=(0,n.useCallback)(function(e){return{value:mr(S.values,e),error:mr(S.errors,e),touched:!!mr(S.touched,e),initialValue:mr(y.current,e),initialTouched:!!mr(b.current,e),initialError:mr(m.current,e)}},[S.errors,S.touched,S.values]),ee=(0,n.useCallback)(function(e){return{setValue:function(t,r){return $(e,t,r)},setTouched:function(t,r){return V(e,t,r)},setError:function(t){return L(e,t)}}},[$,V,L]),te=(0,n.useCallback)(function(e){var t=dr(e),r=t?e.name:e,n=mr(S.values,r),o={name:r,value:n,onChange:U,onBlur:z};if(t){var a=e.type,i=e.value,s=e.as,u=e.multiple;"checkbox"===a?void 0===i?o.checked=!!n:(o.checked=!(!Array.isArray(n)||!~n.indexOf(i)),o.value=i):"radio"===a?(o.checked=n===i,o.value=i):"select"===s&&u&&(o.value=o.value||[],o.multiple=!0)}return o},[z,U,S.values]),re=(0,n.useMemo)(function(){return!a()(y.current,S.values)},[y.current,S.values]),ne=(0,n.useMemo)(function(){return void 0!==c?re?S.errors&&0===Object.keys(S.errors).length:!1!==c&&fr(c)?c(v):c:S.errors&&0===Object.keys(S.errors).length},[c,re,S.errors,v]);return ir({},S,{initialValues:y.current,initialErrors:m.current,initialTouched:b.current,initialStatus:g.current,handleBlur:z,handleChange:U,handleReset:Q,handleSubmit:q,resetForm:N,setErrors:M,setFormikState:W,setFieldTouched:V,setFieldValue:$,setFieldError:L,setStatus:H,setSubmitting:G,setTouched:P,setValues:D,submitForm:K,validateForm:k,validateField:F,isValid:ne,dirty:re,unregisterField:I,registerField:C,getFieldProps:te,getFieldMeta:X,getFieldHelpers:ee,validateOnBlur:i,validateOnChange:r,validateOnMount:u})}function Ar(e){var t=Tr(e),r=e.component,o=e.children,a=e.render,i=e.innerRef;return(0,n.useImperativeHandle)(i,function(){return t}),(0,n.createElement)(Er,{value:t},r?(0,n.createElement)(r,t):a?a(t):o?fr(o)?o(t):vr(o)?null:n.Children.only(o):null)}function Rr(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map(function(e){return!0===Array.isArray(e)||N(e)?Rr(e):""!==e?e:void 0}):N(e[n])?t[n]=Rr(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function kr(e,t,r){var n=e.slice();return t.forEach(function(t,o){if(void 0===n[o]){var a=!1!==r.clone&&r.isMergeableObject(t);n[o]=a?f(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[o]=f(e[o],t,r):-1===e.indexOf(t)&&n.push(t)}),n}var Nr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function Fr(e){var t=(0,n.useRef)(e);return Nr(function(){t.current=e}),(0,n.useCallback)(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(void 0,r)},[])}function Cr(e){var t=e.validate,r=e.name,o=e.render,a=e.children,i=e.as,s=e.component,u=ur(e,["validate","name","render","children","as","component"]),c=ur(Sr(),["validate","validationSchema"]),l=c.registerField,f=c.unregisterField;(0,n.useEffect)(function(){return l(r,{validate:t}),function(){f(r)}},[l,f,r,t]);var d=c.getFieldProps(ir({name:r},u)),p=c.getFieldMeta(r),h={field:d,form:c};if(o)return o(ir({},h,{meta:p}));if(fr(a))return a(ir({},h,{meta:p}));if(s){if("string"==typeof s){var v=u.innerRef,y=ur(u,["innerRef"]);return(0,n.createElement)(s,ir({ref:v},d,y),a)}return(0,n.createElement)(s,ir({field:d,form:c},u),a)}var m=i||"input";if("string"==typeof m){var b=u.innerRef,g=ur(u,["innerRef"]);return(0,n.createElement)(m,ir({ref:b},d,g),a)}return(0,n.createElement)(m,ir({},d,u),a)}var Ir=(0,n.forwardRef)(function(e,t){var r=e.action,o=ur(e,["action"]),a=null!=r?r:"#",i=Sr(),s=i.handleReset,u=i.handleSubmit;return(0,n.createElement)("form",Object.assign({onSubmit:u,ref:t,onReset:s,action:a},o))});function Pr(e){var t=function(t){return(0,n.createElement)(_r,null,function(r){return r||rr(!1),(0,n.createElement)(e,Object.assign({},t,{formik:r}))})},r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+r+")",or()(t,e)}Ir.displayName="Form";var Mr=function(e,t,r){var n=Dr(e);return n.splice(t,0,r),n},Dr=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,t){return t>e?t:e},0);return Array.from(ir({},e,{length:t+1}))}return[]},Lr=function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var o=r.props,a=o.name;(0,o.formik.setFormikState)(function(r){var o="function"==typeof n?n:e,i="function"==typeof t?t:e,s=br(r.values,a,e(mr(r.values,a))),u=n?o(mr(r.errors,a)):void 0,c=t?i(mr(r.touched,a)):void 0;return lr(u)&&(u=void 0),lr(c)&&(c=void 0),ir({},r,{values:s,errors:n?br(r.errors,a,u):r.errors,touched:t?br(r.touched,a,c):r.touched})})},r.push=function(e){return r.updateArrayField(function(t){return[].concat(Dr(t),[ar(e)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(r){return function(e,t,r){var n=Dr(e),o=n[t];return n[t]=n[r],n[r]=o,n}(r,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(r){return function(e,t,r){var n=Dr(e),o=n[t];return n.splice(t,1),n.splice(r,0,o),n}(r,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(r){return Mr(r,e,t)},function(t){return Mr(t,e,null)},function(t){return Mr(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(r){return function(e,t,r){var n=Dr(e);return n[t]=r,n}(r,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(cr(r)),r.pop=r.pop.bind(cr(r)),r}sr(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!a()(mr(e.formik.values,e.name),mr(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField(function(r){var n=r?Dr(r):[];return t||(t=n[e]),fr(n.splice)&&n.splice(e,1),n},!0,!0),t},r.pop=function(){var e;return this.updateArrayField(function(t){var r=t;return e||(e=r&&r.pop&&r.pop()),r},!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,o=t.render,a=t.children,i=t.name,s=ir({},e,{form:ur(t.formik,["validate","validationSchema"]),name:i});return r?(0,n.createElement)(r,s):o?o(s):a?"function"==typeof a?a(s):vr(a)?null:n.Children.only(a):null},t}(n.Component);Lr.defaultProps={validateOnChange:!0};var $r=function(e){function t(){return e.apply(this,arguments)||this}sr(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return mr(this.props.formik.errors,this.props.name)!==mr(e.formik.errors,this.props.name)||mr(this.props.formik.touched,this.props.name)!==mr(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},r.render=function(){var e=this.props,t=e.component,r=e.formik,o=e.render,a=e.children,i=e.name,s=ur(e,["component","formik","render","children","name"]),u=mr(r.touched,i),c=mr(r.errors,i);return u&&c?o?fr(o)?o(c):null:a?fr(a)?a(c):null:t?(0,n.createElement)(t,s,c):c:null},t}(n.Component),Br=Pr($r);n.Component},18881:function(e,t,r){r.d(t,{Z:function(){return V}});var n=r(95685),o=r.n(n),a=r(60216),i=r.n(a),s=r(32735),u=r(74512);const c={type:i().string,tooltip:i().bool,as:i().elementType},l=s.forwardRef(({as:e="div",className:t,type:r="valid",tooltip:n=!1,...a},i)=>(0,u.jsx)(e,{...a,ref:i,className:o()(t,`${r}-${n?"tooltip":"feedback"}`)}));l.displayName="Feedback",l.propTypes=c;var f=l,d=s.createContext({}),p=r(46304);const h=s.forwardRef(({id:e,bsPrefix:t,className:r,type:n="checkbox",isValid:a=!1,isInvalid:i=!1,as:c="input",...l},f)=>{const{controlId:h}=(0,s.useContext)(d);return t=(0,p.vE)(t,"form-check-input"),(0,u.jsx)(c,{...l,ref:f,type:n,id:e||h,className:o()(r,t,a&&"is-valid",i&&"is-invalid")})});h.displayName="FormCheckInput";var v=h;const y=s.forwardRef(({bsPrefix:e,className:t,htmlFor:r,...n},a)=>{const{controlId:i}=(0,s.useContext)(d);return e=(0,p.vE)(e,"form-check-label"),(0,u.jsx)("label",{...n,ref:a,htmlFor:r||i,className:o()(t,e)})});y.displayName="FormCheckLabel";var m=y;const b=s.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:r,inline:n=!1,reverse:a=!1,disabled:i=!1,isValid:c=!1,isInvalid:l=!1,feedbackTooltip:h=!1,feedback:y,feedbackType:b,className:g,style:j,title:E="",type:_="checkbox",label:S,children:O,as:w="input",...x},T)=>{t=(0,p.vE)(t,"form-check"),r=(0,p.vE)(r,"form-switch");const{controlId:A}=(0,s.useContext)(d),R=(0,s.useMemo)(()=>({controlId:e||A}),[A,e]),k=!O&&null!=S&&!1!==S||function(e,t){return s.Children.toArray(e).some(e=>s.isValidElement(e)&&e.type===t)}(O,m),N=(0,u.jsx)(v,{...x,type:"switch"===_?"checkbox":_,ref:T,isValid:c,isInvalid:l,disabled:i,as:w});return(0,u.jsx)(d.Provider,{value:R,children:(0,u.jsx)("div",{style:j,className:o()(g,k&&t,n&&`${t}-inline`,a&&`${t}-reverse`,"switch"===_&&r),children:O||(0,u.jsxs)(u.Fragment,{children:[N,k&&(0,u.jsx)(m,{title:E,children:S}),y&&(0,u.jsx)(f,{type:b,tooltip:h,children:y})]})})})});b.displayName="FormCheck";var g=Object.assign(b,{Input:v,Label:m});r(65719);const j=s.forwardRef(({bsPrefix:e,type:t,size:r,htmlSize:n,id:a,className:i,isValid:c=!1,isInvalid:l=!1,plaintext:f,readOnly:h,as:v="input",...y},m)=>{const{controlId:b}=(0,s.useContext)(d);return e=(0,p.vE)(e,"form-control"),(0,u.jsx)(v,{...y,type:t,size:n,ref:m,readOnly:h,id:a||b,className:o()(i,f?`${e}-plaintext`:e,r&&`${e}-${r}`,"color"===t&&`${e}-color`,c&&"is-valid",l&&"is-invalid")})});j.displayName="FormControl";var E=Object.assign(j,{Feedback:f});const _=s.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},a)=>(t=(0,p.vE)(t,"form-floating"),(0,u.jsx)(r,{ref:a,className:o()(e,t),...n})));_.displayName="FormFloating";var S=_;const O=s.forwardRef(({controlId:e,as:t="div",...r},n)=>{const o=(0,s.useMemo)(()=>({controlId:e}),[e]);return(0,u.jsx)(d.Provider,{value:o,children:(0,u.jsx)(t,{...r,ref:n})})});O.displayName="FormGroup";var w=O;const x=s.forwardRef((e,t)=>{const[{className:r,...n},{as:a="div",bsPrefix:i,spans:s}]=function({as:e,bsPrefix:t,className:r,...n}){t=(0,p.vE)(t,"col");const a=(0,p.pi)(),i=(0,p.zG)(),s=[],u=[];return a.forEach(e=>{const r=n[e];let o,a,c;delete n[e],"object"==typeof r&&null!=r?({span:o,offset:a,order:c}=r):o=r;const l=e!==i?`-${e}`:"";o&&s.push(!0===o?`${t}${l}`:`${t}${l}-${o}`),null!=c&&u.push(`order${l}-${c}`),null!=a&&u.push(`offset${l}-${a}`)}),[{...n,className:o()(r,...s,...u)},{as:e,bsPrefix:t,spans:s}]}(e);return(0,u.jsx)(a,{...n,ref:t,className:o()(r,!s.length&&i)})});x.displayName="Col";var T=x;const A=s.forwardRef(({as:e="label",bsPrefix:t,column:r=!1,visuallyHidden:n=!1,className:a,htmlFor:i,...c},l)=>{const{controlId:f}=(0,s.useContext)(d);t=(0,p.vE)(t,"form-label");let h="col-form-label";"string"==typeof r&&(h=`${h} ${h}-${r}`);const v=o()(a,t,n&&"visually-hidden",r&&h);return i=i||f,r?(0,u.jsx)(T,{ref:l,as:"label",className:v,htmlFor:i,...c}):(0,u.jsx)(e,{ref:l,className:v,htmlFor:i,...c})});A.displayName="FormLabel";var R=A;const k=s.forwardRef(({bsPrefix:e,className:t,id:r,...n},a)=>{const{controlId:i}=(0,s.useContext)(d);return e=(0,p.vE)(e,"form-range"),(0,u.jsx)("input",{...n,type:"range",ref:a,className:o()(t,e),id:r||i})});k.displayName="FormRange";var N=k;const F=s.forwardRef(({bsPrefix:e,size:t,htmlSize:r,className:n,isValid:a=!1,isInvalid:i=!1,id:c,...l},f)=>{const{controlId:h}=(0,s.useContext)(d);return e=(0,p.vE)(e,"form-select"),(0,u.jsx)("select",{...l,size:r,ref:f,className:o()(n,e,t&&`${e}-${t}`,a&&"is-valid",i&&"is-invalid"),id:c||h})});F.displayName="FormSelect";var C=F;const I=s.forwardRef(({bsPrefix:e,className:t,as:r="small",muted:n,...a},i)=>(e=(0,p.vE)(e,"form-text"),(0,u.jsx)(r,{...a,ref:i,className:o()(t,e,n&&"text-muted")})));I.displayName="FormText";var P=I;const M=s.forwardRef((e,t)=>(0,u.jsx)(g,{...e,ref:t,type:"switch"}));M.displayName="Switch";var D=Object.assign(M,{Input:g.Input,Label:g.Label});const L=s.forwardRef(({bsPrefix:e,className:t,children:r,controlId:n,label:a,...i},s)=>(e=(0,p.vE)(e,"form-floating"),(0,u.jsxs)(w,{ref:s,className:o()(t,e),controlId:n,...i,children:[r,(0,u.jsx)("label",{htmlFor:n,children:a})]})));L.displayName="FloatingLabel";var $=L;const B={_ref:i().any,validated:i().bool,as:i().elementType},U=s.forwardRef(({className:e,validated:t,as:r="form",...n},a)=>(0,u.jsx)(r,{...n,ref:a,className:o()(e,t&&"was-validated")}));U.displayName="Form",U.propTypes=B;var V=Object.assign(U,{Group:w,Control:E,Floating:S,Check:g,Switch:D,Label:R,Text:P,Range:N,Select:C,FloatingLabel:$})},54722:function(e,t,r){r.d(t,{Z:function(){return de}});var n,o=r(95685),a=r.n(o),i=r(14473),s=r(94278),u=r(79779),c=r(92324);function l(e){if((!n&&0!==n||e)&&s.Z){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),n=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return n}var f=r(32735),d=r(65456),p=r(72080),h=r(49719),v=r(23438);function y(e){void 0===e&&(e=(0,u.Z)());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}var m=r(47490),b=r(75476),g=r(12788),j=r(399);var E=r(16608),_=r(47597),S=r(11858);const O=(0,r(27445).PB)("modal-open");var w=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:r=!1}={}){this.handleContainerOverflow=t,this.isRTL=r,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",n=this.getElement();e.style={overflow:n.style.overflow,[r]:n.style[r]},e.scrollBarWidth&&(t[r]=`${parseInt((0,S.Z)(n,r)||"0",10)+e.scrollBarWidth}px`),n.setAttribute(O,""),(0,S.Z)(n,t)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(O),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},x=r(19979),T=r(9418),A=r(52622),R=r(76e3),k=r(74512);const N=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let F;const C=(0,f.forwardRef)((e,t)=>{let{show:r=!1,role:n="dialog",className:o,style:a,children:i,backdrop:u=!0,keyboard:c=!0,onBackdropClick:l,onEscapeKeyDown:d,transition:p,runTransition:h,backdropTransition:v,runBackdropTransition:S,autoFocus:O=!0,enforceFocus:C=!0,restoreFocus:I=!0,restoreFocusOptions:P,renderDialog:M,renderBackdrop:D=e=>(0,k.jsx)("div",Object.assign({},e)),manager:L,container:$,onShow:B,onHide:U=()=>{},onExit:V,onExited:Z,onExiting:z,onEnter:W,onEntering:H,onEntered:G}=e,K=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,N);const q=(0,T.Z)(),Y=(0,x.Z)($),J=function(e){const t=(0,T.Z)(),r=e||function(e){return F||(F=new w({ownerDocument:null==e?void 0:e.document})),F}(t),n=(0,f.useRef)({dialog:null,backdrop:null});return Object.assign(n.current,{add:()=>r.add(n.current),remove:()=>r.remove(n.current),isTopModal:()=>r.isTopModal(n.current),setDialogRef:(0,f.useCallback)(e=>{n.current.dialog=e},[]),setBackdropRef:(0,f.useCallback)(e=>{n.current.backdrop=e},[])})}(L),Q=(0,j.Z)(),X=(0,E.Z)(r),[ee,te]=(0,f.useState)(!r),re=(0,f.useRef)(null);(0,f.useImperativeHandle)(t,()=>J,[J]),s.Z&&!X&&r&&(re.current=y(null==q?void 0:q.document)),r&&ee&&te(!1);const ne=(0,_.Z)(()=>{if(J.add(),ce.current=(0,b.Z)(document,"keydown",se),ue.current=(0,b.Z)(document,"focus",()=>setTimeout(ae),!0),B&&B(),O){var e,t;const r=y(null!=(e=null==(t=J.dialog)?void 0:t.ownerDocument)?e:null==q?void 0:q.document);J.dialog&&r&&!(0,m.Z)(J.dialog,r)&&(re.current=r,J.dialog.focus())}}),oe=(0,_.Z)(()=>{var e;J.remove(),null==ce.current||ce.current(),null==ue.current||ue.current(),I&&(null==(e=re.current)||null==e.focus||e.focus(P),re.current=null)});(0,f.useEffect)(()=>{r&&Y&&ne()},[r,Y,ne]),(0,f.useEffect)(()=>{ee&&oe()},[ee,oe]),function(e){const t=function(e){const t=(0,f.useRef)(e);return t.current=e,t}(e);(0,f.useEffect)(()=>()=>t.current(),[])}(()=>{oe()});const ae=(0,_.Z)(()=>{if(!C||!Q()||!J.isTopModal())return;const e=y(null==q?void 0:q.document);J.dialog&&e&&!(0,m.Z)(J.dialog,e)&&J.dialog.focus()}),ie=(0,_.Z)(e=>{e.target===e.currentTarget&&(null==l||l(e),!0===u&&U())}),se=(0,_.Z)(e=>{c&&(0,R.kl)(e)&&J.isTopModal()&&(null==d||d(e),e.defaultPrevented||U())}),ue=(0,f.useRef)(),ce=(0,f.useRef)();if(!Y)return null;const le=Object.assign({role:n,ref:J.setDialogRef,"aria-modal":"dialog"===n||void 0},K,{style:a,className:o,tabIndex:-1});let fe=M?M(le):(0,k.jsx)("div",Object.assign({},le,{children:f.cloneElement(i,{role:"document"})}));fe=(0,A.sD)(p,h,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:V,onExiting:z,onExited:(...e)=>{te(!0),null==Z||Z(...e)},onEnter:W,onEntering:H,onEntered:G,children:fe});let de=null;return u&&(de=D({ref:J.setBackdropRef,onClick:ie}),de=(0,A.sD)(v,S,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:de})),(0,k.jsx)(k.Fragment,{children:g.createPortal((0,k.jsxs)(k.Fragment,{children:[de,fe]}),Y)})});C.displayName="Modal";var I=Object.assign(C,{Manager:w}),P=r(31411),M=r(30720);function D(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const L=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",$=".sticky-top",B=".navbar-toggler";class U extends w{adjustAndStore(e,t,r){const n=t.style[e];t.dataset[e]=n,(0,S.Z)(t,{[e]:`${parseFloat((0,S.Z)(t,e))+r}px`})}restore(e,t){const r=t.dataset[e];void 0!==r&&(delete t.dataset[e],(0,S.Z)(t,{[e]:r}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var r,n;if(n="modal-open",(r=t).classList?r.classList.add(n):(0,P.Z)(r,n)||("string"==typeof r.className?r.className=r.className+" "+n:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+n)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";(0,M.Z)(t,L).forEach(t=>this.adjustAndStore(o,t,e.scrollBarWidth)),(0,M.Z)(t,$).forEach(t=>this.adjustAndStore(a,t,-e.scrollBarWidth)),(0,M.Z)(t,B).forEach(t=>this.adjustAndStore(a,t,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var r,n;n="modal-open",(r=t).classList?r.classList.remove(n):"string"==typeof r.className?r.className=D(r.className,n):r.setAttribute("class",D(r.className&&r.className.baseVal||"",n));const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";(0,M.Z)(t,L).forEach(e=>this.restore(o,e)),(0,M.Z)(t,$).forEach(e=>this.restore(a,e)),(0,M.Z)(t,B).forEach(e=>this.restore(a,e))}}let V;var Z=r(29724),z=r(46304);const W=f.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=(0,z.vE)(t,"modal-body"),(0,k.jsx)(r,{ref:o,className:a()(e,t),...n})));W.displayName="ModalBody";var H=W,G=f.createContext({onHide(){}});const K=f.forwardRef(({bsPrefix:e,className:t,contentClassName:r,centered:n,size:o,fullscreen:i,children:s,scrollable:u,...c},l)=>{const f=`${e=(0,z.vE)(e,"modal")}-dialog`,d="string"==typeof i?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return(0,k.jsx)("div",{...c,ref:l,className:a()(f,t,o&&`${e}-${o}`,n&&`${f}-centered`,u&&`${f}-scrollable`,i&&d),children:(0,k.jsx)("div",{className:a()(`${e}-content`,r),children:s})})});K.displayName="ModalDialog";var q=K;const Y=f.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=(0,z.vE)(t,"modal-footer"),(0,k.jsx)(r,{ref:o,className:a()(e,t),...n})));Y.displayName="ModalFooter";var J=Y,Q=r(60216),X=r.n(Q);const ee={"aria-label":X().string,onClick:X().func,variant:X().oneOf(["white"])},te=f.forwardRef(({className:e,variant:t,"aria-label":r="Close",...n},o)=>(0,k.jsx)("button",{ref:o,type:"button",className:a()("btn-close",t&&`btn-close-${t}`,e),"aria-label":r,...n}));te.displayName="CloseButton",te.propTypes=ee;var re=te,ne=f.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:r=!1,onHide:n,children:o,...a},i)=>{const s=(0,f.useContext)(G),u=(0,d.Z)(()=>{null==s||s.onHide(),null==n||n()});return(0,k.jsxs)("div",{ref:i,...a,children:[o,r&&(0,k.jsx)(re,{"aria-label":e,variant:t,onClick:u})]})});const oe=f.forwardRef(({bsPrefix:e,className:t,closeLabel:r="Close",closeButton:n=!1,...o},i)=>(e=(0,z.vE)(e,"modal-header"),(0,k.jsx)(ne,{ref:i,...o,className:a()(t,e),closeLabel:r,closeButton:n})));oe.displayName="ModalHeader";var ae=oe;const ie=f.forwardRef((e,t)=>(0,k.jsx)("div",{...e,ref:t,className:a()(e.className,"h4")}));const se=f.forwardRef(({className:e,bsPrefix:t,as:r=ie,...n},o)=>(t=(0,z.vE)(t,"modal-title"),(0,k.jsx)(r,{ref:o,className:a()(e,t),...n})));se.displayName="ModalTitle";var ue=se;function ce(e){return(0,k.jsx)(Z.Z,{...e,timeout:null})}function le(e){return(0,k.jsx)(Z.Z,{...e,timeout:null})}const fe=f.forwardRef(({bsPrefix:e,className:t,style:r,dialogClassName:n,contentClassName:o,children:y,dialogAs:m=q,"data-bs-theme":b,"aria-labelledby":g,"aria-describedby":j,"aria-label":E,show:_=!1,animation:S=!0,backdrop:O=!0,keyboard:w=!0,onEscapeKeyDown:x,onShow:T,onHide:A,container:R,autoFocus:N=!0,enforceFocus:F=!0,restoreFocus:C=!0,restoreFocusOptions:P,onEntered:M,onExit:D,onExiting:L,onEnter:$,onEntering:B,onExited:Z,backdropClassName:W,manager:H,...K},Y)=>{const[J,Q]=(0,f.useState)({}),[X,ee]=(0,f.useState)(!1),te=(0,f.useRef)(!1),re=(0,f.useRef)(!1),ne=(0,f.useRef)(null),[oe,ae]=(0,f.useState)(null),ie=(0,p.Z)(Y,ae),se=(0,d.Z)(A),ue=(0,z.SC)();e=(0,z.vE)(e,"modal");const fe=(0,f.useMemo)(()=>({onHide:se}),[se]);function de(){return H||(V||(V=new U({isRTL:ue})),V)}function pe(e){if(!s.Z)return;const t=de().getScrollbarWidth()>0,r=e.scrollHeight>(0,u.Z)(e).documentElement.clientHeight;Q({paddingRight:t&&!r?l():void 0,paddingLeft:!t&&r?l():void 0})}const he=(0,d.Z)(()=>{oe&&pe(oe.dialog)});(0,h.Z)(()=>{(0,c.Z)(window,"resize",he),null==ne.current||ne.current()});const ve=()=>{te.current=!0},ye=e=>{te.current&&oe&&e.target===oe.dialog&&(re.current=!0),te.current=!1},me=()=>{ee(!0),ne.current=(0,v.Z)(oe.dialog,()=>{ee(!1)})},be=e=>{"static"!==O?re.current||e.target!==e.currentTarget?re.current=!1:null==A||A():(e=>{e.target===e.currentTarget&&me()})(e)},ge=(0,f.useCallback)(t=>(0,k.jsx)("div",{...t,className:a()(`${e}-backdrop`,W,!S&&"show")}),[S,W,e]),je={...r,...J};return je.display="block",(0,k.jsx)(G.Provider,{value:fe,children:(0,k.jsx)(I,{show:_,ref:ie,backdrop:O,container:R,keyboard:!0,autoFocus:N,enforceFocus:F,restoreFocus:C,restoreFocusOptions:P,onEscapeKeyDown:e=>{w?null==x||x(e):(e.preventDefault(),"static"===O&&me())},onShow:T,onHide:A,onEnter:(e,t)=>{e&&pe(e),null==$||$(e,t)},onEntering:(e,t)=>{null==B||B(e,t),(0,i.ZP)(window,"resize",he)},onEntered:M,onExit:e=>{null==ne.current||ne.current(),null==D||D(e)},onExiting:L,onExited:e=>{e&&(e.style.display=""),null==Z||Z(e),(0,c.Z)(window,"resize",he)},manager:de(),transition:S?ce:void 0,backdropTransition:S?le:void 0,renderBackdrop:ge,renderDialog:r=>(0,k.jsx)("div",{role:"dialog",...r,style:je,className:a()(t,e,X&&`${e}-static`,!S&&"show"),onClick:O?be:void 0,onMouseUp:ye,"data-bs-theme":b,"aria-label":E,"aria-labelledby":g,"aria-describedby":j,children:(0,k.jsx)(m,{...K,onMouseDown:ve,className:n,contentClassName:o,children:y})})})})});fe.displayName="Modal";var de=Object.assign(fe,{Body:H,Header:ae,Title:ue,Footer:J,Dialog:q,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150})},80247:function(e,t,r){var n=r(95685),o=r.n(n),a=r(32735),i=r(46304),s=r(74512);const u=a.forwardRef(({bsPrefix:e,variant:t,animation:r="border",size:n,as:a="div",className:u,...c},l)=>{const f=`${e=(0,i.vE)(e,"spinner")}-${r}`;return(0,s.jsx)(a,{ref:l,...c,className:o()(u,f,n&&`${f}-${n}`,t&&`text-${t}`)})});u.displayName="Spinner",t.Z=u},8266:function(e){var t=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){var s,u,c,l=t(e),f=t(i);if(l&&f){if((u=e.length)!=i.length)return!1;for(s=u;0!==s--;)if(!a(e[s],i[s]))return!1;return!0}if(l!=f)return!1;var d=e instanceof Date,p=i instanceof Date;if(d!=p)return!1;if(d&&p)return e.getTime()==i.getTime();var h=e instanceof RegExp,v=i instanceof RegExp;if(h!=v)return!1;if(h&&v)return e.toString()==i.toString();var y=r(e);if((u=y.length)!==r(i).length)return!1;for(s=u;0!==s--;)if(!n.call(i,y[s]))return!1;if(o&&e instanceof Element&&i instanceof Element)return e===i;for(s=u;0!==s--;)if(!("_owner"===(c=y[s])&&e.$$typeof||a(e[c],i[c])))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[95],{46814:function(e,t,n){"use strict";n.r(t),n.d(t,{PastReleasesView:function(){return $}});var i=n(21161),r=n(21679),o=n(57857),a=n(31647),s=n(47022),l=n(70763),c=n(58688),u=n(45390),f=n(29457),d=n(3059),h=n(85847),p=n(48404),y=n(19226),v=(n(14129),n(97463)),b=n(69072),g=n(7170),m=n(92266),w=n(5344),S=n(56750),C=n.n(S);function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function O(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,k(i.key),i)}}function k(e){var t=function(e){if("object"!=P(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==P(t)?t:t+""}function R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(R=function(){return!!e})()}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}var 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),function(e,t,n){return t=E(t),function(e,t){if(t&&("object"==P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,R()?Reflect.construct(t,n||[],E(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"PastReleasesFiltersComponent"}},{key:"template",get:function(){return C()}},{key:"lang",get:function(){return"contentUpdates.pastReleasesFilters"}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceRegion:!1,partialLoading:f.LP.PastReleasesSearchFilter}}}},{key:"getVisibleFilters",value:function(){return new g.y(this.collection.filter(function(e){return w.qr.showFilter(e)}))}},{key:"renderFilterList",value:function(){var e=new m.$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()}}])&&O(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),T=n(68536),_=n.n(T);function L(e){return L="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},L(e)}function N(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,I(i.key),i)}}function I(e){var t=function(e){if("object"!=L(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==L(t)?t:t+""}function D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(D=function(){return!!e})()}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}function U(e,t){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},U(e,t)}var M=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=F(t),function(e,t){if(t&&("object"==L(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,D()?Reflect.construct(t,n||[],F(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U(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 _()}},{key:"regions",value:function(){return{filters:{el:".filters-region"}}}},{key:"renderFilters",value:function(){var e=new V({collection:this.filterCollection,channelName:this.options.channelName});this.showChildView("filters",e)}},{key:"viewOptions",value:function(){return{}}},{key:"onRender",value:function(){this.renderFilters()}}])&&N(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(a.Q.wA),x=n(82405),A=n(73616),B=n(39090),H=n(65351),W=n(95061),Q=n(69711),q=n.n(Q);function G(e){return G="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},G(e)}function z(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,J(i.key),i)}}function J(e){var t=function(e){if("object"!=G(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=G(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==G(t)?t:t+""}function K(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(K=function(){return!!e})()}function X(e){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},X(e)}function Z(e,t){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Z(e,t)}var $=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=X(t),function(e,t){if(t&&("object"==G(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||[],X(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}(t,e),n=t,(g=[{key:"initialize",value:function(){this.bindListeners(),this.contentUpdatesDataService=r.u.getInstance(u.Or.ContentUpdates,this),this.videoDataService=r.u.getInstance(u.Or.Video,this),this.libraryDataService=r.u.getInstance(u.Or.Library,this),this.videoMixinService=r.u.getInstance(u.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 q()}},{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:f.LP.VideoGroupList},pagination:{el:".pagination-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(u.Vk.CONTENT_UPDATES,"".concat(u.M_.LIBRARY_REVIEW_SETTINGS,":sync"),this.render),this.listenTo(u.Vk.RESTRICTED_VIDEO,"".concat(u.M_.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestrictedVideos),this.listenTo(this.channelName,u.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=B.RF.getLibraryIds(this.options.queryParams[A.g.Libraries],e),this.subjectCollectionIdentifier=new d.xw({dateQueryString:this.options.queryParams[A.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=B.RF.getSubjectOptions(t);this.filterCollection=B.RF.getFilterCollection(e,n,this.options.queryParams);var i=B.RF.getSelectedSubjects(this.filterCollection),r=n.length>1&&n.length===i.length;this.videoCollectionIdentifier=new d.IJ({dateQueryString:this.options.queryParams[A.g.ReleaseDate],libraryIds:this.libraryIds,subjects:!r&&i,cursor:this.options.queryParams.cursor}),this.listenTo(u.Vk.CONTENT_UPDATES,"".concat(this.videoCollectionIdentifier.toString(),":sync"),this.render),this.fetchVideos()}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new l.t(this.videoCollection.map(function(e){return new h.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:u.OV.CONTENT_UPDATES,action:u.eX.ContentUpdates.PAST_RELEASES,params:B.RF.getRouteQueryParams(this.filterCollection)})}},{key:"getContentClassName",value:function(){var e=H.Z.content;return this.reviewSetting&&this.reviewSetting.get("reviewPeriod")?e+=" d-inline-block border-start ".concat(H.Z.contentWithLeftNav):e+=" w-100",e}},{key:"renderHeader",value:function(){this.reviewSetting?this.showChildView("header",new v.u({activeTab:B.JI.PastReleases,reviewEnabled:this.reviewSetting.get("reviewPeriod")})):this.renderPartialLoading("header")}},{key:"renderLeftNav",value:function(){this.reviewSetting&&this.reviewSetting.get("reviewPeriod")&&this.showChildView("leftNav",new b.m({supportSiteUrl:this.config.get("supportSiteUrl"),currentUser:this.currentUser}))}},{key:"renderListHeader",value:function(){this.showChildView("listHeader",new M({filterCollection:this.filterCollection,channelName:this.channelName}))}},{key:"renderVideos",value:function(){this.config&&this.groupedVideoCollection?this.showChildView("videos",new x.D({collection:this.groupedVideoCollection,childOptions:{config:this.config,videoItemComponentType:c.U.PastReleases,videosWithMetadata:this.videosWithMetadata,customerHasCustomLibrary:this.customLibraries&&!!this.customLibraries.length,collectionViewChannel:this.channelName,currentUser:this.currentUser,libraries:this.customLibraries},emptyStateType:f.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 s.Q({cursors:e,appLink:{application:u.OV.CONTENT_UPDATES,action:u.eX.ContentUpdates.PAST_RELEASES,params:B.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=B.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:p.p.config,currentUser:y.K.currentUser,customLibraries:W.T.libraries}}},{key:"onBeforeRender",value:function(){this.initializeFilterCollection(),this.fetchVideos(),this.videoCollection&&(this.groupedVideoCollection=B.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()}}])&&z(n.prototype,g),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,g}(a.Q.G7)},56750:function(e,t,n){var i=n(31197);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(31197);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){return'<div class="filters-region d-inline-block"></div>'},useData:!0})},69711:function(e,t,n){var i=n(31197);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([[9620],{99620:function(e,t,n){"use strict";n.d(t,{R:function(){return V}});var r=n(43823),o=n(21161),i=n(57857),a=n(31647),l=n(56210),u=n(2214),c=n(50226),s=n.n(c),f={selectRating:"c7657",removeRating:"CETrw",disabled:"GZBl3",disabledSelected:"rDW1U"};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}function b(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}var m=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=h(t),function(e,t){if(t&&("object"==p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"SelectRatingItemComponent"}},{key:"template",get:function(){return s()}},{key:"tagName",get:function(){return"li"}},{key:"attributes",get:function(){return{title:this.options.editable?this.model.get("name"):""}}},{key:"className",get:function(){var e="cursor-pointer btn";return this.options.editable?e+=this.model.get("selected")?" btn-dark":" btn-outline-dark":e+=" ".concat(f.disabled," ")+(this.model.get("selected")?f.disabledSelected:""),e}},{key:"events",value:function(){return{click:"onClick"}}},{key:"behaviors",get:function(){var e=this.options.editable?this.options.model.get("name"):"";return[{behaviorClass:l.H,title:e}]}},{key:"onClick",value:function(){this.options.editable&&r.Radio.channel(this.options.channelName).trigger("select:rating",this.model)}},{key:"onRender",value:function(){this.resetClassName()}}])&&y(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(a.Q.wA);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k(r.key),r)}}function k(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(O=function(){return!!e})()}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}var C=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=R(t),function(e,t){if(t&&("object"==v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,O()?Reflect.construct(t,n||[],R(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"SelectRatingCollectionComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"rating-group btn-group p-0 m-0"}},{key:"childView",get:function(){return m}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,currentRatingId:this.options.currentRatingId,editable:this.options.editable}}}])&&w(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.Q.$W),S=n(45390),E=n(93569),_=n(40622),P=n(61057),T=n.n(P),x=n(45289);function N(e){return N="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},N(e)}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I(r.key),r)}}function I(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(B=function(){return!!e})()}function H(e){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},H(e)}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(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),function(e,t,n){return t=H(t),function(e,t){if(t&&("object"==N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,B()?Reflect.construct(t,n||[],H(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(t,e),n=t,a=[{key:"name",get:function(){return"SelectRatingComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"shared.selectRating"}},{key:"events",value:function(){return{"click .remove-rating":"onRemoveRating"}}},{key:"regions",value:function(){return{ratings:{el:".ratings-region",replaceElement:!0}}}},{key:"template",get:function(){return T()}},{key:"behaviors",get:function(){return[{behaviorClass:l.H,selector:".remove-rating",title:i.T.getPhrase(this.lang,"removeTooltip")}]}},{key:"appLinks",get:function(){return{".suggest-rating":{application:S.OV.LIBRARY_EDITOR,action:S.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.options.videoId],params:{metadata:_.pG.Rating}}}}},{key:"defaults",get:function(){return{editable:!0}}},{key:"initialize",value:function(){this.setViewCollection(),this.setCurrentRating(this.model),this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:rating",this.onRatingSelected)}},{key:"setCurrentRating",value:function(e){E.hD.setRating(e,this.viewCollection)}},{key:"onRatingSelected",value:function(e){this.setCurrentRating(e);var t=E.yV.getSelected(this.viewCollection);this.updateRating(t)}},{key:"onRemoveRating",value:function(e){e.preventDefault(),this.$(".remove-rating").tooltip("dispose"),this.setCurrentRating(null);var t=this.collection.findWhere({value:0});return this.updateRating(t),!1}},{key:"updateRating",value:function(e){r.Radio.channel(this.options.parentChannelName).trigger("select:rating",e),this.render()}},{key:"setViewCollection",value:function(){var e=o.filter(this.collection.toJSON(),function(e){return 0!==e.value});return this.viewCollection=new u.N(e)}},{key:"viewOptions",value:function(){var e=E.yV.getSelected(this.viewCollection);return{styles:o.extend(x.Z,f),showRemove:!this.options.hideRemove&&e&&this.options.editable,editable:this.options.editable,hideHeaderText:this.options.hideHeaderText}}},{key:"renderRatingCollectionComponent",value:function(){this.showChildView("ratings",new C({collection:this.viewCollection,channelName:this.channelName,editable:this.options.editable}))}},{key:"onRender",value:function(){this.renderRatingCollectionComponent()}}],a&&D(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(a.Q.wA)},61057:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return' <label class="'+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+'">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"rating",{name:"lang",hash:{},data:o}))+"</label>\n "+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+"\n"},2:function(e,t,n,r,o){return"d-inline-block"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-rating">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:o}))+"</a></span><br>"},6:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="text-secondary mx-2 remove-rating '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeRating:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"remove",{name:"lang",hash:{},data:o}))+"</span>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<div class="edit-rating form-group '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectRating:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.rating:i,t))+'">\n'+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.hideHeaderText:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+' <div>\n <div class="ratings-region" name="rating"></div>\n '+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.showRemove:i,{name:"if",hash:{},fn:e.program(6,o,0),inverse:e.noop,data:o}))?i:"")+'\n <div class="form-feedback"></div>\n </div>\n</div>'},useData:!0})},50226:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"\n"+e.escapeExpression("function"==typeof(i=null!=(i=n.code||(null!=t?t.code:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"code",hash:{},data:o}):i)},useData:!0})},45289:function(e,t){"use strict";t.Z={requiredStar:"BEwab",disabled:"N9ljx",formGroup:"dj5U0",suggestEdit:"DYJhs",programTitle:"HokbM",description:"Rg7xy",seriesTitle:"dgLz_",broadcastDate:"Wfedn",channel:"xGyC8",rating:"WIpKi",productionYear:"MHLLN",distributors:"TQxQ2",productionCompanies:"T9n2B",directors:"iFUiE",producers:"w4lSY",episodeNumber:"FkpUz",seasonNumber:"HDpHM",icon:"S2rQf",infoSvgContainer:"s96rB"}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[968],{16616:function(e,n,t){t.d(n,{FT:function(){return i}});var r=t(32735),a=t(74512);const o=["as","disabled"];function i({tagName:e,disabled:n,href:t,target:r,rel:a,role:o,onClick:i,tabIndex:c=0,type:l}){e||(e=null!=t||null!=r||null!=a?"a":"button");const u={tagName:e};if("button"===e)return[{type:l||"button",disabled:n},u];const s=r=>{(n||"a"===e&&function(e){return!e||"#"===e.trim()}(t))&&r.preventDefault(),n?r.stopPropagation():null==i||i(r)};return"a"===e&&(t||(t="#"),n&&(t=void 0)),[{role:null!=o?o:"button",disabled:void 0,tabIndex:n?void 0:c,href:t,target:"a"===e?r:void 0,"aria-disabled":n||void 0,rel:"a"===e?a:void 0,onClick:s,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),s(e))}},u]}const c=r.forwardRef((e,n)=>{let{as:t,disabled:r}=e,c=function(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.indexOf(r)>=0)continue;t[r]=e[r]}return t}(e,o);const[l,{tagName:u}]=i(Object.assign({tagName:t,disabled:r},c));return(0,a.jsx)(u,Object.assign({},c,l,{ref:n}))});c.displayName="Button",n.ZP=c},27445:function(e,n,t){t.d(n,{PB:function(){return a}});const r="data-rr-ui-";function a(e){return`${r}${e}`}},16608:function(e,n,t){t.d(n,{Z:function(){return a}});var r=t(32735);function a(e){const n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{n.current=e}),n.current}},54096:function(e,n,t){t.d(n,{G:function(){return o}});var r=t(32735),a=t(21679);function o(e){var n,t;return n=e,t=a.u.getInstance(n),r.useEffect(function(){return function(){a.u.releaseInstance(n)}}),t}},19442:function(e,n,t){t.d(n,{h:function(){return s}});var r=t(32735),a=t(53808),o=t(31647),i=t(52076),c=t(77105),l=t(39396),u={iconButton:"aGxoe",iconWithText:"_cjiV",svg:"q6vwS",iconOnly:"T1CzO",iconBorder:"lBPNt"};function s(e){var n="".concat(e.className," ").concat(u.iconButton);r.Children.toArray(e.children).length?n+=" ".concat(u.iconWithText):e.showBorder||e.customSize||(n+=" ".concat(u.iconOnly)),e.showBorder&&(n+=" ".concat(u.iconBorder," btn btn-outline-dark me-2")),e.disabled&&(n+=" disabled");var t=r.createElement(l.x,{svgName:e.svgName,className:"svg-container ".concat(u.svg),size:e.svgSize});return e.appLink||e.href?e.href?r.createElement("a",{className:n,href:e.href,onClick:function(n){n.preventDefault(),e.analyticsData&&e.analyticsOptions&&i.k.logUserAction(e.analyticsData,e.analyticsOptions),a.q.isFunction(e.onClick)&&e.onClick(n),o.Q.Ab.PageLoad(e.href,e.openInNewTab)},"aria-label":e.ariaLabel,role:e.role},t,e.children):r.createElement(c.F,{appLink:e.appLink,className:n,onClick:e.onClick,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled,ariaLabel:e.ariaLabel,role:e.role},t,e.children):r.createElement("button",{type:"button",className:n,"aria-label":e.ariaLabel,onClick:function(n){e.analyticsData&&e.analyticsOptions&&i.k.logUserAction(e.analyticsData,e.analyticsOptions),a.q.isFunction(e.onClick)&&e.onClick(n)},disabled:e.disabled,role:e.role},t,e.children)}},2491:function(e,n,t){t.d(n,{Z:function(){return i}});var r=t(92159),a=t(21186),o=t(54096);function i(){var e=(0,o.G)(r.P.ALERT);return{success:function(n){e.success(n)()},error:function(n){e.error(n)()},warning:function(n){e.createAlert({type:a.NK.Warning,heading:a.R6.Warning,message:n})},info:function(n,t){e.createAlert({heading:n,message:t,type:a.NK.Info})}}}},17942:function(e,n,t){t.r(n),t.d(n,{RemoveLogoView:function(){return g}});var r=t(32735),a=t(57857),o=t(86120),i=t(52076),c=t(70065),l=t(4231),u=t(85610),s=t(66703),f=t(2491),d=t(2248),p=t(45390),b={removeLogo:function(e,n,t,r){return{url:"/api/domain/v2/objects/".concat(e,"/logo/").concat(n),key:"remove:logo:".concat(n),type:d.k.DELETE,success:t,error:r,invalidationKeys:[p.M_.LOGO],dataServices:[p.Or.Customer]}}};function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var v="libraryEditor.removeLogo",y=a.T.encloseNamespace(v);function g(e){var n,t,a=(n=r.useState(!1),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,a,o,i,c=[],l=!0,u=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=o.call(t)).done)&&(c.push(r.value),c.length!==n);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(u)throw a}}return c}}(n,t)||function(e,n){if(e){if("string"==typeof e)return m(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,n):void 0}}(n,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.")}()),d=a[0],p=a[1],g=o.a.useGetFetch(),h=(0,f.Z)();return r.createElement(l.G,{closePopup:e.closePopup,title:y("removeSchoolCrest")},r.createElement("p",null,r.createElement(s.x,{namespace:v,phrase:"areYouSure"})),r.createElement(u.u,null,r.createElement(u.u.Cancel,{onClick:e.closePopup}),r.createElement(u.u.Submit,{onClick:function(){p(!0),g(b.removeLogo(e.customerId,e.logoId,function(){h.success(y("success")),i.k.logUserAction({id:e.logoId},{actionType:c.Vw.Remove,entity:c.py.Logo,workflowPhase:c.eu.Complete,location:c.LZ.Popup}),e.closePopup()},function(){h.success(y("error")),p(!1)}))},text:y("remove"),showSpinner:d,variant:"danger"})))}},30720:function(e,n,t){t.d(n,{Z:function(){return a}});var r=Function.prototype.bind.call(Function.prototype.call,[].slice);function a(e,n){return r(e.querySelectorAll(n))}},98269:function(e,n,t){var r=t(95685),a=t.n(r),o=t(32735),i=t(16616),c=t(46304),l=t(74512);const u=o.forwardRef(({as:e,bsPrefix:n,variant:t="primary",size:r,active:o=!1,disabled:u=!1,className:s,...f},d)=>{const p=(0,c.vE)(n,"btn"),[b,{tagName:m}]=(0,i.FT)({tagName:e,disabled:u,...f}),v=m;return(0,l.jsx)(v,{...b,...f,ref:d,disabled:u,className:a()(s,p,o&&"active",t&&`${p}-${t}`,r&&`${p}-${r}`,f.href&&u&&"disabled")})});u.displayName="Button",n.Z=u}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9734],{21771:function(e,t,i){"use strict";i.r(t),i.d(t,{MoveVideoView:function(){return P}});var n=i(21161),r=i(21679),o=i(57857),l=i(31647),a=i(52076),s=i(13156),c=i(10101),u=i(90680),h=i(88172),d=i(75917),f=i(45390),b=i(67670),y=i(93569),p=i(76001),g=i(79665),v=i(97011),m=i.n(v);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function S(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,L(n.key),n)}}function L(e){var t=function(e){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=k(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:t+""}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var P=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,i){return t=T(t),function(e,t){if(t&&("object"==k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,w()?Reflect.construct(t,i||[],T(e).constructor):t.apply(e,i))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(t,e),i=t,(l=[{key:"initialize",value:function(){this.listenTo(f.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(f.Vk.VIDEO,"".concat(f.M_.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=r.u.getInstance(f.Or.Library,this),this.videoDataService=r.u.getInstance(f.Or.Video,this)}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&o.T.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return m()}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e,t,i,n,r=this;return[{title:o.T.getPhrase(this.lang,"heading",{smartCount:null!==(t=null===(e=this.options.videoIds)||void 0===e?void 0:e.length)&&void 0!==t?t:1}),behaviorClass:c.Yw,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new b.v,buttonText:o.T.getPhrase(this.lang,"submit",{smartCount:null!==(n=null===(i=this.options.videoIds)||void 0===i?void 0:i.length)&&void 0!==n?n:1}),tooltip:function(){return r.getSubmitBtnTooltipOptions()},onClick:function(){return r.onSubmit()}}}]}},{key:"filterLibrariesWithVideo",value:function(){var e=this;if(this.libraries&&this.collection&&this.hasMultipleLibraries()){var t=this.collection.map(function(e){return e.get("libraries").map(function(e){return e.get("id")})}),i=n.uniq(n.flatten(t)),r=[],o=[];this.libraries.forEach(function(t){var l=y.PU.getModelFromCollection(e.options.folderId,t.get("children"));!n.contains(i,+t.get("id"))||l?r.push(t):o.push(t)}),this.libraries=new u.q(r),this.hiddenLibraryNames=o.map(function(e){return e.get("name")}),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(h.ZV.Disabled))return{title:o.T.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=y.PU.getSelected(this.libraryTreeKey,this.libraries);t&&y.PU.deselectAll(this.folderTreeKey,t.get("children")),y.PU.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(h.ZV.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var i=y.PU.getSelected(this.libraryTreeKey,this.libraries).get("children");y.PU.setSelected(this.folderTreeKey,e,i,t),t||this.spinnerModel.set(h.ZV.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(h.ZV.ShowSpinner,!0);var t,i,n=y.PU.getSelected(this.folderTreeKey,this.libraries),r=n.get("id"),o=this.collection.map(function(e){return e.id});this.collection.each(function(n){t||(t=n.categories.find(function(t){return t.get("id")===+e.options.folderId}),i=n)});var l=1===this.collection.length?i.get("name"):"",a=s.J.moveVideoAlert(t.get("name"),n.get("name"),n.get("id"),this.collection.length,l);this.videoDataService.moveVideos(o,r,this.options.folderId,function(){e.triggerMethod("hide")},a),this.logAction(Object.entries(o),r)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=n.map(this.hiddenLibraryNames,function(e){return"<strong>".concat(p.m.escapeExpression(e),"</strong>")});if(1===e.length)return e[0];var t=o.T.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var i={newParentId:t,oldParentId:this.options.folderId,count:this.collection.length};1===this.collection.length&&(i.id=n.first(Object.values(e))),a.k.logUserAction(i,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=y.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new g.A({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=y.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new d.Y({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries(function(t){e.libraries=new u.q(t.filter(function(e){return!!e.get("children").length})),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()}),this.collection||this.videoDataService.getVideos(this.options.videoIds,function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()}),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),y.PU.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}}])&&S(i.prototype,l),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,l}(l.Q.G7)},97011:function(e,t,i){var n=i(31197);e.exports=(n.default||n).template({1:function(e,t,i,n,r){var o;return e.propertyIsEnumerable,' <div class="alert alert-info" role="alert">\n <p class="m-0">'+(null!=(o=(i.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hiddenLibraryNames",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNamesLength:o,libraries:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o},data:r}))?o:"")+"</p>\n </div>\n"},3:function(e,t,i,n,r){return e.propertyIsEnumerable,' <div class="form-group">\n <label class="control-label">'+e.escapeExpression((i.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:r}))+'</label>\n <div class="library-region"></div>\n </div>\n'},5:function(e,t,i,n,r){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){e.propertyIsEnumerable;var o,l=null!=t?t:e.nullContext||{};return"<form>\n"+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?o:"")+"\n"+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?o:"")+'\n <div class="form-group">\n <label class="control-label folder-label" '+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?o:"")+">"+e.escapeExpression((i.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{},data:r}))+'</label>\n <div class="folder-region"></div>\n </div>\n</form>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9743],{77037:function(e,t,n){n.d(t,{q:function(){return l}});var i=n(32735),r=n(68003),a=n(88483),o=n(87013),c=n(85475),u=n(39396),s={avatar:"Gvwzj",dot:"JJHBJ"};function l(e){var t,n,l=!e.anonymiseUsers&&e.imageUrl||(t=e.imageCdnUrl,(n=e.initials)?o.j.createUrl(r._.safeUrlConcat(t,"/v1/profile-images?initials=".concat(n)),{size:a.h2.Small}):"");return i.createElement("div",{className:"position-relative h-100 w-100"},e.showAnonymousUser?i.createElement("div",{className:"".concat(s.avatar," ").concat((null==e?void 0:e.extraClasses)||""," bg-gray-700 text-light")},i.createElement(u.x,{svgName:c.vn.Anonymous,size:e.anonymousSvgSize||u.S.Large,className:"svg-container w-100 h-100"})):i.createElement("div",{className:"".concat(s.avatar," ").concat((null==e?void 0:e.extraClasses)||""),style:{backgroundImage:"url('".concat(l,"')")}}," "),e.showDot&&i.createElement("div",{className:"".concat(s.dot," rounded-circle bg-danger")}))}},41087:function(e,t,n){n.d(t,{C:function(){return h},g:function(){return l}});var i,r=n(32735),a=n(57857),o=n(95544),c=n(39396),u=n(21326),s=n(50028);!function(e){e.Exchange="exchange",e.Streamable="streamable",e.MoviesAndTv="movies_and_tv",e.Twig="twig"}(i||(i={}));var l,d=n(27866),v=n(45428),p=n(85475),m=n(21974),g=n(6665),f=a.T.encloseNamespace("shared.badges");!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction",e.Source="source"}(l||(l={}));var y={xs:c.S.ExtraSmall,sm:c.S.Small,std:c.S.Standard,lg:c.S.Large},b={xs:"badge-xs",sm:"badge-sm",std:"badge-std",lg:"badge-lg"};function h(e){var t=e.type,n=e.data,a=e.size,h=void 0===a?"std":a;if(!function(e,t){var n,i;return"boolean"==typeof t?!!t:e===l.Rating?t&&!!t.value:e===l.Interactive?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===l.Captions?!!(null==t?void 0:t.length)||!!(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.length):e===l.Status?"number"==typeof t:!!t}(t,n))return r.createElement(r.Fragment,null);var C=function(e,t,n){var r,a=b[n],c="";if(e===l.DurationApproximate&&(c="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===l.DurationExact&&(c="duration-badge"),e===l.Interactive&&(c="interactive-badge"),e===l.Rating&&(c="rating-badge text-shadow ".concat(m.u.mapRatingToClass(t.value))),e===l.ProductionYear&&(c="production-year-badge text-shadow"),e===l.Captions)return"p-0";if(e===l.Status)return"badge ".concat(function(e){switch(e){case s.X.Published:return"bg-success";case s.X.Archived:case s.X.Rejected:return"bg-danger";case s.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case s.X.Pending:case s.X.Processing:return"bg-warning"}}(t));if(e===l.Trending)return"trending-badge px-1 d-flex align-items-center ".concat(a);if(e===l.Count&&(c="count-badge px-1 rounded"),e===l.Restriction){var u=v.l.mapRestrictionToClass(t.restrictions);return(0,o.A)("restriction-badge rounded-pill px-2 d-flex align-items-center",u)}return e===l.Source&&(c=(r=t).includes(i.Streamable)?"px-1 text-nowrap d-flex align-items-center ".concat(g.Z.streamable):r.includes(i.MoviesAndTv)?"bg-indigo text-white px-1 text-nowrap d-flex align-items-center":r.includes(i.Exchange)?"bg-orange text-white px-1 text-nowrap d-flex align-items-center":r.includes(i.Twig)?"bg-pink text-white px-1 text-nowrap d-flex align-items-center":""),(0,o.A)("badge",c)}(t,n,h);C="".concat(C," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var w=function(e,t,n){if(e===l.Interactive)return f("interactive");if(e===l.DurationApproximate)return d.T.ToDisplayDurationNewStyle(t);if(e===l.DurationExact)return d.T.ToDisplayDuration(t);if(e===l.Rating)return t.code;if(e===l.ProductionYear)return t;if(e===l.Captions)return r.createElement(c.x,{svgName:p.vn.CloseCaptionBadge});if(e===l.Status)return s.X[t];if(e===l.Trending)return r.createElement(r.Fragment,null,r.createElement(c.x,{svgName:p.vn.Trending,size:y[n]}),r.createElement("span",{className:"ps-1"},t));if(e===l.Count)return t;if(e===l.Restriction)return r.createElement(r.Fragment,null,r.createElement(c.x,{svgName:v.l.mapRestrictionToSvg(t.restrictions)}),r.createElement("span",null,v.l.mapRestrictionToText(t.restrictions,t.yearGroups)));if(e===l.Source){var a=t;return a.includes(i.Streamable)?"streamable":a.includes(i.MoviesAndTv)?"movies + tv":a.includes(i.Exchange)?"exchange":a.includes(i.Twig)?"twig":"-"}}(t,n,h),T=function(e,t){return e===l.Rating?{title:t.name,placement:"top"}:null}(t,n),I=e.inline&&"d-inline-block";return T?r.createElement("div",{className:"badge-wrapper d-inline"},r.createElement(u.u,Object.assign({},T,{spanHack:!0,spanHackClassName:I}),r.createElement("span",{className:C},w))):r.createElement("span",{className:"".concat(C," badge-wrapper")},w)}},44550:function(e,t,n){n.d(t,{c:function(){return a}});var i=n(32735),r=n(6665);function a(e){var t="d-flex align-items-center badge-list ".concat(r.Z.minHeight);return e.className&&(t+=" ".concat(e.className)),i.createElement("div",{className:t},e.children)}},90547:function(e,t,n){var i;n.d(t,{r:function(){return i}}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(i||(i={}))},34254:function(e,t,n){var i;n.d(t,{r:function(){return i}}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(i||(i={}))},86257:function(e,t,n){var i;n.d(t,{L:function(){return i}}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(i||(i={}))},87648:function(e,t,n){var i;n.d(t,{c:function(){return i}}),function(e){e.Custom="custom",e.User="year_group"}(i||(i={}))},90335:function(e,t,n){var i;n.d(t,{D:function(){return i}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series",e.ProductionYear="production_year"}(i||(i={}))},332:function(e,t,n){n.d(t,{e:function(){return c}});var i=n(2248),r=n(68003),a=n(84657),o=n(34254),c={clip:function(e,t){return{key:"clip:".concat(e,":").concat(t),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.CLIP,permissionFilterOption:t})}},videoClips:function(e,t,n){return{key:"video:".concat(e,":clips:").concat(t,":").concat(n),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e,"/clips"),{query:a.v.CLIP_COLLECTION,permissionFilterOption:t,cursor:n})}},clipWithAllInteractives:function(e,t){return{key:"clip:".concat(e,":").concat(t,":interactives"),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"".concat(a.v.CLIP,",interactives{status:[0,1]}"),permissionFilterOption:t}),normalize:!1}},publicClip:function(e,t,n,i){return{key:"clip:".concat(e,":public:").concat(t),url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo,_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),bootstrapName:"shared:object:".concat(e),success:n,error:i}},sharedClip:function(e,t,n,i){return{key:"shared:clip:".concat(e),url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.CLIP}),success:n,error:i}},createClip:function(e,t,n,r,a){return{key:"create:clip",url:"{gateway}/v1/objects/".concat(e,"/clips"),data:t,type:i.k.POST,invalidationKeys:["videos:".concat(e),"my:videos"],success:n,error:r,always:a}},updateClip:function(e,t,n,r,a){return{key:"update:clip",url:"{gateway}/v1/objects/".concat(e),data:t,type:i.k.PUT,success:n,error:r,always:a}},deleteClip:function(e,t,n,r,a){return{key:"delete:clip",url:"{gateway}/v1/objects/".concat(e),type:i.k.DELETE,invalidationKeys:["videos:".concat(t),"my:videos","videos"],success:n,error:r,always:a}}}},91432:function(e,t,n){n.d(t,{b:function(){return c}});var i=n(2248),r=n(68003),a=n(84657),o=n(34254),c={interactiveMetadata:function(e,t){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.INTERACTIVE,permissionFilterOption:t}),key:"interactive:metadata:".concat(e,":").concat(t)}},videoInteractives:function(e,t,n){return{key:"video:".concat(e,":interactives:").concat(t,":").concat(n),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e,"/interactives"),{query:a.v.INTERACTIVE_COLLECTION,cursor:n}),publicUrl:r._.urlBuilder("/api/objects/".concat(e,"/interactives"),{query:a.v.INTERACTIVE_COLLECTION,cursor:n})}},sharedInteractiveMetadata:function(e,t,n,i){return{url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.INTERACTIVE}),key:"shared:interactive:metadata:".concat(e),success:n,error:i}},publicInteractiveMetadata:function(e,t,n,i){return{url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo[rating],_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),key:"interactive:metadata:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:i}},interactive:function(e){return{url:"/api/domain/v1/interactives/".concat(e),key:"interactive:".concat(e),normalize:!1}},createInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives",key:"create:interactive",type:i.k.POST,invalidationKeys:["my:videos"],data:e,success:t,error:n}},createInteractiveMetadata:function(e,t,n,r){return{url:"{gateway}/v1/objects/".concat(e,"/interactives"),key:"create:interactive:metadata",type:i.k.POST,data:t,success:n,error:r}},updateInteractive:function(e,t,n,r){return{url:"/api/domain/v1/interactives/".concat(e),key:"update:interactive",type:i.k.PUT,data:t,success:n,error:r,formatData:function(){return t},invalidationKeys:["interactive:".concat(e)]}},updateInteractiveMetadata:function(e,t,n,r){return{url:"{gateway}/v1/objects/".concat(e),key:"update:interactive:metadata",type:i.k.PUT,data:t,success:n,error:r}},interactiveResultSet:function(e,t){return{url:"/api/domain/v1/analytics/interactives/".concat(e,"/metadata/").concat(t),key:"interactive:result:set:".concat(e,":").concat(t)}},copyInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives/".concat(e,"/copy"),key:"copy:interactive",type:i.k.POST,invalidationKeys:["interactive:".concat(e),"my:videos"],success:t,error:n}},deleteInteractiveMetadata:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:interactive",type:i.k.DELETE,invalidationKeys:["interactive:".concat(e),"my:videos","videos"],success:t,error:n}},removeInteractiveMetadata:function(e){var t=e.libraryId,n=e.categoryId,a=e.interactiveMetadataId;return{url:r._.urlBuilder("/api/domain/v1/libraries/".concat(t,"/videos"),{categoryId:n,videoIds:a}),key:"remove:interactive:metadata:".concat(a),type:i.k.DELETE,invalidationKeys:["interactive:".concat(a),"my:videos","videos"]}},contributeToCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:i.k.POST}},revokefromCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:i.k.DELETE}},isContributed:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contributed"),key:"iscontributed:".concat(e),normalize:!1}},updateInteraction:function(e){return{url:"/api/domain/v1/interactions/bulk/".concat(e.id),key:"contribute:interactive",data:e,type:i.k.PUT,invalidationKeys:["interactive:".concat(e.interactiveId)]}}}},77131:function(e,t,n){n.d(t,{R:function(){return g}});var i,r=n(2248),a=n(68003),o=n(84657),c=n(50028),u=n(74421),s=n(34254);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget",e.Folder="category",e.CategoryTree="categoryTree"}(i||(i={}));var l=n(15970),d=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:o.v.VIDEO})},v=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating,libraries{typeId:[17]}",permissionFilterOption:s.r.StripMetadata,shareId:t})},p=function(e){return a._.urlBuilder("{gateway}/v1/objects",{"query.video":o.v.VIDEO_COLLECTION,"query.clip":o.v.CLIP_COLLECTION,"query.interactive":o.v.INTERACTIVE_COLLECTION,id:e})},m=function(e){var t=e.videoId,n=e.context,r=e.collectionId,c=e.moviesAndTv,u={videoId:t,limit:e.limit,query:o.v.VIDEO_COLLECTION};return n&&(n===i.Widget?u["context.widgetId"]=r:(u["context.collectionType"]=n,u["context.collectionId"]=r)),c&&(u["context.moviesAndTv"]=!0),a._.urlBuilder("{gateway}/v1/suggestions/related-videos",u)},g={video:function(e,t){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:o.v.VIDEO,permissionFilterOption:t}),publicUrl:a._.urlBuilder("/api/objects/".concat(e),{query:o.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t)}},publicVideo:function(e,t,n,i){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:i}},sharedVideo:function(e,t,n,i){return{url:d(e,t),key:"shared:video:".concat(e),success:n,error:i}},myVideos:function(e,t){var n=o.v.VIDEO_COLLECTION,i=o.v.CLIP_COLLECTION,r=o.v.INTERACTIVE,l="videos[".concat(n,"]{libraries.typeid:").concat(u.E.WorkspaceCollection,"}"),d="clips[".concat(i,"]"),v="interactives[".concat(r,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),p={query:"(".concat(l,"|").concat(d,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:s.r.StripMetadata};return t&&(p.cursor=t),{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),p),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:p(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:p(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,n,i,a){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:r.k.PUT,data:t,success:n,error:i,always:a}},videoRatings:function(e,t){var n=e.map(function(e){return"id=".concat(e)});if(n.length)return{url:"/api/domain/v2/objects?query=rating&".concat(n.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},videoMixinAssocs:function(e,t){if(e.map(function(e){return"id=".concat(e)}).length)return{url:a._.urlBuilder("{gateway}/v1/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},_hasCurriculumLinks",id:e}),publicUrl:a._.urlBuilder("/api/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},_hasCurriculumLinks",id:e}),key:"video:mixin:assocs:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(u.E.Video).concat(t.map(function(e){return"&objectId=".concat(e)}).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video:".concat(e),type:r.k.DELETE,success:t,error:n,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,n,i,a){var o=e.map(function(e){return"videoIds=".concat(e)}).join("&"),c=["categoryId=".concat(n),"".concat(o)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(c),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(n),type:r.k.DELETE,success:i,error:a,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,n=e.context,i=e.collectionId,r=e.moviesAndTv;return{url:m(e),key:"related:videos:".concat(t,":").concat(n,":").concat(i,":").concat(r)}},collectionVideos:function(e,t,n,i,r,u){var d=l.d.getVideoSortParam(t),v=o.v.VIDEO_COLLECTION,p=o.v.CLIP_COLLECTION,m=o.v.INTERACTIVE,g="videos[".concat(v,"]"),f="clips[".concat(p,"]"),y="interactives[".concat(m,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),b=Object.assign({query:"(".concat(g,"|").concat(f,"|").concat(y,")").concat(d?"{".concat(d,"}"):""),permissionFilterOption:s.r.FilterOut},n?{cursor:n}:{}),h=["folder","videos",e,n,t].filter(function(e){return!!e}).join(":");return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),b),key:h,success:i,error:r,always:u}},pointsOfInterest:function(e,t,n,i,r){var o={query:"{limit:100}",cursor:t};return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),o),publicUrl:a._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),o),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:n,error:i,always:r}},regionAlternatives:function(e,t,n,i){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:n,always:i}}}},45428:function(e,t,n){n.d(t,{l:function(){return g}});var i=n(57857),r=n(10657),a=n(6665),o=n(87648),c=n(85475);function u(e){return u="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},u(e)}function s(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=i.T.encloseNamespace("shared.shared-utils"),d=s(s({},o.c.Custom,a.Z.restrictionBadgeCustom),o.c.User,a.Z.restrictionBadgeUser),v=s(s({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),p=s(s({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),m=s(s({},o.c.Custom,200),o.c.User,100),g={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var n=g.getWeightedRestriction(e.value);return d[n.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var n=g.getWeightedRestriction(e.value);return v[n.type]},mapRestrictionToText:function(e,t){var n;if(!(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.length)||!(null==t?void 0:t.length))return"";var i=g.getWeightedRestriction(e.value),r=t.find(function(e){return e.value===i.yearGroup}),a=p[i.type];if(i.type===o.c.User)return null===i.yearGroup?l("restrictionStaff"):r?1===t.length?l("restrictionStudents"):l(a,{yearGroup:r.name}):"";if(i.type===o.c.Custom){var c=g.getRestrictionDuration(i);return c?l(a,{duration:c,smartCount:c}):l("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(null==e?void 0:e.length)return 1===e.length?e[0]:e.reduce(function(e,n){var i=m[e.type],r=m[n.type];return"highest"===t&&i>r||"lowest"===t&&i<r?e:n})},getRestrictionByType:function(e,t){if(!g.hasRestrictions(e))return null;var n=Array.isArray(t)?t:[t],i=e._restrictions.value.filter(function(e){return n.includes(e.type)});return g.getWeightedRestriction(i)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=r.O.convertUTCToLocal(e.expiresOn);if(t)return r.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!g.getRestrictionByType(e,[o.c.Custom])},hasRestrictions:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===n?void 0:n.length)}}},21974:function(e,t,n){n.d(t,{u:function(){return l}});var i=n(57857),r=n(75459),a=n(86257),o=n(85475);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 u(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="shared.shared-utils",l={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-blue";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case r.r.HostedLibrary:case r.r.CustomLibrary:return e.name;case r.r.Exchange:return i.T.getPhrase(s,"exchange");case r.r.Workspace:return i.T.getPhrase(s,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case r.r.HostedLibrary:case r.r.CustomLibrary:return"bg-blue";case r.r.Exchange:return"bg-green";case r.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t=u(u(u(u(u(u(u({},a.L.Pdf,o.vn.FilePDF),a.L.Image,o.vn.FileImg),a.L.PowerPoint,o.vn.FilePowerpoint),a.L.Document,o.vn.FileWord),a.L.Excel,o.vn.FileExcel),a.L.Zip,o.vn.FileZip),a.L.File,o.vn.File)[e];return t||(t=o.vn.Folder),t},mapTypeToClass:function(e){switch(e){case a.L.Pdf:return"icon-red";case a.L.Image:return"icon-purple";case a.L.Document:return"icon-blue";case a.L.Excel:return"icon-green";case a.L.PowerPoint:return"icon-orange";case a.L.Zip:return"icon-teal";case a.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case a.L.Pdf:return i.T.getPhrase(s,"pdf");case a.L.Image:return i.T.getPhrase(s,"image");case a.L.Document:return i.T.getPhrase(s,"document");case a.L.Excel:return i.T.getPhrase(s,"spreadsheet");case a.L.PowerPoint:return i.T.getPhrase(s,"presentation");case a.L.Zip:return i.T.getPhrase(s,"zipArchive");case a.L.File:return i.T.getPhrase(s,"file");default:return""}}}},11275:function(e,t,n){n.d(t,{M:function(){return b}});var i,r=n(11306),a=n(57857),o=n(31647),c=n(10657),u=n(70065);!function(e){e.Screenrights="screenrights",e.Era="era",e.ClickView="clickview"}(i||(i={}));var s=n(50028),l=n(74421),d=n(87648),v=n(332),p=n(91432),m=n(77131),g=n(45428),f=n(13034),y=a.T.encloseNamespace("shared.shared-utils"),b={isVideo:function(e){return(null==e?void 0:e.typeId)===l.E.Video},isClip:function(e){return(null==e?void 0:e.typeId)===l.E.Clip},isInteractive:function(e){return(null==e?void 0:e.typeId)===l.E.Interactive},isVideoTypeArchived:function(e){return(null==e?void 0:e.status)===s.X.Archived},isVideoType:function(e){return b.isVideo(e)||b.isInteractive(e)||b.isClip(e)},hasSeries:function(e){var t;return!!(null===(t=null==e?void 0:e.series)||void 0===t?void 0:t.id)},showVideoGuidance:function(e){return!e(f.C.StudentExperience)},showInteractivesGuidance:function(e){var t,n;return!(!e||b.isInteractive(e)||!(null===(n=null===(t=e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length))},showResourcesGuidance:function(e){var t,n,i,r;return!(!e||b.isInteractive(e)||!(((null===(n=null===(t=e.resources)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)||0)+((null===(r=null===(i=e.links)||void 0===i?void 0:i.data)||void 0===r?void 0:r.length)||0)))},getVideoProgress:function(e){var t,n;return(null==e?void 0:e.lastProgressPoint)?null==e?void 0:e.lastProgressPoint:(null===(t=null==e?void 0:e._videoProgress)||void 0===t?void 0:t.progress)?null===(n=null==e?void 0:e._videoProgress)||void 0===n?void 0:n.progress:0},getThumbnail:function(e){var t,n,i;return e?b.isVideo(e)?e.thumbnail:(null==e?void 0:e._thumbnail)?e._thumbnail:b.isClip(e)?e.thumbnail||(null===(t=e._parentVideo)||void 0===t?void 0:t.thumbnail):b.isInteractive(e)?(null===(n=e._parentVideo)||void 0===n?void 0:n.thumbnail)||(null===(i=e._parentClip)||void 0===i?void 0:i.thumbnail):void 0:null},getDuration:function(e){var t,n;if(e){if(b.isVideo(e))return e.duration;if(b.isInteractive(e)){if(null===(t=e._parentClip)||void 0===t?void 0:t.id)return 1e3*(e._parentClip.endTime-e._parentClip.startTime);if(null===(n=e._parentVideo)||void 0===n?void 0:n.duration)return e._parentVideo.duration}return b.isClip(e)?1e3*(e.endTime-e.startTime):void 0}},getAnalyticsEntity:function(e){return b.isVideo(e)?u.py.Video:b.isInteractive(e)?u.py.Interactive:b.isClip(e)?u.py.Clip:void 0},getAnalyticsData:function(e){var t,n,i,r,a,o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(b.isVideo(e))return Object.assign(Object.assign({},c||{}),{id:e.id,name:e.name});if(b.isClip(e)){var u=Object.assign(Object.assign({},c||{}),{id:e.id,name:e.name});return(null===(t=e._parentVideo)||void 0===t?void 0:t.id)&&(u.video={id:null===(n=e._parentVideo)||void 0===n?void 0:n.id,name:e._parentVideo.name}),u}var s=Object.assign(Object.assign({},c),{id:e.id,interactiveId:e.interactiveId,name:e.name,status:e.status,originType:e.originType});return(null===(i=null==e?void 0:e._parentClip)||void 0===i?void 0:i.id)&&(s.clip={id:null===(r=null==e?void 0:e._parentClip)||void 0===r?void 0:r.id,name:null==e?void 0:e._parentClip.name}),(null===(a=null==e?void 0:e._parentVideo)||void 0===a?void 0:a.id)&&(s.video={id:null===(o=null==e?void 0:e._parentVideo)||void 0===o?void 0:o.id,name:null==e?void 0:e._parentVideo.name}),s},getCanBeConsumed:function(e){var t,n;return e&&b.isVideoType(e)?e._canBeConsumed?{canNavigate:"login-required"===(null===(t=e._canBeConsumed)||void 0===t?void 0:t.reason)&&b.isVideo(e)||!0===e._canBeConsumed.value,canConsume:e._canBeConsumed.value,reason:null===(n=e._canBeConsumed)||void 0===n?void 0:n.reason}:{canNavigate:!0,canConsume:!0}:{canNavigate:!1,canConsume:!1}},getPrivacyReasoning:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=b.getCanBeConsumed(e),r=i.canConsume,a=i.canNavigate,o=i.reason,c=function(){return b.isClip(e)?y("clipLoginRequired"):b.isInteractive(e)?y("interactiveLoginRequired"):y("videoLoginRequired")};if(!r&&!a){if(n)return c();switch(o){case"rating-not-allowed":return y("ratingNotAllowed");case"video-deleted":return b.isClip(e)?y("clipParentDeleted"):b.isInteractive(e)?y("interactiveParentDeleted"):y("videoDeleted");case"clickview-private":return y("clickViewPrivate");case"private":default:return y("genericCannotAccess");case"login-required":return c();case"restricted-access":var u=g.l.getWeightedRestriction(null===(t=e._restrictions)||void 0===t?void 0:t.value);return(null==u?void 0:u.type)===d.c.Custom?y("awaitingApproval"):y("restrictedAccess")}}return b.isInteractive(e)&&e.status===s.X.Draft?y("draftInteractive"):""},getTitle:function(e){if(e.name)return b.isInteractive(e)&&e.status===s.X.Draft?y("draftInteractiveTitle",{name:e.name}):e.name;var t=b.getCanBeConsumed(e),n=t.canConsume,i=t.reason;return y(n||"private"!==i?n||"video-deleted"!==i?"privateVideo":"videoUnavailable":"privateVideo")},getParentVideo:function(e){return b.isVideo(e)?e:b.isClip(e)||b.isInteractive(e)?e._parentVideo:void 0},getRating:function(e){var t;return b.isVideo(e)?e.rating:null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t.rating},getVideoRequest:function(e,t,n){if(n){switch(t){case l.E.Video:return m.R.sharedVideo(e,n);case l.E.Clip:return v.e.sharedClip(e,n);case l.E.Interactive:return p.b.sharedInteractiveMetadata(e,n)}o.Q.Ry.throw(new r.H("Unsupported master type"))}switch(t){case l.E.Video:return m.R.video(e);case l.E.Clip:return v.e.clip(e);case l.E.Interactive:return p.b.interactiveMetadata(e)}o.Q.Ry.throw(new r.H("Unsupported master type"))},isBroadcast:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.contentLicences)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some(function(e){return e.systemName===i.Era||e.systemName===i.Screenrights}))},getReleaseDate:function(e){return e&&e.dateReleased&&b.isBroadcast(e)?c.O.format(e.dateReleased,"DD/MM/YYYY"):""},canViewOriginalVideo:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t._canBeConsumed)||void 0===n?void 0:n.value)},getTrackingCode:function(e){return b.isVideo(e)?e.trackingCode:b.isClip(e)||b.isInteractive(e)?e._parentVideo.trackingCode:void 0},isInExchange:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.libraries)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some(function(e){return e.typeId===l.E.ExchangeCollection}))},canViewUploadDate:function(e){return!(!e||!e.dateCreated||!e._isClickViewCurated||e._isClickViewCurated.value)}}},15970:function(e,t,n){n.d(t,{d:function(){return o}});var i=n(51614),r=n(90335),a=r.D.RecentlyAdded,o={getValidSortTypeFromParam:function(e){return Object.values(r.D).includes(e)?e:r.D.Newest},getOrSetSortType:function(e,t,n,r){var o=function(e,t){return"".concat(t?"".concat(t,":"):"","video:sort:").concat(e)}(e,r);return!t&&i.SG.cacheExists(o)||i.SG.cacheSet(o,t||n||a),t||(t=i.SG.cacheGet(o)),t},getVideoSortParam:function(e){switch(e){case r.D.AtoZ:return"orderby:name";case r.D.ZtoA:return"orderbydesc:name";case r.D.Newest:return"orderbydesc:datecreated";case r.D.Oldest:return"orderby:datecreated";case r.D.RecentlyAdded:return"orderbydesc:timestamp";case r.D.Series:return"orderby:seriessort";case r.D.ProductionYear:return"orderbydesc:productionyear";default:return}}}},6665:function(e,t){t.Z={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 9766-22dd736844.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9766],{42905:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var o=n(57857),i=n(68003),r="shared.shared-utils",a={getEmbedResolutions:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=[{label:o.T.getPhrase(r,"small"),width:"640",height:"360"},{label:o.T.getPhrase(r,"medium"),width:"1014",height:"576"},{label:o.T.getPhrase(r,"large"),width:"1280",height:"720"}];return e&&t.unshift({label:o.T.getPhrase(r,"responsive"),width:"100%",height:"100%"}),t},getEmbedString:function(e){var t=e.url,n=e.size,o="100%"===n.width,i=o?'style="position:absolute; top:0; left:0; width:100%; height:100%;"':'width="'.concat(n.width,'" height="').concat(n.height,'"'),r='src="'.concat(t,'"'),a="<iframe ".concat(i," ").concat('frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen allow="autoplay"'," ").concat(r,"></iframe>");return o?'<div style="padding:56.25% 0 0 0; position:relative;">'.concat(a,"</div>"):a},buildEmbedUrl:function(e){var t=e.embedUrl,n=e.host,o=e.shareId,r=e.autoplay,a=e.consumerKey,l=t;l||(l=i._.safeUrlConcat(n,"share/embed/".concat(o)));var s={};return r&&(s.a=!0),a&&(s.consumerKey=a),i._.urlBuilder(l,s)}}},39766:function(e,t,n){"use strict";n.r(t),n.d(t,{ShareView:function(){return L}});var o=n(15922),i=n(21161),r=n(21679),a=n(57857),l=n(99249),s=n(68003),c=n(31647),u=n(42905),f=n(10101),h=n(45390),d=n(33800),p=n(29457),y=n(48404),b=n(93569),m=n(721),v=n.n(m),g=n(98723),k=n.n(g),w=n(151),S=n.n(w),E={container:"UHvy5",shareInput:"YMGwr",footerText:"D4m9G"};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 T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,P(o.key),o)}}function O(e,t,n){return t&&C(e.prototype,t),n&&C(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function P(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}function _(e,t,n){return t=M(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,j()?Reflect.construct(t,n||[],M(e).constructor):t.apply(e,n))}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(j=function(){return!!e})()}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(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&&A(e,t)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}var z=function(e){function t(e){return T(this,t),_(this,t,[e])}return I(t,e),O(t,[{key:"name",get:function(){return"ShareFooterComponent"}},{key:"className",get:function(){return"modal-footer bg-light rounded-bottom"}},{key:"template",get:function(){return S()}},{key:"viewOptions",value:function(){return{footerTextClass:E.footerText,privacyDescription:this.options.privacyDescription}}}])}(c.Q.wA),L=function(e){function t(e){var n;return T(this,t),(n=_(this,t,[e])).clipboards=[],n}return I(t,e),O(t,[{key:"initialize",value:function(){this.setUpViewModel(),this.bindListeners(),this.videoDataService=r.u.getInstance(d.O.Video,this)}},{key:"name",get:function(){return"ShareView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return k()}},{key:"lang",get:function(){return"sharedLe.share"}},{key:"props",get:function(){return["videoId"]}},{key:"elements",get:function(){return{copy:".copy",embedToggle:".embed-toggle"}}},{key:"events",value:function(){return{"click @ui.copy":"onClickCopy","click @ui.embedToggle":"onClickEmbed"}}},{key:"regions",value:function(){return{container:{el:".".concat(E.container),replaceElement:!1},footer:{el:".modal-footer",replaceElement:!0}}}},{key:"defaults",get:function(){return{autoplay:!1,selectedVideoSize:0,videoSizes:u.i.getEmbedResolutions()}}},{key:"behaviors",get:function(){return[{behaviorClass:f.Yw,title:a.T.getPhrase(this.lang,"share"),hideCloseButton:!0},{behaviorClass:f.Bp,bindViewModel:!0}]}},{key:"bindListeners",value:function(){this.listenTo(this.viewModel,"change:autoplay change:selectedVideoSize",this.render),this.listenTo(this.viewModel,"change:public",this.onTogglePublic),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render)}},{key:"bindings",get:function(){var e=this;return{"[name=autoplay]":"autoplay","[name=selectedVideoSize]":{observe:"selectedVideoSize",selectOptions:{collection:function(){return i.map(e.options.videoSizes,function(e,t){return{label:e.label,value:t}})}}},"[name=public]":"public"}}},{key:"setUpViewModel",value:function(){this.viewModel=l.r.get("share:".concat(this.options.videoId),this.options)}},{key:"onTogglePublic",value:function(){var e=this,t=this.viewModel.get("public")?p.F2.Public:p.F2.SchoolOnly;this.videoDataService.getSharedResource(this.videoId,t,function(n){n.set("privacyId",t),e.onSharedResourceSync(n)})}},{key:"updateViewModel",value:function(){this.viewModel.set("public",this.model.get("privacyId")===p.F2.Public,{silent:!0})}},{key:"onSharedResourceSync",value:function(e){this.model=e,this.updateViewModel(),this.render()}},{key:"fetchData",value:function(){this.video=this.videoDataService.getVideo(this.videoId),this.model||this.videoDataService.getSharedResource(this.videoId,null,i.bind(this.onSharedResourceSync,this))}},{key:"buildEmbedString",value:function(){var e=i.extend({},this.model.toJSON(),this.viewModel.toJSON()),t=this.options.videoSizes[e.selectedVideoSize],n="100%"===t.height&&"100%"===t.width;e.videoSize=t,e.baseUrl=s._.safeUrlConcat(this.config.get("onlineUrl"),"/share/embed"),e.isResponsive=n;var o=v()(e);return n?'<div style="padding:56.25% 0 0 0; position:relative;">'.concat(o,"</div>"):o}},{key:"onClickEmbed",value:function(){this.viewModel.set("showEmbed",!0),this.render()}},{key:"onClickCopy",value:function(e){this.$(e.currentTarget).text(a.T.getPhrase(this.lang,"copied"))}},{key:"getPrivacyDescription",value:function(e){switch(e){case p.F2[p.F2.Private]:return a.T.getPhrase(this.lang,"private");case p.F2[p.F2.SchoolOnly]:return a.T.getPhrase(this.lang,"schoolOnly");case p.F2[p.F2.Public]:return a.T.getPhrase(this.lang,"public");default:return""}}},{key:"initClipboards",value:function(){var e=this;this.destroyClipboards(),this.getUI("copy").each(function(t,n){e.clipboards.push(new o(n))})}},{key:"destroyClipboards",value:function(){i.each(this.clipboards,function(e){return e.destroy()}),this.clipboards=[]}},{key:"requiredResources",get:function(){return{config:y.p.config}}},{key:"getCannotPublicShareText",value:function(){return this.video?b.M2.isExchangeVideo(this.video)?a.T.getPhrase(this.lang,"cannotShareExchange"):a.T.getPhrase(this.lang,"cannotShareClickView"):""}},{key:"onBeforeDestroy",value:function(){this.destroyClipboards()}},{key:"renderFooter",value:function(){var e=this.model&&this.getPrivacyDescription(this.model.get("privacy"));this.showChildView("footer",new z({privacyDescription:e}))}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:E},this.viewModel.toJSON()),{embedString:this.model&&this.buildEmbedString(),spinnerEl:b.Kp.getSpinner({size:b.Ey.Large,extraClasses:"mx-auto"}),showLoader:!this.model||!this.video,canPublicShare:this.video&&b.BK.canPublicShare(this.video),cannotPublicShareText:this.getCannotPublicShareText()})}},{key:"onBeforeRender",value:function(){this.fetchData()}},{key:"onRender",value:function(){this.initClipboards(),this.renderFooter()}}])}(c.Q.G7)},15922:function(e){var t;t=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";var 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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=s(n(1)),a=s(n(3)),l=s(n(4));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.resolveOptions(n),o.listenClick(e),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===o(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,l.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new r.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return u("action",e)}},{key:"defaultTarget",value:function(e){var t=u("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return u("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}(a.default);function u(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=c},function(e,t,n){"use strict";var o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=(o=n(2))&&o.__esModule?o:{default:o},l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return r(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=l},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var o=window.getSelection(),i=document.createRange();i.selectNodeContents(e),o.removeAllRanges(),o.addRange(i),t=o.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function i(){o.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,i=n.length;o<i;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],i=[];if(o&&t)for(var r=0,a=o.length;r<a;r++)o[r].fn!==t&&o[r].fn._!==t&&i.push(o[r]);return i.length?n[e]=i:delete n[e],this}},e.exports=n},function(e,t,n){var o=n(5),i=n(6);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!o.string(t))throw new TypeError("Second argument must be a String");if(!o.fn(n))throw new TypeError("Third argument must be a Function");if(o.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(o.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}(e,t,n);if(o.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var o=n(7);function i(e,t,n,o,i){var a=r.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function r(e,t,n,i){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,o,r){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,t,n,o,r)}))}},function(e,t){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}}])},e.exports=t()},721:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return'style="position:absolute; top:0; left:0; width:100%; height:100%;"'},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return'width="'+l(a(null!=(r=null!=t?t.videoSize:t)?r.width:r,t))+'" height="'+l(a(null!=(r=null!=t?t.videoSize:t)?r.height:r,t))+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c="function",u=e.escapeExpression;return'<iframe frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen '+(null!=(r=n.if.call(l,null!=t?t.isResponsive:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+' src="'+u(typeof(a=null!=(a=n.baseUrl||(null!=t?t.baseUrl:t))?a:s)===c?a.call(l,{name:"baseUrl",hash:{},data:i}):a)+"?shareCode="+u(typeof(a=null!=(a=n.shortCode||(null!=t?t.shortCode:t))?a:s)===c?a.call(l,{name:"shortCode",hash:{},data:i}):a)+"&a="+u(typeof(a=null!=(a=n.autoplay||(null!=t?t.autoplay:t))?a:s)===c?a.call(l,{name:"autoplay",hash:{},data:i}):a)+'"></iframe>'},useData:!0})},98723:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,(null!=(r=e.lambda(null!=(r=null!=t?t.options:t)?r.spinnerEl:r,t))?r:"")+"\n"},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'\n<div class="'+s(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.container:r,t))+'">\n <label for="share-input" class="mb-0 h6">'+s((n.lang||t&&t.lang||u).call(c,"shareLink",{name:"lang",hash:{},data:i}))+'</label>\n <div class="input-group mb-2">\n <input type="text" autocomplete="off" class="form-control '+s(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.shareInput:r,t))+'" id="share-input" spellcheck="false" readonly="true" value='+s("function"==typeof(a=null!=(a=n.shortUrl||(null!=t?t.shortUrl:t))?a:u)?a.call(c,{name:"shortUrl",hash:{},data:i}):a)+'>\n <button class="btn btn-outline-dark copy" type="button" data-clipboard-target="#share-input">'+s((n.lang||t&&t.lang||u).call(c,"copy",{name:"lang",hash:{},data:i}))+"</button>\n </div>\n\n"+(null!=(r=n.unless.call(c,null!=(r=null!=t?t.options:t)?r.showEmbed:r,{name:"unless",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?r:"")+"\n"+(null!=(r=n.if.call(c,null!=(r=null!=t?t.options:t)?r.showEmbed:r,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?r:"")+"</div>\n"},4:function(e,t,n,o,i){return e.propertyIsEnumerable,' <small class="embed-toggle"><a class="text-info cursor-pointer hover-text-underline">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"showOptions",{name:"lang",hash:{},data:i}))+"</a></small>\n"},6:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return' <hr class="mt-4">\n <label for="link-options-input" class="mb-2 h6">'+s((n.lang||t&&t.lang||l).call(a,"linkOptions",{name:"lang",hash:{},data:i}))+'</label>\n <div class="form-check mb-2">\n <input type="checkbox" autocomplete="off" class="form-check-input public-checkbox" id="public-checkbox" name="public" '+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.canPublicShare:r,{name:"unless",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?r:"")+'>\n <label class="form-check-label" for="public-checkbox">'+s((n.lang||t&&t.lang||l).call(a,"publicCheckbox",{name:"lang",hash:{},data:i}))+"</label>\n "+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.canPublicShare:r,{name:"unless",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+'\n </div>\n <hr class="mt-4">\n <label for="embed-input" class="mb-0 mt-2 h6">'+s((n.lang||t&&t.lang||l).call(a,"embed",{name:"lang",hash:{},data:i}))+'</label>\n <div class="input-group mb-2 '+s(c(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.textareaContainer:r,t))+'">\n <textarea type="text" class="form-control rounded w-100 h-100 z-0" id="embed-input" spellcheck="false" rows="6" readonly>'+s(c(null!=(r=null!=t?t.options:t)?r.embedString:r,t))+'</textarea>\n <div class="position-absolute bottom-0 end-0"><button class="btn btn-outline-dark copy" type="button" data-clipboard-target="#embed-input">'+s((n.lang||t&&t.lang||l).call(a,"copy",{name:"lang",hash:{},data:i}))+"</button></div>\n </div>\n"+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.videoSizes:r,{name:"if",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="form-check d-inline-block">\n <input type="checkbox" autocomplete="off" class="form-check-input autoplay-checkbox" id="autoplay-checkbox" name="autoplay">\n <label class="form-check-label" for="autoplay-checkbox">'+s((n.lang||t&&t.lang||l).call(a,"autoplay",{name:"lang",hash:{},data:i}))+"</label>\n </div>\n"},7:function(e,t,n,o,i){return"disabled"},9:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<div class="text-secondary">'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.cannotPublicShareText:r,t))+"</div>"},11:function(e,t,n,o,i){return e.propertyIsEnumerable,' <label for="size-select" class="d-block pt-2 h6">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"playerSize",{name:"lang",hash:{},data:i}))+'</label>\n <select class="form-select me-4 size-select w-50 d-inline-block" id="#size-select" name="selectedVideoSize"></select>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.showLoader:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:""},useData:!0})},151:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return'<small class="text-start w-100 mb-0 '+l(a(null!=(r=null!=t?t.options:t)?r.footerTextClass:r,t))+'">'+l(a(null!=(r=null!=t?t.options:t)?r.privacyDescription:r,t))+"</small>"},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9825],{67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});var r=n(31647),o=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=s(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(r=[{key:"defaults",value:function(){return a(a({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&l(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},79825:function(e,t,n){"use strict";n.r(t),n.d(t,{DownloadToLocalCacheView:function(){return O}});var r=n(21679),o=n(57857),i=n(31647),a=n(10101),l=n(88172),c=n(45390),u=n(87175),s=n(67670),f=n(19226),p=n(93569),h=n(9231),d=n.n(h),y={image:"wnpu5"};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 m(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,v(r.key),r)}}function v(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}var O=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=C(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,g()?Reflect.construct(t,n||[],C(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(t,e),n=t,(h=[{key:"initialize",value:function(){this.localCacheDataService=r.u.getInstance(c.Or.LocalCache,this),this.bindListeners()}},{key:"name",get:function(){return"DownloadToLocalCacheView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"shared.downloadToLocalCache"}},{key:"template",get:function(){return d()}},{key:"channelName",get:function(){return p.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){return this.spinnerModel=new s.v,[{behaviorClass:a.Yw,title:o.T.getPhrase(this.lang,"popupHeading"),spinnerButtonOptions:this.getSpinnerButtonOptions}]}},{key:"bindListeners",value:function(){var e=this;this.listenTo(c.Vk.USER,"".concat(c.M_.CURRENT_USER,":sync"),this.render),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.LOCAL_CACHE_DOWNLOADS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.ADD_VIDEO_TO_LOCAL_CACHE,":sync"),function(){return e.triggerMethod("hide")}),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.ADD_VIDEO_TO_LOCAL_CACHE,":error"),function(){return e.triggerMethod("hide")})}},{key:"getSpinnerButtonOptions",value:function(){var e=this;if(!this.localCacheDownloads||!this.localCacheDownloads.length)return{model:this.spinnerModel,channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"buttonText"),onClick:function(){return e.onClickAddToLocalCache()}}}},{key:"onClickAddToLocalCache",value:function(){this.spinnerModel.set(l.ZV.ShowSpinner,!0),this.localCacheDataService.downloadVideoToLocalCache(this.model.get("deviceId"),this.options.videoId)}},{key:"requiredResources",get:function(){return{currentUser:f.K.currentUser}}},{key:"onBeforeRender",value:function(){var e=this.localCacheDataService.getDevices(this.currentUser.get("customerId"));return this.localCacheDownloads=this.localCacheDataService.getDownloadsForVideos([this.options.videoId]),!(e&&this.localCacheDownloads&&(this.model=p.o8.getNewestDeviceUserCanManage(e,this.currentUser.get("customerId")),this.model?(this.spinnerModel.set(l.ZV.Disabled,!1),0):(setTimeout(function(){return i.Q.Ry.throw(new u.HH)},0),1)))}},{key:"viewOptions",value:function(){return{styles:y,dataFetched:!!this.model&&!!this.localCacheDownloads,spinnerEl:p.Kp.getSpinner({size:p.Ey.Large,extraClasses:"mx-auto"}),alreadyDownloaded:this.localCacheDownloads&&this.localCacheDownloads.length,imageUrl:c.Wn.Shared.LOCAL_CACHE}}}])&&m(n.prototype,h),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,h}(i.Q.G7)},9231:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.alreadyDownloaded:i,{name:"unless",hash:{},fn:e.program(4,o,0),inverse:e.program(6,o,0),data:o}))?i:""},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u=e.lambda;return'<p class="mb-3"><strong>'+c((n.lang||t&&t.lang||l).call(a,"description",{name:"lang",hash:{},data:o}))+'</strong></p>\n<img class="img-fluid '+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' mb-3" src="'+c(u(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" />\n<p>'+c((n.lang||t&&t.lang||l).call(a,"nextStep",{name:"lang",hash:{},data:o}))+"</p>\n"},6:function(e,t,n,r,o){return e.propertyIsEnumerable,'<p class="m-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"alreadyAdded",{name:"lang",hash:{},data:o}))+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9928],{61522:function(t,e,n){"use strict";n.d(e,{J:function(){return g}});var o=n(57857),r=n(31647),i=n(52076),a=n(70065),c=n(85475),s=n(71641),l=n(45390),u=n(8050),p=n.n(u);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,d(o.key),o)}}function d(t){var e=function(t){if("object"!=f(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==f(e)?e:e+""}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(b=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}var g=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=h(e),function(t,e){if(e&&("object"==f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,b()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),n=e,(u=[{key:"name",get:function(){return"LibraryActionsComponent"}},{key:"template",get:function(){return p()}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.libraryActions"}},{key:"className",get:function(){return"position-absolute ".concat("Qgopl"," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle"}}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".items-region"}}}},{key:"getDropdownItems",value:function(){return[{title:o.T.getPhrase(this.lang,"addFolder"),analyticsOptions:i.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.Create,entity:a.py.Folder,workflowPhase:a.eu.Start}),appLink:{application:l.OV.LIBRARY_EDITOR,action:l.eX.Shared.NEW_FOLDER,args:[this.model.get("id")]}},{title:o.T.getPhrase(this.lang,"rename"),analyticsOptions:i.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.Rename,entity:a.py.Library,workflowPhase:a.eu.Start}),appLink:{application:l.OV.LIBRARY_EDITOR,action:l.eX.LibraryEditor.RENAME_LIBRARY,args:[this.model.get("id")]}},{title:o.T.getPhrase(this.lang,"libraryRequestSettings"),analyticsOptions:i.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.SetAccess,entity:a.py.Library,workflowPhase:a.eu.Start}),appLink:{application:l.OV.LIBRARY_REQUESTS,action:l.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[this.model.get("id")]}},{title:o.T.getPhrase(this.lang,"remove"),analyticsOptions:i.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.Delete,entity:a.py.Library,workflowPhase:a.eu.Start}),appLink:{application:l.OV.LIBRARY_EDITOR,action:l.eX.LibraryEditor.DELETE_LIBRARY,args:[this.model.get("id")]},classes:"text-danger"}]}},{key:"viewOptions",value:function(){return{dropdownClass:"".concat("AAIc2"," ").concat(this.options.buttonClass),svg:c.Nj.getSvg(c.vn.More)}}},{key:"onRender",value:function(){var t;(null===(t=this.model)||void 0===t?void 0:t.get("id"))&&(this.showChildView("dropdownItems",new s.w({analyticsHelper:i.k,displayOptions:{alignment:"end"},channelName:this.channelName,collection:new r.Q.FE(this.getDropdownItems())})),this.getUI("dropdownToggle").dropdown())}}])&&y(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(r.Q.wA)},69175:function(t,e,n){"use strict";n.d(e,{c:function(){return T}});var o=n(31647),r=n(85475),i=n(60602),a=n(57857),c=n(52076),s=n(70065),l=n(71641),u=n(45390),p=n(58266),f=n.n(p);function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function d(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,b(o.key),o)}}function b(t){var e=function(t){if("object"!=y(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==y(e)?e:e+""}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}var w=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=m(e),function(t,e){if(e&&("object"==y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],m(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}(e,t),n=e,(r=[{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return f()}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:a.T.getPhrase(this.lang,"addSubfolder"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Create,entity:s.py.Folder,workflowPhase:s.eu.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]},stopPropagation:!0},{title:a.T.getPhrase(this.lang,"rename"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Rename,entity:s.py.Folder,workflowPhase:s.eu.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]},stopPropagation:!0},{title:a.T.getPhrase(this.lang,"move"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Move,entity:s.py.Folder,workflowPhase:s.eu.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]},stopPropagation:!0},{title:a.T.getPhrase(this.lang,"editImages"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.EditAssoc,entity:s.py.Folder,workflowPhase:s.eu.Start,descriptor:s.iF.Image}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]},stopPropagation:!0},{title:a.T.getPhrase(this.lang,"generatePdf"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Create,entity:s.py.PDF,workflowPhase:s.eu.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]},stopPropagation:!0},{title:a.T.getPhrase(this.lang,"remove"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Delete,entity:s.py.Folder,workflowPhase:s.eu.Start}),classes:"text-danger",appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]},stopPropagation:!0}]}},{key:"onRender",value:function(){this.showChildView("items",new l.w({analyticsHelper:c.k,displayOptions:{alignment:"end"},channelName:this.channelName,collection:new o.Q.FE(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}}])&&d(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(o.Q.wA),v=n(26704),O=n.n(v);function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function k(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,P(o.key),o)}}function P(t){var e=function(t){if("object"!=E(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==E(e)?e:e+""}function R(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(R=function(){return!!t})()}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}var T=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=_(e),function(t,e){if(e&&("object"==E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,R()?Reflect.construct(e,n||[],_(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof i.g)return"position-absolute ".concat(this.options.overrideClasses?"":"zHCsb"," ").concat(this.options.extraClasses," ")}},{key:"template",get:function(){return O()}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"renderFolderActions",value:function(){this.model instanceof i.g&&this.showChildView("items",new w({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof i.g,dropdownClass:"".concat("He1m9"," ").concat(this.options.buttonClass),svg:r.Nj.getSvg(r.vn.More)}}},{key:"onRender",value:function(){this.renderFolderActions()}}])&&k(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},71641:function(t,e,n){"use strict";n.d(e,{w:function(){return f}});var o=n(21161),r=n(31647),i=n(55142);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,s(o.key),o)}}function s(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var f=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=u(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,r=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return i.N}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(t,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,o=t.extraClasses,r="dropdown-menu-".concat(n);return o&&(r="".concat(r," ").concat(o)),r}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}}],r&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.$W)},58266:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="items-region"></div>'},useData:!0})},8050:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\n</span>\n<div class="items-region"></div>'},useData:!0})},26704:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\n</span>\n<div class="items-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasActions:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:""},useData:!0})}}]);