@clickview/lite 0.0.28-dev.0 → 0.0.28-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/css/10.chunk.css +6 -0
  2. package/dist/css/14.chunk.css +4 -2
  3. package/dist/css/21.chunk.css +28 -0
  4. package/dist/css/22.chunk.css +6 -10
  5. package/dist/css/23.chunk.css +4 -16
  6. package/dist/css/24.chunk.css +13 -5
  7. package/dist/css/25.chunk.css +7 -7
  8. package/dist/css/26.chunk.css +3 -17
  9. package/dist/css/27.chunk.css +7 -7
  10. package/dist/css/28.chunk.css +5 -7
  11. package/dist/css/29.chunk.css +4 -4
  12. package/dist/css/3.chunk.css +6 -2
  13. package/dist/css/30.chunk.css +5 -9
  14. package/dist/css/31.chunk.css +2 -4
  15. package/dist/css/33.chunk.css +4 -4
  16. package/dist/css/34.chunk.css +6 -4
  17. package/dist/css/35.chunk.css +8 -0
  18. package/dist/css/36.chunk.css +4 -6
  19. package/dist/css/37.chunk.css +4 -6
  20. package/dist/css/38.chunk.css +1 -1
  21. package/dist/css/39.chunk.css +2 -6
  22. package/dist/css/4.chunk.css +4 -0
  23. package/dist/css/40.chunk.css +3 -1
  24. package/dist/css/41.chunk.css +2 -2
  25. package/dist/css/44.chunk.css +3 -3
  26. package/dist/css/45.chunk.css +3 -3
  27. package/dist/css/54.chunk.css +2 -2
  28. package/dist/css/6.chunk.css +10 -16
  29. package/dist/css/60.chunk.css +2 -0
  30. package/dist/css/64.chunk.css +4 -0
  31. package/dist/css/65.chunk.css +1 -3
  32. package/dist/css/66.chunk.css +1 -1
  33. package/dist/css/67.chunk.css +1 -1
  34. package/dist/css/7.chunk.css +19 -11
  35. package/dist/css/8.chunk.css +11 -21
  36. package/dist/css/9.chunk.css +22 -4
  37. package/dist/css/lite-app.css +2 -2
  38. package/dist/en.json +1 -1
  39. package/dist/scripts/0-b3c684b8ae.chunk.js +1 -0
  40. package/dist/scripts/{1-5ab704be8c.chunk.js → 1-a55c99853d.chunk.js} +3 -3
  41. package/dist/scripts/10-d0a6080244.chunk.js +1 -0
  42. package/dist/scripts/{11-46bf6be0e7.chunk.js → 11-d89a75ec4b.chunk.js} +1 -1
  43. package/dist/scripts/12-7422413b8d.chunk.js +1 -0
  44. package/dist/scripts/13-608cfb7432.chunk.js +1 -0
  45. package/dist/scripts/{15-56f7a61914.chunk.js → 14-86b3d0fdd7.chunk.js} +1 -1
  46. package/dist/scripts/{16-778c966e26.chunk.js → 15-e3b5214b91.chunk.js} +1 -1
  47. package/dist/scripts/{17-b77671aa5d.chunk.js → 16-569bf66336.chunk.js} +1 -1
  48. package/dist/scripts/{18-5ea1160e80.chunk.js → 17-1d324d912f.chunk.js} +1 -1
  49. package/dist/scripts/{19-698980556a.chunk.js → 18-6d89e2f7e3.chunk.js} +1 -1
  50. package/dist/scripts/{2-b6a3eaa2c9.chunk.js → 2-8c55198499.chunk.js} +1 -1
  51. package/dist/scripts/21-73bb099aa8.chunk.js +1 -0
  52. package/dist/scripts/22-1ec09d19c8.chunk.js +1 -0
  53. package/dist/scripts/23-41c16dc7d0.chunk.js +1 -0
  54. package/dist/scripts/{26-3c2dd1127e.chunk.js → 24-69c369ebd7.chunk.js} +1 -1
  55. package/dist/scripts/25-a773703aca.chunk.js +1 -0
  56. package/dist/scripts/26-d46991777e.chunk.js +1 -0
  57. package/dist/scripts/{30-33ef4ba128.chunk.js → 27-ddda368b5a.chunk.js} +1 -1
  58. package/dist/scripts/{31-65fb64c75f.chunk.js → 28-4a7e9df232.chunk.js} +1 -1
  59. package/dist/scripts/29-2355645c11.chunk.js +1 -0
  60. package/dist/scripts/3-b9149920b5.chunk.js +1 -0
  61. package/dist/scripts/30-99856ea4d3.chunk.js +1 -0
  62. package/dist/scripts/{34-2ee9644199.chunk.js → 31-48884f9a66.chunk.js} +1 -1
  63. package/dist/scripts/{35-d1491d00b0.chunk.js → 32-5c23cbf57a.chunk.js} +2 -2
  64. package/dist/scripts/{36-eab87f4dbd.chunk.js → 33-b096cf4382.chunk.js} +1 -1
  65. package/dist/scripts/34-37f504e666.chunk.js +1 -0
  66. package/dist/scripts/35-7fe949ea30.chunk.js +1 -0
  67. package/dist/scripts/36-f0ce6ee2ba.chunk.js +1 -0
  68. package/dist/scripts/{38-f1a8deba70.chunk.js → 37-34a6971c2f.chunk.js} +1 -1
  69. package/dist/scripts/{39-c061977cf5.chunk.js → 38-9aacd37122.chunk.js} +1 -1
  70. package/dist/scripts/{40-8a693e5158.chunk.js → 39-7c5d2d5397.chunk.js} +1 -1
  71. package/dist/scripts/4-7b135dd496.chunk.js +1 -0
  72. package/dist/scripts/40-afd21e46a8.chunk.js +1 -0
  73. package/dist/scripts/41-3c41eb3330.chunk.js +1 -0
  74. package/dist/scripts/{42-aa74ce6d45.chunk.js → 42-307ba340f0.chunk.js} +1 -1
  75. package/dist/scripts/{43-63967bb5ee.chunk.js → 43-b38157ea4b.chunk.js} +1 -1
  76. package/dist/scripts/44-aab99a6a6e.chunk.js +1 -0
  77. package/dist/scripts/{44-c19c0c5668.chunk.js → 45-523667df54.chunk.js} +1 -1
  78. package/dist/scripts/{46-6df277ac9a.chunk.js → 46-3462ffe899.chunk.js} +1 -1
  79. package/dist/scripts/{47-e20d0b4b92.chunk.js → 47-016ba91449.chunk.js} +1 -1
  80. package/dist/scripts/{48-1401f9ae66.chunk.js → 48-a3810d65f1.chunk.js} +1 -1
  81. package/dist/scripts/{49-dec1b5f2f2.chunk.js → 49-3ec7e0eab5.chunk.js} +1 -1
  82. package/dist/scripts/{4-74875ae3b3.chunk.js → 5-eccd2737f4.chunk.js} +1 -1
  83. package/dist/scripts/{50-cc02feb121.chunk.js → 50-1ec5e96d76.chunk.js} +1 -1
  84. package/dist/scripts/{51-778bfedea2.chunk.js → 51-60de21c5ed.chunk.js} +1 -1
  85. package/dist/scripts/{52-29f494f306.chunk.js → 52-453dfd181f.chunk.js} +1 -1
  86. package/dist/scripts/53-878edae1f4.chunk.js +7 -0
  87. package/dist/scripts/54-245b966db7.chunk.js +1 -0
  88. package/dist/scripts/{55-255a2b9c35.chunk.js → 55-feceef0637.chunk.js} +1 -1
  89. package/dist/scripts/{57-dd5502dd35.chunk.js → 56-eab430ec1b.chunk.js} +1 -1
  90. package/dist/scripts/{58-6e6e37dbef.chunk.js → 57-f5e84194d4.chunk.js} +1 -1
  91. package/dist/scripts/{59-ea19de059b.chunk.js → 58-e24e12442e.chunk.js} +1 -1
  92. package/dist/scripts/{60-bb66cc1f6b.chunk.js → 59-92a833aecb.chunk.js} +1 -1
  93. package/dist/scripts/6-11dd0f4e32.chunk.js +1 -0
  94. package/dist/scripts/60-b3a2c49afe.chunk.js +1 -0
  95. package/dist/scripts/{61-9e13cda49c.chunk.js → 61-fe427b459e.chunk.js} +1 -1
  96. package/dist/scripts/{63-7f9376c7af.chunk.js → 62-2545ed6141.chunk.js} +1 -1
  97. package/dist/scripts/{64-3c96d82c28.chunk.js → 63-36fa60a8b7.chunk.js} +1 -1
  98. package/dist/scripts/{65-48bd4a3311.chunk.js → 64-c83e681436.chunk.js} +1 -1
  99. package/dist/scripts/{66-165916040a.chunk.js → 65-6cf18960ce.chunk.js} +1 -1
  100. package/dist/scripts/{67-857f8a47ea.chunk.js → 66-ec44132ff2.chunk.js} +1 -1
  101. package/dist/scripts/{68-f2dd92ea46.chunk.js → 67-74a17f6d6c.chunk.js} +1 -1
  102. package/dist/scripts/{69-39cfb379c9.chunk.js → 68-87a07f45d3.chunk.js} +1 -1
  103. package/dist/scripts/{70-5491535179.chunk.js → 69-c8f70c386a.chunk.js} +1 -1
  104. package/dist/scripts/7-5b01b34d99.chunk.js +1 -0
  105. package/dist/scripts/{71-a2af93cebd.chunk.js → 70-3f12582a7c.chunk.js} +1 -1
  106. package/dist/scripts/{72-2c18f0edec.chunk.js → 71-49c9d5b496.chunk.js} +1 -1
  107. package/dist/scripts/{73-02347f66be.chunk.js → 72-1702691541.chunk.js} +1 -1
  108. package/dist/scripts/{74-01ea9d5ba2.chunk.js → 73-519cfcc2e4.chunk.js} +1 -1
  109. package/dist/scripts/{75-a3ad12300f.chunk.js → 74-6c032f040c.chunk.js} +1 -1
  110. package/dist/scripts/{76-c9ad299788.chunk.js → 75-1d006e5559.chunk.js} +1 -1
  111. package/dist/scripts/76-42d2d4bb4e.chunk.js +1 -0
  112. package/dist/scripts/77-3117f6891c.chunk.js +1 -0
  113. package/dist/scripts/{79-6cdba55806.chunk.js → 78-1b8272c652.chunk.js} +1 -1
  114. package/dist/scripts/{80-5ffdae5997.chunk.js → 79-8392d1853f.chunk.js} +1 -1
  115. package/dist/scripts/{7-6bc86c390c.chunk.js → 8-f67212d5ba.chunk.js} +6 -6
  116. package/dist/scripts/80-ac1ec326c7.chunk.js +1 -0
  117. package/dist/scripts/{82-bc6b5615d9.chunk.js → 81-194324fc96.chunk.js} +1 -1
  118. package/dist/scripts/{83-de8ac7b15e.chunk.js → 82-c7984fd2b5.chunk.js} +1 -1
  119. package/dist/scripts/{84-3a0ccd3b43.chunk.js → 83-7bf3ae5433.chunk.js} +1 -1
  120. package/dist/scripts/{85-39a88520c3.chunk.js → 84-9fe609b85d.chunk.js} +1 -1
  121. package/dist/scripts/{86-0367f7e913.chunk.js → 85-b5ccfbc4a5.chunk.js} +1 -1
  122. package/dist/scripts/{87-bf9e34313e.chunk.js → 86-7ba657fb50.chunk.js} +1 -1
  123. package/dist/scripts/9-74be527908.chunk.js +1 -0
  124. package/dist/scripts/bundle-447944edb9.min.js +36 -0
  125. package/dist/scripts/bundles.json +2 -2
  126. package/dist/scripts/polyfills-62b44123b2.min.js +1 -0
  127. package/package.json +1 -1
  128. package/typings/libs/gapi.d.ts +74 -0
  129. package/dist/css/15.chunk.css +0 -6
  130. package/dist/css/32.chunk.css +0 -12
  131. package/dist/css/5.chunk.css +0 -26
  132. package/dist/css/53.chunk.css +0 -4
  133. package/dist/css/62.chunk.css +0 -2
  134. package/dist/css/68.chunk.css +0 -2
  135. package/dist/scripts/0-8344a618b1.chunk.js +0 -1
  136. package/dist/scripts/10-3efa3405f9.chunk.js +0 -1
  137. package/dist/scripts/12-a37328fbac.chunk.js +0 -1
  138. package/dist/scripts/13-125d8cc016.chunk.js +0 -1
  139. package/dist/scripts/14-c7e28e0fc0.chunk.js +0 -1
  140. package/dist/scripts/22-c13ba8ff8b.chunk.js +0 -1
  141. package/dist/scripts/23-fda378d126.chunk.js +0 -1
  142. package/dist/scripts/24-80503f9f4e.chunk.js +0 -1
  143. package/dist/scripts/25-94b0f9a5ec.chunk.js +0 -1
  144. package/dist/scripts/27-91772748ee.chunk.js +0 -1
  145. package/dist/scripts/28-de561ff0b9.chunk.js +0 -1
  146. package/dist/scripts/29-99b3c50268.chunk.js +0 -1
  147. package/dist/scripts/3-5a94c86758.chunk.js +0 -1
  148. package/dist/scripts/32-94713a7200.chunk.js +0 -1
  149. package/dist/scripts/33-7a6b65dbd3.chunk.js +0 -1
  150. package/dist/scripts/37-5b3491f19e.chunk.js +0 -1
  151. package/dist/scripts/41-e793f88e97.chunk.js +0 -1
  152. package/dist/scripts/45-d6fa5173e5.chunk.js +0 -1
  153. package/dist/scripts/5-d556098c8a.chunk.js +0 -1
  154. package/dist/scripts/53-a9bc158a41.chunk.js +0 -1
  155. package/dist/scripts/54-816fa8e470.chunk.js +0 -1
  156. package/dist/scripts/56-a0f00f10ee.chunk.js +0 -7
  157. package/dist/scripts/6-344847c3f9.chunk.js +0 -1
  158. package/dist/scripts/62-c2a51737e8.chunk.js +0 -1
  159. package/dist/scripts/77-ea3f39d264.chunk.js +0 -1
  160. package/dist/scripts/78-29e6185866.chunk.js +0 -1
  161. package/dist/scripts/8-1336cf0460.chunk.js +0 -1
  162. package/dist/scripts/81-2c423062ad.chunk.js +0 -1
  163. package/dist/scripts/9-dc8e47297c.chunk.js +0 -1
  164. package/dist/scripts/bundle-3ae13ebc0d.min.js +0 -36
  165. package/dist/scripts/polyfills-3fce809c08.min.js +0 -1
  166. /package/dist/css/{17.chunk.css → 16.chunk.css} +0 -0
  167. /package/dist/css/{57.chunk.css → 56.chunk.css} +0 -0
  168. /package/dist/css/{71.chunk.css → 70.chunk.css} +0 -0
