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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/bundles.json +3 -3
  2. package/dist/css/{2601-library-editor-8922d361d6.chunk.css → 2601-library-editor-df40499c04.chunk.css} +2 -2
  3. package/dist/css/{4001-library-editor-da87291909.chunk.css → 4001-library-editor-f6d2f9fb58.chunk.css} +1 -1
  4. package/dist/css/{9383-library-editor-02381b537c.chunk.css → 9383-library-editor-41fc3cc85e.chunk.css} +2 -2
  5. package/dist/css/{library-editor-app-08d619de95.css → library-editor-app-bcca987662.css} +1 -1
  6. package/dist/languages/en.json +4321 -1
  7. package/dist/scripts/101-8f41923234.chunk.js +1 -0
  8. package/dist/scripts/{1010-2c4e71bac2.chunk.js → 1010-4a381a84d4.chunk.js} +1 -1
  9. package/dist/scripts/{1086-d0efa1a0ca.chunk.js → 1086-7632f7b45b.chunk.js} +1 -1
  10. package/dist/scripts/112-4f413f94c0.chunk.js +1 -0
  11. package/dist/scripts/1216-83f6fbc7be.chunk.js +1 -0
  12. package/dist/scripts/{1269-ec70091b19.chunk.js → 1269-02d8d91784.chunk.js} +1 -1
  13. package/dist/scripts/{1409-f3fea6c3c3.chunk.js → 1409-58db6bd9f7.chunk.js} +1 -1
  14. package/dist/scripts/152-808e046b1f.chunk.js +2 -0
  15. package/dist/scripts/{1703-0e6940a3c0.chunk.js → 1703-45ced13ccd.chunk.js} +1 -1
  16. package/dist/scripts/{1832-9fd96d5efe.chunk.js → 1832-6a54b38248.chunk.js} +1 -1
  17. package/dist/scripts/{1876-fc815ba31e.chunk.js → 1876-e0567188b8.chunk.js} +1 -1
  18. package/dist/scripts/1973-7a1768228d.chunk.js +1 -0
  19. package/dist/scripts/2417-7628573bf3.chunk.js +1 -0
  20. package/dist/scripts/{243-d27b3c7903.chunk.js → 243-25fcce188c.chunk.js} +1 -1
  21. package/dist/scripts/2482-ded3090c15.chunk.js +1 -0
  22. package/dist/scripts/{259-d6a4aa6694.chunk.js → 259-e24fcf8f12.chunk.js} +1 -1
  23. package/dist/scripts/{2601-d42245cb40.chunk.js → 2601-944902ba08.chunk.js} +1 -1
  24. package/dist/scripts/{2644-cadc6531d6.chunk.js → 2644-98304e9394.chunk.js} +1 -1
  25. package/dist/scripts/2648-0a58c0fc05.chunk.js +1 -0
  26. package/dist/scripts/{2692-b7dff9da8a.chunk.js → 2692-1ddd87476e.chunk.js} +1 -1
  27. package/dist/scripts/2802-d428814c29.chunk.js +2 -0
  28. package/dist/scripts/2802-d428814c29.chunk.js.LICENSE.txt +8 -0
  29. package/dist/scripts/{2803-026f3af7cb.chunk.js → 2803-fbb9d2439d.chunk.js} +1 -1
  30. package/dist/scripts/{2888-a406bcd564.chunk.js → 2888-c2c8b859cd.chunk.js} +1 -1
  31. package/dist/scripts/299-1a0d6a88dc.chunk.js +1 -0
  32. package/dist/scripts/{2998-a3c3a1e950.chunk.js → 2998-aae0ec14de.chunk.js} +1 -1
  33. package/dist/scripts/{3400-326dc33968.chunk.js → 3400-ebc91cde7a.chunk.js} +1 -1
  34. package/dist/scripts/343-41502b5d24.chunk.js +1 -0
  35. package/dist/scripts/{35-d04a61537f.chunk.js → 35-68aa98885c.chunk.js} +1 -1
  36. package/dist/scripts/{3551-97ac416527.chunk.js → 3551-ad62e3a403.chunk.js} +1 -1
  37. package/dist/scripts/{3639-171b53e474.chunk.js → 3639-c5cc04c72d.chunk.js} +1 -1
  38. package/dist/scripts/3746-9c62c31099.chunk.js +1 -0
  39. package/dist/scripts/376-83584040a3.chunk.js +1 -0
  40. package/dist/scripts/{3763-21a9bc8c81.chunk.js → 3763-47619f0e54.chunk.js} +1 -1
  41. package/dist/scripts/3969-c636ff3159.chunk.js +1 -0
  42. package/dist/scripts/4001-a84ada264e.chunk.js +2 -0
  43. package/dist/scripts/4024-5bc8aa8dcd.chunk.js +1 -0
  44. package/dist/scripts/{4201-9f363cadea.chunk.js → 4201-ffd35af9cb.chunk.js} +1 -1
  45. package/dist/scripts/{4245-3680566469.chunk.js → 4245-59b4242cad.chunk.js} +1 -1
  46. package/dist/scripts/4523-55c4df85c8.chunk.js +1 -0
  47. package/dist/scripts/{4591-84bc2f21f0.chunk.js → 4591-78600e384c.chunk.js} +1 -1
  48. package/dist/scripts/{4860-7e9c7b578f.chunk.js → 4860-6001ab4e2a.chunk.js} +1 -1
  49. package/dist/scripts/5046-cb525612c6.chunk.js +1 -0
  50. package/dist/scripts/514-eeb95eba47.chunk.js +1 -0
  51. package/dist/scripts/{5173-6fe93f90b8.chunk.js → 5173-d333602893.chunk.js} +1 -1
  52. package/dist/scripts/{5286-c55bd5882c.chunk.js → 5286-7aac82c4d1.chunk.js} +1 -1
  53. package/dist/scripts/535-27d0457532.chunk.js +1 -0
  54. package/dist/scripts/{5412-abf3c7ab24.chunk.js → 5412-e2505df3a4.chunk.js} +1 -1
  55. package/dist/scripts/{5418-4cf3592f6a.chunk.js → 5418-f84d0ff359.chunk.js} +1 -1
  56. package/dist/scripts/{5424-fb9af4cac5.chunk.js → 5424-65be3c657c.chunk.js} +1 -1
  57. package/dist/scripts/5524-04583b6e40.chunk.js +1 -0
  58. package/dist/scripts/{5707-2455798bbe.chunk.js → 5707-fcb653aa7a.chunk.js} +1 -1
  59. package/dist/scripts/{5747-dc100fe944.chunk.js → 5747-674f00efcd.chunk.js} +1 -1
  60. package/dist/scripts/5850-74b0b14549.chunk.js +1 -0
  61. package/dist/scripts/5891-0864c38750.chunk.js +1 -0
  62. package/dist/scripts/{6093-c4d7d99258.chunk.js → 6093-e19df1d1fa.chunk.js} +1 -1
  63. package/dist/scripts/61-ec794cf02d.chunk.js +2 -0
  64. package/dist/scripts/{6352-9f5498c43f.chunk.js → 6352-6452f77c89.chunk.js} +1 -1
  65. package/dist/scripts/6532-48f3f080f5.chunk.js +2 -0
  66. package/dist/scripts/{6732-0223b7e084.chunk.js → 6732-85afd02f41.chunk.js} +1 -1
  67. package/dist/scripts/{6774-7d16e3a1b2.chunk.js → 6774-a002ac7253.chunk.js} +1 -1
  68. package/dist/scripts/{6788-1baf5483df.chunk.js → 6788-dc6b522995.chunk.js} +1 -1
  69. package/dist/scripts/6963-0e2bf1bde7.chunk.js +1 -0
  70. package/dist/scripts/7002-eef9319d36.chunk.js +1 -0
  71. package/dist/scripts/{7053-5f6f2bf8ee.chunk.js → 7053-35b82818eb.chunk.js} +1 -1
  72. package/dist/scripts/7071-6f7e375aaa.chunk.js +1 -0
  73. package/dist/scripts/708-c74c75f82a.chunk.js +1 -0
  74. package/dist/scripts/7153-57796cd98e.chunk.js +1 -0
  75. package/dist/scripts/{7190-b143292308.chunk.js → 7190-2b40df1e89.chunk.js} +1 -1
  76. package/dist/scripts/7295-474c754cb6.chunk.js +1 -0
  77. package/dist/scripts/{7376-e476873e22.chunk.js → 7376-e3bf3a94f9.chunk.js} +1 -1
  78. package/dist/scripts/{7408-eb04403233.chunk.js → 7408-15b5cc4a39.chunk.js} +1 -1
  79. package/dist/scripts/7827-ce63697325.chunk.js +1 -0
  80. package/dist/scripts/8113-d678e76098.chunk.js +1 -0
  81. package/dist/scripts/8130-0a0a9c4cab.chunk.js +1 -0
  82. package/dist/scripts/8213-14b105169f.chunk.js +1 -0
  83. package/dist/scripts/{8362-2712404025.chunk.js → 8362-267efdac61.chunk.js} +1 -1
  84. package/dist/scripts/8542-64733a5c92.chunk.js +1 -0
  85. package/dist/scripts/8591-149f4a2b62.chunk.js +1 -0
  86. package/dist/scripts/{8726-10013d1e22.chunk.js → 8726-2d0bc64637.chunk.js} +1 -1
  87. package/dist/scripts/{4506-e3e16c1c39.chunk.js → 8727-9077c2b877.chunk.js} +1 -1
  88. package/dist/scripts/{8762-0c818e61d0.chunk.js → 8762-be126e413d.chunk.js} +1 -1
  89. package/dist/scripts/{8906-3052c24e98.chunk.js → 8906-2ae58fb990.chunk.js} +1 -1
  90. package/dist/scripts/{8952-5dfd08cdc7.chunk.js → 8952-a9a7742f72.chunk.js} +2 -2
  91. package/dist/scripts/{9357-04700677af.chunk.js → 9357-e71ea6a34d.chunk.js} +1 -1
  92. package/dist/scripts/9369-1e706eb521.chunk.js +2 -0
  93. package/dist/scripts/9383-405d522f62.chunk.js +1 -0
  94. package/dist/scripts/{9695-8b46921478.chunk.js → 9695-636ea0ef64.chunk.js} +1 -1
  95. package/dist/scripts/{9927-1a5a65a341.chunk.js → 9927-7a935c955d.chunk.js} +1 -1
  96. package/dist/scripts/bundle-1a963db722.min.js +2 -0
  97. package/dist/scripts/bundle-1a963db722.min.js.LICENSE.txt +10 -0
  98. package/dist/scripts/{polyfills-e4d8584da7.min.js → polyfills-5ce436cbbe.min.js} +1 -1
  99. package/package.json +4 -5
  100. package/typings/libs/CVEvents.d.ts +13 -0
  101. package/typings/libs/CVLanguages.d.ts +24 -0
  102. package/typings/libs/LazyLoad.d.ts +30 -0
  103. package/typings/libs/LazyLoad.ts +27 -0
  104. package/typings/libs/cookiesjs.d.ts +24 -0
  105. package/dist/scripts/101-1aa755b98b.chunk.js +0 -1
  106. package/dist/scripts/1216-9d2e314558.chunk.js +0 -1
  107. package/dist/scripts/1537-2945b91924.chunk.js +0 -1
  108. package/dist/scripts/1973-074d4e72c2.chunk.js +0 -1
  109. package/dist/scripts/209-f9e52775b1.chunk.js +0 -1
  110. package/dist/scripts/2516-0290fc7712.chunk.js +0 -1
  111. package/dist/scripts/2639-efe1222211.chunk.js +0 -2
  112. package/dist/scripts/2639-efe1222211.chunk.js.LICENSE.txt +0 -8
  113. package/dist/scripts/2648-61a84bc983.chunk.js +0 -1
  114. package/dist/scripts/2955-521e238d27.chunk.js +0 -1
  115. package/dist/scripts/299-32a1391000.chunk.js +0 -1
  116. package/dist/scripts/3746-9f89d2e526.chunk.js +0 -1
  117. package/dist/scripts/376-4d9e8d5305.chunk.js +0 -1
  118. package/dist/scripts/3969-14f58e46c8.chunk.js +0 -1
  119. package/dist/scripts/4001-5f16bcaff3.chunk.js +0 -2
  120. package/dist/scripts/4024-e76b07c207.chunk.js +0 -1
  121. package/dist/scripts/4523-e918636e67.chunk.js +0 -1
  122. package/dist/scripts/471-9ae0a7d088.chunk.js +0 -2
  123. package/dist/scripts/4984-e55e0bfa17.chunk.js +0 -1
  124. package/dist/scripts/514-9e42f33112.chunk.js +0 -2
  125. package/dist/scripts/514-9e42f33112.chunk.js.LICENSE.txt +0 -6
  126. package/dist/scripts/535-96be75b325.chunk.js +0 -1
  127. package/dist/scripts/5524-83e92242a1.chunk.js +0 -1
  128. package/dist/scripts/5698-74d4a95cab.chunk.js +0 -1
  129. package/dist/scripts/5850-21711256a9.chunk.js +0 -1
  130. package/dist/scripts/5891-1f548b9c62.chunk.js +0 -1
  131. package/dist/scripts/61-35a4e0dd3d.chunk.js +0 -2
  132. package/dist/scripts/6637-3078ed12bc.chunk.js +0 -1
  133. package/dist/scripts/6725-52d65e0d02.chunk.js +0 -2
  134. package/dist/scripts/6963-2e5edf04ac.chunk.js +0 -1
  135. package/dist/scripts/7071-9ae15d6979.chunk.js +0 -1
  136. package/dist/scripts/7153-11798dda90.chunk.js +0 -1
  137. package/dist/scripts/7295-c5ccbfe2be.chunk.js +0 -1
  138. package/dist/scripts/7416-bafece2a3d.chunk.js +0 -1
  139. package/dist/scripts/7827-53c10fe9d7.chunk.js +0 -1
  140. package/dist/scripts/8080-540165cb5c.chunk.js +0 -1
  141. package/dist/scripts/8113-eb9901344c.chunk.js +0 -1
  142. package/dist/scripts/8213-4d11becb33.chunk.js +0 -1
  143. package/dist/scripts/8542-7dbc2fa676.chunk.js +0 -1
  144. package/dist/scripts/8591-920b0560e4.chunk.js +0 -1
  145. package/dist/scripts/8757-8ba60a3c5f.chunk.js +0 -2
  146. package/dist/scripts/8757-8ba60a3c5f.chunk.js.LICENSE.txt +0 -44
  147. package/dist/scripts/9077-fd1d054d31.chunk.js +0 -1
  148. package/dist/scripts/9134-8845590ece.chunk.js +0 -1
  149. package/dist/scripts/9369-cacc5f30e5.chunk.js +0 -2
  150. package/dist/scripts/9383-26ce3e3847.chunk.js +0 -1
  151. package/dist/scripts/bundle-5d010f1f12.min.js +0 -2
  152. package/dist/scripts/bundle-5d010f1f12.min.js.LICENSE.txt +0 -133
  153. /package/dist/css/{6637-library-editor-6a2d152d7d.chunk.css → 112-library-editor-6a2d152d7d.chunk.css} +0 -0
  154. /package/dist/css/{6725-library-editor-01b4461ff1.chunk.css → 152-library-editor-01b4461ff1.chunk.css} +0 -0
  155. /package/dist/css/{1537-library-editor-46f8e6e95b.chunk.css → 2417-library-editor-46f8e6e95b.chunk.css} +0 -0
  156. /package/dist/css/{209-library-editor-1b6dc45d45.chunk.css → 2482-library-editor-1b6dc45d45.chunk.css} +0 -0
  157. /package/dist/css/{2955-library-editor-d2f704c6a5.chunk.css → 343-library-editor-d2f704c6a5.chunk.css} +0 -0
  158. /package/dist/css/{9077-library-editor-765ea88cb0.chunk.css → 5046-library-editor-765ea88cb0.chunk.css} +0 -0
  159. /package/dist/css/{8080-library-editor-7ffe353138.chunk.css → 708-library-editor-7ffe353138.chunk.css} +0 -0
  160. /package/dist/css/{9134-library-editor-5a1c6fc3b4.chunk.css → 8130-library-editor-5a1c6fc3b4.chunk.css} +0 -0
  161. /package/dist/scripts/{6725-52d65e0d02.chunk.js.LICENSE.txt → 152-808e046b1f.chunk.js.LICENSE.txt} +0 -0
  162. /package/dist/scripts/{4001-5f16bcaff3.chunk.js.LICENSE.txt → 4001-a84ada264e.chunk.js.LICENSE.txt} +0 -0
  163. /package/dist/scripts/{546-2cf4378b0c.chunk.js → 546-f770211173.chunk.js} +0 -0
  164. /package/dist/scripts/{61-35a4e0dd3d.chunk.js.LICENSE.txt → 61-ec794cf02d.chunk.js.LICENSE.txt} +0 -0
  165. /package/dist/scripts/{471-9ae0a7d088.chunk.js.LICENSE.txt → 6532-48f3f080f5.chunk.js.LICENSE.txt} +0 -0
  166. /package/dist/scripts/{8952-5dfd08cdc7.chunk.js.LICENSE.txt → 8952-a9a7742f72.chunk.js.LICENSE.txt} +0 -0
  167. /package/dist/scripts/{9369-cacc5f30e5.chunk.js.LICENSE.txt → 9369-1e706eb521.chunk.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4984],{79765:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(32735);function o(e){const t=(0,n.useRef)(null);return(0,n.useEffect)((()=>{t.current=e})),t.current}},16616:function(e,t,r){"use strict";r.d(t,{FT:function(){return i}});var n=r(32735),o=r(74512);const a=["as","disabled"];function i({tagName:e,disabled:t,href:r,target:n,rel:o,role:a,onClick:i,tabIndex:s=0,type:u}){e||(e=null!=r||null!=n||null!=o?"a":"button");const c={tagName:e};if("button"===e)return[{type:u||"button",disabled:t},c];const l=n=>{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(r))&&n.preventDefault(),t?n.stopPropagation():null==i||i(n)};return"a"===e&&(r||(r="#"),t&&(r=void 0)),[{role:null!=a?a:"button",disabled:void 0,tabIndex:t?void 0:s,href:r,target:"a"===e?n:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:l,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),l(e))}},c]}const s=n.forwardRef(((e,t)=>{let{as:r,disabled:n}=e,s=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,a);const[u,{tagName:c}]=i(Object.assign({tagName:r,disabled:n},s));return(0,o.jsx)(c,Object.assign({},s,u,{ref:t}))}));s.displayName="Button",t.ZP=s},27445:function(e,t,r){"use strict";r.d(t,{PB:function(){return o}});const n="data-rr-ui-";function o(e){return`${n}${e}`}},30720:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=Function.prototype.bind.call(Function.prototype.call,[].slice);function o(e,t){return n(e.querySelectorAll(t))}},92802:function(e,t,r){"use strict";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,v=d||p||Function("return this")(),h=v.Symbol,y=Object.prototype,m=y.hasOwnProperty,b=y.toString,g=h?h.toStringTag:void 0,j=Object.prototype.toString,E=h?h.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=v["__core-js_shared__"],U=(M=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"",Z=Function.prototype.toString,V=function(e){if(null!=e){try{return Z.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(V(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(v,"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},ve=function(e){return w(e)&&"[object Arguments]"==_(e)},he=Object.prototype,ye=he.hasOwnProperty,me=he.propertyIsEnumerable,be=ve(function(){return arguments}())?ve: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?v.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,Ze=function(e){return null!=e&&Te(e.length)&&!$(e)},Ve=function(e){return Ze(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 Ze(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?v.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,Ve,tt)},it=function(e){return ot(e,He,nt)},st=J(v,"DataView"),ut=J(v,"Promise"),ct=J(v,"Set"),lt=J(v,"WeakMap"),ft="[object Map]",dt="[object Promise]",pt="[object Set]",vt="[object WeakMap]",ht="[object DataView]",yt=V(st),mt=V(Q),bt=V(ut),gt=V(ct),jt=V(lt),Et=_;(st&&Et(new st(new ArrayBuffer(1)))!=ht||Q&&Et(new Q)!=ft||ut&&Et(ut.resolve())!=dt||ct&&Et(new ct)!=pt||lt&&Et(new lt)!=vt)&&(Et=function(e){var t=_(e),r="[object Object]"==t?e.constructor:void 0,n=r?V(r):"";if(n)switch(n){case yt:return ht;case mt:return ft;case bt:return dt;case gt:return pt;case jt:return vt}return t});var _t=Et,St=Object.prototype.hasOwnProperty,Ot=v.Uint8Array,wt=function(e){var t=new e.constructor(e.byteLength);return new Ot(t).set(new Ot(e)),t},xt=/\w*$/,Tt=h?h.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,Ve(t),e)}(s,t))}else{if(!$t[d])return a?t:{};s=Rt(t,d,u)}}i||(i=new ue);var v=i.get(t);if(v)return v;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 h=f?void 0:(l?c?it:at:c?He:Ve)(t);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(h||t,(function(o,a){h&&(o=t[a=o]),de(s,a,e(o,r,n,a,t,i))})),s},Ut=function(e){return Bt(e,4)},Zt=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},Vt=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||Vt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Jt=h?h.prototype:void 0,Qt=Jt?Jt.toString:void 0,Xt=function e(t){if("string"==typeof t)return t;if(je(t))return Zt(t,e)+"";if(Vt(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)?Zt(e,Yt):Vt(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},vr=function(e){return"[object String]"===Object.prototype.toString.call(e)},hr=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,v=ur(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=ir({validateOnChange:r,validateOnBlur:i,validateOnMount:u,onSubmit:p},v),y=(0,n.useRef)(h.initialValues),m=(0,n.useRef)(h.initialErrors||wr),b=(0,n.useRef)(h.initialTouched||xr),g=(0,n.useRef)(h.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:h.initialValues,errors:h.initialErrors||wr,touched:h.initialTouched||xr,status:h.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=h.validate(e,t);null==o?r(wr):yr(o)?o.then((function(e){r(e||wr)}),(function(e){n(e)})):r(o)}))}),[h.validate]),x=(0,n.useCallback)((function(e,t){var r=h.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)}))}))}),[h.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),h.validationSchema?x(e):{},h.validate?w(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return f.all([t,r,n],{arrayMerge:kr})}))}),[h.validate,h.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,h.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:h.initialErrors||{},n=e&&e.touched?e.touched:b.current?b.current:h.initialTouched||{},o=e&&e.status?e.status:g.current?g.current:h.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(h.onReset){var i=h.onReset(S.values,Y);yr(i)?i.then(a):a()}else a()}),[h.initialErrors,h.initialStatus,h.initialTouched]);(0,n.useEffect)((function(){!0!==j.current||a()(y.current,h.initialValues)||(d&&(y.current=h.initialValues,N()),u&&k(y.current))}),[d,h.initialValues,N,u,k]),(0,n.useEffect)((function(){d&&!0===j.current&&!a()(m.current,h.initialErrors)&&(m.current=h.initialErrors||wr,O({type:"SET_ERRORS",payload:h.initialErrors||wr}))}),[d,h.initialErrors]),(0,n.useEffect)((function(){d&&!0===j.current&&!a()(b.current,h.initialTouched)&&(b.current=h.initialTouched||xr,O({type:"SET_TOUCHED",payload:h.initialTouched||xr}))}),[d,h.initialTouched]),(0,n.useEffect)((function(){d&&!0===j.current&&!a()(g.current,h.initialStatus)&&(g.current=h.initialStatus,O({type:"SET_STATUS",payload:h.initialStatus}))}),[d,h.initialStatus,h.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 h.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(!vr(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(vr(e))return function(t){return B(t,e)};B(e)})),Z=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()})),V=(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);Z(a,!0)}),[Z]),z=Fr((function(e){if(vr(e))return function(t){return V(t,e)};V(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:Z,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 Z(e,t,r)},setError:function(t){return L(e,t)}}}),[$,Z,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(h):c:S.errors&&0===Object.keys(S.errors).length}),[c,re,S.errors,h]);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:Z,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):hr(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),v={field:d,form:c};if(o)return o(ir({},v,{meta:p}));if(fr(a))return a(ir({},v,{meta:p}));if(s){if("string"==typeof s){var h=u.innerRef,y=ur(u,["innerRef"]);return(0,n.createElement)(s,ir({ref:h},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):hr(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},459:function(e,t,r){"use strict";var n=r(15704);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},60216:function(e,t,r){e.exports=r(459)()},15704:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98269:function(e,t,r){"use strict";var n=r(95685),o=r.n(n),a=r(32735),i=r(16616),s=r(46304),u=r(74512);const c=a.forwardRef((({as:e,bsPrefix:t,variant:r="primary",size:n,active:a=!1,disabled:c=!1,className:l,...f},d)=>{const p=(0,s.vE)(t,"btn"),[v,{tagName:h}]=(0,i.FT)({tagName:e,disabled:c,...f}),y=h;return(0,u.jsx)(y,{...v,...f,ref:d,disabled:c,className:o()(l,p,a&&"active",r&&`${p}-${r}`,n&&`${p}-${n}`,f.href&&c&&"disabled")})}));c.displayName="Button",t.Z=c},18881:function(e,t,r){"use strict";r.d(t,{Z:function(){return Z}});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 v=s.forwardRef((({id:e,bsPrefix:t,className:r,type:n="checkbox",isValid:a=!1,isInvalid:i=!1,as:c="input",...l},f)=>{const{controlId:v}=(0,s.useContext)(d);return t=(0,p.vE)(t,"form-check-input"),(0,u.jsx)(c,{...l,ref:f,type:n,id:e||v,className:o()(r,t,a&&"is-valid",i&&"is-invalid")})}));v.displayName="FormCheckInput";var h=v;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:v=!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)(h,{...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:v,children:y})]})})})}));b.displayName="FormCheck";var g=Object.assign(b,{Input:h,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:v,as:h="input",...y},m)=>{const{controlId:b}=(0,s.useContext)(d);return e=(0,p.vE)(e,"form-control"),(0,u.jsx)(h,{...y,type:t,size:n,ref:m,readOnly:v,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 v="col-form-label";"string"==typeof r&&(v=`${v} ${v}-${r}`);const h=o()(a,t,n&&"visually-hidden",r&&v);return i=i||f,r?(0,u.jsx)(T,{ref:l,as:"label",className:h,htmlFor:i,...c}):(0,u.jsx)(e,{ref:l,className:h,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:v}=(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||v})}));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 Z=Object.assign(U,{Group:w,Control:E,Floating:S,Check:g,Switch:D,Label:R,Text:P,Range:N,Select:C,FloatingLabel:$})},82184:function(e,t,r){"use strict";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(46603),d=r(36177),p=r(72080),v=r(49719),h=r(23438),y=r(32735);function m(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 b=r(47490),g=r(75476),j=r(12788),E=r(60577),_=r(79765),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,y.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:f,transition:p,runTransition:h,backdropTransition:S,runBackdropTransition:O,autoFocus:C=!0,enforceFocus:I=!0,restoreFocus:P=!0,restoreFocusOptions:M,renderDialog:D,renderBackdrop:L=e=>(0,k.jsx)("div",Object.assign({},e)),manager:$,container:B,onShow:U,onHide:Z=()=>{},onExit:V,onExited:z,onExiting:W,onEnter:H,onEntering:G,onEntered:K}=e,q=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 Y=(0,T.Z)(),J=(0,x.Z)(B),Q=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,y.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,y.useCallback)((e=>{n.current.dialog=e}),[]),setBackdropRef:(0,y.useCallback)((e=>{n.current.backdrop=e}),[])})}($),X=(0,E.Z)(),ee=(0,_.Z)(r),[te,re]=(0,y.useState)(!r),ne=(0,y.useRef)(null);(0,y.useImperativeHandle)(t,(()=>Q),[Q]),s.Z&&!ee&&r&&(ne.current=m(null==Y?void 0:Y.document)),r&&te&&re(!1);const oe=(0,d.Z)((()=>{if(Q.add(),le.current=(0,g.Z)(document,"keydown",ue),ce.current=(0,g.Z)(document,"focus",(()=>setTimeout(ie)),!0),U&&U(),C){var e,t;const r=m(null!=(e=null==(t=Q.dialog)?void 0:t.ownerDocument)?e:null==Y?void 0:Y.document);Q.dialog&&r&&!(0,b.Z)(Q.dialog,r)&&(ne.current=r,Q.dialog.focus())}})),ae=(0,d.Z)((()=>{var e;Q.remove(),null==le.current||le.current(),null==ce.current||ce.current(),P&&(null==(e=ne.current)||null==e.focus||e.focus(M),ne.current=null)}));(0,y.useEffect)((()=>{r&&J&&oe()}),[r,J,oe]),(0,y.useEffect)((()=>{te&&ae()}),[te,ae]),(0,v.Z)((()=>{ae()}));const ie=(0,d.Z)((()=>{if(!I||!X()||!Q.isTopModal())return;const e=m(null==Y?void 0:Y.document);Q.dialog&&e&&!(0,b.Z)(Q.dialog,e)&&Q.dialog.focus()})),se=(0,d.Z)((e=>{e.target===e.currentTarget&&(null==l||l(e),!0===u&&Z())})),ue=(0,d.Z)((e=>{c&&(0,R.k)(e)&&Q.isTopModal()&&(null==f||f(e),e.defaultPrevented||Z())})),ce=(0,y.useRef)(),le=(0,y.useRef)();if(!J)return null;const fe=Object.assign({role:n,ref:Q.setDialogRef,"aria-modal":"dialog"===n||void 0},q,{style:a,className:o,tabIndex:-1});let de=D?D(fe):(0,k.jsx)("div",Object.assign({},fe,{children:y.cloneElement(i,{role:"document"})}));de=(0,A.sD)(p,h,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:V,onExiting:W,onExited:(...e)=>{re(!0),null==z||z(...e)},onEnter:H,onEntering:G,onEntered:K,children:de});let pe=null;return u&&(pe=L({ref:Q.setBackdropRef,onClick:se}),pe=(0,A.sD)(S,O,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:pe})),(0,k.jsx)(k.Fragment,{children:j.createPortal((0,k.jsxs)(k.Fragment,{children:[pe,de]}),J)})}));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 Z;var V=r(29724),z=r(46304);const W=y.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=y.createContext({onHide(){}});const K=y.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=y.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=y.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=y.forwardRef((({closeLabel:e="Close",closeVariant:t,closeButton:r=!1,onHide:n,children:o,...a},i)=>{const s=(0,y.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=y.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=y.forwardRef(((e,t)=>(0,k.jsx)("div",{...e,ref:t,className:a()(e.className,"h4")})));const se=y.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)(V.Z,{...e,timeout:null})}function le(e){return(0,k.jsx)(V.Z,{...e,timeout:null})}const fe=y.forwardRef((({bsPrefix:e,className:t,style:r,dialogClassName:n,contentClassName:o,children:m,dialogAs:b=q,"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:V,backdropClassName:W,manager:H,...K},Y)=>{const[J,Q]=(0,y.useState)({}),[X,ee]=(0,y.useState)(!1),te=(0,y.useRef)(!1),re=(0,y.useRef)(!1),ne=(0,y.useRef)(null),[oe,ae]=(0,f.Z)(),ie=(0,p.Z)(Y,ae),se=(0,d.Z)(A),ue=(0,z.SC)();e=(0,z.vE)(e,"modal");const fe=(0,y.useMemo)((()=>({onHide:se})),[se]);function de(){return H||(Z||(Z=new U({isRTL:ue})),Z)}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 ve=(0,d.Z)((()=>{oe&&pe(oe.dialog)}));(0,v.Z)((()=>{(0,c.Z)(window,"resize",ve),null==ne.current||ne.current()}));const he=()=>{te.current=!0},ye=e=>{te.current&&oe&&e.target===oe.dialog&&(re.current=!0),te.current=!1},me=()=>{ee(!0),ne.current=(0,h.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,y.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",ve)},onEntered:M,onExit:e=>{null==ne.current||ne.current(),null==D||D(e)},onExiting:L,onExited:e=>{e&&(e.style.display=""),null==V||V(e),(0,c.Z)(window,"resize",ve)},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,"aria-label":E,"aria-labelledby":g,"aria-describedby":j,children:(0,k.jsx)(b,{...K,onMouseDown:he,className:n,contentClassName:o,children:m})})})})}));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){"use strict";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){"use strict";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 v=e instanceof RegExp,h=i instanceof RegExp;if(v!=h)return!1;if(v&&h)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}}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 514-9e42f33112.chunk.js.LICENSE.txt */
2
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[514],{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)}}},40514: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(57098),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})}}]);
@@ -1,6 +0,0 @@
1
- /*!
2
- * clipboard.js v2.0.4
3
- * https://zenorocha.github.io/clipboard.js
4
- *
5
- * Licensed MIT © Zeno Rocha
6
- */
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[535],{86347:function(e,t,r){r.d(t,{b:function(){return u},n:function(){return s}});var n=r(32735),a=r(92802),i=r(53808),l=r(85887);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function s(e){var t=e.castInitialValues,r=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,d=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=l.t.deepClone(e);return function e(r){Object.keys(t).forEach((function(n){t.hasOwnProperty(n)&&(l.t.isObject(r[n])?e(r[n]):null===t[n]&&delete t[n])}))}(t),t}(s)):s,f={allowInitialSubmit:e.allowInitialSubmit};return n.createElement(a.J9,Object.assign({enableReinitialize:!0},d,{initialValues:m,onSubmit:function(t,n){var a=n.setSubmitting,i=n.resetForm,l=n.setFieldError,c=r&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.reset&&i(),r.errors)for(var n=0,c=Object.entries(r.errors);n<c.length;n++){var s=(e=c[n],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,l,o=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];l(u,d)}a(!1)}))},initialStatus:f}),i.q.isFunction(e.children)?function(t){return e.children(t)}:n.Children.count(e.children)?e.children:null)}function u(){return(0,a.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},535:function(e,t,r){r.r(t),r.d(t,{PendingRequestsView:function(){return et}});var n=r(32735),a=r(35656),i=r(31647),l=r(57857),o=r(86120),c=r(23689),s=r(86242),u=r(66703),d=r(90335),m=r(15408),f=r(2491),p=r(30317),b=r(22430),v=r(50997),y=r(68893),h=r(48404),g=r(19226),E=r(95061),S=r(52076),N=r(70065),R=r(86347),w=r(42648),O=r(92802),x=r(5173),C=r(49642),j=r(63151),q=r(42120),L=r(85475),I=r(39396),T=function(e){switch(e){case"up":return"JAT0R";case"down":return"ld41u";case"right":return"HHkPe";case"left":return"jZTRR"}};function P(e){return n.createElement(I.x,{svgName:L.vn.Caret,className:"".concat(T(e.direction)," svg-container d-inline-block ").concat(e.className)})}P.defaultProps={direction:"right"};var k=r(58424),A=r(85887);function D(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){o=!0,i=e},f:function(){try{l||null==r.return||r.return()}finally{if(o)throw i}}}}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,l,o=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(s)throw a}}return o}}(e,t)||_(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){if(e){if("string"==typeof e)return V(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V(e,t):void 0}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function B(e,t,r){if(j.m.isEqual(e.id,t))return[e,r];var n,a=e.children;if(!a||!a.length)return[null,null];for(var i=0;i<a.length;i++){var l=F(B(a[i],t,[].concat(function(e){if(Array.isArray(e))return V(e)}(n=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||_(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e])),2),o=l[0],c=l[1];if(o)return[o,c]}return[null,null]}var U={find:function(e,t){if(e&&e.children&&e.children.length)for(var r=0;r<e.children.length;r++){var n=F(B(e.children[r],t,[]),1)[0];if(n)return n}},getPath:function(e,t){if(e&&e.children&&e.children.length)for(var r=0;r<e.children.length;r++){var n=F(B(e.children[r],t,[]),2)[1];if(null==n?void 0:n.length)return n}},getParent:function(e,t){var r=U.getPath(e,t);return(null==r?void 0:r.length)?r[r.length-1]:null},convertNestedObjectToTree:function(e){var t,r=Object.assign(Object.assign({},e.data),{children:e.children});return(null===(t=r.children)||void 0===t?void 0:t.length)&&(r.children=r.children.map(U.convertNestedObjectToTree)),r},findDepth:function(e,t){var r,n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e||0===e.length)return 0;var i,l=0,o=D(e);try{for(o.s();!(i=o.n()).done;){var c=i.value;if((null===(n=null===(r=c.data)||void 0===r?void 0:r.id)||void 0===n?void 0:n.toString())===t.toString())return a;var s=U.findDepth(c.children,t,a+1);if(s>0){l=s;break}}}catch(e){o.e(e)}finally{o.f()}return l},findMaxChildDepth:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e||0===e.length)return t;var r,n=t,a=D(e);try{for(a.s();!(r=a.n()).done;){var i=r.value,l=U.findMaxChildDepth(i.children,t+1);n=Math.max(n,l)}}catch(e){a.e(e)}finally{a.f()}return n},findTargetNode:function(e,t){var r,n;if(!e||0===e.length)return null;var a,i=D(e);try{for(i.s();!(a=i.n()).done;){var l=a.value;if((null===(n=null===(r=l.data)||void 0===r?void 0:r.id)||void 0===n?void 0:n.toString())===t.toString())return l;var o=U.findTargetNode(l.children,t);if(null!==o)return o}}catch(e){i.e(e)}finally{i.f()}return null},isMaxDepth:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:7,a=U.findTargetNode(e,t);return U.findMaxChildDepth(a.children)+U.findDepth(e,r)>=n},flatten:function(e){if(!e)return[];var t=[];return e.children.forEach((function e(r){t.push(A.t.omit(r,["children"])),r.children.forEach(e)})),t}},M=r(21660),Q={tree:"ZYvBT",text:"eVGWe",chevron:"v76mu",disabled:"wIrTq",root:"JDRq_",selected:"wT87N",actions:"fKJU4",node:"gOBrH",noActions:"fKmrr"};function H(e){var t;function r(){var t="".concat(Q.text," clamp-4");return e.className&&(t+=" ".concat(e.className)),t}if(e.isDisabled){var a="string"==typeof e.disabledTooltip?e.disabledTooltip:null===(t=e.disabledTooltip)||void 0===t?void 0:t.call(e,e.tree);return n.createElement(M.u,{title:a,spanHack:!0,spanHackClassName:"d-inline-block flex-grow-1"},n.createElement("span",{className:"".concat(r()," text-secondary ").concat(Q.disabled)},e.text))}return n.createElement("div",{className:r()},e.text)}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var z="tree-actions";function Y(e){var t,r,a,l=e.tree,o=e.selectedIds,c=e.getAppLink,s=e.onSelect,u=e.isDisabled,d=e.isClickDisabled,m=e.actions,f=e.isDropdown,p=n.useRef(null),b=n.useMemo((function(){return null==o?void 0:o.some((function(e){return U.find(l,e)}))}),[l,o]),v=e.openDepth&&e.depth<e.openDepth,y=(r=n.useState(b||v),a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,l,o=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(s)throw a}}return o}}(r,a)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?G(e,t):void 0}}(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=y[0],g=y[1],E=null==o?void 0:o.some((function(e){return j.m.isEqual(l.id,e)})),S=!!l.children&&!!l.children.length;function N(){(null==d?void 0:d(l))||(e.multiSelect||g(!h),c?i.Q.C$.trigger(c(l)):(null==u?void 0:u(l))?s(null):null==s||s(l))}return e.maxDisplayDepth&&S&&(S=e.depth<e.maxDisplayDepth),n.useEffect((function(){if(p.current&&f){var e=function(e){e.stopPropagation(),N()};return p.current.addEventListener("click",e),function(){p.current&&p.current.removeEventListener("click",e)}}}),[p.current,s]),n.useEffect((function(){var t;e.multiSelect||h&&(b||E||!(null===(t=e.selectedIds)||void 0===t?void 0:t.length)&&(null==u?void 0:u(e.tree))||v||g(!1))}),[o]),e.maxDisplayDepth&&e.depth>e.maxDisplayDepth?n.createElement(n.Fragment,null):n.createElement("li",{className:"position-relative ".concat(h?"":Q.collapsed," ").concat(e.isRoot?Q.root:"")},n.createElement("div",{className:"position-relative"},n.createElement(k.L,{className:(t="py-1 d-flex align-items-center w-100 position-relative ".concat(Q.node),E&&(t+=" "+e.selectedLinkClassName),(null==m?void 0:m.length)||(t+=" "+Q.noActions),b&&e.multiSelect&&(t+=" text-underline fst-italic"),t),onClick:f?null:N,ref:p},S&&n.createElement("div",{className:Q.chevron,onClick:function(t){t.stopPropagation(),e.multiSelect?g(!h):N()}},n.createElement(P,{direction:h?"down":"right"})),n.createElement(H,{tree:l,text:l.name||l.description,isDisabled:(null==u?void 0:u(l))||(null==d?void 0:d(l)),disabledTooltip:e.disabledTooltip})),!!e.actions&&n.createElement(q.e,{className:Q.actions,actions:null==m?void 0:m.map((function(e){return Object.assign(Object.assign({},e),{appLink:e.getAppLink(l)})})),actionsDropdownClassName:"btn btn-light ".concat(z," py-0")}),h&&n.createElement(K,Object.assign({key:l.id},e,{isChild:!0,depth:e.depth+1}))))}Y.defaultProps={selectedLinkClassName:Q.selected};var X=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function K(e){var t=e.tree,r=X(e,["tree"]);return t&&t.children?n.createElement("ul",{className:"m-0 p-0 list-unstyled ".concat(Q.tree)},t.children.map((function(t,a){return n.createElement(Y,Object.assign({key:a,tree:t},r,{isRoot:!e.isChild,depth:e.depth||0}))}))):n.createElement(n.Fragment,null)}var $=r(21974),J=r(264),W=r(39123),Z={selectButton:"Jh8Ep",createNew:"hnfdj"},ee="libraryRequests.destinationForm",te=(0,x.Ry)().shape({library:(0,x.Ry)().required(),folder:(0,x.Ry)().required()});function re(e){var t,r,a,i,l,o,c,s=(0,R.b)();(0,W.g)((function(e,t){var r=e.find((function(e){return e.id.toString()===s.values.library.id.toString()}));if(r){s.setFieldValue("library",r,!0);var n=U.find(r,t.id);n&&s.setFieldValue("folder",n,!0)}}));var d=e.libraryRequest.sender&&"".concat(e.libraryRequest.sender.name," ").concat(e.libraryRequest.sender.surname),m="";return(null===(t=e.libraryRequest.senderCustomer)||void 0===t?void 0:t.id.toString())!==e.currentUser.get("customerId").toString()&&(m=null===(r=e.libraryRequest.senderCustomer)||void 0===r?void 0:r.name),n.createElement("div",{className:"bg-white rounded p-3 mb-3"},n.createElement(O.l0,null,n.createElement("div",{className:"row"},n.createElement("div",{className:"col-9"},!!d&&n.createElement("div",{className:"row mb-3"},n.createElement("div",{className:"col-3"},n.createElement("label",null,n.createElement(u.x,{namespace:ee,phrase:"requestedBy"}))),n.createElement("div",{className:"col-9"},n.createElement(n.Fragment,null,d,!!m&&n.createElement(n.Fragment,null," (",m,")")))),n.createElement("div",{className:"row mb-3"},n.createElement("div",{className:"col-3"},n.createElement("label",null,n.createElement(u.x,{namespace:ee,phrase:"videoSource"}))),n.createElement("div",{className:"col-9"},!!e.libraryRequest.sourceLibrary&&n.createElement("span",{className:"badge p-1 me-1 text-white ".concat($.u.mapSourceToClass(e.libraryRequest.sourceLibrary.type))},$.u.mapSourceToDisplayName(e.libraryRequest.sourceLibrary,J.g.hasLite)),!!e.libraryRequest.sourceCategory&&n.createElement("span",{className:"ms-2"},e.libraryRequest.sourceCategory.name))),n.createElement("div",{className:"row mb-3"},n.createElement("div",{className:"col-3"},n.createElement("label",null,n.createElement(u.x,{namespace:ee,phrase:"addTo"}))),n.createElement("div",{className:"col-9"},e.libraries.length>1&&n.createElement("div",{className:"dropdown mb-2"},n.createElement("button",{className:"dropdown-toggle form-control text-start position-relative ".concat(Z.selectButton),type:"button",id:"select-library","data-bs-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},n.createElement("div",{className:"text-truncate"},null!==(i=null===(a=s.values.library)||void 0===a?void 0:a.name)&&void 0!==i?i:n.createElement(u.x,{namespace:ee,phrase:"selectALibrary"}))),n.createElement("div",{className:"dropdown-menu w-100","aria-labelledby":"select-library"},e.libraries.map((function(e,t){var r,a,i=e.id.toString()===(null===(a=null===(r=s.values.library)||void 0===r?void 0:r.id)||void 0===a?void 0:a.toString());return n.createElement("div",{className:"dropdown-item cursor-pointer ".concat(i?"active":""),key:t,onClick:function(){s.setFieldValue("library",e,!0),s.setFieldValue("folder",null,!0)}},e.name)})))),n.createElement("div",{className:"dropdown mb-2"},n.createElement("button",{className:"dropdown-toggle form-control text-start position-relative ".concat(Z.selectButton),type:"button",id:"select-folder","data-bs-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:!s.values.library},n.createElement("div",{className:"text-truncate"},null!==(o=s.values.library&&(null===(l=s.values.folder)||void 0===l?void 0:l.name))&&void 0!==o?o:n.createElement(u.x,{namespace:ee,phrase:"selectAFolder"}))),n.createElement("div",{className:"dropdown-menu w-100","aria-labelledby":"select-folder"},n.createElement(w.$B,{autoHeight:!0,autoHeightMax:300,hideTracksWhenNotNeeded:!0},n.createElement(K,{tree:s.values.library,onSelect:function(e){return s.setFieldValue("folder",e,!0)},selectedIds:(null===(c=s.values.folder)||void 0===c?void 0:c.id)?[s.values.folder.id]:void 0,selectedLinkClassName:"bg-light fw-semibold",isDropdown:!0}),s.values.library&&n.createElement(C.F,{className:"btn fw-bold rounded-0 w-100 text-start ".concat(Z.createNew),appLink:{application:v.OV.LIBRARY_REQUESTS,action:v.eX.Shared.NEW_FOLDER,args:[s.values.library.id]}},n.createElement(u.x,{namespace:ee,phrase:"createNew"})))))))),n.createElement("div",{className:"col-3"},n.createElement("div",{className:"d-flex justify-content-end"},n.createElement("button",{type:"button",className:"btn btn-link",onClick:e.onReject},n.createElement(u.x,{namespace:ee,phrase:"reject"})),n.createElement("button",{type:"submit",className:"btn btn-dark",disabled:!s.isValid},n.createElement(u.x,{namespace:ee,phrase:"approve"})))))))}function ne(e){function t(t,r){var n,a,i,l,o,c,s={location:N.LZ.LibraryRequestDetails,actionType:t,entity:N.py.LibraryRequest,workflowPhase:N.eu.Start},u={id:e.libraryRequest.id,videoId:null===(n=e.libraryRequest.object)||void 0===n?void 0:n.id,requestingUserId:null===(a=e.libraryRequest.sender)||void 0===a?void 0:a.id,sourceLibraryId:null===(i=e.libraryRequest.sourceLibrary)||void 0===i?void 0:i.id,sourceFolderId:null===(l=e.libraryRequest.sourceCategory)||void 0===l?void 0:l.id,destinationLibraryId:null===(o=null==r?void 0:r.library)||void 0===o?void 0:o.id,destinationFolderId:null===(c=null==r?void 0:r.folder)||void 0===c?void 0:c.id};S.k.logUserAction(u,s)}return n.createElement(R.n,{initialValues:{library:e.libraries.find((function(t){var r;return t.id.toString()===(null===(r=e.libraryRequest.destinationLibrary)||void 0===r?void 0:r.id.toString())})),folder:e.libraryRequest.destinationCategory},validationSchema:te,onSubmit:function(r){t(N.Vw.Approve,r),i.Q.C$.trigger({application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.APPROVE,args:[e.libraryRequest.id],params:{libraryId:r.library.id,folderId:r.folder.id,queryParams:e.queryParams}})},validateOnMount:!0,enableReinitialize:!1},n.createElement(re,{libraries:e.libraries,libraryRequest:e.libraryRequest,onReject:function(){t(N.Vw.Reject),i.Q.C$.trigger({application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.REJECT,args:[e.libraryRequest.id],params:e.queryParams})},currentUser:e.user}))}function ae(){return n.createElement("div",{className:"bg-white rounded p-3 mb-3"},n.createElement("div",{className:"row"},n.createElement("div",{className:"col-3"},n.createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"6rem"}})),n.createElement("div",{className:"col-6"},n.createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"9rem"}})),n.createElement("div",{className:"col-3 d-flex justify-content-end align-items-center"},n.createElement("div",{className:"partial-loading-background rounded",style:{height:"1.25rem",width:"3rem"}}),n.createElement("div",{className:"partial-loading-background rounded ms-2",style:{height:"2.5rem",width:"5rem"}})),n.createElement("div",{className:"col-3"},n.createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"7rem"}})),n.createElement("div",{className:"col-6 mb-2"},n.createElement("div",{className:"partial-loading-background rounded mb-1",style:{height:"2.5rem"}}),n.createElement("div",{className:"partial-loading-background rounded",style:{height:"2.5rem"}}))))}var ie={HIGH:.75,MODERATE:.5},le={circleContainer:"p8Vgz",backgroundCircle:"asGGE",circleSuccess:"PXLNj",circleWarning:"ZckRN",circleDanger:"slBRg",lgCircleContainer:"N8KCI",xsCircleContainer:"RPqZ2",pendingCircle:"DKrcq",centredPercentageText:"tpmLR"};function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function ce(e,t,r){return(t=function(e){var t=function(e){if("object"!=oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var se,ue=.2,de=.36;!function(e){e.Small="small",e.Large="large",e.ExtraSmall="extraSmall"}(se||(se={}));var me,fe=ce(ce(ce({},se.ExtraSmall,{size:2}),se.Small,{size:2}),se.Large,{size:5.8});function pe(e){var t=fe[e].size,r=e===se.Large?de:ue;return"".concat(t/2-2*r,"rem")}function be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie;return e>=t.HIGH?le.circleSuccess:e>=t.MODERATE?le.circleWarning:le.circleDanger}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function ye(e,t){var r="d-inline-block ".concat(le.circleContainer);return e===se.Large&&(r+=" ".concat(le.lgCircleContainer)),e===se.ExtraSmall&&(r+=" ".concat(le.xsCircleContainer)),he(t)&&(r+=" ".concat(le.pendingCircle)),r}function he(e){return"number"!=typeof e}function ge(e){var t=n.useCallback((function(t){if(t){var r=t.r.baseVal.value,n=2*Math.PI*r,a=n-e.percentage*n;t.style.strokeDasharray="".concat(n," ").concat(n),t.style.strokeDashoffset=a.toString()}}),[e.percentage]);return n.createElement("svg",null,n.createElement("circle",{r:pe(e.size),className:le.backgroundCircle}),!he(e.percentage)&&n.createElement("circle",{ref:t,r:pe(e.size),className:be(e.percentage,e.scoreThresholds)}))}function Ee(e){var t,r,a=function(e){if(!he(e))return+e.toFixed(2)}(e.percentage),i=e.size||(e.layout===me.LabelInside?se.Large:se.Small),l=e.customLabel||(he(r=a)?"--%":"".concat(Math.round(100*r),"%"));return e.layout===me.LabelOnly?n.createElement("span",{className:ve(a)},l):n.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===me.LabelBefore&&n.createElement("span",{className:"me-2"},l),n.createElement("div",{className:ye(i,a)},n.createElement(ge,{percentage:a,size:i,scoreThresholds:e.scoreThresholds}),e.layout===me.LabelInside&&n.createElement("span",{className:le.centredPercentageText},l)))}!function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(me||(me={})),Ee.defaultProps={layout:me.CircleOnly};var Se="libraryRequests.count";function Ne(e){return n.createElement("div",{className:"bg-white rounded px-3 py-2 mb-3 d-flex align-items-center"},n.createElement(Ee,null),n.createElement("div",{className:"ps-2"},n.createElement(u.x,{namespace:Se,phrase:"count",options:{smartCount:e.count.count}})))}var Re=r(45855),we=r(49824),Oe=r(27789),xe=r(7044),Ce=r(17950),je=r(9416),qe=r(50072),Le=r(88070);function Ie(e){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}function Te(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Pe(n.key),n)}}function Pe(e){var t=function(e){if("object"!=Ie(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ie(t)?t:t+""}function ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ke=function(){return!!e})()}function Ae(e){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ae(e)}function De(e,t){return De=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},De(e,t)}var Fe="libraryRequests.privateLibraryRequestError",_e=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=Ae(t),function(e,t){if(t&&("object"==Ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ke()?Reflect.construct(t,r||[],Ae(e).constructor):t.apply(e,r))}(this,t,[l.T.getPhrase(Fe,"title")])).hasMultipleCustomers=e,n.availableLibraries=r,n}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&&De(e,t)}(t,e),r=t,(n=[{key:"name",get:function(){return"PrivateLibraryResourceError"}},{key:"heading",get:function(){return l.T.getPhrase(Fe,"heading")}},{key:"description",get:function(){return this.hasMultipleCustomers?l.T.getPhrase(Fe,"multiCustomersDescription",{libraries:this.availableLibraries.join(", ")}):l.T.getPhrase(Fe,"description")}}])&&Te(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(Le.H),Ve=r(25796),Be=r(41026),Ue=r(59198),Me=r(85739),Qe=r(30328),He=r(64429),Ge=r(41777),ze=r(56154),Ye="libraryRequests.pendingRequestsEmptyState",Xe=l.T.encloseNamespace(Ye);function Ke(e){return n.createElement("div",{className:"bg-white rounded p-3 py-5"},n.createElement(Ge.u,null,n.createElement(Ge.u.Image,{src:ze.W.EmptyStates.PENDING_REQUESTS}),n.createElement(Ge.u.Info,{className:"mb-1"},n.createElement(u.x,{namespace:Ye,phrase:"info"})),e.hasLibraries&&n.createElement(Ge.u.Cta,{text:Xe("cta"),className:"btn btn-link text-info",appLink:{application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES}})))}function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,l,o=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Je(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Je(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var We="libraryRequests.pendingRequests",Ze=l.T.encloseNamespace(We);function et(e){var t,r,l,S,N=o.a.useGetFetch(),R=(0,f.Z)(),w=(0,Me.p)(e.queryParams.sort||d.D.Newest,[qe.l.Pending]),O=o.a.useBasicFetch(e.id&&Ve.y.libraryRequest(e.id)),x=(0,Ue.s)(e.id),C=o.a.useBasicFetch(Ve.y.pendingRequestsCount()),j=$e(n.useState(null),2),q=j[0],L=j[1];(0,c.i)(E.T.getLibrariesFetchOptions((function(e){return L(e.toJSON())})),[]),(0,W.g)(L);var I=$e(n.useState(null),2),T=I[0],P=I[1];(0,c.i)(h.p.getConfigFetchOptions(P),[]);var k=$e(n.useState(null),2),A=k[0],D=k[1];(0,c.i)(g.K.getCurrentUserFetchOptions(D),[]);var F=o.a.useBasicFetch(m.N.currentUser()),_=o.a.useBasicFetch((null===(t=F.data)||void 0===t?void 0:t.isAuthenticated)&&m.N.customers(F.data.id)),V=_&&(null===(r=_.data)||void 0===r?void 0:r.data.length)>1,B=q&&q.map((function(e){return e.name}));(0,p.v)(O,null,{forbidden:!0}),n.useEffect((function(){_.hasCompleted&&q&&O.statusCode===a.o.Forbidden&&i.Q.Ry.throw(new _e(V,B))}),[O.statusCode,V,null==B?void 0:B.length]),(0,Qe.A)({id:e.id,requests:w.items,appLink:{application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.PENDING_REQUESTS,params:e.queryParams}}),(0,He.m)(O.data,"pending",e.queryParams),(0,Be.K)(O.data);var U=((null===(l=w.items)||void 0===l?void 0:l.length)||w.hasCompleted)&&q&&T&&F.data&&_.data,M=O.data&&x.hasCompleted;return n.createElement("div",null,n.createElement("h1",{className:"h2"},n.createElement(u.x,{namespace:We,phrase:"title"})),n.createElement("div",{className:"mb-3"},n.createElement(s.Oo,{breadcrumbs:[{name:Ze("libraryEditor"),appLink:{application:v.OV.LIBRARY_EDITOR,action:v.eX.LibraryEditor.HOME}},{name:Ze("title"),active:!0}]})),n.createElement(je.A,{active:"pending"}),!U||(null===(S=w.items)||void 0===S?void 0:S.length)?n.createElement(n.Fragment,null,n.createElement("div",{className:"d-flex justify-content-end mb-3"},n.createElement(Ce.F,{appLink:{application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.PENDING_REQUESTS,args:[e.id]},queryParams:e.queryParams})),n.createElement("div",{className:"row"},n.createElement("div",{className:"col-4"},U?n.createElement(n.Fragment,null,n.createElement(Ne,{count:C.data}),n.createElement(Oe.q,{libraryRequests:w.items,selectedId:e.id,appLink:{application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.PENDING_REQUESTS},queryParams:e.queryParams,fetchNext:w.fetchNext,isFetching:w.isFetching,nextCursor:w.nextCursor})):n.createElement(xe.p,null)),n.createElement("div",{className:"col-8"},U&&M?n.createElement(n.Fragment,null,n.createElement(ne,{key:O.data.id,libraryRequest:O.data,libraries:q,queryParams:e.queryParams,user:A}),n.createElement(Re.x,{libraryRequest:O.data,config:T,user:A,currentUser:F.data,createViewKey:function(t,r){var n=Ve.y.createViewKey(e.id,(function(e){return r(new y.y(e))}),(function(e){return R.error(b.M.libraryApiError(e))}));N(n)},comments:x.items})):n.createElement(n.Fragment,null,n.createElement(ae,null),n.createElement(we.j,null))))):n.createElement(Ke,{hasLibraries:!!q.length}))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5524],{99828:function(e,t,r){r.d(t,{y:function(){return u}});var n=r(88483);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 o(e,t,r){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=o(o(o(o(o(o(o(o(o({},n.__.Thumbnails,{width:1280,height:720}),n.__.Banners,{width:1200,height:222}),n.__.Covers,{width:512,height:512}),n.__.Posters,{width:1e3,height:1500}),n.__.TallPosters,{width:1080,height:1920}),n.__.HeroBanners,{width:1920,height:640}),n.__.None,{width:1,height:1}),n.__.Avatars,{width:256,height:256}),n.__.Logos,{width:128,height:128})},24365:function(e,t,r){r.r(t),r.d(t,{CropperHelper:function(){return y}});var n=r(32735),i=r(44645),o=r(51934),u=r.n(o),a=r(57857),l=r(4231),c=r(83996),f=r(99828);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,u,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var h=a.T.encloseNamespace("shared.imageCropper"),m=/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/;function d(e){var t=s(n.useState(!1),2),r=t[0],i=t[1],o=s(n.useState(!1),2),a=o[0],p=o[1],d=n.useRef(null),y=n.useRef(null);return n.useEffect((function(){var t=new Image;t.src=e.src;var r=d.current.offsetWidth/t.width,n=f.y[e.imageType],o={viewMode:2,autoCropArea:1,ready:function(){return i(!0)}};return n&&(o.minCropBoxWidth=n.width*r,o.minCropBoxHeight=n.height*r,o.aspectRatio=n.width/n.height),y.current=new(u())(d.current,o),function(){y.current.destroy()}}),[]),n.createElement(l.G,{title:h("title"),closePopup:e.closePopup,size:e.popupSize},n.createElement("div",null,n.createElement("img",{src:e.src,alt:e.alt,ref:d,className:"img img-fluid"})),n.createElement(c.u,null,n.createElement(c.u.Cancel,{onClick:e.closePopup}),n.createElement(c.u.Submit,{onClick:function(){if(r){var t=y.current.getCroppedCanvas().toDataURL(function(e){var t=e.match(m);if(t)return t[1]}(e.src));p(!0),e.onClickCrop(t,e.closePopup)}},text:h("crop"),variant:"dark",showSpinner:a})))}d.defaultProps={popupSize:"lg"};var y={renderCropper:function(e){var t=(0,i.s)(document.getElementById("dialog-region"));t.render(n.createElement(d,Object.assign({},e,{closePopup:function(){return t.unmount()}})))}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5698],{75698:function(e,t,n){n.d(t,{Z:function(){return ke}});var r=n(95685),o=n.n(r),s=n(32735),a=n(30720),l=n(14473);var c=n(79765),i=n(36177),u=s.createContext(null),d=n(46603),p=n(38521),f=n(37479),v=n(51988),m=n(74512);const w=["children","usePopper"],g=()=>{};function h(e={}){const t=(0,s.useContext)(u),[n,r]=(0,d.Z)(),o=(0,s.useRef)(!1),{flip:a,offset:l,rootCloseEvent:c,fixed:i=!1,placement:m,popperConfig:w={},enableEventListeners:h=!0,usePopper:x=!!t}=e,y=null==(null==t?void 0:t.show)?!!e.show:t.show;y&&!o.current&&(o.current=!0);const{placement:b,setMenu:C,menuElement:E,toggleElement:k}=t||{},N=(0,p.Z)(k,E,(0,v.ZP)({placement:m||b||"bottom-start",enabled:x,enableEvents:null==h?y:h,offset:l,flip:a,fixed:i,arrowElement:n,popperConfig:w})),P=Object.assign({ref:C||g,"aria-labelledby":null==k?void 0:k.id},N.attributes.popper,{style:N.styles.popper}),S={show:y,placement:b,hasShown:o.current,toggle:null==t?void 0:t.toggle,popper:x?N:null,arrowProps:x?Object.assign({ref:r},N.attributes.arrow,{style:N.styles.arrow}):{}};return(0,f.Z)(E,(e=>{null==t||t.toggle(!1,e)}),{clickTrigger:c,disabled:!y}),[P,S]}function x(e){let{children:t,usePopper:n=!0}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,w);const[o,s]=h(Object.assign({},r,{usePopper:n}));return(0,m.jsx)(m.Fragment,{children:t(o,s)})}x.displayName="DropdownMenu";var y=x;const b={prefix:String(Math.round(1e10*Math.random())),current:0},C=s.createContext(b),E=s.createContext(!1);let k=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),N=new WeakMap;const P="function"==typeof s.useId?function(e){let t=s.useId(),[n]=(0,s.useState)("function"==typeof s.useSyncExternalStore?s.useSyncExternalStore(j,S,D):(0,s.useContext)(E));return e||`${n?"react-aria":`react-aria${b.prefix}`}-${t}`}:function(e){let t=(0,s.useContext)(C);t!==b||k||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=function(e=!1){let t=(0,s.useContext)(C),n=(0,s.useRef)(null);if(null===n.current&&!e){var r,o;let e=null===(o=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===o||null===(r=o.ReactCurrentOwner)||void 0===r?void 0:r.current;if(e){let n=N.get(e);null==n?N.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,N.delete(e))}n.current=++t.current}return n.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function S(){return!1}function D(){return!0}function j(e){return()=>{}}const O=e=>{var t;return"menu"===(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())},R=()=>{};function T(){const e=P(),{show:t=!1,toggle:n=R,setToggle:r,menuElement:o}=(0,s.useContext)(u)||{},a=(0,s.useCallback)((e=>{n(!t,e)}),[t,n]),l={id:e,ref:r||R,onClick:a,"aria-expanded":!!t};return o&&O(o)&&(l["aria-haspopup"]=!0),[l,{show:t,toggle:n}]}function Z({children:e}){const[t,n]=T();return(0,m.jsx)(m.Fragment,{children:e(t,n)})}Z.displayName="DropdownToggle";var $=Z;const _=(e,t=null)=>null!=e?String(e):t||null;var I=s.createContext(null);const M=s.createContext(null);M.displayName="NavContext";var K=M,L=n(16616),A=n(27445);const F=["eventKey","disabled","onClick","active","as"];function B({key:e,href:t,active:n,disabled:r,onClick:o}){const a=(0,s.useContext)(I),l=(0,s.useContext)(K),{activeKey:c}=l||{},u=_(e,t),d=null==n&&null!=e?_(c)===u:n;return[{onClick:(0,i.Z)((e=>{r||(null==o||o(e),a&&!e.isPropagationStopped()&&a(u,e))})),"aria-disabled":r||void 0,"aria-selected":d,[(0,A.PB)("dropdown-item")]:""},{isActive:d}]}const W=s.forwardRef(((e,t)=>{let{eventKey:n,disabled:r,onClick:o,active:s,as:a=L.ZP}=e,l=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,F);const[c]=B({key:n,href:l.href,disabled:r,onClick:o,active:s});return(0,m.jsx)(a,Object.assign({},l,{ref:t},c))}));W.displayName="DropdownItem";var U=W,z=n(9418);function H(){const e=function(){const[,e]=(0,s.useReducer)((e=>!e),!1);return e}(),t=(0,s.useRef)(null),n=(0,s.useCallback)((n=>{t.current=n,e()}),[e]);return[t,n]}function G({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:o=`* [${(0,A.PB)("dropdown-item")}]`,focusFirstItemOnShow:d,placement:p="bottom-start",children:f}){const v=(0,z.Z)(),[w,g]=function(e,t,n){const r=(0,s.useRef)(void 0!==e),[o,a]=(0,s.useState)(t),l=void 0!==e,c=r.current;return r.current=l,!l&&c&&o!==t&&a(t),[l?e:o,(0,s.useCallback)(((...e)=>{const[t,...r]=e;let o=null==n?void 0:n(t,...r);return a(t),o}),[n])]}(t,e,r),[h,x]=H(),y=h.current,[b,C]=H(),E=b.current,k=(0,c.Z)(w),N=(0,s.useRef)(null),P=(0,s.useRef)(!1),S=(0,s.useContext)(I),D=(0,s.useCallback)(((e,t,n=(null==t?void 0:t.type))=>{g(e,{originalEvent:t,source:n})}),[g]),j=(0,i.Z)(((e,t)=>{null==n||n(e,t),D(!1,t,"select"),t.isPropagationStopped()||null==S||S(e,t)})),R=(0,s.useMemo)((()=>({toggle:D,placement:p,show:w,menuElement:y,toggleElement:E,setMenu:x,setToggle:C})),[D,p,w,y,E,x,C]);y&&k&&!w&&(P.current=y.contains(y.ownerDocument.activeElement));const T=(0,i.Z)((()=>{E&&E.focus&&E.focus()})),Z=(0,i.Z)((()=>{const e=N.current;let t=d;if(null==t&&(t=!(!h.current||!O(h.current))&&"keyboard"),!1===t||"keyboard"===t&&!/^key.+$/.test(e))return;const n=(0,a.Z)(h.current,o)[0];n&&n.focus&&n.focus()}));(0,s.useEffect)((()=>{w?Z():P.current&&(P.current=!1,T())}),[w,P,T,Z]),(0,s.useEffect)((()=>{N.current=null}));const $=(e,t)=>{if(!h.current)return null;const n=(0,a.Z)(h.current,o);let r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return function(e,t,n,r=!1){const o=(0,i.Z)(n);(0,s.useEffect)((()=>{const n="function"==typeof e?e():e;return n.addEventListener(t,o,r),()=>n.removeEventListener(t,o,r)}),[e])}((0,s.useCallback)((()=>v.document),[v]),"keydown",(e=>{var t,n;const{key:r}=e,o=e.target,s=null==(t=h.current)?void 0:t.contains(o),a=null==(n=b.current)?void 0:n.contains(o);if(/input|textarea/i.test(o.tagName)&&(" "===r||"Escape"!==r&&s||"Escape"===r&&"search"===o.type))return;if(!s&&!a)return;if(!("Tab"!==r||h.current&&w))return;N.current=e.type;const c={originalEvent:e,source:e.type};switch(r){case"ArrowUp":{const t=$(o,-1);return t&&t.focus&&t.focus(),void e.preventDefault()}case"ArrowDown":if(e.preventDefault(),w){const e=$(o,1);e&&e.focus&&e.focus()}else g(!0,c);return;case"Tab":(0,l.ZP)(o.ownerDocument,"keyup",(e=>{var t;("Tab"!==e.key||e.target)&&null!=(t=h.current)&&t.contains(e.target)||g(!1,c)}),{once:!0});break;case"Escape":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),g(!1,c)}})),(0,m.jsx)(I.Provider,{value:j,children:(0,m.jsx)(u.Provider,{value:R,children:f})})}G.displayName="Dropdown",G.Menu=y,G.Toggle=$,G.Item=U;var Y=G,q=n(80638);const J=s.createContext({});J.displayName="DropdownContext";var Q=J,V=n(46304);const X=s.forwardRef((({className:e,bsPrefix:t,as:n="hr",role:r="separator",...s},a)=>(t=(0,V.vE)(t,"dropdown-divider"),(0,m.jsx)(n,{ref:a,className:o()(e,t),role:r,...s}))));X.displayName="DropdownDivider";var ee=X;const te=s.forwardRef((({className:e,bsPrefix:t,as:n="div",role:r="heading",...s},a)=>(t=(0,V.vE)(t,"dropdown-header"),(0,m.jsx)(n,{ref:a,className:o()(e,t),role:r,...s}))));te.displayName="DropdownHeader";var ne=te;n(54895),n(60577);var re=n(14140);new WeakMap;const oe=["onKeyDown"],se=s.forwardRef(((e,t)=>{let{onKeyDown:n}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,oe);const[o]=(0,L.FT)(Object.assign({tagName:"a"},r)),s=(0,i.Z)((e=>{o.onKeyDown(e),null==n||n(e)}));return(a=r.href)&&"#"!==a.trim()&&"button"!==r.role?(0,m.jsx)("a",Object.assign({ref:t},r,{onKeyDown:n})):(0,m.jsx)("a",Object.assign({ref:t},r,o,{onKeyDown:s}));var a}));se.displayName="Anchor";var ae=se;const le=s.forwardRef((({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:s,active:a,as:l=ae,...c},i)=>{const u=(0,V.vE)(e,"dropdown-item"),[d,p]=B({key:n,href:c.href,disabled:r,onClick:s,active:a});return(0,m.jsx)(l,{...c,...d,ref:i,className:o()(t,u,p.isActive&&"active",r&&"disabled")})}));le.displayName="DropdownItem";var ce=le;const ie=s.forwardRef((({className:e,bsPrefix:t,as:n="span",...r},s)=>(t=(0,V.vE)(t,"dropdown-item-text"),(0,m.jsx)(n,{ref:s,className:o()(e,t),...r}))));ie.displayName="DropdownItemText";var ue=ie,de=n(72080);n(65719);const pe=s.createContext(null);pe.displayName="InputGroupContext";var fe=pe;const ve=s.createContext(null);ve.displayName="NavbarContext";var me=ve;function we(e,t){return e}function ge(e,t,n){let r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t?r=e?n?"right-end":"left-end":n?"right-start":"left-start":"down-centered"===t?r="bottom":"up-centered"===t&&(r="top"),r}n(56784);const he=s.forwardRef((({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:a=!0,show:l,renderOnMount:c,as:i="div",popperConfig:u,variant:d,...p},f)=>{let v=!1;const w=(0,s.useContext)(me),g=(0,V.vE)(e,"dropdown-menu"),{align:x,drop:y,isRTL:b}=(0,s.useContext)(Q);n=n||x;const C=(0,s.useContext)(fe),E=[];if(n)if("object"==typeof n){const e=Object.keys(n);if(e.length){const t=e[0],r=n[t];v="start"===r,E.push(`${g}-${t}-${r}`)}}else"end"===n&&(v=!0);const k=ge(v,y,b),[N,{hasShown:P,popper:S,show:D,toggle:j}]=h({flip:a,rootCloseEvent:r,show:l,usePopper:!w&&0===E.length,offset:[0,2],popperConfig:u,placement:k});if(N.ref=(0,de.Z)(we(f),N.ref),(0,re.Z)((()=>{D&&(null==S||S.update())}),[D]),!P&&!c&&!C)return null;"string"!=typeof i&&(N.show=D,N.close=()=>null==j?void 0:j(!1),N.align=n);let O=p.style;return null!=S&&S.placement&&(O={...p.style,...N.style},p["x-placement"]=S.placement),(0,m.jsx)(i,{...p,...N,style:O,...(E.length||w)&&{"data-bs-popper":"static"},className:o()(t,g,D&&"show",v&&`${g}-end`,d&&`${g}-${d}`,...E)})}));he.displayName="DropdownMenu";var xe=he,ye=n(98269);const be=s.forwardRef((({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:a=ye.Z,...l},c)=>{const i=(0,V.vE)(e,"dropdown-toggle"),d=(0,s.useContext)(u);void 0!==r&&(l.bsPrefix=r);const[p]=T();return p.ref=(0,de.Z)(p.ref,we(c)),(0,m.jsx)(a,{className:o()(n,i,t&&`${i}-split`,(null==d?void 0:d.show)&&"show"),...p,...l})}));be.displayName="DropdownToggle";var Ce=be;const Ee=s.forwardRef(((e,t)=>{const{bsPrefix:n,drop:r="down",show:a,className:l,align:c="start",onSelect:u,onToggle:d,focusFirstItemOnShow:p,as:f="div",navbar:v,autoClose:w=!0,...g}=(0,q.Ch)(e,{show:"onToggle"}),h=(0,s.useContext)(fe),x=(0,V.vE)(n,"dropdown"),y=(0,V.SC)(),b=(0,i.Z)(((e,t)=>{var n;t.originalEvent.currentTarget!==document||"keydown"===t.source&&"Escape"!==t.originalEvent.key||(t.source="rootClose"),n=t.source,(!1===w?"click"===n:"inside"===w?"rootClose"!==n:"outside"!==w||"select"!==n)&&(null==d||d(e,t))})),C=ge("end"===c,r,y),E=(0,s.useMemo)((()=>({align:c,drop:r,isRTL:y})),[c,r,y]),k={down:x,"down-centered":`${x}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return(0,m.jsx)(Q.Provider,{value:E,children:(0,m.jsx)(Y,{placement:C,show:a,onSelect:u,onToggle:b,focusFirstItemOnShow:p,itemSelector:`.${x}-item:not(.disabled):not(:disabled)`,children:h?g.children:(0,m.jsx)(f,{...g,ref:t,className:o()(l,a&&"show",k[r])})})})}));Ee.displayName="Dropdown";var ke=Object.assign(Ee,{Toggle:Ce,Menu:xe,Item:ce,ItemText:ue,Divider:ee,Header:ne})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5850],{11433:function(e,t,n){n.d(t,{j:function(){return T}});var r=n(32735),a=n(80247),o=n(57857),i=n(53808),c=n(21660),l=n(74421),s=n(38e3),u=n(84611),m=n(7067),f=n(85475),p={removeRecipient:"mCbMC",recipientItem:"kdcb0",showSpinner:"xH6Mu",avatarContainer:"Zcpg3",recipientDetails:"v5EmV",recipientDetailsWithRemoveButton:"_V928"},d="shared.classroomGroupRecipientItemMetadata";function g(e){var t;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(p.avatarContainer," d-inline-block")},r.createElement(u.f,{svgName:f.vn.Group,variant:(0,m.I)(null===(t=e.classroomGroup.metadata)||void 0===t?void 0:t.colour)})),r.createElement("div",{className:e.detailsClassName},r.createElement("h4",{className:"font-size-normal fw-normal m-0"},e.classroomGroup.name),r.createElement("p",{className:"text-secondary m-0"},function(e){var t,n,r,a=null!==(n=null===(t=e.users)||void 0===t?void 0:t.count)&&void 0!==n?n:0,i=null===(r=e.classroom)||void 0===r?void 0:r.name;return i?o.T.getPhrase(d,"subheading",{classroomName:i,smartCount:a}):""}(e.classroomGroup))))}var v="shared.classroomRecipientItemMetadata";function y(e){return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(p.avatarContainer," d-inline-block")},r.createElement(u.f,{svgName:f.vn.Classrooms,variant:"teal"})),r.createElement("div",{className:e.detailsClassName},r.createElement("h4",{className:"font-size-normal fw-normal m-0"},e.classroom.name),r.createElement("p",{className:"text-secondary m-0"},(c=null!==(a=null===(n=(t=e.classroom).users)||void 0===n?void 0:n.count)&&void 0!==a?a:null===(i=t.enrolments)||void 0===i?void 0:i.count,Number.isInteger(c)?o.T.getPhrase(v,"subheading",{smartCount:c}):""))));var t,n,a,i,c}var b=n(76198),h=n(76044);function S(e,t){return e?t?(0,b._8)((n="profileId"in e?e.profileId:e.id,r=+"".concat(n).concat(Math.floor((new Date).getMinutes()/5)),{dictionaries:[b.O9,b.yd],separator:" ",length:2,style:"capital",seed:r})):"profileId"in e?e.name:h.l.getFullName(e):"";var n,r}var C=n(38182),E=n(39396),O=n(1268),I=n(46237),j=o.T.encloseNamespace("shared.userRecipientItemMetadata");function w(e){var t,n,a,o,i,c=(a=(t=e).user,o=t.anonymiseUsers,i=t.showDisplayName,"profileId"in a?{name:S(a,o),surname:"",avatarUrl:null}:{name:o?S(a,!0):i?h.l.getDisplayName(a):h.l.getFullName(a),surname:a.surname,avatarUrl:null===(n=a.avatar)||void 0===n?void 0:n.url}),l=c.name,s=c.surname,u=c.avatarUrl;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(p.avatarContainer," ").concat(e.avatarClassName," d-inline-block")},r.createElement(C.q,{imageUrl:u,imageCdnUrl:e.imageCdnUrl,initials:h.l.getInitials(l,s),showAnonymousUser:"profileId"in e.user,anonymiseUsers:e.anonymiseUsers,anonymousSvgSize:E.S.Small})),r.createElement("div",{className:e.detailsClassName},r.createElement("h4",{className:"font-size-normal fw-normal m-0"},l),e.showSubText&&"id"in e.user&&r.createElement("p",{className:"text-secondary m-0"},e.getSubText?e.getSubText(e.user):function(e){var t=h.l.getUserType(e),n=h.l.getUserRole(e);if(t===O.Y.Staff)return n===I.i.Admin?j("admin"):j("staff");var r=h.l.getYearGroup(e);return(null==r?void 0:r.name)&&"Learners"!==r.name?r.name:j("student")}(e.user))))}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}w.defaults={showSubText:!0};var x=o.T.encloseNamespace("share.recipientItem");function k(e){switch(e){case l.E.User:return x("removeUser");case l.E.Classroom:return x("removeClassroom");case l.E.ClassroomGroup:return x("removeGroup")}return null}function T(e){var t,n,o=(t=r.useState(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=o[0],m=o[1],f="".concat(p.recipientItem," d-flex");u&&(f+=" ".concat(p.showSpinner));var d="".concat(e.removeRecipient?p.recipientDetailsWithRemoveButton:p.recipientDetails," d-inline-block ms-2");return r.createElement("div",{className:f},s.G.isType(e.entity,l.E.User)?r.createElement(w,{user:e.entity,imageCdnUrl:e.imageCdnUrl,detailsClassName:d,showDisplayName:e.showDisplayName,getSubText:e.getSubText,showSubText:!0}):s.G.isType(e.entity,l.E.Classroom)?r.createElement(y,{classroom:e.entity,detailsClassName:d}):s.G.isType(e.entity,l.E.ClassroomGroup)?r.createElement(g,{classroomGroup:e.entity,detailsClassName:d}):void 0,i.q.isFunction(e.removeRecipient)&&r.createElement("div",{className:"".concat(p.removeRecipient," d-inline-flex justify-content-center align-items-center")},u?r.createElement(a.Z,{as:"div",size:"sm",animation:"border",role:"status"}):r.createElement(c.u,{title:k(e.entity.typeId),spanHack:!0},r.createElement("div",{className:"btn-close cursor-pointer",role:"button","aria-label":"Close",onClick:function(){m(!0),e.removeRecipient(e.entity.id,(function(){return m(!1)}))}}))))}},39691:function(e,t,n){n.d(t,{t:function(){return j},D:function(){return w}});var r=n(32735),a=n(53808),o=n(58424),i=n(39396),c=n(74421),l=n(1268),s=n(7067),u=n(38e3),m=n(85475),f=n(76044),p=n(80247),d=n(57857),g={avatar:"srrS3"};function v(e){var t=e.imageUrl,n=e.initials,a={};return t&&(a.backgroundImage="url('".concat(t,"')")),r.createElement("div",{className:g.avatar,style:a},t?r.createElement(r.Fragment,null," "):n)}var y=n(21660),b={svgContainer:"laVU4",selection:"vEOCt",expander:"d1NHd",iconContainer:"rFH4W",icon:"BarYz",bubble:"HF0E8",spinnerContainer:"iKeXW",remove:"pyzCM",removeBubble:"mgt6Y"},h=d.T.encloseNamespace("shared.inputSelection");function S(e){var t,n="".concat(b.svgContainer," ").concat(b.icon);return e.typeId===c.E.Classroom?n+=" text-teal":n+=" text-".concat((0,s.I)(null===(t=e.metadata)||void 0===t?void 0:t.colour)),n}function C(e){var t,n=function(e){var t;switch(e.typeId){case c.E.Classroom:return"text-teal-hover";case c.E.ClassroomGroup:return"text-".concat((0,s.I)(null===(t=e.metadata)||void 0===t?void 0:t.colour),"-hover")}}(e.selection),a=e.selection.typeId===c.E.Classroom;if(!e.canExpand){if(!e.selection.typeId||e.selection.typeId===c.E.User){var l=e.selection;return r.createElement("div",{className:b.svgContainer},r.createElement(v,{imageUrl:null===(t=l.avatar)||void 0===t?void 0:t.url,initials:f.l.getInitials(e.selection.name,e.selection.surname)}))}return r.createElement(y.u,{title:h(a?"emptyClassroom":"emptyGroup")},r.createElement("div",{className:"align-items-center border border-white bg-white ".concat(b.iconContainer)},r.createElement(i.x,{className:S(e.selection),svgName:a?m.vn.Classrooms:m.vn.Group})))}return e.hasExpanded?r.createElement("div",{className:"d-flex align-items-center text-white ".concat(b.spinnerContainer," ").concat(b.svgContainer)},r.createElement(p.Z,{as:"div",size:"sm",animation:"border",role:"status"})):r.createElement(r.Fragment,null,r.createElement(o.L,{className:"align-items-center cursor-pointer text-white border border-white rounded-circle ".concat(b.expander," ").concat(n),onClick:e.onClickExpand},r.createElement(i.x,{svgName:m.vn.Plus,className:"d-flex align-items-center ".concat(b.svgContainer)})),r.createElement("div",{className:"align-items-center border border-white bg-white ".concat(b.iconContainer)},r.createElement(i.x,{className:S(e.selection),svgName:a?m.vn.Classrooms:m.vn.Group})))}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function I(e){var t;if(!e.typeId)return"ultramarine";switch(e.typeId){case c.E.User:return"number"==typeof e.userType?2===e.userType?"ultramarine":"indigo":e.userType===l.Y.Learner?"ultramarine":"indigo";case c.E.Classroom:return"teal";case c.E.ClassroomGroup:return(0,s.I)(null===(t=e.metadata)||void 0===t?void 0:t.colour)}}function j(e){var t,n,a,l=u.G.isType(e.selection,c.E.Classroom),s=u.G.isType(e.selection,c.E.ClassroomGroup),f=e.onClickExpand&&(l||s),p=!!(null===(t=e.selection.users||e.selection.enrolments)||void 0===t?void 0:t.count),d=!!(null===(a=null===(n=e.selection.users)||void 0===n?void 0:n.data)||void 0===a?void 0:a.length),g=E(r.useState(!1),2),v=g[0],y=g[1],h=E(r.useState(f&&p),2),S=h[0],C=h[1];if(r.useEffect((function(){C(f&&p)}),[f,p]),d){var O=e.selection,j=I(e.selection);return r.createElement("div",{className:"d-flex align-items-center flex-wrap me-1 mt-1 pb-1 ps-1 pe-4 position-relative border-".concat(j," text-").concat(j," ").concat(b.bubble)},O.users.data.map((function(t){return r.createElement(w,{key:"".concat(t.id,":").concat(e.selection.id),selection:t,colourVariant:j,hasStudentExperience:e.hasStudentExperience})})),r.createElement(o.L,{className:"cursor-pointer position-absolute text-".concat(j," ").concat(b.removeBubble),onClick:function(){return e.onClickRemove(e.selection)}},r.createElement(i.x,{svgName:m.vn.Close,className:"d-flex align-items-center ".concat(b.svgContainer)})))}return r.createElement(w,{selection:e.selection,canExpand:S,hasExpanded:v,onClickExpand:function(){y(!0),e.onClickExpand(e.selection.id)},onClickRemove:e.onClickRemove,colourVariant:I(e.selection),hasStudentExperience:e.hasStudentExperience})}function w(e){var t=e.colourVariant||I(e.selection),n=e.selection.name;return e.selection.typeId===c.E.User&&(n=e.hasStudentExperience?f.l.getDisplayName(e.selection):f.l.getFullName(e.selection)),r.createElement("div",{className:"".concat(b.selection," bg-").concat(t," rounded-pill text-").concat(t," d-flex align-items-center me-1 mt-1 overflow-hidden")},!e.hideExpander&&r.createElement(C,{canExpand:e.canExpand,hasExpanded:e.hasExpanded,onClickExpand:e.onClickExpand,selection:e.selection}),r.createElement("span",{className:"mx-1 text-white text-truncate"},n),a.q.isFunction(e.onClickRemove)&&r.createElement(o.L,{className:"d-flex align-items-center cursor-pointer align-self-stretch text-white ".concat(b.remove),onClick:function(){return e.onClickRemove(e.selection)}},r.createElement(i.x,{svgName:m.vn.Close,className:"d-flex align-items-center ".concat(b.svgContainer)})))}},71185:function(e,t,n){n.d(t,{d:function(){return V},R:function(){return D}});var r=n(32735),a=n(57857),o=n(40221),i=n(11433),c=n(8952),l=n(42648),s=n(53808),u=n(85887),m=n(39396),f=n(85475),p=n(5048),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function g(e,t,n,r,a){var o="form-control";return n||(o+=" ".concat(p.Z.inputWithoutHighlight)),"left"===e&&(o+=" ".concat(p.Z.inputWithLeftIcon)),("right"===e&&!t||"left"===e&&t)&&(o+=" ".concat(p.Z.inputWithRightIcon)),"right"===e&&t&&(o+=" ".concat(p.Z.inputWithTwoRightIcons)),"lg"===a&&(o+=" form-control-lg"),"sm"===a&&(o+=" form-control-sm"),r&&(o+=" ".concat(r)),o}function v(e){var t="d-inline-block svg-container";return s.q.isFunction(e)?t+" cursor-pointer":t}function y(e){var t=e.onClickSearchIcon,n=e.searchIconPlacement,a=e.showClearInputIcon,o=e.onClickClearInput,i=e.highlightOnFocus,c=e.className,l=e.formSize,s=d(e,["onClickSearchIcon","searchIconPlacement","showClearInputIcon","onClickClearInput","highlightOnFocus","className","formSize"]),u=function(){return r.createElement("div",{className:"d-inline-block"},r.createElement(m.x,{svgName:f.vn.Search,size:m.S.Standard,onClick:t,className:v(t)}))};return r.createElement("div",{className:"position-relative ".concat(p.Z.inputContainer)},"left"===n&&r.createElement("div",{className:"".concat(p.Z.iconContainer," ").concat(p.Z.leftIconContainer)},r.createElement(u,null)),r.createElement("input",Object.assign({className:g(n,a,i,c,l)},s)),("right"===n||!!a)&&r.createElement("div",{className:"".concat(p.Z.iconContainer," ").concat(p.Z.rightIconContainer)},!!a&&r.createElement((function(){return r.createElement("button",{className:"d-inline-block text-secondary ".concat(p.Z.clearButton),onMouseUp:o},r.createElement(m.x,{svgName:f.vn.Close,size:m.S.Standard,className:v(o)}))}),null),"right"===n&&r.createElement(u,null)))}var b=n(90547),h=n(5256),S=n(78523);function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||E(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},j="shared.searchBar",w=s.q.isFunction;function N(e){return e.renderAsForm?r.createElement("form",{onSubmit:e.onSubmit},e.children):r.createElement("div",{className:"w-100"},e.children)}function x(e){var t=S.aY(e.initialLocalSuggestions,e.recentSearches),n=C(r.useState(e.initialQuery||""),2),o=n[0],i=n[1],m=C(r.useState(t),2),f=m[0],p=m[1],d=r.useMemo((function(){return S.yr(f,e.suggestionsHeading,e.recentSearchHeading||a.T.getPhrase(j,"recentSearchesHeading"),e.getSections,e.suggestionLimit,e.transformSections)}),[f]);r.useEffect((function(){u.t.isEqual(t,f)||o&&o.length>=(null==e?void 0:e.activationLength)||p(t)}),[t]),r.useEffect((function(){"function"==typeof e.onSuggestionUpdated&&e.onSuggestionUpdated(d)}),[d]);var g=r.useRef(null),v=r.useRef(!1);S.of(g);var x=C(r.useState(e.initialQuery||""),2),k=x[0],T=x[1],A=C(r.useState("none"),2),L=A[0],F=A[1],R=(0,h.a)(b.r.XS);r.useEffect((function(){e.resetSuggestionsOnNoActivation&&o&&(o.length>=e.activationLength||P())}),[o]),r.useEffect((function(){if(!o.length){var t=S.aY(e.initialLocalSuggestions,e.recentSearches);p(t)}}),[e.initialLocalSuggestions,e.recentSearches]),r.useEffect((function(){var t=e.initialQuery||"";o!==t&&(i(t),T(t))}),[e.initialQuery]),r.useEffect((function(){g.current&&e.autoFocusInput&&g.current.focus()}),[e.autoFocusInput]);var P=function(){var t=S.aY(e.initialLocalSuggestions,e.recentSearches);p(t)},U=function(){i(""),T("")};(0,S.iV)(e.controlsRef,U,i,(function(){var e;null===(e=g.current)||void 0===e||e.focus()}),(function(){var e;null===(e=g.current)||void 0===e||e.blur()}));var B,_=function(){F("none")},G=function(t){t.preventDefault(),w(e.onSubmit)&&e.onSubmit(o,g.current),e.clearQueryOnSelect&&U()},q=r.useMemo((function(){return e.debounceTime?s.q.debounce(S.KC(e,p,P),e.debounceTime):S.KC(e,p,P)}),[e.debounceTime].concat(function(e){if(Array.isArray(e))return O(e)}(B=e.onSuggestionDependencies)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(B)||E(B)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()));function z(){return"boolean"==typeof e.alwaysRenderSuggestions?e.alwaysRenderSuggestions:!!(e.alwaysRenderSuggestionsWhenFocused&&o.length>=e.activationLength)&&document.activeElement===g.current}return r.createElement(N,{onSubmit:G,renderAsForm:!!e.renderAsForm},r.createElement(c,Object.assign({ref:function(e){null===e||g.current||(g.current=e.input)},suggestions:d,onSuggestionsFetchRequested:q,onSuggestionHighlighted:function(t){var n=t.suggestion;("none"!==L||n)&&(v.current&&e.onArrowKeyUpOrDown&&(v.current=!1,e.onArrowKeyUpOrDown()),F(n?"suggestion":"custom"))},onSuggestionsClearRequested:function(){z()||P()},onSuggestionSelected:function(t,n){var r=n.suggestion;r.generic||(e.clearQueryOnSelect&&U(),e.onSuggestionSelected(r,g.current,t))},getSuggestionValue:function(t){return function(t){return w(e.shouldUpdateQueryOnSelection)?e.shouldUpdateQueryOnSelection(t):e.shouldUpdateQueryOnSelection}(t)?S.tV(e.valueKey,t):o},renderSuggestion:function(t,n){if(t.generic){if("empty"===t.type)return o.length>=e.activationLength&&w(e.getEmptyStateComponent)?e.getEmptyStateComponent(o):r.createElement(r.Fragment,null);if("errored"===t.type&&w(e.getErrorStateComponent)){var a=S.KC(e,p,P);return e.getErrorStateComponent((function(){return a({value:o,reason:"input-changed"})}))}if("loading"===t.type)return S.Gu(e.loadingComponentClassName)}return w(e.getSuggestionComponent)?e.getSuggestionComponent(t,n):S.Go(e.valueKey,t)},renderSuggestionsContainer:function(t){var n=t.containerProps,a=n.ref,i=I(n,["ref"]);if(!e.customScrollbarProps){var c={suggestions:f,query:o,isDropdownOpen:!!t.children};return r.createElement("div",Object.assign({ref:a},i,{onMouseOut:_}),t.children,e.getCreateComponent&&e.getCreateComponent(Object.assign({userInput:k,isActive:"custom"===L,resetQuery:U,resetSuggestions:P},c)),e.getFooterComponent&&e.getFooterComponent(c))}return r.createElement(l.ZP,Object.assign({ref:a},e.customScrollbarProps,i),t.children)},alwaysRenderSuggestions:z(),focusInputOnSuggestionClick:!R&&e.focusInputOnSuggestionClick,inputProps:{id:e.id,name:e.id,"aria-errormessage":"".concat(e.id,"Error"),"aria-label":e.label,placeholder:e.placeholder||a.T.getPhrase(j,"placeholder"),value:o,onChange:function(t,n){var r=n.newValue,a=n.method;"type"===a&&T(r),("escape"!==a||(F("none"),null==e?void 0:e.resetQueryOnEscape))&&(["up","down"].includes(a)||(i(r),w(e.onQueryChange)&&e.onQueryChange(r)))},onKeyDown:function(t){"Backspace"!==t.key||!e.onBackspace||o?"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(v.current=!0):e.onBackspace()},autoFocus:!!e.autoFocusInput,highlightOnFocus:e.highlightInputOnFocus,onClickSearchIcon:!!e.submitOnClickSearchIcon&&G,searchIconPlacement:e.searchIconPlacement,showClearInputIcon:!!e.showClearInputIcon&&!!o.length,onClickClearInput:function(){U(),e.resetSuggestionsOnClear&&P(),w(e.onClickClearInput)&&e.onClickClearInput()},formSize:e.size,onBlur:function(){e.onBlur&&e.onBlur(o)},onFocus:function(){e.onFocus&&e.onFocus(o)},disabled:e.disabled},renderInputComponent:y,theme:S.gh(e.theme,!!f.generic.length),multiSection:!0,renderSectionTitle:function(t){return w(e.renderSectionTitle)?e.renderSectionTitle(t,e.sectionTitleClassName):S.w8(t,e.sectionTitleClassName)},getSectionSuggestions:S.k3},e.renderSuggestionsOnInputFocus?{shouldRenderSuggestions:function(){return w(e.renderSuggestionsOnInputFocus)?e.renderSuggestionsOnInputFocus(o):e.renderSuggestionsOnInputFocus}}:{})))}x.defaultProps={valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialLocalSuggestions:[],searchIconPlacement:"right",renderAsForm:!0,onSuggestionDependencies:[],shouldUpdateQueryOnSelection:!0,focusInputOnSuggestionClick:!0,resetQueryOnEscape:!0};var k=n(66703);function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var A=function(e,t){var n,a,o=(n=r.useState(e),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(n,a)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],c=o[1];return r.useEffect((function(){var n=setTimeout((function(){return c(e)}),t);return function(){return clearTimeout(n)}}),[e,t]),i},L={emptyState:"bKTf0"},F="shared.typeaheadEmptyState";function R(e){var t=e.query,n=void 0===t?"":t,a=e.imageUrl,o=A(n,300);return r.createElement("div",{className:"d-flex flex-column align-items-center text-center",onClick:function(e){e.stopPropagation()}},r.createElement("img",{alt:"",role:"presentation",src:a,className:"pb-2 ".concat(L.emptyState)}),r.createElement("h2",{role:"status",className:"h6"},r.createElement(k.x,{namespace:F,phrase:"noResults",options:{query:o,smartCount:o.length}})))}var P=n(58424),U={emptyState:"k5mEG"},B="shared.typeaheadErrorState";function _(e){return r.createElement("div",{className:"d-flex flex-column align-items-center text-center",onClick:function(e){e.stopPropagation()}},r.createElement("img",{alt:"",role:"presentation",src:e.imageUrl,className:"pb-2 ".concat(U.emptyState)}),r.createElement("h2",{className:"h6",role:"alert"},r.createElement(k.x,{namespace:B,phrase:"error"})),r.createElement(P.L,{onClick:function(t){t.stopPropagation(),e.onClickTryAgain()},className:"btn btn-link info-link p-0"},r.createElement(k.x,{namespace:B,phrase:"tryAgain"})))}var G=n(39691),q={container:"Dc3kX",suggestionsContainerOpen:"c5t3e",selectionContainer:"kFjoN",sectionContainer:"mLrE3"},z="shared.tokenizedTypeahead",V=10;function D(e){var t;return r.createElement("div",{className:"form-control h-auto d-flex align-items-top position-relative ".concat(e.hideIcon?"":"py-1 px-0"," ").concat(e.className)},!e.hideIcon&&r.createElement(m.x,{className:"svg-container m-1",svgName:f.vn.Search}),r.createElement("div",{className:"".concat(q.selectionContainer," d-flex flex-wrap align-items-center mt-n1")},e.selections.map((function(t){return e.getInputTokenComponent?e.getInputTokenComponent(t):r.createElement(G.t,{key:t.id,selection:t,onClickRemove:e.removeSelection,onClickExpand:e.fetchSelectionMembers,hasStudentExperience:e.hasStudentExperience})})),r.createElement(x,Object.assign({},e,{onBackspace:function(){e.selections.length&&e.removeSelection(o.m.last(e.selections))},recentSearchHeading:e.recentSearchHeading||a.T.getPhrase(z,"recentSearchHeading"),placeholder:(null===(t=e.selections)||void 0===t?void 0:t.length)?" ":e.placeholder,searchIconPlacement:!1,clearQueryOnSelect:!0,getSuggestionComponent:function(t){return e.getSuggestionComponent?e.getSuggestionComponent(t):r.createElement(i.j,{entity:t,imageCdnUrl:e.imageCdnUrl,showDisplayName:e.hasStudentExperience})},getEmptyStateComponent:function(t){return r.createElement(R,{query:t,imageUrl:e.emptyStateImageUrl})},getErrorStateComponent:function(t){return r.createElement(_,{imageUrl:e.errorStateImageUrl,onClickTryAgain:t})},theme:{container:q.container,suggestionsContainerOpen:"bg-white py-1 rounded border mt-1 ".concat(q.suggestionsContainerOpen),sectionContainer:"border-bottom py-1 ".concat(q.sectionContainer)},sectionTitleClassName:"ps-2",renderSuggestionsOnInputFocus:e.renderSuggestionsOnInputFocus,onSuggestionDependencies:[e.selections]}))),!!e.sharePermissionsDescription&&r.createElement("span",{className:"px-2 text-secondary text-nowrap"},e.sharePermissionsDescription))}D.defaultProps={renderSuggestionsOnInputFocus:!0}},63038:function(e,t,n){n.d(t,{n:function(){return C},W:function(){return E}});var r=n(32735),a=n(80247),o=n(18881),i=n(92802),c=n(53808),l=n(85887),s=n(49642),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function m(e){var t=e.label,n=e.checkboxLabelClassName,a=e.checkboxLabelFontWeight,i=e.className,c=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return r.createElement(o.Z.Group,{className:"form-group"},r.createElement("div",{className:"form-check ".concat(i||"")},r.createElement(C,Object.assign({className:"form-check-input"},c)),r.createElement(o.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===a?"fw-normal":""," \n ").concat(n),htmlFor:c.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&r.createElement(r.Fragment,null,r.createElement("span",null," "),r.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var f=n(39396),p=n(66703),d={getCustomFormControlClassName:function(e,t,n,r,a,o){var c="";return c=function(e,t){var n="";return n="select"===e?"form-select":"form-control","sm"===t&&(n+=" ".concat(n,"-sm")),"lg"===t&&(n+=" ".concat(n,"-lg")),n}(o,r),(0,i.u9)(t,n)&&(0,i.u9)(e,n)&&(c+=" is-invalid"),a&&(c+=" ".concat(a)),c}},g=n(85475);function v(e){var t=(0,i.u6)().values,n=l.t.get(t,e.fieldName);return"string"!=typeof n?r.createElement(r.Fragment,null):r.createElement("div",{className:"float-end text-secondary fw-normal"},n.length,"/",e.limit," characters")}var y={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},S="shared.formField";function C(e){var t,n,o=e.children,s=e.showLoadingSpinner,u=h(e,["children","showLoadingSpinner"]),m=(t=r.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=m[0],d=m[1],v=c.q.isFunction(o)?function(e){return o(e)}:r.Children.count(o)?o:null;if("password"!==u.type)return s?r.createElement("div",{className:"position-relative"},r.createElement(i.gN,Object.assign({},l.t.omit(u,["formSize"])),v),r.createElement("div",{className:y.spinner},r.createElement(a.Z,{animation:"border",size:"sm"}))):r.createElement(i.gN,Object.assign({},l.t.omit(u,["formSize"])),v);var S="position-relative ".concat(y.passwordContainer);return u.className&&(S+=" ".concat(u.className)),u.disabled&&(S+=" ".concat(y.passwordContainerDisabled)),r.createElement("div",{className:S},r.createElement(i.gN,Object.assign({},l.t.omit(u,["formSize","type","className"]),{type:p,className:"".concat(y.passwordInput," border-0 w-100 h-100 outline-none rounded")}),v),"password"===u.type&&r.createElement(f.x,{svgName:"password"===p?g.vn.VisibleOn:g.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(y.revealPassword),onClick:function(){d("password"===p?"text":"password")}}))}function E(e){var t=e.label,n=e.className,a=e.showCharacterCounter,c=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,b=e.infoText,E=e.formSize,O=e.showOptionalLabel,I=h(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),j=(0,i.u6)(),w=j.errors,N=j.touched,x=function(){};if("checkbox"===I.type){var k=l.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(k.onChange=x),r.createElement(m,Object.assign({},k))}var T=Object.assign(Object.assign({},I),{className:d.getCustomFormControlClassName(w,N,I.name,E,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(T.onChange=x),r.createElement(o.Z.Group,{className:"form-group"},!!t&&r.createElement(o.Z.Label,{htmlFor:I.id,className:"d-flex align-items-center"},t,c&&r.createElement("span",{className:"text-danger"},"*"),s&&r.createElement(f.x,{className:"svg-container text-secondary ".concat(y.infoTooltip),svgName:g.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),O&&r.createElement("span",{className:"text-secondary"}," ",r.createElement(p.x,{namespace:S,phrase:"optional"})),!!a&&!!I.maxLength&&r.createElement("div",{className:"ms-auto"},r.createElement(v,{fieldName:I.name,limit:I.maxLength}))),r.createElement(C,Object.assign({},T,{"aria-errormessage":"".concat(I.name,"Error")})),!!b&&r.createElement(o.Z.Text,{className:"text-secondary"},b),r.createElement(i.Bc,{name:I.name},(function(e){return r.createElement(o.Z.Control.Feedback,{id:"".concat(I.name,"Error"),type:"invalid",role:"status"},e)})))}C.defaultProps={autoComplete:"off"},E.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},86347:function(e,t,n){n.d(t,{b:function(){return u},n:function(){return s}});var r=n(32735),a=n(92802),o=n(53808),i=n(85887);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,m=l(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),f=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=i.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(r){t.hasOwnProperty(r)&&(i.t.isObject(n[r])?e(n[r]):null===t[r]&&delete t[r])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return r.createElement(a.J9,Object.assign({enableReinitialize:!0},m,{initialValues:f,onSubmit:function(t,r){var a=r.setSubmitting,o=r.resetForm,i=r.setFieldError,l=n&&e.validationSchema?e.validationSchema.cast(t):t;u(l,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&o(),n.errors)for(var r=0,l=Object.entries(n.errors);r<l.length;r++){var s=(e=l[r],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],m=s[1];i(u,m)}a(!1)}))},initialStatus:p}),o.q.isFunction(e.children)?function(t){return e.children(t)}:r.Children.count(e.children)?e.children:null)}function u(){return(0,a.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},84611:function(e,t,n){n.d(t,{f:function(){return i}});var r=n(32735),a=n(39396),o={circle:"Uxnsl",img:"BQ87Y"};function i(e){var t;return e.imageUrl||e.svgName?e.imageUrl?r.createElement("div",{className:"".concat(o.img," rounded-circle h-100 w-100"),style:{backgroundImage:"url(".concat(e.imageUrl,")")}}," "):r.createElement("div",{className:"".concat(o.circle," ").concat(e.variant?"bg-".concat(e.variant):""," text-").concat(e.textVariant," rounded-circle h-100 w-100 ").concat(null!==(t=e.svgWrapperClassName)&&void 0!==t?t:"")},r.createElement(a.x,{svgName:e.svgName,size:e.svgSize})):r.createElement(r.Fragment,null)}i.defaultProps={textVariant:"white"}},78523:function(e,t,n){n.d(t,{aY:function(){return h},Gu:function(){return N},Zo:function(){return C},k3:function(){return A},Go:function(){return w},yr:function(){return x},tV:function(){return j},gh:function(){return F},KC:function(){return I},w8:function(){return L},iV:function(){return R},of:function(){return P}});var r=n(32735),a=n(80247),o=n(2248),i=n(53808),c=n(86120),l=n(79410),s=n(85887);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)}var m,f={isNumber:function(e){return f.isType(e,"number")},isString:function(e){return f.isType(e,"string")},isType:function(e,t){return u(e)===t}},p=n(5048);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function g(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return b(b(b(b({},m.Recent,t),m.Local,e),m.Remote,[]),m.Generic,[])}function S(e,t){return s.t.isObject(e)&&e.hasOwnProperty(t)&&f.isString(e[t])}function C(e,t,n,r){var a=e.trim().toLowerCase();return a.length<r?[]:t.filter((function(e){return!(!S(e,n)||!f.isString(e[n]))&&e[n].trim().toLowerCase().includes(a)}))}function E(e,t){e(Object.assign(Object.assign({},h([],[])),b({},m.Generic,[{type:t,generic:!0}])))}function O(e,t,n){var r=i.q.isFunction(t.formatRemoteSuggestions)?t.formatRemoteSuggestions(e):e;r.length||!t.getEmptyStateComponent?n((function(e){return Object.assign(Object.assign({},e),b(b({},m.Remote,r),m.Generic,[]))})):E(n,"empty")}function I(e,t,n){return function(r){var a,l,s=r.value,u=r.reason;if((null===(l=null===(a=e.allowableSuggestionFetchRequestedReasons)||void 0===a?void 0:a.includes(u))||void 0===l||l)&&(s.length||n(),!(s.length<e.activationLength))){if(e.local){var f=i.q.isFunction(e.getLocalSuggestions)?e.getLocalSuggestions(s,e.local):C(s,e.local,e.valueKey,e.activationLength);if(!f.length&&e.getEmptyStateComponent)return void E(t,"empty");t((function(e){return Object.assign(Object.assign({},e),b(b({},m.Local,f),m.Generic,[]))}))}if("function"==typeof e.handleFetchSuggestions)return e.replacePreviousRemoteSuggestions?t((function(e){return Object.assign(Object.assign({},h([],[])),b({},m.Remote,e.remote))})):E(t,"loading"),void e.handleFetchSuggestions(s,(function(n){return O(n,e,t)}),(function(){return E(t,"errored")}));var p,d,g,v,y,S,I;e.getRemoteUrl&&(e.replacePreviousRemoteSuggestions?t((function(e){return Object.assign(Object.assign({},h([],[])),b({},m.Remote,e.remote))})):E(t,"loading"),p=e.getRemoteUrl,d=s,g=function(n){return O(n,e,t)},v=function(){E(t,"errored")},y=e.requestHeaders,S=e.getRemotePostBody,(I=i.q.isFunction(p)&&p(d))&&(S?c.a.ajaxRequest({resource:I,type:o.k.POST,success:g,error:v,headers:y,data:S(d)}):c.a.ajaxRequest({resource:I,type:o.k.GET,success:g,error:v,headers:y})))}}}function j(e,t){return S(t,e)?t[e]:""}function w(e,t){return S(t,e)?r.createElement(r.Fragment,null,t[e]):r.createElement(r.Fragment,null)}function N(e){return r.createElement("div",{className:"d-flex justify-content-center cursor-default ".concat(null!=e?e:""),onClick:function(e){e.stopPropagation()}},r.createElement(a.Z,{as:"span",animation:"border",role:"status"}))}function x(e,t,n,r,a,o){var c=function(t){var n=e[t];return n?n.map((function(e){return Object.assign(Object.assign({},e),{suggestionType:t})})):[]},l=c(m.Recent),s=c(m.Local),u=c(m.Remote),f=c(m.Generic);if(f.length)return[{data:f,suggestionType:m.Generic}];if(i.q.isFunction(r))return r([].concat(g(s),g(u),g(l)));var p=[];return(null==s?void 0:s.length)&&p.push({title:t,data:T(s,k(m.Local,a)),suggestionType:m.Local}),(null==u?void 0:u.length)&&p.push({title:t,data:T(u,k(m.Remote,a)),suggestionType:m.Remote}),(null==l?void 0:l.length)&&p.push({title:n,data:T(l,k(m.Recent,a)),suggestionType:m.Recent}),"function"==typeof o?o(p):p}function k(e,t){return"number"==typeof t||"boolean"==typeof t?t:t[e]||!1}function T(e,t){return"boolean"==typeof t||e.length<=t?e:e.slice(0,t)}function A(e){return e.data}function L(e,t){if(e.title)return r.createElement("div",{className:"pb-1 ".concat(null!=t?t:"")},r.createElement("strong",null,e.title))}function F(e,t){var n="function"==typeof e?e(t):e,r=function(e){return{container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded ".concat(p.Z.suggestionsContainerOpen),suggestionsList:"list-unstyled m-0",suggestion:"".concat(e?"":"cursor-pointer"," py-1 px-2"),suggestionHighlighted:e?"":p.Z.suggestionHighlighted,sectionContainer:"border-bottom py-1 ".concat(p.Z.sectionContainer)}}(t);return Object.assign(r,n)}function R(e,t,n,a,o){r.useEffect((function(){e&&!e.current&&(e.current={resetQuery:t,setQuery:n,focusInput:a,blurInput:o})}),[null==e?void 0:e.current])}function P(e){var t,n,a=(t=(0,l.D)("lite:search:bar:focus",{focus:!1}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,n)||v(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=a[0],i=a[1];return r.useEffect((function(){o.focus&&(null==e?void 0:e.current)&&(e.current.focus(),i({focus:!1}))}),[o.focus]),{focusSearchBar:function(){return i({focus:!0})},shouldFocus:o.focus}}!function(e){e.Local="local",e.Recent="recent",e.Remote="remote",e.Generic="generic"}(m||(m={}))},48050:function(e,t,n){var r;n.d(t,{R:function(){return r}}),function(e){e.Subject="Subject",e.Curriculum="Curriculum",e.StreamableLearning="StreamableLearning"}(r||(r={}))},57867:function(e,t,n){n.d(t,{x:function(){return m}});var r,a=n(68003),o=n(40221);!function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos",e.PinnedVideos="pinnedVideos"}(r||(r={}));var i=n(84657),c=n(34254),l=n(48050);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=function(e){return"subjectpresentationaudiences.id:[".concat(e.join(","),"]")},m={topicsFromAllAvailablePresentations:function(e){var t={filterType:"topics",presentationId:e};return{url:a._.urlBuilder("{gateway}/v1/search/filters",t),publicUrl:a._.urlBuilder("/api/search/filters",t),key:"classification:availableTopics",normalize:!1}},availablePresentations:function(e){var t={type:null==e?void 0:e.toLowerCase()};return{url:a._.urlBuilder("/api/domain/v1/subjects/presentations/available",t),publicUrl:a._.urlBuilder("/api/subjects/presentations/available",t),key:"available:presentations:".concat(e),normalizeOptions:{namespace:"presentation"}}},topLevelTopics:function(e){var t={query:i.v.CLASSIFICATION_COLLECTION,sort:"alphabetical"};return{url:a._.urlBuilder("/api/domain/v1/subjects/presentations/".concat(e,"/classifications"),t),publicUrl:a._.urlBuilder("/api/subjects/presentations/".concat(e,"/classifications"),t),key:"presentation:".concat(e,":classifications")}},presentationById:function(e){return{url:"/api/domain/v1/subjects/presentations/".concat(e),publicUrl:"/api/subjects/presentations/".concat(e),key:"presentation:".concat(e)}},presentationBySlug:function(e,t,n){var r={type:n.toLowerCase(),contentRegion:t};return{url:a._.urlBuilder("/api/subjects/presentations/".concat(e),r),publicUrl:a._.urlBuilder("/api/subjects/presentations/".concat(e),r),key:"current:presentation:".concat(n.toLowerCase(),":").concat(t,":").concat(null!=e?e:""),bootstrapName:"presentation",normalizeOptions:{namespace:"presentation"}}},presentation:function(e,t){var n={type:null==e?void 0:e.toLowerCase()};return{url:a._.urlBuilder("/api/domain/v1/subjects/presentations",n),publicUrl:a._.urlBuilder("/api/subjects/presentations/".concat(t),n),key:"current:presentation".concat(e?":".concat(e.toLowerCase()):"").concat(t?":".concat(t):""),normalizeOptions:{namespace:"presentation"}}},classifications:function(){return{url:a._.urlBuilder("/api/domain/v1/subjects",{query:i.v.CLASSIFICATION_COLLECTION,type:l.R.Subject.toLowerCase()}),publicUrl:a._.urlBuilder("/api/subjects/classifications",{query:i.t.CLASSIFICATION_COLLECTION,type:l.R.Subject.toLowerCase()}),key:"classifications"}},classification:function(e,t,n){return{url:a._.urlBuilder("/api/domain/v1/subjects/".concat(e),{query:i.v.CLASSIFICATION(t)}),publicUrl:a._.urlBuilder("/api/subjects/classifications/".concat(e),{query:i.t.CLASSIFICATION}),key:"classification:".concat(e),error:n}},path:function(e,t){var n={type:t};return{url:a._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/path"),n),publicUrl:"/api/subjects/classifications/".concat(e,"/path"),key:"classification:".concat(e,":path")}},paths:function(e){return{url:"/api/subjects/classifications/".concat(e,"/paths"),key:"classification:".concat(e,":paths")}},children:function(e){return{url:a._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/children"),{query:i.v.CLASSIFICATION_COLLECTION}),publicUrl:a._.urlBuilder("/api/subjects/classifications/".concat(e,"/children"),{query:i.t.CLASSIFICATION_COLLECTION}),key:"classification:".concat(e,":children")}},videos:function(e,t,n){if(t){var o="limit:100,orderbydesc:timestamp";n.length&&(o+=",".concat(u(n)));var i={query:"{".concat(o,"}(videoCollection),subjectpresentationaudiences{presentationId:").concat(t,"}"),permissionFilterOption:c.r.StripMetadata};return{url:a._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/").concat(r.PinnedVideos),i),publicUrl:a._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(r.PinnedVideos),i),key:"classification:".concat(e,":").concat(r.PinnedVideos,":").concat(n.join(":"))}}},playlists:function(e,t,n){if(t){var o="limit:100,orderby:name";n.length&&(o+=",".concat(u(n)));var l={query:"{".concat(o,"}").concat(i.v.PLAYLIST_COLLECTION)+",subjectpresentationaudiences{presentationId:".concat(t,"}"),permissionFilterOption:c.r.StripMetadata};return{url:a._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/").concat(r.Playlists),l),publicUrl:a._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(r.Playlists),l),key:"classification:".concat(e,":").concat(r.Playlists,":").concat(n.join(":")),formatData:function(e){var t;if(e)return Object.assign(Object.assign({},e),{data:null===(t=e.data)||void 0===t?void 0:t.filter((function(e){var t;return null===(t=e.cover)||void 0===t?void 0:t.url}))})}}}},series:function(e,t,n){if(t){var o="limit:100";n.length&&(o+=",".concat(u(n)));var l={query:"{".concat(o,"}").concat(i.v.SERIES)+",subjectpresentationaudiences{presentationId:".concat(t,"}"),permissionFilterOption:c.r.StripMetadata};return{url:a._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/").concat(r.Series),l),publicUrl:a._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(r.Series),l),key:"classification:".concat(e,":").concat(r.Series,":").concat(n.join(":")),formatData:function(e){var t;if(e)return Object.assign(Object.assign({},e),{data:null===(t=e.data)||void 0===t?void 0:t.filter((function(e){var t;return null===(t=e.tallPoster)||void 0===t?void 0:t.url}))})}}}},curriculumLinks:function(e,t){return{url:a._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:l.R.Curriculum.toLowerCase()}),publicUrl:a._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:l.R.Curriculum.toLowerCase()}),key:"curriculum:links:".concat(e,":").concat(t),normalize:!1}},subjectLinks:function(e,t){var n=a._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:l.R.Subject.toLowerCase()});return{url:n,publicUrl:n,key:"subject:links:".concat(e,":").concat(t),normalize:!1}},checkAllCurriculumsLinks:function(e,t,n){var r={type:l.R.Curriculum.toLowerCase()};return{url:a._.urlBuilder("/api/domain/v1/subjects/objects/".concat(e,"/presentations"),r),publicUrl:a._.urlBuilder("/api/subjects/".concat(e,"/presentations"),Object.assign(Object.assign({},r),{pid:t})),key:"check:all:curriculums:links:".concat(e,":").concat(t.join(",")),success:n,normalize:!1}},hasCurriculumLinks:function(e,t,n,r){var i=o.m.uniq(e).sort(),c=o.m.uniq(t).sort(),u={type:l.R.Curriculum.toLowerCase(),objectId:i};return(null==t?void 0:t.length)&&(u.presentationId=c),{url:a._.urlBuilder("/api/domain/v1/subjects/presentations/objects",u),publicUrl:a._.urlBuilder("/api/subjects/presentations/objects/exists",u),key:"has:curriculum:links:".concat(i.join(":"),":").concat(c.join(":")),normalizeOptions:{namespace:n},formatData:function(e){return Object.entries(e).map((function(e){var t,n,r=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return{id:r[0],_hasCurriculumLinks:r[1]}}))},success:r}},regionAlternatives:function(e,t,n,r){return{url:"/api/subjects/classifications/".concat(e,"/region-alternatives"),publicUrl:"/api/subjects/classifications/".concat(e,"/region-alternatives"),key:"classification:regionAlternatives:".concat(e),normalize:!1,success:t,error:n,always:r}}}},7067:function(e,t,n){n.d(t,{I:function(){return a}});var r=n(71551);function a(e){switch(e){case r.R.Pink:return"pink";case r.R.Orange:return"orange";case r.R.Green:return"green";case r.R.Blue:return"blue";case r.R.Purple:return"purple";case r.R.Indigo:return"indigo";default:return"pink"}}},5048:function(e,t){t.Z={inputWithoutHighlight:"cKcry",suggestionsContainerOpen:"avM9L",sectionContainer:"u35Wz",suggestionHighlighted:"gFitp",inputContainer:"utnMG",clearButton:"TAoT9",inputWithLeftIcon:"Rt24D",inputWithRightIcon:"pxKzq",inputWithTwoRightIcons:"Oerjh",iconContainer:"h8OBl",leftIconContainer:"L5mrV",rightIconContainer:"V23aG"}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5891],{54096:function(e,t,r){r.d(t,{G:function(){return a}});var n=r(32735),o=r(21679);function a(e){var t,r;return t=e,r=o.u.getInstance(t),n.useEffect((function(){return function(){o.u.releaseInstance(t)}})),r}},90335:function(e,t,r){var n;r.d(t,{D:function(){return n}}),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"}(n||(n={}))},2491:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(92159),o=r(21186),a=r(54096);function i(){var e=(0,a.G)(n.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:o.NK.Warning,heading:o.R6.Warning,message:t})}}}},94223:function(e,t,r){r.d(t,{P:function(){return s}});var n=r(32735),o=r(70680),a=r(35656),i=r(53808),u=r(86120);function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t,r){function a(e){if(e)return i.q.isFunction(t)?c(t(e)):c(e.data)}function l(e){var t,n;if(e)return r?r(e):null===(n=null===(t=e.pagination)||void 0===t?void 0:t.cursors)||void 0===n?void 0:n.next}return(0,o.v9)((0,n.useMemo)((function(){return function(t){if(i.q.isFunction(e)){for(var r=e,n=i.q.isFunction(e)&&r(),o=n&&u.a.getResponse(t,n),s=o&&o.isFetching,d=o&&o.statusCode,f=o&&o.hasCompleted,p=f,y=o&&o.shouldFetch,v=a(o&&o.data),m=l(o&&o.data),b=function(e){if(e)return null==e?void 0:e.count}(o&&o.data);m&&(o=u.a.getResponse(t,r(m)),s=s||o.isFetching,d=o.statusCode,f=o.hasCompleted,!o.shouldFetch);){var h=a(o.data);h&&v.push.apply(v,c(h));var g=l(o.data);m=g===m?null:g}var I={shouldInitialFetch:y,items:v,nextCursor:m,isFetching:s,statusCode:d,hasCompleted:f,hasFirstPageCompleted:p};return"number"==typeof b&&(I.totalItems=b),I}}}),[e]))}a.o.Ok},50072:function(e,t,r){var n;r.d(t,{l:function(){return n}}),function(e){e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected",e.Closed="Closed",e.AutoApproved="AutoApproved"}(n||(n={}))},85739:function(e,t,r){r.d(t,{p:function(){return u}});var n=r(32735),o=r(86120),a=r(94223),i=r(25796);function u(e,t){var r=o.a.useGetFetch(),u=function(r){return i.y.libraryRequests(e,t,r)},c=function(e){return r(u(e))},l=(0,a.P)(u&&function(e){return u(e).key});return n.useEffect((function(){l&&l.shouldInitialFetch&&c()}),[e,t]),Object.assign(Object.assign({},l),{fetchNext:c})}},31170:function(e,t,r){r.r(t),r.d(t,{ApproveLibraryRequestView:function(){return C}});var n=r(32735),o=r(57857),a=r(31647),i=r(86120),u=r(52076),c=r(70065),l=r(4231),s=r(83996),d=r(66703),f=r(90335),p=r(2491),y=r(22430),v=r(50997),m=r(50072),b=r(25796),h=r(85739);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var I="libraryRequests.approve",A=o.T.encloseNamespace(I);function C(e){var t,r,o,C=(r=n.useState(!1),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(r,o)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(r,o)||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.")}()),R=C[0],S=C[1],w=i.a.useGetFetch(),F=(0,p.Z)(),E=(0,h.p)(e.queryParams.sort||f.D.Newest,[m.l.Pending]),P=i.a.useBasicFetch(b.y.libraryRequest(e.libraryRequestId)),q=i.a.useBasicFetch(b.y.library(e.libraryId)),k=i.a.useBasicFetch(b.y.folder(e.folderId));function j(){!function(){var t,r,n,o,a={location:c.LZ.Popup,actionType:c.Vw.Approve,entity:c.py.LibraryRequest,workflowPhase:c.eu.Complete},i={id:P.data.id,videoId:null===(t=P.data.object)||void 0===t?void 0:t.id,requestingUserId:null===(r=P.data.sender)||void 0===r?void 0:r.id,sourceLibraryId:null===(n=P.data.sourceLibrary)||void 0===n?void 0:n.id,sourceFolderId:null===(o=P.data.sourceCategory)||void 0===o?void 0:o.id,destinationLibraryId:e.libraryId,destinationFolderId:e.folderId};u.k.logUserAction(i,a)}(),F.success(A("success"));var t=E.items.findIndex((function(t){return t.id.toString()===e.libraryRequestId.toString()})),r=E.items[t+1];a.Q.C$.trigger({application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.PENDING_REQUESTS,args:[(null==r?void 0:r.id)||""],params:e.queryParams},{replace:!0})}var L=((null===(t=E.items)||void 0===t?void 0:t.length)||E.hasCompleted)&&!!P.data&&!!q.data&&!!k.data;return n.createElement(l.G,{title:A("title"),closePopup:e.closePopup,showLoadingSpinner:!L},L&&n.createElement(n.Fragment,null,n.createElement("p",null,n.createElement(d.x,{namespace:I,phrase:"confirmation",options:{videoName:P.data.object.name,libraryName:q.data.name,folderName:k.data.name}})),n.createElement(s.u,null,n.createElement(s.u.Cancel,{onClick:e.closePopup}),n.createElement(s.u.Submit,{onClick:function(){S(!0);var t={response:m.l.Approved,metadata:{destinationLibraryId:e.libraryId,destinationCategoryId:e.folderId}};w(b.y.fulfilRequest(e.libraryRequestId,t,j,(function(e){return F.error(y.M.libraryApiError(e))}),e.closePopup))},text:A("approve"),showSpinner:R,variant:"dark"}))))}}}]);