@clickview/library-editor 1.54.1-dev.0 → 1.55.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +3 -3
- package/dist/css/{2601-library-editor-8922d361d6.chunk.css → 2601-library-editor-df40499c04.chunk.css} +2 -2
- package/dist/css/{4001-library-editor-da87291909.chunk.css → 4001-library-editor-f6d2f9fb58.chunk.css} +1 -1
- package/dist/css/{9383-library-editor-02381b537c.chunk.css → 9383-library-editor-41fc3cc85e.chunk.css} +2 -2
- package/dist/css/{library-editor-app-08d619de95.css → library-editor-app-bcca987662.css} +1 -1
- package/dist/languages/en.json +4321 -1
- package/dist/scripts/101-8f41923234.chunk.js +1 -0
- package/dist/scripts/{1010-2c4e71bac2.chunk.js → 1010-4a381a84d4.chunk.js} +1 -1
- package/dist/scripts/{1086-d0efa1a0ca.chunk.js → 1086-7632f7b45b.chunk.js} +1 -1
- package/dist/scripts/112-4f413f94c0.chunk.js +1 -0
- package/dist/scripts/1216-83f6fbc7be.chunk.js +1 -0
- package/dist/scripts/{1269-ec70091b19.chunk.js → 1269-02d8d91784.chunk.js} +1 -1
- package/dist/scripts/{1409-f3fea6c3c3.chunk.js → 1409-58db6bd9f7.chunk.js} +1 -1
- package/dist/scripts/152-808e046b1f.chunk.js +2 -0
- package/dist/scripts/{1703-0e6940a3c0.chunk.js → 1703-45ced13ccd.chunk.js} +1 -1
- package/dist/scripts/{1832-9fd96d5efe.chunk.js → 1832-6a54b38248.chunk.js} +1 -1
- package/dist/scripts/{1876-fc815ba31e.chunk.js → 1876-e0567188b8.chunk.js} +1 -1
- package/dist/scripts/1973-7a1768228d.chunk.js +1 -0
- package/dist/scripts/2417-7628573bf3.chunk.js +1 -0
- package/dist/scripts/{243-d27b3c7903.chunk.js → 243-25fcce188c.chunk.js} +1 -1
- package/dist/scripts/2482-ded3090c15.chunk.js +1 -0
- package/dist/scripts/{259-d6a4aa6694.chunk.js → 259-e24fcf8f12.chunk.js} +1 -1
- package/dist/scripts/{2601-d42245cb40.chunk.js → 2601-944902ba08.chunk.js} +1 -1
- package/dist/scripts/{2644-cadc6531d6.chunk.js → 2644-98304e9394.chunk.js} +1 -1
- package/dist/scripts/2648-0a58c0fc05.chunk.js +1 -0
- package/dist/scripts/{2692-b7dff9da8a.chunk.js → 2692-1ddd87476e.chunk.js} +1 -1
- package/dist/scripts/2802-d428814c29.chunk.js +2 -0
- package/dist/scripts/2802-d428814c29.chunk.js.LICENSE.txt +8 -0
- package/dist/scripts/{2803-026f3af7cb.chunk.js → 2803-fbb9d2439d.chunk.js} +1 -1
- package/dist/scripts/{2888-a406bcd564.chunk.js → 2888-c2c8b859cd.chunk.js} +1 -1
- package/dist/scripts/299-1a0d6a88dc.chunk.js +1 -0
- package/dist/scripts/{2998-a3c3a1e950.chunk.js → 2998-aae0ec14de.chunk.js} +1 -1
- package/dist/scripts/{3400-326dc33968.chunk.js → 3400-ebc91cde7a.chunk.js} +1 -1
- package/dist/scripts/343-41502b5d24.chunk.js +1 -0
- package/dist/scripts/{35-d04a61537f.chunk.js → 35-68aa98885c.chunk.js} +1 -1
- package/dist/scripts/{3551-97ac416527.chunk.js → 3551-ad62e3a403.chunk.js} +1 -1
- package/dist/scripts/{3639-171b53e474.chunk.js → 3639-c5cc04c72d.chunk.js} +1 -1
- package/dist/scripts/3746-9c62c31099.chunk.js +1 -0
- package/dist/scripts/376-83584040a3.chunk.js +1 -0
- package/dist/scripts/{3763-21a9bc8c81.chunk.js → 3763-47619f0e54.chunk.js} +1 -1
- package/dist/scripts/3969-c636ff3159.chunk.js +1 -0
- package/dist/scripts/4001-a84ada264e.chunk.js +2 -0
- package/dist/scripts/4024-5bc8aa8dcd.chunk.js +1 -0
- package/dist/scripts/{4201-9f363cadea.chunk.js → 4201-ffd35af9cb.chunk.js} +1 -1
- package/dist/scripts/{4245-3680566469.chunk.js → 4245-59b4242cad.chunk.js} +1 -1
- package/dist/scripts/4523-55c4df85c8.chunk.js +1 -0
- package/dist/scripts/{4591-84bc2f21f0.chunk.js → 4591-78600e384c.chunk.js} +1 -1
- package/dist/scripts/{4860-7e9c7b578f.chunk.js → 4860-6001ab4e2a.chunk.js} +1 -1
- package/dist/scripts/5046-cb525612c6.chunk.js +1 -0
- package/dist/scripts/514-eeb95eba47.chunk.js +1 -0
- package/dist/scripts/{5173-6fe93f90b8.chunk.js → 5173-d333602893.chunk.js} +1 -1
- package/dist/scripts/{5286-c55bd5882c.chunk.js → 5286-7aac82c4d1.chunk.js} +1 -1
- package/dist/scripts/535-27d0457532.chunk.js +1 -0
- package/dist/scripts/{5412-abf3c7ab24.chunk.js → 5412-e2505df3a4.chunk.js} +1 -1
- package/dist/scripts/{5418-4cf3592f6a.chunk.js → 5418-f84d0ff359.chunk.js} +1 -1
- package/dist/scripts/{5424-fb9af4cac5.chunk.js → 5424-65be3c657c.chunk.js} +1 -1
- package/dist/scripts/5524-04583b6e40.chunk.js +1 -0
- package/dist/scripts/{5707-2455798bbe.chunk.js → 5707-fcb653aa7a.chunk.js} +1 -1
- package/dist/scripts/{5747-dc100fe944.chunk.js → 5747-674f00efcd.chunk.js} +1 -1
- package/dist/scripts/5850-74b0b14549.chunk.js +1 -0
- package/dist/scripts/5891-0864c38750.chunk.js +1 -0
- package/dist/scripts/{6093-c4d7d99258.chunk.js → 6093-e19df1d1fa.chunk.js} +1 -1
- package/dist/scripts/61-ec794cf02d.chunk.js +2 -0
- package/dist/scripts/{6352-9f5498c43f.chunk.js → 6352-6452f77c89.chunk.js} +1 -1
- package/dist/scripts/6532-48f3f080f5.chunk.js +2 -0
- package/dist/scripts/{6732-0223b7e084.chunk.js → 6732-85afd02f41.chunk.js} +1 -1
- package/dist/scripts/{6774-7d16e3a1b2.chunk.js → 6774-a002ac7253.chunk.js} +1 -1
- package/dist/scripts/{6788-1baf5483df.chunk.js → 6788-dc6b522995.chunk.js} +1 -1
- package/dist/scripts/6963-0e2bf1bde7.chunk.js +1 -0
- package/dist/scripts/7002-eef9319d36.chunk.js +1 -0
- package/dist/scripts/{7053-5f6f2bf8ee.chunk.js → 7053-35b82818eb.chunk.js} +1 -1
- package/dist/scripts/7071-6f7e375aaa.chunk.js +1 -0
- package/dist/scripts/708-c74c75f82a.chunk.js +1 -0
- package/dist/scripts/7153-57796cd98e.chunk.js +1 -0
- package/dist/scripts/{7190-b143292308.chunk.js → 7190-2b40df1e89.chunk.js} +1 -1
- package/dist/scripts/7295-474c754cb6.chunk.js +1 -0
- package/dist/scripts/{7376-e476873e22.chunk.js → 7376-e3bf3a94f9.chunk.js} +1 -1
- package/dist/scripts/{7408-eb04403233.chunk.js → 7408-15b5cc4a39.chunk.js} +1 -1
- package/dist/scripts/7827-ce63697325.chunk.js +1 -0
- package/dist/scripts/8113-d678e76098.chunk.js +1 -0
- package/dist/scripts/8130-0a0a9c4cab.chunk.js +1 -0
- package/dist/scripts/8213-14b105169f.chunk.js +1 -0
- package/dist/scripts/{8362-2712404025.chunk.js → 8362-267efdac61.chunk.js} +1 -1
- package/dist/scripts/8542-64733a5c92.chunk.js +1 -0
- package/dist/scripts/8591-149f4a2b62.chunk.js +1 -0
- package/dist/scripts/{8726-10013d1e22.chunk.js → 8726-2d0bc64637.chunk.js} +1 -1
- package/dist/scripts/{4506-e3e16c1c39.chunk.js → 8727-9077c2b877.chunk.js} +1 -1
- package/dist/scripts/{8762-0c818e61d0.chunk.js → 8762-be126e413d.chunk.js} +1 -1
- package/dist/scripts/{8906-3052c24e98.chunk.js → 8906-2ae58fb990.chunk.js} +1 -1
- package/dist/scripts/{8952-5dfd08cdc7.chunk.js → 8952-a9a7742f72.chunk.js} +2 -2
- package/dist/scripts/{9357-04700677af.chunk.js → 9357-e71ea6a34d.chunk.js} +1 -1
- package/dist/scripts/9369-1e706eb521.chunk.js +2 -0
- package/dist/scripts/9383-405d522f62.chunk.js +1 -0
- package/dist/scripts/{9695-8b46921478.chunk.js → 9695-636ea0ef64.chunk.js} +1 -1
- package/dist/scripts/{9927-1a5a65a341.chunk.js → 9927-7a935c955d.chunk.js} +1 -1
- package/dist/scripts/bundle-1a963db722.min.js +2 -0
- package/dist/scripts/bundle-1a963db722.min.js.LICENSE.txt +10 -0
- package/dist/scripts/{polyfills-e4d8584da7.min.js → polyfills-5ce436cbbe.min.js} +1 -1
- package/package.json +4 -5
- package/typings/libs/CVEvents.d.ts +13 -0
- package/typings/libs/CVLanguages.d.ts +24 -0
- package/typings/libs/LazyLoad.d.ts +30 -0
- package/typings/libs/LazyLoad.ts +27 -0
- package/typings/libs/cookiesjs.d.ts +24 -0
- package/dist/scripts/101-1aa755b98b.chunk.js +0 -1
- package/dist/scripts/1216-9d2e314558.chunk.js +0 -1
- package/dist/scripts/1537-2945b91924.chunk.js +0 -1
- package/dist/scripts/1973-074d4e72c2.chunk.js +0 -1
- package/dist/scripts/209-f9e52775b1.chunk.js +0 -1
- package/dist/scripts/2516-0290fc7712.chunk.js +0 -1
- package/dist/scripts/2639-efe1222211.chunk.js +0 -2
- package/dist/scripts/2639-efe1222211.chunk.js.LICENSE.txt +0 -8
- package/dist/scripts/2648-61a84bc983.chunk.js +0 -1
- package/dist/scripts/2955-521e238d27.chunk.js +0 -1
- package/dist/scripts/299-32a1391000.chunk.js +0 -1
- package/dist/scripts/3746-9f89d2e526.chunk.js +0 -1
- package/dist/scripts/376-4d9e8d5305.chunk.js +0 -1
- package/dist/scripts/3969-14f58e46c8.chunk.js +0 -1
- package/dist/scripts/4001-5f16bcaff3.chunk.js +0 -2
- package/dist/scripts/4024-e76b07c207.chunk.js +0 -1
- package/dist/scripts/4523-e918636e67.chunk.js +0 -1
- package/dist/scripts/471-9ae0a7d088.chunk.js +0 -2
- package/dist/scripts/4984-e55e0bfa17.chunk.js +0 -1
- package/dist/scripts/514-9e42f33112.chunk.js +0 -2
- package/dist/scripts/514-9e42f33112.chunk.js.LICENSE.txt +0 -6
- package/dist/scripts/535-96be75b325.chunk.js +0 -1
- package/dist/scripts/5524-83e92242a1.chunk.js +0 -1
- package/dist/scripts/5698-74d4a95cab.chunk.js +0 -1
- package/dist/scripts/5850-21711256a9.chunk.js +0 -1
- package/dist/scripts/5891-1f548b9c62.chunk.js +0 -1
- package/dist/scripts/61-35a4e0dd3d.chunk.js +0 -2
- package/dist/scripts/6637-3078ed12bc.chunk.js +0 -1
- package/dist/scripts/6725-52d65e0d02.chunk.js +0 -2
- package/dist/scripts/6963-2e5edf04ac.chunk.js +0 -1
- package/dist/scripts/7071-9ae15d6979.chunk.js +0 -1
- package/dist/scripts/7153-11798dda90.chunk.js +0 -1
- package/dist/scripts/7295-c5ccbfe2be.chunk.js +0 -1
- package/dist/scripts/7416-bafece2a3d.chunk.js +0 -1
- package/dist/scripts/7827-53c10fe9d7.chunk.js +0 -1
- package/dist/scripts/8080-540165cb5c.chunk.js +0 -1
- package/dist/scripts/8113-eb9901344c.chunk.js +0 -1
- package/dist/scripts/8213-4d11becb33.chunk.js +0 -1
- package/dist/scripts/8542-7dbc2fa676.chunk.js +0 -1
- package/dist/scripts/8591-920b0560e4.chunk.js +0 -1
- package/dist/scripts/8757-8ba60a3c5f.chunk.js +0 -2
- package/dist/scripts/8757-8ba60a3c5f.chunk.js.LICENSE.txt +0 -44
- package/dist/scripts/9077-fd1d054d31.chunk.js +0 -1
- package/dist/scripts/9134-8845590ece.chunk.js +0 -1
- package/dist/scripts/9369-cacc5f30e5.chunk.js +0 -2
- package/dist/scripts/9383-26ce3e3847.chunk.js +0 -1
- package/dist/scripts/bundle-5d010f1f12.min.js +0 -2
- package/dist/scripts/bundle-5d010f1f12.min.js.LICENSE.txt +0 -133
- /package/dist/css/{6637-library-editor-6a2d152d7d.chunk.css → 112-library-editor-6a2d152d7d.chunk.css} +0 -0
- /package/dist/css/{6725-library-editor-01b4461ff1.chunk.css → 152-library-editor-01b4461ff1.chunk.css} +0 -0
- /package/dist/css/{1537-library-editor-46f8e6e95b.chunk.css → 2417-library-editor-46f8e6e95b.chunk.css} +0 -0
- /package/dist/css/{209-library-editor-1b6dc45d45.chunk.css → 2482-library-editor-1b6dc45d45.chunk.css} +0 -0
- /package/dist/css/{2955-library-editor-d2f704c6a5.chunk.css → 343-library-editor-d2f704c6a5.chunk.css} +0 -0
- /package/dist/css/{9077-library-editor-765ea88cb0.chunk.css → 5046-library-editor-765ea88cb0.chunk.css} +0 -0
- /package/dist/css/{8080-library-editor-7ffe353138.chunk.css → 708-library-editor-7ffe353138.chunk.css} +0 -0
- /package/dist/css/{9134-library-editor-5a1c6fc3b4.chunk.css → 8130-library-editor-5a1c6fc3b4.chunk.css} +0 -0
- /package/dist/scripts/{6725-52d65e0d02.chunk.js.LICENSE.txt → 152-808e046b1f.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4001-5f16bcaff3.chunk.js.LICENSE.txt → 4001-a84ada264e.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{546-2cf4378b0c.chunk.js → 546-f770211173.chunk.js} +0 -0
- /package/dist/scripts/{61-35a4e0dd3d.chunk.js.LICENSE.txt → 61-ec794cf02d.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{471-9ae0a7d088.chunk.js.LICENSE.txt → 6532-48f3f080f5.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8952-5dfd08cdc7.chunk.js.LICENSE.txt → 8952-a9a7742f72.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9369-cacc5f30e5.chunk.js.LICENSE.txt → 9369-1e706eb521.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[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([[2955],{24828:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var o=["bg-pink","bg-orange"].concat(["bg-green","bg-cyan","bg-teal","bg-blue","bg-indigo","bg-purple"])},59054:function(e,t,n){"use strict";var o;n.d(t,{f:function(){return o}}),function(e){e.Share="share",e.MasterObject="masterobject"}(o||(o={}))},22231:function(e,t,n){"use strict";function o(e,t){return t[e.charCodeAt(0)%t.length]}n.d(t,{x:function(){return o}})},87002:function(e,t,n){"use strict";n.d(t,{Y:function(){return O}});var o=n(31647),i=n(70065),r=n(24828),a=n(22231),l=n(50997),c=n(93569),s=n(91439),u=(n(98001),n(6929)),f=n(51785),p=n(90743),d=n.n(p),y={folder:"cLuIF",actions:"vWWVi"};function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function b(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,m(o.key),o)}}function m(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}var O=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=g(t),function(e,t){if(t&&("object"==h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"name",get:function(){return"FolderItemComponent"}},{key:"template",get:function(){return d()}},{key:"className",get:function(){return"col-2 p-1 rounded position-relative"}},{key:"appLinks",get:function(){return{a:{application:l.OV.LIBRARY_EDITOR,action:l.eX.LibraryEditor.FOLDER,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{actions:{el:".actions-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:u.x,channelNames:[l.jr.VIDEO_DRAG_DROP,l.jr.FOLDER_DRAG_DROP],analyticsOptions:{location:"library"===this.options.location?i.LZ.LibraryTiles:i.LZ.SubFolderList}},{behaviorClass:s.u}]}},{key:"viewOptions",value:function(){var e=c.jw.createFolderThumbnailUrl(this.model.thumbnail);return{styles:y,imageUrl:e,backgroundColor:(0,a.x)(this.model.get("name"),r.o)}}},{key:"onRender",value:function(){this.showChildView("actions",new f.c({model:this.model,extraClasses:"".concat(y.actions," rounded-circle"),buttonClass:"text-light",analyticsOptions:{location:i.LZ.LibraryTiles},overrideClasses:!0}))}}])&&b(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},51785:function(e,t,n){"use strict";n.d(t,{c:function(){return I}});var o=n(31647),i=n(85475),r=n(60602),a=n(57857),l=n(52076),c=n(70065),s=n(71641),u=n(57098),f=n(58266),p=n.n(f);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function h(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}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 v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}var g=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=m(t),function(e,t){if(t&&("object"==d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return p()}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:a.T.getPhrase(this.lang,"addSubfolder"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:c.Vw.Create,entity:c.py.Folder,workflowPhase:c.eu.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:a.T.getPhrase(this.lang,"rename"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:c.Vw.Rename,entity:c.py.Folder,workflowPhase:c.eu.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:a.T.getPhrase(this.lang,"move"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:c.Vw.Move,entity:c.py.Folder,workflowPhase:c.eu.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:a.T.getPhrase(this.lang,"editImages"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:c.Vw.EditAssoc,entity:c.py.Folder,workflowPhase:c.eu.Start,descriptor:c.iF.Image}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:a.T.getPhrase(this.lang,"generatePdf"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:c.Vw.Create,entity:c.py.PDF,workflowPhase:c.eu.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:a.T.getPhrase(this.lang,"remove"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:c.Vw.Delete,entity:c.py.Folder,workflowPhase:c.eu.Start}),classes:"text-danger",appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new s.w({analyticsHelper:l.k,displayOptions:{alignment:"end"},channelName:this.channelName,collection:new o.Q.FE(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}}])&&y(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(o.Q.wA),w=n(26704),O=n.n(w);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function E(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,S(o.key),o)}}function S(e){var t=function(e){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:t+""}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}var I=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=j(t),function(e,t){if(t&&("object"==k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,C()?Reflect.construct(t,n||[],j(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof r.g)return"position-absolute ".concat(this.options.overrideClasses?"":"zHCsb"," ").concat(this.options.extraClasses," ")}},{key:"template",get:function(){return O()}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"renderFolderActions",value:function(){this.model instanceof r.g&&this.showChildView("items",new g({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof r.g,dropdownClass:"".concat("He1m9"," ").concat(this.options.buttonClass),svg:i.Nj.getSvg(i.vn.More)}}},{key:"onRender",value:function(){this.renderFolderActions()}}])&&E(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},27719:function(e,t,n){"use strict";n.r(t),n.d(t,{FolderView:function(){return mt},SeriesView:function(){return vt}});var o=n(99748),i=n(21679),r=n(57857),a=n(99249),l=n(31647),c=n(30644),s=n(59054),u=n(25692),f=n(47022),p=n(77502),d=n(98985),y=n(70763),h=n(58688),b=n(80867),m=n(57098),v=n(29457),g=n(83324),w=n(3059),O=n(60602),k=n(51174),E=n(48404),S=n(64649),C=n(19226),j=n(93569),P=n(70065),I=n(24828),T=n(22231),_=n(51785),R=n(85552),L=n.n(R),V=n(21625);function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function D(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,A(o.key),o)}}function A(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(B=function(){return!!e})()}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}var N=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=F(t),function(e,t){if(t&&("object"==x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,B()?Reflect.construct(t,n||[],F(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"BannerComponent"}},{key:"className",get:function(){var e=(0,T.x)(this.model.get("name"),I.o);return"px-3 position-relative rounded-top ".concat(V.Z.banner," ").concat(e)}},{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"attributes",get:function(){var e=j.jw.createBannerUrl(this.model.banner);return e?{style:"background-image: url('".concat(e,"')")}:null}},{key:"template",get:function(){return L()}},{key:"renderActions",value:function(){this.showChildView("options",new _.c({model:this.model,extraClasses:"".concat(V.Z.actions," rounded-circle me-2 mt-2"),buttonClass:"text-light",analyticsOptions:{location:P.LZ.Banner}}))}},{key:"onRender",value:function(){this.renderActions()}}])&&D(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(l.Q.wA),Q=n(4705),H=n(85475),U=n(87002),Y=n(73368),X=n.n(Y),z={svgContainer:"mMWNm",caretClosed:"Fe74o"};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 K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,$(o.key),o)}}function G(e,t,n){return t&&Z(e.prototype,t),n&&Z(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $(e){var t=function(e){if("object"!=W(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=W(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==W(t)?t:t+""}function q(e,t,n){return t=ee(t),function(e,t){if(t&&("object"==W(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,J()?Reflect.construct(t,n||[],ee(e).constructor):t.apply(e,n))}function J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(J=function(){return!!e})()}function ee(e){return ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ee(e)}function te(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}function ne(e,t){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ne(e,t)}var oe="has:expanded:library:folders",ie=function(e){function t(){return K(this,t),q(this,t,arguments)}return te(t,e),G(t,[{key:"name",get:function(){return"SubFoldersCollectionView"}},{key:"className",get:function(){return"row px-2"}},{key:"childView",get:function(){return U.Y}},{key:"childViewOptions",get:function(){return{location:"subfolder"}}}])}(l.Q.$W),re=function(e){function t(e){return K(this,t),q(this,t,[e])}return te(t,e),G(t,[{key:"initialize",value:function(){this.forceExpanded=this.options.forceExpanded||this.collection.length<=6,this.forceExpanded?this.isExpanded=!0:this.isExpanded=Q.SG.get(oe)||!1}},{key:"name",get:function(){return"SubFoldersView"}},{key:"className",get:function(){return"container-fluid pb-3"}},{key:"lang",get:function(){return"libraryEditor.subfolders"}},{key:"template",get:function(){return X()}},{key:"events",value:function(){return{"click .expand-toggle":"onClickExpandToggle"}}},{key:"regions",value:function(){return{subFolders:{replaceElement:!0,el:".subfolders-region"}}}},{key:"onClickExpandToggle",value:function(){this.options.forceExpanded||(this.isExpanded=!this.isExpanded,Q.SG.set(oe,this.isExpanded),this.render())}},{key:"viewOptions",value:function(){return{styles:z,caretSvg:H.Nj.getSvg(H.vn.Caret),isExpanded:this.isExpanded,forceExpanded:this.forceExpanded,caretClass:this.isExpanded?"":z.caretClosed,count:this.collection.length}}},{key:"onRender",value:function(){this.showChildView("subFolders",new ie({collection:this.isExpanded?this.collection:new l.Q.FE(this.collection.first(6))}))}}])}(l.Q.wA),ae=n(57085),le=n(8420),ce=n.n(le);function se(e){return se="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},se(e)}function ue(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,fe(o.key),o)}}function fe(e){var t=function(e){if("object"!=se(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=se(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==se(t)?t:t+""}function pe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pe=function(){return!!e})()}function de(e){return de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},de(e)}function ye(e,t){return ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ye(e,t)}var he=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=de(t),function(e,t){if(t&&("object"==se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pe()?Reflect.construct(t,n||[],de(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"VideoListHeaderComponent"}},{key:"template",get:function(){return ce()}},{key:"className",get:function(){return this.options.folder?"px-3 mb-3":"mb-3"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1}}}},{key:"renderBreadcrumbs",value:function(){this.options.folder&&this.options.libraries&&this.showChildView("breadcrumbs",new ae.n({folder:this.options.folder,libraries:this.options.libraries}))}},{key:"onBeforeRender",value:function(){return!!this.options.folder}},{key:"onRender",value:function(){this.renderBreadcrumbs()}}])&&ue(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(l.Q.wA),be=n(52076),me=n(50028),ve=n(71641),ge=n(40622),we=n(34670),Oe=n.n(we);function ke(e){return ke="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},ke(e)}function Ee(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Se(o.key),o)}}function Se(e){var t=function(e){if("object"!=ke(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ke(t)?t:t+""}function Ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ce=function(){return!!e})()}function je(e){return je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},je(e)}function Pe(e,t){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pe(e,t)}var Ie=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=je(t),function(e,t){if(t&&("object"==ke(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ce()?Reflect.construct(t,n||[],je(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pe(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"getViewModel",value:function(){var e=this.options.collectionIdentifier.toString();this.model=j.S0.GetViewModel(e,ge.De.VIDEO_LIST)}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.collection,"remove",this.render)}},{key:"name",get:function(){return"BulkVideoActionsComponent"}},{key:"template",get:function(){return Oe()}},{key:"lang",get:function(){return"shared.bulkVideoActions"}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".dropdown-menu-region"}}}},{key:"getSelectedIds",value:function(){return j.S0.GetSelectedIds({key:this.options.collectionIdentifier.toString(),type:ge.De.VIDEO_LIST,collection:this.collection,excludePredicate:function(e){return e.get("status")===me.X.Processing}})}},{key:"getActions",value:function(){if(this.options.collectionIdentifier){var e=this.getSelectedIds();return new l.Q.FE([{title:r.T.getPhrase(this.lang,"move",{smartCount:e.length}),appLink:{application:this.options.application,action:m.eX.Shared.MOVE_VIDEOS,args:[e.join(","),this.options.collectionIdentifier.id]},analyticsOptions:be.k.mergeOptions(this.options.analyticsOptions,{actionType:P.Vw.Move,workflowPhase:P.eu.Start})},{title:r.T.getPhrase(this.lang,"remove",{smartCount:e.length}),appLink:{application:m.OV.LIBRARY_EDITOR,action:m.eX.Shared.DELETE_VIDEOS,args:[this.options.collectionIdentifier.id,e.join(",")]},analyticsOptions:be.k.mergeOptions(this.options.analyticsOptions,{actionType:P.Vw.Delete,workflowPhase:P.eu.Start}),classes:"text-danger"}])}}},{key:"viewOptions",value:function(){return{enabled:this.getSelectedIds().length}}},{key:"onRender",value:function(){this.showChildView("dropdownItems",new ve.w({displayOptions:{alignment:"end"},channelName:"".concat(this.name).concat(this.cid),collection:this.getActions(),analyticsHelper:be.k}))}}])&&Ee(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(l.Q.wA),Te=n(12542),_e=n(8614),Re=n(5344),Le=n(21161),Ve=n(53370),xe=n.n(Ve);function De(e){return De="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},De(e)}function Ae(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Be(o.key),o)}}function Be(e){var t=function(e){if("object"!=De(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==De(t)?t:t+""}function Fe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fe=function(){return!!e})()}function Me(e){return Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Me(e)}function Ne(e,t){return Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ne(e,t)}var Qe=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=Me(t),function(e,t){if(t&&("object"==De(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fe()?Reflect.construct(t,n||[],Me(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ne(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.getViewModel(),this.setSort(),this.bindListeners(),this.initializeCollection()}},{key:"getViewModel",value:function(){this.model=j.x$.GetSortViewModel()}},{key:"setSort",value:function(){var e=this.options.collectionIdentifier.sort;if(e!==this.model.get("sortType")){var t=j.x$.CreateSortObject(e);this.model.set(t)}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"sort:selected",this.onSortSelected)}},{key:"initializeCollection",value:function(){this.collection||(this.collection=j.x$.CreateSortCollection())}},{key:"name",get:function(){return"SortSelectComponent"}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"template",get:function(){return xe()}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){this.logAction(P.eu.Start)}},{key:"onSortSelected",value:function(e){this.model.set(e.toJSON()),this.render(),this.logAction(P.eu.Complete)}},{key:"logAction",value:function(e){var t=be.k.mergeOptions(this.options.analyticsOptions,{actionType:P.Vw.Sort,workflowPhase:e}),n={id:this.options.collectionIdentifier.id,sort:this.model.get("name")};be.k.logUserAction(n,t)}},{key:"onRender",value:function(){var e=this,t=this.collection.filter((function(t){return t.get("name")!==e.model.get("name")})),n=l.Q.C$.getCurrentAppLink().params,o=new l.Q.FE(Le.map(t,(function(t){var o=t.toJSON();return o.appLink={application:e.options.appLink.application,action:e.options.appLink.action,args:[e.options.collectionIdentifier.id],params:Object.assign(Object.assign({},n),{sort:t.get("sortName")})},o})));this.showChildView("dropdown",new ve.w({collection:o,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"sort:selected"},displayOptions:{alignment:"end"},analyticsHelper:be.k}))}}])&&Ae(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(l.Q.wA),He=n(56846),Ue=n.n(He);function Ye(e){return Ye="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},Ye(e)}function Xe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ze(o.key),o)}}function ze(e){var t=function(e){if("object"!=Ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ye(t)?t:t+""}function We(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(We=function(){return!!e})()}function Ke(e){return Ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ke(e)}function Ze(e,t){return Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ze(e,t)}var Ge=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=Ke(t),function(e,t){if(t&&("object"==Ye(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,We()?Reflect.construct(t,n||[],Ke(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ze(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.analyticsOptions=be.k.mergeOptions(this.options.analyticsOptions,{location:P.LZ.VideoListHeader})}},{key:"name",get:function(){return"VideoListSubheadingComponent"}},{key:"template",get:function(){return Ue()}},{key:"className",get:function(){return"px-3"}},{key:"lang",get:function(){return"libraryEditor.videoListSubheading"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{checkAll:{el:".check-all-region",replaceElement:!1},bulkActions:{el:".bulk-actions-region",replaceElement:!0},sorting:{el:".sorting-region",replaceElement:!0},typeFilter:{el:".type-filter-region",replaceElement:!0}}}},{key:"renderCheckAll",value:function(){this.options.allowBulk&&this.showChildView("checkAll",new Te.Y({className:"float-start",key:this.collectionIdentifier.toString(),type:ge.De.VIDEO_LIST,numberOfItems:this.collection.length}))}},{key:"renderBulkActions",value:function(){this.options.allowBulk&&this.showChildView("bulkActions",new Ie({collection:this.collection,collectionIdentifier:this.collectionIdentifier,application:this.options.application,analyticsOptions:be.k.mergeOptions(this.options.analyticsOptions,{descriptor:P.yh.Bulk,location:P.LZ.VideoListHeader,entity:P.py.Video,workflowPhase:P.eu.Start})}))}},{key:"renderSorting",value:function(){this.showChildView("sorting",new Qe({collectionIdentifier:this.collectionIdentifier,analyticsOptions:this.analyticsOptions,appLink:{application:this.options.application,action:this.options.action}}))}},{key:"renderTypeFilter",value:function(){this.options.showTypeFilter&&this.showChildView("typeFilter",new _e.fH({model:this.options.filterCollection.first(),analyticsOptions:this.analyticsOptions,channelName:this.options.collectionViewChannel}))}},{key:"viewOptions",value:function(){return{showBulkActions:this.options.allowBulk&&this.collection.length>0,showHeading:this.options.showHeading}}},{key:"onBeforeRender",value:function(){return!(!Re.qr.hasOptionSelected(this.options.filterCollection.first())&&!this.collection.length)}},{key:"onRender",value:function(){this.renderCheckAll(),this.renderTypeFilter(),this.renderBulkActions(),this.renderSorting()}}])&&Xe(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(l.Q.wA),$e=n(25887),qe=n(56906),Je=n(95061),et=n(7170),tt=n(44937),nt=n(93089),ot=n.n(nt);function it(e){return it="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},it(e)}function rt(e,t,n,o){var i=at(dt(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function at(){return at="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=dt(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},at.apply(null,arguments)}function lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ct(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ut(o.key),o)}}function st(e,t,n){return t&&ct(e.prototype,t),n&&ct(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ut(e){var t=function(e){if("object"!=it(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=it(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==it(t)?t:t+""}function ft(e,t,n){return t=dt(t),function(e,t){if(t&&("object"==it(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pt()?Reflect.construct(t,n||[],dt(e).constructor):t.apply(e,n))}function pt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pt=function(){return!!e})()}function dt(e){return dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dt(e)}function yt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ht(e,t)}function ht(e,t){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ht(e,t)}var bt=function(e){function t(e){return lt(this,t),ft(this,t,[e])}return yt(t,e),st(t,[{key:"initialize",value:function(){this.initializeQuery(),this.bindListeners(),this.getSortType(),this.getMediaType(),this.videoDataService=i.u.getInstance(m.Or.Video,this),this.libraryDataService=i.u.getInstance(m.Or.Library,this),this.pendingItemsService=i.u.getInstance(m.K9.PendingItems,this),this.localCacheDataService=i.u.getInstance(m.Or.LocalCache,this),this.playerDataService=i.u.getInstance(m.Or.Player,this),this.videoMixinService=i.u.getInstance(m.K9.VideoMixin,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"template",get:function(){return ot()}},{key:"className",get:function(){return"bg-white rounded"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{banner:{el:".banner-region",replaceElement:!0,partialLoading:v.LP.Banner},header:{el:".header-region",replaceElement:!0,partialLoading:v.LP.VideoListHeader},videoList:{el:".video-list-region",replaceElement:!0,partialLoading:v.LP.VideoListWithBulkActions},childFolders:{el:".child-folders-region",replaceElement:!1,partialLoading:v.LP.SubFolder},pagination:{el:".pagination-region",replaceElement:!0},subheading:{el:".subheading-region",replaceElement:!0,partialLoading:v.LP.VideoListSubheading}}}},{key:"bindListeners",value:function(){var e=this.options.collectionIdentifier.toString();this.listenTo(m.Vk.VIDEO,"".concat(e,":sync"),this.render),this.listenTo(m.Vk.VIDEO,"".concat(m.M_.DELETE_VIDEO,":sync"),this.fetchData),this.listenTo(m.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(m.Vk.RESTRICTED_VIDEO,"".concat(m.M_.RESTRICTED_OBJECTS,":").concat(e,":invalidate"),this.updateRestrictedVideos),this.listenTo(this.channelName,"cancel:pending:item",this.cancelPendingItem),this.listenTo(this.channelName,"retry:pending:item",this.retryPendingItem),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(this.channelName,m.Vy.Filters.FILTER_CHANGED,this.filterChanged),this.listenTo(m.Vk.LOCAL_CACHE,"".concat(m.M_.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(m.Vk.LOCAL_CACHE,"".concat(m.M_.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"getSortType",value:function(){this.sortType||(this.sortType=this.options.collectionIdentifier.sort)}},{key:"getMediaType",value:function(){this.mediaType||(this.mediaType=this.options.collectionIdentifier.mediaType)}},{key:"updateRestrictedVideos",value:function(){var e=this;this.videoMixinService.getAndMixinVideoCollectionRestrictions(this.videoCollection,this.collectionIdentifier,(function(){return e.render()}))}},{key:"cancelPendingItem",value:function(e){this.pendingItemsService.clearPendingItem(e)}},{key:"retryPendingItem",value:function(e){this.pendingItemsService.retryPendingItem(e)}},{key:"createViewKey",value:function(e,t){this.playerDataService.createViewKey(e,s.f.MasterObject,t)}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&(this.videosWithMetadata=new y.t(this.videoCollection.map((function(e){return(0,k.Z)({id:e.get("id"),typeId:e.get("typeId")})}))))}},{key:"renderBanner",value:function(){var e=new N({model:this.model,channelName:this.channelName,imageCdnUrl:this.config.get("imageCdnUrl")});this.showChildView("banner",e)}},{key:"renderChildFolders",value:function(){var e;if(null===(e=this.folders)||void 0===e?void 0:e.length){var t=new re({collection:this.folders,forceExpanded:0===this.videoCollection.length});this.showChildView("childFolders",t)}}},{key:"renderHeader",value:function(){this.showChildView("header",new he({collection:this.videoCollection,libraries:this.libraryCollection,folder:this.model instanceof O.g&&this.model}))}},{key:"renderSubheading",value:function(){var e;this.showChildView("subheading",new Ge({collection:this.videoCollection,application:m.OV.LIBRARY_EDITOR,action:this.appLinkAction(),allowBulk:this.allowBulk(),showTypeFilter:this.showTypeFilter(),filterCollection:this.filterCollection,collectionIdentifier:this.collectionIdentifier,collectionViewChannel:this.channelName,analyticsOptions:this.options.analyticsOptions,showHeading:!!(null===(e=this.folders)||void 0===e?void 0:e.length)}))}},{key:"renderVideoList",value:function(){var e,t=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),n=new b.Y({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:m.OV.LIBRARY_EDITOR,allowBulk:this.allowBulk(),collectionIdentifier:this.collectionIdentifier,config:this.config,pendingItems:this.pendingItemsService.getPendingItems(),videoItemComponentType:this.componentType,emptyStateType:this.emptyStateType(),emptyStateOptions:this.emptyStateOptions(),supportSiteUrl:this.config.get("supportSiteUrl"),collectionViewChannel:this.channelName,customerHasLocalCache:j.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),customerHasExchange:this.exchanges.any(),analyticsOptions:this.options.analyticsOptions,sourceMetadataOptions:{showFolder:this.showFolderSource(),libraries:this.libraryCollection},videoCollectionSource:this.getVideoCollectionSource(),currentUser:this.currentUser,playerApiUrl:this.config.get("playerApiUrl"),createViewKey:this.createViewKey,hasCursors:!!t,showEmptyState:!(null===(e=this.folders)||void 0===e?void 0:e.length)||!this.videoCollection.length,libraries:this.libraryCollection,products:this.products});this.showChildView("videoList",n)}},{key:"renderPagination",value:function(){var e=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),t=new f.Q({cursors:e,collectionId:this.options.collectionIdentifier.id,appLink:{application:m.OV.LIBRARY_EDITOR,action:this.appLinkAction(),args:[this.collectionIdentifier.id],params:Object.assign(Object.assign({},this.collectionIdentifier.toParams()),{previous:this.options.previous,cursor:this.options.cursor})},analyticsOptions:this.options.analyticsOptions});this.showChildView("pagination",t)}},{key:"fetchData",value:function(){this.fetchModel(),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),this.fetchVideoCollection()}},{key:"fetchVideoWithMetadata",value:function(e,t){var n=this;this.videoDataService.getUnionVideo(e,t,(function(t){var o=n.videosWithMetadata.get(e);o&&(o.set(t.toJSON()),o.set({dataFetched:!0}))}))}},{key:"initializeQuery",value:function(){this.queryModel=this.getSearchModel()}},{key:"initializeFilterCollection",value:function(){var e,t,n;this.filterCollection=new et.y([{title:"Types",type:c.K.MediaType,behavior:Re.xF.Inclusive,isDynamic:!1,showInMoreFilters:!1,selectAllWhenNoneSelected:!1,minNumOptions:0,prefixWhenActive:!1,options:[{id:g.D.Clip,name:r.T.getPhrase(this.lang,"clips"),value:g.D.Clip,active:null===(e=this.mediaType)||void 0===e?void 0:e.includes(g.D.Clip)},{id:g.D.Video,name:r.T.getPhrase(this.lang,"videos"),value:g.D.Video,active:null===(t=this.mediaType)||void 0===t?void 0:t.includes(g.D.Video)},{id:g.D.Interactive,name:r.T.getPhrase(this.lang,"interactives"),value:g.D.Interactive,active:null===(n=this.mediaType)||void 0===n?void 0:n.includes(g.D.Interactive)}]}]),this.setQueryParams()}},{key:"getSearchModel",value:function(){return a.r.get("search",{ctor:tt.AE})}},{key:"setQueryParams",value:function(){Re.yf.setQueryParams(Object.assign({},this.collectionIdentifier.toParams()),this.queryModel,this.filterCollection)}},{key:"filterChanged",value:function(){var e=l.Q.C$.getCurrentAppLink().params,t=Re.yf.getRouteQueryParams(this.queryModel,this.filterCollection,null);l.Q.C$.trigger({application:m.OV.LIBRARY_EDITOR,action:m.eX.LibraryEditor.FOLDER,args:[this.collectionIdentifier.id],params:Object.assign(Object.assign({},e),{mediaType:t.mediaType})})}},{key:"requiredResources",get:function(){return{config:E.p.config,currentUser:C.K.currentUser,libraryCollection:Je.T.libraries,exchanges:Je.T.exchanges,products:S.s.products}}},{key:"onBeforeRender",value:function(){return this.initializeFilterCollection(),this.fetchData(),!!this.videoCollection&&(this.setVideosWithMetadata(),!!this.model)}},{key:"onRender",value:function(){this.renderBanner(),this.renderHeader(),this.renderChildFolders(),this.renderSubheading(),this.renderVideoList(),this.renderPagination()}}])}(l.Q.G7),mt=function(e){function t(){return lt(this,t),ft(this,t,arguments)}return yt(t,e),st(t,[{key:"name",get:function(){return"FolderView"}},{key:"lang",get:function(){return"libraryEditor.folderView"}},{key:"componentType",get:function(){return h.U.Draggable}},{key:"bindListeners",value:function(){this.listenTo(m.Vk.LIBRARY,"".concat(m.M_.FOLDER,":").concat(this.options.collectionIdentifier.id,":sync libraries:sync"),this.render),this.listenTo(m.Vk.LIBRARY,"".concat(m.M_.FOLDER,":").concat(this.options.collectionIdentifier.id,":error"),this.onError),this.listenTo(m.Vk.LIBRARY,"".concat(m.M_.UPDATE_FOLDER_BANNER,":").concat(this.options.collectionIdentifier.id,":sync"),this.fetchModel),this.listenTo(m.Vk.LIBRARY,"".concat(new w.KX(this.options.collectionIdentifier.id,p.E.AtoZ),":invalidate"),this.onFoldersInvalidate),rt(t,"bindListeners",this,3)([])}},{key:"onError",value:function(e){switch(e.type){case o.h.Forbidden:l.Q.Ry.throw(new qe.gO);break;case o.h.NotFound:l.Q.Ry.throw(new qe.Zv)}}},{key:"appLinkAction",value:function(){return m.eX.LibraryEditor.FOLDER}},{key:"allowBulk",value:function(){return!0}},{key:"showTypeFilter",value:function(){return!0}},{key:"emptyStateType",value:function(){return v.ub.Folder}},{key:"emptyStateOptions",value:function(){return{heading:r.T.getPhrase(this.lang,"emptyStateHeading"),description:r.T.getPhrase(this.lang,"emptyStateInfo",{url:d.o.getHybridArticle(u.s.AddFromOnline,u.b.AddFromLite),classNames:"info-link"})}}},{key:"showFolderSource",value:function(){return!1}},{key:"getVideoCollectionSource",value:function(){return $e.x_.Folder}},{key:"fetchModel",value:function(){this.model=this.libraryDataService.getFolder(this.collectionIdentifier.id)}},{key:"fetchVideoCollection",value:function(){this.videoCollection=this.videoDataService.getCollectionVideos(this.collectionIdentifier)}},{key:"onFoldersInvalidate",value:function(){this.fetchFolders(null,!0)}},{key:"fetchFolders",value:function(e,t){var n=this,o=new w.KX(this.collectionIdentifier.id,p.E.AtoZ,e);this.libraryDataService.getFolders(o,(function(e){t||!n.folders?n.folders=e:n.folders.add(e.models);var i=n.libraryDataService.getFoldersCursors(o);(null==i?void 0:i.next)?n.fetchFolders(i.next):n.render()}))}},{key:"onBeforeRender",value:function(){return this.folders||this.fetchFolders(),rt(t,"onBeforeRender",this,3)([])&&!!this.folders}}])}(bt),vt=function(e){function t(){return lt(this,t),ft(this,t,arguments)}return yt(t,e),st(t,[{key:"initialize",value:function(){this.seriesDataService=i.u.getInstance(m.Or.Series,this),rt(t,"initialize",this,3)([])}},{key:"name",get:function(){return"SeriesView"}},{key:"lang",get:function(){return"libraryEditor.seriesView"}},{key:"componentType",get:function(){return h.U.Base}},{key:"regions",value:function(){var e=rt(t,"regions",this,3)([]);return e.subheading.partialLoading=v.LP.SeriesVideoListSubheading,delete e.header.partialLoading,delete e.childFolders.partialLoading,e}},{key:"bindListeners",value:function(){this.listenTo(m.Vk.SERIES,"".concat(m.M_.SERIES,":").concat(this.options.collectionIdentifier.id,":sync"),this.render),this.listenTo(m.Vk.SERIES,"".concat(m.M_.SERIES,":").concat(this.options.collectionIdentifier.id,":error"),this.onError),rt(t,"bindListeners",this,3)([])}},{key:"onError",value:function(e){e.type===o.h.NotFound&&l.Q.Ry.throw(new qe.Ag)}},{key:"appLinkAction",value:function(){return m.eX.LibraryEditor.SERIES}},{key:"allowBulk",value:function(){return!1}},{key:"showTypeFilter",value:function(){return!1}},{key:"emptyStateType",value:function(){return v.ub.Series}},{key:"emptyStateOptions",value:function(){return{heading:r.T.getPhrase(this.lang,"emptyStateHeading"),description:r.T.getPhrase(this.lang,"emptyStateInfo",{url:d.o.getHybridArticle(u.s.AddFromOnline,u.b.AddFromLite),classNames:"info-link"})}}},{key:"showFolderSource",value:function(){return!0}},{key:"getVideoCollectionSource",value:function(){return $e.x_.Series}},{key:"fetchModel",value:function(){this.model=this.seriesDataService.getSeries(this.collectionIdentifier.id)}},{key:"fetchVideoCollection",value:function(){this.videoCollection=this.videoDataService.getSeriesVideos(this.collectionIdentifier,this.libraryCollection.pluck("id"))}}])}(bt)},57085:function(e,t,n){"use strict";n.d(t,{n:function(){return I}});var o=n(31647),i=n(57098),r=n(22557),a=n(86363),l=n.n(a);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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}function f(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(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+""}function d(e,t,n){return t=h(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var v=function(e){function t(){return s(this,t),d(this,t,arguments)}return b(t,e),f(t,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return l()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}])}(o.Q.wA),g=function(e){function t(){return s(this,t),d(this,t,arguments)}return b(t,e),f(t,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return v}}])}(o.Q.$W),w=n(93933),O=n.n(w);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function E(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,S(o.key),o)}}function S(e){var t=function(e){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:t+""}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}var I=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=j(t),function(e,t){if(t&&("object"==k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,C()?Reflect.construct(t,n||[],j(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(t,e),n=t,(a=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return O()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var e=this;this.breadcrumbCollection=new o.Q.FE([]);var t,n=this.options.folder;do{if(!n)break;if(t=r.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!t),{at:0}),!t)break;n=t}while(t);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(t){return e.breadcrumbCollection.add(t)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?i.eX.LibraryEditor.FOLDER:i.eX.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:i.OV.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new g({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&E(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(o.Q.wA)},85552:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<h1 class="text-white position-absolute m-0">\n '+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+'\n</h1>\n<div class="options-region"></div>'},useData:!0})},58266:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="items-region"></div>'},useData:!0})},90743:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,"style=\"background-image: url('"+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.imageUrl:r,t))+"')\""},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,s="function",u=e.escapeExpression,f=e.lambda;return'<a class="rounded d-block text-decoration-none" title="'+u(typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)===s?a.call(l,{name:"name",hash:{},data:i}):a)+'">\n <div \n class="'+u(f(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.folder:r,t))+" "+u(f(null!=(r=null!=t?t.options:t)?r.backgroundColor:r,t))+' rounded-top"\n '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.imageUrl:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'\n ></div>\n <h3 class="font-size-normal fw-semibold mb-0 p-2 bg-white border-start border-end border-bottom rounded-bottom ">\n <span class="text-truncate d-block">'+u(typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)===s?a.call(l,{name:"name",hash:{},data:i}):a)+'</span>\n </h3>\n</a>\n<div class="actions-region"></div>'},useData:!0})},53370:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<button class="btn btn-outline-dark dropdown-toggle" type="button" id="sortSelectButton" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n '+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+'\n</button>\n<div class="dropdown-menu-region"></div>'},useData:!0})},73368:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return"ps-2"},3:function(e,t,n,o,i){return"cursor-pointer"},5:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return' <div class="'+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+" "+l(a(null!=(r=null!=t?t.options:t)?r.caretClass:r,t))+'">\n '+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.caretSvg:r,t))?r:"")+"\n </div>\n"},7:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,' <div class="d-flex justify-content-end justify-self-end px-2 expand-toggle">\n <span class="info-link d-inline-block">\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.isExpanded:r,{name:"if",hash:{},fn:e.program(8,i,0),inverse:e.program(10,i,0),data:i}))?r:"")+" </span>\n </div>\n"},8:function(e,t,n,o,i){return e.propertyIsEnumerable," "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeLess",{name:"lang",hash:{},data:i}))+"\n"},10:function(e,t,n,o,i){var r;return e.propertyIsEnumerable," "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{smartCount:null!=(r=null!=t?t.options:t)?r.count:r},data:i}))+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=e.escapeExpression;return'<div class="d-flex justify-content-between align-items-center">\n <div class="d-inline-flex align-items-center mb-2 expand-toggle '+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.forceExpanded:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+'">\n'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.forceExpanded:r,{name:"unless",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+' <h2 class="h4 mb-0">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"folders",{name:"lang",hash:{},data:i}))+" ("+l(e.lambda(null!=(r=null!=t?t.options:t)?r.count:r,t))+")</h2>\n </div>\n"+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.forceExpanded:r,{name:"unless",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?r:"")+'</div>\n<div class="subfolders-region"></div>'},useData:!0})},26704:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda;return'<span data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+e.escapeExpression(a(null!=(r=null!=t?t.options:t)?r.dropdownClass:r,t))+' d-inline-block ui-dropdown-toggle">\n '+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.svg:r,t))?r:"")+'\n</span>\n<div class="items-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.hasActions:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:""},useData:!0})},8420:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="py-3 border-bottom">\n <div class="breadcrumbs-region d-inline-flex align-items-center"></div>\n</div>'},useData:!0})},56846:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return e.propertyIsEnumerable,'<h2 class="h4">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"videos",{name:"lang",hash:{},data:i}))+"</h2>"},3:function(e,t,n,o,i){return"pt-2"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.showHeading:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'\n<div class="d-flex justify-content-between align-items-center pb-2 '+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.showHeading:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'">\n <div class="d-inline-flex justify-content-start">\n <div class="check-all-region d-inline-flex align-items-center"></div>\n <div class="bulk-actions-region"></div>\n <div class="ms-2">\n <div class="type-filter-region"></div>\n </div>\n </div>\n <div class="sorting-region"></div>\n</div>'},useData:!0})},93089:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="banner-region"></div>\n<div class="header-region"></div>\n<div class="child-folders-region"></div>\n<div class="subheading-region"></div>\n<div class="video-list-region"></div>\n<div class="pagination-region"></div>'},useData:!0})},86363:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<span class="fw-bolder">'+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+"</span>\n"},3:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,"<a>"+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.isActive:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:""},useData:!0})},93933:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},34670:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return'<button\n class="dropdown-toggle btn btn-outline-dark ms-2 '+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.enabled:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'"\n type="button"\n id="bulkActions"\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n '+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.enabled:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+"\n>\n "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"options",{name:"lang",hash:{},data:i}))+'\n</button>\n<div class="dropdown-menu-region"></div>'},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[299],{50299:function(t,e,n){"use strict";n.d(e,{J:function(){return _}});var i=n(21161),o=n(31647),r=n(43823),s=n(70065),l=n(85475),a=n(57098),c=n(93569),u=n(91439),p=n(6929),h=n(42978),d=n.n(h);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function y(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,b(i.key),i)}}function b(t){var e=function(t){if("object"!=f(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==f(e)?e:e+""}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}var C=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=m(e),function(t,e){if(e&&("object"==f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,v()?Reflect.construct(e,n||[],m(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}(e,t),n=e,(h=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render);var t=this.getChildren();t&&this.listenTo(t,"add remove",this.render),this.listenTo(this,"open:sub:folders",this.onOpenSubFolders)}},{key:"name",get:function(){return"LeftNavNodeComponent"}},{key:"elements",get:function(){return{anchor:".ui-node",text:".ui-text"}}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="position-relative";return this.isSelected()&&(t+=" ".concat(this.options.styles.selected)),this.isParent()&&(t+=" ".concat(this.options.styles.parent)),this.options.isSelector&&(t+=" ".concat(this.options.styles.isSelector)),t}},{key:"behaviors",get:function(){return this.options.isSelector?[]:[{behaviorClass:p.x,ui:"anchor",channelNames:[a.jr.VIDEO_DRAG_DROP,a.jr.FOLDER_DRAG_DROP],analyticsOptions:{location:s.LZ.LeftNav}},{behaviorClass:u.u}]}},{key:"appLinks",get:function(){return this.options.appLink?{"@ui.anchor":this.getAppLink()}:{}}},{key:"events",value:function(){return{"click .ui-node":"onClick"}}},{key:"regions",value:function(){return{children:{el:"ul",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"template",get:function(){return d()}},{key:"hasChildren",value:function(){var t=this.getChildren();return!!t&&!!t.length}},{key:"getChildren",value:function(){return this.options.childrenProperty?this.model.get(this.options.childrenProperty):null}},{key:"getText",value:function(){return this.options.textProperty?this.model.get(this.options.textProperty):this.model.get("name")}},{key:"isSelected",value:function(){return c.PU.isSelected(this.options.folderTreeId,this.model.get("id"))}},{key:"isParent",value:function(){return c.PU.isParent(this.options.folderTreeId,this.model.get("id"))}},{key:"isDisabled",value:function(){return this.options.disabledIds&&this.options.disabledIds[this.model.get("id").toString()]}},{key:"getAnchorClass",value:function(){var t="position-relative ".concat(this.options.styles.node);return this.isSelected()?t+=" text-body fw-bold":this.isDisabled()?t+=" text-secondary":t+=" text-dark",t}},{key:"getCaretClass",value:function(){var t=this.options.styles.caret;return this.isDisabled()&&(t+=" text-secondary"),t}},{key:"getAppLink",value:function(){if(!this.options.appLink)return{};var t=this.options.linkArgs,e=this.options.linkParams;return{application:this.options.appLink.application,action:this.options.appLink.action,args:i.isFunction(t)?t(this.model):null,params:i.isFunction(e)?e(this.model):null}}},{key:"onClick",value:function(t){t.stopPropagation();var e=this.getRegion("children"),n=r.Radio.channel(this.options.channelName);if(this.isDisabled()||(this.$el.addClass(this.options.styles.selected),this.getUI("text").addClass("text-body fw-bold")),this.options.isSelector&&n.trigger("folder:selected",this.model,this.isDisabled()),this.isDisabled()||this.isSelected()&&this.isCurrentPath()){if(t.stopImmediatePropagation(),t.preventDefault(),!this.hasChildren())return void(this.options.isSelector&&n.trigger("re:render:selector"));var i=!e.hasView();return i?this.openChildren():this.closeChildren(),void(this.options.isSelector&&i&&n.trigger("re:render:selector"))}this.hasChildren()&&(this.openChildren(),this.options.isSelector&&r.Radio.channel(this.options.channelName).trigger("re:render:selector"))}},{key:"isCurrentPath",value:function(){var t=o.Q.C$.getCurrentAppLink(),e=this.getAppLink();return!i.keys(e).length||t.application===e.application&&t.action===e.action}},{key:"closeChildren",value:function(){var t=this.getRegion("children");this.$el.addClass(this.options.styles.collapsed),this.$el.removeClass(this.options.styles.parent),t.empty()}},{key:"openChildren",value:function(){this.$el.removeClass(this.options.styles.collapsed),this.renderChildren()}},{key:"onOpenSubFolders",value:function(t){this.renderedSubChildren||this.renderChildren(t)}},{key:"renderChildren",value:function(t){var e=this.getChildren();if(e&&e.length){var n={styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,extraClass:this.options.extraClass,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds};n.extraClasses=t,n.collection=e,this.showChildView("children",new _(n)),this.renderedSubChildren=!0}}},{key:"viewOptions",value:function(){var t="".concat(this.options.styles.item," ").concat(this.options.styles.customItem||"");return this.isDisabled()&&this.renderedSubChildren&&(t+=" ".concat(this.options.styles.disabledActive)),{children:this.getChildren(),itemClass:t,anchorClass:this.getAnchorClass(),caretClass:this.getCaretClass(),showCaret:this.hasChildren(),svg:l.Nj.getSvg(l.vn.Caret),extraClasses:this.options.extraClasses,textStyle:this.options.styles.text,text:this.getText()}}},{key:"onRender",value:function(){this.resetClassName(),this.options.actions&&this.showChildView("actions",new this.options.actions({model:this.model,extraClasses:"rounded-circle me-1 ".concat(this.options.styles.actions),buttonClass:"text-secondary",analyticsOptions:this.options.analyticsOptions})),(this.isSelected()||this.isParent())&&this.renderChildren()}}])&&y(n.prototype,h),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,h}(o.Q.wA),k=n(95308);function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function w(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,x(i.key),i)}}function x(t){var e=function(t){if("object"!=P(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==P(e)?e:e+""}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(O=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function j(t,e){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},j(t,e)}var _=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.styles=i.extend({},k.Z,t.styles),function(t,e,n){return e=S(e),function(t,e){if(e&&("object"==P(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,O()?Reflect.construct(e,n||[],S(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&j(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"LeftNavComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"childView",get:function(){return C}},{key:"className",get:function(){var t="".concat(this.options.styles.folderTree," position-relative");return this.options.extraClass?"".concat(t," ").concat(this.options.extraClass):t}},{key:"viewComparator",get:function(){return function(t){var e;return null===(e=t.model.get("name"))||void 0===e?void 0:e.toLowerCase()}}},{key:"childViewOptions",get:function(){return{styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,extraClass:this.options.extraClass,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds}}}])&&w(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.$W)},42978:function(t,e,n){var i=n(31197);t.exports=(i.default||i).template({1:function(t,e,n,i,o){t.propertyIsEnumerable;var r,s=t.lambda;return' <span class="'+t.escapeExpression(s(null!=(r=null!=e?e.options:e)?r.caretClass:r,e))+' d-inline-block position-absolute">\n '+(null!=(r=s(null!=(r=null!=e?e.options:e)?r.svg:r,e))?r:"")+"\n </span>\n"},3:function(t,e,n,i,o){return"<ul></ul>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){t.propertyIsEnumerable;var r,s=t.lambda,l=t.escapeExpression,a=null!=e?e:t.nullContext||{};return'<div class="position-relative '+l(s(null!=(r=null!=e?e.options:e)?r.itemClass:r,e))+'">\n <a class="'+l(s(null!=(r=null!=e?e.options:e)?r.anchorClass:r,e))+' d-block ui-node">\n'+(null!=(r=n.if.call(a,null!=(r=null!=e?e.options:e)?r.showCaret:r,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+' <span class="'+l(s(null!=(r=null!=e?e.options:e)?r.textStyle:r,e))+" ui-text "+l(s(null!=(r=null!=e?e.options:e)?r.extraClasses:r,e))+'">'+l(s(null!=(r=null!=e?e.options:e)?r.text:r,e))+'</span>\n </a>\n <div class="actions-region"></div>\n</div>\n'+(null!=(r=n.if.call(a,null!=(r=null!=(r=null!=e?e.options:e)?r.children:r)?r.length:r,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?r:"")},useData:!0})},95308:function(t,e){"use strict";e.Z={folderTree:"JTT7V",text:"ekgGD",caret:"tFpUT",library:"VmDO7",isSelector:"gxCnr",selected:"UotqF",parent:"WHPA5",disabledActive:"S2QPI",disabled:"tntwp",collapsed:"Po9s7",actions:"Sf28U",node:"vm17w",libraryContainer:"_xoJs",item:"aMuxi"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3746],{54096:function(e,r,t){t.d(r,{G:function(){return c}});var n=t(32735),o=t(21679);function c(e){var r,t;return r=e,t=o.u.getInstance(r),n.useEffect((function(){return function(){o.u.releaseInstance(r)}})),t}},2491:function(e,r,t){t.d(r,{Z:function(){return u}});var n=t(92159),o=t(21186),c=t(54096);function u(){var e=(0,c.G)(n.P.ALERT);return{success:function(r){e.success(r)()},error:function(r){e.error(r)()},warning:function(r){e.createAlert({type:o.NK.Warning,heading:o.R6.Warning,message:r})}}}},17942:function(e,r,t){t.r(r),t.d(r,{RemoveLogoView:function(){return h}});var n=t(32735),o=t(57857),c=t(86120),u=t(52076),a=t(70065),i=t(4231),l=t(83996),s=t(66703),f=t(2491),m=t(2248),p=t(57098),v={removeLogo:function(e,r,t,n){return{url:"/api/domain/v2/objects/".concat(e,"/logo/").concat(r),key:"remove:logo:".concat(r),type:m.k.DELETE,success:t,error:n,invalidationKeys:[p.M_.LOGO],dataServices:[p.Or.Customer]}}};function y(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var d="libraryEditor.removeLogo",g=o.T.encloseNamespace(d);function h(e){var r,t,o=(r=n.useState(!1),t=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,c,u,a=[],i=!0,l=!1;try{if(c=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;i=!1}else for(;!(i=(n=c.call(t)).done)&&(a.push(n.value),a.length!==r);i=!0);}catch(e){l=!0,o=e}finally{try{if(!i&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(r,t)||function(e,r){if(e){if("string"==typeof e)return y(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?y(e,r):void 0}}(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=o[0],p=o[1],h=c.a.useGetFetch(),b=(0,f.Z)();return n.createElement(i.G,{closePopup:e.closePopup,title:g("removeSchoolCrest")},n.createElement("p",null,n.createElement(s.x,{namespace:d,phrase:"areYouSure"})),n.createElement(l.u,null,n.createElement(l.u.Cancel,{onClick:e.closePopup}),n.createElement(l.u.Submit,{onClick:function(){p(!0),h(v.removeLogo(e.customerId,e.logoId,(function(){b.success(g("success")),u.k.logUserAction({id:e.logoId},{actionType:a.Vw.Remove,entity:a.py.Logo,workflowPhase:a.eu.Complete,location:a.LZ.Popup}),e.closePopup()}),(function(){b.success(g("error")),p(!1)})))},text:g("remove"),showSpinner:m,variant:"danger"})))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[376],{59054:function(e,t,n){"use strict";var r;n.d(t,{f:function(){return r}}),function(e){e.Share="share",e.MasterObject="masterobject"}(r||(r={}))},48362:function(e,t,n){"use strict";n.d(t,{_:function(){return k}});var r=n(31647),i=n(70065),o=n(45837),a=n(7427),l=n(61356),s=n(19226),c=n(93569),u=n(44391),p=n(25887),f=n(70042),d=n(17349),y=n.n(d),h={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 b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var k=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=w(t),function(e,t){if(t&&("object"==v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,g()?Reflect.construct(t,n||[],w(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.isClickViewContent=this.model&&!c.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 y()}},{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:s.K.currentUser}}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new l.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 u.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 a.V({model:this.model,libraries:this.options.libraries,showFolder:!0,hideLabel:!0}))}},{key:"viewOptions",value:function(){return{styles:h,interactive:f.u.isInteractive(this.model),duration:c.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&&c.BK.filterObjectsByOwnerType(this.model.tags,o.N.Customer,this.options.currentUser.get("customerId")).length}}},{key:"onRender",value:function(){this.renderVideoPreview(),this.renderTags(),this.renderFolders()}}])&&b(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},88435:function(e,t,n){"use strict";n.r(t),n.d(t,{ClipDetailsView:function(){return N}});var r=n(21161),i=n(99748),o=n(21679),a=n(31647),l=n(59054),s=n(50997),c=n(57085),u=n(38115),p=n(30831),f=n(23130),d=n(32546),y=n.n(d);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}function b(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}var O=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=g(t),function(e,t){if(t&&("object"==h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,m()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"ClipBasicInfoComponent"}},{key:"className",get:function(){return"py-3 pe-2"}},{key:"template",get:function(){return y()}},{key:"lang",get:function(){return"shared.clipBasicInfo"}},{key:"defaults",get:function(){return{truncateDescription:!0}}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},mediaTypeBadge:{el:".media-type-badge-region",replaceElement:!0},duration:{replaceElement:!0,el:".duration-region"}}}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new f.Z({model:this.model,linkify:!0,size:f.t.Large,truncate:this.options.truncateDescription,allowExpand:!0});this.showChildView("description",e)}}},{key:"renderMediaTypeBadge",value:function(){var e=new p.Z({model:this.model});this.showChildView("mediaTypeBadge",e)}},{key:"renderDuration",value:function(){var e=new u.s({model:this.model});this.showChildView("duration",e)}},{key:"onRender",value:function(){this.renderDescription(),this.renderMediaTypeBadge(),this.renderDuration()}}])&&v(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.Q.wA),k=n(57098),E=n(21251),C=n(33800),T=n(29457),j=n(48404),D=n(64649),P=n(19226),S=n(24397),_=n(48362),V=n(56906),I=n(95061),x=n(96491),B=n.n(x);function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M(r.key),r)}}function M(e){var t=function(e){if("object"!=R(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==R(t)?t:t+""}function U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(U=function(){return!!e})()}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}var N=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=A(t),function(e,t){if(t&&("object"==R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,U()?Reflect.construct(t,n||[],A(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K(e,t)}(t,e),n=t,(u=[{key:"initialize",value:function(){this.bindListeners(),this.videoDataService=o.u.getInstance(C.O.Video,this),this.videoMixinService=o.u.getInstance(C.K.VideoMixin,this),this.localCacheDataService=o.u.getInstance(C.O.LocalCache,this),this.playerDataService=o.u.getInstance(C.O.Player,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"createViewKey",value:function(e,t){this.playerDataService.createViewKey(e,l.f.MasterObject,t)}},{key:"bindListeners",value:function(){this.listenTo(k.Vk.VIDEO,"".concat(E.M.CLIPS,":").concat(this.options.clipId,":sync"),this.render),this.listenTo(k.Vk.VIDEO,"".concat(E.M.CLIPS,":").concat(this.options.clipId,":error"),this.onError),this.listenTo(k.Vk.VIDEO,"".concat(E.M.RESTRICTED_OBJECTS,":").concat(this.options.clipId,":sync"),this.render),this.listenTo(k.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(k.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(k.Vk.RESTRICTED_VIDEO,"".concat(E.M.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestriction),this.listenTo(k.Vk.RESTRICTED_VIDEO,"".concat(E.M.RESTRICTED_OBJECTS,":").concat(this.options.clipId,":sync"),this.render),this.listenTo(k.Vk.LOCAL_CACHE,"".concat(E.M.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(k.Vk.LOCAL_CACHE,"".concat(E.M.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"onError",value:function(e){switch(e.type){case i.h.NotFound:a.Q.Ry.throw(new V.l1);break;case i.h.Forbidden:a.Q.Ry.throw(new V.aV)}}},{key:"updateRestriction",value:function(){this.videoMixinService.getAndMixinVideoRestriction(this.clip)}},{key:"name",get:function(){return"ClipDetailsView"}},{key:"title",get:function(){return this.clip&&this.clip.get("name")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return B()}},{key:"className",get:function(){return"container-fluid h-100 bg-white rounded"}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1,partialLoading:T.LP.Breadcrumbs},header:{replaceElement:!0,el:".clip-header-region",partialLoading:T.LP.VideoHeader},main:{replaceElement:!0,el:".main-clip-information-region",partialLoading:T.LP.VideoSidebarInfo},basic:{replaceElement:!1,el:".basic-clip-information-region",partialLoading:T.LP.ClipBasicInfo}}}},{key:"getCustomLibraryFolders",value:function(){var e;if(!(null===(e=this.clip)||void 0===e?void 0:e.categories)||!this.libraries)return[];var t=this.libraries.reduce((function(e,t){return e[t.id]=!0,e}),{});return this.clip.categories.filter((function(e){var n=e.libraries.first().get("id");return t[n]}))}},{key:"renderBreadcrumbs",value:function(){this.folder&&this.clip&&this.showChildView("breadcrumbs",new c.n({folder:this.folder,libraries:this.libraries,video:this.clip,enableLastItemAppLink:!1}))}},{key:"renderVideoHeader",value:function(){this.showChildView("header",new S.U({model:this.clip,customerHasLocalCache:s.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),collectionIdentifier:this.folder&&new s.F7(this.folder.id,s.x$.GetCurrentSortType()),config:this.config,products:this.products,libraries:this.libraries}))}},{key:"renderSidebarInfo",value:function(){this.showChildView("main",new _._({model:this.clip,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.clip&&this.showChildView("basic",new O({model:this.clip}))}},{key:"requiredResources",get:function(){return{config:j.p.config,currentUser:P.K.currentUser,libraries:I.T.libraries,products:D.s.products}}},{key:"onBeforeRender",value:function(){return this.clip=this.videoDataService.getClip(this.options.clipId),this.clip&&(this.folder=r.default.first(this.getCustomLibraryFolders())),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),!!this.clip}},{key:"viewOptions",value:function(){if(this.clip)return{hasFolder:!!this.folder}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderVideoHeader(),this.renderSidebarInfo(),this.renderBasicInfo()}}])&&L(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(a.Q.G7)},38115:function(e,t,n){"use strict";n.d(t,{s:function(){return y}});var r=n(31647),i=n(27866),o=n(30225),a=n.n(o),l={durationBar:"zIvWt"};function s(e){return s="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},s(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var y=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=f(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"ClipDurationIndicatorComponent"}},{key:"template",get:function(){return a()}},{key:"getDuration",value:function(){return 1e3*(this.model.get("endTime")-this.model.get("startTime"))}},{key:"getDisplayDuration",value:function(){var e=i.T.ToDisplayDurationNewStyle(this.getDuration(),!0),t=i.T.ToDisplayDuration(1e3*this.model.get("startTime")),n=i.T.ToDisplayDuration(1e3*this.model.get("endTime"));return"".concat(e," (").concat(t," - ").concat(n,")")}},{key:"getClipPosition",value:function(){var e;return"left:"+this.model.get("startTime")/((null===(e=this.model._parentVideo)||void 0===e?void 0:e.get("duration"))/1e3)*100+"%"}},{key:"getClipDurationWidth",value:function(){return"width:"+Math.round(this.getDuration()/this.model._parentVideo.get("duration")*100)+"%"}},{key:"viewOptions",value:function(){return{styles:l,startDuration:i.T.ToDisplayDuration(0),parentDuration:i.T.ToDisplayDuration(this.model._parentVideo.get("duration")),clipDurationWidth:this.getClipDurationWidth(),clipPosition:this.getClipPosition(),duration:this.getDisplayDuration()}}}])&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},30831:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(57857),i=n(31647),o=n(83324),a=n(93569),l=n(7190),s=n(85348),c=n.n(s),u={mediaTypeBadge:"goWw9"};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}var m=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=v(t),function(e,t){if(t&&("object"==p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"MediaTypeBadgeComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"shared.mediaTypeBadge"}},{key:"getMediaTypeOptions",value:function(e){var t=f(f({},o.D.Interactive,"interactiveLabel"),o.D.Clip,"clipLabel");return{bgClass:l.uB.mapMediaTypeToClass(e),label:r.T.getPhrase(this.lang,t[a.M2.getMediaType(e)]),svg:l.uB.mapMediaTypeToSvg(e)}}},{key:"viewOptions",value:function(){return{styles:u,mediaType:this.getMediaTypeOptions(this.model)}}}])&&d(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},17349:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.escapeExpression;return' <span class="badge p-1 '+a(e.lambda(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.interactive:o,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:i}))+"</span>\n"},3:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,' <div class="mt-3">\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"folders",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.folders:o},data:i}))+'</h5>\n <div class="folders-region"></div>\n </div>\n'},5:function(e,t,n,r,i){return e.propertyIsEnumerable,' <div class="mt-3">\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"tags",{name:"lang",hash:{},data:i}))+'</h5>\n <div class="tags-region"></div>\n </div>\n'},7:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.escapeExpression;return' <div class="mt-3">\n <h5>'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"curriculumLinks",{name:"lang",hash:{},data:i}))+"</h5>\n <p>"+a(e.lambda(null!=(o=null!=t?t.options:t)?o.links:o,t))+"</p>\n </div>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t: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=n.if.call(a,null!=(o=null!=t?t.options:t)?o.interactive:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+" </div>\n\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.folders:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.tags:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.links:o,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?o:"")+"</div>"},useData:!0})},96491:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="row border-bottom">\n <div class="clip-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-clip-information-region"></div>\n </div>\n <div class="col-8">\n <div class="basic-clip-information-region"></div>\n </div>\n</div>'},useData:!0})},32546:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return' <div class="col-3 fw-semibold">'+s((n.lang||t&&t.lang||l).call(a,"title",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:l)?o.call(a,{name:"name",hash:{},data:i}):o)+"</p>\n"},3:function(e,t,n,r,i){return e.propertyIsEnumerable,' <div class="col-3 fw-semibold">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"description",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9">\n <div class="description-region"></div>\n </div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="position-relative">\n <h5 class="d-inline-block">'+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:i}))+'</h5>\n</div>\n<div class="row mb-0">\n'+(null!=(o=n.if.call(a,null!=t?t.name:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=n.if.call(a,null!=t?t.description:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+'\n <div class="col-3 fw-semibold">'+s((n.lang||t&&t.lang||l).call(a,"type",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9 mb-3">\n <div class="media-type-badge-region"></div>\n </div>\n\n <p class="fw-semibold col-3">'+s((n.lang||t&&t.lang||l).call(a,"duration",{name:"lang",hash:{},data:i}))+'</p>\n \n <div class="col-9">\n <div class="duration-region"></div>\n </div>\n</div>'},useData:!0})},30225:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,l=e.escapeExpression;return"<p>"+l(a(null!=(o=null!=t?t.options:t)?o.duration:o,t))+"</p>\n\n<div class='overflow-hidden rounded-3 border border-secondary-subtle p-3'>\n <div class='position-relative z-1'>\n <div class='position-absolute w-100'>\n <div class='bg-light rounded-3 "+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.durationBar:o,t))+"'></div>\n </div>\n </div>\n <div class='position-relative z-1' style="+l(a(null!=(o=null!=t?t.options:t)?o.clipPosition:o,t))+">\n <div class='bg-blue rounded-3 px-1 "+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.durationBar:o,t))+"' style="+l(a(null!=(o=null!=t?t.options:t)?o.clipDurationWidth:o,t))+"></div>\n </div>\n <div class='d-flex justify-content-between text-body-secondary'>\n <span>"+l(a(null!=(o=null!=t?t.options:t)?o.startDuration:o,t))+"</span>\n <span>"+l(a(null!=(o=null!=t?t.options:t)?o.parentDuration:o,t))+"</span>\n </div>\n</div>"},useData:!0})},85348:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,l=e.escapeExpression;return'<div class="d-inline-block rounded-pill text-white ps-1 pe-2 '+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.mediaTypeBadge:o,t))+" "+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.mediaType:o)?o.bgClass:o,t))+'">\n <div class="svg-container sm">'+(null!=(o=a(null!=(o=null!=(o=null!=t?t.options:t)?o.mediaType:o)?o.svg:o,t))?o:"")+'</div>\n <span class="font-size-sm align-text-top">'+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.mediaType:o)?o.label:o,t))+"</span>\n</div>"},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3969],{89375:function(e,r,t){t.d(r,{j:function(){return i}});var a=t(31647),n=" - ClickView",i={setPageTitle:function(e){e&&a.Q.Ab.SetPageTitle(function(e){return e.length+12<=60?e+n:e.substring(0,57)+"..."+n}(e))}}},86242:function(e,r,t){t.d(r,{Oo:function(){return f},b2:function(){return v}});var a=t(32735),n=t(57857),i=t(49642),c=t(90547),l=t(5256),o=t(89146),u=t(85475),s=t(39396);function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,n,i,c,l=[],o=!0,u=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;o=!1}else for(;!(o=(a=i.call(t)).done)&&(l.push(a.value),l.length!==r);o=!0);}catch(e){u=!0,n=e}finally{try{if(!o&&null!=t.return&&(c=t.return(),Object(c)!==c))return}finally{if(u)throw n}}return l}}(e,r)||function(e,r){if(e){if("string"==typeof e)return b(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?b(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}var d=n.T.encloseNamespace("shared.breadcrumbComponent"),y=a.forwardRef((function(e,r){var t=e.breadcrumb,n=t.name,c=t.appLink,l=t.active,o=e.withBackIcon,m=n,b=null;return m.length>48&&(m=n.slice(0,48)+"...",b=n),a.createElement("li",{className:"breadcrumb-item".concat(l?" active":""),title:b},l?a.createElement("strong",null,m):a.createElement(i.F,{appLink:c,ref:r},o&&a.createElement(s.x,{svgName:u.vn.ChevronLeft,size:s.S.Small}),a.createElement("span",{className:o?"ms-2":""},m)))})),f=function(e){var r=e.breadcrumbs,t=(0,l.a)(c.r.XS),n=(null==r?void 0:r.length)||0,i=m(a.useState(!1),2),o=i[0],u=i[1],s=m(a.useState(!1),2),b=s[0],f=s[1],v=a.useRef(null);if(a.useEffect((function(){var e,t=null!==(e=null==r?void 0:r.reduce((function(e,r){return e+r.name.length}),0))&&void 0!==e?e:0;n>4&&t>64&&u(!0)}),[null==r?void 0:r.length]),a.useLayoutEffect((function(){var e;b&&(null===(e=v.current)||void 0===e||e.focus())}),[v.current,b]),!n||t&&n<2)return a.createElement(a.Fragment,null);if(t)return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},a.createElement(y,{breadcrumb:r[n-2],withBackIcon:!0})));var g=a.createElement(y,{breadcrumb:r[0]}),p=n>2?a.createElement(y,{breadcrumb:r[1]}):a.createElement(a.Fragment,null),h=n>3?a.createElement(y,{breadcrumb:r[n-2]}):a.createElement(a.Fragment,null),E=n>1?a.createElement(y,{breadcrumb:r[n-1]}):a.createElement(a.Fragment,null),w=r.slice(2,n-2);return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},g,p,o?a.createElement("li",{className:"breadcrumb-item"},a.createElement("button",{className:"btn-link",onClick:function(){u(!1),f(!0)},"aria-label":d("expand")},"...")):w.map((function(e,r){return a.createElement(y,{key:r,breadcrumb:e,ref:0===r?v:null})})),h,E))},v=a.memo((function(e){var r=e.numItems,t=void 0===r?3:r;return(0,l.a)(c.r.XS)?a.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},o.u.getPartialLoadingItems({numItems:t}).map((function(e,r){var t=e.width;return a.createElement("li",{key:r,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:t},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},84611:function(e,r,t){t.d(r,{f:function(){return c}});var a=t(32735),n=t(39396),i={circle:"Uxnsl",img:"BQ87Y"};function c(e){var r;return e.imageUrl||e.svgName?e.imageUrl?a.createElement("div",{className:"".concat(i.img," rounded-circle h-100 w-100"),style:{backgroundImage:"url(".concat(e.imageUrl,")")}}," "):a.createElement("div",{className:"".concat(i.circle," ").concat(e.variant?"bg-".concat(e.variant):""," text-").concat(e.textVariant," rounded-circle h-100 w-100 ").concat(null!==(r=e.svgWrapperClassName)&&void 0!==r?r:"")},a.createElement(n.x,{svgName:e.svgName,size:e.svgSize})):a.createElement(a.Fragment,null)}c.defaultProps={textVariant:"white"}},90547:function(e,r,t){var a;t.d(r,{r:function(){return a}}),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)"}(a||(a={}))},34107:function(e,r,t){t.d(r,{D:function(){return l}});var a=t(2248),n=t(68003),i=t(40221),c=t(84657),l={domainLibraries:function(e,r,t,a){return{url:n._.urlBuilder("/api/domain/v2/me/libraries",{type:e,maxCategoryDepth:0}),key:"libraries:".concat(e.sort().join(":")),formatData:function(e){return e.map((function(e){return e.data}))},success:r,error:t,always:a}},libraryRequestLibraries:function(){return{url:"{gateway}/v1/library-requests/libraries",key:"libraries"}},librariesWithCategories:function(){return{url:n._.urlBuilder("/api/domain/v2/me/libraries",{type:["sharedLibrary","customLibrary","unpublishedCustomLibrary"],maxCategoryDepth:5}),key:"libraries:with:categories",normalize:!1}},librariesWithOwnerLogos:function(e,r,t,a){return e.sort(),{url:n._.urlBuilder("/api/domain/v2/objects",{query:c.v.LIBRARY_COLLECTION,id:e}),key:"libraries:owner:logo:".concat(e.join(",")),success:r,error:t,always:a}},library:function(e,r,t,a){return{url:n._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:c.v.LIBRARY}),key:"library:".concat(e),success:r,error:t,always:a}},exchange:function(e){return{url:n._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"categorytree"}),key:"exchange"}},streamableLearning:function(){return{url:"{gateway}/v1/streamable-learning-library",key:"streamable:learning"}},librarySubscribers:function(e,r){var t={};return r&&(t.cursor=r),{url:n._.urlBuilder("{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers"),t),key:"library:subscribers:".concat(e,":").concat(r)}},libraryOwner:function(e){return{url:"{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers?ownerOnly=true"),key:"library:owner:".concat(e),formatData:function(e){return i.m.first(e.data)}}},updateSubscriberPermissions:function(e,r,t,n,i){return{url:"{gateway}/v1/libraries/".concat(e,"/library-request-permissions"),key:"update:subscriber:permissions:".concat(e,":").concat(r),type:a.k.PUT,data:{customerId:r,granted:t},invalidationKeys:["library:owner:".concat(e),"library:subscribers:".concat(e)],success:n,error:i}},removeSubscriber:function(e,r,t,n){return{url:"{gateway}/v1/objects/".concat(e,"/subscribedcustomers?memberId=").concat(r),key:"revoke:subscription:".concat(e,":").concat(r),type:a.k.DELETE,invalidationKeys:["library:subscribers:".concat(e)],success:t,error:n}},folder:function(e,r,t,a){return{url:"{gateway}/v1/objects/".concat(e,"?query=banner,libraries"),key:"library:folder:".concat(e),success:r,error:t,always:a}},videoFolders:function(e){return{url:"{gateway}/v1/objects/".concat(e,"/categories?query=libraries"),key:"video:folders:".concat(e)}},folderParentTree:function(e,r,t,a){return{url:"/api/domain/v2/categories/".concat(e,"/parent-tree?includeAll=false"),key:"folder:parent:tree".concat(e),success:r,error:t,always:a}},childFolders:function(e,r,t,a,n){var i="{gateway}/v1/objects/".concat(e,"/categories?query={limit:100}thumbnail"),c="child:folders:".concat(e);return r&&(i+="&cursor=".concat(r),c+=":".concat(r)),{url:i,key:c,formatData:function(e){var r=e.data.sort((function(e,r){return e.name.toLowerCase().localeCompare(r.name.toLowerCase())}));return Object.assign(Object.assign({},e),{data:r})},success:t,error:a,always:n}},addToLibrary:function(e,r){var t=["folder","videos",e.metadata.destinationCategoryId,r].filter((function(e){return!!e})).join(":");return{url:"{gateway}/v1/library-requests",key:"add:".concat(e.objectId,":to:").concat(e.destinationLibraryId,":").concat(e.metadata.destinationCategoryId),type:a.k.POST,data:e,invalidationKeys:t}},libraries:function(){return{url:"{gateway}/v1/users/me/libraries",key:"objects:libraries"}}}},89146:function(e,r,t){function a(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}t.d(r,{u:function(){return i}});var n={numItems:5,minWidth:50,maxWidth:100},i={getPartialLoadingItems:function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},n),r);return(e=Array(t.numItems),function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return a(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*t.maxWidth),t.minWidth),"px")}}))}}},52814:function(e,r,t){t.d(r,{y:function(){return n}});var a=t(32735);function n(){return a.createElement("div",{className:"partial-loading-background w-100 rounded-3",style:{height:"3.5rem"}}," ")}},23969:function(e,r,t){t.r(r),t.d(r,{LibraryRequestSettingsLibrariesView:function(){return w}});var a=t(32735),n=t(57857),i=t(31647),c=t(86120),l=t(40221),o=t(89375),u=t(86242),s=t(66703),m=t(34107),b=t(50997),d=t(52814),y=t(49642),f=t(84611),v=t(85475),g={libraryIcon:"hQt1a"};function p(e){var r,t;return a.createElement(y.F,{className:"p-2 border rounded-3 d-flex align-items-center mb-2 text-decoration-none",appLink:{application:b.OV.LIBRARY_REQUESTS,action:b.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[e.library.id]}},a.createElement("div",{className:"".concat(g.libraryIcon," me-2")},a.createElement(f.f,{svgName:v.vn.Library,imageUrl:null===(t=null===(r=e.library.owner)||void 0===r?void 0:r.logo)||void 0===t?void 0:t.url,variant:"ultramarine"})),a.createElement("h3",{className:"h6 mb-0"},e.library.name))}var h="libraryEditor.libraryRequestSettingsLibraries",E=n.T.encloseNamespace(h);function w(){var e=c.a.useBasicFetch(m.D.domainLibraries(["customLibrary","unpublishedCustomLibrary"]));a.useEffect((function(){return o.j.setPageTitle(E("libraryRequestSettings"))}),[]),a.useEffect((function(){e.data&&(e.data.length>1||i.Q.C$.trigger({application:b.OV.LIBRARY_REQUESTS,action:b.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[l.m.first(e.data).id]},{replace:!0}))}),[e.data]);var r=[{name:E("libraryEditor"),appLink:{application:b.OV.LIBRARY_EDITOR,action:b.eX.LibraryEditor.HOME}},{name:E("libraryRequestSettings"),appLink:{application:b.OV.LIBRARY_REQUESTS,action:b.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES},active:!0}];return a.createElement("div",{className:"bg-white p-3"},a.createElement("h1",{className:"h3 mb-2"},a.createElement(s.x,{namespace:h,phrase:"libraryRequestSettings"})),a.createElement(u.Oo,{breadcrumbs:r}),a.createElement("hr",null),a.createElement("h2",{className:"h5 mb-2"},a.createElement(s.x,{namespace:h,phrase:"myLibraries"})),e.data?a.createElement(a.Fragment,null,e.data.map((function(e){return a.createElement(p,{key:e.id,library:e})}))):a.createElement(a.Fragment,null,a.createElement("div",{className:"mb-2"},a.createElement(d.y,null)),a.createElement("div",{className:"mb-2"},a.createElement(d.y,null))))}}}]);
|