@clickview/library-editor 1.50.1-dev.1 → 1.50.1-rc.1

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 (152) hide show
  1. package/dist/bundles.json +5 -0
  2. package/dist/css/101-library-editor-ea0aa41f12.chunk.css +2 -0
  3. package/dist/css/1086-library-editor-076ef8e022.chunk.css +4 -0
  4. package/dist/css/112-library-editor-f77f4c1797.chunk.css +16 -0
  5. package/dist/css/1409-library-editor-bc215e1152.chunk.css +1 -0
  6. package/dist/css/152-library-editor-01b4461ff1.chunk.css +10 -0
  7. package/dist/css/1601-library-editor-4a6aafa66a.chunk.css +4 -0
  8. package/dist/css/1703-library-editor-3334df179f.chunk.css +6 -0
  9. package/dist/css/1832-library-editor-e123877850.chunk.css +1 -0
  10. package/dist/css/1876-library-editor-3334df179f.chunk.css +6 -0
  11. package/dist/css/2417-library-editor-1c2828a69b.chunk.css +7 -0
  12. package/dist/css/243-library-editor-decee8d957.chunk.css +2 -0
  13. package/dist/css/2482-library-editor-6893a774e7.chunk.css +20 -0
  14. package/dist/css/2601-library-editor-8922d361d6.chunk.css +14 -0
  15. package/dist/css/2644-library-editor-cdc1c17774.chunk.css +13 -0
  16. package/dist/css/2692-library-editor-076ef8e022.chunk.css +4 -0
  17. package/dist/css/3087-library-editor-7c76d2234e.chunk.css +4 -0
  18. package/dist/css/343-library-editor-a5b4b92fa3.chunk.css +24 -0
  19. package/dist/css/3551-library-editor-37e6a3ecdc.chunk.css +24 -0
  20. package/dist/css/3746-library-editor-46e4b6af59.chunk.css +1 -0
  21. package/dist/css/376-library-editor-6d718e6fc5.chunk.css +8 -0
  22. package/dist/css/3969-library-editor-30997910e2.chunk.css +2 -0
  23. package/dist/css/4523-library-editor-c52f3ffbb0.chunk.css +2 -0
  24. package/dist/css/456-library-editor-a92bd26671.chunk.css +17 -0
  25. package/dist/css/4860-library-editor-f5eddb2400.chunk.css +1 -0
  26. package/dist/css/5046-library-editor-d255e3d3d5.chunk.css +15 -0
  27. package/dist/css/514-library-editor-4cb4f22674.chunk.css +1 -0
  28. package/dist/css/5314-library-editor-2013dd2fec.chunk.css +11 -0
  29. package/dist/css/5424-library-editor-cbb9c55dc8.chunk.css +5 -0
  30. package/dist/css/5524-library-editor-de77327cdc.chunk.css +11 -0
  31. package/dist/css/5747-library-editor-de4ea80bfc.chunk.css +1 -0
  32. package/dist/css/5891-library-editor-46e4b6af59.chunk.css +1 -0
  33. package/dist/css/6093-library-editor-446ee2e049.chunk.css +1 -0
  34. package/dist/css/61-library-editor-46bcd7b5f8.chunk.css +48 -0
  35. package/dist/css/6352-library-editor-c99ed407da.chunk.css +19 -0
  36. package/dist/css/6586-library-editor-02ff5dbd6e.chunk.css +83 -0
  37. package/dist/css/6732-library-editor-6233ce01e9.chunk.css +6 -0
  38. package/dist/css/6963-library-editor-46e4b6af59.chunk.css +1 -0
  39. package/dist/css/7053-library-editor-cbe896c46a.chunk.css +1 -0
  40. package/dist/css/708-library-editor-ce48b52d72.chunk.css +7 -0
  41. package/dist/css/7295-library-editor-a539c72655.chunk.css +9 -0
  42. package/dist/css/7408-library-editor-2a67dae087.chunk.css +4 -0
  43. package/dist/css/8762-library-editor-076ef8e022.chunk.css +4 -0
  44. package/dist/css/8906-library-editor-076ef8e022.chunk.css +4 -0
  45. package/dist/css/9369-library-editor-126f3beb94.chunk.css +16 -0
  46. package/dist/css/9383-library-editor-a65f7ef186.chunk.css +16 -0
  47. package/dist/css/9695-library-editor-c5004a1fec.chunk.css +1 -0
  48. package/dist/css/9927-library-editor-a11669ad9d.chunk.css +1 -0
  49. package/dist/css/library-editor-app-b4b31e00d1.css +62 -0
  50. package/dist/languages/en.json +1 -0
  51. package/dist/scripts/101-cd0245d087.chunk.js +1 -0
  52. package/dist/scripts/1010-60f6dfd832.chunk.js +1 -0
  53. package/dist/scripts/1086-2682e6d3f7.chunk.js +1 -0
  54. package/dist/scripts/112-24c19e2cde.chunk.js +1 -0
  55. package/dist/scripts/1216-f3e3f911fa.chunk.js +1 -0
  56. package/dist/scripts/1224-3ad7211630.chunk.js +1 -0
  57. package/dist/scripts/1269-a34a1de36d.chunk.js +1 -0
  58. package/dist/scripts/1409-93a72ff5bf.chunk.js +1 -0
  59. package/dist/scripts/152-2a8a32c9e8.chunk.js +2 -0
  60. package/dist/scripts/152-2a8a32c9e8.chunk.js.LICENSE.txt +50 -0
  61. package/dist/scripts/1601-cfa68d5d16.chunk.js +2 -0
  62. package/dist/scripts/1601-cfa68d5d16.chunk.js.LICENSE.txt +1 -0
  63. package/dist/scripts/1703-0ee4d1051b.chunk.js +1 -0
  64. package/dist/scripts/1832-23fead57c5.chunk.js +1 -0
  65. package/dist/scripts/1876-a98a0d0a0b.chunk.js +1 -0
  66. package/dist/scripts/1934-cf53d84778.chunk.js +2 -0
  67. package/dist/scripts/1934-cf53d84778.chunk.js.LICENSE.txt +9 -0
  68. package/dist/scripts/1973-d4b3f2d0a9.chunk.js +1 -0
  69. package/dist/scripts/2417-d1a2c3b7e1.chunk.js +1 -0
  70. package/dist/scripts/243-2012c53e96.chunk.js +1 -0
  71. package/dist/scripts/2482-955e4b3615.chunk.js +1 -0
  72. package/dist/scripts/259-7d1d480f6e.chunk.js +1 -0
  73. package/dist/scripts/2601-c8a6cf71d8.chunk.js +1 -0
  74. package/dist/scripts/2644-4188284c06.chunk.js +1 -0
  75. package/dist/scripts/2648-10e901bc4c.chunk.js +1 -0
  76. package/dist/scripts/2692-438539ccbe.chunk.js +1 -0
  77. package/dist/scripts/2802-31b24a8131.chunk.js +2 -0
  78. package/dist/scripts/2802-31b24a8131.chunk.js.LICENSE.txt +8 -0
  79. package/dist/scripts/2803-3cee0dd7a5.chunk.js +1 -0
  80. package/dist/scripts/2888-55edc16fd6.chunk.js +1 -0
  81. package/dist/scripts/299-eeaac48864.chunk.js +1 -0
  82. package/dist/scripts/2998-24191bc8ab.chunk.js +1 -0
  83. package/dist/scripts/3087-42c41a34b5.chunk.js +1 -0
  84. package/dist/scripts/3400-95d7a3a0d6.chunk.js +1 -0
  85. package/dist/scripts/343-4e17813e7a.chunk.js +1 -0
  86. package/dist/scripts/35-7bfbab50e6.chunk.js +1 -0
  87. package/dist/scripts/3551-5513258594.chunk.js +1 -0
  88. package/dist/scripts/3639-02abbd0b71.chunk.js +1 -0
  89. package/dist/scripts/3746-fab7340300.chunk.js +1 -0
  90. package/dist/scripts/376-98c734f74f.chunk.js +1 -0
  91. package/dist/scripts/3763-c5de5a36a1.chunk.js +1 -0
  92. package/dist/scripts/3969-fe64f3d542.chunk.js +1 -0
  93. package/dist/scripts/4064-217e21dc03.chunk.js +1 -0
  94. package/dist/scripts/4201-6311ac5cac.chunk.js +1 -0
  95. package/dist/scripts/4245-6e9e71cc7d.chunk.js +1 -0
  96. package/dist/scripts/4523-7a79c1890d.chunk.js +1 -0
  97. package/dist/scripts/456-d5a07590b3.chunk.js +1 -0
  98. package/dist/scripts/4591-9e342f97bc.chunk.js +1 -0
  99. package/dist/scripts/4860-955b4bf901.chunk.js +1 -0
  100. package/dist/scripts/5046-19d7090284.chunk.js +1 -0
  101. package/dist/scripts/514-927a43219d.chunk.js +1 -0
  102. package/dist/scripts/5173-ae0218ce2b.chunk.js +1 -0
  103. package/dist/scripts/5286-293188ce69.chunk.js +1 -0
  104. package/dist/scripts/5314-bd5f985235.chunk.js +1 -0
  105. package/dist/scripts/5412-95152820bb.chunk.js +1 -0
  106. package/dist/scripts/5418-f31f79952c.chunk.js +1 -0
  107. package/dist/scripts/5424-f53a7d8068.chunk.js +1 -0
  108. package/dist/scripts/546-9b17236feb.chunk.js +1 -0
  109. package/dist/scripts/5524-165e9fe50f.chunk.js +1 -0
  110. package/dist/scripts/5707-d7fa777817.chunk.js +1 -0
  111. package/dist/scripts/5747-0ab2cc3678.chunk.js +1 -0
  112. package/dist/scripts/5850-6391e3cda2.chunk.js +1 -0
  113. package/dist/scripts/5891-f7bd1916f7.chunk.js +1 -0
  114. package/dist/scripts/6093-7e5c1af050.chunk.js +1 -0
  115. package/dist/scripts/61-2cababfcc4.chunk.js +2 -0
  116. package/dist/scripts/61-2cababfcc4.chunk.js.LICENSE.txt +1 -0
  117. package/dist/scripts/6352-aaaf02499b.chunk.js +1 -0
  118. package/dist/scripts/6427-ca580c2f5d.chunk.js +1 -0
  119. package/dist/scripts/6532-ffb2f40362.chunk.js +2 -0
  120. package/dist/scripts/6532-ffb2f40362.chunk.js.LICENSE.txt +13 -0
  121. package/dist/scripts/6586-a7d3920a52.chunk.js +2 -0
  122. package/dist/scripts/6586-a7d3920a52.chunk.js.LICENSE.txt +1 -0
  123. package/dist/scripts/6721-60208978c9.chunk.js +1 -0
  124. package/dist/scripts/6732-5bf9ec4e56.chunk.js +1 -0
  125. package/dist/scripts/6774-3cad51b5b7.chunk.js +1 -0
  126. package/dist/scripts/6788-6e4efcfd00.chunk.js +1 -0
  127. package/dist/scripts/6963-898cb28e8d.chunk.js +1 -0
  128. package/dist/scripts/7002-3686f9dcfb.chunk.js +1 -0
  129. package/dist/scripts/7053-38535c04ca.chunk.js +1 -0
  130. package/dist/scripts/7071-5a543a7eec.chunk.js +1 -0
  131. package/dist/scripts/708-9aa6428a97.chunk.js +1 -0
  132. package/dist/scripts/7190-d26b5ef34d.chunk.js +1 -0
  133. package/dist/scripts/7295-594d2f2def.chunk.js +1 -0
  134. package/dist/scripts/7376-baac126511.chunk.js +1 -0
  135. package/dist/scripts/7408-209544dca5.chunk.js +1 -0
  136. package/dist/scripts/8113-879f7b221a.chunk.js +1 -0
  137. package/dist/scripts/8362-e82bef3e07.chunk.js +1 -0
  138. package/dist/scripts/8542-776c339eeb.chunk.js +1 -0
  139. package/dist/scripts/8726-edded1064e.chunk.js +1 -0
  140. package/dist/scripts/8727-2e314f9301.chunk.js +1 -0
  141. package/dist/scripts/8762-4ee15995c8.chunk.js +1 -0
  142. package/dist/scripts/8906-3bde92a78d.chunk.js +1 -0
  143. package/dist/scripts/9357-c5c5984ec8.chunk.js +1 -0
  144. package/dist/scripts/9369-ef153a7fd3.chunk.js +2 -0
  145. package/dist/scripts/9369-ef153a7fd3.chunk.js.LICENSE.txt +1 -0
  146. package/dist/scripts/9383-b01e8ae3c8.chunk.js +1 -0
  147. package/dist/scripts/9695-a04e508364.chunk.js +1 -0
  148. package/dist/scripts/9927-a667775ac4.chunk.js +1 -0
  149. package/dist/scripts/bundle-668698cd1f.min.js +2 -0
  150. package/dist/scripts/bundle-668698cd1f.min.js.LICENSE.txt +1 -0
  151. package/dist/scripts/polyfills-a15c0386f5.min.js +1 -0
  152. package/package.json +6 -1
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2648],{80489:function(e){var t={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,i){return"number"!=typeof i||t[e]?i:i+"px"}},17333:function(e,t,i){var n=i(90758),r=i(66777),o={float:"cssFloat"},l=i(80489);function a(e,t,i){var a=o[t];if(void 0===a&&(a=function(e){var t=r(e),i=n(t);return o[t]=o[e]=o[i]=i,i}(t)),a){if(void 0===i)return e.style[a];e.style[a]=l(a,i)}}function u(){2===arguments.length?"string"==typeof arguments[1]?arguments[0].style.cssText=arguments[1]:function(e,t){for(var i in t)t.hasOwnProperty(i)&&a(e,i,t[i])}(arguments[0],arguments[1]):a(arguments[0],arguments[1],arguments[2])}e.exports=u,e.exports.set=u,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce((function(t,i){return t[i]=a(e,i||""),t}),{}):a(e,t||"")}},62930:function(e){(function(){var t,i,n,r,o,l;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},i=process.hrtime,r=(t=function(){var e;return 1e9*(e=i())[0]+e[1]})(),l=1e9*process.uptime(),o=r-l):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},90758:function(e){var t=null,i=["Webkit","Moz","O","ms"];e.exports=function(e){t||(t=document.createElement("div"));var n=t.style;if(e in n)return e;for(var r=e.charAt(0).toUpperCase()+e.slice(1),o=i.length;o>=0;o--){var l=i[o]+r;if(l in n)return l}return!1}},459:function(e,t,i){"use strict";var n=i(15704);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,i,r,o,l){if(l!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return i.PropTypes=i,i}},60216:function(e,t,i){e.exports=i(459)()},15704:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},48729:function(e,t,i){for(var n=i(62930),r="undefined"==typeof window?i.g:window,o=["moz","webkit"],l="AnimationFrame",a=r["request"+l],u=r["cancel"+l]||r["cancelRequest"+l],s=0;!a&&s<o.length;s++)a=r[o[s]+"Request"+l],u=r[o[s]+"Cancel"+l]||r[o[s]+"CancelRequest"+l];if(!a||!u){var c=0,d=0,h=[];a=function(e){if(0===h.length){var t=n(),i=Math.max(0,16.666666666666668-(t-c));c=i+t,setTimeout((function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(i))}return h.push({handle:++d,callback:e,cancelled:!1}),d},u=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return a.call(r,e)},e.exports.cancel=function(){u.apply(r,arguments)},e.exports.polyfill=function(e){e||(e=r),e.requestAnimationFrame=a,e.cancelAnimationFrame=u}},11305:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};t.renderViewDefault=function(e){return o.default.createElement("div",e)},t.renderTrackHorizontalDefault=function(e){var t=e.style,i=l(e,["style"]),r=n({},t,{right:2,bottom:2,left:2,borderRadius:3});return o.default.createElement("div",n({style:r},i))},t.renderTrackVerticalDefault=function(e){var t=e.style,i=l(e,["style"]),r=n({},t,{right:2,bottom:2,top:2,borderRadius:3});return o.default.createElement("div",n({style:r},i))},t.renderThumbHorizontalDefault=function(e){var t=e.style,i=l(e,["style"]),r=n({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return o.default.createElement("div",n({style:r},i))},t.renderThumbVerticalDefault=function(e){var t=e.style,i=l(e,["style"]),r=n({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return o.default.createElement("div",n({style:r},i))};var r,o=(r=i(1024))&&r.__esModule?r:{default:r};function l(e,t){var i={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);return i}},3845:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=i(48729),l=m(o),a=m(i(17333)),u=i(1024),s=m(i(60216)),c=m(i(71175)),d=m(i(33961)),h=m(i(63417)),f=m(i(11478)),v=m(i(37723)),p=i(2211),g=i(11305);function m(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){var i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i=t.__proto__||Object.getPrototypeOf(t)).call.apply(i,[this,e].concat(r)));return l.getScrollLeft=l.getScrollLeft.bind(l),l.getScrollTop=l.getScrollTop.bind(l),l.getScrollWidth=l.getScrollWidth.bind(l),l.getScrollHeight=l.getScrollHeight.bind(l),l.getClientWidth=l.getClientWidth.bind(l),l.getClientHeight=l.getClientHeight.bind(l),l.getValues=l.getValues.bind(l),l.getThumbHorizontalWidth=l.getThumbHorizontalWidth.bind(l),l.getThumbVerticalHeight=l.getThumbVerticalHeight.bind(l),l.getScrollLeftForOffset=l.getScrollLeftForOffset.bind(l),l.getScrollTopForOffset=l.getScrollTopForOffset.bind(l),l.scrollLeft=l.scrollLeft.bind(l),l.scrollTop=l.scrollTop.bind(l),l.scrollToLeft=l.scrollToLeft.bind(l),l.scrollToTop=l.scrollToTop.bind(l),l.scrollToRight=l.scrollToRight.bind(l),l.scrollToBottom=l.scrollToBottom.bind(l),l.handleTrackMouseEnter=l.handleTrackMouseEnter.bind(l),l.handleTrackMouseLeave=l.handleTrackMouseLeave.bind(l),l.handleHorizontalTrackMouseDown=l.handleHorizontalTrackMouseDown.bind(l),l.handleVerticalTrackMouseDown=l.handleVerticalTrackMouseDown.bind(l),l.handleHorizontalThumbMouseDown=l.handleHorizontalThumbMouseDown.bind(l),l.handleVerticalThumbMouseDown=l.handleVerticalThumbMouseDown.bind(l),l.handleWindowResize=l.handleWindowResize.bind(l),l.handleScroll=l.handleScroll.bind(l),l.handleDrag=l.handleDrag.bind(l),l.handleDragEnd=l.handleDragEnd.bind(l),l.state={didMountUniversal:!1},l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,o.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,i=void 0===t?0:t,n=e.scrollTop,r=void 0===n?0:n,o=e.scrollWidth,l=void 0===o?0:o,a=e.scrollHeight,u=void 0===a?0:a,s=e.clientWidth,c=void 0===s?0:s,d=e.clientHeight,h=void 0===d?0:d;return{left:i/(l-c)||0,top:r/(u-h)||0,scrollLeft:i,scrollTop:r,scrollWidth:l,scrollHeight:u,clientWidth:c,clientHeight:h}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,i=e.thumbMinSize,n=this.view,r=n.scrollWidth,o=n.clientWidth,l=(0,f.default)(this.trackHorizontal),a=Math.ceil(o/r*l);return l<=a?0:t||Math.max(a,i)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,i=e.thumbMinSize,n=this.view,r=n.scrollHeight,o=n.clientHeight,l=(0,v.default)(this.trackVertical),a=Math.ceil(o/r*l);return l<=a?0:t||Math.max(a,i)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,i=t.scrollWidth,n=t.clientWidth;return e/((0,f.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(i-n)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,i=t.scrollHeight,n=t.clientHeight;return e/((0,v.default)(this.trackVertical)-this.getThumbVerticalHeight())*(i-n)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,i=this.trackVertical,n=this.thumbHorizontal,r=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),i.addEventListener("mouseenter",this.handleTrackMouseEnter),i.addEventListener("mouseleave",this.handleTrackMouseLeave),i.addEventListener("mousedown",this.handleVerticalTrackMouseDown),n.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),r.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,i=this.trackVertical,n=this.thumbHorizontal,r=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),i.removeEventListener("mouseenter",this.handleTrackMouseEnter),i.removeEventListener("mouseleave",this.handleTrackMouseLeave),i.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),n.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),r.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,i=this.props,n=i.onScroll,r=i.onScrollFrame;n&&n(e),this.update((function(e){var i=e.scrollLeft,n=e.scrollTop;t.viewScrollLeft=i,t.viewScrollTop=n,r&&r(e)})),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,d.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,i=e.clientX,n=t.getBoundingClientRect().left,r=this.getThumbHorizontalWidth(),o=Math.abs(n-i)-r/2;this.view.scrollLeft=this.getScrollLeftForOffset(o)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,i=e.clientY,n=t.getBoundingClientRect().top,r=this.getThumbVerticalHeight(),o=Math.abs(n-i)-r/2;this.view.scrollTop=this.getScrollTopForOffset(o)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,i=e.clientX,n=t.offsetWidth,r=t.getBoundingClientRect().left;this.prevPageX=n-(i-r)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,i=e.clientY,n=t.offsetHeight,r=t.getBoundingClientRect().top;this.prevPageY=n-(i-r)}},{key:"setupDragging",value:function(){(0,a.default)(document.body,p.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=h.default}},{key:"teardownDragging",value:function(){(0,a.default)(document.body,p.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,i=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(i)}if(this.prevPageY){var n=e.clientY,r=-this.trackVertical.getBoundingClientRect().top+n-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(r)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,a.default)(this.trackHorizontal,{opacity:1}),(0,a.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout((function(){(0,a.default)(e.trackHorizontal,{opacity:0}),(0,a.default)(e.trackVertical,{opacity:0})}),t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval((function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop}),100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&l.default.cancel(this.requestFrame),this.requestFrame=(0,l.default)((function(){t.requestFrame=void 0,e()}))}},{key:"update",value:function(e){var t=this;this.raf((function(){return t._update(e)}))}},{key:"_update",value:function(e){var t=this.props,i=t.onUpdate,n=t.hideTracksWhenNotNeeded,r=this.getValues();if((0,d.default)()){var o=r.scrollLeft,l=r.clientWidth,u=r.scrollWidth,s=(0,f.default)(this.trackHorizontal),c=this.getThumbHorizontalWidth(),h={width:c,transform:"translateX("+o/(u-l)*(s-c)+"px)"},p=r.scrollTop,g=r.clientHeight,m=r.scrollHeight,y=(0,v.default)(this.trackVertical),b=this.getThumbVerticalHeight(),T={height:b,transform:"translateY("+p/(m-g)*(y-b)+"px)"};if(n){var k={visibility:u>l?"visible":"hidden"},w={visibility:m>g?"visible":"hidden"};(0,a.default)(this.trackHorizontal,k),(0,a.default)(this.trackVertical,w)}(0,a.default)(this.thumbHorizontal,h),(0,a.default)(this.thumbVertical,T)}i&&i(r),"function"==typeof e&&e(r)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),i=this.props,r=(i.onScroll,i.onScrollFrame,i.onScrollStart,i.onScrollStop,i.onUpdate,i.renderView),o=i.renderTrackHorizontal,l=i.renderTrackVertical,a=i.renderThumbHorizontal,s=i.renderThumbVertical,h=i.tagName,f=(i.hideTracksWhenNotNeeded,i.autoHide),v=(i.autoHideTimeout,i.autoHideDuration),g=(i.thumbSize,i.thumbMinSize,i.universal),m=i.autoHeight,y=i.autoHeightMin,b=i.autoHeightMax,T=i.style,k=i.children,w=function(e,t){var i={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);return i}(i,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),S=this.state.didMountUniversal,H=n({},p.containerStyleDefault,m&&n({},p.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),T),M=n({},p.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},m&&n({},p.viewStyleAutoHeight,{minHeight:(0,c.default)(y)?"calc("+y+" + "+t+"px)":y+t,maxHeight:(0,c.default)(b)?"calc("+b+" + "+t+"px)":b+t}),m&&g&&!S&&{minHeight:y,maxHeight:b},g&&!S&&p.viewStyleUniversalInitial),D={transition:"opacity "+v+"ms",opacity:0},L=n({},p.trackHorizontalStyleDefault,f&&D,(!t||g&&!S)&&{display:"none"}),z=n({},p.trackVerticalStyleDefault,f&&D,(!t||g&&!S)&&{display:"none"});return(0,u.createElement)(h,n({},w,{style:H,ref:function(t){e.container=t}}),[(0,u.cloneElement)(r({style:M}),{key:"view",ref:function(t){e.view=t}},k),(0,u.cloneElement)(o({style:L}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,u.cloneElement)(a({style:p.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,u.cloneElement)(l({style:z}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,u.cloneElement)(s({style:p.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(u.Component);t.default=y,y.propTypes={onScroll:s.default.func,onScrollFrame:s.default.func,onScrollStart:s.default.func,onScrollStop:s.default.func,onUpdate:s.default.func,renderView:s.default.func,renderTrackHorizontal:s.default.func,renderTrackVertical:s.default.func,renderThumbHorizontal:s.default.func,renderThumbVertical:s.default.func,tagName:s.default.string,thumbSize:s.default.number,thumbMinSize:s.default.number,hideTracksWhenNotNeeded:s.default.bool,autoHide:s.default.bool,autoHideTimeout:s.default.number,autoHideDuration:s.default.number,autoHeight:s.default.bool,autoHeightMin:s.default.oneOfType([s.default.number,s.default.string]),autoHeightMax:s.default.oneOfType([s.default.number,s.default.string]),universal:s.default.bool,style:s.default.object,children:s.default.node},y.defaultProps={renderView:g.renderViewDefault,renderTrackHorizontal:g.renderTrackHorizontalDefault,renderTrackVertical:g.renderTrackVerticalDefault,renderThumbHorizontal:g.renderThumbHorizontalDefault,renderThumbVertical:g.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},2211:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},42648:function(e,t,i){"use strict";t.$B=void 0;var n,r=(n=i(3845))&&n.__esModule?n:{default:n};t.ZP=r.default,t.$B=r.default},37723:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,i=getComputedStyle(e),n=i.paddingTop,r=i.paddingBottom;return t-parseFloat(n)-parseFloat(r)}},11478:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,i=getComputedStyle(e),n=i.paddingLeft,r=i.paddingRight;return t-parseFloat(n)-parseFloat(r)}},33961:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if((!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&!1!==o)return o;if("undefined"!=typeof document){var e=document.createElement("div");(0,r.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),o=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else o=0;return o||0};var n,r=(n=i(17333))&&n.__esModule?n:{default:n},o=!1},71175:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e}},63417:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},66777:function(e,t,i){var n=i(2690);e.exports=function(e){return n(e).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}},38278:function(e){e.exports=function(e){return t.test(e)?e.toLowerCase():i.test(e)?(function(e){return e.replace(r,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():n.test(e)?function(e){return e.replace(o,(function(e,t,i){return t+" "+i.toLowerCase().split("").join(" ")}))}(e).toLowerCase():e.toLowerCase()};var t=/\s/,i=/(_|-|\.|:)/,n=/([a-z][A-Z]|[A-Z][a-z])/,r=/[\W_]+(.|$)/g,o=/(.)([A-Z]+)/g},2690:function(e,t,i){var n=i(38278);e.exports=function(e){return n(e).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2692],{87221:function(e,t,n){"use strict";n.r(t),n.d(t,{RenameFolderView:function(){return _}});var i=n(48088),r=n(39479),o=n(21679),l=n(57857),a=n(99249),s=n(31647),u=n(52076),c=n(10101),f=n(88172),d=n(57098),h=n(67670),p=n(60602),y=n(93569),v=n(77739),b=n(80852),m=n.n(b);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function w(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,k(i.key),i)}}function k(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=g(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}function O(e,t,n){return t=P(t),function(e,t){if(t&&("object"==g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,S()?Reflect.construct(t,n||[],P(e).constructor):t.apply(e,n))}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}var _=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),O(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}(t,e),n=t,s=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=o.u.getInstance(d.Or.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(d.Vk.LIBRARY,"folder:".concat(this.options.folderId,":sync"),this.render),this.listenTo(d.Vk.LIBRARY,"libraries:sync",this.render)}},{key:"name",get:function(){return"RenameFolderView"}},{key:"title",get:function(){return l.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.renameFolder"}},{key:"template",get:function(){return m()}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.Yw,title:l.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new h.v,channelName:this.channelName,buttonText:l.T.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"regions",value:function(){return{folderDetails:".folder-details-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(i.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner),this.saveFolder(),this.logAction())}},{key:"logAction",value:function(){var e={id:this.options.folderId,name:this.viewModel.get("name")};u.k.logUserAction(e,this.options.analyticsOptions)}},{key:"saveFolder",value:function(){var e=this;this.libraryDataService.updateFolder(this.viewModel,(function(){e.triggerMethod("hide")}))}},{key:"setUpCollection",value:function(e){this.collection||(this.library=y.PU.getLibrary(this.options.folderId,e),this.collection=this.library.children)}},{key:"setUpModel",value:function(e){this.model||(this.model=e,this.setUpViewModel())}},{key:"setUpViewModel",value:function(){if(!this.viewModel){var e="folder:details:".concat(this.options.folderId);this.viewModel=a.r.get(e,this.model.toJSON(),{ctor:p.g})}}},{key:"renderFolderDetails",value:function(){if(this.model&&this.collection){var e=new v.r({model:this.viewModel,channelName:this.channelName,editName:!0,editParent:!1});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){this.libraryDataService.getLibraries(r.bind(this.setUpCollection,this)),this.libraryDataService.getFolderFromLibraries(this.options.folderId,r.bind(this.setUpModel,this)),this.model&&this.collection&&this.spinnerModel.set(f.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.collection,spinnerEl:y.Kp.getSpinner({size:y.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}}],s&&w(n.prototype,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,s}(s.Q.G7)},80852:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,r){var o;return e.propertyIsEnumerable,(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.spinnerEl:o,t))?o:"")+"\n"},3:function(e,t,n,i,r){return'<div class="folder-details-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){var o;return e.propertyIsEnumerable,null!=(o=n.unless.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.dataFetched:o,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?o:""},useData:!0})}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 2802-31b24a8131.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2802],{92802:function(e,t,r){r.d(t,{Bc:function(){return Lr},gN:function(){return Pr},l0:function(){return Mr},J9:function(){return Fr},k5:function(){return _r},u9:function(){return br},u6:function(){return Er}});var n=r(1024),o=r(8266),a=r.n(o),i=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===u}(e)}(e)},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="object"==typeof global&&global&&global.Object===Object&&global,d="object"==typeof self&&self&&self.Object===Object&&self,y=p||d||Function("return this")(),v=y.Symbol,h=Object.prototype,b=h.hasOwnProperty,m=h.toString,g=v?v.toStringTag:void 0,_=Object.prototype.toString,j=v?v.toStringTag:void 0,S=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":j&&j in Object(e)?function(e){var t=b.call(e,g),r=e[g];try{e[g]=void 0;var n=!0}catch(e){}var o=m.call(e);return n&&(t?e[g]=r:delete e[g]),o}(e):function(e){return _.call(e)}(e)},E=function(e,t){return function(r){return e(t(r))}},O=E(Object.getPrototypeOf,Object),A=function(e){return null!=e&&"object"==typeof e},T=Function.prototype,w=Object.prototype,F=T.toString,R=w.hasOwnProperty,C=F.call(Object),k=function(e){if(!A(e)||"[object Object]"!=S(e))return!1;var t=O(e);if(null===t)return!0;var r=R.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&F.call(r)==C},I=function(e,t){return e===t||e!=e&&t!=t},P=function(e,t){for(var r=e.length;r--;)if(I(e[r][0],t))return r;return-1},M=Array.prototype.splice;function x(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])}}x.prototype.clear=function(){this.__data__=[],this.size=0},x.prototype.delete=function(e){var t=this.__data__,r=P(t,e);return!(r<0||(r==t.length-1?t.pop():M.call(t,r,1),--this.size,0))},x.prototype.get=function(e){var t=this.__data__,r=P(t,e);return r<0?void 0:t[r][1]},x.prototype.has=function(e){return P(this.__data__,e)>-1},x.prototype.set=function(e,t){var r=this.__data__,n=P(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var D,U=x,$=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},V=function(e){if(!$(e))return!1;var t=S(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},L=y["__core-js_shared__"],B=(D=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",N=Function.prototype.toString,z=function(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""},G=/^\[object .+?Constructor\]$/,W=Function.prototype,H=Object.prototype,K=W.toString,q=H.hasOwnProperty,Y=RegExp("^"+K.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=function(e){return!(!$(e)||(t=e,B&&B in t))&&(V(e)?Y:G).test(z(e));var t},Q=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return J(r)?r:void 0},X=Q(y,"Map"),Z=Q(Object,"create"),ee=Object.prototype.hasOwnProperty,te=Object.prototype.hasOwnProperty;function re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}re.prototype.clear=function(){this.__data__=Z?Z(null):{},this.size=0},re.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},re.prototype.get=function(e){var t=this.__data__;if(Z){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ee.call(t,e)?t[e]:void 0},re.prototype.has=function(e){var t=this.__data__;return Z?void 0!==t[e]:te.call(t,e)},re.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Z&&void 0===t?"__lodash_hash_undefined__":t,this};var ne=re,oe=function(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function ae(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ae.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(X||U),string:new ne}},ae.prototype.delete=function(e){var t=oe(this,e).delete(e);return this.size-=t?1:0,t},ae.prototype.get=function(e){return oe(this,e).get(e)},ae.prototype.has=function(e){return oe(this,e).has(e)},ae.prototype.set=function(e,t){var r=oe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var ie=ae;function ue(e){var t=this.__data__=new U(e);this.size=t.size}ue.prototype.clear=function(){this.__data__=new U,this.size=0},ue.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ue.prototype.get=function(e){return this.__data__.get(e)},ue.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.set=function(e,t){var r=this.__data__;if(r instanceof U){var n=r.__data__;if(!X||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ie(n)}return r.set(e,t),this.size=r.size,this};var ce=ue,le=function(){try{var e=Q(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),se=function(e,t,r){"__proto__"==t&&le?le(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},fe=Object.prototype.hasOwnProperty,pe=function(e,t,r){var n=e[t];fe.call(e,t)&&I(n,r)&&(void 0!==r||t in e)||se(e,t,r)},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?se(r,u,c):pe(r,u,c)}return r},ye=function(e){return A(e)&&"[object Arguments]"==S(e)},ve=Object.prototype,he=ve.hasOwnProperty,be=ve.propertyIsEnumerable,me=ye(function(){return arguments}())?ye:function(e){return A(e)&&he.call(e,"callee")&&!be.call(e,"callee")},ge=me,_e=Array.isArray,je="object"==typeof exports&&exports&&!exports.nodeType&&exports,Se=je&&"object"==typeof module&&module&&!module.nodeType&&module,Ee=Se&&Se.exports===je?y.Buffer:void 0,Oe=(Ee?Ee.isBuffer:void 0)||function(){return!1},Ae=/^(?:0|[1-9]\d*)$/,Te=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Ae.test(e))&&e>-1&&e%1==0&&e<t},we=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Fe={};Fe["[object Float32Array]"]=Fe["[object Float64Array]"]=Fe["[object Int8Array]"]=Fe["[object Int16Array]"]=Fe["[object Int32Array]"]=Fe["[object Uint8Array]"]=Fe["[object Uint8ClampedArray]"]=Fe["[object Uint16Array]"]=Fe["[object Uint32Array]"]=!0,Fe["[object Arguments]"]=Fe["[object Array]"]=Fe["[object ArrayBuffer]"]=Fe["[object Boolean]"]=Fe["[object DataView]"]=Fe["[object Date]"]=Fe["[object Error]"]=Fe["[object Function]"]=Fe["[object Map]"]=Fe["[object Number]"]=Fe["[object Object]"]=Fe["[object RegExp]"]=Fe["[object Set]"]=Fe["[object String]"]=Fe["[object WeakMap]"]=!1;var Re=function(e){return function(t){return e(t)}},Ce="object"==typeof exports&&exports&&!exports.nodeType&&exports,ke=Ce&&"object"==typeof module&&module&&!module.nodeType&&module,Ie=ke&&ke.exports===Ce&&p.process,Pe=function(){try{return ke&&ke.require&&ke.require("util").types||Ie&&Ie.binding&&Ie.binding("util")}catch(e){}}(),Me=Pe&&Pe.isTypedArray,xe=Me?Re(Me):function(e){return A(e)&&we(e.length)&&!!Fe[S(e)]},De=Object.prototype.hasOwnProperty,Ue=function(e,t){var r=_e(e),n=!r&&ge(e),o=!r&&!n&&Oe(e),a=!r&&!n&&!o&&xe(e),i=r||n||o||a,u=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=u.length;for(var l in e)!t&&!De.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Te(l,c))||u.push(l);return u},$e=Object.prototype,Ve=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$e)},Le=E(Object.keys,Object),Be=Object.prototype.hasOwnProperty,Ne=function(e){return null!=e&&we(e.length)&&!V(e)},ze=function(e){return Ne(e)?Ue(e):function(e){if(!Ve(e))return Le(e);var t=[];for(var r in Object(e))Be.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)},Ge=Object.prototype.hasOwnProperty,We=function(e){if(!$(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Ve(e),r=[];for(var n in e)("constructor"!=n||!t&&Ge.call(e,n))&&r.push(n);return r},He=function(e){return Ne(e)?Ue(e,!0):We(e)},Ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=Ke&&"object"==typeof module&&module&&!module.nodeType&&module,Ye=qe&&qe.exports===Ke?y.Buffer:void 0,Je=Ye?Ye.allocUnsafe:void 0,Qe=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},Xe=function(){return[]},Ze=Object.prototype.propertyIsEnumerable,et=Object.getOwnPropertySymbols,tt=et?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}(et(e),(function(t){return Ze.call(e,t)})))}:Xe,rt=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},nt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)rt(t,tt(e)),e=O(e);return t}:Xe,ot=function(e,t,r){var n=t(e);return _e(e)?n:rt(n,r(e))},at=function(e){return ot(e,ze,tt)},it=function(e){return ot(e,He,nt)},ut=Q(y,"DataView"),ct=Q(y,"Promise"),lt=Q(y,"Set"),st=Q(y,"WeakMap"),ft="[object Map]",pt="[object Promise]",dt="[object Set]",yt="[object WeakMap]",vt="[object DataView]",ht=z(ut),bt=z(X),mt=z(ct),gt=z(lt),_t=z(st),jt=S;(ut&&jt(new ut(new ArrayBuffer(1)))!=vt||X&&jt(new X)!=ft||ct&&jt(ct.resolve())!=pt||lt&&jt(new lt)!=dt||st&&jt(new st)!=yt)&&(jt=function(e){var t=S(e),r="[object Object]"==t?e.constructor:void 0,n=r?z(r):"";if(n)switch(n){case ht:return vt;case bt:return ft;case mt:return pt;case gt:return dt;case _t:return yt}return t});var St=jt,Et=Object.prototype.hasOwnProperty,Ot=y.Uint8Array,At=function(e){var t=new e.constructor(e.byteLength);return new Ot(t).set(new Ot(e)),t},Tt=/\w*$/,wt=v?v.prototype:void 0,Ft=wt?wt.valueOf:void 0,Rt=function(e,t,r){var n,o,a,i=e.constructor;switch(t){case"[object ArrayBuffer]":return At(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var r=t?At(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?At(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(a=new(o=e).constructor(o.source,Tt.exec(o))).lastIndex=o.lastIndex,a;case"[object Symbol]":return n=e,Ft?Object(Ft.call(n)):{}}},Ct=Object.create,kt=function(){function e(){}return function(t){if(!$(t))return{};if(Ct)return Ct(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),It=Pe&&Pe.isMap,Pt=It?Re(It):function(e){return A(e)&&"[object Map]"==St(e)},Mt=Pe&&Pe.isSet,xt=Mt?Re(Mt):function(e){return A(e)&&"[object Set]"==St(e)},Dt="[object Arguments]",Ut="[object Function]",$t="[object Object]",Vt={};Vt[Dt]=Vt["[object Array]"]=Vt["[object ArrayBuffer]"]=Vt["[object DataView]"]=Vt["[object Boolean]"]=Vt["[object Date]"]=Vt["[object Float32Array]"]=Vt["[object Float64Array]"]=Vt["[object Int8Array]"]=Vt["[object Int16Array]"]=Vt["[object Int32Array]"]=Vt["[object Map]"]=Vt["[object Number]"]=Vt[$t]=Vt["[object RegExp]"]=Vt["[object Set]"]=Vt["[object String]"]=Vt["[object Symbol]"]=Vt["[object Uint8Array]"]=Vt["[object Uint8ClampedArray]"]=Vt["[object Uint16Array]"]=Vt["[object Uint32Array]"]=!0,Vt["[object Error]"]=Vt[Ut]=Vt["[object WeakMap]"]=!1;var Lt=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(!$(t))return t;var f=_e(t);if(f){if(u=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Et.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!c)return Qe(t,u)}else{var p=St(t),d=p==Ut||"[object GeneratorFunction]"==p;if(Oe(t))return function(e,t){if(t)return e.slice();var r=e.length,n=Je?Je(r):new e.constructor(r);return e.copy(n),n}(t,c);if(p==$t||p==Dt||d&&!a){if(u=l||d?{}:function(e){return"function"!=typeof e.constructor||Ve(e)?{}:kt(O(e))}(t),!c)return l?function(e,t){return de(e,nt(e),t)}(t,function(e,t){return e&&de(t,He(t),e)}(u,t)):function(e,t){return de(e,tt(e),t)}(t,function(e,t){return e&&de(t,ze(t),e)}(u,t))}else{if(!Vt[p])return a?t:{};u=Rt(t,p,c)}}i||(i=new ce);var y=i.get(t);if(y)return y;i.set(t,u),xt(t)?t.forEach((function(o){u.add(e(o,r,n,o,t,i))})):Pt(t)&&t.forEach((function(o,a){u.set(a,e(o,r,n,a,t,i))}));var v=f?void 0:(s?l?it:at:l?He:ze)(t);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(v||t,(function(o,a){v&&(o=t[a=o]),pe(u,a,e(o,r,n,a,t,i))})),u},Bt=function(e){return Lt(e,4)},Nt=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},zt=function(e){return"symbol"==typeof e||A(e)&&"[object Symbol]"==S(e)};function Gt(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(Gt.Cache||ie),r}Gt.Cache=ie;var Wt,Ht,Kt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qt=/\\(\\)?/g,Yt=(Wt=Gt((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Kt,(function(e,r,n,o){t.push(n?o.replace(qt,"$1"):r||e)})),t}),(function(e){return 500===Ht.size&&Ht.clear(),e})),Ht=Wt.cache,Wt),Jt=function(e){if("string"==typeof e||zt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Qt=v?v.prototype:void 0,Xt=Qt?Qt.toString:void 0,Zt=function e(t){if("string"==typeof t)return t;if(_e(t))return Nt(t,e)+"";if(zt(t))return Xt?Xt.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},er=function(e){return null==e?"":Zt(e)},tr=function(e){return _e(e)?Nt(e,Jt):zt(e)?[e]:Qe(Yt(er(e)))},rr=function(e,t){},nr=r(86058),or=r.n(nr),ar=function(e){return Lt(e,5)};function ir(){return ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ir.apply(this,arguments)}function ur(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function cr(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 lr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var sr=function(e){return Array.isArray(e)&&0===e.length},fr=function(e){return"function"==typeof e},pr=function(e){return null!==e&&"object"==typeof e},dr=function(e){return String(Math.floor(Number(e)))===e},yr=function(e){return"[object String]"===Object.prototype.toString.call(e)},vr=function(e){return 0===n.Children.count(e)},hr=function(e){return pr(e)&&fr(e.then)};function br(e,t,r,n){void 0===n&&(n=0);for(var o=tr(t);e&&n<o.length;)e=e[o[n++]];return void 0===e?r:e}function mr(e,t,r){for(var n=Bt(e),o=n,a=0,i=tr(t);a<i.length-1;a++){var u=i[a],c=br(e,i.slice(0,a+1));if(c&&(pr(c)||Array.isArray(c)))o=o[u]=Bt(c);else{var l=i[a+1];o=o[u]=dr(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 gr(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,a=Object.keys(e);o<a.length;o++){var i=a[o],u=e[i];pr(u)?r.get(u)||(r.set(u,!0),n[i]=Array.isArray(u)?[]:{},gr(u,t,r,n[i])):n[i]=t}return n}var _r=(0,n.createContext)(void 0);_r.displayName="FormikContext";var jr=_r.Provider,Sr=_r.Consumer;function Er(){var e=(0,n.useContext)(_r);return e||rr(!1),e}function Or(e,t){switch(t.type){case"SET_VALUES":return ir({},e,{values:t.payload});case"SET_TOUCHED":return ir({},e,{touched:t.payload});case"SET_ERRORS":return a()(e.errors,t.payload)?e:ir({},e,{errors:t.payload});case"SET_STATUS":return ir({},e,{status:t.payload});case"SET_ISSUBMITTING":return ir({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return ir({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return ir({},e,{values:mr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return ir({},e,{touched:mr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return ir({},e,{errors:mr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return ir({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return ir({},e,{touched:gr(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return ir({},e,{isSubmitting:!1});default:return e}}var Ar={},Tr={};function wr(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,d=e.onSubmit,y=cr(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),v=ir({validateOnChange:r,validateOnBlur:i,validateOnMount:c,onSubmit:d},y),h=(0,n.useRef)(v.initialValues),b=(0,n.useRef)(v.initialErrors||Ar),m=(0,n.useRef)(v.initialTouched||Tr),g=(0,n.useRef)(v.initialStatus),_=(0,n.useRef)(!1),j=(0,n.useRef)({});(0,n.useEffect)((function(){return _.current=!0,function(){_.current=!1}}),[]);var S=(0,n.useReducer)(Or,{values:v.initialValues,errors:v.initialErrors||Ar,touched:v.initialTouched||Tr,status:v.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),E=S[0],O=S[1],A=(0,n.useCallback)((function(e,t){return new Promise((function(r,n){var o=v.validate(e,t);null==o?r(Ar):hr(o)?o.then((function(e){r(e||Ar)}),(function(e){n(e)})):r(o)}))}),[v.validate]),T=(0,n.useCallback)((function(e,t){var r=v.validationSchema,n=fr(r)?r(t):r,o=t&&n.validateAt?n.validateAt(t,e):function(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n={});var o=Rr(e);return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:n})}(e,n);return new Promise((function(e,t){o.then((function(){e(Ar)}),(function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return mr(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;br(t,i.path)||(t=mr(t,i.path,i.message))}}return t}(r)):t(r)}))}))}),[v.validationSchema]),w=(0,n.useCallback)((function(e,t){return new Promise((function(r){return r(j.current[e].validate(t))}))}),[]),F=(0,n.useCallback)((function(e){var t=Object.keys(j.current).filter((function(e){return fr(j.current[e].validate)})),r=t.length>0?t.map((function(t){return w(t,br(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=mr(e,t[n],r)),e}),{})}))}),[w]),R=(0,n.useCallback)((function(e){return Promise.all([F(e),v.validationSchema?T(e):{},v.validate?A(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return f.all([t,r,n],{arrayMerge:Cr})}))}),[v.validate,v.validationSchema,F,A,T]),C=Ir((function(e){return void 0===e&&(e=E.values),O({type:"SET_ISVALIDATING",payload:!0}),R(e).then((function(e){return _.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:e})),e}))}));(0,n.useEffect)((function(){c&&!0===_.current&&a()(h.current,v.initialValues)&&C(h.current)}),[c,C]);var k=(0,n.useCallback)((function(e){var t=e&&e.values?e.values:h.current,r=e&&e.errors?e.errors:b.current?b.current:v.initialErrors||{},n=e&&e.touched?e.touched:m.current?m.current:v.initialTouched||{},o=e&&e.status?e.status:g.current?g.current:v.initialStatus;h.current=t,b.current=r,m.current=n,g.current=o;var a=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(v.onReset){var i=v.onReset(E.values,J);hr(i)?i.then(a):a()}else a()}),[v.initialErrors,v.initialStatus,v.initialTouched]);(0,n.useEffect)((function(){!0!==_.current||a()(h.current,v.initialValues)||(p&&(h.current=v.initialValues,k()),c&&C(h.current))}),[p,v.initialValues,k,c,C]),(0,n.useEffect)((function(){p&&!0===_.current&&!a()(b.current,v.initialErrors)&&(b.current=v.initialErrors||Ar,O({type:"SET_ERRORS",payload:v.initialErrors||Ar}))}),[p,v.initialErrors]),(0,n.useEffect)((function(){p&&!0===_.current&&!a()(m.current,v.initialTouched)&&(m.current=v.initialTouched||Tr,O({type:"SET_TOUCHED",payload:v.initialTouched||Tr}))}),[p,v.initialTouched]),(0,n.useEffect)((function(){p&&!0===_.current&&!a()(g.current,v.initialStatus)&&(g.current=v.initialStatus,O({type:"SET_STATUS",payload:v.initialStatus}))}),[p,v.initialStatus,v.initialTouched]);var I=Ir((function(e){if(j.current[e]&&fr(j.current[e].validate)){var t=br(E.values,e),r=j.current[e].validate(t);return hr(r)?(O({type:"SET_ISVALIDATING",payload:!0}),r.then((function(e){return e})).then((function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),O({type:"SET_ISVALIDATING",payload:!1})}))):(O({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return v.validationSchema?(O({type:"SET_ISVALIDATING",payload:!0}),T(E.values,e).then((function(e){return e})).then((function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),O({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),P=(0,n.useCallback)((function(e,t){var r=t.validate;j.current[e]={validate:r}}),[]),M=(0,n.useCallback)((function(e){delete j.current[e]}),[]),x=Ir((function(e,t){return O({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?C(E.values):Promise.resolve()})),D=(0,n.useCallback)((function(e){O({type:"SET_ERRORS",payload:e})}),[]),U=Ir((function(e,t){var n=fr(e)?e(E.values):e;return O({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?C(n):Promise.resolve()})),$=(0,n.useCallback)((function(e,t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),V=Ir((function(e,t,n){return O({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?C(mr(E.values,e,t)):Promise.resolve()})),L=(0,n.useCallback)((function(e,t){var r,n=t,o=e;if(!yr(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,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("boolean"==typeof e)return Boolean(t);var n=[],o=!1,a=-1;if(Array.isArray(e))n=e,o=(a=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);return t&&r&&!o?n.concat(r):o?n.slice(0,a).concat(n.slice(a+1)):n}(br(E.values,n),s,l):f&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(f):l}n&&V(n,o)}),[V,E.values]),B=Ir((function(e){if(yr(e))return function(t){return L(t,e)};L(e)})),N=Ir((function(e,t,r){return void 0===t&&(t=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?i:r)?C(E.values):Promise.resolve()})),z=(0,n.useCallback)((function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,o=r.id,a=(r.outerHTML,t||n||o);N(a,!0)}),[N]),G=Ir((function(e){if(yr(e))return function(t){return z(t,e)};z(e)})),W=(0,n.useCallback)((function(e){fr(e)?O({type:"SET_FORMIK_STATE",payload:e}):O({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),H=(0,n.useCallback)((function(e){O({type:"SET_STATUS",payload:e})}),[]),K=(0,n.useCallback)((function(e){O({type:"SET_ISSUBMITTING",payload:e})}),[]),q=Ir((function(){return O({type:"SUBMIT_ATTEMPT"}),C().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=Q()))return}catch(e){throw e}return Promise.resolve(r).then((function(e){return _.current&&O({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(_.current)throw O({type:"SUBMIT_FAILURE"}),e}))}if(_.current&&(O({type:"SUBMIT_FAILURE"}),t))throw e}))})),Y=Ir((function(e){e&&e.preventDefault&&fr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&fr(e.stopPropagation)&&e.stopPropagation(),q().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),J={resetForm:k,validateForm:C,validateField:I,setErrors:D,setFieldError:$,setFieldTouched:N,setFieldValue:V,setStatus:H,setSubmitting:K,setTouched:x,setValues:U,setFormikState:W,submitForm:q},Q=Ir((function(){return d(E.values,J)})),X=Ir((function(e){e&&e.preventDefault&&fr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&fr(e.stopPropagation)&&e.stopPropagation(),k()})),Z=(0,n.useCallback)((function(e){return{value:br(E.values,e),error:br(E.errors,e),touched:!!br(E.touched,e),initialValue:br(h.current,e),initialTouched:!!br(m.current,e),initialError:br(b.current,e)}}),[E.errors,E.touched,E.values]),ee=(0,n.useCallback)((function(e){return{setValue:function(t,r){return V(e,t,r)},setTouched:function(t,r){return N(e,t,r)},setError:function(t){return $(e,t)}}}),[V,N,$]),te=(0,n.useCallback)((function(e){var t=pr(e),r=t?e.name:e,n=br(E.values,r),o={name:r,value:n,onChange:B,onBlur:G};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}),[G,B,E.values]),re=(0,n.useMemo)((function(){return!a()(h.current,E.values)}),[h.current,E.values]),ne=(0,n.useMemo)((function(){return void 0!==l?re?E.errors&&0===Object.keys(E.errors).length:!1!==l&&fr(l)?l(v):l:E.errors&&0===Object.keys(E.errors).length}),[l,re,E.errors,v]);return ir({},E,{initialValues:h.current,initialErrors:b.current,initialTouched:m.current,initialStatus:g.current,handleBlur:G,handleChange:B,handleReset:X,handleSubmit:Y,resetForm:k,setErrors:D,setFormikState:W,setFieldTouched:N,setFieldValue:V,setFieldError:$,setStatus:H,setSubmitting:K,setTouched:x,setValues:U,submitForm:q,validateForm:C,validateField:I,isValid:ne,dirty:re,unregisterField:M,registerField:P,getFieldProps:te,getFieldMeta:Z,getFieldHelpers:ee,validateOnBlur:i,validateOnChange:r,validateOnMount:c})}function Fr(e){var t=wr(e),r=e.component,o=e.children,a=e.render,i=e.innerRef;return(0,n.useImperativeHandle)(i,(function(){return t})),(0,n.createElement)(jr,{value:t},r?(0,n.createElement)(r,t):a?a(t):o?fr(o)?o(t):vr(o)?null:n.Children.only(o):null)}function Rr(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map((function(e){return!0===Array.isArray(e)||k(e)?Rr(e):""!==e?e:void 0})):k(e[n])?t[n]=Rr(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function Cr(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 kr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function Ir(e){var t=(0,n.useRef)(e);return kr((function(){t.current=e})),(0,n.useCallback)((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(void 0,r)}),[])}function Pr(e){var t=e.validate,r=e.name,o=e.render,a=e.children,i=e.as,u=e.component,c=cr(e,["validate","name","render","children","as","component"]),l=cr(Er(),["validate","validationSchema"]),s=l.registerField,f=l.unregisterField;(0,n.useEffect)((function(){return s(r,{validate:t}),function(){f(r)}}),[s,f,r,t]);var p=l.getFieldProps(ir({name:r},c)),d=l.getFieldMeta(r),y={field:p,form:l};if(o)return o(ir({},y,{meta:d}));if(fr(a))return a(ir({},y,{meta:d}));if(u){if("string"==typeof u){var v=c.innerRef,h=cr(c,["innerRef"]);return(0,n.createElement)(u,ir({ref:v},p,h),a)}return(0,n.createElement)(u,ir({field:p,form:l},c),a)}var b=i||"input";if("string"==typeof b){var m=c.innerRef,g=cr(c,["innerRef"]);return(0,n.createElement)(b,ir({ref:m},p,g),a)}return(0,n.createElement)(b,ir({},p,c),a)}var Mr=(0,n.forwardRef)((function(e,t){var r=e.action,o=cr(e,["action"]),a=null!=r?r:"#",i=Er(),u=i.handleReset,c=i.handleSubmit;return(0,n.createElement)("form",Object.assign({onSubmit:c,ref:t,onReset:u,action:a},o))}));function xr(e){var t=function(t){return(0,n.createElement)(Sr,null,(function(r){return r||rr(!1),(0,n.createElement)(e,Object.assign({},t,{formik:r}))}))},r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+r+")",or()(t,e)}Mr.displayName="Form";var Dr=function(e,t,r){var n=Ur(e);return n.splice(t,0,r),n},Ur=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(ir({},e,{length:t+1}))}return[]},$r=function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var o=r.props,a=o.name;(0,o.formik.setFormikState)((function(r){var o="function"==typeof n?n:e,i="function"==typeof t?t:e,u=mr(r.values,a,e(br(r.values,a))),c=n?o(br(r.errors,a)):void 0,l=t?i(br(r.touched,a)):void 0;return sr(c)&&(c=void 0),sr(l)&&(l=void 0),ir({},r,{values:u,errors:n?mr(r.errors,a,c):r.errors,touched:t?mr(r.touched,a,l):r.touched})}))},r.push=function(e){return r.updateArrayField((function(t){return[].concat(Ur(t),[ar(e)])}),!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Ur(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=Ur(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 Dr(r,e,t)}),(function(t){return Dr(t,e,null)}),(function(t){return Dr(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=Ur(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(lr(r)),r.pop=r.pop.bind(lr(r)),r}ur(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!a()(br(e.formik.values,e.name),br(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField((function(r){var n=r?Ur(r):[];return t||(t=n[e]),fr(n.splice)&&n.splice(e,1),n}),!0,!0),t},r.pop=function(){var e;return this.updateArrayField((function(t){var r=t;return e||(e=r&&r.pop&&r.pop()),r}),!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,o=t.render,a=t.children,i=t.name,u=ir({},e,{form:cr(t.formik,["validate","validationSchema"]),name:i});return r?(0,n.createElement)(r,u):o?o(u):a?"function"==typeof a?a(u):vr(a)?null:n.Children.only(a):null},t}(n.Component);$r.defaultProps={validateOnChange:!0};var Vr=function(e){function t(){return e.apply(this,arguments)||this}ur(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return br(this.props.formik.errors,this.props.name)!==br(e.formik.errors,this.props.name)||br(this.props.formik.touched,this.props.name)!==br(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=cr(e,["component","formik","render","children","name"]),c=br(r.touched,i),l=br(r.errors,i);return c&&l?o?fr(o)?o(l):null:a?fr(a)?a(l):null:t?(0,n.createElement)(t,u,l):l:null},t}(n.Component),Lr=xr(Vr);n.Component},86058:function(e,t,r){var n=r(72594),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,d=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(y){var o=d(r);o&&o!==y&&e(t,o,n)}var i=s(r);f&&(i=i.concat(f(r)));for(var u=c(t),v=c(r),h=0;h<i.length;++h){var b=i[h];if(!(a[b]||n&&n[b]||v&&v[b]||u&&u[b])){var m=p(r,b);try{l(t,b,m)}catch(e){}}}}return t}},8266:function(e){var t=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){var u,c,l,s=t(e),f=t(i);if(s&&f){if((c=e.length)!=i.length)return!1;for(u=c;0!=u--;)if(!a(e[u],i[u]))return!1;return!0}if(s!=f)return!1;var p=e instanceof Date,d=i instanceof Date;if(p!=d)return!1;if(p&&d)return e.getTime()==i.getTime();var y=e instanceof RegExp,v=i instanceof RegExp;if(y!=v)return!1;if(y&&v)return e.toString()==i.toString();var h=r(e);if((c=h.length)!==r(i).length)return!1;for(u=c;0!=u--;)if(!n.call(i,h[u]))return!1;if(o&&e instanceof Element&&i instanceof Element)return e===i;for(u=c;0!=u--;)if(!("_owner"===(l=h[u])&&e.$$typeof||a(e[l],i[l])))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},26697:function(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,s=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,h=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case s:case f:case a:case u:case i:case d:return e;default:switch(e=e&&e.$$typeof){case l:case p:case h:case v:case c:return e;default:return t}}case o:return t}}}function S(e){return j(e)===f}t.AsyncMode=s,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=p,t.Fragment=a,t.Lazy=h,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=i,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||j(e)===s},t.isConcurrentMode=S,t.isContextConsumer=function(e){return j(e)===l},t.isContextProvider=function(e){return j(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return j(e)===p},t.isFragment=function(e){return j(e)===a},t.isLazy=function(e){return j(e)===h},t.isMemo=function(e){return j(e)===v},t.isPortal=function(e){return j(e)===o},t.isProfiler=function(e){return j(e)===u},t.isStrictMode=function(e){return j(e)===i},t.isSuspense=function(e){return j(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===u||e===i||e===d||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===v||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===m||e.$$typeof===g||e.$$typeof===_||e.$$typeof===b)},t.typeOf=j},72594:function(e,t,r){e.exports=r(26697)}}]);
@@ -0,0 +1,8 @@
1
+ /** @license React v16.13.1
2
+ * react-is.production.min.js
3
+ *
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2803],{2803:function(e,t,n){"use strict";n.r(t),n.d(t,{DeleteFolderView:function(){return P}});var r=n(48088),i=n(21679),o=n(57857),l=n(31647),a=n(52076),c=n(10101),u=n(88172),s=n(57098),f=n(3059),h=n(93569),d=n(56906),p=n(11885),y=n.n(p);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function v(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}function g(e,t,n){return t=w(t),function(e,t){if(t&&("object"==b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,k()?Reflect.construct(t,n||[],w(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var P=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(t,e),n=t,p=[{key:"initialize",value:function(){this.listenTo(s.Vk.LIBRARY,"libraries:sync",this.render),this.collectionIdentifier=new f.F7(this.options.folderId,h.x$.GetCurrentSortType()),this.listenTo(s.Vk.VIDEO,"".concat(this.collectionIdentifier,":sync"),this.render),this.libraryDataService=i.u.getInstance(s.Or.Library,this),this.videoDataService=i.u.getInstance(s.Or.Video,this)}},{key:"name",get:function(){return"DeleteFolderView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.deleteFolder"}},{key:"template",get:function(){return y()}},{key:"channelName",get:function(){return h.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.Yw,title:o.T.getPhrase(this.lang,"removeFolder"),spinnerButtonOptions:{channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"remove"),extraButtonClass:"btn-danger",onClick:function(t){return e.onClickDelete(t)}}}]}},{key:"getParentId",value:function(){if(h.PU.isSubFolder(this.model)&&this.model&&this.model.collection&&this.model.collection.parent&&this.model.collection.parent instanceof l.Q.Hn)return this.model.collection.parent.get("id");var e=h.PU.getLibrary(this.model.get("id"),this.model.collection);return e&&e.id||null}},{key:"onClickDelete",value:function(e){e&&e.preventDefault(),r.Radio.channel(this.channelName).trigger(u.I3.ShowSpinner);var t=this.getParentId(),n=h.PU.isSubFolder(this.model)?s.eX.LibraryEditor.FOLDER:s.eX.LibraryEditor.LIBRARY;this.libraryDataService.deleteFolder(this.options.folderId,(function(){l.Q.C$.trigger({application:s.OV.LIBRARY_EDITOR,action:n,args:[t]},{replace:!0})})),this.logAction()}},{key:"logAction",value:function(){var e={id:this.options.folderId,name:this.model.get("name")};a.k.logUserAction(e,this.options.analyticsOptions)}},{key:"canDelete",value:function(){return!(this.model.children&&this.model.children.length||this.videos&&this.videos.length)}},{key:"onBeforeRender",value:function(){var e=this;return this.libraryDataService.getFolderFromLibraries(this.options.folderId,(function(t){e.model=t})),this.videos=this.videoDataService.getCollectionVideos(this.collectionIdentifier),!(!this.model||!this.videos||!this.canDelete()&&(window.setTimeout((function(){e.triggerMethod("hide"),l.Q.Ry.throw(new d.QH)}),s.pA.POPUP_FADE_TIMEOUT),1))}}],p&&m(n.prototype,p),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,p}(l.Q.G7)},11885:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"check",{name:"lang",hash:{name:null!=t?t.name:t},data:i}))?o:""},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2888],{12888:function(e,t,n){"use strict";n.r(t),n.d(t,{EditResourceView:function(){return R}});var o=n(48088),r=n(39479),i=n(21679),a=n(57857),u=n(99249),c=n(31647),l=n(52076),s=n(10101),f=n(88172),p=n(57098),d=n(67670),y=n(14327),h=n(93569),b=n(7190),v=n(6375),m=n.n(v);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function w(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,O(o.key),o)}}function O(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}function k(e,t,n){return t=E(t),function(e,t){if(t&&("object"==g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,S()?Reflect.construct(t,n||[],E(e).constructor):t.apply(e,n))}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}var R=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),k(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(t,e),n=t,v=[{key:"initialize",value:function(){this.listenTo(p.Vk.RESOURCE,"resource:".concat(this.options.resourceId,":sync"),this.render),this.resourceDataService=i.u.getInstance(p.Or.Resource,this)}},{key:"name",get:function(){return"EditResourceView"}},{key:"lang",get:function(){return"libraryEditor.editResource"}},{key:"title",get:function(){return a.T.getPhrase(this.lang,"title")}},{key:"template",get:function(){return m()}},{key:"channelName",get:function(){return h.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.Yw,title:a.T.getPhrase(this.lang,"edit"),spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new d.v,buttonText:a.T.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"elements",get:function(){return{name:"#name",feedback:".form-feedback"}}},{key:"events",value:function(){return{submit:"onSubmit","shown.bs.modal":"onModalShown"}}},{key:"onSubmit",value:function(e){var t=this;e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(o.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner),this.resourceDataService.updateResource(this.options.videoId,this.viewModel,(function(){t.logAction(),c.Q.C$.trigger({application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.EDIT_VIDEO_RESOURCES,args:[t.options.videoId]})})))}},{key:"logAction",value:function(){var e={id:this.options.resourceId,parentId:+this.options.videoId,name:this.viewModel.get("name")};l.k.logUserAction(e,this.options.analyticsOptions)}},{key:"selectAllWithoutExtension",value:function(){if(this.model){var e=this.model.get("name").split(".").slice(0,-1).join("."),t=this.getUI("name");t.each((function(n,o){if(r.isFunction(o.setSelectionRange))t.focus(),o.setSelectionRange(0,e.length);else if(r.isFunction(o.createTextRange)){var i=o.createTextRange();i.collapse(!0),i.moveEnd("character",e.length),i.moveStart("character",0),i.select()}}))}}},{key:"onModalShown",value:function(){this.selectAllWithoutExtension()}},{key:"dataFetched",value:function(){return!!this.model&&!!this.viewModel}},{key:"onBeforeRender",value:function(){var e=this;this.model=this.resourceDataService.getResource(this.options.resourceId,(function(t){e.viewModel=u.r.get("resource:".concat(e.options.resourceId),t.toJSON(),{ctor:y._}),e.viewModel.addValidation(b.A9)})),this.dataFetched()&&this.spinnerModel.set(f.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:h.Kp.getSpinner({size:h.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.viewModel&&(this.stickit(this.viewModel),o.Validation.bind(this,{model:this.viewModel}),this.selectAllWithoutExtension())}},{key:"onClose",value:function(){this.unstickit(),o.Validation.unbind(this)}}],v&&w(n.prototype,v),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,v}(c.Q.G7)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return d}});var o=n(31647),r=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,c(o.key),o)}}function c(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function l(e,t,n){return t=f(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,(o=[{key:"defaults",value:function(){return a(a({},r.ZV.Disabled,!0),r.ZV.Hidden,!1)}}])&&u(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.Hn)},6375:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression;return'<form>\n <div class="form-group">\n <label for="name" class="control-label">'+u((n.lang||t&&t.lang||a).call(i,"fileName",{name:"lang",hash:{},data:r}))+'</label>\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((n.lang||t&&t.lang||a).call(i,"fileName",{name:"lang",hash:{},data:r}))+'" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n</form>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[299],{91439:function(t,e,n){"use strict";n.d(e,{u:function(){return v}});var o=n(48088),r=n(39479),i=n(31647),s=n(63791),l=n(57098),a=n(93421),u="C8gyn";function c(t){return c="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},c(t)}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function f(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function h(t,e,n){return e=y(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}var v=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(e,t),n=e,(i=[{key:"getClassMappings",value:function(){return{"ui-draggable":a.W2.draggable,"ui-draggable-handle":a.W2.handle,"ui-draggable-disabled":a.W2.disabled,"ui-draggable-dragging":a.W2.dragging}}},{key:"helper",value:function(){return new a.ND({text:this.view.model.get("name"),svg:s.Nj.getSvg(s.vn.Folder)}).render().el}},{key:"start",value:function(){o.Radio.channel(l.jr.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(u)}},{key:"stop",value:function(){o.Radio.channel(l.jr.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(u)}},{key:"onRender",value:function(){var t={helper:r.bind(this.helper,this),start:r.bind(this.start,this),stop:r.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(r.extend({},a.wc,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.cg)},6929:function(t,e,n){"use strict";n.d(e,{x:function(){return y}});var o=n(48088),r=n(39479),i=n(31647),s=n(50997),l=n(10454);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,c(o.key),o)}}function c(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function p(t,e,n){return e=h(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,(i=[{key:"initialize",value:function(){this.listenTo(s.jr.VIDEO_DRAG_DROP,"drag:stop",this.stop),this.listenTo(s.jr.FOLDER_DRAG_DROP,"drag:stop",this.stop)}},{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;r.each(this.options.channelNames,(function(e){o.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return r.each(this.options.channelNames,(function(n){!0===o.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e||(this.disabledElement=this.getDroppableElement(),this.disabledElement.addClass(l.Z.disabled)),e}},{key:"stop",value:function(){var t;null===(t=this.disabledElement)||void 0===t||t.removeClass(l.Z.disabled)}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",l.Z.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:r.bind(this.drop,this),accept:r.bind(this.accept,this),over:r.bind(this.over,this),out:r.bind(this.out,this)};t.classes={"ui-droppable":l.Z.droppable,"ui-droppable-active":l.Z.active,"ui-droppable-hover":l.Z.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&u(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.cg)},93421:function(t,e,n){"use strict";n.d(e,{wc:function(){return d},ND:function(){return h},W2:function(){return i}});var o=n(62699),r=n.n(o),i={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"};function s(t){return s="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},s(t)}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,a(o.key),o)}}function a(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==s(e)?e:e+""}function u(t,e,n){return e=p(e),function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var h=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return r()}},{key:"className",get:function(){return"".concat(i.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:i},this.options)}}])&&l(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(n(31647).Q.wA),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},50299:function(t,e,n){"use strict";n.d(e,{J:function(){return D}});var o=n(39479),r=n(31647),i=n(48088),s=n(70065),l=n(63791),a=n(57098),u=n(93569),c=n(91439),p=n(6929),f=n(42978),h=n.n(f);function d(t){return d="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},d(t)}function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,b(o.key),o)}}function b(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=d(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==d(e)?e:e+""}function v(t,e,n){return e=g(e),function(t,e){if(e&&("object"==d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,m()?Reflect.construct(e,n||[],g(t).constructor):e.apply(t,n))}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}var O=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(e,t),n=e,(f=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render);var t=this.getChildren();t&&this.listenTo(t,"add remove",this.render),this.listenTo(this,"open:sub:folders",this.onOpenSubFolders)}},{key:"name",get:function(){return"LeftNavNodeComponent"}},{key:"elements",get:function(){return{anchor:".ui-node",text:".ui-text"}}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="position-relative";return this.isSelected()&&(t+=" ".concat(this.options.styles.selected)),this.isParent()&&(t+=" ".concat(this.options.styles.parent)),this.options.isSelector&&(t+=" ".concat(this.options.styles.isSelector)),t}},{key:"behaviors",get:function(){return this.options.isSelector?[]:[{behaviorClass:p.x,ui:"anchor",channelNames:[a.jr.VIDEO_DRAG_DROP,a.jr.FOLDER_DRAG_DROP],analyticsOptions:{location:s.LZ.LeftNav}},{behaviorClass:c.u}]}},{key:"appLinks",get:function(){return this.options.appLink?{"@ui.anchor":this.getAppLink()}:{}}},{key:"events",value:function(){return{"click .ui-node":"onClick"}}},{key:"regions",value:function(){return{children:{el:"ul",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"template",get:function(){return h()}},{key:"hasChildren",value:function(){var t=this.getChildren();return!!t&&!!t.length}},{key:"getChildren",value:function(){return this.options.childrenProperty?this.model.get(this.options.childrenProperty):null}},{key:"getText",value:function(){return this.options.textProperty?this.model.get(this.options.textProperty):this.model.get("name")}},{key:"isSelected",value:function(){return u.PU.isSelected(this.options.folderTreeId,this.model.get("id"))}},{key:"isParent",value:function(){return u.PU.isParent(this.options.folderTreeId,this.model.get("id"))}},{key:"isDisabled",value:function(){return this.options.disabledIds&&this.options.disabledIds[this.model.get("id").toString()]}},{key:"getAnchorClass",value:function(){var t="position-relative ".concat(this.options.styles.node);return this.isSelected()?t+=" text-body fw-bold":this.isDisabled()?t+=" text-secondary":t+=" text-dark",t}},{key:"getCaretClass",value:function(){var t=this.options.styles.caret;return this.isDisabled()&&(t+=" text-secondary"),t}},{key:"getAppLink",value:function(){if(!this.options.appLink)return{};var t=this.options.linkArgs,e=this.options.linkParams;return{application:this.options.appLink.application,action:this.options.appLink.action,args:o.isFunction(t)?t(this.model):null,params:o.isFunction(e)?e(this.model):null}}},{key:"onClick",value:function(t){t.stopPropagation();var e=this.getRegion("children"),n=i.Radio.channel(this.options.channelName);if(this.isDisabled()||(this.$el.addClass(this.options.styles.selected),this.getUI("text").addClass("text-body fw-bold")),this.options.isSelector&&n.trigger("folder:selected",this.model,this.isDisabled()),this.isDisabled()||this.isSelected()&&this.isCurrentPath()){if(t.stopImmediatePropagation(),t.preventDefault(),!this.hasChildren())return void(this.options.isSelector&&n.trigger("re:render:selector"));var o=!e.hasView();return o?this.openChildren():this.closeChildren(),void(this.options.isSelector&&o&&n.trigger("re:render:selector"))}this.hasChildren()&&(this.openChildren(),this.options.isSelector&&i.Radio.channel(this.options.channelName).trigger("re:render:selector"))}},{key:"isCurrentPath",value:function(){var t=r.Q.C$.getCurrentAppLink(),e=this.getAppLink();return!o.keys(e).length||t.application===e.application&&t.action===e.action}},{key:"closeChildren",value:function(){var t=this.getRegion("children");this.$el.addClass(this.options.styles.collapsed),this.$el.removeClass(this.options.styles.parent),t.empty()}},{key:"openChildren",value:function(){this.$el.removeClass(this.options.styles.collapsed),this.renderChildren()}},{key:"onOpenSubFolders",value:function(t){this.renderedSubChildren||this.renderChildren(t)}},{key:"renderChildren",value:function(t){var e=this.getChildren();if(e&&e.length){var n={styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,extraClass:this.options.extraClass,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds};n.extraClasses=t,n.collection=e,this.showChildView("children",new D(n)),this.renderedSubChildren=!0}}},{key:"viewOptions",value:function(){var t="".concat(this.options.styles.item," ").concat(this.options.styles.customItem||"");return this.isDisabled()&&this.renderedSubChildren&&(t+=" ".concat(this.options.styles.disabledActive)),{children:this.getChildren(),itemClass:t,anchorClass:this.getAnchorClass(),caretClass:this.getCaretClass(),showCaret:this.hasChildren(),svg:l.Nj.getSvg(l.vn.Caret),extraClasses:this.options.extraClasses,textStyle:this.options.styles.text,text:this.getText()}}},{key:"onRender",value:function(){this.resetClassName(),this.options.actions&&this.showChildView("actions",new this.options.actions({model:this.model,extraClasses:"rounded-circle me-1 ".concat(this.options.styles.actions),buttonClass:"text-secondary",analyticsOptions:this.options.analyticsOptions})),(this.isSelected()||this.isParent())&&this.renderChildren()}}])&&y(n.prototype,f),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,f}(r.Q.wA),k=n(95308);function C(t){return C="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},C(t)}function P(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,j(o.key),o)}}function j(t){var e=function(t,e){if("object"!=C(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=C(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==C(e)?e:e+""}function S(t,e,n){return e=x(e),function(t,e){if(e&&("object"==C(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_()?Reflect.construct(e,n||[],x(t).constructor):e.apply(t,n))}function _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_=function(){return!!t})()}function x(t){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},x(t)}function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}var D=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.styles=o.extend({},k.Z,t.styles),S(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E(t,e)}(e,t),n=e,(r=[{key:"name",get:function(){return"LeftNavComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"childView",get:function(){return O}},{key:"className",get:function(){var t="".concat(this.options.styles.folderTree," position-relative");return this.options.extraClass?"".concat(t," ").concat(this.options.extraClass):t}},{key:"viewComparator",get:function(){return function(t){var e;return null===(e=t.model.get("name"))||void 0===e?void 0:e.toLowerCase()}}},{key:"childViewOptions",get:function(){return{styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,extraClass:this.options.extraClass,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds}}}])&&P(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.$W)},62699:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,l=t.escapeExpression;return'<span class="'+l(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' me-2">'+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\n<span class="'+l(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+l(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},42978:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda;return' <span class="'+t.escapeExpression(s(null!=(i=null!=e?e.options:e)?i.caretClass:i,e))+' d-inline-block position-absolute">\n '+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"\n </span>\n"},3:function(t,e,n,o,r){return"<ul></ul>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,l=t.escapeExpression,a=null!=e?e:t.nullContext||{};return'<div class="position-relative '+l(s(null!=(i=null!=e?e.options:e)?i.itemClass:i,e))+'">\n <a class="'+l(s(null!=(i=null!=e?e.options:e)?i.anchorClass:i,e))+' d-block ui-node">\n'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.showCaret:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' <span class="'+l(s(null!=(i=null!=e?e.options:e)?i.textStyle:i,e))+" ui-text "+l(s(null!=(i=null!=e?e.options:e)?i.extraClasses:i,e))+'">'+l(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+'</span>\n </a>\n <div class="actions-region"></div>\n</div>\n'+(null!=(i=n.if.call(a,null!=(i=null!=(i=null!=e?e.options:e)?i.children:i)?i.length:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})},95308:function(t,e){"use strict";e.Z={folderTree:"JTT7V",text:"ekgGD",caret:"tFpUT",library:"VmDO7",isSelector:"gxCnr",selected:"UotqF",parent:"WHPA5",disabledActive:"S2QPI",disabled:"tntwp",collapsed:"Po9s7",actions:"Sf28U",node:"vm17w",libraryContainer:"_xoJs",item:"aMuxi"}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2998],{72998:function(e,n,t){"use strict";t.d(n,{J:function(){return z}});var o=t(48088),i=t(57857),s=t(31647),r=t(17391),a=t(29625),l=t(48726),u=t(99844),c=t(36022),p=t(57098),d=t(93569),h=t(40622),f=t(99249),m=t(63791),b=t(10101),g=t(88172),y=t(7190),v=t(73519),k=t.n(v),w=t(48242),E=t.n(w),S={button:"pEi0b",svg:"Hg4El",disabled:"q5qSy",seasonContainer:"KfwZK"};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function C(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function T(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,N(o.key),o)}}function I(e,n,t){return n&&T(e.prototype,n),t&&T(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function N(e){var n=function(e,n){if("object"!=O(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=O(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(n)?n:n+""}function P(e,n,t){return n=R(n),function(e,n){if(n&&("object"==O(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,x()?Reflect.construct(n,t||[],R(e).constructor):n.apply(e,t))}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}function j(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&_(e,n)}function _(e,n){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},_(e,n)}var B=function(e){function n(e){var t;return C(this,n),(t=P(this,n,[e])).showSpinner=!1,t.disableBtn=!0,t}return j(n,e),I(n,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"CreateSeasonComponent"}},{key:"template",get:function(){return k()}},{key:"className",get:function(){return"px-2"}},{key:"bindings",get:function(){return{"[name=number]":{observe:"number",setOptions:{validate:!0}}}}},{key:"regions",value:function(){return{button:{el:".button-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:b.Bp},{behaviorClass:b.fS}]}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.onChange),this.listenTo(this.options.channelName,"create:season",this.onCreateSeason),this.listenTo(p.Vk.SERIES,"".concat(p.M_.CREATE_SEASON,":").concat(this.options.seriesId,":sync"),this.onSync)}},{key:"onChange",value:function(){this.disableBtn=!this.model.isValid(),this.renderButton()}},{key:"onCreateSeason",value:function(){this.disableBtn||(this.model.validate(),this.model.isValid()&&(this.showSpinner=!0,this.renderButton(),this.model.set("number",parseInt(this.model.get("number"))),o.Radio.channel(this.options.channelName).trigger("select:season",this.model.toJSON())))}},{key:"onSync",value:function(){this.disableBtn=!0,this.showSpinner=!1,this.model.clear(),this.renderButton()}},{key:"viewOptions",value:function(){return{model:this.model,show:this.options.show}}},{key:"renderButton",value:function(){this.options.show&&this.showChildView("button",new g.Py({channelName:this.options.channelName,saveEvent:"create:season",extraButtonClass:"btn btn-dark",buttonText:"Create",buttonType:"submit",showSpinner:this.showSpinner,disabled:this.disableBtn,spinnerOptions:{size:d.Ey.Small}}))}},{key:"onRender",value:function(){this.stickit(),this.renderButton()}},{key:"onClose",value:function(){this.unstickit()}}])}(s.Q.wA),D=function(e){function n(e){return C(this,n),P(this,n,[e])}return j(n,e),I(n,[{key:"initialize",value:function(){this.model.get("season.id")&&d.yV.setSelected(this.model.get("season.id"),this.collection),this.viewModel=f.r.get("".concat(this.name,":").concat(this.model.get("id"))),this.options.disabled||this.viewModel.addValidation(y.c6)}},{key:"name",get:function(){return"EditSeasonInfoComponent"}},{key:"template",get:function(){return E()}},{key:"className",get:function(){return S.seasonContainer}},{key:"lang",get:function(){return"shared.editSeasonInfo"}},{key:"events",value:function(){return{"click .dropdown-btn":"onToggleDropdown","click .dropdown-menu":"onClickPopover","click .create":"onClickCreateNewSeason","change .form-select":"onSelectOption","click .remove":"onClickRemove"}}},{key:"elements",get:function(){return{dropdownBtn:".dropdown-btn"}}},{key:"regions",value:function(){return{create:{el:".create-region",replaceElement:!0}}}},{key:"onToggleDropdown",value:function(e){this.options.disabled?e.stopPropagation():this.renderCreate()}},{key:"onClickPopover",value:function(e){e.stopPropagation()}},{key:"onClickCreateNewSeason",value:function(e){e.preventDefault(),this.showCreateForm=!0,this.renderCreate()}},{key:"onSelectOption",value:function(e){var n=e.target.value,t="-1"===n?null:this.collection.findWhere({number:+n}).toJSON();this.setButtonText(n),o.Radio.channel(this.options.channelName).trigger("select:season",t),this.showCreateForm=!1,this.render()}},{key:"onClickRemove",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger("select:season",null),this.showCreateForm=!1,this.render()}},{key:"setButtonText",value:function(e){if(this.options.isSuggestEdit){var n=e&&"-1"!==e?i.T.getPhrase(this.lang,"season",{number:e}):"";n&&this.getUI("dropdownBtn").text(n)}else{var t=e&&"-1"!==e?"season":"placeholder";this.getUI("dropdownBtn").text(i.T.getPhrase(this.lang,t,{number:e}))}}},{key:"renderCreate",value:function(){this.showChildView("create",new B({model:this.viewModel,channelName:this.options.channelName,show:this.showCreateForm,seriesId:this.model.get("series.id")}))}},{key:"viewOptions",value:function(){return{styles:S,disabled:this.options.disabled,seasons:this.collection.toJSON(),svgRemove:m.Nj.getSvg(m.vn.Close),showRemoveIcon:!!this.model.get("season.id")&&!this.options.isSuggestEdit}}},{key:"onRender",value:function(){this.renderCreate(),this.setButtonText(this.model.get("season.number"))}}])}(s.Q.wA),A=t(37571),V=t.n(A),M=t(45092);function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function F(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,L(o.key),o)}}function L(e){var n=function(e,n){if("object"!=U(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=U(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==U(n)?n:n+""}function G(e,n,t){return n=q(n),function(e,n){if(n&&("object"==U(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,J()?Reflect.construct(n,t||[],q(e).constructor):n.apply(e,t))}function J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(J=function(){return!!e})()}function q(e){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},q(e)}function Q(e,n){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Q(e,n)}var z=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),G(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Q(e,n)}(n,e),t=n,f=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"select:season",this.onSelectSeason),this.listenTo(this.options.channelName,"clear:series",this.onSeriesChange),this.listenTo(this.model,"change:series",this.onSeriesChange),this.lockSeasonAndEpisode=!this.options.editable||!this.model.get("series.id")}},{key:"name",get:function(){return"EditBasicInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return V()}},{key:"lang",get:function(){return"shared.editBasicInfo"}},{key:"channelName",get:function(){return this.options.channelName}},{key:"className",get:function(){return"edit-basic-info"}},{key:"events",value:function(){return{submit:function(e){return e.preventDefault()}}}},{key:"elements",get:function(){return{episodeNumberField:".episode-number",seriesTypeahead:".tt-input"}}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},ratings:{el:".ratings-region",replaceElement:!0},series:{el:".edit-series-region",replaceElement:!0},season:{el:".edit-season-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".suggest-title":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id"),this.model.get("typeId")],params:{metadata:h.pG.VideoTitle}},".suggest-description":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id"),this.model.get("typeId")],params:{metadata:h.pG.Description}},".suggest-series-title":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:h.pG.SeriesTitle}},".suggest-season-number":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:h.pG.Season}},".suggest-episode-number":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:h.pG.EpisodeNumber}}}}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}},"[name=description]":{observe:"description",setOptions:{validate:!0}},"[name=episodeNumber]":{observe:"episodeNumber",setOptions:{validate:!0},onSet:function(e){return e?+e:null}}}}},{key:"onSelectSeason",value:function(e){e&&this.getUI("episodeNumberField").focus(),o.Radio.channel(this.options.channelName).trigger("add:season",e)}},{key:"onSeriesChange",value:function(e){this.lockSeasonAndEpisode=!e||!e.get("id"),this.renderEditSeason();var n=this.getUI("episodeNumberField");this.lockSeasonAndEpisode?(n.attr("disabled","disabled"),n.attr("class","form-control ".concat(M.Z.disabled))):(n.removeAttr("disabled"),n.attr("class","form-control"))}},{key:"getTypeaheadConfigs",value:function(){var e=d.MK.getTypeaheadConfig(),n=d.MK.getBloodhoundConfig(),t={filterEmptySeries:!1},o=Object.assign({hideEmptyResults:!0},t),i=Object.assign({newType:p.n8.Series},t),s=Object.assign({newType:p.n8.Series,footerTemplate:r.J.getConfirmSelectionTemplate()},t);return[{name:p.n8.Series,typeaheadConfig:e,bloodhoundConfig:n,options:o},{name:"add-new",typeaheadConfig:e,bloodhoundConfig:n,options:i},{name:"empty-suggestion",typeaheadConfig:e,bloodhoundConfig:n,options:s}]}},{key:"renderSeriesTypeahead",value:function(){if(d.M2.isVideo(this.model)){var e=this.model.series||new s.Q.Hn;this.showChildView("series",new c.M({model:e,editable:this.options.editable,parentChannelName:this.options.channelName,inputId:"series-search",selectEvent:"select:series",placeholderText:this.options.editable?i.T.getPhrase(this.lang,"searchSeries"):"",typeaheadConfigs:this.getTypeaheadConfigs(),typeaheadOptions:{hint:!1},callbacks:{onRender:r.J.selectFirstResult,onInput:r.J.emitEventOnInput(this.options.channelName,h.NT.DetectInput,"series"),onBlur:r.J.resetAssociationOnBlur(e.toJSON())},removeEvent:"remove:series"}))}}},{key:"renderEditSeason",value:function(){var e=this;if(d.M2.isVideo(this.model)){var n=this.model.get("series.seasons")||new a.i,t=new a.i(n.map((function(n){return n.set("displayName",i.T.getPhrase(e.lang,"seasonNumber",{number:n.get("number")}))})));this.showChildView("season",new D({model:this.model,collection:t,channelName:this.options.channelName,disabled:!this.options.editable||this.lockSeasonAndEpisode,isSuggestEdit:!this.options.editable}))}}},{key:"renderDescription",value:function(){this.showChildView("description",new u.F({name:"description",class:"form-control ".concat(!this.options.editable&&M.Z.disabled),placeholder:this.options.editable?i.T.getPhrase(this.lang,"descriptionPlaceholder"):"",id:"edit-description",disabled:!this.options.editable}))}},{key:"renderRatings",value:function(){d.M2.isVideo(this.model)&&this.showChildView("ratings",new l.R({model:this.model.rating,collection:this.options.ratings,parentChannelName:this.options.channelName,editable:this.options.editable,videoId:this.model.get("id")}))}},{key:"viewOptions",value:function(){return{styles:M.Z,requiredFields:this.options.requiredFields,videoTitlePlaceholder:this.options.editable?i.T.getPhrase(this.lang,"titlePlaceholder"):"",editable:this.options.editable,showingSaveButton:this.options.showingSaveButton,lockEpisodeNumber:this.lockSeasonAndEpisode,episodeNumberPlaceholderText:this.options.editable?i.T.getPhrase(this.lang,"epNumberPlaceholder"):""}}},{key:"onRender",value:function(){this.renderDescription(),this.renderRatings(),this.renderSeriesTypeahead(),this.renderEditSeason(),this.stickit(),o.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),o.Validation.unbind(this)}}],f&&F(t.prototype,f),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,f}(s.Q.wA)},99844:function(e,n,t){"use strict";t.d(n,{F:function(){return m}});var o=t(39479),i=t(31647),s=t(64154),r=t.n(s),a={resizingTextarea:"hJmNl"};function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,c(o.key),o)}}function c(e){var n=function(e,n){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(n)?n:n+""}function p(e,n,t){return n=h(n),function(e,n){if(n&&("object"==l(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(n,t||[],h(e).constructor):n.apply(e,t))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,n){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},f(e,n)}var m=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),p(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}(n,e),t=n,(i=[{key:"name",get:function(){return"ResizingTextAreaComponent"}},{key:"template",get:function(){return r()}},{key:"events",value:function(){return{"input .event-selector":"onInput"}}},{key:"onInput",value:function(e){var n=e.target;n.style.height="inherit";var t=window.getComputedStyle(n),o=parseInt(t.getPropertyValue("border-top-width"),10)+parseInt(t.getPropertyValue("padding-top"),10)+n.scrollHeight+parseInt(t.getPropertyValue("padding-bottom"),10)+parseInt(t.getPropertyValue("border-bottom-width"),10);n.style.height=o+"px"}},{key:"viewOptions",value:function(){return o.extend({},this.options,{styles:a})}}])&&u(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i}(i.Q.wA)},36022:function(e,n,t){"use strict";t.d(n,{M:function(){return k}});var o=t(48088),i=t(39479),s=t(11306),r=t(31647),a=t(17391),l=t(63791),u=t(93569),c=t(94407),p=t.n(c),d={svg:"QbFgf",typeaheadContainer:"Y3ErG",disabled:"VTCM4"};function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function f(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,m(o.key),o)}}function m(e){var n=function(e,n){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=h(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(n)?n:n+""}function b(e,n,t){return n=y(n),function(e,n){if(n&&("object"==h(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,g()?Reflect.construct(n,t||[],y(e).constructor):n.apply(e,t))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,n){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},v(e,n)}var k=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),b(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&v(e,n)}(n,e),t=n,c=[{key:"name",get:function(){return"SearchTypeaheadComponent"}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"search-container ".concat(d.typeaheadContainer," mb-2")}},{key:"channelName",get:function(){return u.N0.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{input:"#".concat(this.options.inputId)}}},{key:"defaults",get:function(){return{inputId:"search-typeahead",placeholderText:"Search",stickItProperty:"name",selectEvent:"select:result",additionalClasses:"",editable:!0}}},{key:"events",value:function(){return{submit:"onSubmit","click .remove":"onClickRemove"}}},{key:"initialize",value:function(){this.model||this.options.parentChannelName||r.Q.Ry.throw(new s.H("Either pass a model or a channelName to access the typeahead selection")),this.model||(this.model=new r.Q.Hn),this.options.inputName||(this.options.inputName=this.options.inputId),this.bindListeners()}},{key:"bindListeners",value:function(){this.options.parentChannelName&&(this.parentChannel=o.Radio.channel(this.options.parentChannelName)),this.listenTo(this.channelName,"typeahead:set:input",this.setInput),this.listenTo(this.channelName,"typeahead:clear:input",this.clearInput)}},{key:"bindings",get:function(){var e,n,t;return e={},n="[name=".concat(this.options.inputName,"]"),t={observe:this.options.stickItProperty,setOptions:{validate:!0}},(n=m(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}},{key:"clearInput",value:function(){this.getUI("input").typeahead("val",null)}},{key:"setInput",value:function(e){this.getUI("input").typeahead("val",e)}},{key:"onTypeaheadSelect",value:function(e,n){var t;e.preventDefault(),t="string"==typeof n?n:n.title||n.name||n.query,this.model.set(this.options.stickItProperty,t),this.parentChannel&&this.options.selectEvent&&this.parentChannel.trigger(this.options.selectEvent,n),this.onSubmit(e),this.toggleRemove()}},{key:"onSubmit",value:function(e){var n=this;if(e.preventDefault(),!this.isDestroyed()&&this.getTypeaheadActionOptions().clearOnSelect)return this.getUI("input").typeahead("close"),setTimeout((function(){n.model.clear(),n.clearInput()}),0),!1}},{key:"onClickRemove",value:function(){this.model.clear(),this.parentChannel.trigger(this.options.removeEvent,this.model),this.toggleRemove()}},{key:"getSources",value:function(){return i.isArray(this.options.typeaheadConfigs)?a.J.getSearchSources(this.options.typeaheadConfigs):a.J.getSearchSources([this.options.typeaheadConfigs])}},{key:"getTypeaheadOptions",value:function(){var e={minLength:1,highlight:!0};return this.options.typeaheadOptions?i.extend({},e,this.options.typeaheadOptions):e}},{key:"getTypeaheadActionOptions",value:function(){var e={clearOnSelect:!1};return i.isObject(this.options.actionOptions)?i.extend({},e,this.options.actionOptions):e}},{key:"bindOptionalCallbacks",value:function(){i.isObject(this.options.callbacks)&&(i.isFunction(this.options.callbacks.onRender)&&this.getUI("input").on("typeahead:render",i.bind(this.options.callbacks.onRender,this)),i.isFunction(this.options.callbacks.onInput)&&this.listenTo(this.model,"change:".concat(this.options.stickItProperty),this.options.callbacks.onInput),i.isFunction(this.options.callbacks.onBlur)&&this.getUI("input").on("blur",i.bind(this.options.callbacks.onBlur,this,this.channelName,this.options.stickItProperty)))}},{key:"initTypeahead",value:function(){this.getUI("input").typeahead(this.getTypeaheadOptions(),this.getSources())}},{key:"initTypeaheadListeners",value:function(){this.getUI("input").on("typeahead:select",i.bind(this.onTypeaheadSelect,this)),this.bindOptionalCallbacks()}},{key:"toggleRemove",value:function(){this.shouldShowRemove()?this.$el.find(".remove").show():this.$el.find(".remove").hide()}},{key:"shouldShowRemove",value:function(){return!!this.options.editable&&(!!this.options.forceShowRemoveButton||this.options.removeEvent&&!!this.model.get(this.options.stickItProperty))}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:d},this.options),{showRemove:this.shouldShowRemove(),svgRemove:l.Nj.getSvg(l.vn.Close)})}},{key:"onRender",value:function(){var e=this;this.stickit(),this.initTypeahead(),this.initTypeaheadListeners(),o.Validation.bind(this),this.toggleRemove(),this.options.autofocus&&window.requestAnimationFrame((function(){e.getUI("input").focus()}))}},{key:"onClose",value:function(){this.getUI("input").off(),this.unstickit(),o.Validation.unbind(this)}}],c&&f(t.prototype,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,c}(r.Q.wA)},37571:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return"d-inline-block"},3:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.programTitle:s,n))},5:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,'<span class="'+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.requiredStar:s,n))+'">*</span>'},7:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression;return'<span class="'+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.suggestEdit:s,n))+'">- <a class="suggest-title">'+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:i}))+"</a></span>"},9:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.disabled:s,n))},11:function(e,n,t,o,i){return"disabled"},13:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return' <div class="row">\n <div class="form-group col-6 p-0 '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <label for="edit-title">'+l((t.lang||n&&n.lang||a).call(r,"series",{name:"lang",hash:{},data:i}))+"</label>\n "+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(16,i,0),inverse:e.noop,data:i}))?s:"")+'\n <div class="edit-series-region"></div>\n <div class="form-feedback"></div>\n </div>\n <div class="form-group col-3 pe-0 '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(18,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <label for="edit-season-number">'+l((t.lang||n&&n.lang||a).call(r,"season",{name:"lang",hash:{},data:i}))+"</label>\n "+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(20,i,0),inverse:e.noop,data:i}))?s:"")+'\n <div class="edit-season-region"></div>\n <div class="form-feedback"></div>\n </div>\n <div class="form-group col-3 pe-0 '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(22,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <label for="edit-episode-number">'+l((t.lang||n&&n.lang||a).call(r,"episode",{name:"lang",hash:{},data:i}))+"</label>\n "+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(24,i,0),inverse:e.noop,data:i}))?s:"")+'\n <input\n name="episodeNumber"\n type="number"\n class="form-control episode-number '+(null!=(s=t.if.call(r,null!=(s=null!=n?n.options:n)?s.lockEpisodeNumber:s,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?s:"")+'"\n id="edit-episode-number"\n placeholder="'+l(e.lambda(null!=(s=null!=n?n.options:n)?s.episodeNumberPlaceholderText:s,n))+'"\n autocomplete="off"\n min="1"\n '+(null!=(s=t.if.call(r,null!=(s=null!=n?n.options:n)?s.lockEpisodeNumber:s,{name:"if",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?s:"")+'\n >\n <div class="form-feedback"></div>\n </div>\n </div>\n'},14:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.seriesTitle:s,n))},16:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression;return'<span class="'+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.suggestEdit:s,n))+'">- <a class="suggest-series-title">'+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:i}))+"</a></span>"},18:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.seasonNumber:s,n))},20:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression;return'<span class="'+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.suggestEdit:s,n))+'">- <a class="suggest-season-number">'+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:i}))+"</a></span>"},22:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.episodeNumber:s,n))},24:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression;return'<span class="'+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.suggestEdit:s,n))+'">- <a class="suggest-episode-number">'+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:i}))+"</a></span>"},26:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.description:s,n))},28:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression;return'<span class="'+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.suggestEdit:s,n))+'">- <a class="suggest-description">'+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:i}))+"</a></span>"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return'<div class="position-relative '+(null!=(s=t.if.call(r,null!=(s=null!=n?n.options:n)?s.showingSaveButton:s,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <h5 class="d-inline-block">'+l((t.lang||n&&n.lang||a).call(r,"heading",{name:"lang",hash:{},data:i}))+'</h5>\n</div>\n<div class="form-group '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <label for="edit-title">'+l((t.lang||n&&n.lang||a).call(r,"title",{name:"lang",hash:{},data:i}))+(null!=(s=t.if.call(r,null!=(s=null!=(s=null!=n?n.options:n)?s.requiredFields:s)?s.programTitle:s,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?s:"")+"</label>\n "+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?s:"")+'\n <input\n name="name"\n type="text"\n class="form-control '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?s:"")+'"\n placeholder="'+l((t.lang||n&&n.lang||a).call(r,"titlePlaceholder",{name:"lang",hash:{},data:i}))+'"\n id="edit-title"\n autocomplete="off"\n '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?s:"")+'\n >\n <div class="form-feedback"></div>\n</div>\n<div class="container-fluid">\n'+(null!=(s=t.if.call(r,null!=n?n.series:n,{name:"if",hash:{},fn:e.program(13,i,0),inverse:e.noop,data:i}))?s:"")+'</div>\n<div class="form-group '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(26,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <label for="edit-description">'+l((t.lang||n&&n.lang||a).call(r,"description",{name:"lang",hash:{},data:i}))+"</label>\n "+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(28,i,0),inverse:e.noop,data:i}))?s:"")+'\n <div class="description-region"></div>\n <div class="form-feedback"></div>\n</div>\n<div class="ratings-region"></div>\n'},useData:!0})},73519:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return'<div class="">\n <button class="btn btn-outline-dark create w-100">+ Create a season</button>\n</div>\n'},3:function(e,n,t,o,i){return'<div class="form-group mb-2">\n <input type="number" class="form-control" name="number" min="1" placeholder="Season number">\n <div class="form-feedback"></div>\n</div>\n'},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,(null!=(s=t.unless.call(null!=n?n:e.nullContext||{},null!=(s=null!=n?n.options:n)?s.show:s,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?s:"")+'<div class="text-end">\n <div class="button-region"></div>\n</div>'},useData:!0})},48242:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.disabled:s,n))},3:function(e,n,t,o,i){return"disabled"},5:function(e,n,t,o,i){return"selected"},7:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.lambda,a=e.escapeExpression;return' <option value="'+a(r(null!=n?n.number:n,n))+'" '+(null!=(s=t.if.call(null!=n?n:e.nullContext||{},null!=n?n.selected:n,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?s:"")+">"+a(r(null!=n?n.displayName:n,n))+"</option>\n"},9:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.lambda;return'<span class="svg-container mb-2 '+e.escapeExpression(r(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.svg:s,n))+' remove">'+(null!=(s=r(null!=(s=null!=n?n.options:n)?s.svgRemove:s,n))?s:"")+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression,a=null!=n?n:e.nullContext||{};return'<div\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n class="cursor-pointer w-100 dropdown-btn btn btn-link '+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.button:s,n))+" "+(null!=(s=t.if.call(a,null!=(s=null!=n?n.options:n)?s.disabled:s,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?s:"")+'"\n name="season"\n '+(null!=(s=t.if.call(a,null!=(s=null!=n?n.options:n)?s.disabled:s,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?s:"")+'\n>&nbsp;</div>\n<div class="dropdown-menu dropdown-menu-end dropdown-arrow w-100">\n <div class="text-center px-2">\n <select name="season" class="form-select">\n <option value="-1" '+(null!=(s=t.unless.call(a,null!=(s=null!=n?n.options:n)?s.hasSelected:s,{name:"unless",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?s:"")+">"+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"selectASeason",{name:"lang",hash:{},data:i}))+"</option>\n"+(null!=(s=t.each.call(a,null!=(s=null!=n?n.options:n)?s.seasons:s,{name:"each",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?s:"")+' </select>\n </div>\n\n <div class="dropdown-divider"></div>\n\n <div class="create-region"></div>\n</div>\n'+(null!=(s=t.if.call(a,null!=(s=null!=n?n.options:n)?s.showRemoveIcon:s,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?s:"")},useData:!0})},64154:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return"required"},3:function(e,n,t,o,i){return"readonly"},5:function(e,n,t,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.lambda,a=e.escapeExpression,l=null!=n?n:e.nullContext||{};return'<textarea\n name="'+a(r(null!=(s=null!=n?n.options:n)?s.name:s,n))+'"\n id="'+a(r(null!=(s=null!=n?n.options:n)?s.id:s,n))+'"\n autocomplete="false"\n class="'+a(r(null!=(s=null!=n?n.options:n)?s.class:s,n))+" event-selector "+a(r(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.resizingTextarea:s,n))+'"\n placeholder="'+a(r(null!=(s=null!=n?n.options:n)?s.placeholder:s,n))+'"\n '+(null!=(s=t.if.call(l,null!=(s=null!=n?n.options:n)?s.required:s,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?s:"")+"\n "+(null!=(s=t.if.call(l,null!=(s=null!=n?n.options:n)?s.readonly:s,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?s:"")+"\n "+(null!=(s=t.if.call(l,null!=(s=null!=n?n.options:n)?s.disabled:s,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?s:"")+"\n></textarea>"},useData:!0})},94407:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.disabled:s,n))},3:function(e,n,t,o,i){return"autofocus"},5:function(e,n,t,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.lambda,a=e.escapeExpression,l=null!=n?n:e.nullContext||{};return'<input\n name="'+a(r(null!=(s=null!=n?n.options:n)?s.inputName:s,n))+'"\n type="text"\n class="form-control '+(null!=(s=t.unless.call(l,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?s:"")+" "+a(r(null!=(s=null!=n?n.options:n)?s.additionalClasses:s,n))+'"\n id="'+a(r(null!=(s=null!=n?n.options:n)?s.inputId:s,n))+'"\n autocomplete="off"\n placeholder="'+a(r(null!=(s=null!=n?n.options:n)?s.placeholderText:s,n))+'"\n '+(null!=(s=t.if.call(l,null!=(s=null!=n?n.options:n)?s.autofocus:s,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?s:"")+"\n "+(null!=(s=t.unless.call(l,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?s:"")+'\n></input>\n<span class="svg-container mb-2 '+a(r(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.svg:s,n))+' remove" style="display: none;">'+(null!=(s=r(null!=(s=null!=n?n.options:n)?s.svgRemove:s,n))?s:"")+"</span>"},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3087],{86347:function(e,t,r){r.d(t,{b:function(){return u},n:function(){return s}});var n=r(1024),a=r(92802),l=r(53808),i=r(85887);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function s(e){var t=e.castInitialValues,r=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,d=o(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=i.t.deepClone(e);return function e(r){Object.keys(t).forEach((function(n){t.hasOwnProperty(n)&&(i.t.isObject(r[n])?e(r[n]):null===t[n]&&delete t[n])}))}(t),t}(s)):s,f={allowInitialSubmit:e.allowInitialSubmit};return n.createElement(a.J9,Object.assign({enableReinitialize:!0},d,{initialValues:m,onSubmit:function(t,n){var a=n.setSubmitting,l=n.resetForm,i=n.setFieldError,o=r&&e.validationSchema?e.validationSchema.cast(t):t;u(o,(function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.reset&&l(),r.errors)for(var n=0,o=Object.entries(r.errors);n<o.length;n++){var s=(e=o[n],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,l,i,c=[],o=!0,s=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=l.call(r)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{if(!o&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];i(u,d)}a(!1)}))},initialStatus:f}),l.q.isFunction(e.children)?function(t){return e.children(t)}:n.Children.count(e.children)?e.children:null)}function u(){return(0,a.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},53087:function(e,t,r){r.r(t),r.d(t,{PendingRequestsView:function(){return He}});var n=r(1024),a=r.n(n),l=r(57857),i=r(86120),c=r(23689),o=r(86242),s=r(66703),u=r(90335),d=r(15408),m=r(2491),f=r(30317),v=r(22430),p=r(50997),b=r(68893),y=r(48404),h=r(19226),g=r(95061),E=r(31647),N=r(52076),S=r(70065),R=r(86347),w=r(42648),O=r(92802),x=r(5173),q=r(49642),I=r(63151),L=r(42120),C=r(63791),k=r(39396),A=function(e){switch(e){case"up":return"JAT0R";case"down":return"ld41u";case"right":return"HHkPe";case"left":return"jZTRR"}};function T(e){return a().createElement(k.x,{svgName:C.vn.Caret,className:"".concat(A(e.direction)," svg-container d-inline-block ").concat(e.className)})}T.defaultProps={direction:"right"};var j=r(58424),D=r(85887);function P(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=V(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,i=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,l=e},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw l}}}}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,l,i,c=[],o=!0,s=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=l.call(r)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{if(!o&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||V(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 V(e,t){if(e){if("string"==typeof e)return _(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function U(e,t,r){if(I.m.isEqual(e.id,t))return[e,r];var n,a=e.children;if(!a||!a.length)return[null,null];for(var l=0;l<a.length;l++){var i=F(U(a[l],t,[].concat(function(e){if(Array.isArray(e))return _(e)}(n=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||V(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e])),2),c=i[0],o=i[1];if(c)return[c,o]}return[null,null]}var B={find:function(e,t){if(e&&e.children&&e.children.length)for(var r=0;r<e.children.length;r++){var n=F(U(e.children[r],t,[]),1)[0];if(n)return n}},getPath:function(e,t){if(e&&e.children&&e.children.length)for(var r=0;r<e.children.length;r++){var n=F(U(e.children[r],t,[]),2)[1];if(null==n?void 0:n.length)return n}},getParent:function(e,t){var r=B.getPath(e,t);return(null==r?void 0:r.length)?r[r.length-1]:null},convertNestedObjectToTree:function(e){var t,r=Object.assign(Object.assign({},e.data),{children:e.children});return(null===(t=r.children)||void 0===t?void 0:t.length)&&(r.children=r.children.map(B.convertNestedObjectToTree)),r},findDepth:function(e,t){var r,n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e||0===e.length)return 0;var l,i=0,c=P(e);try{for(c.s();!(l=c.n()).done;){var o=l.value;if((null===(n=null===(r=o.data)||void 0===r?void 0:r.id)||void 0===n?void 0:n.toString())===t.toString())return a;var s=B.findDepth(o.children,t,a+1);if(s>0){i=s;break}}}catch(e){c.e(e)}finally{c.f()}return i},findMaxChildDepth:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e||0===e.length)return t;var r,n=t,a=P(e);try{for(a.s();!(r=a.n()).done;){var l=r.value,i=B.findMaxChildDepth(l.children,t+1);n=Math.max(n,i)}}catch(e){a.e(e)}finally{a.f()}return n},findTargetNode:function(e,t){var r,n;if(!e||0===e.length)return null;var a,l=P(e);try{for(l.s();!(a=l.n()).done;){var i=a.value;if((null===(n=null===(r=i.data)||void 0===r?void 0:r.id)||void 0===n?void 0:n.toString())===t.toString())return i;var c=B.findTargetNode(i.children,t);if(null!==c)return c}}catch(e){l.e(e)}finally{l.f()}return null},isMaxDepth:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:7,a=B.findTargetNode(e,t);return B.findMaxChildDepth(a.children)+B.findDepth(e,r)>=n},flatten:function(e){if(!e)return[];var t=[];return e.children.forEach((function e(r){t.push(D.t.omit(r,["children"])),r.children.forEach(e)})),t}},M=r(63946),Q={tree:"ZYvBT",text:"eVGWe",chevron:"v76mu",disabled:"wIrTq",root:"JDRq_",selected:"wT87N",actions:"fKJU4",node:"gOBrH",noActions:"fKmrr"};function H(e){var t;function r(){var t="".concat(Q.text," clamp-4");return e.className&&(t+=" ".concat(e.className)),t}if(e.isDisabled){var n="string"==typeof e.disabledTooltip?e.disabledTooltip:null===(t=e.disabledTooltip)||void 0===t?void 0:t.call(e,e.tree);return a().createElement(M.u,{title:n,spanHack:!0,spanHackClassName:"d-inline-block flex-grow-1"},a().createElement("span",{className:"".concat(r()," text-secondary ").concat(Q.disabled)},e.text))}return a().createElement("div",{className:r()},e.text)}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Y="tree-actions";function X(e){var t,r,a,l=e.tree,i=e.selectedIds,c=e.getAppLink,o=e.onSelect,s=e.isDisabled,u=e.isClickDisabled,d=e.actions,m=e.isDropdown,f=n.useRef(null),v=n.useMemo((function(){return null==i?void 0:i.some((function(e){return B.find(l,e)}))}),[l,i]),p=e.openDepth&&e.depth<e.openDepth,b=(r=n.useState(v||p),a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,l,i,c=[],o=!0,s=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=l.call(r)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{if(!o&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(r,a)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?G(e,t):void 0}}(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=b[0],h=b[1],g=null==i?void 0:i.some((function(e){return I.m.isEqual(l.id,e)})),N=!!l.children&&!!l.children.length;function S(){(null==u?void 0:u(l))||(e.multiSelect||h(!y),c?E.Q.C$.trigger(c(l)):(null==s?void 0:s(l))?o(null):null==o||o(l))}return e.maxDisplayDepth&&N&&(N=e.depth<e.maxDisplayDepth),n.useEffect((function(){if(f.current&&m){var e=function(e){e.stopPropagation(),S()};return f.current.addEventListener("click",e),function(){f.current&&f.current.removeEventListener("click",e)}}}),[f.current,o]),n.useEffect((function(){var t;e.multiSelect||y&&(v||g||!(null===(t=e.selectedIds)||void 0===t?void 0:t.length)&&(null==s?void 0:s(e.tree))||p||h(!1))}),[i]),e.maxDisplayDepth&&e.depth>e.maxDisplayDepth?n.createElement(n.Fragment,null):n.createElement("li",{className:"position-relative ".concat(y?"":Q.collapsed," ").concat(e.isRoot?Q.root:"")},n.createElement("div",{className:"position-relative"},n.createElement(j.L,{className:(t="py-1 d-flex align-items-center w-100 position-relative ".concat(Q.node),g&&(t+=" "+e.selectedLinkClassName),(null==d?void 0:d.length)||(t+=" "+Q.noActions),v&&e.multiSelect&&(t+=" text-underline fst-italic"),t),onClick:m?null:S,ref:f},N&&n.createElement("div",{className:Q.chevron,onClick:function(t){t.stopPropagation(),e.multiSelect?h(!y):S()}},n.createElement(T,{direction:y?"down":"right"})),n.createElement(H,{tree:l,text:l.name||l.description,isDisabled:(null==s?void 0:s(l))||(null==u?void 0:u(l)),disabledTooltip:e.disabledTooltip})),!!e.actions&&n.createElement(L.e,{className:Q.actions,actions:null==d?void 0:d.map((function(e){return Object.assign(Object.assign({},e),{appLink:e.getAppLink(l)})})),actionsDropdownClassName:"btn btn-light ".concat(Y," py-0")}),y&&n.createElement($,Object.assign({key:l.id},e,{isChild:!0,depth:e.depth+1}))))}X.defaultProps={selectedLinkClassName:Q.selected};var K=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function $(e){var t=e.tree,r=K(e,["tree"]);return t&&t.children?n.createElement("ul",{className:"m-0 p-0 list-unstyled ".concat(Q.tree)},t.children.map((function(t,a){return n.createElement(X,Object.assign({key:a,tree:t},r,{isRoot:!e.isChild,depth:e.depth||0}))}))):n.createElement(n.Fragment,null)}var J=r(21974),z=r(264),W=r(39123),Z={selectButton:"Jh8Ep",createNew:"hnfdj"},ee="libraryRequests.destinationForm",te=(0,x.Ry)().shape({library:(0,x.Ry)().required(),folder:(0,x.Ry)().required()});function re(e){var t,r,n,l,i,c,o,u=(0,R.b)();(0,W.g)((function(e,t){var r=e.find((function(e){return e.id.toString()===u.values.library.id.toString()}));if(r){u.setFieldValue("library",r,!0);var n=B.find(r,t.id);n&&u.setFieldValue("folder",n,!0)}}));var d=e.libraryRequest.sender&&"".concat(e.libraryRequest.sender.name," ").concat(e.libraryRequest.sender.surname),m="";return(null===(t=e.libraryRequest.senderCustomer)||void 0===t?void 0:t.id.toString())!==e.currentUser.get("customerId").toString()&&(m=null===(r=e.libraryRequest.senderCustomer)||void 0===r?void 0:r.name),a().createElement("div",{className:"bg-white rounded p-3 mb-3"},a().createElement(O.l0,null,a().createElement("div",{className:"row"},a().createElement("div",{className:"col-9"},!!d&&a().createElement("div",{className:"row mb-3"},a().createElement("div",{className:"col-3"},a().createElement("label",null,a().createElement(s.x,{namespace:ee,phrase:"requestedBy"}))),a().createElement("div",{className:"col-9"},a().createElement(a().Fragment,null,d,!!m&&a().createElement(a().Fragment,null," (",m,")")))),a().createElement("div",{className:"row mb-3"},a().createElement("div",{className:"col-3"},a().createElement("label",null,a().createElement(s.x,{namespace:ee,phrase:"videoSource"}))),a().createElement("div",{className:"col-9"},!!e.libraryRequest.sourceLibrary&&a().createElement("span",{className:"badge p-1 me-1 text-white ".concat(J.u.mapSourceToClass(e.libraryRequest.sourceLibrary.type))},J.u.mapSourceToDisplayName(e.libraryRequest.sourceLibrary,z.g.hasLite)),!!e.libraryRequest.sourceCategory&&a().createElement("span",{className:"ms-2"},e.libraryRequest.sourceCategory.name))),a().createElement("div",{className:"row mb-3"},a().createElement("div",{className:"col-3"},a().createElement("label",null,a().createElement(s.x,{namespace:ee,phrase:"addTo"}))),a().createElement("div",{className:"col-9"},e.libraries.length>1&&a().createElement("div",{className:"dropdown mb-2"},a().createElement("button",{className:"dropdown-toggle form-control text-start position-relative ".concat(Z.selectButton),type:"button",id:"select-library","data-bs-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},a().createElement("div",{className:"text-truncate"},null!==(l=null===(n=u.values.library)||void 0===n?void 0:n.name)&&void 0!==l?l:a().createElement(s.x,{namespace:ee,phrase:"selectALibrary"}))),a().createElement("div",{className:"dropdown-menu w-100","aria-labelledby":"select-library"},e.libraries.map((function(e,t){var r,n,l=e.id.toString()===(null===(n=null===(r=u.values.library)||void 0===r?void 0:r.id)||void 0===n?void 0:n.toString());return a().createElement("div",{className:"dropdown-item cursor-pointer ".concat(l?"active":""),key:t,onClick:function(){u.setFieldValue("library",e,!0),u.setFieldValue("folder",null,!0)}},e.name)})))),a().createElement("div",{className:"dropdown mb-2"},a().createElement("button",{className:"dropdown-toggle form-control text-start position-relative ".concat(Z.selectButton),type:"button",id:"select-folder","data-bs-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:!u.values.library},a().createElement("div",{className:"text-truncate"},null!==(c=u.values.library&&(null===(i=u.values.folder)||void 0===i?void 0:i.name))&&void 0!==c?c:a().createElement(s.x,{namespace:ee,phrase:"selectAFolder"}))),a().createElement("div",{className:"dropdown-menu w-100","aria-labelledby":"select-folder"},a().createElement(w.$B,{autoHeight:!0,autoHeightMax:300,hideTracksWhenNotNeeded:!0},a().createElement($,{tree:u.values.library,onSelect:function(e){return u.setFieldValue("folder",e,!0)},selectedIds:(null===(o=u.values.folder)||void 0===o?void 0:o.id)?[u.values.folder.id]:void 0,selectedLinkClassName:"bg-light fw-semibold",isDropdown:!0}),u.values.library&&a().createElement(q.F,{className:"btn fw-bold rounded-0 w-100 text-start ".concat(Z.createNew),appLink:{application:p.OV.LIBRARY_REQUESTS,action:p.eX.Shared.NEW_FOLDER,args:[u.values.library.id]}},a().createElement(s.x,{namespace:ee,phrase:"createNew"})))))))),a().createElement("div",{className:"col-3"},a().createElement("div",{className:"d-flex justify-content-end"},a().createElement("button",{type:"button",className:"btn btn-link",onClick:e.onReject},a().createElement(s.x,{namespace:ee,phrase:"reject"})),a().createElement("button",{type:"submit",className:"btn btn-dark",disabled:!u.isValid},a().createElement(s.x,{namespace:ee,phrase:"approve"})))))))}function ne(e){function t(t,r){var n,a,l,i,c,o,s={location:S.LZ.LibraryRequestDetails,actionType:t,entity:S.py.LibraryRequest,workflowPhase:S.eu.Start},u={id:e.libraryRequest.id,videoId:null===(n=e.libraryRequest.object)||void 0===n?void 0:n.id,requestingUserId:null===(a=e.libraryRequest.sender)||void 0===a?void 0:a.id,sourceLibraryId:null===(l=e.libraryRequest.sourceLibrary)||void 0===l?void 0:l.id,sourceFolderId:null===(i=e.libraryRequest.sourceCategory)||void 0===i?void 0:i.id,destinationLibraryId:null===(c=null==r?void 0:r.library)||void 0===c?void 0:c.id,destinationFolderId:null===(o=null==r?void 0:r.folder)||void 0===o?void 0:o.id};N.k.logUserAction(u,s)}return a().createElement(R.n,{initialValues:{library:e.libraries.find((function(t){var r;return t.id.toString()===(null===(r=e.libraryRequest.destinationLibrary)||void 0===r?void 0:r.id.toString())})),folder:e.libraryRequest.destinationCategory},validationSchema:te,onSubmit:function(r){t(S.Vw.Approve,r),E.Q.C$.trigger({application:p.OV.LIBRARY_REQUESTS,action:p.eX.LibraryRequests.APPROVE,args:[e.libraryRequest.id],params:{libraryId:r.library.id,folderId:r.folder.id,queryParams:e.queryParams}})},validateOnMount:!0,enableReinitialize:!1},a().createElement(re,{libraries:e.libraries,libraryRequest:e.libraryRequest,onReject:function(){t(S.Vw.Reject),E.Q.C$.trigger({application:p.OV.LIBRARY_REQUESTS,action:p.eX.LibraryRequests.REJECT,args:[e.libraryRequest.id],params:e.queryParams})},currentUser:e.user}))}function ae(){return a().createElement("div",{className:"bg-white rounded p-3 mb-3"},a().createElement("div",{className:"row"},a().createElement("div",{className:"col-3"},a().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"6rem"}})),a().createElement("div",{className:"col-6"},a().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"9rem"}})),a().createElement("div",{className:"col-3 d-flex justify-content-end align-items-center"},a().createElement("div",{className:"partial-loading-background rounded",style:{height:"1.25rem",width:"3rem"}}),a().createElement("div",{className:"partial-loading-background rounded ms-2",style:{height:"2.5rem",width:"5rem"}})),a().createElement("div",{className:"col-3"},a().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"7rem"}})),a().createElement("div",{className:"col-6 mb-2"},a().createElement("div",{className:"partial-loading-background rounded mb-1",style:{height:"2.5rem"}}),a().createElement("div",{className:"partial-loading-background rounded",style:{height:"2.5rem"}}))))}var le,ie,ce={HIGH:.75,MODERATE:.5},oe={circleContainer:"p8Vgz",backgroundCircle:"asGGE",circleSuccess:"PXLNj",circleWarning:"ZckRN",circleDanger:"slBRg",lgCircleContainer:"N8KCI",pendingCircle:"DKrcq",centredPercentageText:"tpmLR"},se=2,ue=5.8,de=.2,me=.36;function fe(e){var t=e===le.Large?ue:se,r=e===le.Large?me:de;return"".concat(t/2-2*r,"rem")}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ce;return e>=t.HIGH?oe.circleSuccess:e>=t.MODERATE?oe.circleWarning:oe.circleDanger}function pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ce;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function be(e,t){var r="d-inline-block ".concat(oe.circleContainer);return e===le.Large&&(r+=" ".concat(oe.lgCircleContainer)),ye(t)&&(r+=" ".concat(oe.pendingCircle)),r}function ye(e){return"number"!=typeof e}function he(e){var t=a().useCallback((function(t){if(t){var r=t.r.baseVal.value,n=2*Math.PI*r,a=n-e.percentage*n;t.style.strokeDasharray="".concat(n," ").concat(n),t.style.strokeDashoffset=a.toString()}}),[e.percentage]);return a().createElement("svg",null,a().createElement("circle",{r:fe(e.size),className:oe.backgroundCircle}),!ye(e.percentage)&&a().createElement("circle",{ref:t,r:fe(e.size),className:ve(e.percentage,e.scoreThresholds)}))}function ge(e){var t,r,n=function(e){if(!ye(e))return+e.toFixed(2)}(e.percentage),l=e.layout===ie.LabelInside?le.Large:le.Small,i=e.customLabel||(ye(r=n)?"--%":"".concat(Math.round(100*r),"%"));return e.layout===ie.LabelOnly?a().createElement("span",{className:pe(n)},i):a().createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===ie.LabelBefore&&a().createElement("span",{className:"me-2"},i),a().createElement("div",{className:be(l,n)},a().createElement(he,{percentage:n,size:l,scoreThresholds:e.scoreThresholds}),e.layout===ie.LabelInside&&a().createElement("span",{className:oe.centredPercentageText},i)))}!function(e){e.Small="small",e.Large="large"}(le||(le={})),function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(ie||(ie={})),ge.defaultProps={layout:ie.CircleOnly};var Ee="libraryRequests.count";function Ne(e){return a().createElement("div",{className:"bg-white rounded px-3 py-2 mb-3 d-flex align-items-center"},a().createElement(ge,null),a().createElement("div",{className:"ps-2"},a().createElement(s.x,{namespace:Ee,phrase:"count",options:{smartCount:e.count.count}})))}var Se=r(45855),Re=r(49824),we=r(64938),Oe=r(7044),xe=r(17950),qe=r(9416),Ie=r(50072),Le=r(25796),Ce=r(41026),ke=r(59198),Ae=r(85739),Te=r(30328),je=r(64429),De=r(41777),Pe=r(56154),Fe="libraryRequests.pendingRequestsEmptyState",Ve=l.T.encloseNamespace(Fe);function _e(e){return a().createElement("div",{className:"bg-white rounded p-3 py-5"},a().createElement(De.u,null,a().createElement(De.u.Image,{src:Pe.W.EmptyStates.PENDING_REQUESTS}),a().createElement(De.u.Info,{className:"mb-1"},a().createElement(s.x,{namespace:Fe,phrase:"info"})),e.hasLibraries&&a().createElement(De.u.Cta,{text:Ve("cta"),className:"btn btn-link text-info",appLink:{application:p.OV.LIBRARY_REQUESTS,action:p.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES}})))}function Ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,l,i,c=[],o=!0,s=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=l.call(r)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{if(!o&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Be(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Be(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Me="libraryRequests.pendingRequests",Qe=l.T.encloseNamespace(Me);function He(e){var t,r,n=i.a.useGetFetch(),l=(0,m.Z)(),E=(0,Ae.p)(e.queryParams.sort||u.D.Newest,[Ie.l.Pending]),N=i.a.useBasicFetch(e.id&&Le.y.libraryRequest(e.id)),S=(0,ke.s)(e.id),R=i.a.useBasicFetch(Le.y.pendingRequestsCount()),w=Ue(a().useState(null),2),O=w[0],x=w[1];(0,c.i)(g.T.getLibrariesFetchOptions((function(e){return x(e.toJSON())})),[]),(0,W.g)(x);var q=Ue(a().useState(null),2),I=q[0],L=q[1];(0,c.i)(y.p.getConfigFetchOptions(L),[]);var C=Ue(a().useState(null),2),k=C[0],A=C[1];(0,c.i)(h.K.getCurrentUserFetchOptions(A),[]);var T=i.a.useBasicFetch(d.N.currentUser());(0,f.v)(N),(0,Te.A)({id:e.id,requests:E.items,appLink:{application:p.OV.LIBRARY_REQUESTS,action:p.eX.LibraryRequests.PENDING_REQUESTS,params:e.queryParams}}),(0,je.m)(N.data,"pending",e.queryParams),(0,Ce.K)(N.data);var j=((null===(t=E.items)||void 0===t?void 0:t.length)||E.hasCompleted)&&O&&I&&T.data,D=N.data&&S.hasCompleted;return a().createElement("div",null,a().createElement("h1",{className:"h2"},a().createElement(s.x,{namespace:Me,phrase:"title"})),a().createElement("div",{className:"mb-3"},a().createElement(o.Oo,{breadcrumbs:[{name:Qe("libraryEditor"),appLink:{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.HOME}},{name:Qe("title"),active:!0}]})),a().createElement(qe.A,{active:"pending"}),!j||(null===(r=E.items)||void 0===r?void 0:r.length)?a().createElement(a().Fragment,null,a().createElement("div",{className:"d-flex justify-content-end mb-3"},a().createElement(xe.F,{appLink:{application:p.OV.LIBRARY_REQUESTS,action:p.eX.LibraryRequests.PENDING_REQUESTS,args:[e.id]},queryParams:e.queryParams})),a().createElement("div",{className:"row"},a().createElement("div",{className:"col-4"},j?a().createElement(a().Fragment,null,a().createElement(Ne,{count:R.data}),a().createElement(we.q,{libraryRequests:E.items,selectedId:e.id,appLink:{application:p.OV.LIBRARY_REQUESTS,action:p.eX.LibraryRequests.PENDING_REQUESTS},queryParams:e.queryParams,fetchNext:E.fetchNext,isFetching:E.isFetching,nextCursor:E.nextCursor})):a().createElement(Oe.p,null)),a().createElement("div",{className:"col-8"},j&&D?a().createElement(a().Fragment,null,a().createElement(ne,{key:N.data.id,libraryRequest:N.data,libraries:O,queryParams:e.queryParams,user:k}),a().createElement(Se.x,{libraryRequest:N.data,config:I,user:k,currentUser:T.data,createViewKey:function(t,r){var a=Le.y.createViewKey(e.id,(function(e){return r(new b.y(e))}),(function(e){return l.error(v.M.libraryApiError(e))}));n(a)},comments:S.items})):a().createElement(a().Fragment,null,a().createElement(ae,null),a().createElement(Re.j,null))))):a().createElement(_e,{hasLibraries:!!O.length}))}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3400],{3400:function(e,t,r){"use strict";r.r(t),r.d(t,{DevErrorView:function(){return b}});var n=r(48088),o=r(31647),i=r(78084),u=r.n(i);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}function f(e,t,r){return t=p(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),r=t,(o=[{key:"initialize",value:function(){var e=n.Radio.channel("error:view");this.error=e.request("current:error")}},{key:"name",get:function(){return"ErrorView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return u()}},{key:"className",get:function(){return"mt-5"}},{key:"viewOptions",value:function(){return{message:this.error.message,stack:this.error.stack,name:this.error.name}}}])&&a(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(o.Q.G7)},78084:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,u=e.lambda,c=e.escapeExpression;return"<h1>"+c(u(null!=(i=null!=t?t.options:t)?i.name:i,t))+'</h1>\n<div class="alert alert-danger" role="alert">\n <h2>'+c(u(null!=(i=null!=t?t.options:t)?i.message:i,t))+'</h2>\n</div>\n<div class="alert alert-warning" role="alert">\n <h3>Call stack</h3>\n <code>'+c(u(null!=(i=null!=t?t.options:t)?i.stack:i,t))+"</code>\n</div>"},useData:!0})}}]);