@@ -1,4 +1,4 @@
1
- (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[1],{1167:function(e,t,r){"use strict";var n=r(0),o=r(1537),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===u}(e)}(e)};var u="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function l(e,t,r){return e.concat(t).map((function(e){return c(e,r)}))}function s(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||l,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]=c(e[t],r)})),Object.keys(t).forEach((function(o){r.isMergeableObject(t[o])&&e[o]?n[o]=s(e[o],t[o],r):n[o]=c(t[o],r)})),n}(e,t,r):c(t,r)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return s(e,r,t)}),{})};var f=s,p=r(1229),v=p.a.Symbol,d=Object.prototype,y=d.hasOwnProperty,b=d.toString,h=v?v.toStringTag:void 0;var m=function(e){var t=y.call(e,h),r=e[h];try{e[h]=void 0;var n=!0}catch(e){}var o=b.call(e);return n&&(t?e[h]=r:delete e[h]),o},j=Object.prototype.toString;var _=function(e){return j.call(e)},O=v?v.toStringTag:void 0;var g=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":O&&O in Object(e)?m(e):_(e)};var S=function(e,t){return function(r){return e(t(r))}},E=S(Object.getPrototypeOf,Object);var w=function(e){return null!=e&&"object"==typeof e},T=Function.prototype,A=Object.prototype,k=T.toString,F=A.hasOwnProperty,P=k.call(Object);var R=function(e){if(!w(e)||"[object Object]"!=g(e))return!1;var t=E(e);if(null===t)return!0;var r=F.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&k.call(r)==P};var x=function(){this.__data__=[],this.size=0};var C=function(e,t){return e===t||e!=e&&t!=t};var M=function(e,t){for(var r=e.length;r--;)if(C(e[r][0],t))return r;return-1},I=Array.prototype.splice;var U=function(e){var t=this.__data__,r=M(t,e);return!(r<0)&&(r==t.length-1?t.pop():I.call(t,r,1),--this.size,!0)};var D=function(e){var t=this.__data__,r=M(t,e);return r<0?void 0:t[r][1]};var $=function(e){return M(this.__data__,e)>-1};var L=function(e,t){var r=this.__data__,n=M(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function V(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])}}V.prototype.clear=x,V.prototype.delete=U,V.prototype.get=D,V.prototype.has=$,V.prototype.set=L;var B=V;var z=function(){this.__data__=new B,this.size=0};var N=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var W=function(e){return this.__data__.get(e)};var G=function(e){return this.__data__.has(e)};var H=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var q,K=function(e){if(!H(e))return!1;var t=g(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Y=p.a["__core-js_shared__"],J=(q=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"";var Q=function(e){return!!J&&J in e},X=Function.prototype.toString;var Z=function(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ee=/^\[object .+?Constructor\]$/,te=Function.prototype,re=Object.prototype,ne=te.toString,oe=re.hasOwnProperty,ae=RegExp("^"+ne.call(oe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ie=function(e){return!(!H(e)||Q(e))&&(K(e)?ae:ee).test(Z(e))};var ue=function(e,t){return null==e?void 0:e[t]};var ce=function(e,t){var r=ue(e,t);return ie(r)?r:void 0},le=ce(p.a,"Map"),se=ce(Object,"create");var fe=function(){this.__data__=se?se(null):{},this.size=0};var pe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ve=Object.prototype.hasOwnProperty;var de=function(e){var t=this.__data__;if(se){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ve.call(t,e)?t[e]:void 0},ye=Object.prototype.hasOwnProperty;var be=function(e){var t=this.__data__;return se?void 0!==t[e]:ye.call(t,e)};var he=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=se&&void 0===t?"__lodash_hash_undefined__":t,this};function me(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])}}me.prototype.clear=fe,me.prototype.delete=pe,me.prototype.get=de,me.prototype.has=be,me.prototype.set=he;var je=me;var _e=function(){this.size=0,this.__data__={hash:new je,map:new(le||B),string:new je}};var Oe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var ge=function(e,t){var r=e.__data__;return Oe(t)?r["string"==typeof t?"string":"hash"]:r.map};var Se=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t};var Ee=function(e){return ge(this,e).get(e)};var we=function(e){return ge(this,e).has(e)};var Te=function(e,t){var r=ge(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};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=_e,Ae.prototype.delete=Se,Ae.prototype.get=Ee,Ae.prototype.has=we,Ae.prototype.set=Te;var ke=Ae;var Fe=function(e,t){var r=this.__data__;if(r instanceof B){var n=r.__data__;if(!le||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ke(n)}return r.set(e,t),this.size=r.size,this};function Pe(e){var t=this.__data__=new B(e);this.size=t.size}Pe.prototype.clear=z,Pe.prototype.delete=N,Pe.prototype.get=W,Pe.prototype.has=G,Pe.prototype.set=Fe;var Re=Pe;var xe=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},Ce=function(){try{var e=ce(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Me=function(e,t,r){"__proto__"==t&&Ce?Ce(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},Ie=Object.prototype.hasOwnProperty;var Ue=function(e,t,r){var n=e[t];Ie.call(e,t)&&C(n,r)&&(void 0!==r||t in e)||Me(e,t,r)};var De=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var u=t[a],c=n?n(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),o?Me(r,u,c):Ue(r,u,c)}return r};var $e=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var Le=function(e){return w(e)&&"[object Arguments]"==g(e)},Ve=Object.prototype,Be=Ve.hasOwnProperty,ze=Ve.propertyIsEnumerable,Ne=Le(function(){return arguments}())?Le:function(e){return w(e)&&Be.call(e,"callee")&&!ze.call(e,"callee")},We=Array.isArray,Ge=r(1431),He=/^(?:0|[1-9]\d*)$/;var qe=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&He.test(e))&&e>-1&&e%1==0&&e<t};var Ke=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ye={};Ye["[object Float32Array]"]=Ye["[object Float64Array]"]=Ye["[object Int8Array]"]=Ye["[object Int16Array]"]=Ye["[object Int32Array]"]=Ye["[object Uint8Array]"]=Ye["[object Uint8ClampedArray]"]=Ye["[object Uint16Array]"]=Ye["[object Uint32Array]"]=!0,Ye["[object Arguments]"]=Ye["[object Array]"]=Ye["[object ArrayBuffer]"]=Ye["[object Boolean]"]=Ye["[object DataView]"]=Ye["[object Date]"]=Ye["[object Error]"]=Ye["[object Function]"]=Ye["[object Map]"]=Ye["[object Number]"]=Ye["[object Object]"]=Ye["[object RegExp]"]=Ye["[object Set]"]=Ye["[object String]"]=Ye["[object WeakMap]"]=!1;var Je=function(e){return w(e)&&Ke(e.length)&&!!Ye[g(e)]};var Qe=function(e){return function(t){return e(t)}},Xe=r(1354),Ze=Xe.a&&Xe.a.isTypedArray,et=Ze?Qe(Ze):Je,tt=Object.prototype.hasOwnProperty;var rt=function(e,t){var r=We(e),n=!r&&Ne(e),o=!r&&!n&&Object(Ge.a)(e),a=!r&&!n&&!o&&et(e),i=r||n||o||a,u=i?$e(e.length,String):[],c=u.length;for(var l in e)!t&&!tt.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||qe(l,c))||u.push(l);return u},nt=Object.prototype;var ot=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||nt)},at=S(Object.keys,Object),it=Object.prototype.hasOwnProperty;var ut=function(e){if(!ot(e))return at(e);var t=[];for(var r in Object(e))it.call(e,r)&&"constructor"!=r&&t.push(r);return t};var ct=function(e){return null!=e&&Ke(e.length)&&!K(e)};var lt=function(e){return ct(e)?rt(e):ut(e)};var st=function(e,t){return e&&De(t,lt(t),e)};var ft=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},pt=Object.prototype.hasOwnProperty;var vt=function(e){if(!H(e))return ft(e);var t=ot(e),r=[];for(var n in e)("constructor"!=n||!t&&pt.call(e,n))&&r.push(n);return r};var dt=function(e){return ct(e)?rt(e,!0):vt(e)};var yt=function(e,t){return e&&De(t,dt(t),e)},bt=r(1544);var ht=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var mt=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};var jt=function(){return[]},_t=Object.prototype.propertyIsEnumerable,Ot=Object.getOwnPropertySymbols,gt=Ot?function(e){return null==e?[]:(e=Object(e),mt(Ot(e),(function(t){return _t.call(e,t)})))}:jt;var St=function(e,t){return De(e,gt(e),t)};var Et=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},wt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Et(t,gt(e)),e=E(e);return t}:jt;var Tt=function(e,t){return De(e,wt(e),t)};var At=function(e,t,r){var n=t(e);return We(e)?n:Et(n,r(e))};var kt=function(e){return At(e,lt,gt)};var Ft=function(e){return At(e,dt,wt)},Pt=ce(p.a,"DataView"),Rt=ce(p.a,"Promise"),xt=ce(p.a,"Set"),Ct=ce(p.a,"WeakMap"),Mt=Z(Pt),It=Z(le),Ut=Z(Rt),Dt=Z(xt),$t=Z(Ct),Lt=g;(Pt&&"[object DataView]"!=Lt(new Pt(new ArrayBuffer(1)))||le&&"[object Map]"!=Lt(new le)||Rt&&"[object Promise]"!=Lt(Rt.resolve())||xt&&"[object Set]"!=Lt(new xt)||Ct&&"[object WeakMap]"!=Lt(new Ct))&&(Lt=function(e){var t=g(e),r="[object Object]"==t?e.constructor:void 0,n=r?Z(r):"";if(n)switch(n){case Mt:return"[object DataView]";case It:return"[object Map]";case Ut:return"[object Promise]";case Dt:return"[object Set]";case $t:return"[object WeakMap]"}return t});var Vt=Lt,Bt=Object.prototype.hasOwnProperty;var zt=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Bt.call(e,"index")&&(r.index=e.index,r.input=e.input),r},Nt=p.a.Uint8Array;var Wt=function(e){var t=new e.constructor(e.byteLength);return new Nt(t).set(new Nt(e)),t};var Gt=function(e,t){var r=t?Wt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},Ht=/\w*$/;var qt=function(e){var t=new e.constructor(e.source,Ht.exec(e));return t.lastIndex=e.lastIndex,t},Kt=v?v.prototype:void 0,Yt=Kt?Kt.valueOf:void 0;var Jt=function(e){return Yt?Object(Yt.call(e)):{}};var Qt=function(e,t){var r=t?Wt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};var Xt=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return Wt(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return Gt(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 Qt(e,r);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return qt(e);case"[object Set]":return new n;case"[object Symbol]":return Jt(e)}},Zt=Object.create,er=function(){function e(){}return function(t){if(!H(t))return{};if(Zt)return Zt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var tr=function(e){return"function"!=typeof e.constructor||ot(e)?{}:er(E(e))};var rr=function(e){return w(e)&&"[object Map]"==Vt(e)},nr=Xe.a&&Xe.a.isMap,or=nr?Qe(nr):rr;var ar=function(e){return w(e)&&"[object Set]"==Vt(e)},ir=Xe.a&&Xe.a.isSet,ur=ir?Qe(ir):ar,cr={};cr["[object Arguments]"]=cr["[object Array]"]=cr["[object ArrayBuffer]"]=cr["[object DataView]"]=cr["[object Boolean]"]=cr["[object Date]"]=cr["[object Float32Array]"]=cr["[object Float64Array]"]=cr["[object Int8Array]"]=cr["[object Int16Array]"]=cr["[object Int32Array]"]=cr["[object Map]"]=cr["[object Number]"]=cr["[object Object]"]=cr["[object RegExp]"]=cr["[object Set]"]=cr["[object String]"]=cr["[object Symbol]"]=cr["[object Uint8Array]"]=cr["[object Uint8ClampedArray]"]=cr["[object Uint16Array]"]=cr["[object Uint32Array]"]=!0,cr["[object Error]"]=cr["[object Function]"]=cr["[object WeakMap]"]=!1;var lr=function e(t,r,n,o,a,i){var u,c=1&r,l=2&r,s=4&r;if(n&&(u=a?n(t,o,a,i):n(t)),void 0!==u)return u;if(!H(t))return t;var f=We(t);if(f){if(u=zt(t),!c)return ht(t,u)}else{var p=Vt(t),v="[object Function]"==p||"[object GeneratorFunction]"==p;if(Object(Ge.a)(t))return Object(bt.a)(t,c);if("[object Object]"==p||"[object Arguments]"==p||v&&!a){if(u=l||v?{}:tr(t),!c)return l?Tt(t,yt(u,t)):St(t,st(u,t))}else{if(!cr[p])return a?t:{};u=Xt(t,p,c)}}i||(i=new Re);var d=i.get(t);if(d)return d;i.set(t,u),ur(t)?t.forEach((function(o){u.add(e(o,r,n,o,t,i))})):or(t)&&t.forEach((function(o,a){u.set(a,e(o,r,n,a,t,i))}));var y=s?l?Ft:kt:l?keysIn:lt,b=f?void 0:y(t);return xe(b||t,(function(o,a){b&&(o=t[a=o]),Ue(u,a,e(o,r,n,a,t,i))})),u};var sr=function(e){return lr(e,4)};var fr=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};var pr=function(e){return"symbol"==typeof e||w(e)&&"[object Symbol]"==g(e)};function vr(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(vr.Cache||ke),r}vr.Cache=ke;var dr=vr;var yr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,br=/\\(\\)?/g,hr=function(e){var t=dr(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(yr,(function(e,r,n,o){t.push(n?o.replace(br,"$1"):r||e)})),t}));var mr=function(e){if("string"==typeof e||pr(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},jr=v?v.prototype:void 0,_r=jr?jr.toString:void 0;var Or=function e(t){if("string"==typeof t)return t;if(We(t))return fr(t,e)+"";if(pr(t))return _r?_r.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};var gr=function(e){return null==e?"":Or(e)};var Sr=function(e){return We(e)?fr(e,mr):pr(e)?[e]:ht(hr(gr(e)))};var Er=function(e,t){},wr=r(1538),Tr=r(1540),Ar=r.n(Tr);var kr=function(e){return lr(e,5)};function Fr(){return(Fr=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}).apply(this,arguments)}function Pr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Rr(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 xr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return un})),r.d(t,"b",(function(){return en})),r.d(t,"c",(function(){return tn})),r.d(t,"d",(function(){return Jr})),r.d(t,"e",(function(){return Lr})),r.d(t,"f",(function(){return Gr}));var Cr=function(e){return"function"==typeof e},Mr=function(e){return null!==e&&"object"==typeof e},Ir=function(e){return String(Math.floor(Number(e)))===e},Ur=function(e){return"[object String]"===Object.prototype.toString.call(e)},Dr=function(e){return 0===n.Children.count(e)},$r=function(e){return Mr(e)&&Cr(e.then)};function Lr(e,t,r,n){void 0===n&&(n=0);for(var o=Sr(t);e&&n<o.length;)e=e[o[n++]];return void 0===e?r:e}function Vr(e,t,r){for(var n=sr(e),o=n,a=0,i=Sr(t);a<i.length-1;a++){var u=i[a],c=Lr(e,i.slice(0,a+1));if(c&&(Mr(c)||Array.isArray(c)))o=o[u]=sr(c);else{var l=i[a+1];o=o[u]=Ir(l)&&Number(l)>=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 Br(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],u=e[i];Mr(u)?r.get(u)||(r.set(u,!0),n[i]=Array.isArray(u)?[]:{},Br(u,t,r,n[i])):n[i]=t}return n}var zr=Object(n.createContext)(void 0),Nr=zr.Provider,Wr=zr.Consumer;function Gr(){var e=Object(n.useContext)(zr);return e||Er(!1),e}function Hr(e,t){switch(t.type){case"SET_VALUES":return Fr({},e,{values:t.payload});case"SET_TOUCHED":return Fr({},e,{touched:t.payload});case"SET_ERRORS":return Fr({},e,{errors:t.payload});case"SET_STATUS":return Fr({},e,{status:t.payload});case"SET_ISSUBMITTING":return Fr({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Fr({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Fr({},e,{values:Vr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Fr({},e,{touched:Vr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Fr({},e,{errors:Vr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Fr({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Fr({},e,{touched:Br(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Fr({},e,{isSubmitting:!1});default:return e}}var qr={},Kr={};function Yr(e){var t=e.validateOnChange,r=void 0===t||t,o=e.validateOnBlur,i=void 0===o||o,u=e.validateOnMount,c=void 0!==u&&u,l=e.isInitialValid,s=e.enableReinitialize,p=void 0!==s&&s,v=e.onSubmit,d=Rr(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),y=Fr({validateOnChange:r,validateOnBlur:i,validateOnMount:c,onSubmit:v},d),b=Object(n.useRef)(y.initialValues),h=Object(n.useRef)(y.initialErrors||qr),m=Object(n.useRef)(y.initialTouched||Kr),j=Object(n.useRef)(y.initialStatus),_=Object(n.useRef)(!1),O=Object(n.useRef)({});Object(n.useEffect)((function(){0}),[]),Object(n.useEffect)((function(){return _.current=!0,function(){_.current=!1}}),[]);var g=Object(n.useReducer)(Hr,{values:y.initialValues,errors:y.initialErrors||qr,touched:y.initialTouched||Kr,status:y.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),S=g[0],E=g[1],w=Object(n.useCallback)((function(e,t){return new Promise((function(r,n){var o=y.validate(e,t);null==o?r(qr):$r(o)?o.then((function(e){r(e||qr)}),(function(e){n(e)})):r(o)}))}),[y.validate]),T=Object(n.useCallback)((function(e,t){var r=y.validationSchema,n=Cr(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=function e(t){var r={};for(var n in t)if(t.hasOwnProperty(n)){var o=String(n);!0===Array.isArray(t[o])?r[o]=t[o].map((function(t){return!0===Array.isArray(t)||R(t)?e(t):""!==t?t:void 0})):R(t[o])?r[o]=e(t[o]):r[o]=""!==t[o]?t[o]:void 0}return r}(e);return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:n})}(e,n);return new Promise((function(e,t){o.then((function(){e(qr)}),(function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Vr(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;Lr(t,i.path)||(t=Vr(t,i.path,i.message))}}return t}(r)):t(r)}))}))}),[y.validationSchema]),A=Object(n.useCallback)((function(e,t){return new Promise((function(r){return r(O.current[e].validate(t))}))}),[]),k=Object(n.useCallback)((function(e){var t=Object.keys(O.current).filter((function(e){return Cr(O.current[e].validate)})),r=t.length>0?t.map((function(t){return A(t,Lr(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=Vr(e,t[n],r)),e}),{})}))}),[A]),F=Object(n.useCallback)((function(e){return Promise.all([k(e),y.validationSchema?T(e):{},y.validate?w(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return f.all([t,r,n],{arrayMerge:Qr})}))}),[y.validate,y.validationSchema,k,w,T]),P=Zr((function(e){return void 0===e&&(e=S.values),Object(wr.unstable_runWithPriority)(wr.LowPriority,(function(){return F(e).then((function(e){return _.current&&E({type:"SET_ERRORS",payload:e}),e}))}))})),x=Zr((function(e){return void 0===e&&(e=S.values),E({type:"SET_ISVALIDATING",payload:!0}),F(e).then((function(e){return _.current&&(E({type:"SET_ISVALIDATING",payload:!1}),a()(S.errors,e)||E({type:"SET_ERRORS",payload:e})),e}))}));Object(n.useEffect)((function(){c&&!0===_.current&&P(y.initialValues)}),[y.initialValues,c,P]);var C=Object(n.useCallback)((function(e){var t=e&&e.values?e.values:b.current,r=e&&e.errors?e.errors:h.current?h.current:y.initialErrors||{},n=e&&e.touched?e.touched:m.current?m.current:y.initialTouched||{},o=e&&e.status?e.status:j.current?j.current:y.initialStatus;b.current=t,h.current=r,m.current=n,j.current=o,E({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}})}),[y.initialErrors,y.initialStatus,y.initialTouched]);Object(n.useEffect)((function(){p&&!0===_.current&&!a()(b.current,y.initialValues)&&(b.current=y.initialValues,C())}),[p,y.initialValues,C]),Object(n.useEffect)((function(){p&&!0===_.current&&!a()(h.current,y.initialErrors)&&(h.current=y.initialErrors||qr,E({type:"SET_ERRORS",payload:y.initialErrors||qr}))}),[p,y.initialErrors]),Object(n.useEffect)((function(){p&&!0===_.current&&!a()(m.current,y.initialTouched)&&(m.current=y.initialTouched||Kr,E({type:"SET_TOUCHED",payload:y.initialTouched||Kr}))}),[p,y.initialTouched]),Object(n.useEffect)((function(){p&&!0===_.current&&!a()(j.current,y.initialStatus)&&(j.current=y.initialStatus,E({type:"SET_STATUS",payload:y.initialStatus}))}),[p,y.initialStatus,y.initialTouched]);var M=Zr((function(e){if(Cr(O.current[e].validate)){var t=Lr(S.values,e),r=O.current[e].validate(t);return $r(r)?(E({type:"SET_ISVALIDATING",payload:!0}),r.then((function(e){return e})).then((function(t){E({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),E({type:"SET_ISVALIDATING",payload:!1})}))):(E({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return Promise.resolve()})),I=Object(n.useCallback)((function(e,t){var r=t.validate;O.current[e]={validate:r}}),[]),U=Object(n.useCallback)((function(e){delete O.current[e]}),[]),D=Zr((function(e){return E({type:"SET_TOUCHED",payload:e}),i?P(S.values):Promise.resolve()})),$=Object(n.useCallback)((function(e){E({type:"SET_ERRORS",payload:e})}),[]),L=Zr((function(e){return E({type:"SET_VALUES",payload:e}),r?P(e):Promise.resolve()})),V=Object(n.useCallback)((function(e,t){E({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),B=Zr((function(e,t,n){return void 0===n&&(n=!0),E({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),r&&n?P(Vr(S.values,e,t)):Promise.resolve()})),z=Object(n.useCallback)((function(e,t){var r,n=t,o=e;if(!Ur(e)){e.persist&&e.persist();var a=e.target,i=a.type,u=a.name,c=a.id,l=a.value,s=a.checked,f=(a.outerHTML,a.options),p=a.multiple;n=t||(u||c),o=/number|range/.test(i)?(r=parseFloat(l),isNaN(r)?"":r):/checkbox/.test(i)?function(e,t,r){if("true"==r||"false"==r)return!!t;if(t&&r)return Array.isArray(e)?e.concat(r):[r];if(!Array.isArray(e))return!e;var n=e.indexOf(r);if(n<0)return e;return e.slice(0,n).concat(e.slice(n+1))}(Lr(S.values,n),s,l):p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(f):l}n&&B(n,o)}),[B,S.values]),N=Object(n.useCallback)((function(e){if(Ur(e))return function(t){return z(t,e)};z(e)}),[z]),W=Zr((function(e,t,r){return void 0===t&&(t=!0),void 0===r&&(r=!0),E({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),i&&r?P(S.values):Promise.resolve()})),G=Object(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));W(a,!0)}),[W]),H=Object(n.useCallback)((function(e){if(Ur(e))return function(t){return G(t,e)};G(e)}),[G]),q=Object(n.useCallback)((function(e){Cr(e)?E({type:"SET_FORMIK_STATE",payload:e}):E({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),K=Object(n.useCallback)((function(e){E({type:"SET_STATUS",payload:e})}),[]),Y=Object(n.useCallback)((function(e){E({type:"SET_ISSUBMITTING",payload:e})}),[]),J={resetForm:C,validateForm:x,validateField:M,setErrors:$,setFieldError:V,setFieldTouched:W,setFieldValue:B,setStatus:K,setSubmitting:Y,setTouched:D,setValues:L,setFormikState:q},Q=Zr((function(){return v(S.values,J)})),X=Zr((function(){return E({type:"SUBMIT_ATTEMPT"}),x().then((function(e){if(0===Object.keys(e).length){var t=Q();if(void 0===t)return;return Promise.resolve(t).then((function(){_.current&&E({type:"SUBMIT_SUCCESS"})})).catch((function(e){if(_.current)throw E({type:"SUBMIT_FAILURE"}),e}))}_.current&&E({type:"SUBMIT_FAILURE"})}))})),Z=Zr((function(e){e&&e.preventDefault&&Cr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Cr(e.stopPropagation)&&e.stopPropagation(),X()})),ee=Zr((function(e){if(e&&e.preventDefault&&Cr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Cr(e.stopPropagation)&&e.stopPropagation(),y.onReset){var t=y.onReset(S.values,J);$r(t)?t.then(C):C()}else C()})),te=Object(n.useCallback)((function(e){return{value:Lr(S.values,e),error:Lr(S.errors,e),touched:!!Lr(S.touched,e),initialValue:Lr(b.current,e),initialTouched:!!Lr(m.current,e),initialError:Lr(h.current,e)}}),[S.errors,S.touched,S.values]),re=Object(n.useCallback)((function(e){var t=Mr(e),r=t?e.name:e,n=Lr(S.values,r),o={name:r,value:n,onChange:N,onBlur:H};if(t){var a=e.type,i=e.value,u=e.as,c=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"===u&&c&&(o.value=o.value||[],o.multiple=!0)}return o}),[H,N,S.values]),ne=Object(n.useMemo)((function(){return!a()(b.current,S.values)}),[S.values]),oe=Object(n.useMemo)((function(){return void 0!==l?ne?S.errors&&0===Object.keys(S.errors).length:!1!==l&&Cr(l)?l(y):l:S.errors&&0===Object.keys(S.errors).length}),[l,ne,S.errors,y]);return Fr({},S,{initialValues:b.current,initialErrors:h.current,initialTouched:m.current,initialStatus:j.current,handleBlur:H,handleChange:N,handleReset:ee,handleSubmit:Z,resetForm:C,setErrors:$,setFormikState:q,setFieldTouched:W,setFieldValue:B,setFieldError:V,setStatus:K,setSubmitting:Y,setTouched:D,setValues:L,submitForm:X,validateForm:x,validateField:M,isValid:oe,dirty:ne,unregisterField:U,registerField:I,getFieldProps:re,getFieldMeta:te,validateOnBlur:i,validateOnChange:r,validateOnMount:c})}function Jr(e){var t=Yr(e),r=e.component,o=e.children,a=e.render;return Object(n.useEffect)((function(){0}),[]),Object(n.createElement)(Nr,{value:t},r?Object(n.createElement)(r,t):a?a(t):o?Cr(o)?o(t):Dr(o)?null:n.Children.only(o):null)}function Qr(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 Xr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function Zr(e){var t=Object(n.useRef)(e);return Xr((function(){t.current=e})),Object(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 en(e){var t=e.validate,r=e.name,o=e.render,a=e.children,i=e.as,u=e.component,c=Rr(e,["validate","name","render","children","as","component"]),l=Gr(),s=(l.validate,l.validationSchema,Rr(l,["validate","validationSchema"]));Object(n.useEffect)((function(){0}),[]);var f=s.registerField,p=s.unregisterField;Object(n.useEffect)((function(){return f(r,{validate:t}),function(){p(r)}}),[f,p,r,t]);var v=s.getFieldProps(Fr({name:r},c)),d=s.getFieldMeta(r),y={field:v,form:s};if(o)return o(Fr({},y,{meta:d}));if(Cr(a))return a(Fr({},y,{meta:d}));if(u){if("string"==typeof u){var b=c.innerRef,h=Rr(c,["innerRef"]);return Object(n.createElement)(u,Fr({ref:b},v,h),a)}return Object(n.createElement)(u,Fr({field:v,form:s},c),a)}var m=i||"input";if("string"==typeof m){var j=c.innerRef,_=Rr(c,["innerRef"]);return Object(n.createElement)(m,Fr({ref:j},v,_),a)}return Object(n.createElement)(m,Fr({},v,c),a)}var tn=Object(n.forwardRef)((function(e,t){var r=e.action,o=Rr(e,["action"]),a=r||"#",i=Gr(),u=i.handleReset,c=i.handleSubmit;return Object(n.createElement)("form",Object.assign({onSubmit:c,ref:t,onReset:u,action:a},o))}));function rn(e){var t=function(t){return Object(n.createElement)(Wr,null,(function(r){return r||Er(!1),Object(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+")",Ar()(t,e)}tn.displayName="Form";var nn=function(e,t,r){var n=on(e);return n.splice(t,0,r),n},on=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(Fr({},e,{length:t+1}))}return[]},an=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,i=o.validateOnChange,u=o.formik,c=u.setFormikState,l=u.validateForm;c((function(r){var o="function"==typeof n?n:e,i="function"==typeof t?t:e;return Fr({},r,{values:Vr(r.values,a,e(Lr(r.values,a))),errors:n?Vr(r.errors,a,o(Lr(r.errors,a))):r.errors,touched:t?Vr(r.touched,a,i(Lr(r.touched,a))):r.touched})}),(function(){i&&l()}))},r.push=function(e){return r.updateArrayField((function(t){return[].concat(on(t),[kr(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=on(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=on(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 nn(r,e,t)}),(function(t){return nn(t,e,null)}),(function(t){return nn(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=on(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(xr(r)),r.pop=r.pop.bind(xr(r)),r}Pr(t,e);var r=t.prototype;return r.remove=function(e){var t;return this.updateArrayField((function(r){var n=r?on(r):[];return t||(t=n[e]),Cr(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,u=t.formik,c=(u.validate,u.validationSchema,Fr({},e,{form:Rr(u,["validate","validationSchema"]),name:i}));return r?Object(n.createElement)(r,c):o?o(c):a?"function"==typeof a?a(c):Dr(a)?null:n.Children.only(a):null},t}(n.Component);an.defaultProps={validateOnChange:!0};var un=rn(function(e){function t(){return e.apply(this,arguments)||this}Pr(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return Lr(this.props.formik.errors,this.props.name)!==Lr(e.formik.errors,this.props.name)||Lr(this.props.formik.touched,this.props.name)!==Lr(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,u=Rr(e,["component","formik","render","children","name"]),c=Lr(r.touched,i),l=Lr(r.errors,i);return c&&l?o?Cr(o)?o(l):null:a?Cr(a)?a(l):null:t?Object(n.createElement)(t,u,l):l:null},t}(n.Component));(function(e){function t(t){var r;r=e.call(this,t)||this;var n=t.render,o=t.children,a=t.component,i=t.as;t.name;return n&&Er(!1),a&&n&&Er(!1),i&&o&&Cr(o)&&Er(!1),a&&o&&Cr(o)&&Er(!1),n&&o&&!Dr(o)&&Er(!1),r}Pr(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e,t,r){return this.props.shouldUpdate?this.props.shouldUpdate(e,this.props):Lr(this.context.values,this.props.name)!==Lr(r.values,this.props.name)||Lr(this.context.errors,this.props.name)!==Lr(r.errors,this.props.name)||Lr(this.context.touched,this.props.name)!==Lr(r.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length||this.context.isSubmitting!==r.isSubmitting},r.componentDidMount=function(){this.context.registerField(this.props.name,{validate:this.props.validate})},r.componentDidUpdate=function(e){this.props.name!==e.name&&(this.context.unregisterField(e.name),this.context.registerField(this.props.name,{validate:this.props.validate})),this.props.validate!==e.validate&&this.context.registerField(this.props.name,{validate:this.props.validate})},r.componentWillUnmount=function(){this.context.unregisterField(this.props.name)},r.render=function(){var e=this.props,t=(e.validate,e.name),r=e.render,o=e.as,a=e.children,i=e.component,u=(e.shouldUpdate,Rr(e,["validate","name","render","as","children","component","shouldUpdate"])),c=this.context,l=(c.validate,c.validationSchema,Rr(c,["validate","validationSchema"])),s={value:"radio"===u.type||"checkbox"===u.type?u.value:Lr(c.values,t),name:t,onChange:c.handleChange,onBlur:c.handleBlur},f={field:s,meta:{value:Lr(c.values,t),error:Lr(c.errors,t),touched:!!Lr(c.touched,t),initialValue:Lr(c.initialValues,t),initialTouched:!!Lr(c.initialTouched,t),initialError:Lr(c.initialErrors,t)},form:l};if(r)return r(f);if(Cr(a))return a(f);if(i){if("string"==typeof i){var p=u.innerRef,v=Rr(u,["innerRef"]);return Object(n.createElement)(i,Fr({ref:p},s,v),a)}return Object(n.createElement)(i,Fr({field:s,form:c},u),a)}var d=o||"input";if("string"==typeof d){var y=u.innerRef,b=Rr(u,["innerRef"]);return Object(n.createElement)(d,Fr({ref:y},s,b),a)}return Object(n.createElement)(d,Fr({},s,u),a)},t}(n.Component)).contextType=zr},1229:function(e,t,r){"use strict";var n=r(1430),o="object"==typeof self&&self&&self.Object===Object&&self,a=n.a||o||Function("return this")();t.a=a},1353:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},1354:function(e,t,r){"use strict";(function(e){var n=r(1430),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&n.a.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();t.a=u}).call(this,r(1353)(e))},1430:function(e,t,r){"use strict";(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.a=r}).call(this,r(100))},1431:function(e,t,r){"use strict";(function(e){var n=r(1229),o=r(1543),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,u=i&&i.exports===a?n.a.Buffer:void 0,c=(u?u.isBuffer:void 0)||o.a;t.a=c}).call(this,r(1353)(e))},1537:function(e,t,r){"use strict";var n=Array.isArray,o=Object.keys,a=Object.prototype.hasOwnProperty,i="undefined"!=typeof Element;e.exports=function(e,t){try{return function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){var u,c,l,s=n(t),f=n(r);if(s&&f){if((c=t.length)!=r.length)return!1;for(u=c;0!=u--;)if(!e(t[u],r[u]))return!1;return!0}if(s!=f)return!1;var p=t instanceof Date,v=r instanceof Date;if(p!=v)return!1;if(p&&v)return t.getTime()==r.getTime();var d=t instanceof RegExp,y=r instanceof RegExp;if(d!=y)return!1;if(d&&y)return t.toString()==r.toString();var b=o(t);if((c=b.length)!==o(r).length)return!1;for(u=c;0!=u--;)if(!a.call(r,b[u]))return!1;if(i&&t instanceof Element&&r instanceof Element)return t===r;for(u=c;0!=u--;)if(!("_owner"===(l=b[u])&&t.$$typeof||e(t[l],r[l])))return!1;return!0}return t!=t&&r!=r}(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}}},1538:function(e,t,r){"use strict";e.exports=r(1539)},1539:function(e,t,r){"use strict";
1
+ (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[1],{1171:function(e,t,r){"use strict";var n=r(0),o=r(1541),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===u}(e)}(e)};var u="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function l(e,t,r){return e.concat(t).map((function(e){return c(e,r)}))}function s(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||l,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]=c(e[t],r)})),Object.keys(t).forEach((function(o){r.isMergeableObject(t[o])&&e[o]?n[o]=s(e[o],t[o],r):n[o]=c(t[o],r)})),n}(e,t,r):c(t,r)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return s(e,r,t)}),{})};var f=s,p=r(1227),v=p.a.Symbol,d=Object.prototype,y=d.hasOwnProperty,b=d.toString,h=v?v.toStringTag:void 0;var m=function(e){var t=y.call(e,h),r=e[h];try{e[h]=void 0;var n=!0}catch(e){}var o=b.call(e);return n&&(t?e[h]=r:delete e[h]),o},j=Object.prototype.toString;var _=function(e){return j.call(e)},O=v?v.toStringTag:void 0;var g=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":O&&O in Object(e)?m(e):_(e)};var S=function(e,t){return function(r){return e(t(r))}},E=S(Object.getPrototypeOf,Object);var w=function(e){return null!=e&&"object"==typeof e},T=Function.prototype,A=Object.prototype,k=T.toString,F=A.hasOwnProperty,P=k.call(Object);var R=function(e){if(!w(e)||"[object Object]"!=g(e))return!1;var t=E(e);if(null===t)return!0;var r=F.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&k.call(r)==P};var x=function(){this.__data__=[],this.size=0};var C=function(e,t){return e===t||e!=e&&t!=t};var M=function(e,t){for(var r=e.length;r--;)if(C(e[r][0],t))return r;return-1},I=Array.prototype.splice;var U=function(e){var t=this.__data__,r=M(t,e);return!(r<0)&&(r==t.length-1?t.pop():I.call(t,r,1),--this.size,!0)};var D=function(e){var t=this.__data__,r=M(t,e);return r<0?void 0:t[r][1]};var $=function(e){return M(this.__data__,e)>-1};var L=function(e,t){var r=this.__data__,n=M(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function V(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])}}V.prototype.clear=x,V.prototype.delete=U,V.prototype.get=D,V.prototype.has=$,V.prototype.set=L;var B=V;var z=function(){this.__data__=new B,this.size=0};var N=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var W=function(e){return this.__data__.get(e)};var G=function(e){return this.__data__.has(e)};var H=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var q,K=function(e){if(!H(e))return!1;var t=g(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Y=p.a["__core-js_shared__"],J=(q=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"";var Q=function(e){return!!J&&J in e},X=Function.prototype.toString;var Z=function(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ee=/^\[object .+?Constructor\]$/,te=Function.prototype,re=Object.prototype,ne=te.toString,oe=re.hasOwnProperty,ae=RegExp("^"+ne.call(oe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ie=function(e){return!(!H(e)||Q(e))&&(K(e)?ae:ee).test(Z(e))};var ue=function(e,t){return null==e?void 0:e[t]};var ce=function(e,t){var r=ue(e,t);return ie(r)?r:void 0},le=ce(p.a,"Map"),se=ce(Object,"create");var fe=function(){this.__data__=se?se(null):{},this.size=0};var pe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ve=Object.prototype.hasOwnProperty;var de=function(e){var t=this.__data__;if(se){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ve.call(t,e)?t[e]:void 0},ye=Object.prototype.hasOwnProperty;var be=function(e){var t=this.__data__;return se?void 0!==t[e]:ye.call(t,e)};var he=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=se&&void 0===t?"__lodash_hash_undefined__":t,this};function me(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])}}me.prototype.clear=fe,me.prototype.delete=pe,me.prototype.get=de,me.prototype.has=be,me.prototype.set=he;var je=me;var _e=function(){this.size=0,this.__data__={hash:new je,map:new(le||B),string:new je}};var Oe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var ge=function(e,t){var r=e.__data__;return Oe(t)?r["string"==typeof t?"string":"hash"]:r.map};var Se=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t};var Ee=function(e){return ge(this,e).get(e)};var we=function(e){return ge(this,e).has(e)};var Te=function(e,t){var r=ge(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};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=_e,Ae.prototype.delete=Se,Ae.prototype.get=Ee,Ae.prototype.has=we,Ae.prototype.set=Te;var ke=Ae;var Fe=function(e,t){var r=this.__data__;if(r instanceof B){var n=r.__data__;if(!le||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ke(n)}return r.set(e,t),this.size=r.size,this};function Pe(e){var t=this.__data__=new B(e);this.size=t.size}Pe.prototype.clear=z,Pe.prototype.delete=N,Pe.prototype.get=W,Pe.prototype.has=G,Pe.prototype.set=Fe;var Re=Pe;var xe=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},Ce=function(){try{var e=ce(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Me=function(e,t,r){"__proto__"==t&&Ce?Ce(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},Ie=Object.prototype.hasOwnProperty;var Ue=function(e,t,r){var n=e[t];Ie.call(e,t)&&C(n,r)&&(void 0!==r||t in e)||Me(e,t,r)};var De=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var u=t[a],c=n?n(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),o?Me(r,u,c):Ue(r,u,c)}return r};var $e=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var Le=function(e){return w(e)&&"[object Arguments]"==g(e)},Ve=Object.prototype,Be=Ve.hasOwnProperty,ze=Ve.propertyIsEnumerable,Ne=Le(function(){return arguments}())?Le:function(e){return w(e)&&Be.call(e,"callee")&&!ze.call(e,"callee")},We=Array.isArray,Ge=r(1439),He=/^(?:0|[1-9]\d*)$/;var qe=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&He.test(e))&&e>-1&&e%1==0&&e<t};var Ke=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ye={};Ye["[object Float32Array]"]=Ye["[object Float64Array]"]=Ye["[object Int8Array]"]=Ye["[object Int16Array]"]=Ye["[object Int32Array]"]=Ye["[object Uint8Array]"]=Ye["[object Uint8ClampedArray]"]=Ye["[object Uint16Array]"]=Ye["[object Uint32Array]"]=!0,Ye["[object Arguments]"]=Ye["[object Array]"]=Ye["[object ArrayBuffer]"]=Ye["[object Boolean]"]=Ye["[object DataView]"]=Ye["[object Date]"]=Ye["[object Error]"]=Ye["[object Function]"]=Ye["[object Map]"]=Ye["[object Number]"]=Ye["[object Object]"]=Ye["[object RegExp]"]=Ye["[object Set]"]=Ye["[object String]"]=Ye["[object WeakMap]"]=!1;var Je=function(e){return w(e)&&Ke(e.length)&&!!Ye[g(e)]};var Qe=function(e){return function(t){return e(t)}},Xe=r(1364),Ze=Xe.a&&Xe.a.isTypedArray,et=Ze?Qe(Ze):Je,tt=Object.prototype.hasOwnProperty;var rt=function(e,t){var r=We(e),n=!r&&Ne(e),o=!r&&!n&&Object(Ge.a)(e),a=!r&&!n&&!o&&et(e),i=r||n||o||a,u=i?$e(e.length,String):[],c=u.length;for(var l in e)!t&&!tt.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||qe(l,c))||u.push(l);return u},nt=Object.prototype;var ot=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||nt)},at=S(Object.keys,Object),it=Object.prototype.hasOwnProperty;var ut=function(e){if(!ot(e))return at(e);var t=[];for(var r in Object(e))it.call(e,r)&&"constructor"!=r&&t.push(r);return t};var ct=function(e){return null!=e&&Ke(e.length)&&!K(e)};var lt=function(e){return ct(e)?rt(e):ut(e)};var st=function(e,t){return e&&De(t,lt(t),e)};var ft=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},pt=Object.prototype.hasOwnProperty;var vt=function(e){if(!H(e))return ft(e);var t=ot(e),r=[];for(var n in e)("constructor"!=n||!t&&pt.call(e,n))&&r.push(n);return r};var dt=function(e){return ct(e)?rt(e,!0):vt(e)};var yt=function(e,t){return e&&De(t,dt(t),e)},bt=r(1548);var ht=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var mt=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};var jt=function(){return[]},_t=Object.prototype.propertyIsEnumerable,Ot=Object.getOwnPropertySymbols,gt=Ot?function(e){return null==e?[]:(e=Object(e),mt(Ot(e),(function(t){return _t.call(e,t)})))}:jt;var St=function(e,t){return De(e,gt(e),t)};var Et=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},wt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Et(t,gt(e)),e=E(e);return t}:jt;var Tt=function(e,t){return De(e,wt(e),t)};var At=function(e,t,r){var n=t(e);return We(e)?n:Et(n,r(e))};var kt=function(e){return At(e,lt,gt)};var Ft=function(e){return At(e,dt,wt)},Pt=ce(p.a,"DataView"),Rt=ce(p.a,"Promise"),xt=ce(p.a,"Set"),Ct=ce(p.a,"WeakMap"),Mt=Z(Pt),It=Z(le),Ut=Z(Rt),Dt=Z(xt),$t=Z(Ct),Lt=g;(Pt&&"[object DataView]"!=Lt(new Pt(new ArrayBuffer(1)))||le&&"[object Map]"!=Lt(new le)||Rt&&"[object Promise]"!=Lt(Rt.resolve())||xt&&"[object Set]"!=Lt(new xt)||Ct&&"[object WeakMap]"!=Lt(new Ct))&&(Lt=function(e){var t=g(e),r="[object Object]"==t?e.constructor:void 0,n=r?Z(r):"";if(n)switch(n){case Mt:return"[object DataView]";case It:return"[object Map]";case Ut:return"[object Promise]";case Dt:return"[object Set]";case $t:return"[object WeakMap]"}return t});var Vt=Lt,Bt=Object.prototype.hasOwnProperty;var zt=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Bt.call(e,"index")&&(r.index=e.index,r.input=e.input),r},Nt=p.a.Uint8Array;var Wt=function(e){var t=new e.constructor(e.byteLength);return new Nt(t).set(new Nt(e)),t};var Gt=function(e,t){var r=t?Wt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},Ht=/\w*$/;var qt=function(e){var t=new e.constructor(e.source,Ht.exec(e));return t.lastIndex=e.lastIndex,t},Kt=v?v.prototype:void 0,Yt=Kt?Kt.valueOf:void 0;var Jt=function(e){return Yt?Object(Yt.call(e)):{}};var Qt=function(e,t){var r=t?Wt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};var Xt=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return Wt(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return Gt(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 Qt(e,r);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return qt(e);case"[object Set]":return new n;case"[object Symbol]":return Jt(e)}},Zt=Object.create,er=function(){function e(){}return function(t){if(!H(t))return{};if(Zt)return Zt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var tr=function(e){return"function"!=typeof e.constructor||ot(e)?{}:er(E(e))};var rr=function(e){return w(e)&&"[object Map]"==Vt(e)},nr=Xe.a&&Xe.a.isMap,or=nr?Qe(nr):rr;var ar=function(e){return w(e)&&"[object Set]"==Vt(e)},ir=Xe.a&&Xe.a.isSet,ur=ir?Qe(ir):ar,cr={};cr["[object Arguments]"]=cr["[object Array]"]=cr["[object ArrayBuffer]"]=cr["[object DataView]"]=cr["[object Boolean]"]=cr["[object Date]"]=cr["[object Float32Array]"]=cr["[object Float64Array]"]=cr["[object Int8Array]"]=cr["[object Int16Array]"]=cr["[object Int32Array]"]=cr["[object Map]"]=cr["[object Number]"]=cr["[object Object]"]=cr["[object RegExp]"]=cr["[object Set]"]=cr["[object String]"]=cr["[object Symbol]"]=cr["[object Uint8Array]"]=cr["[object Uint8ClampedArray]"]=cr["[object Uint16Array]"]=cr["[object Uint32Array]"]=!0,cr["[object Error]"]=cr["[object Function]"]=cr["[object WeakMap]"]=!1;var lr=function e(t,r,n,o,a,i){var u,c=1&r,l=2&r,s=4&r;if(n&&(u=a?n(t,o,a,i):n(t)),void 0!==u)return u;if(!H(t))return t;var f=We(t);if(f){if(u=zt(t),!c)return ht(t,u)}else{var p=Vt(t),v="[object Function]"==p||"[object GeneratorFunction]"==p;if(Object(Ge.a)(t))return Object(bt.a)(t,c);if("[object Object]"==p||"[object Arguments]"==p||v&&!a){if(u=l||v?{}:tr(t),!c)return l?Tt(t,yt(u,t)):St(t,st(u,t))}else{if(!cr[p])return a?t:{};u=Xt(t,p,c)}}i||(i=new Re);var d=i.get(t);if(d)return d;i.set(t,u),ur(t)?t.forEach((function(o){u.add(e(o,r,n,o,t,i))})):or(t)&&t.forEach((function(o,a){u.set(a,e(o,r,n,a,t,i))}));var y=s?l?Ft:kt:l?keysIn:lt,b=f?void 0:y(t);return xe(b||t,(function(o,a){b&&(o=t[a=o]),Ue(u,a,e(o,r,n,a,t,i))})),u};var sr=function(e){return lr(e,4)};var fr=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};var pr=function(e){return"symbol"==typeof e||w(e)&&"[object Symbol]"==g(e)};function vr(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(vr.Cache||ke),r}vr.Cache=ke;var dr=vr;var yr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,br=/\\(\\)?/g,hr=function(e){var t=dr(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(yr,(function(e,r,n,o){t.push(n?o.replace(br,"$1"):r||e)})),t}));var mr=function(e){if("string"==typeof e||pr(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},jr=v?v.prototype:void 0,_r=jr?jr.toString:void 0;var Or=function e(t){if("string"==typeof t)return t;if(We(t))return fr(t,e)+"";if(pr(t))return _r?_r.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};var gr=function(e){return null==e?"":Or(e)};var Sr=function(e){return We(e)?fr(e,mr):pr(e)?[e]:ht(hr(gr(e)))};var Er=function(e,t){},wr=r(1542),Tr=r(1544),Ar=r.n(Tr);var kr=function(e){return lr(e,5)};function Fr(){return(Fr=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}).apply(this,arguments)}function Pr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Rr(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 xr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return un})),r.d(t,"b",(function(){return en})),r.d(t,"c",(function(){return tn})),r.d(t,"d",(function(){return Jr})),r.d(t,"e",(function(){return Lr})),r.d(t,"f",(function(){return Gr}));var Cr=function(e){return"function"==typeof e},Mr=function(e){return null!==e&&"object"==typeof e},Ir=function(e){return String(Math.floor(Number(e)))===e},Ur=function(e){return"[object String]"===Object.prototype.toString.call(e)},Dr=function(e){return 0===n.Children.count(e)},$r=function(e){return Mr(e)&&Cr(e.then)};function Lr(e,t,r,n){void 0===n&&(n=0);for(var o=Sr(t);e&&n<o.length;)e=e[o[n++]];return void 0===e?r:e}function Vr(e,t,r){for(var n=sr(e),o=n,a=0,i=Sr(t);a<i.length-1;a++){var u=i[a],c=Lr(e,i.slice(0,a+1));if(c&&(Mr(c)||Array.isArray(c)))o=o[u]=sr(c);else{var l=i[a+1];o=o[u]=Ir(l)&&Number(l)>=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 Br(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],u=e[i];Mr(u)?r.get(u)||(r.set(u,!0),n[i]=Array.isArray(u)?[]:{},Br(u,t,r,n[i])):n[i]=t}return n}var zr=Object(n.createContext)(void 0),Nr=zr.Provider,Wr=zr.Consumer;function Gr(){var e=Object(n.useContext)(zr);return e||Er(!1),e}function Hr(e,t){switch(t.type){case"SET_VALUES":return Fr({},e,{values:t.payload});case"SET_TOUCHED":return Fr({},e,{touched:t.payload});case"SET_ERRORS":return Fr({},e,{errors:t.payload});case"SET_STATUS":return Fr({},e,{status:t.payload});case"SET_ISSUBMITTING":return Fr({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Fr({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Fr({},e,{values:Vr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Fr({},e,{touched:Vr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Fr({},e,{errors:Vr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Fr({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Fr({},e,{touched:Br(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Fr({},e,{isSubmitting:!1});default:return e}}var qr={},Kr={};function Yr(e){var t=e.validateOnChange,r=void 0===t||t,o=e.validateOnBlur,i=void 0===o||o,u=e.validateOnMount,c=void 0!==u&&u,l=e.isInitialValid,s=e.enableReinitialize,p=void 0!==s&&s,v=e.onSubmit,d=Rr(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),y=Fr({validateOnChange:r,validateOnBlur:i,validateOnMount:c,onSubmit:v},d),b=Object(n.useRef)(y.initialValues),h=Object(n.useRef)(y.initialErrors||qr),m=Object(n.useRef)(y.initialTouched||Kr),j=Object(n.useRef)(y.initialStatus),_=Object(n.useRef)(!1),O=Object(n.useRef)({});Object(n.useEffect)((function(){0}),[]),Object(n.useEffect)((function(){return _.current=!0,function(){_.current=!1}}),[]);var g=Object(n.useReducer)(Hr,{values:y.initialValues,errors:y.initialErrors||qr,touched:y.initialTouched||Kr,status:y.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),S=g[0],E=g[1],w=Object(n.useCallback)((function(e,t){return new Promise((function(r,n){var o=y.validate(e,t);null==o?r(qr):$r(o)?o.then((function(e){r(e||qr)}),(function(e){n(e)})):r(o)}))}),[y.validate]),T=Object(n.useCallback)((function(e,t){var r=y.validationSchema,n=Cr(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=function e(t){var r={};for(var n in t)if(t.hasOwnProperty(n)){var o=String(n);!0===Array.isArray(t[o])?r[o]=t[o].map((function(t){return!0===Array.isArray(t)||R(t)?e(t):""!==t?t:void 0})):R(t[o])?r[o]=e(t[o]):r[o]=""!==t[o]?t[o]:void 0}return r}(e);return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:n})}(e,n);return new Promise((function(e,t){o.then((function(){e(qr)}),(function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Vr(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;Lr(t,i.path)||(t=Vr(t,i.path,i.message))}}return t}(r)):t(r)}))}))}),[y.validationSchema]),A=Object(n.useCallback)((function(e,t){return new Promise((function(r){return r(O.current[e].validate(t))}))}),[]),k=Object(n.useCallback)((function(e){var t=Object.keys(O.current).filter((function(e){return Cr(O.current[e].validate)})),r=t.length>0?t.map((function(t){return A(t,Lr(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=Vr(e,t[n],r)),e}),{})}))}),[A]),F=Object(n.useCallback)((function(e){return Promise.all([k(e),y.validationSchema?T(e):{},y.validate?w(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return f.all([t,r,n],{arrayMerge:Qr})}))}),[y.validate,y.validationSchema,k,w,T]),P=Zr((function(e){return void 0===e&&(e=S.values),Object(wr.unstable_runWithPriority)(wr.LowPriority,(function(){return F(e).then((function(e){return _.current&&E({type:"SET_ERRORS",payload:e}),e}))}))})),x=Zr((function(e){return void 0===e&&(e=S.values),E({type:"SET_ISVALIDATING",payload:!0}),F(e).then((function(e){return _.current&&(E({type:"SET_ISVALIDATING",payload:!1}),a()(S.errors,e)||E({type:"SET_ERRORS",payload:e})),e}))}));Object(n.useEffect)((function(){c&&!0===_.current&&P(y.initialValues)}),[y.initialValues,c,P]);var C=Object(n.useCallback)((function(e){var t=e&&e.values?e.values:b.current,r=e&&e.errors?e.errors:h.current?h.current:y.initialErrors||{},n=e&&e.touched?e.touched:m.current?m.current:y.initialTouched||{},o=e&&e.status?e.status:j.current?j.current:y.initialStatus;b.current=t,h.current=r,m.current=n,j.current=o,E({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}})}),[y.initialErrors,y.initialStatus,y.initialTouched]);Object(n.useEffect)((function(){p&&!0===_.current&&!a()(b.current,y.initialValues)&&(b.current=y.initialValues,C())}),[p,y.initialValues,C]),Object(n.useEffect)((function(){p&&!0===_.current&&!a()(h.current,y.initialErrors)&&(h.current=y.initialErrors||qr,E({type:"SET_ERRORS",payload:y.initialErrors||qr}))}),[p,y.initialErrors]),Object(n.useEffect)((function(){p&&!0===_.current&&!a()(m.current,y.initialTouched)&&(m.current=y.initialTouched||Kr,E({type:"SET_TOUCHED",payload:y.initialTouched||Kr}))}),[p,y.initialTouched]),Object(n.useEffect)((function(){p&&!0===_.current&&!a()(j.current,y.initialStatus)&&(j.current=y.initialStatus,E({type:"SET_STATUS",payload:y.initialStatus}))}),[p,y.initialStatus,y.initialTouched]);var M=Zr((function(e){if(Cr(O.current[e].validate)){var t=Lr(S.values,e),r=O.current[e].validate(t);return $r(r)?(E({type:"SET_ISVALIDATING",payload:!0}),r.then((function(e){return e})).then((function(t){E({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),E({type:"SET_ISVALIDATING",payload:!1})}))):(E({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return Promise.resolve()})),I=Object(n.useCallback)((function(e,t){var r=t.validate;O.current[e]={validate:r}}),[]),U=Object(n.useCallback)((function(e){delete O.current[e]}),[]),D=Zr((function(e){return E({type:"SET_TOUCHED",payload:e}),i?P(S.values):Promise.resolve()})),$=Object(n.useCallback)((function(e){E({type:"SET_ERRORS",payload:e})}),[]),L=Zr((function(e){return E({type:"SET_VALUES",payload:e}),r?P(e):Promise.resolve()})),V=Object(n.useCallback)((function(e,t){E({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),B=Zr((function(e,t,n){return void 0===n&&(n=!0),E({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),r&&n?P(Vr(S.values,e,t)):Promise.resolve()})),z=Object(n.useCallback)((function(e,t){var r,n=t,o=e;if(!Ur(e)){e.persist&&e.persist();var a=e.target,i=a.type,u=a.name,c=a.id,l=a.value,s=a.checked,f=(a.outerHTML,a.options),p=a.multiple;n=t||(u||c),o=/number|range/.test(i)?(r=parseFloat(l),isNaN(r)?"":r):/checkbox/.test(i)?function(e,t,r){if("true"==r||"false"==r)return!!t;if(t&&r)return Array.isArray(e)?e.concat(r):[r];if(!Array.isArray(e))return!e;var n=e.indexOf(r);if(n<0)return e;return e.slice(0,n).concat(e.slice(n+1))}(Lr(S.values,n),s,l):p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(f):l}n&&B(n,o)}),[B,S.values]),N=Object(n.useCallback)((function(e){if(Ur(e))return function(t){return z(t,e)};z(e)}),[z]),W=Zr((function(e,t,r){return void 0===t&&(t=!0),void 0===r&&(r=!0),E({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),i&&r?P(S.values):Promise.resolve()})),G=Object(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));W(a,!0)}),[W]),H=Object(n.useCallback)((function(e){if(Ur(e))return function(t){return G(t,e)};G(e)}),[G]),q=Object(n.useCallback)((function(e){Cr(e)?E({type:"SET_FORMIK_STATE",payload:e}):E({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),K=Object(n.useCallback)((function(e){E({type:"SET_STATUS",payload:e})}),[]),Y=Object(n.useCallback)((function(e){E({type:"SET_ISSUBMITTING",payload:e})}),[]),J={resetForm:C,validateForm:x,validateField:M,setErrors:$,setFieldError:V,setFieldTouched:W,setFieldValue:B,setStatus:K,setSubmitting:Y,setTouched:D,setValues:L,setFormikState:q},Q=Zr((function(){return v(S.values,J)})),X=Zr((function(){return E({type:"SUBMIT_ATTEMPT"}),x().then((function(e){if(0===Object.keys(e).length){var t=Q();if(void 0===t)return;return Promise.resolve(t).then((function(){_.current&&E({type:"SUBMIT_SUCCESS"})})).catch((function(e){if(_.current)throw E({type:"SUBMIT_FAILURE"}),e}))}_.current&&E({type:"SUBMIT_FAILURE"})}))})),Z=Zr((function(e){e&&e.preventDefault&&Cr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Cr(e.stopPropagation)&&e.stopPropagation(),X()})),ee=Zr((function(e){if(e&&e.preventDefault&&Cr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Cr(e.stopPropagation)&&e.stopPropagation(),y.onReset){var t=y.onReset(S.values,J);$r(t)?t.then(C):C()}else C()})),te=Object(n.useCallback)((function(e){return{value:Lr(S.values,e),error:Lr(S.errors,e),touched:!!Lr(S.touched,e),initialValue:Lr(b.current,e),initialTouched:!!Lr(m.current,e),initialError:Lr(h.current,e)}}),[S.errors,S.touched,S.values]),re=Object(n.useCallback)((function(e){var t=Mr(e),r=t?e.name:e,n=Lr(S.values,r),o={name:r,value:n,onChange:N,onBlur:H};if(t){var a=e.type,i=e.value,u=e.as,c=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"===u&&c&&(o.value=o.value||[],o.multiple=!0)}return o}),[H,N,S.values]),ne=Object(n.useMemo)((function(){return!a()(b.current,S.values)}),[S.values]),oe=Object(n.useMemo)((function(){return void 0!==l?ne?S.errors&&0===Object.keys(S.errors).length:!1!==l&&Cr(l)?l(y):l:S.errors&&0===Object.keys(S.errors).length}),[l,ne,S.errors,y]);return Fr({},S,{initialValues:b.current,initialErrors:h.current,initialTouched:m.current,initialStatus:j.current,handleBlur:H,handleChange:N,handleReset:ee,handleSubmit:Z,resetForm:C,setErrors:$,setFormikState:q,setFieldTouched:W,setFieldValue:B,setFieldError:V,setStatus:K,setSubmitting:Y,setTouched:D,setValues:L,submitForm:X,validateForm:x,validateField:M,isValid:oe,dirty:ne,unregisterField:U,registerField:I,getFieldProps:re,getFieldMeta:te,validateOnBlur:i,validateOnChange:r,validateOnMount:c})}function Jr(e){var t=Yr(e),r=e.component,o=e.children,a=e.render;return Object(n.useEffect)((function(){0}),[]),Object(n.createElement)(Nr,{value:t},r?Object(n.createElement)(r,t):a?a(t):o?Cr(o)?o(t):Dr(o)?null:n.Children.only(o):null)}function Qr(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 Xr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function Zr(e){var t=Object(n.useRef)(e);return Xr((function(){t.current=e})),Object(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 en(e){var t=e.validate,r=e.name,o=e.render,a=e.children,i=e.as,u=e.component,c=Rr(e,["validate","name","render","children","as","component"]),l=Gr(),s=(l.validate,l.validationSchema,Rr(l,["validate","validationSchema"]));Object(n.useEffect)((function(){0}),[]);var f=s.registerField,p=s.unregisterField;Object(n.useEffect)((function(){return f(r,{validate:t}),function(){p(r)}}),[f,p,r,t]);var v=s.getFieldProps(Fr({name:r},c)),d=s.getFieldMeta(r),y={field:v,form:s};if(o)return o(Fr({},y,{meta:d}));if(Cr(a))return a(Fr({},y,{meta:d}));if(u){if("string"==typeof u){var b=c.innerRef,h=Rr(c,["innerRef"]);return Object(n.createElement)(u,Fr({ref:b},v,h),a)}return Object(n.createElement)(u,Fr({field:v,form:s},c),a)}var m=i||"input";if("string"==typeof m){var j=c.innerRef,_=Rr(c,["innerRef"]);return Object(n.createElement)(m,Fr({ref:j},v,_),a)}return Object(n.createElement)(m,Fr({},v,c),a)}var tn=Object(n.forwardRef)((function(e,t){var r=e.action,o=Rr(e,["action"]),a=r||"#",i=Gr(),u=i.handleReset,c=i.handleSubmit;return Object(n.createElement)("form",Object.assign({onSubmit:c,ref:t,onReset:u,action:a},o))}));function rn(e){var t=function(t){return Object(n.createElement)(Wr,null,(function(r){return r||Er(!1),Object(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+")",Ar()(t,e)}tn.displayName="Form";var nn=function(e,t,r){var n=on(e);return n.splice(t,0,r),n},on=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(Fr({},e,{length:t+1}))}return[]},an=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,i=o.validateOnChange,u=o.formik,c=u.setFormikState,l=u.validateForm;c((function(r){var o="function"==typeof n?n:e,i="function"==typeof t?t:e;return Fr({},r,{values:Vr(r.values,a,e(Lr(r.values,a))),errors:n?Vr(r.errors,a,o(Lr(r.errors,a))):r.errors,touched:t?Vr(r.touched,a,i(Lr(r.touched,a))):r.touched})}),(function(){i&&l()}))},r.push=function(e){return r.updateArrayField((function(t){return[].concat(on(t),[kr(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=on(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=on(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 nn(r,e,t)}),(function(t){return nn(t,e,null)}),(function(t){return nn(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=on(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(xr(r)),r.pop=r.pop.bind(xr(r)),r}Pr(t,e);var r=t.prototype;return r.remove=function(e){var t;return this.updateArrayField((function(r){var n=r?on(r):[];return t||(t=n[e]),Cr(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,u=t.formik,c=(u.validate,u.validationSchema,Fr({},e,{form:Rr(u,["validate","validationSchema"]),name:i}));return r?Object(n.createElement)(r,c):o?o(c):a?"function"==typeof a?a(c):Dr(a)?null:n.Children.only(a):null},t}(n.Component);an.defaultProps={validateOnChange:!0};var un=rn(function(e){function t(){return e.apply(this,arguments)||this}Pr(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return Lr(this.props.formik.errors,this.props.name)!==Lr(e.formik.errors,this.props.name)||Lr(this.props.formik.touched,this.props.name)!==Lr(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,u=Rr(e,["component","formik","render","children","name"]),c=Lr(r.touched,i),l=Lr(r.errors,i);return c&&l?o?Cr(o)?o(l):null:a?Cr(a)?a(l):null:t?Object(n.createElement)(t,u,l):l:null},t}(n.Component));(function(e){function t(t){var r;r=e.call(this,t)||this;var n=t.render,o=t.children,a=t.component,i=t.as;t.name;return n&&Er(!1),a&&n&&Er(!1),i&&o&&Cr(o)&&Er(!1),a&&o&&Cr(o)&&Er(!1),n&&o&&!Dr(o)&&Er(!1),r}Pr(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e,t,r){return this.props.shouldUpdate?this.props.shouldUpdate(e,this.props):Lr(this.context.values,this.props.name)!==Lr(r.values,this.props.name)||Lr(this.context.errors,this.props.name)!==Lr(r.errors,this.props.name)||Lr(this.context.touched,this.props.name)!==Lr(r.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length||this.context.isSubmitting!==r.isSubmitting},r.componentDidMount=function(){this.context.registerField(this.props.name,{validate:this.props.validate})},r.componentDidUpdate=function(e){this.props.name!==e.name&&(this.context.unregisterField(e.name),this.context.registerField(this.props.name,{validate:this.props.validate})),this.props.validate!==e.validate&&this.context.registerField(this.props.name,{validate:this.props.validate})},r.componentWillUnmount=function(){this.context.unregisterField(this.props.name)},r.render=function(){var e=this.props,t=(e.validate,e.name),r=e.render,o=e.as,a=e.children,i=e.component,u=(e.shouldUpdate,Rr(e,["validate","name","render","as","children","component","shouldUpdate"])),c=this.context,l=(c.validate,c.validationSchema,Rr(c,["validate","validationSchema"])),s={value:"radio"===u.type||"checkbox"===u.type?u.value:Lr(c.values,t),name:t,onChange:c.handleChange,onBlur:c.handleBlur},f={field:s,meta:{value:Lr(c.values,t),error:Lr(c.errors,t),touched:!!Lr(c.touched,t),initialValue:Lr(c.initialValues,t),initialTouched:!!Lr(c.initialTouched,t),initialError:Lr(c.initialErrors,t)},form:l};if(r)return r(f);if(Cr(a))return a(f);if(i){if("string"==typeof i){var p=u.innerRef,v=Rr(u,["innerRef"]);return Object(n.createElement)(i,Fr({ref:p},s,v),a)}return Object(n.createElement)(i,Fr({field:s,form:c},u),a)}var d=o||"input";if("string"==typeof d){var y=u.innerRef,b=Rr(u,["innerRef"]);return Object(n.createElement)(d,Fr({ref:y},s,b),a)}return Object(n.createElement)(d,Fr({},s,u),a)},t}(n.Component)).contextType=zr},1227:function(e,t,r){"use strict";var n=r(1438),o="object"==typeof self&&self&&self.Object===Object&&self,a=n.a||o||Function("return this")();t.a=a},1363:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},1364:function(e,t,r){"use strict";(function(e){var n=r(1438),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&n.a.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();t.a=u}).call(this,r(1363)(e))},1438:function(e,t,r){"use strict";(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.a=r}).call(this,r(101))},1439:function(e,t,r){"use strict";(function(e){var n=r(1227),o=r(1547),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,u=i&&i.exports===a?n.a.Buffer:void 0,c=(u?u.isBuffer:void 0)||o.a;t.a=c}).call(this,r(1363)(e))},1541:function(e,t,r){"use strict";var n=Array.isArray,o=Object.keys,a=Object.prototype.hasOwnProperty,i="undefined"!=typeof Element;e.exports=function(e,t){try{return function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){var u,c,l,s=n(t),f=n(r);if(s&&f){if((c=t.length)!=r.length)return!1;for(u=c;0!=u--;)if(!e(t[u],r[u]))return!1;return!0}if(s!=f)return!1;var p=t instanceof Date,v=r instanceof Date;if(p!=v)return!1;if(p&&v)return t.getTime()==r.getTime();var d=t instanceof RegExp,y=r instanceof RegExp;if(d!=y)return!1;if(d&&y)return t.toString()==r.toString();var b=o(t);if((c=b.length)!==o(r).length)return!1;for(u=c;0!=u--;)if(!a.call(r,b[u]))return!1;if(i&&t instanceof Element&&r instanceof Element)return t===r;for(u=c;0!=u--;)if(!("_owner"===(l=b[u])&&t.$$typeof||e(t[l],r[l])))return!1;return!0}return t!=t&&r!=r}(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}}},1542:function(e,t,r){"use strict";e.exports=r(1543)},1543:function(e,t,r){"use strict";
2
2
  /** @license React v0.17.0
3
3
  * scheduler.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var n,o,a,i,u;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,l=null,s=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(s,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(s,0))},o=function(e,t){l=setTimeout(e,t)},a=function(){clearTimeout(l)},i=function(){return!1},u=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,v=window.Date,d=window.setTimeout,y=window.clearTimeout,b=window.requestAnimationFrame,h=window.cancelAnimationFrame;if("undefined"!=typeof console&&("function"!=typeof b&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),"object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var m=v.now();t.unstable_now=function(){return v.now()-m}}var j=!1,_=null,O=-1,g=5,S=0;i=function(){return t.unstable_now()>=S},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):g=0<e?Math.floor(1e3/e):33.33};var E=new MessageChannel,w=E.port2;E.port1.onmessage=function(){if(null!==_){var e=t.unstable_now();S=e+g;try{_(!0,e)?w.postMessage(null):(j=!1,_=null)}catch(e){throw w.postMessage(null),e}}else j=!1},n=function(e){_=e,j||(j=!0,w.postMessage(null))},o=function(e,r){O=d((function(){e(t.unstable_now())}),r)},a=function(){y(O),O=-1}}function T(e,t){var r=e.length;e.push(t);e:for(;;){var n=Math.floor((r-1)/2),o=e[n];if(!(void 0!==o&&0<F(o,t)))break e;e[n]=t,e[r]=o,r=n}}function A(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length;n<o;){var a=2*(n+1)-1,i=e[a],u=a+1,c=e[u];if(void 0!==i&&0>F(i,r))void 0!==c&&0>F(c,i)?(e[n]=c,e[u]=r,n=u):(e[n]=i,e[a]=r,n=a);else{if(!(void 0!==c&&0>F(c,r)))break e;e[n]=c,e[u]=r,n=u}}}return t}return null}function F(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var P=[],R=[],x=1,C=null,M=3,I=!1,U=!1,D=!1;function $(e){for(var t=A(R);null!==t;){if(null===t.callback)k(R);else{if(!(t.startTime<=e))break;k(R),t.sortIndex=t.expirationTime,T(P,t)}t=A(R)}}function L(e){if(D=!1,$(e),!U)if(null!==A(P))U=!0,n(V);else{var t=A(R);null!==t&&o(L,t.startTime-e)}}function V(e,r){U=!1,D&&(D=!1,a()),I=!0;var n=M;try{for($(r),C=A(P);null!==C&&(!(C.expirationTime>r)||e&&!i());){var u=C.callback;if(null!==u){C.callback=null,M=C.priorityLevel;var c=u(C.expirationTime<=r);r=t.unstable_now(),"function"==typeof c?C.callback=c:C===A(P)&&k(P),$(r)}else k(P);C=A(P)}if(null!==C)var l=!0;else{var s=A(R);null!==s&&o(L,s.startTime-r),l=!1}return l}finally{C=null,M=n,I=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=u;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=M;M=e;try{return t()}finally{M=r}},t.unstable_next=function(e){switch(M){case 1:case 2:case 3:var t=3;break;default:t=M}var r=M;M=t;try{return e()}finally{M=r}},t.unstable_scheduleCallback=function(e,r,i){var u=t.unstable_now();if("object"==typeof i&&null!==i){var c=i.delay;c="number"==typeof c&&0<c?u+c:u,i="number"==typeof i.timeout?i.timeout:B(e)}else i=B(e),c=u;return e={id:x++,callback:r,priorityLevel:e,startTime:c,expirationTime:i=c+i,sortIndex:-1},c>u?(e.sortIndex=c,T(R,e),null===A(P)&&e===A(R)&&(D?a():D=!0,o(L,c-u))):(e.sortIndex=i,T(P,e),U||I||(U=!0,n(V))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=M;return function(){var r=M;M=t;try{return e.apply(this,arguments)}finally{M=r}}},t.unstable_getCurrentPriorityLevel=function(){return M},t.unstable_shouldYield=function(){var e=t.unstable_now();$(e);var r=A(P);return r!==C&&null!==C&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<C.expirationTime||i()},t.unstable_requestPaint=z,t.unstable_continueExecution=function(){U||I||(U=!0,n(V))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return A(P)},t.unstable_Profiling=null},1540:function(e,t,r){"use strict";var n=r(1541),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(e){return n.isMemo(e)?i:u[e.$$typeof]||o}u[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[n.Memo]=i;var l=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(d){var o=v(r);o&&o!==d&&e(t,o,n)}var i=s(r);f&&(i=i.concat(f(r)));for(var u=c(t),y=c(r),b=0;b<i.length;++b){var h=i[b];if(!(a[h]||n&&n[h]||y&&y[h]||u&&u[h])){var m=p(r,h);try{l(t,h,m)}catch(e){}}}}return t}},1541:function(e,t,r){"use strict";e.exports=r(1542)},1542:function(e,t,r){"use strict";
9
+ */var n,o,a,i,u;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,l=null,s=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(s,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(s,0))},o=function(e,t){l=setTimeout(e,t)},a=function(){clearTimeout(l)},i=function(){return!1},u=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,v=window.Date,d=window.setTimeout,y=window.clearTimeout,b=window.requestAnimationFrame,h=window.cancelAnimationFrame;if("undefined"!=typeof console&&("function"!=typeof b&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),"object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var m=v.now();t.unstable_now=function(){return v.now()-m}}var j=!1,_=null,O=-1,g=5,S=0;i=function(){return t.unstable_now()>=S},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):g=0<e?Math.floor(1e3/e):33.33};var E=new MessageChannel,w=E.port2;E.port1.onmessage=function(){if(null!==_){var e=t.unstable_now();S=e+g;try{_(!0,e)?w.postMessage(null):(j=!1,_=null)}catch(e){throw w.postMessage(null),e}}else j=!1},n=function(e){_=e,j||(j=!0,w.postMessage(null))},o=function(e,r){O=d((function(){e(t.unstable_now())}),r)},a=function(){y(O),O=-1}}function T(e,t){var r=e.length;e.push(t);e:for(;;){var n=Math.floor((r-1)/2),o=e[n];if(!(void 0!==o&&0<F(o,t)))break e;e[n]=t,e[r]=o,r=n}}function A(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length;n<o;){var a=2*(n+1)-1,i=e[a],u=a+1,c=e[u];if(void 0!==i&&0>F(i,r))void 0!==c&&0>F(c,i)?(e[n]=c,e[u]=r,n=u):(e[n]=i,e[a]=r,n=a);else{if(!(void 0!==c&&0>F(c,r)))break e;e[n]=c,e[u]=r,n=u}}}return t}return null}function F(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var P=[],R=[],x=1,C=null,M=3,I=!1,U=!1,D=!1;function $(e){for(var t=A(R);null!==t;){if(null===t.callback)k(R);else{if(!(t.startTime<=e))break;k(R),t.sortIndex=t.expirationTime,T(P,t)}t=A(R)}}function L(e){if(D=!1,$(e),!U)if(null!==A(P))U=!0,n(V);else{var t=A(R);null!==t&&o(L,t.startTime-e)}}function V(e,r){U=!1,D&&(D=!1,a()),I=!0;var n=M;try{for($(r),C=A(P);null!==C&&(!(C.expirationTime>r)||e&&!i());){var u=C.callback;if(null!==u){C.callback=null,M=C.priorityLevel;var c=u(C.expirationTime<=r);r=t.unstable_now(),"function"==typeof c?C.callback=c:C===A(P)&&k(P),$(r)}else k(P);C=A(P)}if(null!==C)var l=!0;else{var s=A(R);null!==s&&o(L,s.startTime-r),l=!1}return l}finally{C=null,M=n,I=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=u;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=M;M=e;try{return t()}finally{M=r}},t.unstable_next=function(e){switch(M){case 1:case 2:case 3:var t=3;break;default:t=M}var r=M;M=t;try{return e()}finally{M=r}},t.unstable_scheduleCallback=function(e,r,i){var u=t.unstable_now();if("object"==typeof i&&null!==i){var c=i.delay;c="number"==typeof c&&0<c?u+c:u,i="number"==typeof i.timeout?i.timeout:B(e)}else i=B(e),c=u;return e={id:x++,callback:r,priorityLevel:e,startTime:c,expirationTime:i=c+i,sortIndex:-1},c>u?(e.sortIndex=c,T(R,e),null===A(P)&&e===A(R)&&(D?a():D=!0,o(L,c-u))):(e.sortIndex=i,T(P,e),U||I||(U=!0,n(V))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=M;return function(){var r=M;M=t;try{return e.apply(this,arguments)}finally{M=r}}},t.unstable_getCurrentPriorityLevel=function(){return M},t.unstable_shouldYield=function(){var e=t.unstable_now();$(e);var r=A(P);return r!==C&&null!==C&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<C.expirationTime||i()},t.unstable_requestPaint=z,t.unstable_continueExecution=function(){U||I||(U=!0,n(V))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return A(P)},t.unstable_Profiling=null},1544:function(e,t,r){"use strict";var n=r(1545),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(e){return n.isMemo(e)?i:u[e.$$typeof]||o}u[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[n.Memo]=i;var l=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(d){var o=v(r);o&&o!==d&&e(t,o,n)}var i=s(r);f&&(i=i.concat(f(r)));for(var u=c(t),y=c(r),b=0;b<i.length;++b){var h=i[b];if(!(a[h]||n&&n[h]||y&&y[h]||u&&u[h])){var m=p(r,h);try{l(t,h,m)}catch(e){}}}}return t}},1545:function(e,t,r){"use strict";e.exports=r(1546)},1546:function(e,t,r){"use strict";
10
10
  /** @license React v16.13.1
11
11
  * react-is.production.min.js
12
12
  *
@@ -14,4 +14,4 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,v=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,y=n?Symbol.for("react.suspense_list"):60120,b=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,j=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,O=n?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case i:case c:case u:case d:return e;default:switch(e=e&&e.$$typeof){case s:case v:case h:case b:case l:return e;default:return t}}case a:return t}}}function S(e){return g(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=s,t.ContextProvider=l,t.Element=o,t.ForwardRef=v,t.Fragment=i,t.Lazy=h,t.Memo=b,t.Portal=a,t.Profiler=c,t.StrictMode=u,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||g(e)===f},t.isConcurrentMode=S,t.isContextConsumer=function(e){return g(e)===s},t.isContextProvider=function(e){return g(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return g(e)===v},t.isFragment=function(e){return g(e)===i},t.isLazy=function(e){return g(e)===h},t.isMemo=function(e){return g(e)===b},t.isPortal=function(e){return g(e)===a},t.isProfiler=function(e){return g(e)===c},t.isStrictMode=function(e){return g(e)===u},t.isSuspense=function(e){return g(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===c||e===u||e===d||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===b||e.$$typeof===l||e.$$typeof===s||e.$$typeof===v||e.$$typeof===j||e.$$typeof===_||e.$$typeof===O||e.$$typeof===m)},t.typeOf=g},1543:function(e,t,r){"use strict";t.a=function(){return!1}},1544:function(e,t,r){"use strict";(function(e){var n=r(1229),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.a.Buffer:void 0,u=i?i.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var r=e.length,n=u?u(r):new e.constructor(r);return e.copy(n),n}}).call(this,r(1353)(e))}}]);
17
+ */var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,v=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,y=n?Symbol.for("react.suspense_list"):60120,b=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,j=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,O=n?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case i:case c:case u:case d:return e;default:switch(e=e&&e.$$typeof){case s:case v:case h:case b:case l:return e;default:return t}}case a:return t}}}function S(e){return g(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=s,t.ContextProvider=l,t.Element=o,t.ForwardRef=v,t.Fragment=i,t.Lazy=h,t.Memo=b,t.Portal=a,t.Profiler=c,t.StrictMode=u,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||g(e)===f},t.isConcurrentMode=S,t.isContextConsumer=function(e){return g(e)===s},t.isContextProvider=function(e){return g(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return g(e)===v},t.isFragment=function(e){return g(e)===i},t.isLazy=function(e){return g(e)===h},t.isMemo=function(e){return g(e)===b},t.isPortal=function(e){return g(e)===a},t.isProfiler=function(e){return g(e)===c},t.isStrictMode=function(e){return g(e)===u},t.isSuspense=function(e){return g(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===c||e===u||e===d||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===b||e.$$typeof===l||e.$$typeof===s||e.$$typeof===v||e.$$typeof===j||e.$$typeof===_||e.$$typeof===O||e.$$typeof===m)},t.typeOf=g},1547:function(e,t,r){"use strict";t.a=function(){return!1}},1548:function(e,t,r){"use strict";(function(e){var n=r(1227),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.a.Buffer:void 0,u=i?i.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var r=e.length,n=u?u(r):new e.constructor(r);return e.copy(n),n}}).call(this,r(1363)(e))}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[10],{1181:function(e,t,a){"use strict";var n=a(0),r=a(199),i=a(332),o=a(46),c=a(47),s=a(68),l=a(53),u=a(17),m=a(1187),d=a.n(m);function p(e){var t="dropdown-item";return e&&(t+=" ".concat(e)),t}function f(e){if(e.action.appLink)return n.createElement(l.a,{appLink:e.action.appLink,onClick:e.action.onClick,className:p(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions},e.action.label);return n.createElement("span",{className:"cursor-pointer ".concat(p(e.action.className)),onClick:function(t){e.action.analyticsData&&e.action.analyticsOptions&&c.a.logUserAction(e.action.analyticsData,e.action.analyticsOptions),o.a.isFunction(e.action.onClick)&&e.action.onClick(t)}},e.action.label)}function g(e){if(!e.actions||!e.actions.length)return n.createElement(n.Fragment,null);var t="dropdown";e.className&&(t+=" ".concat(e.className));var a="actions-dropdown-".concat(i.a.getRandomInt()),r="dropdown-toggle px-0 ".concat(d.a.dropdownToggle);return e.dropdownToggleClassName&&(r+=" ".concat(e.dropdownToggleClassName)),n.createElement("div",{className:t},n.createElement("button",{className:r,type:"button",id:a,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},n.createElement(s.a,{svgName:u.b.More,size:s.b.Small})),n.createElement("div",{className:"dropdown-menu dropdown-menu-right","aria-labelledby":a},e.actions.map((function(e,t){return n.createElement(f,{key:t,action:e})}))))}g.defaultProps={dropdownToggleClassName:"btn btn-light"};var y=a(335);function v(e){var t=n.useMemo((function(){return e.actions.sort((function(e,t){return e.order-t.order}))}),[e.actions]),a=[],i=[];t.forEach((function(e){e.button?a.push(e):i.push(e)}));var o="d-flex";return e.className&&(o+=" ".concat(e.className)),a.length||i.length?n.createElement("div",{className:o},n.createElement(n.Fragment,null,n.createElement("span",{className:"d-flex align-items-center"},a.length?a.map((function(e,t){return n.createElement(n.Fragment,{key:t},e.label?n.createElement(y.a,{appLink:e.appLink,onClick:e.onClick,svgName:e.svgName,className:e.className,tooltip:e.tooltip,showSpinner:e.showSpinner,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},e.label):n.createElement(r.a,{appLink:e.appLink,onClick:e.onClick,svgName:e.svgName,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))})):n.createElement(n.Fragment,null),e.sortComponent&&e.sortComponent,i.length?n.createElement(g,{actions:i,dropdownToggleClassName:e.actionsDropdownClassName}):n.createElement(n.Fragment,null)))):n.createElement(n.Fragment,null)}a.d(t,"a",(function(){return v}))},1187:function(e,t,a){e.exports={dropdownToggle:"AYBvQ"}},1188:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(84),r=a(26),i=a(1185);function o(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return c(e,t)}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var s={getUsers:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=a.sortName,s=void 0===c?"":c,l=a.yearGroup,u=void 0===l?"":l,m=function(){var e=["usertype:".concat(t)];if(u&&e.push("yeargroups.value:".concat(u)),s)switch(s){case"first-name-atoz":e.push("orderby:name");break;case"first-name-ztoa":e.push("orderbydesc:name");break;case"surname-atoz":e.push("orderby:surname");break;case"surname-ztoa":e.push("orderbydesc:surname")}return"{".concat(e.join(","),"}")},d={query:m()};return r&&(d.cursor=r),{url:n.a.urlBuilder("{gateway}/v1/customers/".concat(e,"/users"),d),key:"school:users:".concat(e,":").concat(t).concat(r?":".concat(r):"").concat(u?":".concat(u):"").concat(s?":".concat(s):""),expiryTime:1/0,success:i,error:o}},getUser:function(e){return{url:"{gateway}/v1/users/".concat(e),key:"school:users:".concat(e),expiryTime:1/0}},bulkRemoveUsers:function(e,t,a,n){return{url:"{gateway}/v1/users/delete",key:"remove:school:users",invalidationKeys:["school:users"].concat(o(e.users.map((function(e){return"school:users:".concat(e.userId)})))),type:r.a.POST,data:e,success:t,error:a,always:n}},createUsers:function(e,t,a,n){return{url:"{gateway}/v1/users",key:"create:users",data:e,type:r.a.POST,invalidationKeys:["school:users"],success:t,error:a,always:n}},updateUser:function(e,t,a,n,i){return{url:"{gateway}/v1/users",key:"edit:user",type:r.a.PUT,data:e,invalidationKeys:["school:users:".concat(t,":").concat(e.userType),"school:users:".concat(e.userId)],success:a,error:n,always:i}},searchUsers:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o=e.query,c=function(){var e=["usertype:".concat(a)];return t&&e.push("page:".concat(t)),"{".concat(e.join(","),"}")};e.query,c();return{url:"{gateway}/v1/search/users?query=".concat(e.query),key:"search:users:".concat(o,":").concat(t),formatData:i.a.convertLegacyPaginatedCollection,expiryTime:1/0,success:n,error:r}},bulkToggleActivation:function(e,t,a,n,i){return{url:"{gateway}/v1/users/update-status",key:"update:users:status",type:r.a.PUT,data:e,success:a,error:n,always:i,invalidationKeys:["school:users:".concat(e.customerId,":").concat(t)].concat(o(e.users.map((function(e){return"school:users:".concat(e.userId)}))))}},bulkValidate:function(e,t,a,n){return{url:"{gateway}/v1/users/validate",type:r.a.POST,key:"validate:users",data:e,success:t,error:a,always:n,normalize:!1,formatData:function(e){return e.failedResults.map((function(e){return{errorCodes:e.errorCodes,users:[e.user]}}))}}},yearGroups:function(e){return{url:"{gateway}/v1/customers/".concat(e,"/yeargroups"),key:"yeargroups:".concat(e)}}}},1195:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"c",(function(){return l})),a.d(t,"b",(function(){return u}));var n=a(0),r=a(1165),i=a(2),o=a(1222),c=a(1251),s=n.createContext({isSortable:!1});function l(e){var t=n.useContext(s).isSortable?c.a:c.b,a=i.a.AppLinkHelper.getCurrentAppLink();return n.createElement(n.Fragment,null,n.createElement("div",{className:"position-relative"},e.videos.map((function(a,r){return n.createElement(t,{key:a.id,idx:r,index:r,video:a,getVideoAppLink:e.getVideoAppLink,getSeriesAppLink:e.getSeriesAppLink,setFavourite:e.setFavourite,hideInteractiveBadge:e.hideInteractiveBadge,hideFavouriteButton:e.hideFavouriteButton})}))),e.cursors&&n.createElement(o.b,{appLink:a,cursors:e.cursors}))}var u=Object(r.SortableContainer)((function(e){return n.createElement(s.Provider,{value:{isSortable:!0,currentSortingIndex:e.currentSortingIndex}},n.createElement(l,Object.assign({},e)))}))},1200:function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));var n=a(0),r=a(83),i=a(21),o=a(46);function c(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return s(e,t)}(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var l=function(e){return e&&e.data&&e.data.pagination&&e.data.pagination.cursors&&e.data.pagination.cursors.next};function u(e){return Object(r.useSelector)(Object(n.useMemo)((function(){return function(t){for(var a=e,n=o.a.isFunction(e)&&i.a.getResponse(t,a()),r=n&&n.isFetching,s=n&&n.shouldFetch,u=n&&n.data&&n.data.data,m=l(n);m&&(r=(n=i.a.getResponse(t,a(m))).isFetching,!n.shouldFetch);){var d=n.data&&n.data.data;d&&u.push.apply(u,c(d));var p=l(n);m=p===m?null:p}return{shouldInitialFetch:s,items:u,nextCursor:m,isFetching:r}}}),[e]))}},1201:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(0),r=n.createContext(null)},1217:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var n=a(0),r=a(1200),i=a(1204);function o(e,t){var a=t,o=Object(r.a)(e&&function(t){return e(t).key});return Object(i.a)((function(){return t&&a(o.nextCursor)}),!!o.nextCursor,o.isFetching),Object(n.useEffect)((function(){o.shouldInitialFetch&&t&&a()}),[o.shouldInitialFetch,t]),{items:o.items,hasMore:!!o.nextCursor,isFetching:o.isFetching}}},1221:function(e,t,a){"use strict";var n,r=a(0),i=a(46),o=a(69),c=a(122),s=a(1214),l=a(53),u=function(e){var t=e.breadcrumb,a=t.label,n=t.appLink,i=t.active;return r.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?r.createElement("strong",null,a):r.createElement(l.a,{appLink:n},a))},m=function(e){var t=e.breadcrumbs;return r.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return r.createElement(u,{key:t,breadcrumb:e})})))};function d(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||f(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 p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var a=[],n=!0,r=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(n=(o=c.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw i}}return a}(e,t)||f(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 f(e,t){if(e){if("string"==typeof e)return g(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function y(e,t,a){return{label:e.name,appLink:t(e),active:a}}function v(e){var t=function(e,t){var a=e.currentItem,n=e.getItemAppLink,s=e.getParent,l=e.rootItem,u=e.data,m=e.subview,f=p(Object(r.useState)([]),2),g=f[0],v=f[1],b=null==u?void 0:u.map((function(e){return null==e?void 0:e.name})).join("-");r.useEffect((function(){if(!t&&!o.a.isEmpty(u)){var e=u.map((function(e,t){return y(e,n,t+1===u.length)}));l&&e.unshift(l),v(e)}}),[b,n]),r.useEffect((function(){if(t&&i.a.isFunction(s)){var e=[y(a,n,!0)];for(a=s(a);a;)e.unshift(y(a,n)),a=s(a);return l&&e.unshift(l),v(e)}}),[a,s,n,l]);var h=r.useRef({label:m,appLink:null,active:!0}).current;if(m){g.includes(h)||v([].concat(d(g),[h]));var E=g.filter((function(e){return e.active&&e!==h}));E.length&&(c.a.first(E).active=!1)}return g}(e,e.type===n.Dynamic);return r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement(m,{breadcrumbs:t}))}a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return v})),a.d(t,"c",(function(){return b})),function(e){e[e.Static=0]="Static",e[e.Dynamic=1]="Dynamic"}(n||(n={}));var b=function(e){var t=e.numItems,a=void 0===t?3:t;return r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb m-0 p-0"},s.a.getPartialLoadingItems({numItems:a}).map((function(e,t){var a=e.width;return r.createElement("li",{key:t,className:"breadcrumb-item"},r.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:a},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}},1222:function(e,t,a){"use strict";a.d(t,"b",(function(){return u})),a.d(t,"a",(function(){return m}));var n=a(0),r=a(327),i=a(53),o=a(108),c=a(47),s=a(3);function l(e,t){return t?{application:e.application,action:e.action,args:e.args,params:Object.assign({},e.params,{cursor:t})}:null}function u(e){var t=e.appLink,a=e.cursors,r=e.className;function u(e){c.a.logUserAction({page:e},{location:s.LocationContext.Pagination,entity:s.EntityType.Pagination,actionType:s.UserAction.Navigate})}return n.createElement(o.a.Provider,{value:"shared.pagination"},n.createElement("div",{className:r},n.createElement(i.a,{appLink:l(t,a.previous),className:"btn btn-secondary mr-1 ".concat(a.previous?"":"disabled"),onClick:function(){return u("previous")}},n.createElement(o.b,{phrase:"previous"})),n.createElement(i.a,{appLink:l(t,a.next),className:"btn btn-secondary ".concat(a.next?"":"disabled"),onClick:function(){return u("next")}},n.createElement(o.b,{phrase:"next"}))))}function m(e){function t(e){c.a.logUserAction({page:e},{location:s.LocationContext.Pagination,entity:s.EntityType.Pagination,actionType:s.UserAction.Navigate})}return n.createElement(o.a.Provider,{value:"shared.pagination"},n.createElement("div",{className:e.className},n.createElement(r.a,{onClick:function(){1!==e.currentPage&&(t("previous"),e.onClickBack())},className:"btn btn-secondary mr-1 cursor-pointer ".concat(1===e.currentPage?"disabled":"")},n.createElement(o.b,{phrase:"previous"})),n.createElement(r.a,{onClick:function(){e.currentPage!==e.totalPages&&(t("next"),e.onClickNext())},className:"btn btn-secondary cursor-pointer ".concat(e.currentPage===e.totalPages?"disabled":"")},n.createElement(o.b,{phrase:"next"}))))}u.defaultProps={className:"py-2"},m.defaultProps={className:"py-2"}},1251:function(e,t,a){"use strict";var n=a(0),r=a(43),i=a(1165),o=a(1226),c=a(338),s=a(68),l=a(1216),u=a(38),m=a(123),d=a(17),p=a(1195),f=a(46),g=a(1181),y=a(1201);function v(e){var t=n.useContext(y.a);if(!f.a.isFunction(t))return n.createElement(n.Fragment,null);var a=t(e.video).filter((function(e){return!!e.onClick||!!e.appLink}));return n.createElement(g.a,{actions:a,className:"float-right mt-n1",actionsDropdownClassName:"btn btn-link ml-1"})}var b=a(108),h=a(79),E=a(1259),S=a.n(E),k=a(44);function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var a=[],n=!0,r=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(n=(o=c.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return A(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 A(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function w(e){var t=N(n.useState(e.truncate),2),a=t[0],r=t[1];return Object(h.a)(u.a.XS)?n.createElement(n.Fragment,null):n.createElement("div",{className:"position-relative overflow-hidden ".concat(a?"clamp-2":"")},n.createElement("p",{className:"m-0"},n.createElement("span",{dangerouslySetInnerHTML:{__html:k.a.linkifyText(e.video.description)}}),!!e.isExpandable&&n.createElement("span",{className:"cursor-pointer ".concat(S.a.ellipsis),onClick:function(){return r(!a)}},n.createElement(b.b,{namespace:"shared.videoItemDescription",phrase:a?"showMore":"showLess"}))))}w.defaultProps={truncate:!0};var x=a(53);function C(e){return n.createElement(x.a,{appLink:e.appLink},n.createElement("h5",{className:"m-0 mb-1 clamp-2"},e.video.name))}var T=a(1245),U=a(1236),L=a(173),O=a(3),I=a(94),j=a(1260),M=a.n(j);a.d(t,"b",(function(){return _})),a.d(t,"a",(function(){return D}));var P=Object(i.SortableHandle)((function(){return n.createElement(r.Col,{xs:2,className:"d-flex justify-content-center align-items-center cursor-pointer ".concat(M.a.dragHandleContainer)},n.createElement(s.a,{svgName:d.b.Handle,size:s.b.Small}))}));function _(e){var t,a,i=Object(L.a)(),s=i===u.a.XS,d=i===u.a.SM||i===u.a.MD,f=i===u.a.SM,g=n.useContext(p.a).isSortable&&!s,y=e.getVideoAppLink(e.video),b=m.a.hasSeries(e.video)&&e.getSeriesAppLink(e.video.series);return n.createElement(r.Row,{className:"py-2"},n.createElement(r.Col,{xs:s?12:d?4:3,className:"flex-column align-items-flex-start mb-1"},n.createElement(r.Row,null,!!g&&n.createElement(P,null),n.createElement(r.Col,{xs:(a=g,a?10:12)},n.createElement(o.a,{video:e.video,appLink:y,seriesAppLink:b,imageOptions:{size:g?I.a.Small:I.a.Medium},textPosition:l.a.Independent,setFavourite:e.setFavourite,type:"static",analyticsOptions:{location:O.LocationContext.VideoListItem},hideFavouriteButton:e.hideFavouriteButton})))),n.createElement(r.Col,{xs:s?12:d?8:9},n.createElement(v,{video:e.video}),n.createElement(c.a,{className:"d-block",video:e.video,appLink:b,analyticsOptions:{location:O.LocationContext.VideoListItem}}),n.createElement(C,{video:e.video,appLink:e.getVideoAppLink(e.video)}),n.createElement(T.a,null,n.createElement(U.a,{type:U.b.Rating,data:e.video.rating}),n.createElement(U.a,{type:U.b.ProductionYear,data:e.video.productionYear}),!e.hideInteractiveBadge&&n.createElement(U.a,{type:U.b.Interactive,data:null===(t=e.video._hasInteractives)||void 0===t?void 0:t.value})),!f&&n.createElement(w,{video:e.video})))}var D=Object(i.SortableElement)((function(e){return n.createElement(_,Object.assign({},e))}))},1259:function(e,t,a){e.exports={ellipsis:"LJY5U"}},1260:function(e,t,a){e.exports={dragHandleContainer:"_24s1b"}},1340:function(e,t,a){"use strict";var n;a.d(t,"a",(function(){return n})),function(e){e[e.Disabled=0]="Disabled",e[e.Active=1]="Active",e[e.Inactive=2]="Inactive"}(n||(n={}))},1341:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var n={STUDENTS:"/templates/Template_Students.csv",STAFF:"/templates/Template_Staff.csv"}},1529:function(e,t,a){"use strict";var n=a(0),r=a.n(n),i=a(2),o=a(74),c=a(47),s=a(3),l=a(1215),u=a(68),m=a(17),d=a(327),p=a(150),f=a(1289),g=a(7),y=a(13),v=a(60),b=a(9),h=a(1181),E=a(108),S=a(1340),k=a(1715),N=a.n(k);function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var a=[],n=!0,r=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(n=(o=c.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return w(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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var x=b.a.encloseNamespace("userManager.manageStudents");function C(e){var t,a=e.user,n=e.isChecked,u=e.onToggleCheckbox,d=A(Object(o.a)(v.a.BULK_REMOVE_USERS),2)[1],f=a.status===S.a.Active,b=[{onClick:function(){c.a.logUserAction({id:a.id},{actionType:s.UserAction.Edit,entity:s.EntityType.User,workflowPhase:s.WorkflowPhase.Start,location:s.LocationContext.StudentManagerListItem}),i.a.AppLinkHelper.trigger({application:g.a.USER_MANAGER,action:y.a.UserManager.EDIT_USER,args:[a.id],params:{userType:p.a.Learner}})},svgName:m.b.Edit,className:"btn svg-container",button:!0},{onClick:function(){c.a.logUserAction({id:a.id},{actionType:s.UserAction.Delete,entity:s.EntityType.User,workflowPhase:s.WorkflowPhase.Start,location:s.LocationContext.StudentManagerListItem,descriptor:s.OperationDescriptor.Single}),d([{userId:"string"==typeof e.user.id?+e.user.id:e.user.id,username:e.user.username}]),i.a.AppLinkHelper.trigger({application:g.a.USER_MANAGER,action:y.a.UserManager.BULK_REMOVE_USERS,params:{userType:p.a.Learner}})},svgName:m.b.Delete,className:"btn svg-container mr-n1",button:!0},{label:x(f?"deactivate":"activate"),onClick:function(){c.a.logUserAction({id:a.id},{actionType:s.UserAction.Activate,entity:s.EntityType.User,descriptor:f?s.ToggleDescriptor.Off:s.ToggleDescriptor.On,workflowPhase:s.WorkflowPhase.Start,location:s.LocationContext.StudentManagerListItem}),i.a.AppLinkHelper.trigger({application:g.a.USER_MANAGER,action:y.a.UserManager.TOGGLE_USER_STATUS,args:[e.user.id],params:{userType:p.a.Learner}})}}];return r.a.createElement("li",{className:"d-flex align-items-center py-2"},r.a.createElement("div",{className:"px-4"},r.a.createElement(l.a,{id:a.id,name:a.id,checked:n,onChange:u})),r.a.createElement("div",{className:"d-flex flex-column justify-content-center w-100"},r.a.createElement("div",{className:"pb-1 d-flex align-items-center"},r.a.createElement("div",null,r.a.createElement("h2",{className:"h5 m-0 mr-1 d-inline-block align-middle"},a.name," ",a.surname||""),a.username&&r.a.createElement("p",{className:"m-0 d-inline-block align-middle"},"(",a.username,")")),a.status===S.a.Disabled&&r.a.createElement("div",{className:"text-white px-1 ".concat(N.a.deactivated," ml-2")},r.a.createElement(E.b,{namespace:"userManager.manageStudents",phrase:"deactivated"}))),r.a.createElement("div",{className:"d-flex justify-content-between"},r.a.createElement("p",{className:"m-0 text-truncate"},a.email),r.a.createElement("div",{className:"mr-3"},!!(null===(t=a.masterYearGroup)||void 0===t?void 0:t.id)&&r.a.createElement("span",{className:"rounded-pill px-2 ml-2 ".concat(N.a.yearGroup)},a.masterYearGroup.name)))),r.a.createElement(h.a,{actions:b,className:"pr-4",actionsDropdownClassName:"btn"}))}var T=a(1716),U=a.n(T);function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var a=[],n=!0,r=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(n=(o=c.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(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 O(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var I=b.a.encloseNamespace("userManager.manageStaff");function j(e){var t=e.user,a=e.isChecked,n=e.onToggleCheckbox,u=L(Object(o.a)(v.a.BULK_REMOVE_USERS),2)[1],d=t.status===S.a.Active,f=[{onClick:function(){c.a.logUserAction({id:t.id},{actionType:s.UserAction.Edit,entity:s.EntityType.User,workflowPhase:s.WorkflowPhase.Start,location:s.LocationContext.StaffManagerListItem}),i.a.AppLinkHelper.trigger({application:g.a.USER_MANAGER,action:y.a.UserManager.EDIT_USER,args:[t.id],params:{userType:p.a.Staff}})},svgName:m.b.Edit,className:"btn svg-container",button:!0},{onClick:function(){c.a.logUserAction({id:t.id},{actionType:s.UserAction.Delete,entity:s.EntityType.User,workflowPhase:s.WorkflowPhase.Start,location:s.LocationContext.StaffManagerListItem,descriptor:s.OperationDescriptor.Single}),u([{userId:"string"==typeof e.user.id?+e.user.id:e.user.id,username:e.user.username}]),i.a.AppLinkHelper.trigger({application:g.a.USER_MANAGER,action:y.a.UserManager.BULK_REMOVE_USERS,params:{userType:p.a.Staff}})},svgName:m.b.Delete,className:"btn svg-container mr-n1",button:!0},{label:I(d?"deactivate":"activate"),onClick:function(){c.a.logUserAction({id:t.id},{actionType:s.UserAction.Activate,entity:s.EntityType.User,descriptor:d?s.ToggleDescriptor.Off:s.ToggleDescriptor.On,workflowPhase:s.WorkflowPhase.Start,location:s.LocationContext.StaffManagerListItem}),i.a.AppLinkHelper.trigger({application:g.a.USER_MANAGER,action:y.a.UserManager.TOGGLE_USER_STATUS,args:[e.user.id],params:{userType:p.a.Staff}})}}];return r.a.createElement("li",{className:"d-flex align-items-center py-2"},r.a.createElement("div",{className:"px-4"},r.a.createElement(l.a,{id:t.id,name:t.id,checked:a,onChange:n})),r.a.createElement("div",{className:"d-flex flex-column justify-content-center w-100"},r.a.createElement("div",{className:"pb-1 d-flex align-items-center"},r.a.createElement("div",null,r.a.createElement("h2",{className:"h5 m-0 mr-1 d-inline-block align-middle"},t.name," ",t.surname||""),t.username&&r.a.createElement("p",{className:"m-0 d-inline-block align-middle"},"(",t.username,")")),t.status===S.a.Disabled&&r.a.createElement("div",{className:"text-white px-1 ".concat(U.a.deactivated," ml-2")},r.a.createElement(E.b,{namespace:"userManager.manageStaff",phrase:"deactivated"}))),r.a.createElement("p",{className:"m-0 text-truncate"},t.email)),r.a.createElement(h.a,{actions:f,className:"pr-4",actionsDropdownClassName:"btn"}))}var M=a(46),P=a(69),_=a(1717),D=a.n(_);function R(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var a=[],n=!0,r=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(n=(o=c.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return G(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return G(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 G(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function B(e){var t=F(r.a.useState(""),2),a=t[0],n=t[1];r.a.useEffect((function(){var t=i.a.LocationUtils.DeserializeQueryParams(i.a.LocationUtils.GetCurrentQueryString().substring(1));t&&"string"!=typeof t&&t[e.queryParamName]&&n(t[e.queryParamName])}),[]);var o=r.a.useCallback(M.a.debounce((function(t){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=i.a.LocationUtils.DeserializeQueryParams(i.a.LocationUtils.GetCurrentQueryString().substring(1)),n=t?P.a.omit(a,[e.queryParamName,"cursor"]):{},r=Object.assign(R({},e.queryParamName,t),n);r[e.queryParamName]||delete r[e.queryParamName];i.a.AppLinkHelper.trigger(Object.assign(Object.assign({},e.searchAppLink),{params:r}))}(t)}),e.debounceTime),[]);return r.a.createElement("div",{className:"position-relative w-100"},r.a.createElement("input",{name:e.name,type:"text",className:"form-control py-1 px-2 w-100 ".concat(e.className||""),id:e.id,autoComplete:"off",placeholder:e.placeholder,"aria-label":"Search",onChange:function(e){n(e.currentTarget.value),o(e.currentTarget.value)},value:a}),r.a.createElement(u.a,{svgName:m.b.Search,className:"".concat(D.a.searchSvg," svg-container cursor-pointer text-secondary")}))}B.defaultProps={debounceTime:300,queryParamName:"query"};var H=a(1718),q=a.n(H);function V(){return r.a.createElement("li",{className:"w-100 d-flex align-items-center py-2"},r.a.createElement("div",{className:"mx-4 partial-loading-background ".concat(q.a.partialCheckbox)}),r.a.createElement("div",{className:"d-flex flex-column justify-content-center w-100"},r.a.createElement("div",{className:"pb-1"},r.a.createElement("div",{className:"partial-loading-background align-middle d-inline-block ".concat(q.a.partialName)})),r.a.createElement("div",{className:"d-flex"},r.a.createElement("div",{className:"w-50"},r.a.createElement("div",{className:"partial-loading-background mr-1 align-middle d-inline-block ".concat(q.a.partialEmail)})),r.a.createElement("div",{className:"d-flex w-50 pl-1 d-flex justify-content-center"},r.a.createElement("div",{className:"partial-loading-background ".concat(q.a.partialYearGroup)})))))}function z(){return r.a.createElement("ul",{className:"m-0 list-unstyled striped-list"},Array(20).fill(null).map((function(e,t){return r.a.createElement(V,{key:t})})))}var K=a(225),W=a(1179);function Y(){return r.a.createElement(W.a,null,r.a.createElement(W.a.Image,{src:K.a.EmptyStates.UserManager.SEARCH}),r.a.createElement(W.a.Heading,null,r.a.createElement(E.b,{namespace:"userManager.userManagerSearchEmptyState",phrase:"heading"})),r.a.createElement(W.a.Info,null,r.a.createElement(E.b,{namespace:"userManager.userManagerSearchEmptyState",phrase:"info"})))}function $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var a=[],n=!0,r=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(n=(o=c.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return J(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 J(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}a.d(t,"a",(function(){return Q}));function Q(e){var t=Object(f.a)(e.users),a=t.onToggleBulk,r=t.onToggleItem,h=t.getSelected,E=t.isChecked,S=t.bulkChecked,k=$(Object(o.a)(v.a.BULK_REMOVE_USERS),2)[1];var N,A=e.userType===p.a.Learner,w=A?C:j,x=A?"userManager.manageStudents":"userManager.manageStaff";return n.createElement(n.Fragment,null,n.createElement("div",{className:"d-flex align-items-center pb-3"},n.createElement("div",{className:"px-4"},n.createElement(l.a,{id:"user-manager",name:"user-manager",checked:S,onChange:a})),n.createElement("div",{className:"mr-auto"},!!h().length&&n.createElement(d.a,{onClick:function(){var t=h();(null==t?void 0:t.length)&&(k(t.map((function(t){var a,n;return{userId:"string"==typeof t?+t:t,username:null!==(n=null===(a=e.users.find((function(e){return e.id.toString()===t.toString()})))||void 0===a?void 0:a.username)&&void 0!==n?n:""}}))),c.a.logUserAction({count:t.length},c.a.mergeOptions(e.analyticsOptions,{actionType:s.UserAction.Delete,entity:s.EntityType.User,workflowPhase:s.WorkflowPhase.Start,descriptor:1===t.length?s.OperationDescriptor.Single:s.OperationDescriptor.Bulk})),i.a.AppLinkHelper.trigger({application:g.a.USER_MANAGER,action:y.a.UserManager.BULK_REMOVE_USERS,params:{userType:e.userType}}))},className:"cursor-pointer"},n.createElement(u.a,{svgName:m.b.Delete}))),n.createElement("div",{className:"w-25"},n.createElement(B,{id:"user-manager-search-".concat(e.userType),name:"user-manager-search-".concat(e.userType),placeholder:b.a.getPhrase(x,"searchBarPlaceholder"),searchAppLink:Object.assign(Object.assign({},(N=e.userType,{application:g.a.USER_MANAGER,action:y.a.UserManager[N===p.a.Learner?"STUDENTS":"STAFF"]})),{params:e.queryParams})}))),e.users?e.users.length?n.createElement("ul",{className:"m-0 list-unstyled striped-list"},e.users.map((function(e){return n.createElement(w,{key:e.id,user:e,onToggleCheckbox:function(){return r(e.id.toString())},isChecked:E(e.id.toString())})}))):n.createElement(Y,null):n.createElement(z,null))}},1715:function(e,t,a){e.exports={deactivated:"_3Warm",yearGroup:"_270CZ"}},1716:function(e,t,a){e.exports={deactivated:"_3I95J"}},1717:function(e,t,a){e.exports={searchSvg:"Pt-8R"}},1718:function(e,t,a){e.exports={partialEntries:"tEaYC",partialCreateUser:"_1FoDB",partialBulkUpload:"_2PjrJ",partialCheckbox:"_1Ti64",partialYearGroup:"_3aWBm",partialName:"kgqG4",partialEmail:"_3R4hM"}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[11],{1166:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(223),o=n(64),i=n(77);function a(){var t=Object(r.a)(i.a.ALERT);return{success:function(e){t.success(e)()},error:function(e){t.error(e)()},warning:function(e){t.createAlert({type:o.a.Warning,heading:o.c.Warning,message:e})}}}},1172:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(329),o=n(132),i=n(1191);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(f,t);var e,n,r,a=l(f);function f(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.a.Newest,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.a.OwnedByMe;return c(this,f),(t=a.call(this,{collectionPrefix:"user:playlists",cursor:n,sort:e})).type=r,t}return e=f,(n=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&u(e.prototype,n),r&&u(e,r),f}(r.BaseCollectionIdentifier)},1174:function(t,e,n){"use strict";var r=n(1175);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}))},1175:function(t,e){},1178:function(t,e,n){"use strict";n(1172);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return o(this,n),e.call(this,{collectionPrefix:"playlist:videos",id:t,cursor:r})}return n}(n(329).BaseCollectionIdentifier);n.d(e,"a",(function(){return s}))},1181:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"a",(function(){return o}));var o={isNumber:function(t){return o.isType(t,"number")},isString:function(t){return o.isType(t,"string")},isType:function(t,e){return r(t)===e}}},1187:function(t,e,n){"use strict";var r,o=n(26),i=n(50),a=n(1190),c=n(1196);!function(t){t[t.Queued=1]="Queued",t[t.Processing=2]="Processing",t[t.Processed=3]="Processed",t[t.Errored=4]="Errored"}(r||(r={}));var u=function(t){return function(e){var n=Object.assign({},e);return n.hasOwnProperty(t)&&delete n[t],n}},s=function(t,e){return function(n){var r=Object.assign({},n);return r.hasOwnProperty(t)?(r[t].videos||(r[t].videos={}),r[t].videos.count=r[t].videos.count?r[t].videos.count+e:e,r):n}};n.d(e,"a",(function(){return d}));var l=function(t){return t?"&cursor=".concat(t):""},f=function(t){return Number.isInteger(t)?"&maxRatingValue=".concat(t):""},y=function(t,e){return"".concat(t).concat(e?":".concat(e):"")},p="_liteOwner,_isClickViewPlaylist",d={getPlaylist:function(t,e,n){return{url:"/api/objects/v1/playlists/".concat(t,"?query=").concat(i.a.PLAYLIST,",").concat(p),key:"playlist:".concat(t),success:e,error:n}},getSharedPlaylist:function(t,e,n,r){var o="/api/domain/v2/share/".concat(t);return{url:"".concat(o,"?query=").concat(i.a.PLAYLIST,"&virtualAssocs=").concat(p)+f(e),key:"shared:playlist:".concat(t),success:n,error:r}},getUserPlaylists:function(t){var e=t.sort,n=t.type;return{url:"/api/domain/v2/me/playlists/".concat(n,"?sort=").concat(e,"&query={limit:100}")+"".concat(i.a.PLAYLIST_COLLECTION,",").concat(p).concat(l(t.cursor)),key:t.toString()}},getPlaylistVideos:function(t,e,n){var r="orderBy:orderindex,limit:100";return Number.isInteger(e)&&(r+=",rating.value:0...".concat(e)),{url:"/api/domain/v2/objects/".concat(t,"/videos?query={").concat(r,"}")+"".concat(i.a.VIDEO_COLLECTION).concat(l(n)),key:y("playlist:".concat(t,":videos"),n)}},getSharedPlaylistVideos:function(t,e,n){return{url:"/api/domain/v2/share/".concat(t,"/videos?query={orderBy:orderindex,limit:100}")+"".concat(i.a.SHARED_PLAYLIST_VIDEO_COLLECTION)+"".concat(l(n)).concat(f(e)),key:y("shared:playlist:".concat(t,":videos"),n)}},getVideoPlaylists:function(t,e,n){return{url:"/api/domain/v2/objects/".concat(t,"/playlists?query={limit:100,owner.id:[").concat(e,"]}"),key:y("video:playlists:".concat(t),n)}},createPlaylist:function(t,e,n,r,i){return{key:"create:playlist",url:"/api/domain/v2/objects/".concat(t,"/playlists"),data:e,type:o.a.POST,success:n,error:r,always:i,invalidationKeys:"user:playlists"}},updatePlaylist:function(t,e,n,r,i){return{key:"update:playlist",url:"/api/domain/v2/objects/".concat(t),data:e,type:o.a.PUT,success:n,error:r,always:i}},deletePlaylist:function(t,e,n,r){return{key:"delete:playlist",url:"/api/domain/v2/objects/".concat(t),type:o.a.DELETE,success:e,error:n,always:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t),updateData:u("playlist:".concat(t))}}},addToPlaylist:function(t,e,n,r){var i=["user:playlists",new c.PlaylistVideoCollectionIdentifier(t).toString()];return e.forEach((function(t){i.push("video:playlists:".concat(t))})),{key:"add:to:playlist",url:"/api/domain/v2/objects/".concat(t,"/associate"),data:e,type:o.a.POST,success:n,error:r,invalidationKeys:i,updateState:{keys:"playlist:".concat(t),updateData:s("playlist:".concat(t),e.length)}}},reorderVideos:function(t,e,n,r){return{key:"reorder:playlist",url:"/api/domain/v2/objects/".concat(t,"/videos/reorder"),data:e,type:o.a.PUT,success:n,error:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t,":videos"),updateData:function(n){return a.a.updateState("playlist:".concat(t,":videos"),e,n)}}}},removePlaylistVideo:function(t,e,n,r){return{key:"remove:playlist:video",url:"/api/domain/v2/objects/".concat(t,"/dissociate?memberId=").concat(e),type:o.a.DELETE,success:n,error:r,invalidationKeys:["user:playlists","playlist:".concat(t,":videos")]}},getIsFollowingPlaylist:function(t,e){return{url:"/api/domain/v2/objects/".concat(e,"/followedPlaylists?query={id:").concat(t,"}"),key:"playlist:".concat(t,":following:").concat(e),formatData:function(e){var n;return{objectId:t,isFollowing:!!(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.length)}},normalize:!1}},followPlaylist:function(t,e,n,r,i){return{url:"/api/domain/v2/objects/".concat(e),key:"follow:playlist:".concat(t),data:{followedPlaylists:t},type:o.a.PUT,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:n,error:r,always:i}},unfollowPlaylist:function(t,e,n,r,i){return{url:"/api/domain/v2/objects/".concat(e,"/followedplaylists/").concat(t),key:"unfollow:playlist:".concat(t),type:o.a.DELETE,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:n,error:r,always:i}},getPlaylistPrivacy:function(t){return{key:"playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),formatData:function(e){return{id:t,privacy:e}}}},updatePlaylistPrivacy:function(t,e,n,r,i){return{key:"update:playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),type:o.a.PUT,data:{privacy:e},formatData:function(){return{id:t,privacy:e}},success:n,error:r,always:i}},getMigrationTask:function(t,e){return{url:"/api/playlist-app/migration-task",key:"migration:task",formatData:function(t){return t||{status:r.Processed}},success:t,error:e}}}},1190:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(122),o=n(69);function i(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var c={reorder:function(t,e,n){if(e===n)return{reorderedItems:t,reorderRequest:null};var o=r.a.moveItem(t,e,n),i=n<t.length-1?o[n+1].id:null;return{reorderedItems:o,reorderRequest:{sourceMemberId:o[n].id,destinationMemberId:i}}},updateState:function(t,e,n){for(var a=[],c=o.a.deepClone(n),u=[t],s=n[t],l=!!s&&!!s.data&&s.data.length;s&&Array.isArray(s.data);){a.push.apply(a,i(s.data));var f=s.pagination&&s.pagination.cursors&&s.pagination.cursors.next,y=!!f&&"".concat(t,":").concat(f);(s=f&&n[y])&&u.push(y)}if(!a.length)return n;var p=r.a.findIndex(a,(function(t){return t.id===e.sourceMemberId})),d=[].concat(a),g=d.splice(p,1),m=e.destinationMemberId?r.a.findIndex(d,(function(t){return t.id===e.destinationMemberId})):d.length;return d.splice(m,0,g[0]),u.forEach((function(t){var e=d.splice(0,l);c[t].data=e})),c}}},1191:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.OwnedByMe="owned_by_me",t.Followed="followed",t.All="all"}(r||(r={}))},1196:function(t,e,n){"use strict";var r=n(1174);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}));var o=n(1178);n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return o.a}))},1288:function(t,e,n){t.exports={inputWithoutHighlight:"-L0yF",suggestionsContainerOpen:"ahMdW",sectionContainer:"xstWL",suggestionHighlighted:"_3YTCa",inputContainer:"_1wn3m",clearButton:"_1BwBs",inputWithLeftIcon:"qxZOe",inputWithRightIcon:"_3U4W-",inputWithTwoRightIcons:"_2rgzF",iconContainer:"_1DLw5",leftIconContainer:"AZCtZ",rightIconContainer:"_1R52s"}},1350:function(t,e,n){"use strict";var r=n(0),o=n(1162),i=n(46),a=n(9),c=n(78),u=n(38),s=n(26),l=n(21),f=n(69),y=n(1181),p=n(1288),d=n.n(p);function g(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}(t)||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 m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v,b=[{empty:!0}];function S(t,e){return f.a.isObject(t)&&t.hasOwnProperty(e)&&y.a.isString(t[e])}function I(t,e,n){return function(r){var o=r.value;if(o.length||n(),!(o.length<t.activationLength)){if(t.local){var a=i.a.isFunction(t.getLocalSuggestions)?t.getLocalSuggestions(o,t.local):(u=o,f=t.local,p=t.valueKey,(d=u.trim().toLowerCase()).length?f.filter((function(t){return!(!S(t,p)||!y.a.isString(t[p]))&&t[p].trim().toLowerCase().includes(d)})):[]),c=!a.length&&t.getEmptyStateComponent;e((function(t){var e;return Object.assign(Object.assign({},t),(h(e={},v.Local,a),h(e,v.Empty,c?b:[]),e))}))}var u,f,p,d;t.getRemoteUrl&&function(t,e,n,r){var o=i.a.isFunction(t)&&t(e);o&&l.a.ajaxRequest({resource:o,type:s.a.GET,success:n,error:function(){},headers:r})}(t.getRemoteUrl,o,(function(n){var r=i.a.isFunction(t.formatRemoteSuggestions)?t.formatRemoteSuggestions(n):n,o=!r.length&&t.getEmptyStateComponent;e((function(t){var e;return Object.assign(Object.assign({},t),(h(e={},v.Remote,r),h(e,v.Empty,o?b:[]),e))}))}),t.requestHeaders)}}}function w(t,e,n,r,o,a,c){var u=function(e){return t[e]||[]},s=e?u(v.Recent):[],l=u(v.Local),f=u(v.Remote),y=u(v.Empty);if(y.length&&n)return[{data:y}];var p=[];s.length&&p.push({title:r,data:s});var d=[].concat(g(l),g(f));return d.length?(Number.isInteger(c)&&d.length>c&&(d=d.slice(0,c)),i.a.isFunction(a)?p.push.apply(p,g(a(d))):p.push({title:o,data:d}),p):p}function O(t){return t.data}function C(t){if(t.title)return r.createElement("div",{className:"px-2 pb-1"},r.createElement("strong",null,t.title))}function P(t){return{container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded ".concat(d.a.suggestionsContainerOpen),suggestionsList:"list-unstyled m-0",suggestion:"".concat(t?"":"cursor-pointer"," py-1 px-2"),suggestionHighlighted:t?"":d.a.suggestionHighlighted,sectionContainer:"border-bottom py-1 ".concat(d.a.sectionContainer)}}function E(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=P(e),r=Object.assign(n,t);return r}!function(t){t.Local="local",t.Recent="recent",t.Remote="remote",t.Empty="empty"}(v||(v={}));var j=n(68),k=n(17),R=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};function A(t,e,n,r){var o="form-control";return n||(o+=" ".concat(d.a.inputWithoutHighlight)),"left"===t&&(o+=" ".concat(d.a.inputWithLeftIcon)),("right"===t&&!e||"left"===t&&e)&&(o+=" ".concat(d.a.inputWithRightIcon)),"right"===t&&e&&(o+=" ".concat(d.a.inputWithTwoRightIcons)),r&&(o+="".concat(r)),o}function L(t){var e="d-inline-block svg-container";return i.a.isFunction(t)?e+" cursor-pointer":e}function _(t){var e=t.onClickSearchIcon,n=t.searchIconPlacement,o=t.showClearInputIcon,i=t.onClickClearInput,a=t.highlightOnFocus,c=t.className,u=R(t,["onClickSearchIcon","searchIconPlacement","showClearInputIcon","onClickClearInput","highlightOnFocus","className"]),s=function(){return r.createElement("div",{className:"d-inline-block"},r.createElement(j.a,{svgName:k.b.Search,size:j.b.Standard,onClick:e,className:L(e)}))};return r.createElement("div",{className:"position-relative ".concat(d.a.inputContainer)},"left"===n&&r.createElement("div",{className:"".concat(d.a.iconContainer," ").concat(d.a.leftIconContainer)},r.createElement(s,null)),r.createElement("input",Object.assign({className:A(n,o,a,c)},u)),("right"===n||!!o)&&r.createElement("div",{className:"".concat(d.a.iconContainer," ").concat(d.a.rightIconContainer)},!!o&&r.createElement((function(){return r.createElement("div",{className:"d-inline-block text-muted ".concat(d.a.clearButton)},r.createElement(j.a,{svgName:k.b.Close,size:j.b.Standard,onClick:i,className:L(i)}))}),null),"right"===n&&r.createElement(s,null)))}function T(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return F(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(t,e)}(t,e)||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 F(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return D}));var x=i.a.isFunction;function N(t){return t.renderAsForm?r.createElement("form",{onSubmit:t.onSubmit},t.children):r.createElement(r.Fragment,null,t.children)}function D(t){var e,n,s,l=(e=t.initialSuggestions,n=t.recentSearches,h(s={},v.Recent,n),h(s,v.Local,e),h(s,v.Remote,[]),h(s,v.Empty,[]),s),f=T(r.useState(t.initialQuery||""),2),y=f[0],p=f[1],d=T(r.useState(l),2),g=d[0],m=d[1],b=Object(c.a)(u.a.XS);r.useEffect((function(){var e=t.initialQuery||"";y!==e&&p(e)}),[t.initialQuery]);var P=function(){m(l)},j=function(e){e.preventDefault(),x(t.onSubmit)&&t.onSubmit(y)};return r.createElement(N,{onSubmit:j,renderAsForm:!!t.renderAsForm},r.createElement(o,Object.assign({suggestions:w(g,!y,!!t.getEmptyStateComponent,t.recentSearchHeading||a.a.getPhrase("shared.searchBar","recentSearchHeading"),t.suggestionsHeading,t.getSections,t.suggestionLimit),onSuggestionsFetchRequested:I(t,m,P),onSuggestionsClearRequested:function(){t.alwaysRenderSuggestions||P()},onSuggestionSelected:function(e,n){var r=n.suggestion;r.empty||(t.clearQueryOnSelect&&p(""),t.onSuggestionSelected(r))},getSuggestionValue:function(e){return t.updateQueryOnSelection?function(t,e){return S(e,t)?e[t]:""}(t.valueKey,e):y},renderSuggestion:function(e){return e&&e.empty?y.length>=t.activationLength&&i.a.isFunction(t.getEmptyStateComponent)?t.getEmptyStateComponent(y):r.createElement(r.Fragment,null):x(t.getSuggestionComponent)?t.getSuggestionComponent(e):function(t,e){return S(e,t)?r.createElement(r.Fragment,null,e[t]):r.createElement(r.Fragment,null)}(t.valueKey,e)},alwaysRenderSuggestions:t.alwaysRenderSuggestions,focusInputOnSuggestionClick:!b,inputProps:{placeholder:t.placeholder||a.a.getPhrase("shared.searchBar","placeholder"),value:y,onChange:function(e,n){var r=n.newValue;p(r),x(t.onQueryChange)&&t.onQueryChange(r)},onKeyDown:function(e){8===e.keyCode&&t.onBackspace&&!y&&t.onBackspace()},autoFocus:!!t.autoFocusInput,highlightOnFocus:t.highlightInputOnFocus,onClickSearchIcon:!!t.submitOnClickSearchIcon&&j,searchIconPlacement:t.searchIconPlacement,showClearInputIcon:!!t.showClearInputIcon&&!!y.length,onClickClearInput:function(){p(""),x(t.onClickClearInput)&&t.onClickClearInput()}},renderInputComponent:_,theme:E(t.theme,!!g.empty.find((function(t){return t.empty}))),multiSection:!0,renderSectionTitle:C,getSectionSuggestions:O},t.alwaysRenderSuggestionsOnInputFocus?{shouldRenderSuggestions:function(){return!0}}:{})))}D.defaultProps={updateQueryOnSelection:!0,valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialSuggestions:[],searchIconPlacement:"right",renderAsForm:!0}},1477:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={getRecentItem:function(t,e){var n=e.cacheGet(t);return Array.isArray(n)||(n=[]),n},setRecentItem:function(t,e,n){Array.isArray(e)&&n.cacheSet(t,e)},addRecentItem:function(t,e,n){var o=n.id,i=n.limit,a=void 0===i?5:i,c=r.getRecentItem(t,e),u=c.indexOf(o);return u>-1&&c.splice(u,1),c.unshift(o),c.length>a&&(c=c.slice(0,a)),r.setRecentItem(t,c,e),c}}}}]);
1
+ (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[11],{1170:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(223),o=n(64),i=n(78);function a(){var t=Object(r.a)(i.a.ALERT);return{success:function(e){t.success(e)()},error:function(e){t.error(e)()},warning:function(e){t.createAlert({type:o.a.Warning,heading:o.c.Warning,message:e})}}}},1174:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(330),o=n(133),i=n(1193);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(f,t);var e,n,r,a=l(f);function f(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.a.Newest,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.a.OwnedByMe;return c(this,f),(t=a.call(this,{collectionPrefix:"user:playlists",cursor:n,sort:e})).type=r,t}return e=f,(n=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&u(e.prototype,n),r&&u(e,r),f}(r.BaseCollectionIdentifier)},1176:function(t,e,n){"use strict";var r=n(1177);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}))},1177:function(t,e){},1180:function(t,e,n){"use strict";n(1174);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return o(this,n),e.call(this,{collectionPrefix:"playlist:videos",id:t,cursor:r})}return n}(n(330).BaseCollectionIdentifier);n.d(e,"a",(function(){return s}))},1182:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"a",(function(){return o}));var o={isNumber:function(t){return o.isType(t,"number")},isString:function(t){return o.isType(t,"string")},isType:function(t,e){return r(t)===e}}},1190:function(t,e,n){"use strict";var r,o=n(26),i=n(50),a=n(1192),c=n(1198);!function(t){t[t.Queued=1]="Queued",t[t.Processing=2]="Processing",t[t.Processed=3]="Processed",t[t.Errored=4]="Errored"}(r||(r={}));var u=function(t){return function(e){var n=Object.assign({},e);return n.hasOwnProperty(t)&&delete n[t],n}},s=function(t,e){return function(n){var r=Object.assign({},n);return r.hasOwnProperty(t)?(r[t].videos||(r[t].videos={}),r[t].videos.count=r[t].videos.count?r[t].videos.count+e:e,r):n}};n.d(e,"a",(function(){return d}));var l=function(t){return t?"&cursor=".concat(t):""},f=function(t){return Number.isInteger(t)?"&maxRatingValue=".concat(t):""},y=function(t,e){return"".concat(t).concat(e?":".concat(e):"")},p="_liteOwner,_isClickViewPlaylist",d={getPlaylist:function(t,e,n){return{url:"/api/objects/v1/playlists/".concat(t,"?query=").concat(i.a.PLAYLIST,",").concat(p),key:"playlist:".concat(t),success:e,error:n}},getSharedPlaylist:function(t,e,n,r){var o="/api/domain/v2/share/".concat(t);return{url:"".concat(o,"?query=").concat(i.a.PLAYLIST,"&virtualAssocs=").concat(p)+f(e),key:"shared:playlist:".concat(t),success:n,error:r}},getUserPlaylists:function(t){var e=t.sort,n=t.type;return{url:"/api/domain/v2/me/playlists/".concat(n,"?sort=").concat(e,"&query={limit:100}")+"".concat(i.a.PLAYLIST_COLLECTION,",").concat(p).concat(l(t.cursor)),key:t.toString()}},getPlaylistVideos:function(t,e,n){var r="orderBy:orderindex,limit:100";return Number.isInteger(e)&&(r+=",rating.value:0...".concat(e)),{url:"/api/domain/v2/objects/".concat(t,"/videos?query={").concat(r,"}")+"".concat(i.a.VIDEO_COLLECTION).concat(l(n)),key:y("playlist:".concat(t,":videos"),n)}},getSharedPlaylistVideos:function(t,e,n){return{url:"/api/domain/v2/share/".concat(t,"/videos?query={orderBy:orderindex,limit:100}")+"".concat(i.a.SHARED_PLAYLIST_VIDEO_COLLECTION)+"".concat(l(n)).concat(f(e)),key:y("shared:playlist:".concat(t,":videos"),n)}},getVideoPlaylists:function(t,e,n){return{url:"/api/domain/v2/objects/".concat(t,"/playlists?query={limit:100,owner.id:[").concat(e,"]}"),key:y("video:playlists:".concat(t),n)}},createPlaylist:function(t,e,n,r,i){return{key:"create:playlist",url:"/api/domain/v2/objects/".concat(t,"/playlists"),data:e,type:o.a.POST,success:n,error:r,always:i,invalidationKeys:"user:playlists"}},updatePlaylist:function(t,e,n,r,i){return{key:"update:playlist",url:"/api/domain/v2/objects/".concat(t),data:e,type:o.a.PUT,success:n,error:r,always:i}},deletePlaylist:function(t,e,n,r){return{key:"delete:playlist",url:"/api/domain/v2/objects/".concat(t),type:o.a.DELETE,success:e,error:n,always:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t),updateData:u("playlist:".concat(t))}}},addToPlaylist:function(t,e,n,r){var i=["user:playlists",new c.PlaylistVideoCollectionIdentifier(t).toString()];return e.forEach((function(t){i.push("video:playlists:".concat(t))})),{key:"add:to:playlist",url:"/api/domain/v2/objects/".concat(t,"/associate"),data:e,type:o.a.POST,success:n,error:r,invalidationKeys:i,updateState:{keys:"playlist:".concat(t),updateData:s("playlist:".concat(t),e.length)}}},reorderVideos:function(t,e,n,r){return{key:"reorder:playlist",url:"/api/domain/v2/objects/".concat(t,"/videos/reorder"),data:e,type:o.a.PUT,success:n,error:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t,":videos"),updateData:function(n){return a.a.updateState("playlist:".concat(t,":videos"),e,n)}}}},removePlaylistVideo:function(t,e,n,r){return{key:"remove:playlist:video",url:"/api/domain/v2/objects/".concat(t,"/dissociate?memberId=").concat(e),type:o.a.DELETE,success:n,error:r,invalidationKeys:["user:playlists","playlist:".concat(t,":videos")]}},getIsFollowingPlaylist:function(t,e){return{url:"/api/domain/v2/objects/".concat(e,"/followedPlaylists?query={id:").concat(t,"}"),key:"playlist:".concat(t,":following:").concat(e),formatData:function(e){var n;return{objectId:t,isFollowing:!!(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.length)}},normalize:!1}},followPlaylist:function(t,e,n,r,i){return{url:"/api/domain/v2/objects/".concat(e),key:"follow:playlist:".concat(t),data:{followedPlaylists:t},type:o.a.PUT,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:n,error:r,always:i}},unfollowPlaylist:function(t,e,n,r,i){return{url:"/api/domain/v2/objects/".concat(e,"/followedplaylists/").concat(t),key:"unfollow:playlist:".concat(t),type:o.a.DELETE,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:n,error:r,always:i}},getPlaylistPrivacy:function(t){return{key:"playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),formatData:function(e){return{id:t,privacy:e}}}},updatePlaylistPrivacy:function(t,e,n,r,i){return{key:"update:playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),type:o.a.PUT,data:{privacy:e},formatData:function(){return{id:t,privacy:e}},success:n,error:r,always:i}},getMigrationTask:function(t,e){return{url:"/api/playlist-app/migration-task",key:"migration:task",formatData:function(t){return t||{status:r.Processed}},success:t,error:e}}}},1192:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(122),o=n(69);function i(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var c={reorder:function(t,e,n){if(e===n)return{reorderedItems:t,reorderRequest:null};var o=r.a.moveItem(t,e,n),i=n<t.length-1?o[n+1].id:null;return{reorderedItems:o,reorderRequest:{sourceMemberId:o[n].id,destinationMemberId:i}}},updateState:function(t,e,n){for(var a=[],c=o.a.deepClone(n),u=[t],s=n[t],l=!!s&&!!s.data&&s.data.length;s&&Array.isArray(s.data);){a.push.apply(a,i(s.data));var f=s.pagination&&s.pagination.cursors&&s.pagination.cursors.next,y=!!f&&"".concat(t,":").concat(f);(s=f&&n[y])&&u.push(y)}if(!a.length)return n;var p=r.a.findIndex(a,(function(t){return t.id===e.sourceMemberId})),d=[].concat(a),g=d.splice(p,1),m=e.destinationMemberId?r.a.findIndex(d,(function(t){return t.id===e.destinationMemberId})):d.length;return d.splice(m,0,g[0]),u.forEach((function(t){var e=d.splice(0,l);c[t].data=e})),c}}},1193:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.OwnedByMe="owned_by_me",t.Followed="followed",t.All="all"}(r||(r={}))},1198:function(t,e,n){"use strict";var r=n(1176);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}));var o=n(1180);n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return o.a}))},1293:function(t,e,n){t.exports={inputWithoutHighlight:"-L0yF",suggestionsContainerOpen:"ahMdW",sectionContainer:"xstWL",suggestionHighlighted:"_3YTCa",inputContainer:"_1wn3m",clearButton:"_1BwBs",inputWithLeftIcon:"qxZOe",inputWithRightIcon:"_3U4W-",inputWithTwoRightIcons:"_2rgzF",iconContainer:"_1DLw5",leftIconContainer:"AZCtZ",rightIconContainer:"_1R52s"}},1359:function(t,e,n){"use strict";var r=n(0),o=n(1166),i=n(46),a=n(9),c=n(79),u=n(38),s=n(26),l=n(21),f=n(69),y=n(1182),p=n(1293),d=n.n(p);function g(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}(t)||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 m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v,b=[{empty:!0}];function S(t,e){return f.a.isObject(t)&&t.hasOwnProperty(e)&&y.a.isString(t[e])}function I(t,e,n){return function(r){var o=r.value;if(o.length||n(),!(o.length<t.activationLength)){if(t.local){var a=i.a.isFunction(t.getLocalSuggestions)?t.getLocalSuggestions(o,t.local):(u=o,f=t.local,p=t.valueKey,(d=u.trim().toLowerCase()).length?f.filter((function(t){return!(!S(t,p)||!y.a.isString(t[p]))&&t[p].trim().toLowerCase().includes(d)})):[]),c=!a.length&&t.getEmptyStateComponent;e((function(t){var e;return Object.assign(Object.assign({},t),(h(e={},v.Local,a),h(e,v.Empty,c?b:[]),e))}))}var u,f,p,d;t.getRemoteUrl&&function(t,e,n,r){var o=i.a.isFunction(t)&&t(e);o&&l.a.ajaxRequest({resource:o,type:s.a.GET,success:n,error:function(){},headers:r})}(t.getRemoteUrl,o,(function(n){var r=i.a.isFunction(t.formatRemoteSuggestions)?t.formatRemoteSuggestions(n):n,o=!r.length&&t.getEmptyStateComponent;e((function(t){var e;return Object.assign(Object.assign({},t),(h(e={},v.Remote,r),h(e,v.Empty,o?b:[]),e))}))}),t.requestHeaders)}}}function w(t,e,n,r,o,a,c){var u=function(e){return t[e]||[]},s=e?u(v.Recent):[],l=u(v.Local),f=u(v.Remote),y=u(v.Empty);if(y.length&&n)return[{data:y}];var p=[];s.length&&p.push({title:r,data:s});var d=[].concat(g(l),g(f));return d.length?(Number.isInteger(c)&&d.length>c&&(d=d.slice(0,c)),i.a.isFunction(a)?p.push.apply(p,g(a(d))):p.push({title:o,data:d}),p):p}function O(t){return t.data}function C(t){if(t.title)return r.createElement("div",{className:"px-2 pb-1"},r.createElement("strong",null,t.title))}function P(t){return{container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded ".concat(d.a.suggestionsContainerOpen),suggestionsList:"list-unstyled m-0",suggestion:"".concat(t?"":"cursor-pointer"," py-1 px-2"),suggestionHighlighted:t?"":d.a.suggestionHighlighted,sectionContainer:"border-bottom py-1 ".concat(d.a.sectionContainer)}}function E(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=P(e),r=Object.assign(n,t);return r}!function(t){t.Local="local",t.Recent="recent",t.Remote="remote",t.Empty="empty"}(v||(v={}));var j=n(68),k=n(17),R=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};function A(t,e,n,r){var o="form-control";return n||(o+=" ".concat(d.a.inputWithoutHighlight)),"left"===t&&(o+=" ".concat(d.a.inputWithLeftIcon)),("right"===t&&!e||"left"===t&&e)&&(o+=" ".concat(d.a.inputWithRightIcon)),"right"===t&&e&&(o+=" ".concat(d.a.inputWithTwoRightIcons)),r&&(o+="".concat(r)),o}function L(t){var e="d-inline-block svg-container";return i.a.isFunction(t)?e+" cursor-pointer":e}function _(t){var e=t.onClickSearchIcon,n=t.searchIconPlacement,o=t.showClearInputIcon,i=t.onClickClearInput,a=t.highlightOnFocus,c=t.className,u=R(t,["onClickSearchIcon","searchIconPlacement","showClearInputIcon","onClickClearInput","highlightOnFocus","className"]),s=function(){return r.createElement("div",{className:"d-inline-block"},r.createElement(j.a,{svgName:k.b.Search,size:j.b.Standard,onClick:e,className:L(e)}))};return r.createElement("div",{className:"position-relative ".concat(d.a.inputContainer)},"left"===n&&r.createElement("div",{className:"".concat(d.a.iconContainer," ").concat(d.a.leftIconContainer)},r.createElement(s,null)),r.createElement("input",Object.assign({className:A(n,o,a,c)},u)),("right"===n||!!o)&&r.createElement("div",{className:"".concat(d.a.iconContainer," ").concat(d.a.rightIconContainer)},!!o&&r.createElement((function(){return r.createElement("div",{className:"d-inline-block text-muted ".concat(d.a.clearButton)},r.createElement(j.a,{svgName:k.b.Close,size:j.b.Standard,onClick:i,className:L(i)}))}),null),"right"===n&&r.createElement(s,null)))}function T(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return F(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(t,e)}(t,e)||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 F(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return D}));var x=i.a.isFunction;function N(t){return t.renderAsForm?r.createElement("form",{onSubmit:t.onSubmit},t.children):r.createElement(r.Fragment,null,t.children)}function D(t){var e,n,s,l=(e=t.initialSuggestions,n=t.recentSearches,h(s={},v.Recent,n),h(s,v.Local,e),h(s,v.Remote,[]),h(s,v.Empty,[]),s),f=T(r.useState(t.initialQuery||""),2),y=f[0],p=f[1],d=T(r.useState(l),2),g=d[0],m=d[1],b=Object(c.a)(u.a.XS);r.useEffect((function(){var e=t.initialQuery||"";y!==e&&p(e)}),[t.initialQuery]);var P=function(){m(l)},j=function(e){e.preventDefault(),x(t.onSubmit)&&t.onSubmit(y)};return r.createElement(N,{onSubmit:j,renderAsForm:!!t.renderAsForm},r.createElement(o,Object.assign({suggestions:w(g,!y,!!t.getEmptyStateComponent,t.recentSearchHeading||a.a.getPhrase("shared.searchBar","recentSearchHeading"),t.suggestionsHeading,t.getSections,t.suggestionLimit),onSuggestionsFetchRequested:I(t,m,P),onSuggestionsClearRequested:function(){t.alwaysRenderSuggestions||P()},onSuggestionSelected:function(e,n){var r=n.suggestion;r.empty||(t.clearQueryOnSelect&&p(""),t.onSuggestionSelected(r))},getSuggestionValue:function(e){return t.updateQueryOnSelection?function(t,e){return S(e,t)?e[t]:""}(t.valueKey,e):y},renderSuggestion:function(e){return e&&e.empty?y.length>=t.activationLength&&i.a.isFunction(t.getEmptyStateComponent)?t.getEmptyStateComponent(y):r.createElement(r.Fragment,null):x(t.getSuggestionComponent)?t.getSuggestionComponent(e):function(t,e){return S(e,t)?r.createElement(r.Fragment,null,e[t]):r.createElement(r.Fragment,null)}(t.valueKey,e)},alwaysRenderSuggestions:t.alwaysRenderSuggestions,focusInputOnSuggestionClick:!b,inputProps:{placeholder:t.placeholder||a.a.getPhrase("shared.searchBar","placeholder"),value:y,onChange:function(e,n){var r=n.newValue;p(r),x(t.onQueryChange)&&t.onQueryChange(r)},onKeyDown:function(e){8===e.keyCode&&t.onBackspace&&!y&&t.onBackspace()},autoFocus:!!t.autoFocusInput,highlightOnFocus:t.highlightInputOnFocus,onClickSearchIcon:!!t.submitOnClickSearchIcon&&j,searchIconPlacement:t.searchIconPlacement,showClearInputIcon:!!t.showClearInputIcon&&!!y.length,onClickClearInput:function(){p(""),x(t.onClickClearInput)&&t.onClickClearInput()}},renderInputComponent:_,theme:E(t.theme,!!g.empty.find((function(t){return t.empty}))),multiSection:!0,renderSectionTitle:C,getSectionSuggestions:O},t.alwaysRenderSuggestionsOnInputFocus?{shouldRenderSuggestions:function(){return!0}}:{})))}D.defaultProps={updateQueryOnSelection:!0,valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialSuggestions:[],searchIconPlacement:"right",renderAsForm:!0}},1483:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={getRecentItem:function(t,e){var n=e.cacheGet(t);return Array.isArray(n)||(n=[]),n},setRecentItem:function(t,e,n){Array.isArray(e)&&n.cacheSet(t,e)},addRecentItem:function(t,e,n){var o=n.id,i=n.limit,a=void 0===i?5:i,c=r.getRecentItem(t,e),u=c.indexOf(o);return u>-1&&c.splice(u,1),c.unshift(o),c.length>a&&(c=c.slice(0,a)),r.setRecentItem(t,c,e),c}}}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[12],{1170:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(223),a=n(64),o=n(78);function i(){var t=Object(r.a)(o.a.ALERT);return{success:function(e){t.success(e)()},error:function(e){t.error(e)()},warning:function(e){t.createAlert({type:a.a.Warning,heading:a.c.Warning,message:e})}}}},1174:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(330),a=n(133),o=n(1193);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(f,t);var e,n,r,i=s(f);function f(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a.Newest,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.a.OwnedByMe;return c(this,f),(t=i.call(this,{collectionPrefix:"user:playlists",cursor:n,sort:e})).type=r,t}return e=f,(n=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&l(e.prototype,n),r&&l(e,r),f}(r.BaseCollectionIdentifier)},1175:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u}));var r=n(0),a=n(1171),o=n(46),i=n(69),c=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]])}return n};function l(t){var e=t.castInitialValues,n=t.castValuesOnSubmit,l=t.initialValues,u=t.onSubmit,s=t.resetOnSubmit,f=c(t,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit","resetOnSubmit"]),y=e&&t.validationSchema?t.validationSchema.cast(function t(e){var n=i.a.deepClone(e);return Object.keys(n).forEach((function(e){n.hasOwnProperty(e)&&(i.a.isObject(n[e])?n[e]=t(n[e]):null===n[e]&&delete n[e])})),n}(l)):l,d={allowInitialSubmit:t.allowInitialSubmit};return r.createElement(a.d,Object.assign({enableReinitialize:!0},f,{initialValues:y,onSubmit:function(e,r){var a=r.setSubmitting,o=r.resetForm,i=n&&t.validationSchema?t.validationSchema.cast(e):e;u(i,(function(){s&&o(),a(!1)}))},initialStatus:d}),o.a.isFunction(t.children)?function(e){return t.children(e)}:r.Children.count(t.children)?t.children:null)}function u(){return Object(a.f)()}l.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},1176:function(t,e,n){"use strict";var r=n(1177);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}))},1177:function(t,e){},1180:function(t,e,n){"use strict";n(1174);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var a=l(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(n,t);var e=i(n);function n(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return a(this,n),e.call(this,{collectionPrefix:"playlist:videos",id:t,cursor:r})}return n}(n(330).BaseCollectionIdentifier);n.d(e,"a",(function(){return u}))},1184:function(t,e,n){"use strict";var r=n(0),a=n(1171),o=n(43);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,e)||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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var l=n(108);n.d(e,"a",(function(){return u}));function u(t){var e=Object(a.f)(),n=function(t){var e,n=i(r.useState(!1),2),a=n[0],o=n[1];return r.useEffect((function(){var e;t.isValid&&(t.dirty||(null===(e=t.initialStatus)||void 0===e?void 0:e.allowInitialSubmit))?o(!0):o(!1)}),[t.isValid,null===(e=t.initialStatus)||void 0===e?void 0:e.allowInitialSubmit,t.dirty,t.values]),r.useEffect((function(){t.isSubmitting&&o(!1)}),[t.isSubmitting]),a}(e);return r.createElement(o.Button,{variant:t.variant||"primary",type:"submit",disabled:!n},e.isSubmitting?r.createElement(o.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):t.submitText?r.createElement(r.Fragment,null,t.submitText):r.createElement(l.b,{namespace:"shared.formButtons",phrase:t.isNew?"create":"save"}))}},1189:function(t,e,n){"use strict";var r=n(0),a=n(1171),o=n(43),i=n(46),c=function(t,e,n,r){var o="form-control";return Object(a.e)(e,n)&&Object(a.e)(t,n)&&(o+=" is-invalid"),r&&(o+=" ".concat(r)),o};function l(t){var e=Object(a.f)().values[t.fieldName];return"string"!=typeof e?r.createElement(r.Fragment,null):r.createElement("div",{className:"float-right text-muted"},e.length,"/",t.limit)}var u=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]])}return n};function s(t){var e=t.label,n=u(t,["label"]);return r.createElement(o.Form.Group,null,r.createElement("div",{className:"custom-control custom-checkbox"},r.createElement(y,Object.assign({className:"custom-control-input"},n)),r.createElement(o.Form.Label,{className:"custom-control-label",htmlFor:n.id},e)))}n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return d}));var f=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]])}return n};function y(t){var e=t.children,n=f(t,["children"]);return r.createElement(a.b,Object.assign({},n),i.a.isFunction(e)?function(t){return e(t)}:r.Children.count(e)?e:null)}function d(t){var e=t.label,n=t.className,i=t.showCharacterCounter,u=f(t,["label","className","showCharacterCounter"]),d=Object(a.f)(),p=d.errors,m=d.touched;return"checkbox"===u.type?r.createElement(s,Object.assign({},t)):r.createElement(o.Form.Group,null,!!e&&r.createElement(o.Form.Label,{htmlFor:u.id},e),r.createElement(y,Object.assign({className:c(p,m,u.name,n)},u)),!!i&&!!u.maxLength&&r.createElement(l,{fieldName:u.name,limit:u.maxLength}),r.createElement(a.a,{name:u.name},(function(t){return r.createElement(o.Form.Control.Feedback,{type:"invalid"},t)})))}},1190:function(t,e,n){"use strict";var r,a=n(26),o=n(50),i=n(1192),c=n(1198);!function(t){t[t.Queued=1]="Queued",t[t.Processing=2]="Processing",t[t.Processed=3]="Processed",t[t.Errored=4]="Errored"}(r||(r={}));var l=function(t){return function(e){var n=Object.assign({},e);return n.hasOwnProperty(t)&&delete n[t],n}},u=function(t,e){return function(n){var r=Object.assign({},n);return r.hasOwnProperty(t)?(r[t].videos||(r[t].videos={}),r[t].videos.count=r[t].videos.count?r[t].videos.count+e:e,r):n}};n.d(e,"a",(function(){return p}));var s=function(t){return t?"&cursor=".concat(t):""},f=function(t){return Number.isInteger(t)?"&maxRatingValue=".concat(t):""},y=function(t,e){return"".concat(t).concat(e?":".concat(e):"")},d="_liteOwner,_isClickViewPlaylist",p={getPlaylist:function(t,e,n){return{url:"/api/objects/v1/playlists/".concat(t,"?query=").concat(o.a.PLAYLIST,",").concat(d),key:"playlist:".concat(t),success:e,error:n}},getSharedPlaylist:function(t,e,n,r){var a="/api/domain/v2/share/".concat(t);return{url:"".concat(a,"?query=").concat(o.a.PLAYLIST,"&virtualAssocs=").concat(d)+f(e),key:"shared:playlist:".concat(t),success:n,error:r}},getUserPlaylists:function(t){var e=t.sort,n=t.type;return{url:"/api/domain/v2/me/playlists/".concat(n,"?sort=").concat(e,"&query={limit:100}")+"".concat(o.a.PLAYLIST_COLLECTION,",").concat(d).concat(s(t.cursor)),key:t.toString()}},getPlaylistVideos:function(t,e,n){var r="orderBy:orderindex,limit:100";return Number.isInteger(e)&&(r+=",rating.value:0...".concat(e)),{url:"/api/domain/v2/objects/".concat(t,"/videos?query={").concat(r,"}")+"".concat(o.a.VIDEO_COLLECTION).concat(s(n)),key:y("playlist:".concat(t,":videos"),n)}},getSharedPlaylistVideos:function(t,e,n){return{url:"/api/domain/v2/share/".concat(t,"/videos?query={orderBy:orderindex,limit:100}")+"".concat(o.a.SHARED_PLAYLIST_VIDEO_COLLECTION)+"".concat(s(n)).concat(f(e)),key:y("shared:playlist:".concat(t,":videos"),n)}},getVideoPlaylists:function(t,e,n){return{url:"/api/domain/v2/objects/".concat(t,"/playlists?query={limit:100,owner.id:[").concat(e,"]}"),key:y("video:playlists:".concat(t),n)}},createPlaylist:function(t,e,n,r,o){return{key:"create:playlist",url:"/api/domain/v2/objects/".concat(t,"/playlists"),data:e,type:a.a.POST,success:n,error:r,always:o,invalidationKeys:"user:playlists"}},updatePlaylist:function(t,e,n,r,o){return{key:"update:playlist",url:"/api/domain/v2/objects/".concat(t),data:e,type:a.a.PUT,success:n,error:r,always:o}},deletePlaylist:function(t,e,n,r){return{key:"delete:playlist",url:"/api/domain/v2/objects/".concat(t),type:a.a.DELETE,success:e,error:n,always:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t),updateData:l("playlist:".concat(t))}}},addToPlaylist:function(t,e,n,r){var o=["user:playlists",new c.PlaylistVideoCollectionIdentifier(t).toString()];return e.forEach((function(t){o.push("video:playlists:".concat(t))})),{key:"add:to:playlist",url:"/api/domain/v2/objects/".concat(t,"/associate"),data:e,type:a.a.POST,success:n,error:r,invalidationKeys:o,updateState:{keys:"playlist:".concat(t),updateData:u("playlist:".concat(t),e.length)}}},reorderVideos:function(t,e,n,r){return{key:"reorder:playlist",url:"/api/domain/v2/objects/".concat(t,"/videos/reorder"),data:e,type:a.a.PUT,success:n,error:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t,":videos"),updateData:function(n){return i.a.updateState("playlist:".concat(t,":videos"),e,n)}}}},removePlaylistVideo:function(t,e,n,r){return{key:"remove:playlist:video",url:"/api/domain/v2/objects/".concat(t,"/dissociate?memberId=").concat(e),type:a.a.DELETE,success:n,error:r,invalidationKeys:["user:playlists","playlist:".concat(t,":videos")]}},getIsFollowingPlaylist:function(t,e){return{url:"/api/domain/v2/objects/".concat(e,"/followedPlaylists?query={id:").concat(t,"}"),key:"playlist:".concat(t,":following:").concat(e),formatData:function(e){var n;return{objectId:t,isFollowing:!!(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.length)}},normalize:!1}},followPlaylist:function(t,e,n,r,o){return{url:"/api/domain/v2/objects/".concat(e),key:"follow:playlist:".concat(t),data:{followedPlaylists:t},type:a.a.PUT,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:n,error:r,always:o}},unfollowPlaylist:function(t,e,n,r,o){return{url:"/api/domain/v2/objects/".concat(e,"/followedplaylists/").concat(t),key:"unfollow:playlist:".concat(t),type:a.a.DELETE,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:n,error:r,always:o}},getPlaylistPrivacy:function(t){return{key:"playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),formatData:function(e){return{id:t,privacy:e}}}},updatePlaylistPrivacy:function(t,e,n,r,o){return{key:"update:playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),type:a.a.PUT,data:{privacy:e},formatData:function(){return{id:t,privacy:e}},success:n,error:r,always:o}},getMigrationTask:function(t,e){return{url:"/api/playlist-app/migration-task",key:"migration:task",formatData:function(t){return t||{status:r.Processed}},success:t,error:e}}}},1192:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(122),a=n(69);function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var c={reorder:function(t,e,n){if(e===n)return{reorderedItems:t,reorderRequest:null};var a=r.a.moveItem(t,e,n),o=n<t.length-1?a[n+1].id:null;return{reorderedItems:a,reorderRequest:{sourceMemberId:a[n].id,destinationMemberId:o}}},updateState:function(t,e,n){for(var i=[],c=a.a.deepClone(n),l=[t],u=n[t],s=!!u&&!!u.data&&u.data.length;u&&Array.isArray(u.data);){i.push.apply(i,o(u.data));var f=u.pagination&&u.pagination.cursors&&u.pagination.cursors.next,y=!!f&&"".concat(t,":").concat(f);(u=f&&n[y])&&l.push(y)}if(!i.length)return n;var d=r.a.findIndex(i,(function(t){return t.id===e.sourceMemberId})),p=[].concat(i),m=p.splice(d,1),v=e.destinationMemberId?r.a.findIndex(p,(function(t){return t.id===e.destinationMemberId})):p.length;return p.splice(v,0,m[0]),l.forEach((function(t){var e=p.splice(0,s);c[t].data=e})),c}}},1193:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.OwnedByMe="owned_by_me",t.Followed="followed",t.All="all"}(r||(r={}))},1198:function(t,e,n){"use strict";var r=n(1176);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}));var a=n(1180);n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return a.a}))},1530:function(t,e,n){"use strict";var r=n(0),a=n(1171),o=n(9),i=n(108),c=n(1175),l=n(1189),u=n(1184),s=n(1228),f="playlists.validation",y=s.object().shape({name:s.string().max(250,(function(){return o.a.getPhrase(f,"nameExceeds")})).required((function(){return o.a.getPhrase(f,"nameRequired")})),description:s.string().max(65535,(function(){return o.a.getPhrase(f,"descriptionExceeds")}))});n.d(e,"a",(function(){return m}));var d=o.a.encloseNamespace("playlists.playlistDetails");function p(t){var e=Object(c.b)();return r.createElement(a.c,null,r.createElement(l.b,{label:d("nameLabel"),type:"text",name:"name",id:"name",placeholder:d("namePlaceholder"),autoFocus:!0,value:e.values.name}),r.createElement(l.b,{label:d("descriptionLabel"),component:"textarea",name:"description",id:"description",placeholder:d("descriptionPlaceholder"),value:e.values.description}),r.createElement("div",{className:"btn-container d-flex justify-content-end"},r.createElement("button",{type:"button",className:"btn btn-".concat(t.cancelButtonClass," mr-2"),onClick:t.onClickCancel},r.createElement(i.b,{namespace:"playlists.playlistDetails",phrase:"cancel"})),r.createElement(u.a,{isNew:t.isNew})))}function m(t){var e=t.playlist,n=(e=void 0===e?{}:e).name,a=void 0===n?"":n,o=e.description,i=void 0===o?"":o,l=e.id,u=void 0===l?null:l,s=t.savePlaylist,f=t.onClickCancel,d=t.cancelButtonClass;return r.createElement(c.a,{initialValues:{name:a,description:i},validationSchema:y,onSubmit:s},r.createElement(p,{isNew:!u,onClickCancel:f,cancelButtonClass:d}))}}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[13],{1174:function(t,e,r){"use strict";r.d(e,"a",(function(){return y}));var n=r(330),o=r(133),a=r(1193);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=f(t);if(e){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return d(this,r)}}function d(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(d,t);var e,r,n,i=s(d);function d(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.a.Newest,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.a.OwnedByMe;return c(this,d),(t=i.call(this,{collectionPrefix:"user:playlists",cursor:r,sort:e})).type=n,t}return e=d,(r=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&u(e.prototype,r),n&&u(e,n),d}(n.BaseCollectionIdentifier)},1176:function(t,e,r){"use strict";var n=r(1177);r.o(n,"PlaylistVideoCollectionIdentifier")&&r.d(e,"PlaylistVideoCollectionIdentifier",(function(){return n.PlaylistVideoCollectionIdentifier}))},1177:function(t,e){},1180:function(t,e,r){"use strict";r(1174);function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=u(t);if(e){var o=u(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return c(this,r)}}function c(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(r,t);var e=i(r);function r(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return o(this,r),e.call(this,{collectionPrefix:"playlist:videos",id:t,cursor:n})}return r}(r(330).BaseCollectionIdentifier);r.d(e,"a",(function(){return l}))},1190:function(t,e,r){"use strict";var n,o=r(26),a=r(50),i=r(1192),c=r(1198);!function(t){t[t.Queued=1]="Queued",t[t.Processing=2]="Processing",t[t.Processed=3]="Processed",t[t.Errored=4]="Errored"}(n||(n={}));var u=function(t){return function(e){var r=Object.assign({},e);return r.hasOwnProperty(t)&&delete r[t],r}},l=function(t,e){return function(r){var n=Object.assign({},r);return n.hasOwnProperty(t)?(n[t].videos||(n[t].videos={}),n[t].videos.count=n[t].videos.count?n[t].videos.count+e:e,n):r}};r.d(e,"a",(function(){return p}));var s=function(t){return t?"&cursor=".concat(t):""},d=function(t){return Number.isInteger(t)?"&maxRatingValue=".concat(t):""},f=function(t,e){return"".concat(t).concat(e?":".concat(e):"")},y="_liteOwner,_isClickViewPlaylist",p={getPlaylist:function(t,e,r){return{url:"/api/objects/v1/playlists/".concat(t,"?query=").concat(a.a.PLAYLIST,",").concat(y),key:"playlist:".concat(t),success:e,error:r}},getSharedPlaylist:function(t,e,r,n){var o="/api/domain/v2/share/".concat(t);return{url:"".concat(o,"?query=").concat(a.a.PLAYLIST,"&virtualAssocs=").concat(y)+d(e),key:"shared:playlist:".concat(t),success:r,error:n}},getUserPlaylists:function(t){var e=t.sort,r=t.type;return{url:"/api/domain/v2/me/playlists/".concat(r,"?sort=").concat(e,"&query={limit:100}")+"".concat(a.a.PLAYLIST_COLLECTION,",").concat(y).concat(s(t.cursor)),key:t.toString()}},getPlaylistVideos:function(t,e,r){var n="orderBy:orderindex,limit:100";return Number.isInteger(e)&&(n+=",rating.value:0...".concat(e)),{url:"/api/domain/v2/objects/".concat(t,"/videos?query={").concat(n,"}")+"".concat(a.a.VIDEO_COLLECTION).concat(s(r)),key:f("playlist:".concat(t,":videos"),r)}},getSharedPlaylistVideos:function(t,e,r){return{url:"/api/domain/v2/share/".concat(t,"/videos?query={orderBy:orderindex,limit:100}")+"".concat(a.a.SHARED_PLAYLIST_VIDEO_COLLECTION)+"".concat(s(r)).concat(d(e)),key:f("shared:playlist:".concat(t,":videos"),r)}},getVideoPlaylists:function(t,e,r){return{url:"/api/domain/v2/objects/".concat(t,"/playlists?query={limit:100,owner.id:[").concat(e,"]}"),key:f("video:playlists:".concat(t),r)}},createPlaylist:function(t,e,r,n,a){return{key:"create:playlist",url:"/api/domain/v2/objects/".concat(t,"/playlists"),data:e,type:o.a.POST,success:r,error:n,always:a,invalidationKeys:"user:playlists"}},updatePlaylist:function(t,e,r,n,a){return{key:"update:playlist",url:"/api/domain/v2/objects/".concat(t),data:e,type:o.a.PUT,success:r,error:n,always:a}},deletePlaylist:function(t,e,r,n){return{key:"delete:playlist",url:"/api/domain/v2/objects/".concat(t),type:o.a.DELETE,success:e,error:r,always:n,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t),updateData:u("playlist:".concat(t))}}},addToPlaylist:function(t,e,r,n){var a=["user:playlists",new c.PlaylistVideoCollectionIdentifier(t).toString()];return e.forEach((function(t){a.push("video:playlists:".concat(t))})),{key:"add:to:playlist",url:"/api/domain/v2/objects/".concat(t,"/associate"),data:e,type:o.a.POST,success:r,error:n,invalidationKeys:a,updateState:{keys:"playlist:".concat(t),updateData:l("playlist:".concat(t),e.length)}}},reorderVideos:function(t,e,r,n){return{key:"reorder:playlist",url:"/api/domain/v2/objects/".concat(t,"/videos/reorder"),data:e,type:o.a.PUT,success:r,error:n,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t,":videos"),updateData:function(r){return i.a.updateState("playlist:".concat(t,":videos"),e,r)}}}},removePlaylistVideo:function(t,e,r,n){return{key:"remove:playlist:video",url:"/api/domain/v2/objects/".concat(t,"/dissociate?memberId=").concat(e),type:o.a.DELETE,success:r,error:n,invalidationKeys:["user:playlists","playlist:".concat(t,":videos")]}},getIsFollowingPlaylist:function(t,e){return{url:"/api/domain/v2/objects/".concat(e,"/followedPlaylists?query={id:").concat(t,"}"),key:"playlist:".concat(t,":following:").concat(e),formatData:function(e){var r;return{objectId:t,isFollowing:!!(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.length)}},normalize:!1}},followPlaylist:function(t,e,r,n,a){return{url:"/api/domain/v2/objects/".concat(e),key:"follow:playlist:".concat(t),data:{followedPlaylists:t},type:o.a.PUT,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:r,error:n,always:a}},unfollowPlaylist:function(t,e,r,n,a){return{url:"/api/domain/v2/objects/".concat(e,"/followedplaylists/").concat(t),key:"unfollow:playlist:".concat(t),type:o.a.DELETE,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:r,error:n,always:a}},getPlaylistPrivacy:function(t){return{key:"playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),formatData:function(e){return{id:t,privacy:e}}}},updatePlaylistPrivacy:function(t,e,r,n,a){return{key:"update:playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),type:o.a.PUT,data:{privacy:e},formatData:function(){return{id:t,privacy:e}},success:r,error:n,always:a}},getMigrationTask:function(t,e){return{url:"/api/playlist-app/migration-task",key:"migration:task",formatData:function(t){return t||{status:n.Processed}},success:t,error:e}}}},1191:function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var n=r(26),o=r(50);function a(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return{url:"{gateway}/v1/objects/".concat(e),key:"favourite:video:".concat(e,":").concat(t),data:{favouriteVideos:t},type:n.a.PUT,invalidationKeys:["favourite:videos:".concat(e),"video:is:favourited:".concat(e)].concat(a(i)),success:r,error:o}}function u(t,e,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return{url:"{gateway}/v1/objects/".concat(e,"/favouriteVideos?memberId=").concat(t),key:"favourite:video:".concat(e,":").concat(t),type:n.a.DELETE,invalidationKeys:["favourite:videos:".concat(e),"video:is:favourited:".concat(e)].concat(a(i)),success:r,error:o}}var l={favouriteVideos:function(t,e){return{url:"{gateway}/v1/objects/".concat(t,"/favouriteVideos?query=").concat(o.b.VideoCollectionWithAssocs(t,!0)).concat(s(e)),key:"favourite:videos:".concat(t).concat(e?":".concat(e):"")}},updateIsVideoFavourited:function(t,e,r,n,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],i=r?c:u;return i(t,e,n,o,a)},isFavourited:function(t,e){var r=e.slice().sort(),n=r.map((function(t){return"id=".concat(t)}));if(n.length)return{url:"{gateway}/v1/objects?query=favouritedBy{id:".concat(t,"}&").concat(n.join("&")),key:"video:is:favourited:".concat(t,":by:id:").concat(r.join(","))}}};function s(t){return t?"&cursor=".concat(t):""}},1192:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(122),o=r(69);function a(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var c={reorder:function(t,e,r){if(e===r)return{reorderedItems:t,reorderRequest:null};var o=n.a.moveItem(t,e,r),a=r<t.length-1?o[r+1].id:null;return{reorderedItems:o,reorderRequest:{sourceMemberId:o[r].id,destinationMemberId:a}}},updateState:function(t,e,r){for(var i=[],c=o.a.deepClone(r),u=[t],l=r[t],s=!!l&&!!l.data&&l.data.length;l&&Array.isArray(l.data);){i.push.apply(i,a(l.data));var d=l.pagination&&l.pagination.cursors&&l.pagination.cursors.next,f=!!d&&"".concat(t,":").concat(d);(l=d&&r[f])&&u.push(f)}if(!i.length)return r;var y=n.a.findIndex(i,(function(t){return t.id===e.sourceMemberId})),p=[].concat(i),v=p.splice(y,1),m=e.destinationMemberId?n.a.findIndex(p,(function(t){return t.id===e.destinationMemberId})):p.length;return p.splice(m,0,v[0]),u.forEach((function(t){var e=p.splice(0,s);c[t].data=e})),c}}},1193:function(t,e,r){"use strict";var n;r.d(e,"a",(function(){return n})),function(t){t.OwnedByMe="owned_by_me",t.Followed="followed",t.All="all"}(n||(n={}))},1198:function(t,e,r){"use strict";var n=r(1176);r.o(n,"PlaylistVideoCollectionIdentifier")&&r.d(e,"PlaylistVideoCollectionIdentifier",(function(){return n.PlaylistVideoCollectionIdentifier}));var o=r(1180);r.d(e,"PlaylistVideoCollectionIdentifier",(function(){return o.a}))},1400:function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(2),o=r(177),a=r(175),i=r(350),c=r(351),u=r(352),l={notFound:a.a,forbidden:{rating:c.a,yearLevel:c.a,region:u.a,privacy:c.a},badRequest:i.a};function s(t,e){var r=Object.assign(Object.assign({},l),e);t.statusCode&&t.statusCode!==o.a.Ok&&(t.statusCode!==o.a.NotFound?t.statusCode!==o.a.Forbidden?n.a.ErrorHelper.throw(new r.badRequest):n.a.ErrorHelper.throw(new r.forbidden.privacy):n.a.ErrorHelper.throw(new r.notFound))}},1902:function(t,e,r){"use strict";r.r(e);var n=r(0),o=r(83),a=r(21),i=r(74),c=r(70),u=r(1191),l=(r(26),r(84)),s=function(t,e){return{url:l.a.urlBuilder("/api/domain/v1/themes",{name:t,type:e}),key:"themes:".concat(t,":").concat(e)}},d=r(1224),f=r(329),y=r(47),p=r(3),v=r(1170),m=r(9),b=r(333),h=r(1528),g=r(60),w=r(485),P=r(486),O=r(1400),j=r(151),I=r(174),S=r(122),A=r(44),E=r(1190),T=r(7),k=r(13);function V(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=t[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(t,e)}(t,e)||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 _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=t[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return D(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D(t,e)}(t,e)||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 D(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,"PlayView",(function(){return F}));var L={notFound:w.a,forbidden:{privacy:P.a}};function F(t){var e,r,l,w,P=Object(o.useDispatch)(),_=Object(v.a)(),D=C(Object(i.a)(g.a.WEB_PLAYER_DATA),2),F=D[0],x=D[1],R=Object(I.a)().hasPermissions,B=a.a.useBasicFetch(b.a.video(t.id),{optimize:!0}),U=a.a.useBasicFetch(d.a.createViewKey(t.id),{optimize:!0}),q=a.a.useBasicFetch(c.a.currentUser(),{optimize:!0}),K=a.a.useBasicFetch(j.a.config(),{optimize:!0}),M=a.a.useBasicFetch((null===(r=null===(e=B.data)||void 0===e?void 0:e.glance)||void 0===r?void 0:r.theme)?s(B.data.glance.theme,B.data.glance.type):null,{optimize:!0}),N=a.a.useBasicFetch(!!q.data&&u.a.favouriteVideos(q.data.id));return Object(f.a)(null===(l=B.data)||void 0===l?void 0:l.name),Object(O.a)(B,L),function(t,e){var r=V(Object(i.a)(g.a.WEB_PLAYER_DATA),2)[1],o=a.a.useBasicFetch(!!t&&E.a.getPlaylistVideos(t));Object(n.useEffect)((function(){var n,a=null===(n=o.data)||void 0===n?void 0:n.data;if(null==a?void 0:a.length){var i=a.findIndex((function(t){return t.id.toString()===e.toString()}));if(-1!==i&&i!==a.length-1){var c=a[i+1];return r("nextVideo",c),r("nextVideoAppLink",{application:T.a.DEFAULT,action:k.a.Default.PLAY_VIDEO,args:[c.id,A.a.slugify(c.name)],params:{playlist:t}}),function(){r("nextVideo",null),r("nextVideoAppLink",null)}}}}),[!!o.data,t,e])}(t.playlistId,t.id),n.useEffect((function(){var e;if(B.data&&U.data){x("video",B.data),x("viewKey",U.data.viewKey);var r=(null===(e=F.video)||void 0===e?void 0:e.id)!==B.data.id,n=Number.isInteger(t.startTime)&&t.startTime!==F.startTime;(r||n)&&x("startTime",t.startTime||0)}}),[!!B.data,null===(w=U.data)||void 0===w?void 0:w.viewKey,t.startTime]),n.useEffect((function(){return x("playlistId",t.playlistId||null),function(){x("playlistId",null)}}),[t.playlistId]),B.data&&U.data&&q.data&&K.data?n.createElement("div",{className:"px-3"},n.createElement(h.a,{video:B.data,glanceTheme:M.data,relatedVideos:N.data?S.a.firstFew(N.data.data,3):null,setFavourite:function(t,e,r){a.a.fetch(P,u.a.updateIsVideoFavourited(t.id,q.data.id,e,(function(){y.a.logUserAction({id:t.id},{entity:p.EntityType.Video,actionType:p.UserAction.Favourite,descriptor:e?p.ToggleDescriptor.On:p.ToggleDescriptor.Off,location:p.LocationContext.PlayPage,workflowPhase:p.WorkflowPhase.Complete}),_.success(m.a.getPhrase("shared.play",e?"favourited":"unfavourited",{video:t.name}))}),r))},imageCdnUrl:K.data.imageCdnUrl,hasPermissions:R,currentUser:q.data})):n.createElement(n.Fragment,null)}}}]);