@clickview/library-editor 1.59.0 → 1.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +1 -1
- package/dist/css/{2598-library-editor-5a1c6fc3b4.chunk.css → 1318-library-editor-2057616496.chunk.css} +0 -1
- package/dist/css/{9471-library-editor-bedf22a9d5.chunk.css → 336-library-editor-7d9a513301.chunk.css} +1 -3
- package/dist/css/{4796-library-editor-79cb533f4b.chunk.css → 4796-library-editor-46f948b590.chunk.css} +10 -0
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1318-f4d0d64cb0.chunk.js +1 -0
- package/dist/scripts/1752-111d0ad14d.chunk.js +1 -0
- package/dist/scripts/3305-dc6932b39d.chunk.js +1 -0
- package/dist/scripts/336-bb4dc3d019.chunk.js +2 -0
- package/dist/scripts/3664-dbf5958416.chunk.js +1 -0
- package/dist/scripts/4096-884ca2d342.chunk.js +1 -0
- package/dist/scripts/4796-0f43bd8c15.chunk.js +2 -0
- package/dist/scripts/5513-77d89142ce.chunk.js +1 -0
- package/dist/scripts/{576-5204b27645.chunk.js → 576-c984785d03.chunk.js} +1 -1
- package/dist/scripts/{5972-d637eea712.chunk.js → 5972-988de17e3f.chunk.js} +1 -1
- package/dist/scripts/6567-02b07e94bc.chunk.js +2 -0
- package/dist/scripts/6591-bff920cc4e.chunk.js +1 -0
- package/dist/scripts/6697-efdc49a3ce.chunk.js +1 -0
- package/dist/scripts/7115-42b569dd15.chunk.js +2 -0
- package/dist/scripts/7153-9718a4ebaa.chunk.js +1 -0
- package/dist/scripts/{7182-9378cbae60.chunk.js → 7182-e45ad5e0fe.chunk.js} +1 -1
- package/dist/scripts/7197-faf24e915d.chunk.js +2 -0
- package/dist/scripts/{777-1b328a0073.chunk.js → 777-1328221d09.chunk.js} +1 -1
- package/dist/scripts/777-1328221d09.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/7925-b80cab7a7a.chunk.js +2 -0
- package/dist/scripts/8542-a96ff58cda.chunk.js +1 -0
- package/dist/scripts/9082-c3c4b347ad.chunk.js +1 -0
- package/dist/scripts/9090-42d71ef295.chunk.js +1 -0
- package/dist/scripts/9096-ebb6d8925e.chunk.js +1 -0
- package/dist/scripts/9219-a867c84112.chunk.js +1 -0
- package/dist/scripts/9376-fa6bc20209.chunk.js +1 -0
- package/dist/scripts/968-ba17f0be6f.chunk.js +1 -0
- package/dist/scripts/9743-db6b1a198e.chunk.js +1 -0
- package/dist/scripts/{9766-753d188467.chunk.js → 9766-da39830c71.chunk.js} +1 -1
- package/dist/scripts/bundle-ae75dee45b.min.js +2 -0
- package/package.json +1 -1
- package/typings/libs/trackjs.d.ts +9 -1
- package/dist/scripts/1015-fde8b5ba1e.chunk.js +0 -2
- package/dist/scripts/1973-47ac2859c2.chunk.js +0 -1
- package/dist/scripts/2598-1eda830a73.chunk.js +0 -1
- package/dist/scripts/2614-41c946fcb2.chunk.js +0 -1
- package/dist/scripts/2648-3893c6b865.chunk.js +0 -1
- package/dist/scripts/3305-b4175d4211.chunk.js +0 -1
- package/dist/scripts/4027-fd3b5a0220.chunk.js +0 -1
- package/dist/scripts/416-4c125a286a.chunk.js +0 -1
- package/dist/scripts/463-f5f80e35df.chunk.js +0 -2
- package/dist/scripts/4719-8c6ca32259.chunk.js +0 -1
- package/dist/scripts/4796-cf965f7d93.chunk.js +0 -2
- package/dist/scripts/4851-da66f6b7c2.chunk.js +0 -1
- package/dist/scripts/5182-a4c92e2987.chunk.js +0 -2
- package/dist/scripts/546-36e1e11039.chunk.js +0 -1
- package/dist/scripts/5736-83fa0776d5.chunk.js +0 -1
- package/dist/scripts/5814-b2c068e5ee.chunk.js +0 -1
- package/dist/scripts/7153-b8a8099148.chunk.js +0 -1
- package/dist/scripts/7416-4d6b9b9a5b.chunk.js +0 -1
- package/dist/scripts/7696-8d0c3a508a.chunk.js +0 -1
- package/dist/scripts/8542-6f5077cb9a.chunk.js +0 -1
- package/dist/scripts/9217-3332ab3162.chunk.js +0 -1
- package/dist/scripts/9471-48cf12a8aa.chunk.js +0 -2
- package/dist/scripts/bundle-08100e0c8f.min.js +0 -2
- /package/dist/css/{2614-library-editor-46e4b6af59.chunk.css → 3664-library-editor-46e4b6af59.chunk.css} +0 -0
- /package/dist/css/{5814-library-editor-46e4b6af59.chunk.css → 4096-library-editor-46e4b6af59.chunk.css} +0 -0
- /package/dist/css/{7696-library-editor-cc4c4155eb.chunk.css → 5513-library-editor-cc4c4155eb.chunk.css} +0 -0
- /package/dist/css/{5182-library-editor-e354d61dfe.chunk.css → 7115-library-editor-e354d61dfe.chunk.css} +0 -0
- /package/dist/css/{463-library-editor-911bfc41fe.chunk.css → 7925-library-editor-911bfc41fe.chunk.css} +0 -0
- /package/dist/css/{5736-library-editor-34087db2b0.chunk.css → 9082-library-editor-34087db2b0.chunk.css} +0 -0
- /package/dist/css/{4719-library-editor-7e2ac516b4.chunk.css → 9096-library-editor-7e2ac516b4.chunk.css} +0 -0
- /package/dist/css/{9217-library-editor-46e4b6af59.chunk.css → 968-library-editor-46e4b6af59.chunk.css} +0 -0
- /package/dist/scripts/{1010-a34c5ba546.chunk.js → 1010-0051447919.chunk.js} +0 -0
- /package/dist/scripts/{1080-78e6c18aa7.chunk.js → 1080-9f6ad917d8.chunk.js} +0 -0
- /package/dist/scripts/{1115-c6cc1353bd.chunk.js → 1115-538343833e.chunk.js} +0 -0
- /package/dist/scripts/{1200-193f4b5bbd.chunk.js → 1200-9c85c3d5ca.chunk.js} +0 -0
- /package/dist/scripts/{1524-1e4a0330df.chunk.js → 1524-2f444ac3ec.chunk.js} +0 -0
- /package/dist/scripts/{2035-d874bdac26.chunk.js → 2035-4bf3392b3a.chunk.js} +0 -0
- /package/dist/scripts/{2591-fba291a9c0.chunk.js → 2591-384c8c6cac.chunk.js} +0 -0
- /package/dist/scripts/{2803-7a2cdecd93.chunk.js → 2803-d7cf29380f.chunk.js} +0 -0
- /package/dist/scripts/{2888-3298161a61.chunk.js → 2888-97c3b4f37c.chunk.js} +0 -0
- /package/dist/scripts/{299-df09594cf4.chunk.js → 299-e0377b8731.chunk.js} +0 -0
- /package/dist/scripts/{3288-ab3ca0da7f.chunk.js → 3288-bab20aa94e.chunk.js} +0 -0
- /package/dist/scripts/{4796-cf965f7d93.chunk.js.LICENSE.txt → 336-bb4dc3d019.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3373-3286d26d40.chunk.js → 3373-39774fb619.chunk.js} +0 -0
- /package/dist/scripts/{3391-469c93ab2c.chunk.js → 3391-79af5afacd.chunk.js} +0 -0
- /package/dist/scripts/{3450-ad966a93e7.chunk.js → 3450-2b77dc7d81.chunk.js} +0 -0
- /package/dist/scripts/{3475-d6fd75feeb.chunk.js → 3475-896a4bf034.chunk.js} +0 -0
- /package/dist/scripts/{3639-631906e5be.chunk.js → 3639-a0854003d2.chunk.js} +0 -0
- /package/dist/scripts/{3643-a191b71123.chunk.js → 3643-647269f7ba.chunk.js} +0 -0
- /package/dist/scripts/{3873-42f43a345f.chunk.js → 3873-f1118739a9.chunk.js} +0 -0
- /package/dist/scripts/{4245-bcb3d8e3e4.chunk.js → 4245-9844cc284b.chunk.js} +0 -0
- /package/dist/scripts/{4591-9ea0b32ac6.chunk.js → 4591-7f81bdcc51.chunk.js} +0 -0
- /package/dist/scripts/{5182-a4c92e2987.chunk.js.LICENSE.txt → 4796-0f43bd8c15.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5180-37c1d4f9bd.chunk.js → 5180-542a42cb27.chunk.js} +0 -0
- /package/dist/scripts/{5193-163f49c462.chunk.js → 5193-978a428611.chunk.js} +0 -0
- /package/dist/scripts/{5327-9b16f6b411.chunk.js → 5327-22e2dcce4b.chunk.js} +0 -0
- /package/dist/scripts/{5346-6ecbb5b2b1.chunk.js → 5346-e31d4e982b.chunk.js} +0 -0
- /package/dist/scripts/{5412-bc03f5a901.chunk.js → 5412-9a31b69a02.chunk.js} +0 -0
- /package/dist/scripts/{5424-fa6c668f42.chunk.js → 5424-2dd236e148.chunk.js} +0 -0
- /package/dist/scripts/{6239-92a0bebbeb.chunk.js → 6239-f2b11c31b2.chunk.js} +0 -0
- /package/dist/scripts/{6350-b859c77d91.chunk.js → 6350-a70b088cd8.chunk.js} +0 -0
- /package/dist/scripts/{6450-a3ca4cdb2a.chunk.js → 6450-8de9792b20.chunk.js} +0 -0
- /package/dist/scripts/{6467-db60883ef6.chunk.js → 6467-48cc8b5479.chunk.js} +0 -0
- /package/dist/scripts/{1015-fde8b5ba1e.chunk.js.LICENSE.txt → 6567-02b07e94bc.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6587-eed4f0308b.chunk.js → 6587-2e97f69e7a.chunk.js} +0 -0
- /package/dist/scripts/{6677-66b4b60478.chunk.js → 6677-4118a57ece.chunk.js} +0 -0
- /package/dist/scripts/{6768-5f9040eac8.chunk.js → 6768-aab63a1809.chunk.js} +0 -0
- /package/dist/scripts/{6788-d3b052f1a9.chunk.js → 6788-5ad863550d.chunk.js} +0 -0
- /package/dist/scripts/{7071-4b42b6a81f.chunk.js → 7071-0aae4f6004.chunk.js} +0 -0
- /package/dist/scripts/{777-1b328a0073.chunk.js.LICENSE.txt → 7115-42b569dd15.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7182-9378cbae60.chunk.js.LICENSE.txt → 7182-e45ad5e0fe.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7190-35f785a3e3.chunk.js → 7190-3b8aefddee.chunk.js} +0 -0
- /package/dist/scripts/{9471-48cf12a8aa.chunk.js.LICENSE.txt → 7197-faf24e915d.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7366-1132e85416.chunk.js → 7366-2f7da593c6.chunk.js} +0 -0
- /package/dist/scripts/{7384-29be02029c.chunk.js → 7384-80e81af49f.chunk.js} +0 -0
- /package/dist/scripts/{775-2c991c9c6e.chunk.js → 775-96028af5a8.chunk.js} +0 -0
- /package/dist/scripts/{463-f5f80e35df.chunk.js.LICENSE.txt → 7925-b80cab7a7a.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8113-e17a857adc.chunk.js → 8113-fa8be2fe60.chunk.js} +0 -0
- /package/dist/scripts/{8362-a48a464bd6.chunk.js → 8362-976c6b3cfc.chunk.js} +0 -0
- /package/dist/scripts/{8862-0ce7a20f11.chunk.js → 8862-152ab78afc.chunk.js} +0 -0
- /package/dist/scripts/{8915-53b71a635d.chunk.js → 8915-75cddb9442.chunk.js} +0 -0
- /package/dist/scripts/{8989-258e7f8a87.chunk.js → 8989-1ca7a01335.chunk.js} +0 -0
- /package/dist/scripts/{95-bd02e086ac.chunk.js → 95-999936425e.chunk.js} +0 -0
- /package/dist/scripts/{9734-37ab55da4e.chunk.js → 9734-bf7adc8154.chunk.js} +0 -0
- /package/dist/scripts/{9766-753d188467.chunk.js.LICENSE.txt → 9766-da39830c71.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9928-f43d6de0a3.chunk.js → 9928-f23b5324b7.chunk.js} +0 -0
- /package/dist/scripts/{bundle-08100e0c8f.min.js.LICENSE.txt → bundle-ae75dee45b.min.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
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 r=i(90758),n=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=n(e),i=r(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,r,n,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,n=(t=function(){var e;return 1e9*(e=i())[0]+e[1]})(),l=1e9*process.uptime(),o=n-l):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(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 r=t.style;if(e in r)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),o=i.length;o>=0;o--){var l=i[o]+n;if(l in r)return l}return!1}},48729:function(e,t,i){for(var r=i(62930),n="undefined"==typeof window?i.g:window,o=["moz","webkit"],l="AnimationFrame",a=n["request"+l],u=n["cancel"+l]||n["cancelRequest"+l],s=0;!a&&s<o.length;s++)a=n[o[s]+"Request"+l],u=n[o[s]+"Cancel"+l]||n[o[s]+"CancelRequest"+l];if(!a||!u){var c=0,d=0,h=[],f=1e3/60;a=function(e){if(0===h.length){var t=r(),i=Math.max(0,f-(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(n,e)},e.exports.cancel=function(){u.apply(n,arguments)},e.exports.polyfill=function(e){e||(e=n),e.requestAnimationFrame=a,e.cancelAnimationFrame=u}},11305:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e};t.renderViewDefault=function(e){return o.default.createElement("div",e)},t.renderTrackHorizontalDefault=function(e){var t=e.style,i=l(e,["style"]),n=r({},t,{right:2,bottom:2,left:2,borderRadius:3});return o.default.createElement("div",r({style:n},i))},t.renderTrackVerticalDefault=function(e){var t=e.style,i=l(e,["style"]),n=r({},t,{right:2,bottom:2,top:2,borderRadius:3});return o.default.createElement("div",r({style:n},i))},t.renderThumbHorizontalDefault=function(e){var t=e.style,i=l(e,["style"]),n=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return o.default.createElement("div",r({style:n},i))},t.renderThumbVerticalDefault=function(e){var t=e.style,i=l(e,["style"]),n=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return o.default.createElement("div",r({style:n},i))};var n,o=(n=i(32735))&&n.__esModule?n:{default:n};function l(e,t){var i={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=e[r]);return i}},3845:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},n=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),o=i(48729),l=m(o),a=m(i(17333)),u=i(32735),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 r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[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(n)));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),n(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,r=e.scrollTop,n=void 0===r?0:r,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:n/(u-h)||0,scrollLeft:i,scrollTop:n,scrollWidth:l,scrollHeight:u,clientWidth:c,clientHeight:h}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,i=e.thumbMinSize,r=this.view,n=r.scrollWidth,o=r.clientWidth,l=(0,f.default)(this.trackHorizontal),a=Math.ceil(o/n*l);return l<=a?0:t||Math.max(a,i)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,i=e.thumbMinSize,r=this.view,n=r.scrollHeight,o=r.clientHeight,l=(0,v.default)(this.trackVertical),a=Math.ceil(o/n*l);return l<=a?0:t||Math.max(a,i)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,i=t.scrollWidth,r=t.clientWidth;return e/((0,f.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(i-r)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,i=t.scrollHeight,r=t.clientHeight;return e/((0,v.default)(this.trackVertical)-this.getThumbVerticalHeight())*(i-r)}},{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,r=this.thumbHorizontal,n=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),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),n.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,r=this.thumbHorizontal,n=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),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),n.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,i=this.props,r=i.onScroll,n=i.onScrollFrame;r&&r(e),this.update((function(e){var i=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=i,t.viewScrollTop=r,n&&n(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,r=t.getBoundingClientRect().left,n=this.getThumbHorizontalWidth(),o=Math.abs(r-i)-n/2;this.view.scrollLeft=this.getScrollLeftForOffset(o)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,i=e.clientY,r=t.getBoundingClientRect().top,n=this.getThumbVerticalHeight(),o=Math.abs(r-i)-n/2;this.view.scrollTop=this.getScrollTopForOffset(o)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,i=e.clientX,r=t.offsetWidth,n=t.getBoundingClientRect().left;this.prevPageX=r-(i-n)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,i=e.clientY,r=t.offsetHeight,n=t.getBoundingClientRect().top;this.prevPageY=r-(i-n)}},{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 r=e.clientY,n=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(n)}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,r=t.hideTracksWhenNotNeeded,n=this.getValues();if((0,d.default)()){var o=n.scrollLeft,l=n.clientWidth,u=n.scrollWidth,s=(0,f.default)(this.trackHorizontal),c=this.getThumbHorizontalWidth(),h={width:c,transform:"translateX("+o/(u-l)*(s-c)+"px)"},p=n.scrollTop,g=n.clientHeight,m=n.scrollHeight,y=(0,v.default)(this.trackVertical),b=this.getThumbVerticalHeight(),k={height:b,transform:"translateY("+p/(m-g)*(y-b)+"px)"};if(r){var w={visibility:u>l?"visible":"hidden"},T={visibility:m>g?"visible":"hidden"};(0,a.default)(this.trackHorizontal,w),(0,a.default)(this.trackVertical,T)}(0,a.default)(this.thumbHorizontal,h),(0,a.default)(this.thumbVertical,k)}i&&i(n),"function"==typeof e&&e(n)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),i=this.props,n=(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,k=i.style,w=i.children,T=function(e,t){var i={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=e[r]);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=r({},p.containerStyleDefault,m&&r({},p.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),k),M=r({},p.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},m&&r({},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},z=r({},p.trackHorizontalStyleDefault,f&&D,(!t||g&&!S)&&{display:"none"}),L=r({},p.trackVerticalStyleDefault,f&&D,(!t||g&&!S)&&{display:"none"});return(0,u.createElement)(h,r({},T,{style:H,ref:function(t){e.container=t}}),[(0,u.cloneElement)(n({style:M}),{key:"view",ref:function(t){e.view=t}},w),(0,u.cloneElement)(o({style:z}),{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:L}),{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 r,n=(r=i(3845))&&r.__esModule?r:{default:r};t.ZP=n.default,t.$B=n.default},37723:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,i=getComputedStyle(e),r=i.paddingTop,n=i.paddingBottom;return t-parseFloat(r)-parseFloat(n)}},11478:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,i=getComputedStyle(e),r=i.paddingLeft,n=i.paddingRight;return t-parseFloat(r)-parseFloat(n)}},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,n.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 r,n=(r=i(17333))&&r.__esModule?r:{default:r},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 r=i(2690);e.exports=function(e){return r(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(n,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():r.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=/(_|-|\.|:)/,r=/([a-z][A-Z]|[A-Z][a-z])/,n=/[\W_]+(.|$)/g,o=/(.)([A-Z]+)/g},2690:function(e,t,i){var r=i(38278);e.exports=function(e){return r(e).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3305],{8371:function(e,n,t){"use strict";var r;t.d(n,{b:function(){return r}}),function(e){e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1"}(r||(r={}))},24259:function(e,n,t){"use strict";t.d(n,{_:function(){return E}});var r=t(31647),i=t(70065),o=t(45837),l=t(65816),s=t(61356),a=t(19226),u=t(93569),c=t(24959),p=t(25887),d=t(70042),f=t(17349),h=t.n(f),m={interactive:"N1mrU"};function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function g(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var n=function(e){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=v(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(n)?n:n+""}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function k(e,n){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},k(e,n)}var E=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),function(e,n,t){return n=w(n),function(e,n){if(n&&("object"==v(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,b()?Reflect.construct(n,t||[],w(e).constructor):n.apply(e,t))}(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&&k(e,n)}(n,e),t=n,(r=[{key:"initialize",value:function(){this.isClickViewContent=this.model&&!u.BK.canEditVideo(this.model)}},{key:"name",get:function(){return"VideoSidebarInfoComponent"}},{key:"lang",get:function(){return"libraryEditor.videoSidebarInfo"}},{key:"className",get:function(){return"py-3 h-100"}},{key:"template",get:function(){return h()}},{key:"regions",value:function(){return{preview:{el:".video-preview-region",replaceElement:!0},folders:{el:".folders-region",replaceElement:!0},tags:{el:".tags-region",replaceElement:!0}}}},{key:"requiredResources",get:function(){return{currentUser:a.K.currentUser}}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new s.c({model:this.model,webPlayerUrl:this.options.webPlayerUrl,channelName:this.options.channelName,analyticsOptions:{location:i.LZ.VideoDetails},currentUser:this.options.currentUser,createViewKey:this.options.createViewKey,playerApiUrl:this.options.playerApiUrl}))}},{key:"renderTags",value:function(){this.model.get("tags")&&this.model.get("tags").length&&this.showChildView("tags",new c.K({collection:this.model.get("tags"),orientation:p.zM.Flex,behavior:p.Dm.Link}))}},{key:"renderFolders",value:function(){this.model.get("categories")&&this.model.get("categories").length&&this.showChildView("folders",new l.V({model:this.model,libraries:this.options.libraries,showFolder:!0,hideLabel:!0}))}},{key:"viewOptions",value:function(){return{styles:m,interactive:d.u.isInteractive(this.model),duration:u.T.ToDisplayDuration(this.model.get("duration")),folders:this.model.categories&&this.model.categories.length,multipleFolders:this.model.categories.length>1,tags:this.model.get("tags")&&this.model.get("tags").length,isClickViewContent:this.isClickViewContent,hasCustomerTags:this.isClickViewContent&&u.BK.filterObjectsByOwnerType(this.model.tags,o.N.Customer,this.options.currentUser.get("customerId")).length}}},{key:"onRender",value:function(){this.renderVideoPreview(),this.renderTags(),this.renderFolders()}}])&&g(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(r.Q.wA)},70986:function(e,n,t){"use strict";t.r(n),t.d(n,{VideoDetailsView:function(){return Pe}});var r,i=t(21161),o=t(99748),l=t(21679),s=t(31647);!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(r||(r={}));var a=t(8371),u=t(59054),c=t(57085),p=t(82771),d=t(10386),f=t.n(d),h=t(90118),m=t.n(h),v={columnNames:"Hs0Sh"};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 y(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function b(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k(r.key),r)}}function w(e,n,t){return n&&b(e.prototype,n),t&&b(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(e){var n=function(e){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=g(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(n)?n:n+""}function E(e,n,t){return n=O(n),function(e,n){if(n&&("object"==g(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,C()?Reflect.construct(n,t||[],O(e).constructor):n.apply(e,t))}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function S(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&&x(e,n)}function x(e,n){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},x(e,n)}var I=function(e){function n(){return y(this,n),E(this,n,arguments)}return S(n,e),w(n,[{key:"name",get:function(){return"FieldComponent"}},{key:"template",get:function(){return f()}},{key:"className",get:function(){return"row mb-0"}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:v}}},{key:"renderDescription",value:function(){this.model.get("value")&&this.showChildView("description",new p.Z({model:new s.Q.Hn({description:this.model.get("value")}),linkify:!0,size:p.t.Large,truncate:!0,allowExpand:!0}))}},{key:"onRender",value:function(){this.renderDescription()}}])}(s.Q.wA),P=function(e){function n(){return y(this,n),E(this,n,arguments)}return S(n,e),w(n,[{key:"name",get:function(){return"FieldsComponentCollection"}},{key:"childView",get:function(){return I}}])}(s.Q.$W),j=function(e){function n(){return y(this,n),E(this,n,arguments)}return S(n,e),w(n,[{key:"name",get:function(){return"FieldsComponent"}},{key:"template",get:function(){return m()}},{key:"className",get:function(){return"py-3 border-top"}},{key:"regions",value:function(){return{fields:{el:".fields-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("fields",new P({collection:this.collection}))}}])}(s.Q.wA),V=t(57857),T=t(93569),D=t(26835),_=t.n(D),R={licenseContainer:"eHMZ_",license:"I0iMx",era:"qgIXx"};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 L(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,N(r.key),r)}}function N(e){var n=function(e){if("object"!=U(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=U(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==U(n)?n:n+""}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(B=function(){return!!e})()}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function A(e,n){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},A(e,n)}var H=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),function(e,n,t){return n=M(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,B()?Reflect.construct(n,t||[],M(e).constructor):n.apply(e,t))}(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&&A(e,n)}(n,e),t=n,(i=[{key:"name",get:function(){return"ScreenrightsDisclaimerComponent"}},{key:"template",get:function(){return _()}},{key:"lang",get:function(){return"shared.screenrightsDisclaimer"}},{key:"className",get:function(){return"py-3 border-top"}},{key:"getLogoClass",value:function(){return T.mU.isInContentRegion(this.options.contentRegion,r.UK)?R.era:""}},{key:"getLicenseText",value:function(){switch(this.options.contentRegion){case r.UK:return V.T.getPhrase(this.lang,"era");case r.AU:return V.T.getPhrase(this.lang,"copyrightAct");case r.NZ:default:return""}}},{key:"viewOptions",value:function(){var e=T.mU.isInContentRegion(this.options.contentRegion,r.AU);return{styles:R,logoClass:this.getLogoClass(),labelText:e?V.T.getPhrase(this.lang,"labelAu"):"",licenseText:this.getLicenseText()}}}])&&L(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i}(s.Q.wA),F=t(10657),K=t(56210),Q=t(47416),Z=t(31204),Y=t(29457),z=t(89707),q=t(7190),G=t(95982),J=t.n(G),$={columnNames:"knYPJ",seriesContainer:"nBq4d",icon:"F9VfV",citationValues:"igMNQ"};function W(e){return W="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},W(e)}function X(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ee(r.key),r)}}function ee(e){var n=function(e){if("object"!=W(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=W(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==W(n)?n:n+""}function ne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ne=function(){return!!e})()}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}function re(e,n){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},re(e,n)}var ie=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),function(e,n,t){return n=te(n),function(e,n){if(n&&("object"==W(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,ne()?Reflect.construct(n,t||[],te(e).constructor):n.apply(e,t))}(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&&re(e,n)}(n,e),t=n,(r=[{key:"name",get:function(){return"VideoBasicInfoComponent"}},{key:"template",get:function(){return J()}},{key:"lang",get:function(){return"shared.videoBasicInfo"}},{key:"defaults",get:function(){return{truncateDescription:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:K.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0,partialLoading:Y.LP.VideoBasicInfo},series:{el:".series-region",replaceElement:!0}}}},{key:"getBroadcastDate",value:function(){return this.model.get("dateBroadcast")?F.O.format(this.model.get("dateBroadcast"),Y.K4.FULL_YEAR):""}},{key:"getSeriesUrl",value:function(){if(this.options.externalSeriesLink&&this.model.series){var e="series/".concat(this.model.series.id);return z.k.getMainProductUrl(this.options.config,e,e)}}},{key:"renderSeries",value:function(){this.model.series&&this.model.series.get("name")&&this.showChildView("series",new Z.O({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl(),styleUppercase:!1}))}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new p.Z({model:this.model,linkify:!0,size:p.t.Large,truncate:this.options.truncateDescription,allowExpand:!0});this.showChildView("description",e)}}},{key:"getSubtitleLanguage",value:function(){var e=this;return this.model.subtitles&&this.model.get("subtitles").length?i.uniq(this.model.get("subtitles").map((function(n){var t,r=n.get("language"),i=Q.S.getFullEnglishName(r);return(null===(t=n.get("metadata"))||void 0===t?void 0:t.autoGenerated)?V.T.getPhrase(e.lang,"autoGenerated",{name:i}):i}))).join(", "):""}},{key:"getCitationHeading",value:function(e,n,t){return this.model.get(e)?this.model.get(e).length>1?t:n:""}},{key:"getCitationHeadings",value:function(){return{productionCompaniesText:this.getCitationHeading(Y.Zn.ProductionCompany,"Production Company","Production Companies"),producersText:this.getCitationHeading(Y.Zn.Producer,"Producer","Producers"),disributorsText:this.getCitationHeading(Y.Zn.Distributor,"Distributor","Distributors"),directorsText:this.getCitationHeading(Y.Zn.Director,"Director","Directors")}}},{key:"viewOptions",value:function(){return Object.assign({styles:$,ratingClass:this.model.rating&&q.uB.mapRatingToClass(this.model.rating.get("value")),broadcastDate:this.getBroadcastDate(),hideUploadedDate:this.model.get("_isClickViewCurated").get("value"),uploadedDate:F.O.format(this.model.get("dateCreated"),Y.K4.FULL_YEAR),showHeading:this.options.showHeading,subtitles:this.getSubtitleLanguage(),hideBroadcastInfo:this.options.hideBroadcastInfo},this.getCitationHeadings())}},{key:"onRender",value:function(){this.renderSeries(),this.renderDescription()}}])&&X(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(s.Q.wA),oe=t(45390),le=t(21251),se=t(33800),ae=t(3059),ue=t(48404),ce=t(64649),pe=t(19226),de=t(71733),fe=t(90835),he=t(52834),me=t(2119),ve=t(24259),ge=t(53854),ye=t(75535),be=t(95061),we=t(91865),ke=t.n(we);function Ee(e){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ee(e)}function Ce(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oe(r.key),r)}}function Oe(e){var n=function(e){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=Ee(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ee(n)?n:n+""}function Se(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Se=function(){return!!e})()}function xe(e){return xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xe(e)}function Ie(e,n){return Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Ie(e,n)}var Pe=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),function(e,n,t){return n=xe(n),function(e,n){if(n&&("object"==Ee(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,Se()?Reflect.construct(n,t||[],xe(e).constructor):n.apply(e,t))}(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&&Ie(e,n)}(n,e),t=n,p=[{key:"initialize",value:function(){this.bindListeners(),this.videoDataService=l.u.getInstance(se.O.Video,this),this.videoMixinService=l.u.getInstance(se.K.VideoMixin,this),this.localCacheDataService=l.u.getInstance(se.O.LocalCache,this),this.playerDataService=l.u.getInstance(se.O.Player,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"bindListeners",value:function(){this.listenTo(oe.Vk.VIDEO,"".concat(le.M.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(oe.Vk.VIDEO,"".concat(le.M.VIDEOS,":").concat(this.options.videoId,":error"),this.onError),this.listenTo(oe.Vk.VIDEO,"".concat(le.M.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(oe.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(oe.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(oe.Vk.RESTRICTED_VIDEO,"".concat(le.M.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestriction),this.listenTo(oe.Vk.RESTRICTED_VIDEO,"".concat(le.M.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(oe.Vk.LOCAL_CACHE,"".concat(le.M.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(oe.Vk.LOCAL_CACHE,"".concat(le.M.LOCAL_CACHE_DEVICES,":error"),this.onError),this.listenTo(oe.Vk.VIDEO,"".concat(le.M.DELETE_VIDEO,":sync"),this.destroy)}},{key:"name",get:function(){return"VideoDetailsView"}},{key:"title",get:function(){return this.video&&this.video.get("name")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return ke()}},{key:"className",get:function(){return"container-fluid h-100 bg-white rounded"}},{key:"onError",value:function(e){switch(e.type){case o.h.NotFound:s.Q.Ry.throw(new ye.l);break;case o.h.Forbidden:s.Q.Ry.throw(new ge.a)}}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1,partialLoading:Y.LP.Breadcrumbs},header:{replaceElement:!0,el:".video-header-region",partialLoading:Y.LP.VideoHeader},main:{replaceElement:!0,el:".main-video-information-region",partialLoading:Y.LP.VideoSidebarInfo},basic:{replaceElement:!1,el:".basic-video-information-region",partialLoading:Y.LP.VideoBasicInfo},chapters:{replaceElement:!0,el:".video-chapters-region"},resources:{replaceElement:!0,el:".video-resources-region"},fields:{replaceElement:!0,el:".fields-region"},links:{replaceElement:!0,el:".video-links-region"},screenrightsDisclaimer:{replaceElement:!0,el:".screenright-disclaimer-region"}}}},{key:"updateRestriction",value:function(){this.videoMixinService.getAndMixinVideoRestriction(this.video)}},{key:"showLicense",value:function(){return!(!this.video||T.mU.isInContentRegion(this.currentUser.get("contentRegion"),r.NZ)||(!this.video.get("channel")||!this.video.get("channel").get("id"))&&!this.video.get("dateBroadcast"))}},{key:"createViewKey",value:function(e,n){this.playerDataService.createViewKey(e,u.f.MasterObject,n)}},{key:"getCustomLibraryFolders",value:function(){var e;if(!(null===(e=this.video)||void 0===e?void 0:e.categories)||!this.libraries)return[];var n=this.libraries.reduce((function(e,n){return e[n.id]=!0,e}),{});return this.video.categories.filter((function(e){var t=e.libraries.first().get("id");return n[t]}))}},{key:"renderBreadcrumbs",value:function(){this.folder&&this.video&&this.showChildView("breadcrumbs",new c.n({folder:this.folder,libraries:this.libraries,video:this.video,enableLastItemAppLink:!1}))}},{key:"renderVideoHeader",value:function(){this.showChildView("header",new he.U({model:this.video,customerHasLocalCache:T.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),customerHasExchange:this.exchanges.any(),collectionIdentifier:this.folder&&new ae.F7(this.folder.id,T.x$.GetCurrentSortType()),config:this.config,products:this.products,libraries:this.libraries}))}},{key:"renderSidebarInfo",value:function(){this.showChildView("main",new ve._({model:this.video,webPlayerUrl:this.config.get("webPlayerUrl"),channelName:this.channelName,currentUser:this.currentUser,createViewKey:this.createViewKey,playerApiUrl:this.config.get("playerApiUrl"),libraries:this.libraries}))}},{key:"renderBasicInfo",value:function(){this.video&&this.showChildView("basic",new ie({model:this.video,showHeading:!0,config:this.config,hideBroadcastInfo:this.currentUser.get("instanceRegion")===a.b.US}))}},{key:"renderFields",value:function(){this.video.fields&&this.video.fields.any((function(e){return e.get("value")}))&&this.currentUser.get("instanceRegion")!==a.b.US&&this.showChildView("fields",new j({collection:this.video.fields}))}},{key:"renderChapters",value:function(){var e=this.video.chapters;e&&e.length>0&&this.showChildView("chapters",new de.Q({channelName:this.channelName,collection:this.video.chapters}))}},{key:"renderResources",value:function(){var e=this.video.resources;e&&e.length>0&&this.showChildView("resources",new me.c({model:this.video}))}},{key:"renderLinks",value:function(){var e=this.video.links;e&&e.length&&this.showChildView("links",new fe.c({model:this.video,headingText:"Links"}))}},{key:"renderScreenrightsDisclaimer",value:function(){this.showLicense()&&this.showChildView("screenrightsDisclaimer",new H({contentRegion:this.currentUser.get("contentRegion")}))}},{key:"requiredResources",get:function(){return{config:ue.p.config,currentUser:pe.K.currentUser,libraries:be.T.libraries,exchanges:be.T.exchanges,products:ce.s.products}}},{key:"onBeforeRender",value:function(){return this.video=this.videoDataService.getVideo(this.options.videoId),this.video&&(this.folder=i.default.first(this.getCustomLibraryFolders())),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),!!this.video}},{key:"viewOptions",value:function(){if(this.video){var e=this.video,n=e.chapters,t=e.resources,r=e.fields,i=e.links;return{hasFolder:!!this.folder,hasChapters:n&&n.length,hasResources:t&&t.length,hasFields:r&&r.length,hasLinks:i&&i.length,showScreenrightsDisclaimer:this.showLicense()}}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderVideoHeader(),this.renderSidebarInfo(),this.renderBasicInfo(),this.renderFields(),this.renderChapters(),this.renderResources(),this.renderLinks(),this.renderScreenrightsDisclaimer()}}],p&&Ce(t.prototype,p),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,p}(s.Q.G7)},31204:function(e,n,t){"use strict";t.d(n,{O:function(){return v}});var r=t(31647),i=t(85475),o=t(45390),l=t(93569),s=t(19021),a=t.n(s),u={svgContainer:"kKrQJ",series:"zJvxj"};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 p(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var n=function(e){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=c(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(n)?n:n+""}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,n){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},m(e,n)}var v=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),function(e,n,t){return n=h(n),function(e,n){if(n&&("object"==c(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,f()?Reflect.construct(n,t||[],h(e).constructor):n.apply(e,t))}(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&&m(e,n)}(n,e),t=n,(r=[{key:"defaults",get:function(){return{styleUppercase:!0}}},{key:"name",get:function(){return"VideoItemSeriesComponent"}},{key:"template",get:function(){return a()}},{key:"appLinks",get:function(){return this.options.seriesUrl||!this.model.series?{}:{".series-applink":{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.SERIES,args:[this.model.series.get("id")]}}}},{key:"padNumber",value:function(e){if(!e)return null;var n=e.toString(),t=2;if(n.length>=t)return n;for(t-=n.length;t>0;)n="0"+n,t--;return n}},{key:"getSeriesName",value:function(){var e=l.m$.escapeExpression(this.model.series.get("name"));return this.options.highlight?l.m$.wordsHighlighter(e,this.model.get("_matchedWords")):e}},{key:"viewOptions",value:function(){return this.model.series?{styles:u,seasonNumber:this.padNumber(this.model.season&&this.model.season.get("number")),episodeNumber:this.padNumber(this.model.get("episodeNumber")),seriesName:this.getSeriesName(),seriesUrl:this.options.seriesUrl,externalSvg:i.Nj.getSvg(i.vn.NewWindow),styleUppercase:this.options.styleUppercase}:{}}},{key:"onBeforeRender",value:function(){return this.model.series&&!!this.model.series.get("id")}}])&&p(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(r.Q.wA)},17349:function(e,n,t){var r=t(31197);e.exports=(r.default||r).template({1:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.escapeExpression;return' <span class="badge p-1 '+l(e.lambda(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.interactive:o,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactive",{name:"lang",hash:{},data:i}))+"</span>\n"},3:function(e,n,t,r,i){var o;return e.propertyIsEnumerable,' <div class="mt-3">\n <h5>'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"folders",{name:"lang",hash:{smartCount:null!=(o=null!=n?n.options:n)?o.folders:o},data:i}))+'</h5>\n <div class="folders-region"></div>\n </div>\n'},5:function(e,n,t,r,i){return e.propertyIsEnumerable,' <div class="mt-3">\n <h5>'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"tags",{name:"lang",hash:{},data:i}))+'</h5>\n <div class="tags-region"></div>\n </div>\n'},7:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.escapeExpression;return' <div class="mt-3">\n <h5>'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"curriculumLinks",{name:"lang",hash:{},data:i}))+"</h5>\n <p>"+l(e.lambda(null!=(o=null!=n?n.options:n)?o.links:o,n))+"</p>\n </div>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=null!=n?n:e.nullContext||{};return'<div class="h-100 ps-2 pe-2">\n <div class="video-preview-region"></div>\n <div class="mt-3">\n'+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.interactive:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+" </div>\n\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.folders:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.tags:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.links:o,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?o:"")+"</div>"},useData:!0})},91865:function(e,n,t){var r=t(31197);e.exports=(r.default||r).template({1:function(e,n,t,r,i){return' <div class="fields-region"></div>\n'},3:function(e,n,t,r,i){return' <div class="video-chapters-region"></div>\n'},5:function(e,n,t,r,i){return' <div class="video-resources-region"></div>\n'},7:function(e,n,t,r,i){return' <div class="video-links-region"></div>\n'},9:function(e,n,t,r,i){return' <div class="screenright-disclaimer-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=null!=n?n:e.nullContext||{};return'<div class="row border-bottom">\n <div class="video-header-region"></div>\n\n <div class="px-3 pb-3">\n <div class="breadcrumbs-region"></div>\n </div>\n</div>\n\n<div class="row">\n <div class="col-4">\n <div class="main-video-information-region"></div>\n </div>\n <div class="col-8">\n <div class="basic-video-information-region py-3 pe-2"></div>\n'+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.hasFields:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.hasChapters:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.hasResources:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.hasLinks:o,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?o:"")+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.showScreenrightsDisclaimer:o,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?o:"")+" </div>\n</div>"},useData:!0})},10386:function(e,n,t){var r=t(31197);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l,s=e.escapeExpression;return'<div class="col-3 '+s(e.lambda(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):l)+'</div>\n<div class="col-9">\n <div class="description-region"></div>\n</div>'},useData:!0})},90118:function(e,n,t){var r=t(31197);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){return'<h5 class="mb-0">Extra Information</h5>\n<div class="text-secondary mb-3">This information is only visible to administrators and will not be searchable</div>\n<div class="fields-region"></div>'},useData:!0})},26835:function(e,n,t){var r=t(31197);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression;return'<div class="d-inline-block '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.licenseContainer:o,n))+'">\n <div class="'+s(l(null!=(o=null!=n?n.options:n)?o.logoClass:o,n))+'">'+s(l(null!=(o=null!=n?n.options:n)?o.labelText:o,n))+'</div>\n <p class="'+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.license:o,n))+' bg-white p-2 border box-shadow">\n '+(null!=(o=l(null!=(o=null!=n?n.options:n)?o.licenseText:o,n))?o:"")+"\n </p>\n</div>"},useData:!0})},95982:function(e,n,t){var r=t(31197);e.exports=(r.default||r).template({1:function(e,n,t,r,i){return e.propertyIsEnumerable,'<div class="position-relative">\n <h5 class="d-inline-block">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"basicInfo",{name:"lang",hash:{},data:i}))+"</h5>\n</div>\n"},3:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l,s=e.escapeExpression,a=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return' <div class="col-3 '+s(e.lambda(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||u).call(a,"videoTitle",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:u)?l.call(a,{name:"name",hash:{},data:i}):l)+"</p>\n"},5:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"series",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.seriesContainer:o,n))+'"><div class="series-region"></div></div>\n'},7:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"rating",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9"><span class="p-1 badge text-white tool-tip '+s(l(null!=(o=null!=n?n.options:n)?o.ratingClass:o,n))+" "+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.rating:o,n))+'" title="'+s(l(null!=(o=null!=n?n.rating:n)?o.name:o,n))+'">'+s(l(null!=(o=null!=n?n.rating:n)?o.code:o,n))+"</span></p>\n"},9:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.escapeExpression;return' <div class="col-3 '+l(e.lambda(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"description",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9">\n <div class="description-region"></div>\n </div>\n'},11:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l,s=e.escapeExpression,a=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return' <div class="col-3 '+s(e.lambda(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||u).call(a,"productionYear",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s("function"==typeof(l=null!=(l=t.productionYear||(null!=n?n.productionYear:n))?l:u)?l.call(a,{name:"productionYear",hash:{},data:i}):l)+"</p>\n"},13:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression,a=null!=n?n:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"producers",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.citationValues:o,n))+'">\n <p>\n'+(null!=(o=t.each.call(a,null!=n?n.producers:n,{name:"each",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?o:"")+" </p>\n </div>\n"},14:function(e,n,t,r,i){var o;return e.propertyIsEnumerable," <span>"+e.escapeExpression("function"==typeof(o=null!=(o=t.name||(null!=n?n.name:n))?o:e.hooks.helperMissing)?o.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):o)+"</span>\n"},16:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression,a=null!=n?n:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"directors",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.citationValues:o,n))+'">\n <p>\n'+(null!=(o=t.each.call(a,null!=n?n.directors:n,{name:"each",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?o:"")+" </p>\n </div>\n"},18:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression,a=null!=n?n:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"productionCompanies",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.citationValues:o,n))+'">\n <p>\n'+(null!=(o=t.each.call(a,null!=n?n.productionCompanies:n,{name:"each",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?o:"")+" </p>\n </div>\n"},20:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression,a=null!=n?n:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"distributors",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.citationValues:o,n))+'">\n <p>\n'+(null!=(o=t.each.call(a,null!=n?n.distributors:n,{name:"each",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?o:"")+" </p>\n </div>\n"},22:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=null!=n?n:e.nullContext||{};return" "+(null!=(o=t.if.call(l,null!=(o=null!=n?n.channel:n)?o.name:o,{name:"if",hash:{},fn:e.program(23,i,0),inverse:e.noop,data:i}))?o:"")+"\n\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.broadcastDate:o,{name:"if",hash:{},fn:e.program(26,i,0),inverse:e.noop,data:i}))?o:"")},23:function(e,n,t,r,i){var o;return e.propertyIsEnumerable,null!=(o=t.if.call(null!=n?n:e.nullContext||{},null!=n?n.channel:n,{name:"if",hash:{},fn:e.program(24,i,0),inverse:e.noop,data:i}))?o:""},24:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression;return'\n <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"channel",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s(l(null!=(o=null!=n?n.channel:n)?o.name:o,n))+"</p>\n "},26:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"broadcastDate",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s(l(null!=(o=null!=n?n.options:n)?o.broadcastDate:o,n))+"</p>\n"},28:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"dateUploaded",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s(l(null!=(o=null!=n?n.options:n)?o.uploadedDate:o,n))+"</p>\n"},30:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.columnNames:o,n))+'">'+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s(l(null!=(o=null!=n?n.options:n)?o.subtitles:o,n))+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=null!=n?n:e.nullContext||{};return(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.showHeading:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+'<div class="row mb-0">\n'+(null!=(o=t.if.call(l,null!=n?n.name:n,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.series:n)?o.name:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.rating:n)?o.code:o,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=n?n.description:n,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=n?n.productionYear:n,{name:"if",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.producers:n)?o.length:o,{name:"if",hash:{},fn:e.program(13,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.directors:n)?o.length:o,{name:"if",hash:{},fn:e.program(16,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.productionCompanies:n)?o.length:o,{name:"if",hash:{},fn:e.program(18,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.distributors:n)?o.length:o,{name:"if",hash:{},fn:e.program(20,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.unless.call(l,null!=(o=null!=n?n.options:n)?o.hideBroadcastInfo:o,{name:"unless",hash:{},fn:e.program(22,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.unless.call(l,null!=(o=null!=n?n.options:n)?o.hideUploadedDate:o,{name:"unless",hash:{},fn:e.program(28,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.subtitles:o,{name:"if",hash:{},fn:e.program(30,i,0),inverse:e.noop,data:i}))?o:"")+"</div>"},useData:!0})},19021:function(e,n,t){var r=t(31197);e.exports=(r.default||r).template({1:function(e,n,t,r,i){var o;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(o=null!=(o=null!=n?n.options:n)?o.styles:o)?o.series:o,n))},3:function(e,n,t,r,i){var o;return e.propertyIsEnumerable,'href="'+e.escapeExpression(e.lambda(null!=(o=null!=n?n.options:n)?o.seriesUrl:o,n))+'" target="_blank"'},5:function(e,n,t,r,i){var o;return e.propertyIsEnumerable,(null!=(o=t.if.call(null!=n?n:e.nullContext||{},null!=(o=null!=n?n.options:n)?o.seasonNumber:o,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?o:"")+" E"+e.escapeExpression(e.lambda(null!=(o=null!=n?n.options:n)?o.episodeNumber:o,n))+"\n"},6:function(e,n,t,r,i){var o;return e.propertyIsEnumerable," S"+e.escapeExpression(e.lambda(null!=(o=null!=n?n.options:n)?o.seasonNumber:o,n))+" •"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var o,l=null!=n?n:e.nullContext||{};return'<a class="series-applink text-reset '+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.styleUppercase:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+'" '+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.seriesUrl:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+">\n "+(null!=(o=e.lambda(null!=(o=null!=n?n.options:n)?o.seriesName:o,n))?o:"")+(null!=(o=t.if.call(l,null!=(o=null!=n?n.options:n)?o.episodeNumber:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+"</a>"},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4027],{16616:function(e,t,r){r.d(t,{FT:function(){return i}});var n=r(32735),o=r(74512);const a=["as","disabled"];function i({tagName:e,disabled:t,href:r,target:n,rel:o,role:a,onClick:i,tabIndex:s=0,type:u}){e||(e=null!=r||null!=n||null!=o?"a":"button");const c={tagName:e};if("button"===e)return[{type:u||"button",disabled:t},c];const l=n=>{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(r))&&n.preventDefault(),t?n.stopPropagation():null==i||i(n)};return"a"===e&&(r||(r="#"),t&&(r=void 0)),[{role:null!=a?a:"button",disabled:void 0,tabIndex:t?void 0:s,href:r,target:"a"===e?n:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:l,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),l(e))}},c]}const s=n.forwardRef(((e,t)=>{let{as:r,disabled:n}=e,s=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,a);const[u,{tagName:c}]=i(Object.assign({tagName:r,disabled:n},s));return(0,o.jsx)(c,Object.assign({},s,u,{ref:t}))}));s.displayName="Button",t.ZP=s},27445:function(e,t,r){r.d(t,{PB:function(){return o}});const n="data-rr-ui-";function o(e){return`${n}${e}`}},16608:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(32735);function o(e){const t=(0,n.useRef)(null);return(0,n.useEffect)((()=>{t.current=e})),t.current}},30720:function(e,t,r){r.d(t,{Z:function(){return o}});var n=Function.prototype.bind.call(Function.prototype.call,[].slice);function o(e,t){return n(e.querySelectorAll(t))}},92802:function(e,t,r){r.d(t,{Bc:function(){return Br},gN:function(){return Cr},l0:function(){return Ir},J9:function(){return Ar},k5:function(){return jr},u9:function(){return mr},u6:function(){return Sr}});var n=r(32735),o=r(8266),a=r.n(o),i=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===s}(e)}(e)},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function u(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function c(e,t,r){return e.concat(t).map((function(e){return u(e,r)}))}function l(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||c,r.isMergeableObject=r.isMergeableObject||i;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach((function(t){n[t]=u(e[t],r)})),Object.keys(t).forEach((function(o){r.isMergeableObject(t[o])&&e[o]?n[o]=l(e[o],t[o],r):n[o]=u(t[o],r)})),n}(e,t,r):u(t,r)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var f=l,d="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,v=d||p||Function("return this")(),h=v.Symbol,y=Object.prototype,m=y.hasOwnProperty,b=y.toString,g=h?h.toStringTag:void 0,j=Object.prototype.toString,E=h?h.toStringTag:void 0,_=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":E&&E in Object(e)?function(e){var t=m.call(e,g),r=e[g];try{e[g]=void 0;var n=!0}catch(e){}var o=b.call(e);return n&&(t?e[g]=r:delete e[g]),o}(e):function(e){return j.call(e)}(e)},S=function(e,t){return function(r){return e(t(r))}},O=S(Object.getPrototypeOf,Object),w=function(e){return null!=e&&"object"==typeof e},x=Function.prototype,T=Object.prototype,A=x.toString,R=T.hasOwnProperty,N=A.call(Object),k=function(e){if(!w(e)||"[object Object]"!=_(e))return!1;var t=O(e);if(null===t)return!0;var r=R.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&A.call(r)==N},F=function(e,t){return e===t||e!=e&&t!=t},C=function(e,t){for(var r=e.length;r--;)if(F(e[r][0],t))return r;return-1},I=Array.prototype.splice;function P(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}P.prototype.clear=function(){this.__data__=[],this.size=0},P.prototype.delete=function(e){var t=this.__data__,r=C(t,e);return!(r<0||(r==t.length-1?t.pop():I.call(t,r,1),--this.size,0))},P.prototype.get=function(e){var t=this.__data__,r=C(t,e);return r<0?void 0:t[r][1]},P.prototype.has=function(e){return C(this.__data__,e)>-1},P.prototype.set=function(e,t){var r=this.__data__,n=C(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var M,D=P,$=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},L=function(e){if(!$(e))return!1;var t=_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},B=v["__core-js_shared__"],U=(M=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"",Z=Function.prototype.toString,V=function(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""},z=/^\[object .+?Constructor\]$/,W=Function.prototype,H=Object.prototype,G=W.toString,K=H.hasOwnProperty,q=RegExp("^"+G.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=function(e){return!(!$(e)||(t=e,U&&U in t))&&(L(e)?q:z).test(V(e));var t},J=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Y(r)?r:void 0},Q=J(v,"Map"),X=J(Object,"create"),ee=Object.prototype.hasOwnProperty,te=Object.prototype.hasOwnProperty;function re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}re.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},re.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},re.prototype.get=function(e){var t=this.__data__;if(X){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ee.call(t,e)?t[e]:void 0},re.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:te.call(t,e)},re.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=X&&void 0===t?"__lodash_hash_undefined__":t,this};var ne=re,oe=function(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function ae(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ae.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(Q||D),string:new ne}},ae.prototype.delete=function(e){var t=oe(this,e).delete(e);return this.size-=t?1:0,t},ae.prototype.get=function(e){return oe(this,e).get(e)},ae.prototype.has=function(e){return oe(this,e).has(e)},ae.prototype.set=function(e,t){var r=oe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var ie=ae;function se(e){var t=this.__data__=new D(e);this.size=t.size}se.prototype.clear=function(){this.__data__=new D,this.size=0},se.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},se.prototype.get=function(e){return this.__data__.get(e)},se.prototype.has=function(e){return this.__data__.has(e)},se.prototype.set=function(e,t){var r=this.__data__;if(r instanceof D){var n=r.__data__;if(!Q||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ie(n)}return r.set(e,t),this.size=r.size,this};var ue=se,ce=function(){try{var e=J(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),le=function(e,t,r){"__proto__"==t&&ce?ce(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},fe=Object.prototype.hasOwnProperty,de=function(e,t,r){var n=e[t];fe.call(e,t)&&F(n,r)&&(void 0!==r||t in e)||le(e,t,r)},pe=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],u=n?n(r[s],e[s],s,r,e):void 0;void 0===u&&(u=e[s]),o?le(r,s,u):de(r,s,u)}return r},ve=function(e){return w(e)&&"[object Arguments]"==_(e)},he=Object.prototype,ye=he.hasOwnProperty,me=he.propertyIsEnumerable,be=ve(function(){return arguments}())?ve:function(e){return w(e)&&ye.call(e,"callee")&&!me.call(e,"callee")},ge=be,je=Array.isArray,Ee="object"==typeof exports&&exports&&!exports.nodeType&&exports,_e=Ee&&"object"==typeof module&&module&&!module.nodeType&&module,Se=_e&&_e.exports===Ee?v.Buffer:void 0,Oe=(Se?Se.isBuffer:void 0)||function(){return!1},we=/^(?:0|[1-9]\d*)$/,xe=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&we.test(e))&&e>-1&&e%1==0&&e<t},Te=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ae={};Ae["[object Float32Array]"]=Ae["[object Float64Array]"]=Ae["[object Int8Array]"]=Ae["[object Int16Array]"]=Ae["[object Int32Array]"]=Ae["[object Uint8Array]"]=Ae["[object Uint8ClampedArray]"]=Ae["[object Uint16Array]"]=Ae["[object Uint32Array]"]=!0,Ae["[object Arguments]"]=Ae["[object Array]"]=Ae["[object ArrayBuffer]"]=Ae["[object Boolean]"]=Ae["[object DataView]"]=Ae["[object Date]"]=Ae["[object Error]"]=Ae["[object Function]"]=Ae["[object Map]"]=Ae["[object Number]"]=Ae["[object Object]"]=Ae["[object RegExp]"]=Ae["[object Set]"]=Ae["[object String]"]=Ae["[object WeakMap]"]=!1;var Re=function(e){return function(t){return e(t)}},Ne="object"==typeof exports&&exports&&!exports.nodeType&&exports,ke=Ne&&"object"==typeof module&&module&&!module.nodeType&&module,Fe=ke&&ke.exports===Ne&&d.process,Ce=function(){try{return ke&&ke.require&&ke.require("util").types||Fe&&Fe.binding&&Fe.binding("util")}catch(e){}}(),Ie=Ce&&Ce.isTypedArray,Pe=Ie?Re(Ie):function(e){return w(e)&&Te(e.length)&&!!Ae[_(e)]},Me=Object.prototype.hasOwnProperty,De=function(e,t){var r=je(e),n=!r&&ge(e),o=!r&&!n&&Oe(e),a=!r&&!n&&!o&&Pe(e),i=r||n||o||a,s=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=s.length;for(var c in e)!t&&!Me.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xe(c,u))||s.push(c);return s},$e=Object.prototype,Le=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$e)},Be=S(Object.keys,Object),Ue=Object.prototype.hasOwnProperty,Ze=function(e){return null!=e&&Te(e.length)&&!L(e)},Ve=function(e){return Ze(e)?De(e):function(e){if(!Le(e))return Be(e);var t=[];for(var r in Object(e))Ue.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)},ze=Object.prototype.hasOwnProperty,We=function(e){if(!$(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Le(e),r=[];for(var n in e)("constructor"!=n||!t&&ze.call(e,n))&&r.push(n);return r},He=function(e){return Ze(e)?De(e,!0):We(e)},Ge="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ke=Ge&&"object"==typeof module&&module&&!module.nodeType&&module,qe=Ke&&Ke.exports===Ge?v.Buffer:void 0,Ye=qe?qe.allocUnsafe:void 0,Je=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},Qe=function(){return[]},Xe=Object.prototype.propertyIsEnumerable,et=Object.getOwnPropertySymbols,tt=et?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}(et(e),(function(t){return Xe.call(e,t)})))}:Qe,rt=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},nt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)rt(t,tt(e)),e=O(e);return t}:Qe,ot=function(e,t,r){var n=t(e);return je(e)?n:rt(n,r(e))},at=function(e){return ot(e,Ve,tt)},it=function(e){return ot(e,He,nt)},st=J(v,"DataView"),ut=J(v,"Promise"),ct=J(v,"Set"),lt=J(v,"WeakMap"),ft="[object Map]",dt="[object Promise]",pt="[object Set]",vt="[object WeakMap]",ht="[object DataView]",yt=V(st),mt=V(Q),bt=V(ut),gt=V(ct),jt=V(lt),Et=_;(st&&Et(new st(new ArrayBuffer(1)))!=ht||Q&&Et(new Q)!=ft||ut&&Et(ut.resolve())!=dt||ct&&Et(new ct)!=pt||lt&&Et(new lt)!=vt)&&(Et=function(e){var t=_(e),r="[object Object]"==t?e.constructor:void 0,n=r?V(r):"";if(n)switch(n){case yt:return ht;case mt:return ft;case bt:return dt;case gt:return pt;case jt:return vt}return t});var _t=Et,St=Object.prototype.hasOwnProperty,Ot=v.Uint8Array,wt=function(e){var t=new e.constructor(e.byteLength);return new Ot(t).set(new Ot(e)),t},xt=/\w*$/,Tt=h?h.prototype:void 0,At=Tt?Tt.valueOf:void 0,Rt=function(e,t,r){var n,o,a,i=e.constructor;switch(t){case"[object ArrayBuffer]":return wt(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var r=t?wt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?wt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(a=new(o=e).constructor(o.source,xt.exec(o))).lastIndex=o.lastIndex,a;case"[object Symbol]":return n=e,At?Object(At.call(n)):{}}},Nt=Object.create,kt=function(){function e(){}return function(t){if(!$(t))return{};if(Nt)return Nt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Ft=Ce&&Ce.isMap,Ct=Ft?Re(Ft):function(e){return w(e)&&"[object Map]"==_t(e)},It=Ce&&Ce.isSet,Pt=It?Re(It):function(e){return w(e)&&"[object Set]"==_t(e)},Mt="[object Arguments]",Dt="[object Function]",$t="[object Object]",Lt={};Lt[Mt]=Lt["[object Array]"]=Lt["[object ArrayBuffer]"]=Lt["[object DataView]"]=Lt["[object Boolean]"]=Lt["[object Date]"]=Lt["[object Float32Array]"]=Lt["[object Float64Array]"]=Lt["[object Int8Array]"]=Lt["[object Int16Array]"]=Lt["[object Int32Array]"]=Lt["[object Map]"]=Lt["[object Number]"]=Lt[$t]=Lt["[object RegExp]"]=Lt["[object Set]"]=Lt["[object String]"]=Lt["[object Symbol]"]=Lt["[object Uint8Array]"]=Lt["[object Uint8ClampedArray]"]=Lt["[object Uint16Array]"]=Lt["[object Uint32Array]"]=!0,Lt["[object Error]"]=Lt[Dt]=Lt["[object WeakMap]"]=!1;var Bt=function e(t,r,n,o,a,i){var s,u=1&r,c=2&r,l=4&r;if(n&&(s=a?n(t,o,a,i):n(t)),void 0!==s)return s;if(!$(t))return t;var f=je(t);if(f){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&St.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!u)return Je(t,s)}else{var d=_t(t),p=d==Dt||"[object GeneratorFunction]"==d;if(Oe(t))return function(e,t){if(t)return e.slice();var r=e.length,n=Ye?Ye(r):new e.constructor(r);return e.copy(n),n}(t,u);if(d==$t||d==Mt||p&&!a){if(s=c||p?{}:function(e){return"function"!=typeof e.constructor||Le(e)?{}:kt(O(e))}(t),!u)return c?function(e,t){return pe(e,nt(e),t)}(t,function(e,t){return e&&pe(t,He(t),e)}(s,t)):function(e,t){return pe(e,tt(e),t)}(t,function(e,t){return e&&pe(t,Ve(t),e)}(s,t))}else{if(!Lt[d])return a?t:{};s=Rt(t,d,u)}}i||(i=new ue);var v=i.get(t);if(v)return v;i.set(t,s),Pt(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,i))})):Ct(t)&&t.forEach((function(o,a){s.set(a,e(o,r,n,a,t,i))}));var h=f?void 0:(l?c?it:at:c?He:Ve)(t);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(h||t,(function(o,a){h&&(o=t[a=o]),de(s,a,e(o,r,n,a,t,i))})),s},Ut=function(e){return Bt(e,4)},Zt=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},Vt=function(e){return"symbol"==typeof e||w(e)&&"[object Symbol]"==_(e)};function zt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(zt.Cache||ie),r}zt.Cache=ie;var Wt,Ht,Gt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kt=/\\(\\)?/g,qt=(Wt=zt((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Gt,(function(e,r,n,o){t.push(n?o.replace(Kt,"$1"):r||e)})),t}),(function(e){return 500===Ht.size&&Ht.clear(),e})),Ht=Wt.cache,Wt),Yt=function(e){if("string"==typeof e||Vt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Jt=h?h.prototype:void 0,Qt=Jt?Jt.toString:void 0,Xt=function e(t){if("string"==typeof t)return t;if(je(t))return Zt(t,e)+"";if(Vt(t))return Qt?Qt.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},er=function(e){return null==e?"":Xt(e)},tr=function(e){return je(e)?Zt(e,Yt):Vt(e)?[e]:Je(qt(er(e)))},rr=function(e,t){},nr=r(86058),or=r.n(nr),ar=function(e){return Bt(e,5)};function ir(){return ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ir.apply(this,arguments)}function sr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ur(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function cr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var lr=function(e){return Array.isArray(e)&&0===e.length},fr=function(e){return"function"==typeof e},dr=function(e){return null!==e&&"object"==typeof e},pr=function(e){return String(Math.floor(Number(e)))===e},vr=function(e){return"[object String]"===Object.prototype.toString.call(e)},hr=function(e){return 0===n.Children.count(e)},yr=function(e){return dr(e)&&fr(e.then)};function mr(e,t,r,n){void 0===n&&(n=0);for(var o=tr(t);e&&n<o.length;)e=e[o[n++]];return void 0===e?r:e}function br(e,t,r){for(var n=Ut(e),o=n,a=0,i=tr(t);a<i.length-1;a++){var s=i[a],u=mr(e,i.slice(0,a+1));if(u&&(dr(u)||Array.isArray(u)))o=o[s]=Ut(u);else{var c=i[a+1];o=o[s]=pr(c)&&Number(c)>=0?[]:{}}}return(0===a?e:o)[i[a]]===r?e:(void 0===r?delete o[i[a]]:o[i[a]]=r,0===a&&void 0===r&&delete n[i[a]],n)}function gr(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,a=Object.keys(e);o<a.length;o++){var i=a[o],s=e[i];dr(s)?r.get(s)||(r.set(s,!0),n[i]=Array.isArray(s)?[]:{},gr(s,t,r,n[i])):n[i]=t}return n}var jr=(0,n.createContext)(void 0);jr.displayName="FormikContext";var Er=jr.Provider,_r=jr.Consumer;function Sr(){var e=(0,n.useContext)(jr);return e||rr(!1),e}function Or(e,t){switch(t.type){case"SET_VALUES":return ir({},e,{values:t.payload});case"SET_TOUCHED":return ir({},e,{touched:t.payload});case"SET_ERRORS":return a()(e.errors,t.payload)?e:ir({},e,{errors:t.payload});case"SET_STATUS":return ir({},e,{status:t.payload});case"SET_ISSUBMITTING":return ir({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return ir({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return ir({},e,{values:br(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return ir({},e,{touched:br(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return ir({},e,{errors:br(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return ir({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return ir({},e,{touched:gr(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return ir({},e,{isSubmitting:!1});default:return e}}var wr={},xr={};function Tr(e){var t=e.validateOnChange,r=void 0===t||t,o=e.validateOnBlur,i=void 0===o||o,s=e.validateOnMount,u=void 0!==s&&s,c=e.isInitialValid,l=e.enableReinitialize,d=void 0!==l&&l,p=e.onSubmit,v=ur(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=ir({validateOnChange:r,validateOnBlur:i,validateOnMount:u,onSubmit:p},v),y=(0,n.useRef)(h.initialValues),m=(0,n.useRef)(h.initialErrors||wr),b=(0,n.useRef)(h.initialTouched||xr),g=(0,n.useRef)(h.initialStatus),j=(0,n.useRef)(!1),E=(0,n.useRef)({});(0,n.useEffect)((function(){return j.current=!0,function(){j.current=!1}}),[]);var _=(0,n.useReducer)(Or,{values:h.initialValues,errors:h.initialErrors||wr,touched:h.initialTouched||xr,status:h.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),S=_[0],O=_[1],w=(0,n.useCallback)((function(e,t){return new Promise((function(r,n){var o=h.validate(e,t);null==o?r(wr):yr(o)?o.then((function(e){r(e||wr)}),(function(e){n(e)})):r(o)}))}),[h.validate]),x=(0,n.useCallback)((function(e,t){var r=h.validationSchema,n=fr(r)?r(t):r,o=t&&n.validateAt?n.validateAt(t,e):function(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n={});var o=Rr(e);return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:n})}(e,n);return new Promise((function(e,t){o.then((function(){e(wr)}),(function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return br(t,e.path,e.message);var r=e.inner,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var a;if(n){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var i=a;mr(t,i.path)||(t=br(t,i.path,i.message))}}return t}(r)):t(r)}))}))}),[h.validationSchema]),T=(0,n.useCallback)((function(e,t){return new Promise((function(r){return r(E.current[e].validate(t))}))}),[]),A=(0,n.useCallback)((function(e){var t=Object.keys(E.current).filter((function(e){return fr(E.current[e].validate)})),r=t.length>0?t.map((function(t){return T(t,mr(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then((function(e){return e.reduce((function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=br(e,t[n],r)),e}),{})}))}),[T]),R=(0,n.useCallback)((function(e){return Promise.all([A(e),h.validationSchema?x(e):{},h.validate?w(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return f.all([t,r,n],{arrayMerge:Nr})}))}),[h.validate,h.validationSchema,A,w,x]),N=Fr((function(e){return void 0===e&&(e=S.values),O({type:"SET_ISVALIDATING",payload:!0}),R(e).then((function(e){return j.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:e})),e}))}));(0,n.useEffect)((function(){u&&!0===j.current&&a()(y.current,h.initialValues)&&N(y.current)}),[u,N]);var k=(0,n.useCallback)((function(e){var t=e&&e.values?e.values:y.current,r=e&&e.errors?e.errors:m.current?m.current:h.initialErrors||{},n=e&&e.touched?e.touched:b.current?b.current:h.initialTouched||{},o=e&&e.status?e.status:g.current?g.current:h.initialStatus;y.current=t,m.current=r,b.current=n,g.current=o;var a=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var i=h.onReset(S.values,Y);yr(i)?i.then(a):a()}else a()}),[h.initialErrors,h.initialStatus,h.initialTouched]);(0,n.useEffect)((function(){!0!==j.current||a()(y.current,h.initialValues)||(d&&(y.current=h.initialValues,k()),u&&N(y.current))}),[d,h.initialValues,k,u,N]),(0,n.useEffect)((function(){d&&!0===j.current&&!a()(m.current,h.initialErrors)&&(m.current=h.initialErrors||wr,O({type:"SET_ERRORS",payload:h.initialErrors||wr}))}),[d,h.initialErrors]),(0,n.useEffect)((function(){d&&!0===j.current&&!a()(b.current,h.initialTouched)&&(b.current=h.initialTouched||xr,O({type:"SET_TOUCHED",payload:h.initialTouched||xr}))}),[d,h.initialTouched]),(0,n.useEffect)((function(){d&&!0===j.current&&!a()(g.current,h.initialStatus)&&(g.current=h.initialStatus,O({type:"SET_STATUS",payload:h.initialStatus}))}),[d,h.initialStatus,h.initialTouched]);var F=Fr((function(e){if(E.current[e]&&fr(E.current[e].validate)){var t=mr(S.values,e),r=E.current[e].validate(t);return yr(r)?(O({type:"SET_ISVALIDATING",payload:!0}),r.then((function(e){return e})).then((function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),O({type:"SET_ISVALIDATING",payload:!1})}))):(O({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return h.validationSchema?(O({type:"SET_ISVALIDATING",payload:!0}),x(S.values,e).then((function(e){return e})).then((function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),O({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),C=(0,n.useCallback)((function(e,t){var r=t.validate;E.current[e]={validate:r}}),[]),I=(0,n.useCallback)((function(e){delete E.current[e]}),[]),P=Fr((function(e,t){return O({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?N(S.values):Promise.resolve()})),M=(0,n.useCallback)((function(e){O({type:"SET_ERRORS",payload:e})}),[]),D=Fr((function(e,t){var n=fr(e)?e(S.values):e;return O({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?N(n):Promise.resolve()})),$=(0,n.useCallback)((function(e,t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),L=Fr((function(e,t,n){return O({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?N(br(S.values,e,t)):Promise.resolve()})),B=(0,n.useCallback)((function(e,t){var r,n=t,o=e;if(!vr(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,i=a.type,s=a.name,u=a.id,c=a.value,l=a.checked,f=(a.outerHTML,a.options),d=a.multiple;n=t||s||u,o=/number|range/.test(i)?(r=parseFloat(c),isNaN(r)?"":r):/checkbox/.test(i)?function(e,t,r){if("boolean"==typeof e)return Boolean(t);var n=[],o=!1,a=-1;if(Array.isArray(e))n=e,o=(a=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);return t&&r&&!o?n.concat(r):o?n.slice(0,a).concat(n.slice(a+1)):n}(mr(S.values,n),l,c):f&&d?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(f):c}n&&L(n,o)}),[L,S.values]),U=Fr((function(e){if(vr(e))return function(t){return B(t,e)};B(e)})),Z=Fr((function(e,t,r){return void 0===t&&(t=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?i:r)?N(S.values):Promise.resolve()})),V=(0,n.useCallback)((function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,o=r.id,a=(r.outerHTML,t||n||o);Z(a,!0)}),[Z]),z=Fr((function(e){if(vr(e))return function(t){return V(t,e)};V(e)})),W=(0,n.useCallback)((function(e){fr(e)?O({type:"SET_FORMIK_STATE",payload:e}):O({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),H=(0,n.useCallback)((function(e){O({type:"SET_STATUS",payload:e})}),[]),G=(0,n.useCallback)((function(e){O({type:"SET_ISSUBMITTING",payload:e})}),[]),K=Fr((function(){return O({type:"SUBMIT_ATTEMPT"}),N().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=J()))return}catch(e){throw e}return Promise.resolve(r).then((function(e){return j.current&&O({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(j.current)throw O({type:"SUBMIT_FAILURE"}),e}))}if(j.current&&(O({type:"SUBMIT_FAILURE"}),t))throw e}))})),q=Fr((function(e){e&&e.preventDefault&&fr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&fr(e.stopPropagation)&&e.stopPropagation(),K().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),Y={resetForm:k,validateForm:N,validateField:F,setErrors:M,setFieldError:$,setFieldTouched:Z,setFieldValue:L,setStatus:H,setSubmitting:G,setTouched:P,setValues:D,setFormikState:W,submitForm:K},J=Fr((function(){return p(S.values,Y)})),Q=Fr((function(e){e&&e.preventDefault&&fr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&fr(e.stopPropagation)&&e.stopPropagation(),k()})),X=(0,n.useCallback)((function(e){return{value:mr(S.values,e),error:mr(S.errors,e),touched:!!mr(S.touched,e),initialValue:mr(y.current,e),initialTouched:!!mr(b.current,e),initialError:mr(m.current,e)}}),[S.errors,S.touched,S.values]),ee=(0,n.useCallback)((function(e){return{setValue:function(t,r){return L(e,t,r)},setTouched:function(t,r){return Z(e,t,r)},setError:function(t){return $(e,t)}}}),[L,Z,$]),te=(0,n.useCallback)((function(e){var t=dr(e),r=t?e.name:e,n=mr(S.values,r),o={name:r,value:n,onChange:U,onBlur:z};if(t){var a=e.type,i=e.value,s=e.as,u=e.multiple;"checkbox"===a?void 0===i?o.checked=!!n:(o.checked=!(!Array.isArray(n)||!~n.indexOf(i)),o.value=i):"radio"===a?(o.checked=n===i,o.value=i):"select"===s&&u&&(o.value=o.value||[],o.multiple=!0)}return o}),[z,U,S.values]),re=(0,n.useMemo)((function(){return!a()(y.current,S.values)}),[y.current,S.values]),ne=(0,n.useMemo)((function(){return void 0!==c?re?S.errors&&0===Object.keys(S.errors).length:!1!==c&&fr(c)?c(h):c:S.errors&&0===Object.keys(S.errors).length}),[c,re,S.errors,h]);return ir({},S,{initialValues:y.current,initialErrors:m.current,initialTouched:b.current,initialStatus:g.current,handleBlur:z,handleChange:U,handleReset:Q,handleSubmit:q,resetForm:k,setErrors:M,setFormikState:W,setFieldTouched:Z,setFieldValue:L,setFieldError:$,setStatus:H,setSubmitting:G,setTouched:P,setValues:D,submitForm:K,validateForm:N,validateField:F,isValid:ne,dirty:re,unregisterField:I,registerField:C,getFieldProps:te,getFieldMeta:X,getFieldHelpers:ee,validateOnBlur:i,validateOnChange:r,validateOnMount:u})}function Ar(e){var t=Tr(e),r=e.component,o=e.children,a=e.render,i=e.innerRef;return(0,n.useImperativeHandle)(i,(function(){return t})),(0,n.createElement)(Er,{value:t},r?(0,n.createElement)(r,t):a?a(t):o?fr(o)?o(t):hr(o)?null:n.Children.only(o):null)}function Rr(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map((function(e){return!0===Array.isArray(e)||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 Nr(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 Fr(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 Cr(e){var t=e.validate,r=e.name,o=e.render,a=e.children,i=e.as,s=e.component,u=ur(e,["validate","name","render","children","as","component"]),c=ur(Sr(),["validate","validationSchema"]),l=c.registerField,f=c.unregisterField;(0,n.useEffect)((function(){return l(r,{validate:t}),function(){f(r)}}),[l,f,r,t]);var d=c.getFieldProps(ir({name:r},u)),p=c.getFieldMeta(r),v={field:d,form:c};if(o)return o(ir({},v,{meta:p}));if(fr(a))return a(ir({},v,{meta:p}));if(s){if("string"==typeof s){var h=u.innerRef,y=ur(u,["innerRef"]);return(0,n.createElement)(s,ir({ref:h},d,y),a)}return(0,n.createElement)(s,ir({field:d,form:c},u),a)}var m=i||"input";if("string"==typeof m){var b=u.innerRef,g=ur(u,["innerRef"]);return(0,n.createElement)(m,ir({ref:b},d,g),a)}return(0,n.createElement)(m,ir({},d,u),a)}var Ir=(0,n.forwardRef)((function(e,t){var r=e.action,o=ur(e,["action"]),a=null!=r?r:"#",i=Sr(),s=i.handleReset,u=i.handleSubmit;return(0,n.createElement)("form",Object.assign({onSubmit:u,ref:t,onReset:s,action:a},o))}));function Pr(e){var t=function(t){return(0,n.createElement)(_r,null,(function(r){return r||rr(!1),(0,n.createElement)(e,Object.assign({},t,{formik:r}))}))},r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+r+")",or()(t,e)}Ir.displayName="Form";var Mr=function(e,t,r){var n=Dr(e);return n.splice(t,0,r),n},Dr=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(ir({},e,{length:t+1}))}return[]},$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,s=br(r.values,a,e(mr(r.values,a))),u=n?o(mr(r.errors,a)):void 0,c=t?i(mr(r.touched,a)):void 0;return lr(u)&&(u=void 0),lr(c)&&(c=void 0),ir({},r,{values:s,errors:n?br(r.errors,a,u):r.errors,touched:t?br(r.touched,a,c):r.touched})}))},r.push=function(e){return r.updateArrayField((function(t){return[].concat(Dr(t),[ar(e)])}),!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Dr(e),o=n[t];return n[t]=n[r],n[r]=o,n}(r,e,t)}),!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Dr(e),o=n[t];return n.splice(t,1),n.splice(r,0,o),n}(r,e,t)}),!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField((function(r){return Mr(r,e,t)}),(function(t){return Mr(t,e,null)}),(function(t){return Mr(t,e,null)}))},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Dr(e);return n[t]=r,n}(r,e,t)}),!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField((function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r})),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(cr(r)),r.pop=r.pop.bind(cr(r)),r}sr(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!a()(mr(e.formik.values,e.name),mr(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField((function(r){var n=r?Dr(r):[];return t||(t=n[e]),fr(n.splice)&&n.splice(e,1),n}),!0,!0),t},r.pop=function(){var e;return this.updateArrayField((function(t){var r=t;return e||(e=r&&r.pop&&r.pop()),r}),!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,o=t.render,a=t.children,i=t.name,s=ir({},e,{form:ur(t.formik,["validate","validationSchema"]),name:i});return r?(0,n.createElement)(r,s):o?o(s):a?"function"==typeof a?a(s):hr(a)?null:n.Children.only(a):null},t}(n.Component);$r.defaultProps={validateOnChange:!0};var Lr=function(e){function t(){return e.apply(this,arguments)||this}sr(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return mr(this.props.formik.errors,this.props.name)!==mr(e.formik.errors,this.props.name)||mr(this.props.formik.touched,this.props.name)!==mr(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},r.render=function(){var e=this.props,t=e.component,r=e.formik,o=e.render,a=e.children,i=e.name,s=ur(e,["component","formik","render","children","name"]),u=mr(r.touched,i),c=mr(r.errors,i);return u&&c?o?fr(o)?o(c):null:a?fr(a)?a(c):null:t?(0,n.createElement)(t,s,c):c:null},t}(n.Component),Br=Pr(Lr);n.Component},98269:function(e,t,r){var n=r(95685),o=r.n(n),a=r(32735),i=r(16616),s=r(46304),u=r(74512);const c=a.forwardRef((({as:e,bsPrefix:t,variant:r="primary",size:n,active:a=!1,disabled:c=!1,className:l,...f},d)=>{const p=(0,s.vE)(t,"btn"),[v,{tagName:h}]=(0,i.FT)({tagName:e,disabled:c,...f}),y=h;return(0,u.jsx)(y,{...v,...f,ref:d,disabled:c,className:o()(l,p,a&&"active",r&&`${p}-${r}`,n&&`${p}-${n}`,f.href&&c&&"disabled")})}));c.displayName="Button",t.Z=c},18881:function(e,t,r){r.d(t,{Z:function(){return Z}});var n=r(95685),o=r.n(n),a=r(60216),i=r.n(a),s=r(32735),u=r(74512);const c={type:i().string,tooltip:i().bool,as:i().elementType},l=s.forwardRef((({as:e="div",className:t,type:r="valid",tooltip:n=!1,...a},i)=>(0,u.jsx)(e,{...a,ref:i,className:o()(t,`${r}-${n?"tooltip":"feedback"}`)})));l.displayName="Feedback",l.propTypes=c;var f=l,d=s.createContext({}),p=r(46304);const v=s.forwardRef((({id:e,bsPrefix:t,className:r,type:n="checkbox",isValid:a=!1,isInvalid:i=!1,as:c="input",...l},f)=>{const{controlId:v}=(0,s.useContext)(d);return t=(0,p.vE)(t,"form-check-input"),(0,u.jsx)(c,{...l,ref:f,type:n,id:e||v,className:o()(r,t,a&&"is-valid",i&&"is-invalid")})}));v.displayName="FormCheckInput";var h=v;const y=s.forwardRef((({bsPrefix:e,className:t,htmlFor:r,...n},a)=>{const{controlId:i}=(0,s.useContext)(d);return e=(0,p.vE)(e,"form-check-label"),(0,u.jsx)("label",{...n,ref:a,htmlFor:r||i,className:o()(t,e)})}));y.displayName="FormCheckLabel";var m=y;const b=s.forwardRef((({id:e,bsPrefix:t,bsSwitchPrefix:r,inline:n=!1,reverse:a=!1,disabled:i=!1,isValid:c=!1,isInvalid:l=!1,feedbackTooltip:v=!1,feedback:y,feedbackType:b,className:g,style:j,title:E="",type:_="checkbox",label:S,children:O,as:w="input",...x},T)=>{t=(0,p.vE)(t,"form-check"),r=(0,p.vE)(r,"form-switch");const{controlId:A}=(0,s.useContext)(d),R=(0,s.useMemo)((()=>({controlId:e||A})),[A,e]),N=!O&&null!=S&&!1!==S||function(e,t){return s.Children.toArray(e).some((e=>s.isValidElement(e)&&e.type===t))}(O,m),k=(0,u.jsx)(h,{...x,type:"switch"===_?"checkbox":_,ref:T,isValid:c,isInvalid:l,disabled:i,as:w});return(0,u.jsx)(d.Provider,{value:R,children:(0,u.jsx)("div",{style:j,className:o()(g,N&&t,n&&`${t}-inline`,a&&`${t}-reverse`,"switch"===_&&r),children:O||(0,u.jsxs)(u.Fragment,{children:[k,N&&(0,u.jsx)(m,{title:E,children:S}),y&&(0,u.jsx)(f,{type:b,tooltip:v,children:y})]})})})}));b.displayName="FormCheck";var g=Object.assign(b,{Input:h,Label:m});r(65719);const j=s.forwardRef((({bsPrefix:e,type:t,size:r,htmlSize:n,id:a,className:i,isValid:c=!1,isInvalid:l=!1,plaintext:f,readOnly:v,as:h="input",...y},m)=>{const{controlId:b}=(0,s.useContext)(d);return e=(0,p.vE)(e,"form-control"),(0,u.jsx)(h,{...y,type:t,size:n,ref:m,readOnly:v,id:a||b,className:o()(i,f?`${e}-plaintext`:e,r&&`${e}-${r}`,"color"===t&&`${e}-color`,c&&"is-valid",l&&"is-invalid")})}));j.displayName="FormControl";var E=Object.assign(j,{Feedback:f});const _=s.forwardRef((({className:e,bsPrefix:t,as:r="div",...n},a)=>(t=(0,p.vE)(t,"form-floating"),(0,u.jsx)(r,{ref:a,className:o()(e,t),...n}))));_.displayName="FormFloating";var S=_;const O=s.forwardRef((({controlId:e,as:t="div",...r},n)=>{const o=(0,s.useMemo)((()=>({controlId:e})),[e]);return(0,u.jsx)(d.Provider,{value:o,children:(0,u.jsx)(t,{...r,ref:n})})}));O.displayName="FormGroup";var w=O;const x=s.forwardRef(((e,t)=>{const[{className:r,...n},{as:a="div",bsPrefix:i,spans:s}]=function({as:e,bsPrefix:t,className:r,...n}){t=(0,p.vE)(t,"col");const a=(0,p.pi)(),i=(0,p.zG)(),s=[],u=[];return a.forEach((e=>{const r=n[e];let o,a,c;delete n[e],"object"==typeof r&&null!=r?({span:o,offset:a,order:c}=r):o=r;const l=e!==i?`-${e}`:"";o&&s.push(!0===o?`${t}${l}`:`${t}${l}-${o}`),null!=c&&u.push(`order${l}-${c}`),null!=a&&u.push(`offset${l}-${a}`)})),[{...n,className:o()(r,...s,...u)},{as:e,bsPrefix:t,spans:s}]}(e);return(0,u.jsx)(a,{...n,ref:t,className:o()(r,!s.length&&i)})}));x.displayName="Col";var T=x;const A=s.forwardRef((({as:e="label",bsPrefix:t,column:r=!1,visuallyHidden:n=!1,className:a,htmlFor:i,...c},l)=>{const{controlId:f}=(0,s.useContext)(d);t=(0,p.vE)(t,"form-label");let v="col-form-label";"string"==typeof r&&(v=`${v} ${v}-${r}`);const h=o()(a,t,n&&"visually-hidden",r&&v);return i=i||f,r?(0,u.jsx)(T,{ref:l,as:"label",className:h,htmlFor:i,...c}):(0,u.jsx)(e,{ref:l,className:h,htmlFor:i,...c})}));A.displayName="FormLabel";var R=A;const N=s.forwardRef((({bsPrefix:e,className:t,id:r,...n},a)=>{const{controlId:i}=(0,s.useContext)(d);return e=(0,p.vE)(e,"form-range"),(0,u.jsx)("input",{...n,type:"range",ref:a,className:o()(t,e),id:r||i})}));N.displayName="FormRange";var k=N;const F=s.forwardRef((({bsPrefix:e,size:t,htmlSize:r,className:n,isValid:a=!1,isInvalid:i=!1,id:c,...l},f)=>{const{controlId:v}=(0,s.useContext)(d);return e=(0,p.vE)(e,"form-select"),(0,u.jsx)("select",{...l,size:r,ref:f,className:o()(n,e,t&&`${e}-${t}`,a&&"is-valid",i&&"is-invalid"),id:c||v})}));F.displayName="FormSelect";var C=F;const I=s.forwardRef((({bsPrefix:e,className:t,as:r="small",muted:n,...a},i)=>(e=(0,p.vE)(e,"form-text"),(0,u.jsx)(r,{...a,ref:i,className:o()(t,e,n&&"text-muted")}))));I.displayName="FormText";var P=I;const M=s.forwardRef(((e,t)=>(0,u.jsx)(g,{...e,ref:t,type:"switch"})));M.displayName="Switch";var D=Object.assign(M,{Input:g.Input,Label:g.Label});const $=s.forwardRef((({bsPrefix:e,className:t,children:r,controlId:n,label:a,...i},s)=>(e=(0,p.vE)(e,"form-floating"),(0,u.jsxs)(w,{ref:s,className:o()(t,e),controlId:n,...i,children:[r,(0,u.jsx)("label",{htmlFor:n,children:a})]}))));$.displayName="FloatingLabel";var L=$;const B={_ref:i().any,validated:i().bool,as:i().elementType},U=s.forwardRef((({className:e,validated:t,as:r="form",...n},a)=>(0,u.jsx)(r,{...n,ref:a,className:o()(e,t&&"was-validated")})));U.displayName="Form",U.propTypes=B;var Z=Object.assign(U,{Group:w,Control:E,Floating:S,Check:g,Switch:D,Label:R,Text:P,Range:k,Select:C,FloatingLabel:L})},54722:function(e,t,r){r.d(t,{Z:function(){return de}});var n,o=r(95685),a=r.n(o),i=r(14473),s=r(94278),u=r(79779),c=r(92324);function l(e){if((!n&&0!==n||e)&&s.Z){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),n=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return n}var f=r(32735),d=r(65456),p=r(72080),v=r(49719),h=r(23438);function y(e){void 0===e&&(e=(0,u.Z)());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}var m=r(47490),b=r(75476),g=r(12788),j=r(399);var E=r(16608),_=r(47597),S=r(11858);const O=(0,r(27445).PB)("modal-open");var w=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:r=!1}={}){this.handleContainerOverflow=t,this.isRTL=r,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",n=this.getElement();e.style={overflow:n.style.overflow,[r]:n.style[r]},e.scrollBarWidth&&(t[r]=`${parseInt((0,S.Z)(n,r)||"0",10)+e.scrollBarWidth}px`),n.setAttribute(O,""),(0,S.Z)(n,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(O),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},x=r(19979),T=r(9418),A=r(52622),R=r(76e3),N=r(74512);const k=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let F;const C=(0,f.forwardRef)(((e,t)=>{let{show:r=!1,role:n="dialog",className:o,style:a,children:i,backdrop:u=!0,keyboard:c=!0,onBackdropClick:l,onEscapeKeyDown:d,transition:p,runTransition:v,backdropTransition:h,runBackdropTransition:S,autoFocus:O=!0,enforceFocus:C=!0,restoreFocus:I=!0,restoreFocusOptions:P,renderDialog:M,renderBackdrop:D=e=>(0,N.jsx)("div",Object.assign({},e)),manager:$,container:L,onShow:B,onHide:U=()=>{},onExit:Z,onExited:V,onExiting:z,onEnter:W,onEntering:H,onEntered:G}=e,K=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,k);const q=(0,T.Z)(),Y=(0,x.Z)(L),J=function(e){const t=(0,T.Z)(),r=e||function(e){return F||(F=new w({ownerDocument:null==e?void 0:e.document})),F}(t),n=(0,f.useRef)({dialog:null,backdrop:null});return Object.assign(n.current,{add:()=>r.add(n.current),remove:()=>r.remove(n.current),isTopModal:()=>r.isTopModal(n.current),setDialogRef:(0,f.useCallback)((e=>{n.current.dialog=e}),[]),setBackdropRef:(0,f.useCallback)((e=>{n.current.backdrop=e}),[])})}($),Q=(0,j.Z)(),X=(0,E.Z)(r),[ee,te]=(0,f.useState)(!r),re=(0,f.useRef)(null);(0,f.useImperativeHandle)(t,(()=>J),[J]),s.Z&&!X&&r&&(re.current=y(null==q?void 0:q.document)),r&&ee&&te(!1);const ne=(0,_.Z)((()=>{if(J.add(),ce.current=(0,b.Z)(document,"keydown",se),ue.current=(0,b.Z)(document,"focus",(()=>setTimeout(ae)),!0),B&&B(),O){var e,t;const r=y(null!=(e=null==(t=J.dialog)?void 0:t.ownerDocument)?e:null==q?void 0:q.document);J.dialog&&r&&!(0,m.Z)(J.dialog,r)&&(re.current=r,J.dialog.focus())}})),oe=(0,_.Z)((()=>{var e;J.remove(),null==ce.current||ce.current(),null==ue.current||ue.current(),I&&(null==(e=re.current)||null==e.focus||e.focus(P),re.current=null)}));(0,f.useEffect)((()=>{r&&Y&&ne()}),[r,Y,ne]),(0,f.useEffect)((()=>{ee&&oe()}),[ee,oe]),function(e){const t=function(e){const t=(0,f.useRef)(e);return t.current=e,t}(e);(0,f.useEffect)((()=>()=>t.current()),[])}((()=>{oe()}));const ae=(0,_.Z)((()=>{if(!C||!Q()||!J.isTopModal())return;const e=y(null==q?void 0:q.document);J.dialog&&e&&!(0,m.Z)(J.dialog,e)&&J.dialog.focus()})),ie=(0,_.Z)((e=>{e.target===e.currentTarget&&(null==l||l(e),!0===u&&U())})),se=(0,_.Z)((e=>{c&&(0,R.kl)(e)&&J.isTopModal()&&(null==d||d(e),e.defaultPrevented||U())})),ue=(0,f.useRef)(),ce=(0,f.useRef)();if(!Y)return null;const le=Object.assign({role:n,ref:J.setDialogRef,"aria-modal":"dialog"===n||void 0},K,{style:a,className:o,tabIndex:-1});let fe=M?M(le):(0,N.jsx)("div",Object.assign({},le,{children:f.cloneElement(i,{role:"document"})}));fe=(0,A.sD)(p,v,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:Z,onExiting:z,onExited:(...e)=>{te(!0),null==V||V(...e)},onEnter:W,onEntering:H,onEntered:G,children:fe});let de=null;return u&&(de=D({ref:J.setBackdropRef,onClick:ie}),de=(0,A.sD)(h,S,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:de})),(0,N.jsx)(N.Fragment,{children:g.createPortal((0,N.jsxs)(N.Fragment,{children:[de,fe]}),Y)})}));C.displayName="Modal";var I=Object.assign(C,{Manager:w}),P=r(31411),M=r(30720);function D(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const $=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",L=".sticky-top",B=".navbar-toggler";class U extends w{adjustAndStore(e,t,r){const n=t.style[e];t.dataset[e]=n,(0,S.Z)(t,{[e]:`${parseFloat((0,S.Z)(t,e))+r}px`})}restore(e,t){const r=t.dataset[e];void 0!==r&&(delete t.dataset[e],(0,S.Z)(t,{[e]:r}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var r,n;if(n="modal-open",(r=t).classList?r.classList.add(n):(0,P.Z)(r,n)||("string"==typeof r.className?r.className=r.className+" "+n:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+n)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";(0,M.Z)(t,$).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),(0,M.Z)(t,L).forEach((t=>this.adjustAndStore(a,t,-e.scrollBarWidth))),(0,M.Z)(t,B).forEach((t=>this.adjustAndStore(a,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var r,n;n="modal-open",(r=t).classList?r.classList.remove(n):"string"==typeof r.className?r.className=D(r.className,n):r.setAttribute("class",D(r.className&&r.className.baseVal||"",n));const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";(0,M.Z)(t,$).forEach((e=>this.restore(o,e))),(0,M.Z)(t,L).forEach((e=>this.restore(a,e))),(0,M.Z)(t,B).forEach((e=>this.restore(a,e)))}}let Z;var V=r(29724),z=r(46304);const W=f.forwardRef((({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=(0,z.vE)(t,"modal-body"),(0,N.jsx)(r,{ref:o,className:a()(e,t),...n}))));W.displayName="ModalBody";var H=W,G=f.createContext({onHide(){}});const K=f.forwardRef((({bsPrefix:e,className:t,contentClassName:r,centered:n,size:o,fullscreen:i,children:s,scrollable:u,...c},l)=>{const f=`${e=(0,z.vE)(e,"modal")}-dialog`,d="string"==typeof i?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return(0,N.jsx)("div",{...c,ref:l,className:a()(f,t,o&&`${e}-${o}`,n&&`${f}-centered`,u&&`${f}-scrollable`,i&&d),children:(0,N.jsx)("div",{className:a()(`${e}-content`,r),children:s})})}));K.displayName="ModalDialog";var q=K;const Y=f.forwardRef((({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=(0,z.vE)(t,"modal-footer"),(0,N.jsx)(r,{ref:o,className:a()(e,t),...n}))));Y.displayName="ModalFooter";var J=Y,Q=r(60216),X=r.n(Q);const ee={"aria-label":X().string,onClick:X().func,variant:X().oneOf(["white"])},te=f.forwardRef((({className:e,variant:t,"aria-label":r="Close",...n},o)=>(0,N.jsx)("button",{ref:o,type:"button",className:a()("btn-close",t&&`btn-close-${t}`,e),"aria-label":r,...n})));te.displayName="CloseButton",te.propTypes=ee;var re=te,ne=f.forwardRef((({closeLabel:e="Close",closeVariant:t,closeButton:r=!1,onHide:n,children:o,...a},i)=>{const s=(0,f.useContext)(G),u=(0,d.Z)((()=>{null==s||s.onHide(),null==n||n()}));return(0,N.jsxs)("div",{ref:i,...a,children:[o,r&&(0,N.jsx)(re,{"aria-label":e,variant:t,onClick:u})]})}));const oe=f.forwardRef((({bsPrefix:e,className:t,closeLabel:r="Close",closeButton:n=!1,...o},i)=>(e=(0,z.vE)(e,"modal-header"),(0,N.jsx)(ne,{ref:i,...o,className:a()(t,e),closeLabel:r,closeButton:n}))));oe.displayName="ModalHeader";var ae=oe;const ie=f.forwardRef(((e,t)=>(0,N.jsx)("div",{...e,ref:t,className:a()(e.className,"h4")})));const se=f.forwardRef((({className:e,bsPrefix:t,as:r=ie,...n},o)=>(t=(0,z.vE)(t,"modal-title"),(0,N.jsx)(r,{ref:o,className:a()(e,t),...n}))));se.displayName="ModalTitle";var ue=se;function ce(e){return(0,N.jsx)(V.Z,{...e,timeout:null})}function le(e){return(0,N.jsx)(V.Z,{...e,timeout:null})}const fe=f.forwardRef((({bsPrefix:e,className:t,style:r,dialogClassName:n,contentClassName:o,children:y,dialogAs:m=q,"data-bs-theme":b,"aria-labelledby":g,"aria-describedby":j,"aria-label":E,show:_=!1,animation:S=!0,backdrop:O=!0,keyboard:w=!0,onEscapeKeyDown:x,onShow:T,onHide:A,container:R,autoFocus:k=!0,enforceFocus:F=!0,restoreFocus:C=!0,restoreFocusOptions:P,onEntered:M,onExit:D,onExiting:$,onEnter:L,onEntering:B,onExited:V,backdropClassName:W,manager:H,...K},Y)=>{const[J,Q]=(0,f.useState)({}),[X,ee]=(0,f.useState)(!1),te=(0,f.useRef)(!1),re=(0,f.useRef)(!1),ne=(0,f.useRef)(null),[oe,ae]=(0,f.useState)(null),ie=(0,p.Z)(Y,ae),se=(0,d.Z)(A),ue=(0,z.SC)();e=(0,z.vE)(e,"modal");const fe=(0,f.useMemo)((()=>({onHide:se})),[se]);function de(){return H||(Z||(Z=new U({isRTL:ue})),Z)}function pe(e){if(!s.Z)return;const t=de().getScrollbarWidth()>0,r=e.scrollHeight>(0,u.Z)(e).documentElement.clientHeight;Q({paddingRight:t&&!r?l():void 0,paddingLeft:!t&&r?l():void 0})}const ve=(0,d.Z)((()=>{oe&&pe(oe.dialog)}));(0,v.Z)((()=>{(0,c.Z)(window,"resize",ve),null==ne.current||ne.current()}));const he=()=>{te.current=!0},ye=e=>{te.current&&oe&&e.target===oe.dialog&&(re.current=!0),te.current=!1},me=()=>{ee(!0),ne.current=(0,h.Z)(oe.dialog,(()=>{ee(!1)}))},be=e=>{"static"!==O?re.current||e.target!==e.currentTarget?re.current=!1:null==A||A():(e=>{e.target===e.currentTarget&&me()})(e)},ge=(0,f.useCallback)((t=>(0,N.jsx)("div",{...t,className:a()(`${e}-backdrop`,W,!S&&"show")})),[S,W,e]),je={...r,...J};return je.display="block",(0,N.jsx)(G.Provider,{value:fe,children:(0,N.jsx)(I,{show:_,ref:ie,backdrop:O,container:R,keyboard:!0,autoFocus:k,enforceFocus:F,restoreFocus:C,restoreFocusOptions:P,onEscapeKeyDown:e=>{w?null==x||x(e):(e.preventDefault(),"static"===O&&me())},onShow:T,onHide:A,onEnter:(e,t)=>{e&&pe(e),null==L||L(e,t)},onEntering:(e,t)=>{null==B||B(e,t),(0,i.ZP)(window,"resize",ve)},onEntered:M,onExit:e=>{null==ne.current||ne.current(),null==D||D(e)},onExiting:$,onExited:e=>{e&&(e.style.display=""),null==V||V(e),(0,c.Z)(window,"resize",ve)},manager:de(),transition:S?ce:void 0,backdropTransition:S?le:void 0,renderBackdrop:ge,renderDialog:r=>(0,N.jsx)("div",{role:"dialog",...r,style:je,className:a()(t,e,X&&`${e}-static`,!S&&"show"),onClick:O?be:void 0,onMouseUp:ye,"data-bs-theme":b,"aria-label":E,"aria-labelledby":g,"aria-describedby":j,children:(0,N.jsx)(m,{...K,onMouseDown:he,className:n,contentClassName:o,children:y})})})})}));fe.displayName="Modal";var de=Object.assign(fe,{Body:H,Header:ae,Title:ue,Footer:J,Dialog:q,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150})},80247:function(e,t,r){var n=r(95685),o=r.n(n),a=r(32735),i=r(46304),s=r(74512);const u=a.forwardRef((({bsPrefix:e,variant:t,animation:r="border",size:n,as:a="div",className:u,...c},l)=>{const f=`${e=(0,i.vE)(e,"spinner")}-${r}`;return(0,s.jsx)(a,{ref:l,...c,className:o()(u,f,n&&`${f}-${n}`,t&&`text-${t}`)})}));u.displayName="Spinner",t.Z=u},8266:function(e){var t=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){var s,u,c,l=t(e),f=t(i);if(l&&f){if((u=e.length)!=i.length)return!1;for(s=u;0!=s--;)if(!a(e[s],i[s]))return!1;return!0}if(l!=f)return!1;var d=e instanceof Date,p=i instanceof Date;if(d!=p)return!1;if(d&&p)return e.getTime()==i.getTime();var v=e instanceof RegExp,h=i instanceof RegExp;if(v!=h)return!1;if(v&&h)return e.toString()==i.toString();var y=r(e);if((u=y.length)!==r(i).length)return!1;for(s=u;0!=s--;)if(!n.call(i,y[s]))return!1;if(o&&e instanceof Element&&i instanceof Element)return e===i;for(s=u;0!=s--;)if(!("_owner"===(c=y[s])&&e.$$typeof||a(e[c],i[c])))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[416],{54096:function(e,t,n){n.d(t,{G:function(){return a}});var i=n(32735),r=n(21679);function a(e){var t,n;return t=e,n=r.u.getInstance(t),i.useEffect((function(){return function(){r.u.releaseInstance(t)}})),n}},77037:function(e,t,n){n.d(t,{q:function(){return l}});var i=n(32735),r=n(68003),a=n(88483),o=n(87013),c=n(85475),u=n(39396),s={avatar:"Gvwzj",dot:"JJHBJ"};function l(e){var t,n,l=!e.anonymiseUsers&&e.imageUrl||(t=e.imageCdnUrl,(n=e.initials)?o.j.createUrl(r._.safeUrlConcat(t,"/v1/profile-images?initials=".concat(n)),{size:a.h2.Small}):"");return i.createElement("div",{className:"position-relative h-100 w-100"},e.showAnonymousUser?i.createElement("div",{className:"".concat(s.avatar," ").concat((null==e?void 0:e.extraClasses)||""," bg-gray-700 text-light")},i.createElement(u.x,{svgName:c.vn.Anonymous,size:e.anonymousSvgSize||u.S.Large,className:"svg-container w-100 h-100"})):i.createElement("div",{className:"".concat(s.avatar," ").concat((null==e?void 0:e.extraClasses)||""),style:{backgroundImage:"url('".concat(l,"')")}}," "),e.showDot&&i.createElement("div",{className:"".concat(s.dot," rounded-circle bg-danger")}))}},41087:function(e,t,n){n.d(t,{C:function(){return b},g:function(){return s}});var i,r=n(32735),a=n(57857),o=n(39396),c=n(21326),u=n(50028);!function(e){e.Exchange="exchange",e.Streamable="streamable",e.MoviesAndTv="movies_and_tv",e.Twig="twig"}(i||(i={}));var s,l=n(27866),d=n(45428),v=n(85475),p=n(21974),m=n(6665),f=a.T.encloseNamespace("shared.badges");!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction",e.Source="source"}(s||(s={}));var g={xs:o.S.ExtraSmall,sm:o.S.Small,std:o.S.Standard,lg:o.S.Large},y={xs:"badge-xs",sm:"badge-sm",std:"badge-std",lg:"badge-lg"};function b(e){var t=e.type,n=e.data,a=e.size,b=void 0===a?"std":a;if(!function(e,t){var n,i;return"boolean"==typeof t?!!t:e===s.Rating?t&&!!t.value:e===s.Interactive?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===s.Captions?!!(null==t?void 0:t.length)||!!(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.length):e===s.Status?"number"==typeof t:!!t}(t,n))return r.createElement(r.Fragment,null);var h=function(e,t,n){var r,a=y[n],o="";if(e===s.DurationApproximate&&(o="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===s.DurationExact&&(o="duration-badge"),e===s.Interactive&&(o="interactive-badge"),e===s.Rating&&(o="rating-badge text-shadow ".concat(p.u.mapRatingToClass(t.value))),e===s.ProductionYear&&(o="production-year-badge text-shadow"),e===s.Captions)return"p-0";if(e===s.Status)return"badge ".concat(function(e){switch(e){case u.X.Published:return"bg-success";case u.X.Archived:case u.X.Rejected:return"bg-danger";case u.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case u.X.Pending:case u.X.Processing:return"bg-warning"}}(t));if(e===s.Trending)return"trending-badge px-1 d-flex align-items-center ".concat(a);if(e===s.Count&&(o="count-badge px-1 rounded"),e===s.Restriction){var c=d.l.mapRestrictionToClass(t.restrictions);return"restriction-badge rounded-pill px-2 d-flex align-items-center ".concat(c)}return e===s.Source&&(o=(r=t).includes(i.Streamable)?"px-1 text-nowrap d-flex align-items-center ".concat(m.Z.streamable):r.includes(i.MoviesAndTv)?"bg-indigo text-white px-1 text-nowrap d-flex align-items-center":r.includes(i.Exchange)?"bg-orange text-white px-1 text-nowrap d-flex align-items-center":r.includes(i.Twig)?"bg-pink text-white px-1 text-nowrap d-flex align-items-center":""),"".concat("badge"," ").concat(o)}(t,n,b);h="".concat(h," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var C=function(e,t,n){if(e===s.Interactive)return f("interactive");if(e===s.DurationApproximate)return l.T.ToDisplayDurationNewStyle(t);if(e===s.DurationExact)return l.T.ToDisplayDuration(t);if(e===s.Rating)return t.code;if(e===s.ProductionYear)return t;if(e===s.Captions)return r.createElement(o.x,{svgName:v.vn.CloseCaptionBadge});if(e===s.Status)return u.X[t];if(e===s.Trending)return r.createElement(r.Fragment,null,r.createElement(o.x,{svgName:v.vn.Trending,size:g[n]}),r.createElement("span",{className:"ps-1"},t));if(e===s.Count)return t;if(e===s.Restriction)return r.createElement(r.Fragment,null,r.createElement(o.x,{svgName:d.l.mapRestrictionToSvg(t.restrictions)}),r.createElement("span",null,d.l.mapRestrictionToText(t.restrictions,t.yearGroups)));if(e===s.Source){var a=t;return a.includes(i.Streamable)?"streamable":a.includes(i.MoviesAndTv)?"movies + tv":a.includes(i.Exchange)?"exchange":a.includes(i.Twig)?"twig":"-"}}(t,n,b),w=function(e,t){return e===s.Rating?{title:t.name,placement:"top"}:null}(t,n),I=e.inline&&"d-inline-block";return w?r.createElement("div",{className:"badge-wrapper d-inline"},r.createElement(c.u,Object.assign({},w,{spanHack:!0,spanHackClassName:I}),r.createElement("span",{className:h},C))):r.createElement("span",{className:"".concat(h," badge-wrapper")},C)}},44550:function(e,t,n){n.d(t,{c:function(){return a}});var i=n(32735),r=n(6665);function a(e){var t="d-flex align-items-center badge-list ".concat(r.Z.minHeight);return e.className&&(t+=" ".concat(e.className)),i.createElement("div",{className:t},e.children)}},90547:function(e,t,n){var i;n.d(t,{r:function(){return i}}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(i||(i={}))},34254:function(e,t,n){var i;n.d(t,{r:function(){return i}}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(i||(i={}))},86257:function(e,t,n){var i;n.d(t,{L:function(){return i}}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(i||(i={}))},87648:function(e,t,n){var i;n.d(t,{c:function(){return i}}),function(e){e.Custom="custom",e.User="year_group"}(i||(i={}))},90335:function(e,t,n){var i;n.d(t,{D:function(){return i}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series",e.ProductionYear="production_year"}(i||(i={}))},332:function(e,t,n){n.d(t,{e:function(){return c}});var i=n(2248),r=n(68003),a=n(84657),o=n(34254),c={clip:function(e,t){return{key:"clip:".concat(e,":").concat(t),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.CLIP,permissionFilterOption:t})}},videoClips:function(e,t,n){return{key:"video:".concat(e,":clips:").concat(t,":").concat(n),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e,"/clips"),{query:a.v.CLIP_COLLECTION,permissionFilterOption:t,cursor:n})}},clipWithAllInteractives:function(e,t){return{key:"clip:".concat(e,":").concat(t,":interactives"),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"".concat(a.v.CLIP,",interactives{status:[0,1]}"),permissionFilterOption:t}),normalize:!1}},publicClip:function(e,t,n,i){return{key:"clip:".concat(e,":public:").concat(t),url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo,_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),bootstrapName:"shared:object:".concat(e),success:n,error:i}},sharedClip:function(e,t,n,i){return{key:"shared:clip:".concat(e),url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.CLIP}),success:n,error:i}},createClip:function(e,t,n,r,a){return{key:"create:clip",url:"{gateway}/v1/objects/".concat(e,"/clips"),data:t,type:i.k.POST,invalidationKeys:["videos:".concat(e),"my:videos"],success:n,error:r,always:a}},updateClip:function(e,t,n,r,a){return{key:"update:clip",url:"{gateway}/v1/objects/".concat(e),data:t,type:i.k.PUT,success:n,error:r,always:a}},deleteClip:function(e,t,n,r,a){return{key:"delete:clip",url:"{gateway}/v1/objects/".concat(e),type:i.k.DELETE,invalidationKeys:["videos:".concat(t),"my:videos","videos"],success:n,error:r,always:a}}}},91432:function(e,t,n){n.d(t,{b:function(){return c}});var i=n(2248),r=n(68003),a=n(84657),o=n(34254),c={interactiveMetadata:function(e,t){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.INTERACTIVE,permissionFilterOption:t}),key:"interactive:metadata:".concat(e,":").concat(t)}},videoInteractives:function(e,t,n){return{key:"video:".concat(e,":interactives:").concat(t,":").concat(n),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e,"/interactives"),{query:a.v.INTERACTIVE_COLLECTION,cursor:n}),publicUrl:r._.urlBuilder("/api/objects/".concat(e,"/interactives"),{query:a.v.INTERACTIVE_COLLECTION,cursor:n})}},sharedInteractiveMetadata:function(e,t,n,i){return{url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.INTERACTIVE}),key:"shared:interactive:metadata:".concat(e),success:n,error:i}},publicInteractiveMetadata:function(e,t,n,i){return{url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo[rating],_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),key:"interactive:metadata:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:i}},interactive:function(e){return{url:"/api/domain/v1/interactives/".concat(e),key:"interactive:".concat(e),normalize:!1}},createInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives",key:"create:interactive",type:i.k.POST,invalidationKeys:["my:videos"],data:e,success:t,error:n}},createInteractiveMetadata:function(e,t,n,r){return{url:"{gateway}/v1/objects/".concat(e,"/interactives"),key:"create:interactive:metadata",type:i.k.POST,data:t,success:n,error:r}},updateInteractive:function(e,t,n,r){return{url:"/api/domain/v1/interactives/".concat(e),key:"update:interactive",type:i.k.PUT,data:t,success:n,error:r,formatData:function(){return t}}},updateInteractiveMetadata:function(e,t,n,r){return{url:"{gateway}/v1/objects/".concat(e),key:"update:interactive:metadata",type:i.k.PUT,data:t,success:n,error:r}},interactiveResultSet:function(e,t){return{url:"/api/domain/v1/analytics/interactives/".concat(e,"/metadata/").concat(t),key:"interactive:result:set:".concat(e,":").concat(t)}},copyInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives/".concat(e,"/copy"),key:"copy:interactive",type:i.k.POST,invalidationKeys:["interactive:".concat(e),"my:videos"],success:t,error:n}},deleteInteractiveMetadata:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:interactive",type:i.k.DELETE,invalidationKeys:["interactive:".concat(e),"my:videos","videos"],success:t,error:n}},removeInteractiveMetadata:function(e){var t=e.libraryId,n=e.categoryId,a=e.interactiveMetadataId;return{url:r._.urlBuilder("/api/domain/v1/libraries/".concat(t,"/videos"),{categoryId:n,videoIds:a}),key:"remove:interactive:metadata:".concat(a),type:i.k.DELETE,invalidationKeys:["interactive:".concat(a),"my:videos","videos"]}},contributeToCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:i.k.POST}},revokefromCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:i.k.DELETE}},isContributed:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contributed"),key:"iscontributed:".concat(e),normalize:!1}},updateInteraction:function(e){return{url:"/api/domain/v1/interactions/bulk/".concat(e.id),key:"contribute:interactive",data:e,type:i.k.PUT,invalidationKeys:["interactive:".concat(e.interactiveId)]}}}},77131:function(e,t,n){n.d(t,{R:function(){return f}});var i,r=n(2248),a=n(68003),o=n(84657),c=n(50028),u=n(74421),s=n(34254);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget",e.Folder="category",e.CategoryTree="categoryTree"}(i||(i={}));var l=n(15970),d=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:o.v.VIDEO})},v=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating,libraries{typeId:[17]}",permissionFilterOption:s.r.StripMetadata,shareId:t})},p=function(e){return a._.urlBuilder("{gateway}/v1/objects",{"query.video":o.v.VIDEO_COLLECTION,"query.clip":o.v.CLIP_COLLECTION,"query.interactive":o.v.INTERACTIVE_COLLECTION,id:e})},m=function(e){var t=e.videoId,n=e.context,r=e.collectionId,c=e.moviesAndTv,u={videoId:t,limit:e.limit,query:o.v.VIDEO_COLLECTION};return n&&(n===i.Widget?u["context.widgetId"]=r:(u["context.collectionType"]=n,u["context.collectionId"]=r)),c&&(u["context.moviesAndTv"]=!0),a._.urlBuilder("{gateway}/v1/suggestions/related-videos",u)},f={video:function(e,t){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:o.v.VIDEO,permissionFilterOption:t}),publicUrl:a._.urlBuilder("/api/objects/".concat(e),{query:o.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t)}},publicVideo:function(e,t,n,i){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:i}},sharedVideo:function(e,t,n,i){return{url:d(e,t),key:"shared:video:".concat(e),success:n,error:i}},myVideos:function(e,t){var n=o.v.VIDEO_COLLECTION,i=o.v.CLIP_COLLECTION,r=o.v.INTERACTIVE,l="videos[".concat(n,"]{libraries.typeid:").concat(u.E.WorkspaceCollection,"}"),d="clips[".concat(i,"]"),v="interactives[".concat(r,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),p={query:"(".concat(l,"|").concat(d,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:s.r.StripMetadata};return t&&(p.cursor=t),{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),p),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:p(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:p(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,n,i,a){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:r.k.PUT,data:t,success:n,error:i,always:a}},videoRatings:function(e,t){var n=e.map((function(e){return"id=".concat(e)}));if(n.length)return{url:"/api/domain/v2/objects?query=rating&".concat(n.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},videoMixinAssocs:function(e,t){if(e.map((function(e){return"id=".concat(e)})).length)return{url:a._.urlBuilder("{gateway}/v1/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},_hasCurriculumLinks",id:e}),publicUrl:a._.urlBuilder("/api/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},_hasCurriculumLinks",id:e}),key:"video:mixin:assocs:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(u.E.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video:".concat(e),type:r.k.DELETE,success:t,error:n,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,n,i,a){var o=e.map((function(e){return"videoIds=".concat(e)})).join("&"),c=["categoryId=".concat(n),"".concat(o)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(c),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(n),type:r.k.DELETE,success:i,error:a,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,n=e.context,i=e.collectionId,r=e.moviesAndTv;return{url:m(e),key:"related:videos:".concat(t,":").concat(n,":").concat(i,":").concat(r)}},collectionVideos:function(e,t,n,i,r,u){var d=l.d.getVideoSortParam(t),v=o.v.VIDEO_COLLECTION,p=o.v.CLIP_COLLECTION,m=o.v.INTERACTIVE,f="videos[".concat(v,"]"),g="clips[".concat(p,"]"),y="interactives[".concat(m,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),b=Object.assign({query:"(".concat(f,"|").concat(g,"|").concat(y,")").concat(d?"{".concat(d,"}"):""),permissionFilterOption:s.r.FilterOut},n?{cursor:n}:{}),h=["folder","videos",e,n,t].filter((function(e){return!!e})).join(":");return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),b),key:h,success:i,error:r,always:u}},pointsOfInterest:function(e,t,n,i,r){var o={query:"{limit:100}",cursor:t};return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),o),publicUrl:a._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),o),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:n,error:i,always:r}},regionAlternatives:function(e,t,n,i){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:n,always:i}}}},2491:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(92159),r=n(21186),a=n(54096);function o(){var e=(0,a.G)(i.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:r.NK.Warning,heading:r.R6.Warning,message:t})},info:function(t,n){e.createAlert({heading:t,message:n,type:r.NK.Info})}}}},38e3:function(e,t,n){n.d(t,{G:function(){return r}});var i=n(74421),r={isType:function(e,t){var n;return(null==e?void 0:e.typeId)?e.typeId===t:(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.toLowerCase())===i.E[t].toLowerCase()},isResource:function(e){return r.isType(e,i.E.Resource)},isClassification:function(e){return"Subject"===e.type}}},45428:function(e,t,n){n.d(t,{l:function(){return f}});var i=n(57857),r=n(10657),a=n(6665),o=n(87648),c=n(85475);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=i.T.encloseNamespace("shared.shared-utils"),d=s(s({},o.c.Custom,a.Z.restrictionBadgeCustom),o.c.User,a.Z.restrictionBadgeUser),v=s(s({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),p=s(s({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),m=s(s({},o.c.Custom,200),o.c.User,100),f={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var n=f.getWeightedRestriction(e.value);return d[n.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var n=f.getWeightedRestriction(e.value);return v[n.type]},mapRestrictionToText:function(e,t){var n;if(!(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.length)||!(null==t?void 0:t.length))return"";var i=f.getWeightedRestriction(e.value),r=t.find((function(e){return e.value===i.yearGroup})),a=p[i.type];if(i.type===o.c.User)return null===i.yearGroup?l("restrictionStaff"):r?1===t.length?l("restrictionStudents"):l(a,{yearGroup:r.name}):"";if(i.type===o.c.Custom){var c=f.getRestrictionDuration(i);return c?l(a,{duration:c,smartCount:c}):l("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(null==e?void 0:e.length)return 1===e.length?e[0]:e.reduce((function(e,n){var i=m[e.type],r=m[n.type];return"highest"===t&&i>r||"lowest"===t&&i<r?e:n}))},getRestrictionByType:function(e,t){if(!f.hasRestrictions(e))return null;var n=Array.isArray(t)?t:[t],i=e._restrictions.value.filter((function(e){return n.includes(e.type)}));return f.getWeightedRestriction(i)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=r.O.convertUTCToLocal(e.expiresOn);if(t)return r.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!f.getRestrictionByType(e,[o.c.Custom])},hasRestrictions:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===n?void 0:n.length)}}},21974:function(e,t,n){n.d(t,{u:function(){return l}});var i=n(57857),r=n(75459),a=n(86257),o=n(85475);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="shared.shared-utils",l={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-blue";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case r.r.HostedLibrary:case r.r.CustomLibrary:return e.name;case r.r.Exchange:return i.T.getPhrase(s,"exchange");case r.r.Workspace:return i.T.getPhrase(s,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case r.r.HostedLibrary:case r.r.CustomLibrary:return"bg-blue";case r.r.Exchange:return"bg-green";case r.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t=u(u(u(u(u(u(u({},a.L.Pdf,o.vn.FilePDF),a.L.Image,o.vn.FileImg),a.L.PowerPoint,o.vn.FilePowerpoint),a.L.Document,o.vn.FileWord),a.L.Excel,o.vn.FileExcel),a.L.Zip,o.vn.FileZip),a.L.File,o.vn.File)[e];return t||(t=o.vn.Folder),t},mapTypeToClass:function(e){switch(e){case a.L.Pdf:return"icon-red";case a.L.Image:return"icon-purple";case a.L.Document:return"icon-blue";case a.L.Excel:return"icon-green";case a.L.PowerPoint:return"icon-orange";case a.L.Zip:return"icon-teal";case a.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case a.L.Pdf:return i.T.getPhrase(s,"pdf");case a.L.Image:return i.T.getPhrase(s,"image");case a.L.Document:return i.T.getPhrase(s,"document");case a.L.Excel:return i.T.getPhrase(s,"spreadsheet");case a.L.PowerPoint:return i.T.getPhrase(s,"presentation");case a.L.Zip:return i.T.getPhrase(s,"zipArchive");case a.L.File:return i.T.getPhrase(s,"file");default:return""}}}},11275:function(e,t,n){n.d(t,{M:function(){return b}});var i,r=n(11306),a=n(57857),o=n(31647),c=n(10657),u=n(70065);!function(e){e.Screenrights="screenrights",e.Era="era",e.ClickView="clickview"}(i||(i={}));var s=n(50028),l=n(74421),d=n(87648),v=n(332),p=n(91432),m=n(77131),f=n(45428),g=n(13034),y=a.T.encloseNamespace("shared.shared-utils"),b={isVideo:function(e){return(null==e?void 0:e.typeId)===l.E.Video},isClip:function(e){return(null==e?void 0:e.typeId)===l.E.Clip},isInteractive:function(e){return(null==e?void 0:e.typeId)===l.E.Interactive},isVideoTypeArchived:function(e){return(null==e?void 0:e.status)===s.X.Archived},isVideoType:function(e){return b.isVideo(e)||b.isInteractive(e)||b.isClip(e)},hasSeries:function(e){var t;return!!(null===(t=null==e?void 0:e.series)||void 0===t?void 0:t.id)},showVideoGuidance:function(e){return!e(g.C.StudentExperience)},showInteractivesGuidance:function(e){var t,n;return!(!e||b.isInteractive(e)||!(null===(n=null===(t=e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length))},showResourcesGuidance:function(e){var t,n,i,r;return!(!e||b.isInteractive(e)||!(((null===(n=null===(t=e.resources)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)||0)+((null===(r=null===(i=e.links)||void 0===i?void 0:i.data)||void 0===r?void 0:r.length)||0)))},getVideoProgress:function(e){var t,n;return(null==e?void 0:e.lastProgressPoint)?null==e?void 0:e.lastProgressPoint:(null===(t=null==e?void 0:e._videoProgress)||void 0===t?void 0:t.progress)?null===(n=null==e?void 0:e._videoProgress)||void 0===n?void 0:n.progress:0},getThumbnail:function(e){var t,n,i;return e?b.isVideo(e)?e.thumbnail:(null==e?void 0:e._thumbnail)?e._thumbnail:b.isClip(e)?e.thumbnail||(null===(t=e._parentVideo)||void 0===t?void 0:t.thumbnail):b.isInteractive(e)?(null===(n=e._parentVideo)||void 0===n?void 0:n.thumbnail)||(null===(i=e._parentClip)||void 0===i?void 0:i.thumbnail):void 0:null},getDuration:function(e){var t,n;if(e){if(b.isVideo(e))return e.duration;if(b.isInteractive(e)){if(null===(t=e._parentClip)||void 0===t?void 0:t.id)return 1e3*(e._parentClip.endTime-e._parentClip.startTime);if(null===(n=e._parentVideo)||void 0===n?void 0:n.duration)return e._parentVideo.duration}return b.isClip(e)?1e3*(e.endTime-e.startTime):void 0}},getAnalyticsEntity:function(e){return b.isVideo(e)?u.py.Video:b.isInteractive(e)?u.py.Interactive:b.isClip(e)?u.py.Clip:void 0},getAnalyticsData:function(e){var t,n,i,r,a,o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(b.isVideo(e))return Object.assign(Object.assign({},c||{}),{id:e.id,name:e.name});if(b.isClip(e)){var u=Object.assign(Object.assign({},c||{}),{id:e.id,name:e.name});return(null===(t=e._parentVideo)||void 0===t?void 0:t.id)&&(u.video={id:null===(n=e._parentVideo)||void 0===n?void 0:n.id,name:e._parentVideo.name}),u}var s=Object.assign(Object.assign({},c),{id:e.id,interactiveId:e.interactiveId,name:e.name,status:e.status,originType:e.originType});return(null===(i=null==e?void 0:e._parentClip)||void 0===i?void 0:i.id)&&(s.clip={id:null===(r=null==e?void 0:e._parentClip)||void 0===r?void 0:r.id,name:null==e?void 0:e._parentClip.name}),(null===(a=null==e?void 0:e._parentVideo)||void 0===a?void 0:a.id)&&(s.video={id:null===(o=null==e?void 0:e._parentVideo)||void 0===o?void 0:o.id,name:null==e?void 0:e._parentVideo.name}),s},getCanBeConsumed:function(e){var t,n;return e&&b.isVideoType(e)?e._canBeConsumed?{canNavigate:"login-required"===(null===(t=e._canBeConsumed)||void 0===t?void 0:t.reason)&&b.isVideo(e)||!0===e._canBeConsumed.value,canConsume:e._canBeConsumed.value,reason:null===(n=e._canBeConsumed)||void 0===n?void 0:n.reason}:{canNavigate:!0,canConsume:!0}:{canNavigate:!1,canConsume:!1}},getPrivacyReasoning:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=b.getCanBeConsumed(e),r=i.canConsume,a=i.canNavigate,o=i.reason,c=function(){return b.isClip(e)?y("clipLoginRequired"):b.isInteractive(e)?y("interactiveLoginRequired"):y("videoLoginRequired")};if(!r&&!a){if(n)return c();switch(o){case"rating-not-allowed":return y("ratingNotAllowed");case"video-deleted":return b.isClip(e)?y("clipParentDeleted"):b.isInteractive(e)?y("interactiveParentDeleted"):y("videoDeleted");case"clickview-private":return y("clickViewPrivate");case"private":default:return y("genericCannotAccess");case"login-required":return c();case"restricted-access":var u=f.l.getWeightedRestriction(null===(t=e._restrictions)||void 0===t?void 0:t.value);return(null==u?void 0:u.type)===d.c.Custom?y("awaitingApproval"):y("restrictedAccess")}}return b.isInteractive(e)&&e.status===s.X.Draft?y("draftInteractive"):""},getTitle:function(e){if(e.name)return b.isInteractive(e)&&e.status===s.X.Draft?y("draftInteractiveTitle",{name:e.name}):e.name;var t=b.getCanBeConsumed(e),n=t.canConsume,i=t.reason;return y(n||"private"!==i?n||"video-deleted"!==i?"privateVideo":"videoUnavailable":"privateVideo")},getParentVideo:function(e){return b.isVideo(e)?e:b.isClip(e)||b.isInteractive(e)?e._parentVideo:void 0},getRating:function(e){var t;return b.isVideo(e)?e.rating:null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t.rating},getVideoRequest:function(e,t,n){if(n){switch(t){case l.E.Video:return m.R.sharedVideo(e,n);case l.E.Clip:return v.e.sharedClip(e,n);case l.E.Interactive:return p.b.sharedInteractiveMetadata(e,n)}o.Q.Ry.throw(new r.H("Unsupported master type"))}switch(t){case l.E.Video:return m.R.video(e);case l.E.Clip:return v.e.clip(e);case l.E.Interactive:return p.b.interactiveMetadata(e)}o.Q.Ry.throw(new r.H("Unsupported master type"))},isBroadcast:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.contentLicences)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.systemName===i.Era||e.systemName===i.Screenrights})))},getReleaseDate:function(e){return e&&e.dateReleased&&b.isBroadcast(e)?c.O.format(e.dateReleased,"DD/MM/YYYY"):""},canViewOriginalVideo:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t._canBeConsumed)||void 0===n?void 0:n.value)},getTrackingCode:function(e){return b.isVideo(e)?e.trackingCode:b.isClip(e)||b.isInteractive(e)?e._parentVideo.trackingCode:void 0},isInExchange:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.libraries)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.typeId===l.E.ExchangeCollection})))},canViewUploadDate:function(e){return!(!e||!e.dateCreated||!e._isClickViewCurated||e._isClickViewCurated.value)}}},15970:function(e,t,n){n.d(t,{d:function(){return o}});var i=n(4705),r=n(90335),a=r.D.RecentlyAdded,o={getValidSortTypeFromParam:function(e){return Object.values(r.D).includes(e)?e:r.D.Newest},getOrSetSortType:function(e,t,n,r){var o=function(e,t){return"".concat(t?"".concat(t,":"):"","video:sort:").concat(e)}(e,r);return!t&&i.SG.cacheExists(o)||i.SG.cacheSet(o,t||n||a),t||(t=i.SG.cacheGet(o)),t},getVideoSortParam:function(e){switch(e){case r.D.AtoZ:return"orderby:name";case r.D.ZtoA:return"orderbydesc:name";case r.D.Newest:return"orderbydesc:datecreated";case r.D.Oldest:return"orderby:datecreated";case r.D.RecentlyAdded:return"orderbydesc:timestamp";case r.D.Series:return"orderby:seriessort";case r.D.ProductionYear:return"orderbydesc:productionyear";default:return}}}},6665:function(e,t){t.Z={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}}}]);
|