@clickview/library-editor 1.6.1-dev.0 → 1.6.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/css/1832-library-editor-16982d18f9.chunk.css +2 -0
- package/dist/css/{2417-library-editor-28b1ddbe61.chunk.css → 2417-library-editor-1232df0f0a.chunk.css} +1 -1
- package/dist/css/{3427-library-editor-2ba6a08f4c.chunk.css → 3427-library-editor-8442ad6453.chunk.css} +1 -1
- package/dist/css/4860-library-editor-27c2a56d40.chunk.css +2 -0
- package/dist/css/{5047-library-editor-d59ace1885.chunk.css → 5047-library-editor-3ed99ac07f.chunk.css} +1 -1
- package/dist/css/5747-library-editor-615300053c.chunk.css +2 -0
- package/dist/css/6093-library-editor-3b3ef2f270.chunk.css +2 -0
- package/dist/css/{6625-library-editor-d6697f1eb0.chunk.css → 6625-library-editor-89b6e935f3.chunk.css} +1 -1
- package/dist/css/7053-library-editor-43ee5fb1f9.chunk.css +2 -0
- package/dist/css/9695-library-editor-a3a0f8d8e8.chunk.css +2 -0
- package/dist/css/9927-library-editor-e3b21e68b0.chunk.css +2 -0
- package/dist/css/{library-editor-app-3665b91943.css → library-editor-app-520ef9f4dd.css} +1 -1
- package/dist/en.json +1 -1
- package/dist/scripts/1203-c5dbf7e172.chunk.js +1 -0
- package/dist/scripts/{1832-89afc0b65d.chunk.js → 1832-9528386bfe.chunk.js} +1 -1
- package/dist/scripts/{2098-c2685cf5de.chunk.js → 2098-81d327208e.chunk.js} +1 -1
- package/dist/scripts/259-fb7e645a88.chunk.js +1 -0
- package/dist/scripts/2802-b2ecdec04d.chunk.js +2 -0
- package/dist/scripts/{3096-0b8b6273ec.chunk.js → 3096-1996cb2491.chunk.js} +1 -1
- package/dist/scripts/4201-973ee89615.chunk.js +1 -0
- package/dist/scripts/4703-91a9057db3.chunk.js +1 -0
- package/dist/scripts/4810-90c94e948c.chunk.js +1 -0
- package/dist/scripts/4860-56e7955cd4.chunk.js +1 -0
- package/dist/scripts/4983-aaf93b05f3.chunk.js +1 -0
- package/dist/scripts/5047-1eb393ebcb.chunk.js +1 -0
- package/dist/scripts/5248-e994f353a6.chunk.js +1 -0
- package/dist/scripts/5356-1642cf84ae.chunk.js +1 -0
- package/dist/scripts/5431-9b17f3323f.chunk.js +1 -0
- package/dist/scripts/5665-0883ca6960.chunk.js +1 -0
- package/dist/scripts/{5747-31b86123b7.chunk.js → 5747-c94ce9aec7.chunk.js} +1 -1
- package/dist/scripts/5967-4f0965dfb6.chunk.js +1 -0
- package/dist/scripts/{6092-6bbe64e4ec.chunk.js → 6092-95acc023c1.chunk.js} +2 -2
- package/dist/scripts/6093-d60094ebe6.chunk.js +1 -0
- package/dist/scripts/{6625-51f84d53ce.chunk.js → 6625-39e5f05b25.chunk.js} +1 -1
- package/dist/scripts/{6788-7373d05068.chunk.js → 6788-2c2381f971.chunk.js} +1 -1
- package/dist/scripts/{7002-14dba2483e.chunk.js → 7002-4895587ec3.chunk.js} +1 -1
- package/dist/scripts/7053-312e4779fe.chunk.js +1 -0
- package/dist/scripts/7251-787b3da712.chunk.js +2 -0
- package/dist/scripts/8420-a48a49afa5.chunk.js +1 -0
- package/dist/scripts/{8727-0e6e346980.chunk.js → 8727-24d6b079b1.chunk.js} +1 -1
- package/dist/scripts/9195-18d277a22b.chunk.js +1 -0
- package/dist/scripts/9695-72bc239f92.chunk.js +1 -0
- package/dist/scripts/9927-6933b86ad4.chunk.js +1 -0
- package/dist/scripts/bundle-b7ff45d66e.min.js +2 -0
- package/package.json +2 -2
- package/dist/css/1832-library-editor-761fcb8755.chunk.css +0 -2
- package/dist/css/4860-library-editor-d2f7f18ab7.chunk.css +0 -2
- package/dist/css/5747-library-editor-a3e5ded646.chunk.css +0 -2
- package/dist/css/6093-library-editor-07e26e7dd0.chunk.css +0 -2
- package/dist/css/7053-library-editor-96752915ef.chunk.css +0 -2
- package/dist/css/9695-library-editor-a995f8ddfd.chunk.css +0 -2
- package/dist/scripts/2526-dda01a61c8.chunk.js +0 -1
- package/dist/scripts/259-01aab15df9.chunk.js +0 -1
- package/dist/scripts/4198-bb0a5793bb.chunk.js +0 -1
- package/dist/scripts/4201-d09f8e78d9.chunk.js +0 -1
- package/dist/scripts/4269-61604530d2.chunk.js +0 -1
- package/dist/scripts/4810-b140d9a182.chunk.js +0 -1
- package/dist/scripts/4860-e790102563.chunk.js +0 -1
- package/dist/scripts/5047-d7e3a03e63.chunk.js +0 -1
- package/dist/scripts/5248-24be292136.chunk.js +0 -1
- package/dist/scripts/5356-d7c8462e69.chunk.js +0 -1
- package/dist/scripts/5431-2e33ec3db5.chunk.js +0 -1
- package/dist/scripts/5967-09e9945e4d.chunk.js +0 -1
- package/dist/scripts/6092-dc2d705c86.chunk.js +0 -2
- package/dist/scripts/6093-7981719748.chunk.js +0 -1
- package/dist/scripts/7053-31dc9ca367.chunk.js +0 -1
- package/dist/scripts/7251-a247842ccb.chunk.js +0 -2
- package/dist/scripts/8420-5718e95a30.chunk.js +0 -1
- package/dist/scripts/9231-5de6f18fae.chunk.js +0 -2
- package/dist/scripts/9592-35ee192235.chunk.js +0 -1
- package/dist/scripts/9695-efcf04cb36.chunk.js +0 -1
- package/dist/scripts/bundle-0dde146b0f.min.js +0 -2
- package/dist/scripts/bundle-0dde146b0f.min.js.LICENSE.txt +0 -1
- package/dist/scripts/bundle-58ec5ddd11.min.js +0 -2
- package/dist/scripts/bundle-58ec5ddd11.min.js.LICENSE.txt +0 -1
- package/typings/libs/Trackers.d.ts +0 -10
- /package/dist/css/{4269-library-editor-53b01520c3.chunk.css → 1203-library-editor-53b01520c3.chunk.css} +0 -0
- /package/dist/css/{4198-library-editor-76fe7e394b.chunk.css → 4983-library-editor-76fe7e394b.chunk.css} +0 -0
- /package/dist/css/{2526-library-editor-14f7d9be38.chunk.css → 9195-library-editor-14f7d9be38.chunk.css} +0 -0
- /package/dist/scripts/{1010-24607acfed.chunk.js → 1010-f5821049de.chunk.js} +0 -0
- /package/dist/scripts/{1086-f04d5fadc1.chunk.js → 1086-ba954c2a70.chunk.js} +0 -0
- /package/dist/scripts/{1409-114ad97f77.chunk.js → 1409-fd44225dc3.chunk.js} +0 -0
- /package/dist/scripts/{2417-51eb61a04f.chunk.js → 2417-f94be32319.chunk.js} +0 -0
- /package/dist/scripts/{243-7b872b7680.chunk.js → 243-a47bc2738b.chunk.js} +0 -0
- /package/dist/scripts/{2692-88c450caf0.chunk.js → 2692-15c761ec3d.chunk.js} +0 -0
- /package/dist/scripts/{2733-0ac0b6e426.chunk.js → 2733-c490fcd11e.chunk.js} +0 -0
- /package/dist/scripts/{9231-5de6f18fae.chunk.js.LICENSE.txt → 2802-b2ecdec04d.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2803-98bcd79ba5.chunk.js → 2803-4001a13e71.chunk.js} +0 -0
- /package/dist/scripts/{2888-003112c51f.chunk.js → 2888-367d734290.chunk.js} +0 -0
- /package/dist/scripts/{299-b144ff4735.chunk.js → 299-e705baba74.chunk.js} +0 -0
- /package/dist/scripts/{3122-ef94efcef2.chunk.js → 3122-2994bbc040.chunk.js} +0 -0
- /package/dist/scripts/{3427-97db759df9.chunk.js → 3427-c123fde939.chunk.js} +0 -0
- /package/dist/scripts/{3639-0103f45f8f.chunk.js → 3639-3a08b64061.chunk.js} +0 -0
- /package/dist/scripts/{3763-ed8d0efc20.chunk.js → 3763-6bcada88e2.chunk.js} +0 -0
- /package/dist/scripts/{3803-3d479fd404.chunk.js → 3803-d2d3b20313.chunk.js} +0 -0
- /package/dist/scripts/{400-b1ef6e7eff.chunk.js → 400-00070f1714.chunk.js} +0 -0
- /package/dist/scripts/{409-8f9b85f515.chunk.js → 409-1285d42d9a.chunk.js} +0 -0
- /package/dist/scripts/{4245-02b1f4ef99.chunk.js → 4245-539cbeccf6.chunk.js} +0 -0
- /package/dist/scripts/{435-49aa1bf06b.chunk.js → 435-5359811578.chunk.js} +0 -0
- /package/dist/scripts/{4353-7d8dd2cde6.chunk.js → 4353-b4b96c0408.chunk.js} +0 -0
- /package/dist/scripts/{4591-da8d98f460.chunk.js → 4591-3fa9999f29.chunk.js} +0 -0
- /package/dist/scripts/{4885-4127ab3a30.chunk.js → 4885-dfe20cec34.chunk.js} +0 -0
- /package/dist/scripts/{514-f1f0a9dfaf.chunk.js → 514-8288578cec.chunk.js} +0 -0
- /package/dist/scripts/{5412-36938637ec.chunk.js → 5412-468bf7d847.chunk.js} +0 -0
- /package/dist/scripts/{5418-20996c0343.chunk.js → 5418-b740aac744.chunk.js} +0 -0
- /package/dist/scripts/{546-0cec8e55ef.chunk.js → 546-6736b53bcd.chunk.js} +0 -0
- /package/dist/scripts/{6092-6bbe64e4ec.chunk.js.LICENSE.txt → 6092-95acc023c1.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6420-2178cb2561.chunk.js → 6420-6bae432c6b.chunk.js} +0 -0
- /package/dist/scripts/{6774-dd35a32f7d.chunk.js → 6774-580a63bbeb.chunk.js} +0 -0
- /package/dist/scripts/{693-021c33ce1a.chunk.js → 693-0ae38e2ba5.chunk.js} +0 -0
- /package/dist/scripts/{7190-7208221818.chunk.js → 7190-1641f45cb9.chunk.js} +0 -0
- /package/dist/scripts/{7251-a247842ccb.chunk.js.LICENSE.txt → 7251-787b3da712.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8074-fdddb2e35b.chunk.js → 8074-e02348d9c5.chunk.js} +0 -0
- /package/dist/scripts/{8343-c23e38e87b.chunk.js → 8343-302fa9dead.chunk.js} +0 -0
- /package/dist/scripts/{8362-eafdfe9326.chunk.js → 8362-a88a675488.chunk.js} +0 -0
- /package/dist/scripts/{8726-a91abb31b9.chunk.js → 8726-18e0343855.chunk.js} +0 -0
- /package/dist/scripts/{8762-62382b3601.chunk.js → 8762-afe0358334.chunk.js} +0 -0
- /package/dist/scripts/{8906-16bf68d7a8.chunk.js → 8906-ad7ae16f53.chunk.js} +0 -0
- /package/dist/scripts/{9167-1f83122dd7.chunk.js → 9167-46f5b4112f.chunk.js} +0 -0
- /package/dist/scripts/{9298-c38c7a39a4.chunk.js → 9298-89f5e3b9c8.chunk.js} +0 -0
- /package/dist/scripts/{9355-996bb2c2aa.chunk.js → 9355-2eb7bb39e2.chunk.js} +0 -0
- /package/dist/scripts/{9357-3c7d66d47b.chunk.js → 9357-48623968db.chunk.js} +0 -0
- /package/dist/scripts/{9383-b1bd4cce7d.chunk.js → 9383-e274073684.chunk.js} +0 -0
- /package/dist/scripts/{6092-dc2d705c86.chunk.js.LICENSE.txt → bundle-b7ff45d66e.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8420],{46814:function(e,t,n){"use strict";n.r(t),n.d(t,{PastReleasesView:function(){return Y}});var r=n(39479),o=n(31647),i=n(21679),c=n(57857),a=n(70065),s=n(52076),l=n(47022),u=n(36357),f=n(71192),p=n(70763),y=n(17422),h=n(30305),d=n(58688),b=n(48404),v=n(9484),g=n(3059),m=n(95061),w=n(39090),O=(n(14129),n(7572)),S=n(46415),P=n(56750),C=n.n(P),R=n(8614),j=n(7170),k=n(5344);function E(e){return E="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},E(e)}function _(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,r.key,r)}}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function I(e,t){if(t&&("object"===E(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)}function V(e){return V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},V(e)}var D=function(e){!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&&T(e,t)}(c,e);var t,n,r,o,i=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=V(r);if(o){var n=V(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return I(this,e)});function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,e)}return t=c,(n=[{key:"name",get:function(){return"PastReleasesFiltersComponent"}},{key:"template",get:function(){return C()}},{key:"lang",get:function(){return"contentUpdates.pastReleasesFilters"}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceRegion:!1,partialLoading:y.LP.PastReleasesSearchFilter}}}},{key:"getVisibleFilters",value:function(){return new j.y(this.collection.filter((function(e){return k.qr.showFilter(e)})))}},{key:"renderFilterList",value:function(){var e=new R.$V({collection:this.getVisibleFilters(),channelName:this.options.channelName});this.showChildView("filterList",e)}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderFilterList()}}])&&_(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Q.Component),L=n(48088),N=n(68536),x=n.n(N);function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function F(e,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,r.key,r)}}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function M(e,t){if(t&&("object"===U(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)}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}var W=function(e){!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&&A(e,t)}(c,e);var t,n,r,o,i=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=B(r);if(o){var n=B(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return M(this,e)});function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,e)}return t=c,(n=[{key:"name",get:function(){return"PastReleasesHeaderComponent"}},{key:"props",get:function(){return["filterCollection"]}},{key:"lang",get:function(){return"contentUpdates.pastReleasesHeader"}},{key:"className",get:function(){return"d-flex justify-content-between align-items-center p-3 border-bottom"}},{key:"template",get:function(){return x()}},{key:"regions",value:function(){return{filters:{el:".filters-region"}}}},{key:"events",value:function(){return{"click .generate-pdf":"onClickGeneratePdf"}}},{key:"onClickGeneratePdf",value:function(){L.Radio.channel(this.options.channelName).trigger("generate:pdf")}},{key:"renderFilters",value:function(){var e=new D({collection:this.filterCollection,channelName:this.options.channelName});this.showChildView("filters",e)}},{key:"viewOptions",value:function(){return{showGeneratePdf:this.options.showGeneratePdf}}},{key:"onRender",value:function(){this.renderFilters()}}])&&F(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Q.Component),G=n(82405),H=n(73616),Q=n(29565),q=n(69711),J=n.n(q);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 z(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,r.key,r)}}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}function Z(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)}function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$(e)}var Y=function(e){!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)}(j,e);var t,n,P,C,R=(P=j,C=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=$(P);if(C){var n=$(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Z(this,e)});function j(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,j),R.call(this,e)}return t=j,(n=[{key:"initialize",value:function(){this.bindListeners(),this.settingsDataService=i.u.getInstance(h.Or.Settings,this),this.contentUpdatesDataService=i.u.getInstance(h.Or.ContentUpdates,this),this.videoDataService=i.u.getInstance(h.Or.Video,this),this.libraryDataService=i.u.getInstance(h.Or.Library,this),this.videoMixinService=i.u.getInstance(h.K9.VideoMixin,this)}},{key:"name",get:function(){return"PastReleasesView"}},{key:"title",get:function(){return c.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.pastReleases"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white rounded"}},{key:"template",get:function(){return J()}},{key:"regions",value:function(){return{header:{el:".header-region",replaceElement:!0},leftNav:{el:".left-nav-region",replaceElement:!0},listHeader:{el:".list-header-region",replaceElement:!0},videos:{el:".video-list-region",replaceElement:!0,partialLoading:y.LP.VideoGroupList},pagination:{el:".pagination-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(h.Vk.SETTINGS,"".concat(h.M_.CUSTOMER_SETTINGS,":sync ").concat(h.M_.USER_SETTINGS,":sync"),this.render),this.listenTo(this.channelName,"generate:pdf",this.onClickGeneratePdf),this.listenTo(h.Vk.RESTRICTED_VIDEO,"".concat(h.M_.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestrictedVideos),this.listenTo(this.channelName,h.Vy.Filters.FILTER_CHANGED,r.debounce(this.onFilterChange,100)),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"initializeFilterCollection",value:function(){var e=this;this.filterCollection||this.libraryDataService.getHostedLibraries((function(t){return e.onLibrariesSync(t)}))}},{key:"onLibrariesSync",value:function(e){var t=this;this.filterCollection||(this.libraryIds=w.RF.getLibraryIds(this.options.queryParams[H.g.Libraries],e),this.subjectCollectionIdentifier=new g.xw({dateQueryString:this.options.queryParams[H.g.ReleaseDate],libraryIds:this.libraryIds}),this.contentUpdatesDataService.getRecentVideoSubjects(this.subjectCollectionIdentifier,(function(n){return t.onSubjectsSync(e,n)})))}},{key:"onSubjectsSync",value:function(e,t){var n=w.RF.getSubjectOptions(t);this.filterCollection=w.RF.getFilterCollection(e,n,this.options.queryParams);var r=w.RF.getSelectedSubjects(this.filterCollection),o=n.length>1&&n.length===r.length;this.videoCollectionIdentifier=new g.IJ({dateQueryString:this.options.queryParams[H.g.ReleaseDate],libraryIds:this.libraryIds,subjects:!o&&r,cursor:this.options.queryParams.cursor}),this.listenTo(h.Vk.CONTENT_UPDATES,"".concat(this.videoCollectionIdentifier.toString(),":sync"),this.render),this.fetchVideos()}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new p.t(this.videoCollection.map((function(e){return new f.n({id:e.get("id")})}))))}},{key:"updateRestrictedVideos",value:function(){var e=this;this.videoMixinService.getAndMixinVideoCollectionRestrictions(this.videoCollection,null,(function(){return e.render()}))}},{key:"onFilterChange",value:function(){o.Q.AppLinkHelper.trigger({application:h.OV.CONTENT_UPDATES,action:h.eX.ContentUpdates.PAST_RELEASES,params:w.RF.getRouteQueryParams(this.filterCollection)})}},{key:"onClickGeneratePdf",value:function(){this.videoCollection.length&&(o.Q.AppLinkHelper.trigger({application:h.OV.CONTENT_UPDATES,action:h.eX.ContentUpdates.GENERATE_PDF,params:w.RF.getRouteQueryParams(this.filterCollection)}),this.logPdfAction())}},{key:"getContentClassName",value:function(){var e=Q.Z.content;return this.reviewSetting&&this.reviewSetting.get("value")?e+=" d-inline-block border-left ".concat(Q.Z.contentWithLeftNav):e+=" w-100",e}},{key:"logPdfAction",value:function(){var e={location:a.LocationContext.PastReleasesHeader,actionType:a.UserAction.Create,entity:a.EntityType.PDF,workflowPhase:a.WorkflowPhase.Start},t=w.RF.getSelectedSubjects(this.filterCollection),n=w.RF.getSelectedReleaseDate(this.filterCollection),r={libraries:this.libraryIds.join(","),subjects:t.map((function(e){return e.get("name")})).join(","),releaseDate:n.get("name")};s.k.logUserAction(r,e)}},{key:"renderHeader",value:function(){this.reviewSetting?this.showChildView("header",new O.u({activeTab:w.JI.PastReleases,reviewEnabled:this.reviewSetting.get("value")})):this.renderPartialLoading("header")}},{key:"renderLeftNav",value:function(){this.reviewSetting&&this.reviewSetting.get("value")&&this.showChildView("leftNav",new S.m({supportSiteUrl:this.config.get("supportSiteUrl"),currentUser:this.currentUser}))}},{key:"renderListHeader",value:function(){this.showChildView("listHeader",new W({filterCollection:this.filterCollection,channelName:this.channelName,showGeneratePdf:!!this.videoCollection&&!!this.videoCollection.length}))}},{key:"renderVideos",value:function(){this.config&&this.groupedVideoCollection?this.showChildView("videos",new G.D({collection:this.groupedVideoCollection,childOptions:{config:this.config,videoItemComponentType:d.U.PastReleases,videosWithMetadata:this.videosWithMetadata,customerHasCustomLibrary:this.customLibraries&&!!this.customLibraries.length,collectionViewChannel:this.channelName,currentUser:this.currentUser,libraries:this.customLibraries},emptyStateType:y.ub.PastReleases,emptyStateOptions:{heading:c.T.getPhrase(this.lang,"emptyState")}})):this.renderPartialLoading("videos")}},{key:"renderPagination",value:function(){if(this.videoCollection){var e=this.contentUpdatesDataService.getVideoCollectionCursors(this.videoCollectionIdentifier),t=new l.Q({cursors:e,appLink:{application:h.OV.CONTENT_UPDATES,action:h.eX.ContentUpdates.PAST_RELEASES,params:w.RF.getRouteQueryParams(this.filterCollection)}});this.showChildView("pagination",t)}}},{key:"fetchVideos",value:function(){this.filterCollection&&!this.videoCollection&&(this.videoCollection=this.contentUpdatesDataService.getRecentVideos(this.videoCollectionIdentifier),this.videoCollection&&(this.setVideosWithMetadata(),this.groupedVideoCollection=w.RF.groupVideosByReleaseMonth(this.videoCollection)))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var r=t.videosWithMetadata.get(e);r&&(r.set(n.toJSON()),r.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:b.p.config,currentUser:v.K.currentUser,customLibraries:m.T.libraries}}},{key:"onBeforeRender",value:function(){this.initializeFilterCollection(),this.fetchVideos(),this.videoCollection&&(this.groupedVideoCollection=w.RF.groupVideosByReleaseMonth(this.videoCollection)),this.reviewSetting=this.settingsDataService.getSetting(this.currentUser.get("customerId"),u.E.LibraryReview)}},{key:"viewOptions",value:function(){return{showLeftNav:this.reviewSetting&&this.reviewSetting.get("value"),contentClass:this.getContentClassName()}}},{key:"onRender",value:function(){this.renderHeader(),this.renderLeftNav(),this.renderListHeader(),this.renderVideos(),this.renderPagination()}}])&&z(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),j}(o.Q.View)},3059:function(e,t,n){"use strict";n.d(t,{KX:function(){return k},IJ:function(){return d},xw:function(){return O},F7:function(){return r.F}});var r=n(1091),o=n(39479),i=n(33303),c=n(30305),a=n(44937),s=n(39090);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(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,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e,t){if(t&&("object"===l(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)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=function(e){!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)}(d,e);var t,n,r,i,l=(r=d,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y(this,e)});function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(t=l.call(this,{collectionPrefix:"".concat(c.M_.RECENT_VIDEOS,":collection"),cursor:e.cursor,sort:e.sort})).setAdditionalData(e),t}return t=d,(n=[{key:"setAdditionalData",value:function(e){var t=e.libraryIds,n=e.dateQueryString,r=e.subjects;t&&(this.libraryIds=t),r&&(o.isArray(r)&&r.length&&(this.subjects=r),o.isArray(r)||(this.subjects=[r]));var i=o.findWhere(s.US,{queryString:n})||s.U1;this.dateOption=new a.Wx(i)}},{key:"toString",value:function(){var e,t=this.subjects&&this.subjects.length&&this.subjects.map((function(e){return escape(e.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat((e=t,function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.libraryIds&&(e.libraryIds=this.libraryIds),this.dateOption&&(e.from=this.dateOption.get("from"),e.to=this.dateOption.get("to")),this.subjects&&(e.subjectIds=o.flatten(this.subjects.map((function(e){return e.get("subjectIds")})))),this.cursor&&(e.cursor=this.cursor),e}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(i.J);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function 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,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var O=function(e){!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&&g(e,t)}(u,e);var t,n,r,i,l=(r=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(r);if(i){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=l.call(this,{collectionPrefix:"".concat(c.M_.RECENT_SUBJECTS,":collection"),sort:e.sort})).setAdditionalData(e),t}return t=u,(n=[{key:"setAdditionalData",value:function(e){var t=e.libraryIds,n=e.dateQueryString;t&&(this.libraryIds=t);var r=o.findWhere(s.US,{queryString:n})||s.U1;this.dateOption=new a.Wx(r)}},{key:"toString",value:function(){return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.libraryIds&&(e.libraryIds=this.libraryIds),this.dateOption&&(e.from=this.dateOption.get("from"),e.to=this.dateOption.get("to")),e}}])&&v(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(i.J);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 P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function R(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)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var k=function(e){!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&&C(e,t)}(i,e);var t,n,r,o=(n=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=j(n);if(r){var o=j(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return R(this,e)});function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return P(this,i),o.call(this,{collectionPrefix:c.M_.FOLDERS,id:e,sort:t,cursor:n})}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(i.J)},56750:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return e.propertyIsEnumerable,'<div class="d-inline-block border-right py-1 pr-3"><strong>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"filters",{name:"lang",hash:{},data:o}))+'</strong></div>\r\n<div class="filter-list-region d-inline-block pl-2"></div>'},useData:!0})},68536:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return e.propertyIsEnumerable,'<button class="generate-pdf btn btn-outline-dark d-inline-block" type="button">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"generatePdf",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,'<div class="filters-region d-inline-block"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showGeneratePdf:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},69711:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return'<div class="left-nav-region"></div>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,'<div class="header-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showLeftNav:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.contentClass:i,t))+'">\r\n<div class="list-header-region"></div>\r\n<div class="video-list-region"></div>\r\n<div class="pagination-region"></div>\r\n</div>'},useData:!0})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8727],{14129:function(t,e,n){"use strict";n.d(e,{U:function(){return m}});var o=n(48088),r=n(31647),i=n(70065),a=n(52076),l=n(61843),u=n(57857),c=n(91553),s=n.n(c);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 f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function h(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)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(m,t);var e,n,r,c,p=(r=m,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=d(r);if(c){var n=d(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return h(this,t)});function m(){return f(this,m),p.apply(this,arguments)}return e=m,(n=[{key:"name",get:function(){return"AwaitingReviewHeaderComponent"}},{key:"className",get:function(){return"d-flex justify-content-between align-items-center p-3 border-bottom"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"contentUpdates.awaitingReviewHeader"}},{key:"events",value:function(){return{"click .approve-all":"onClickApproveAll"}}},{key:"onClickApproveAll",value:function(){var t=this;new l.Mr(this.getApproveAllDialogOptions()).render().done((function(){return t.onConfirmApproveAll()})),this.logAction(i.WorkflowPhase.Start)}},{key:"onConfirmApproveAll",value:function(){o.Radio.channel(this.options.channelName).trigger("approve:all"),this.logAction(i.WorkflowPhase.Complete)}},{key:"getApproveAllDialogOptions",value:function(){return{title:u.T.getPhrase(this.lang,"dialogTitle"),text:u.T.getPhrase(this.lang,"dialogBody"),buttons:[{text:u.T.getPhrase(this.lang,"dialogButton"),className:"btn btn-dark",success:!0}]}}},{key:"logAction",value:function(t){var e={location:i.LocationContext.AwaitingReviewVideoListHeader,actionType:i.UserAction.Approve,descriptor:i.OperationDescriptor.All,entity:i.EntityType.Video,workflowPhase:t},n={approvedCount:this.collection.length};a.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{videosToReview:!!this.collection.length,multipleVideos:this.collection.length>1,numVideos:this.collection.length}}}])&&y(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),m}(r.Q.Component)},7572:function(t,e,n){"use strict";n.d(e,{u:function(){return b}});var o=n(31647),r=n(5181),i=n.n(r),a=n(35630),l=n(39090),u={heading:"V3KlV",tabsContainer:"PDRLS"};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function s(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function f(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(b,t);var e,n,o,r,c=(o=b,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=y(o);if(r){var n=y(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return f(this,t)});function b(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),c.call(this,t)}return e=b,(n=[{key:"name",get:function(){return"ContentUpdatesHeaderComponent"}},{key:"className",get:function(){return"d-flex align-items-end border-bottom"}},{key:"template",get:function(){return i()}},{key:"lang",get:function(){return"contentUpdates.contentUpdatesHeader"}},{key:"regions",value:function(){return{tabs:{el:".tabs-region"}}}},{key:"getTabs",value:function(){var t=l.HW;return this.options.reviewEnabled?t:t.filter((function(t){return t.name!==l.tF.AwaitingReview}))}},{key:"viewOptions",value:function(){return{styles:u}}},{key:"onRender",value:function(){var t=this.getTabs();t.length<=1||this.showChildView("tabs",new a.n({tabs:t,activeTab:this.options.activeTab,className:"border-0"}))}}])&&s(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),b}(o.Q.Component)},46415:function(t,e,n){"use strict";n.d(e,{m:function(){return m}});var o=n(31647),r=n(25692),i=n(87262),a=n(70065),l=n(52076),u=n(30305),c=n(67732),s=n.n(c),p=n(264);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 o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function h(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)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(m,t);var e,n,o,c,f=(o=m,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=d(o);if(c){var n=d(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return h(this,t)});function m(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),f.call(this,t)}return e=m,(n=[{key:"name",get:function(){return"ContentUpdatesLeftNavComponent"}},{key:"className",get:function(){return"d-inline-block ".concat("GuWDP")}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"contentUpdates.contentUpdatesLeftNav"}},{key:"appLinks",get:function(){return{".disable-review":{application:u.OV.CONTENT_UPDATES,action:u.eX.ContentUpdates.DISABLE_REVIEW}}}},{key:"events",value:function(){return{"click .disable-review":"onClickDisableReview"}}},{key:"onClickDisableReview",value:function(){var t={location:a.LocationContext.LeftNav,actionType:a.UserAction.Disable,entity:a.EntityType.CustomerSetting,descriptor:a.CustomerSettingDescriptor.LibraryReview,workflowPhase:a.WorkflowPhase.Start};l.k.logUserAction({},t)}},{key:"viewOptions",value:function(){var t;return{supportUrl:!p.g.hasLite&&i.o.getArticle(this.options.supportSiteUrl,r.w.LibraryReview,null===(t=this.options.currentUser)||void 0===t?void 0:t.get("countryCode"))}}}])&&y(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),m}(o.Q.Component)},82405:function(t,e,n){"use strict";n.d(e,{D:function(){return j}});var o=n(31647),r=n(57857),i=n(56371),a=n(30305),l=n(17422),u=n(23096),c=n(58688),s=n(89364),p=n.n(s),f=n(14727),y=n.n(f);function b(t){return b="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},b(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function m(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function v(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)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=O(t);if(e){var r=O(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return k(this,n)}}function k(t,e){if(e&&("object"===b(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)}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}var C=function(t){v(n,t);var e=w(n);function n(t){return h(this,n),e.call(this,t)}return m(n,[{key:"name",get:function(){return"VideoGroupItemComponent"}},{key:"template",get:function(){return y()}},{key:"className",get:function(){return"pt-3"}},{key:"defaults",get:function(){return{videoItemComponentType:c.U.Base}}},{key:"regions",value:function(){return{videos:{el:".video-list-region",replaceElement:!0}}}},{key:"getGroupTitle",value:function(){var t=this.options.groupTitleAttr||"groupTitle";return this.model.get(t)}},{key:"viewOptions",value:function(){return{groupTitle:this.getGroupTitle()}}},{key:"onRender",value:function(){this.showChildView("videos",new u.Y({collection:this.model.videos,videosWithMetadata:this.options.videosWithMetadata,application:a.OV.CONTENT_UPDATES,collectionIdentifier:null,videoItemComponentType:this.options.videoItemComponentType,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasCustomLibrary:this.options.customerHasCustomLibrary,currentUser:this.options.currentUser,hasCursors:!1,showEmptyState:!0}))}}]),n}(o.Q.Component),P=function(t){v(n,t);var e=w(n);function n(t){return h(this,n),e.call(this,t)}return m(n,[{key:"name",get:function(){return"VideoGroupItemComponentCollection"}},{key:"childView",get:function(){return C}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(o.Q.ComponentCollection),j=function(t){v(n,t);var e=w(n);function n(t){return h(this,n),e.call(this,t)}return m(n,[{key:"name",get:function(){return"VideoGroupListComponent"}},{key:"template",get:function(){return p()}},{key:"lang",get:function(){return"contentUpdates.videoGroupList"}},{key:"defaults",get:function(){return{emptyState:l.ub.Default}}},{key:"behaviors",get:function(){return[{behaviorClass:i.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.getEmptyStateComponentOptions(),emptyStateComponents:a.aW}]}},{key:"regions",value:function(){return{videos:{el:".videos-region",replaceElement:!0}}}},{key:"getEmptyStateComponentOptions",value:function(){return this.options.emptyStateType===l.ub.AwaitingReview?{heading:r.T.getPhrase(this.lang,"awaitingReviewEmptyStateHeading"),description:r.T.getPhrase(this.lang,"awaitingReviewEmptyStateBody")}:this.options.emptyStateType===l.ub.PastReleases?{heading:r.T.getPhrase(this.lang,"pastReleasesEmptyStateHeading")}:void 0}},{key:"onRender",value:function(){this.showChildView("videos",new P(this.options))}}]),n}(o.Q.Component)},35630:function(t,e,n){"use strict";n.d(e,{n:function(){return y}});var o=n(39479),r=n(31647),i={link:"aroLz",active:"ynoP4"},a=n(92655),l=n.n(a);function u(t){return u="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},u(t)}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function p(t,e){if(e&&("object"===u(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)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(y,t);var e,n,r,a,u=(r=y,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=f(r);if(a){var n=f(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return p(this,t)});function y(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),u.call(this,t)}return e=y,(n=[{key:"name",get:function(){return"TabsView"}},{key:"className",get:function(){var t="bg-white py-2 border-bottom";return this.options.className&&(t+=" ".concat(this.options.className)),t}},{key:"template",get:function(){return l()}},{key:"appLinks",get:function(){var t={};return this.options.tabs.forEach((function(e){return t[e.link.selector]=e.link.appLink})),t}},{key:"viewOptions",value:function(){var t=this.options.tabs.map((function(t){return Object.assign(Object.assign({},t),{link:t.link.selector.replace(".","")})}));return{styles:i,tabs:t}}},{key:"setActiveTab",value:function(){var t=this,e=!1;if(this.options.tabs.forEach((function(n){n.active=!1,n.link.selector===t.options.activeTab&&(n.active=!0,e=!0)})),!e){var n=o.first(this.options.tabs);n&&(n.active=!0)}}},{key:"onBeforeRender",value:function(){this.setActiveTab()}}])&&c(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),y}(r.Q.Component)},91553:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression;return'<button class="approve-all btn btn-dark d-inline-block '+a(t.lambda(null!=(i=null!=e?e.options:e)?i.btnClass:i,e))+'" type="button">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"approveBtn",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.numVideos:i},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression,l=null!=e?e:t.nullContext||{};return'<h5 class="d-inline-block m-0 '+a(t.lambda(null!=(i=null!=e?e.options:e)?i.headingClass:i,e))+'">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(l,"heading",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.numVideos:i},data:r}))+"</h5>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=e?e.options:e)?i.videosToReview:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})},5181:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda,l=t.escapeExpression;return'<div class="d-inline-block p-3 '+l(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.heading:i,e))+'"><h1 class="h3 m-0">'+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"contentUpdates",{name:"lang",hash:{},data:r}))+'</h1></div><div class="tabs-region d-inline-flex align-items-end '+l(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tabsContainer:i,e))+'"></div>'},useData:!0})},67732:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,u=t.escapeExpression;return' <p class="m-0">'+u((n.lang||e&&e.lang||l).call(a,"learnMore",{name:"lang",hash:{},data:r}))+" <a href="+u(t.lambda(null!=(i=null!=e?e.options:e)?i.supportUrl:i,e))+' target="_blank">'+u((n.lang||e&&e.lang||l).call(a,"learnMoreLink",{name:"lang",hash:{},data:r}))+"</a></p>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,u=t.escapeExpression;return'<div class="p-3 border-bottom">\r\n <h5>'+u((n.lang||e&&e.lang||l).call(a,"manualReviewHeading",{name:"lang",hash:{},data:r}))+"</h5>\r\n <p>"+u((n.lang||e&&e.lang||l).call(a,"manualReviewBody",{name:"lang",hash:{},data:r}))+'</p>\r\n <button class="btn btn-outline-dark text-center disable-review" type="button">'+u((n.lang||e&&e.lang||l).call(a,"manualReviewOffBtn",{name:"lang",hash:{},data:r}))+'</button>\r\n</div>\r\n<div class="p-3 border-bottom">\r\n <p class="m-0">'+u((n.lang||e&&e.lang||l).call(a,"noActionDisclaimer",{name:"lang",hash:{},data:r}))+"</p>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.supportUrl:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+"</div>"},useData:!0})},14727:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,'<h4 class="pl-3">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.groupTitle:i,e))+'</h4>\r\n<div class="video-list-region"></div>'},useData:!0})},89364:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="videos-region"></div>'},useData:!0})},92655:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r,i,a){var l;return t.propertyIsEnumerable,null!=(l=n.unless.call(null!=e?e:t.nullContext||{},null!=e?e.hide:e,{name:"unless",hash:{},fn:t.program(2,r,0,i,a),inverse:t.noop,data:r}))?l:""},2:function(t,e,n,o,r,i,a){t.propertyIsEnumerable;var l,u=t.lambda,c=t.escapeExpression;return' <a class="'+c(u(null!=(l=null!=(l=null!=a[1]?a[1].options:a[1])?l.styles:l)?l.link:l,e))+" p-2 "+c(u(null!=e?e.link:e,e))+" "+(null!=(l=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.active:e,{name:"if",hash:{},fn:t.program(3,r,0,i,a),inverse:t.noop,data:r}))?l:"")+'">'+c(u(null!=e?e.name:e,e))+"</a>\r\n"},3:function(t,e,n,o,r,i,a){var l;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(l=null!=(l=null!=a[1]?a[1].options:a[1])?l.styles:l)?l.active:l,e))+" border-bottom border-primary text-primary"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r,i,a){var l;return t.propertyIsEnumerable,null!=(l=n.each.call(null!=e?e:t.nullContext||{},null!=(l=null!=e?e.options:e)?l.tabs:l,{name:"each",hash:{},fn:t.program(1,r,0,i,a),inverse:t.noop,data:r}))?l:""},useData:!0,useDepths:!0})},29565:function(t,e){"use strict";e.Z={content:"utl4w",contentWithLeftNav:"K9CFZ"}}}]);
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8727],{14129:function(t,e,n){"use strict";n.d(e,{U:function(){return m}});var o=n(48088),r=n(31647),i=n(70065),a=n(52076),l=n(61843),u=n(57857),c=n(91553),s=n.n(c);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 f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function h(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)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(m,t);var e,n,r,c,p=(r=m,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=d(r);if(c){var n=d(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return h(this,t)});function m(){return f(this,m),p.apply(this,arguments)}return e=m,(n=[{key:"name",get:function(){return"AwaitingReviewHeaderComponent"}},{key:"className",get:function(){return"d-flex justify-content-between align-items-center p-3 border-bottom"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"contentUpdates.awaitingReviewHeader"}},{key:"events",value:function(){return{"click .approve-all":"onClickApproveAll"}}},{key:"onClickApproveAll",value:function(){var t=this;new l.Mr(this.getApproveAllDialogOptions()).render().done((function(){return t.onConfirmApproveAll()})),this.logAction(i.WorkflowPhase.Start)}},{key:"onConfirmApproveAll",value:function(){o.Radio.channel(this.options.channelName).trigger("approve:all"),this.logAction(i.WorkflowPhase.Complete)}},{key:"getApproveAllDialogOptions",value:function(){return{title:u.T.getPhrase(this.lang,"dialogTitle"),text:u.T.getPhrase(this.lang,"dialogBody"),buttons:[{text:u.T.getPhrase(this.lang,"dialogButton"),className:"btn btn-dark",success:!0}]}}},{key:"logAction",value:function(t){var e={location:i.LocationContext.AwaitingReviewVideoListHeader,actionType:i.UserAction.Approve,descriptor:i.OperationDescriptor.All,entity:i.EntityType.Video,workflowPhase:t},n={approvedCount:this.collection.length};a.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{videosToReview:!!this.collection.length,multipleVideos:this.collection.length>1,numVideos:this.collection.length}}}])&&y(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),m}(r.Q.Component)},7572:function(t,e,n){"use strict";n.d(e,{u:function(){return b}});var o=n(31647),r=n(5181),i=n.n(r),a=n(35630),l=n(39090),u={heading:"V3KlV",tabsContainer:"PDRLS"};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function s(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function f(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(b,t);var e,n,o,r,c=(o=b,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=y(o);if(r){var n=y(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return f(this,t)});function b(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),c.call(this,t)}return e=b,(n=[{key:"name",get:function(){return"ContentUpdatesHeaderComponent"}},{key:"className",get:function(){return"d-flex align-items-end border-bottom"}},{key:"template",get:function(){return i()}},{key:"lang",get:function(){return"contentUpdates.contentUpdatesHeader"}},{key:"regions",value:function(){return{tabs:{el:".tabs-region"}}}},{key:"getTabs",value:function(){var t=l.HW;return this.options.reviewEnabled?t:t.filter((function(t){return t.name!==l.tF.AwaitingReview}))}},{key:"viewOptions",value:function(){return{styles:u}}},{key:"onRender",value:function(){var t=this.getTabs();t.length<=1||this.showChildView("tabs",new a.n({tabs:t,activeTab:this.options.activeTab,className:"border-0"}))}}])&&s(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),b}(o.Q.Component)},46415:function(t,e,n){"use strict";n.d(e,{m:function(){return m}});var o=n(31647),r=n(25692),i=n(87262),a=n(70065),l=n(52076),u=n(30305),c=n(67732),s=n.n(c),p=n(264);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 o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function h(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)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(m,t);var e,n,o,c,f=(o=m,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=d(o);if(c){var n=d(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return h(this,t)});function m(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),f.call(this,t)}return e=m,(n=[{key:"name",get:function(){return"ContentUpdatesLeftNavComponent"}},{key:"className",get:function(){return"d-inline-block ".concat("GuWDP")}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"contentUpdates.contentUpdatesLeftNav"}},{key:"appLinks",get:function(){return{".disable-review":{application:u.OV.CONTENT_UPDATES,action:u.eX.ContentUpdates.DISABLE_REVIEW}}}},{key:"events",value:function(){return{"click .disable-review":"onClickDisableReview"}}},{key:"onClickDisableReview",value:function(){var t={location:a.LocationContext.LeftNav,actionType:a.UserAction.Disable,entity:a.EntityType.CustomerSetting,descriptor:a.CustomerSettingDescriptor.LibraryReview,workflowPhase:a.WorkflowPhase.Start};l.k.logUserAction({},t)}},{key:"viewOptions",value:function(){var t;return{supportUrl:!p.g.hasLite&&i.o.getArticle(this.options.supportSiteUrl,r.w.LibraryReview,null===(t=this.options.currentUser)||void 0===t?void 0:t.get("countryCode"))}}}])&&y(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),m}(o.Q.Component)},82405:function(t,e,n){"use strict";n.d(e,{D:function(){return j}});var o=n(31647),r=n(57857),i=n(56371),a=n(30305),l=n(17422),u=n(23096),c=n(58688),s=n(89364),p=n.n(s),f=n(14727),y=n.n(f);function b(t){return b="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},b(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function m(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function v(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)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=O(t);if(e){var r=O(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return k(this,n)}}function k(t,e){if(e&&("object"===b(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)}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}var C=function(t){v(n,t);var e=w(n);function n(t){return h(this,n),e.call(this,t)}return m(n,[{key:"name",get:function(){return"VideoGroupItemComponent"}},{key:"template",get:function(){return y()}},{key:"className",get:function(){return"pt-3"}},{key:"defaults",get:function(){return{videoItemComponentType:c.U.Base}}},{key:"regions",value:function(){return{videos:{el:".video-list-region",replaceElement:!0}}}},{key:"getGroupTitle",value:function(){var t=this.options.groupTitleAttr||"groupTitle";return this.model.get(t)}},{key:"viewOptions",value:function(){return{groupTitle:this.getGroupTitle()}}},{key:"onRender",value:function(){this.showChildView("videos",new u.Y({collection:this.model.videos,videosWithMetadata:this.options.videosWithMetadata,application:a.OV.CONTENT_UPDATES,collectionIdentifier:null,videoItemComponentType:this.options.videoItemComponentType,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasCustomLibrary:this.options.customerHasCustomLibrary,currentUser:this.options.currentUser,hasCursors:!1,showEmptyState:!0,libraries:this.options.libraries}))}}]),n}(o.Q.Component),P=function(t){v(n,t);var e=w(n);function n(t){return h(this,n),e.call(this,t)}return m(n,[{key:"name",get:function(){return"VideoGroupItemComponentCollection"}},{key:"childView",get:function(){return C}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(o.Q.ComponentCollection),j=function(t){v(n,t);var e=w(n);function n(t){return h(this,n),e.call(this,t)}return m(n,[{key:"name",get:function(){return"VideoGroupListComponent"}},{key:"template",get:function(){return p()}},{key:"lang",get:function(){return"contentUpdates.videoGroupList"}},{key:"defaults",get:function(){return{emptyState:l.ub.Default}}},{key:"behaviors",get:function(){return[{behaviorClass:i.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.getEmptyStateComponentOptions(),emptyStateComponents:a.aW}]}},{key:"regions",value:function(){return{videos:{el:".videos-region",replaceElement:!0}}}},{key:"getEmptyStateComponentOptions",value:function(){return this.options.emptyStateType===l.ub.AwaitingReview?{heading:r.T.getPhrase(this.lang,"awaitingReviewEmptyStateHeading"),description:r.T.getPhrase(this.lang,"awaitingReviewEmptyStateBody")}:this.options.emptyStateType===l.ub.PastReleases?{heading:r.T.getPhrase(this.lang,"pastReleasesEmptyStateHeading")}:void 0}},{key:"onRender",value:function(){this.showChildView("videos",new P(this.options))}}]),n}(o.Q.Component)},35630:function(t,e,n){"use strict";n.d(e,{n:function(){return y}});var o=n(39479),r=n(31647),i={link:"aroLz",active:"ynoP4"},a=n(92655),l=n.n(a);function u(t){return u="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},u(t)}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function p(t,e){if(e&&("object"===u(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)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(y,t);var e,n,r,a,u=(r=y,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=f(r);if(a){var n=f(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return p(this,t)});function y(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),u.call(this,t)}return e=y,(n=[{key:"name",get:function(){return"TabsView"}},{key:"className",get:function(){var t="bg-white py-2 border-bottom";return this.options.className&&(t+=" ".concat(this.options.className)),t}},{key:"template",get:function(){return l()}},{key:"appLinks",get:function(){var t={};return this.options.tabs.forEach((function(e){return t[e.link.selector]=e.link.appLink})),t}},{key:"viewOptions",value:function(){var t=this.options.tabs.map((function(t){return Object.assign(Object.assign({},t),{link:t.link.selector.replace(".","")})}));return{styles:i,tabs:t}}},{key:"setActiveTab",value:function(){var t=this,e=!1;if(this.options.tabs.forEach((function(n){n.active=!1,n.link.selector===t.options.activeTab&&(n.active=!0,e=!0)})),!e){var n=o.first(this.options.tabs);n&&(n.active=!0)}}},{key:"onBeforeRender",value:function(){this.setActiveTab()}}])&&c(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),y}(r.Q.Component)},91553:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression;return'<button class="approve-all btn btn-dark d-inline-block '+a(t.lambda(null!=(i=null!=e?e.options:e)?i.btnClass:i,e))+'" type="button">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"approveBtn",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.numVideos:i},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression,l=null!=e?e:t.nullContext||{};return'<h5 class="d-inline-block m-0 '+a(t.lambda(null!=(i=null!=e?e.options:e)?i.headingClass:i,e))+'">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(l,"heading",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.numVideos:i},data:r}))+"</h5>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=e?e.options:e)?i.videosToReview:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})},5181:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda,l=t.escapeExpression;return'<div class="d-inline-block p-3 '+l(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.heading:i,e))+'"><h1 class="h3 m-0">'+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"contentUpdates",{name:"lang",hash:{},data:r}))+'</h1></div><div class="tabs-region d-inline-flex align-items-end '+l(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tabsContainer:i,e))+'"></div>'},useData:!0})},67732:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,u=t.escapeExpression;return' <p class="m-0">'+u((n.lang||e&&e.lang||l).call(a,"learnMore",{name:"lang",hash:{},data:r}))+" <a href="+u(t.lambda(null!=(i=null!=e?e.options:e)?i.supportUrl:i,e))+' target="_blank">'+u((n.lang||e&&e.lang||l).call(a,"learnMoreLink",{name:"lang",hash:{},data:r}))+"</a></p>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,u=t.escapeExpression;return'<div class="p-3 border-bottom">\r\n <h5>'+u((n.lang||e&&e.lang||l).call(a,"manualReviewHeading",{name:"lang",hash:{},data:r}))+"</h5>\r\n <p>"+u((n.lang||e&&e.lang||l).call(a,"manualReviewBody",{name:"lang",hash:{},data:r}))+'</p>\r\n <button class="btn btn-outline-dark text-center disable-review" type="button">'+u((n.lang||e&&e.lang||l).call(a,"manualReviewOffBtn",{name:"lang",hash:{},data:r}))+'</button>\r\n</div>\r\n<div class="p-3 border-bottom">\r\n <p class="m-0">'+u((n.lang||e&&e.lang||l).call(a,"noActionDisclaimer",{name:"lang",hash:{},data:r}))+"</p>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.supportUrl:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+"</div>"},useData:!0})},14727:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,'<h4 class="pl-3">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.groupTitle:i,e))+'</h4>\r\n<div class="video-list-region"></div>'},useData:!0})},89364:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="videos-region"></div>'},useData:!0})},92655:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r,i,a){var l;return t.propertyIsEnumerable,null!=(l=n.unless.call(null!=e?e:t.nullContext||{},null!=e?e.hide:e,{name:"unless",hash:{},fn:t.program(2,r,0,i,a),inverse:t.noop,data:r}))?l:""},2:function(t,e,n,o,r,i,a){t.propertyIsEnumerable;var l,u=t.lambda,c=t.escapeExpression;return' <a class="'+c(u(null!=(l=null!=(l=null!=a[1]?a[1].options:a[1])?l.styles:l)?l.link:l,e))+" p-2 "+c(u(null!=e?e.link:e,e))+" "+(null!=(l=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.active:e,{name:"if",hash:{},fn:t.program(3,r,0,i,a),inverse:t.noop,data:r}))?l:"")+'">'+c(u(null!=e?e.name:e,e))+"</a>\r\n"},3:function(t,e,n,o,r,i,a){var l;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(l=null!=(l=null!=a[1]?a[1].options:a[1])?l.styles:l)?l.active:l,e))+" border-bottom border-primary text-primary"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r,i,a){var l;return t.propertyIsEnumerable,null!=(l=n.each.call(null!=e?e:t.nullContext||{},null!=(l=null!=e?e.options:e)?l.tabs:l,{name:"each",hash:{},fn:t.program(1,r,0,i,a),inverse:t.noop,data:r}))?l:""},useData:!0,useDepths:!0})},29565:function(t,e){"use strict";e.Z={content:"utl4w",contentWithLeftNav:"K9CFZ"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9195],{54096:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(1024),a=n(21679);function i(e){var t,n;return t=e,n=a.u.getInstance(t),r.useEffect((function(){return function(){a.u.releaseInstance(t)}})),n}},42227:function(){},88067:function(e,t,n){"use strict";n.r(t),n.d(t,{ShareView:function(){return Rn}});var r,a=n(1024),i=n.n(a),o=n(58566),c=n(57857),l=n(86120),s=n(15408),u=n(66703),m=n(80325),d=n(2491),p=n(36357);!function(e){e.GoogleClassroom="google-classroom",e.MicrosoftTeams="microsoft-teams"}(r||(r={}));var f,y=c.T.encloseNamespace("shared.shared-utils"),v=function(e,t){return[{id:r.GoogleClassroom,name:y("googleClassroom"),enabled:null!=e&&e,settingName:p.E.ShareToGoogleClassroom},{id:r.MicrosoftTeams,name:y("msftTeams"),enabled:null!=t&&t,settingName:p.E.ShareToMicrosoftTeams}]},h=n(98495),g=n(40221),b=n(68003),S=function(){var e,t=l.a.useBasicFetch(s.N.currentUser(),{optimize:!0}),n=l.a.useBasicFetch((null===(e=t.data)||void 0===e?void 0:e.isAuthenticated)&&s.N.permissions(),{optimize:!0});return{permissions:n.data,hasPermissions:function(e){var r;return!(!(null===(r=t.data)||void 0===r?void 0:r.isAuthenticated)||!n.hasCompleted||n.hasError||e&&(null==e?void 0:e.length)&&(Array.isArray(e)?e.find((function(e){return!n.data[e]})):!n.data[e]))},isLoaded:n.hasCompleted}};!function(e){e.ManageSubjectPreferences="subjects.preferences.manage",e.FollowSubjects="subjects.follow",e.ViewClassrooms="classrooms.view",e.ManageAllClassrooms="classrooms.manage.all",e.ShareToClassrooms="share.direct.classrooms",e.ShareToClassroomGroups="share.direct.classroomgroups",e.CreateClassrooms="classrooms.create",e.DeleteClassrooms="classrooms.delete",e.StudentExperience="studentexperience",e.ManageUsers="users.manage",e.ManageIntegrations="integrations.manage",e.EditProfileDetails="profile.edit",e.ManageCustomerSettings="customersettings.manage",e.ViewCustomerAnalytics="analytics.customeranalytics.view",e.ManageShareLinkSettings="sharelink.settings.edit",e.ViewProductBoard="productboard.view"}(f||(f={}));var E,k=n(8952),C=n(53808);function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!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)"}(E||(E={}));var x=n(99910),O=n(2248),I=n(85887);function N(e){return N="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},N(e)}var j,T={isNumber:function(e){return T.isType(e,"number")},isString:function(e){return T.isType(e,"string")},isType:function(e,t){return N(e)===t}},A="h8OBl";function P(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F(e,t){var n;return U(n={},j.Recent,t),U(n,j.Local,e),U(n,j.Remote,[]),U(n,j.Generic,[]),n}function R(e,t){return I.t.isObject(e)&&e.hasOwnProperty(t)&&T.isString(e[t])}function D(e,t){e(Object.assign(Object.assign({},F([],[])),U({},j.Generic,[{type:t,generic:!0}])))}function V(e,t,n){return function(r){var a,i,o=r.value,c=r.reason;if((null===(i=null===(a=e.allowableSuggestionFetchRequestedReasons)||void 0===a?void 0:a.includes(c))||void 0===i||i)&&(o.length||n(),!(o.length<e.activationLength))){if(e.local){var s=C.q.isFunction(e.getLocalSuggestions)?e.getLocalSuggestions(o,e.local):(u=o,m=e.local,d=e.valueKey,(p=u.trim().toLowerCase()).length?m.filter((function(e){return!(!R(e,d)||!T.isString(e[d]))&&e[d].trim().toLowerCase().includes(p)})):[]);if(!s.length&&e.getEmptyStateComponent)return void D(t,"empty");t((function(e){var t;return Object.assign(Object.assign({},e),(U(t={},j.Local,s),U(t,j.Generic,[]),t))}))}var u,m,d,p;e.getRemoteUrl&&(D(t,"loading"),function(n,r,a,i,o){var c=C.q.isFunction(n)&&n(r);c&&l.a.ajaxRequest({resource:c,type:O.k.GET,success:function(n){var r=C.q.isFunction(e.formatRemoteSuggestions)?e.formatRemoteSuggestions(n):n;r.length||!e.getEmptyStateComponent?t((function(e){var t;return Object.assign(Object.assign({},e),(U(t={},j.Remote,r),U(t,j.Generic,[]),t))})):D(t,"empty")},error:function(){D(t,"errored")},headers:o})}(e.getRemoteUrl,o,0,0,e.requestHeaders))}}}function M(e,t,n,r,a){var i=function(t){return e[t]||[]},o=i(j.Recent),c=i(j.Local),l=i(j.Remote),s=i(j.Generic);if(s.length)return[{data:s}];var u=[].concat(P(c),P(l));return u.length?(Number.isInteger(a)&&u.length>a&&(u=u.slice(0,a)),C.q.isFunction(r)?r(u):[{title:n,data:u}]):o.length?[{title:t,data:o}]:[]}function G(e){return e.data}function z(e){return{container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded ".concat("avM9L"),suggestionsList:"list-unstyled m-0",suggestion:"".concat(e?"":"cursor-pointer"," py-1 px-2"),suggestionHighlighted:e?"":"gFitp",sectionContainer:"border-bottom py-1 ".concat("u35Wz")}}function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=z(t),r=Object.assign(n,e);return r}!function(e){e.Local="local",e.Recent="recent",e.Remote="remote",e.Generic="generic"}(j||(j={}));var B=n(39396),_=n(6681);function H(e,t,n,r,a){var i="form-control";return n||(i+=" ".concat("cKcry")),"left"===e&&(i+=" ".concat("Rt24D")),("right"===e&&!t||"left"===e&&t)&&(i+=" ".concat("pxKzq")),"right"===e&&t&&(i+=" ".concat("Oerjh")),"lg"===a&&(i+=" form-control-lg"),"sm"===a&&(i+=" form-control-sm"),r&&(i+="".concat(r)),i}function K(e){var t="d-inline-block svg-container";return C.q.isFunction(e)?t+" cursor-pointer":t}function Z(e){var t=e.onClickSearchIcon,n=e.searchIconPlacement,r=e.showClearInputIcon,i=e.onClickClearInput,o=e.highlightOnFocus,c=e.className,l=e.formSize,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["onClickSearchIcon","searchIconPlacement","showClearInputIcon","onClickClearInput","highlightOnFocus","className","formSize"]),u=function(){return a.createElement("div",{className:"d-inline-block"},a.createElement(B.x,{svgName:_.vn.Search,size:B.S.Standard,onClick:t,className:K(t)}))};return a.createElement("div",{className:"position-relative ".concat("utnMG")},"left"===n&&a.createElement("div",{className:"".concat(A," ").concat("L5mrV")},a.createElement(u,null)),a.createElement("input",Object.assign({className:H(n,r,o,c,l)},s)),("right"===n||!!r)&&a.createElement("div",{className:"".concat(A," ").concat("V23aG")},!!r&&a.createElement((function(){return a.createElement("div",{className:"d-inline-block text-muted ".concat("TAoT9")},a.createElement(B.x,{svgName:_.vn.Close,size:B.S.Standard,onClick:i,className:K(i)}))}),null),"right"===n&&a.createElement(u,null)))}function $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(e,t)||W(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t){if(e){if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var X,Y="shared.searchBar",J=C.q.isFunction;function ee(e){return e.renderAsForm?a.createElement("form",{onSubmit:e.onSubmit},e.children):a.createElement(a.Fragment,null,e.children)}function te(e){var t=F(e.initialSuggestions,e.recentSearches),n=$(a.useState(e.initialQuery||""),2),r=n[0],i=n[1],o=$(a.useState(t),2),l=o[0],s=o[1],u=function(e){var t,n,r=(t=(0,a.useState)(window.matchMedia(e).matches),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=r[0],o=r[1];return(0,a.useEffect)((function(){var t=window.matchMedia(e);t.matches!==i&&o(t.matches);var n=function(){return o(t.matches)};return t.addListener(n),function(){return t.removeListener(n)}}),[e]),i}(E.XS);a.useEffect((function(){var t=e.initialQuery||"";r!==t&&i(t)}),[e.initialQuery]);var m,d=function(){s(t)},p=function(t){t.preventDefault(),J(e.onSubmit)&&e.onSubmit(r)},f=a.useMemo((function(){return e.debounceTime?C.q.debounce(V(e,s,d),e.debounceTime):V(e,s,d)}),[e.debounceTime].concat(function(e){if(Array.isArray(e))return Q(e)}(m=e.onSuggestionDependencies)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(m)||W(m)||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.")}()));return a.createElement(ee,{onSubmit:p,renderAsForm:!!e.renderAsForm},a.createElement(k,Object.assign({suggestions:M(l,e.recentSearchHeading||c.T.getPhrase(Y,"recentSearchHeading"),e.suggestionsHeading,e.getSections,e.suggestionLimit),onSuggestionsFetchRequested:f,onSuggestionsClearRequested:function(){e.alwaysRenderSuggestions||d()},onSuggestionSelected:function(t,n){var r=n.suggestion;r.generic||(e.clearQueryOnSelect&&i(""),e.onSuggestionSelected(r))},getSuggestionValue:function(t){return e.updateQueryOnSelection?function(e,t){return R(t,e)?t[e]:""}(e.valueKey,t):r},renderSuggestion:function(t){if(t.generic){if("empty"===t.type)return r.length>=e.activationLength&&C.q.isFunction(e.getEmptyStateComponent)?e.getEmptyStateComponent(r):a.createElement(a.Fragment,null);if("errored"===t.type&&C.q.isFunction(e.getErrorStateComponent)){var n=V(e,s,d);return e.getErrorStateComponent((function(){return n({value:r,reason:"input-changed"})}))}if("loading"===t.type)return i=e.loadingComponentClassName,a.createElement("div",{className:"d-flex justify-content-center cursor-default ".concat(null!=i?i:""),onClick:function(e){e.stopPropagation()}},a.createElement(x.Spinner,{as:"span",animation:"border",role:"status"}))}var i;return J(e.getSuggestionComponent)?e.getSuggestionComponent(t):function(e,t){return R(t,e)?a.createElement(a.Fragment,null,t[e]):a.createElement(a.Fragment,null)}(e.valueKey,t)},renderSuggestionsContainer:function(t){var n=t.containerProps,o=n.ref,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(n,["ref"]);return e.customScrollbarProps?a.createElement(h.ZP,Object.assign({ref:o},e.customScrollbarProps,c),t.children):a.createElement("div",Object.assign({ref:o},c),t.children,e.getCreateComponent&&e.getCreateComponent(r,l,!!t.children,(function(){i(""),d()})),e.getFooterComponent&&e.getFooterComponent(r,l,!!t.children))},alwaysRenderSuggestions:e.alwaysRenderSuggestions,focusInputOnSuggestionClick:!u,inputProps:{placeholder:e.placeholder||c.T.getPhrase(Y,"placeholder"),value:r,onChange:function(t,n){var a=n.newValue,o=n.method;!a.length&&["down","up","enter"].includes(o)?i(r):i(a),J(e.onQueryChange)&&e.onQueryChange(a)},onKeyDown:function(t){8===t.keyCode&&e.onBackspace&&!r&&e.onBackspace()},autoFocus:!!e.autoFocusInput,highlightOnFocus:e.highlightInputOnFocus,onClickSearchIcon:!!e.submitOnClickSearchIcon&&p,searchIconPlacement:e.searchIconPlacement,showClearInputIcon:!!e.showClearInputIcon&&!!r.length,onClickClearInput:function(){i(""),J(e.onClickClearInput)&&e.onClickClearInput()},formSize:e.size},renderInputComponent:Z,theme:q(e.theme,!!l.generic.length),multiSection:!0,renderSectionTitle:function(t){return function(e,t){if(e.title)return a.createElement("div",{className:"pb-1 ".concat(null!=t?t:"")},a.createElement("strong",null,e.title))}(t,e.sectionTitleClassName)},getSectionSuggestions:G},e.alwaysRenderSuggestionsOnInputFocus?{shouldRenderSuggestions:function(){return!0}}:{})))}te.defaultProps={updateQueryOnSelection:!0,valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialSuggestions:[],searchIconPlacement:"right",renderAsForm:!0,onSuggestionDependencies:[]},function(e){e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience",e[e.TallPoster=60]="TallPoster",e[e.Classroom=67]="Classroom",e[e.ClassroomGroup=68]="ClassroomGroup"}(X||(X={}));var ne=n(69620),re=function(e,t){return(null==e?void 0:e.typeId)===t},ae=n(83891),ie=n(87013),oe=n(88483);function ce(e){var t,n,r=e.imageUrl||(t=e.imageCdnUrl,(n=e.initials)?ie.j.createUrl(b._.safeUrlConcat(t,"/v1/profile-images?initials=".concat(n)),{size:oe.h2.Small}):"");return i().createElement("div",{className:"Gvwzj",style:{backgroundImage:"url('".concat(r,"')")}}," ")}var le=n(1268),se=n(46237),ue="Zcpg3",me=c.T.encloseNamespace("shared.userRecipientItemMetadata");function de(e){var t;return i().createElement(i().Fragment,null,i().createElement("div",{className:"".concat(ue," d-inline-block")},i().createElement(ce,{imageUrl:null===(t=e.user.avatar)||void 0===t?void 0:t.url,imageCdnUrl:e.imageCdnUrl,initials:ae.l.getInitials(e.user.name,e.user.surname)})),i().createElement("div",{className:e.detailsClassName},i().createElement("h4",{className:"font-size-normal font-weight-normal m-0"},ae.l.getDisplayName(e.user)),i().createElement("p",{className:"text-muted m-0"},function(e){var t=ae.l.getUserType(e),n=ae.l.getUserRole(e);if(t===le.Y.Staff)return n===se.i.Admin?me("admin"):me("staff");var r=ae.l.getYearGroup(e);return(null==r?void 0:r.name)?r.name:me("student")}(e.user))))}function pe(e){return i().createElement("div",{className:"".concat("Uxnsl"," bg-").concat(e.variant," text-white rounded-circle h-100 w-100")},i().createElement(B.x,{svgName:e.svgName,size:e.svgSize}))}function fe(e){return i().createElement(i().Fragment,null,i().createElement("div",{className:"".concat(ue," d-inline-block")},i().createElement(pe,{svgName:_.vn.Classrooms,variant:"teal"})),i().createElement("div",{className:e.detailsClassName},i().createElement("h4",{className:"font-size-normal font-weight-normal m-0"},e.classroom.name),i().createElement("p",{className:"text-muted m-0"},(n=null===(t=e.classroom.users)||void 0===t?void 0:t.count,Number.isInteger(n)?c.T.getPhrase("shared.classroomRecipientItemMetadata","subheading",{smartCount:n}):""))));var t,n}var ye=n(16287);function ve(e){switch(e){case ye.ClassroomGroupColour.Pink:return"pink";case ye.ClassroomGroupColour.Orange:return"orange";case ye.ClassroomGroupColour.Green:return"green";case ye.ClassroomGroupColour.Blue:return"blue";case ye.ClassroomGroupColour.Purple:return"purple";case ye.ClassroomGroupColour.Indigo:return"indigo";default:return"pink"}}function he(e){var t;return i().createElement(i().Fragment,null,i().createElement("div",{className:"".concat(ue," d-inline-block")},i().createElement(pe,{svgName:_.vn.Group,variant:ve(null===(t=e.classroomGroup.metadata)||void 0===t?void 0:t.colour)})),i().createElement("div",{className:e.detailsClassName},i().createElement("h4",{className:"font-size-normal font-weight-normal m-0"},e.classroomGroup.name),i().createElement("p",{className:"text-muted m-0"},function(e){var t,n,r,a=null!==(n=null===(t=e.users)||void 0===t?void 0:t.count)&&void 0!==n?n:0,i=null===(r=e.classroom)||void 0===r?void 0:r.name;return i?c.T.getPhrase("shared.classroomGroupRecipientItemMetadata","subheading",{classroomName:i,smartCount:a}):""}(e.classroomGroup))))}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var be=c.T.encloseNamespace("share.recipientItem");function Se(e){switch(e){case X.User:return be("removeUser");case X.Classroom:return be("removeClassroom");case X.ClassroomGroup:return be("removeGroup")}return null}function Ee(e){var t,n,r=(t=i().useState(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],o=r[1],c="".concat("kdcb0"," d-flex");a&&(c+=" ".concat("xH6Mu"));var l="".concat(e.removeRecipient?"_V928":"v5EmV"," d-inline-block ml-2");return i().createElement("div",{className:c},re(e.entity,X.User)?i().createElement(de,{user:e.entity,imageCdnUrl:e.imageCdnUrl,detailsClassName:l}):re(e.entity,X.Classroom)?i().createElement(fe,{classroom:e.entity,detailsClassName:l}):re(e.entity,X.ClassroomGroup)?i().createElement(he,{classroomGroup:e.entity,detailsClassName:l}):void 0,C.q.isFunction(e.removeRecipient)&&i().createElement("div",{className:"".concat("mCbMC"," d-inline-flex justify-content-center align-items-center")},a?i().createElement(x.Spinner,{as:"div",size:"sm",animation:"border",role:"status"}):i().createElement(ne.u,{title:Se(e.entity.typeId),spanHack:!0},i().createElement("div",{className:"close cursor-pointer",role:"button",onClick:function(){o(!0),e.removeRecipient(e.entity.id,(function(){return o(!1)}))}},"×"))))}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ce(e){var t,n,r,a,o,c,l=e.query,s=void 0===l?"":l,m=e.imageUrl,d=(t=s,300,o=i().useState(t),c=2,r=(n=function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(o,c)||function(e,t){if(e){if("string"==typeof e)return ke(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ke(e,t):void 0}}(o,c)||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.")}())[0],a=n[1],i().useEffect((function(){var e=setTimeout((function(){return a(t)}),300);return function(){return clearTimeout(e)}}),[t,300]),r);return i().createElement("div",{className:"d-flex flex-column align-items-center text-center",onClick:function(e){e.stopPropagation()}},i().createElement("img",{alt:"",role:"presentation",src:m,className:"pb-2 ".concat("bKTf0")}),i().createElement("h2",{className:"h6"},i().createElement(u.x,{namespace:"shared.typeaheadEmptyState",phrase:"noResults",options:{query:d,smartCount:d.length}})))}var we=n(58424),xe="shared.typeaheadErrorState";function Oe(e){return i().createElement("div",{className:"d-flex flex-column align-items-center text-center",onClick:function(e){e.stopPropagation()}},i().createElement("img",{alt:"",role:"presentation",src:e.imageUrl,className:"pb-2 ".concat("k5mEG")}),i().createElement("h2",{className:"h6"},i().createElement(u.x,{namespace:xe,phrase:"error"})),i().createElement(we.L,{onClick:function(t){t.stopPropagation(),e.onClickTryAgain()},className:"btn btn-link info-link p-0"},i().createElement(u.x,{namespace:xe,phrase:"tryAgain"})))}function Ie(e){var t=e.imageUrl,n=e.initials,r={};return t&&(r.backgroundImage="url('".concat(t,"')")),i().createElement("div",{className:"srrS3",style:r},t?i().createElement(i().Fragment,null," "):n)}var Ne="laVU4",je="rFH4W",Te=c.T.encloseNamespace("shared.inputSelection");function Ae(e){var t,n="".concat(Ne," ").concat("BarYz");return e.typeId===X.Classroom?n+=" text-teal":n+=" text-".concat(ve(null===(t=e.metadata)||void 0===t?void 0:t.colour)),n}function Pe(e){var t,n=function(e){var t;switch(e.typeId){case X.Classroom:return"text-hover-teal";case X.ClassroomGroup:return"text-hover-".concat(ve(null===(t=e.metadata)||void 0===t?void 0:t.colour))}}(e.selection),r=e.selection.typeId===X.Classroom;if(!e.canExpand){if(e.selection.typeId===X.User){var a=e.selection;return i().createElement("div",{className:Ne},i().createElement(Ie,{imageUrl:null===(t=a.avatar)||void 0===t?void 0:t.url,initials:ae.l.getInitials(e.selection.name,e.selection.surname)}))}return i().createElement(ne.u,{title:Te(r?"emptyClassroom":"emptyGroup")},i().createElement("div",{className:"align-items-center border border-white bg-white ".concat(je)},i().createElement(B.x,{className:Ae(e.selection),svgName:r?_.vn.Classrooms:_.vn.Group})))}return e.hasExpanded?i().createElement("div",{className:"d-flex align-items-center text-white ".concat("iKeXW"," ").concat(Ne)},i().createElement(x.Spinner,{as:"div",size:"sm",animation:"border",role:"status"})):i().createElement(i().Fragment,null,i().createElement(we.L,{className:"align-items-center cursor-pointer text-white border border-white rounded-circle ".concat("d1NHd"," ").concat(n),onClick:e.onClickExpand},i().createElement(B.x,{svgName:_.vn.Plus,className:"d-flex align-items-center ".concat(Ne)})),i().createElement("div",{className:"align-items-center border border-white bg-white ".concat(je)},i().createElement(B.x,{className:Ae(e.selection),svgName:r?_.vn.Classrooms:_.vn.Group})))}function Le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ue(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fe(e){var t;switch(e.typeId){case X.User:return"number"==typeof e.userType?2===e.userType?"dark-blue":"indigo":e.userType===le.Y.Learner?"dark-blue":"indigo";case X.Classroom:return"teal";case X.ClassroomGroup:return ve(null===(t=e.metadata)||void 0===t?void 0:t.colour)}}function Re(e){var t,n,r,a=re(e.selection,X.Classroom),o=re(e.selection,X.ClassroomGroup),c=e.onClickExpand&&(a||o),l=!!(null===(t=e.selection.users)||void 0===t?void 0:t.count),s=!!(null===(r=null===(n=e.selection.users)||void 0===n?void 0:n.data)||void 0===r?void 0:r.length),u=Le(i().useState(!1),2),m=u[0],d=u[1],p=Le(i().useState(c&&l),2),f=p[0],y=p[1];if(i().useEffect((function(){y(c&&l)}),[c,l]),s){var v=e.selection,h=Fe(e.selection);return i().createElement("div",{className:"d-flex align-items-center flex-wrap mr-1 mt-1 pb-1 pl-1 pr-4 position-relative border-".concat(h," text-").concat(h," ").concat("HF0E8")},v.users.data.map((function(t){return i().createElement(De,{key:"".concat(t.id,":").concat(e.selection.id),selection:t,colourVariant:h})})),i().createElement(we.L,{className:"cursor-pointer position-absolute text-".concat(h," ").concat("mgt6Y"),onClick:function(){return e.onClickRemove(e.selection.id)}},i().createElement(B.x,{svgName:_.vn.Close,className:"d-flex align-items-center ".concat(Ne)})))}return i().createElement(De,{selection:e.selection,canExpand:f,hasExpanded:m,onClickExpand:function(){d(!0),e.onClickExpand(e.selection.id)},onClickRemove:e.onClickRemove,colourVariant:Fe(e.selection)})}function De(e){var t=e.colourVariant||Fe(e.selection),n=e.selection.name;return e.selection.typeId===X.User&&(n=ae.l.getDisplayName(e.selection)),i().createElement("div",{className:"".concat("vEOCt"," bg-").concat(t," badge-pill text-").concat(t," d-flex align-items-center mr-1 mt-1 overflow-hidden")},i().createElement(Pe,{canExpand:e.canExpand,hasExpanded:e.hasExpanded,onClickExpand:e.onClickExpand,selection:e.selection}),i().createElement("span",{className:"mx-1 text-white"},n),C.q.isFunction(e.onClickRemove)&&i().createElement(we.L,{className:"d-flex align-items-center cursor-pointer align-self-stretch text-white ".concat("pyzCM"),onClick:function(){return e.onClickRemove(e.selection.id)}},i().createElement(B.x,{svgName:_.vn.Close,className:"d-flex align-items-center ".concat(Ne)})))}function Ve(e){var t;return i().createElement("div",{className:"form-control h-auto d-flex align-items-top py-1 px-0 position-relative"},i().createElement(B.x,{className:"svg-container m-1",svgName:_.vn.Search}),i().createElement("div",{className:"".concat("kFjoN"," d-flex flex-wrap align-items-center mt-n1")},e.selections.map((function(t){return i().createElement(Re,{key:t.id,selection:t,onClickRemove:function(t){return e.removeSelection(t)},onClickExpand:e.fetchSelectionMembers})})),i().createElement(te,{getRemoteUrl:e.getRemoteUrl,requestHeaders:e.requestHeaders,formatRemoteSuggestions:e.formatRemoteSuggestions,onSuggestionSelected:function(t){e.updateSelections(t)},onBackspace:function(){return e.selections.length&&e.removeSelection(g.m.last(e.selections).id)},local:e.localSuggestions,recentSearchHeading:e.recentSearchHeading||c.T.getPhrase("shared.tokenizedTypeahead","recentSearchHeading"),recentSearches:e.recentSearches,placeholder:(null===(t=e.selections)||void 0===t?void 0:t.length)?" ":e.placeholder,searchIconPlacement:!1,activationLength:e.activationLength,clearQueryOnSelect:!0,getSuggestionComponent:function(t){return i().createElement(Ee,{entity:t,imageCdnUrl:e.imageCdnUrl})},getEmptyStateComponent:function(t){return i().createElement(Ce,{query:t,imageUrl:e.emptyStateImageUrl})},getErrorStateComponent:function(t){return i().createElement(Oe,{imageUrl:e.errorStateImageUrl,onClickTryAgain:t})},theme:{container:"Dc3kX",suggestionsContainerOpen:"bg-white py-1 rounded border mt-1 ".concat("c5t3e")},sectionTitleClassName:"pl-2",alwaysRenderSuggestionsOnInputFocus:!0,debounceTime:e.debounceTime})),!!e.sharePermissionsDescription&&i().createElement("span",{className:"px-2 text-secondary text-nowrap"},e.sharePermissionsDescription))}var Me=n(59087);function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ze=c.T.encloseNamespace("shared.copyInput");function qe(e){var t,n,r=(t=a.useState(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ge(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=r[0],o=r[1],c=a.createElement("div",{className:"input-group"},a.createElement("input",{type:"text",autoComplete:"off",className:"form-control ".concat("normal"===e.styling?"Q1UGv":""),spellCheck:!1,value:e.value,readOnly:!0}),a.createElement("div",{className:"input-group-append"},a.createElement(Me,{text:e.value},a.createElement("button",{className:"btn btn-outline-dark border border-secondary py-0 text-nowrap ".concat("J3fBx"),onClick:function(t){t.preventDefault(),e.onCopy&&e.onCopy(),i||(o(!0),setTimeout((function(){return o(!1)}),2e3))}},ze(i?"copied":"copy")))));return e.label?a.createElement(x.Form.Group,null,a.createElement(x.Form.Label,null,e.label),c):c}qe.defaultProps={styling:"normal"};var Be,_e=n(33192),He=n.n(_e);function Ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ze(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ze(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e.Expired="Expired",e.Active="Active"}(Be||(Be={}));var $e=c.T.encloseNamespace("share.shareLinkInfo");function We(e){var t=Ke(i().useState(!1),2),n=t[0],r=t[1],a=Ke(i().useState(!1),2),o=a[0],c=a[1],l=function(e){var t=e.linkExpireDate,n=e.isPasswordProtected,r=e.status;if(!t&&!n)return function(e){var t=e.entityTypeId,n=e.privacy,r=e.hasPrivatePlaylistVideos;if(t===X.Playlist)return r?{icon:_.vn.Warning,text:$e("hasPrivateVideos")}:{icon:_.vn.VisibleOn,text:$e("public")};if(t===X.Topic||t===X.Series)return{icon:_.vn.VisibleOn,text:$e("justMySchool")};if(!Array.isArray(n))switch(n.privacy){case"public":return{icon:_.vn.VisibleOn,text:$e("public")};case"protected":return{icon:_.vn.VisibleOn,text:$e("clickViewOnly")};case"just_my_customer":return{icon:_.vn.Lock,text:$e("justMySchool")};case"restricted":case"private":return{icon:_.vn.Lock,text:$e("private")};default:return{}}}(e);if(!t)return{icon:_.vn.Lock,text:$e("password")};var a=He().utc(t).local(),i=He()(),o=a.isSame(i,"day"),c=a.diff(i,"days");if(!n){var l=o?$e("expiryToday"):$e("expiry",{days:c});return r===Be.Expired&&(l=$e("expired")),{icon:_.vn.Timer,text:l}}var s=o?$e("passwordExpiryToday"):$e("passwordExpiry",{days:c});return r===Be.Expired&&(s=$e("passwordExpired")),{icon:_.vn.Lock,text:s}}(Object.assign(Object.assign({},e),{hasPrivatePlaylistVideos:o})),s=l.icon,u=l.text;return i().useEffect((function(){if(Array.isArray(e.privacy)){if(e.privacy.length&&e.entityTypeId===X.Playlist){var t=e.privacy.some((function(e){return!!e.canManageAccess&&("private"===e.privacy||"restricted"===e.privacy)}));r(t),c(t)}}else r(e.privacy.canManageAccess)}),[e.privacy]),i().createElement("div",{className:"d-flex align-items-center"},i().createElement(B.x,{svgName:s,className:"svg-container mr-1"}),n&&e.onClickShowPrivacies?i().createElement(we.L,{className:"info-link",onClick:e.onClickShowPrivacies},u):i().createElement("span",null,u))}var Qe,Xe=n(52076),Ye=n(22218);function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(Qe||(Qe={}));var et,tt={namespace:"share"},nt=function(e,t){e.sort();var n=e.map((function(e){return"id=".concat(e)})).join("&");return t===X.User&&(n+="&query=yearGroups"),t===X.Classroom&&(n+="&query=users[count()]{limit:0}"),t===X.ClassroomGroup&&(n+="&query=classroom,users[count()]{limit:0}"),{url:"{gateway}/v1/objects?".concat(n),key:"share:recipients:".concat(e.join(","),":").concat(n)}},rt=n(4705),at={getRecentItem:function(e,t){var n=t.cacheGet(e);return Array.isArray(n)||(n=[]),n},setRecentItem:function(e,t,n){Array.isArray(t)&&n.cacheSet(e,t)},addRecentItem:function(e,t,n){var r=n.id,a=n.limit,i=void 0===a?5:a,o=at.getRecentItem(e,t),c=o.indexOf(r);return c>-1&&o.splice(c,1),o.unshift(r),o.length>i&&(o=o.slice(0,i)),at.setRecentItem(e,o,t),o},removeRecentItem:function(e,t,n){var r=at.getRecentItem(e,n).filter((function(e){return e!==t.toString()}));at.setRecentItem(e,r,n)}},it=function(e){return"recently:shared:to:".concat(e)};!function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(et||(et={}));var ot;!function(e){e.Topic="topic",e.Series="series",e.Playlist="playlist"}(ot||(ot={})),n(50028);var ct,lt,st,ut,mt=function(e,t){return b._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"series,season,rating,producers,glance,distributors,owner,resources[thumbnail,pdf],tags,productionCompanies,directors,links,thumbnail,interactives[thumbnail,_canBeConsumed],clips[_canBeConsumed],_canUpdate,_videoProgress,_canBeConsumed",permissionFilterOption:t})},dt=(n(42227),n(48318));(ut=ct||(ct={})).Newest="newest",ut.Oldest="oldest",ut.RecentlyUpdated="recently_added",ut.AtoZ="atoz",ut.ZtoA="ztoa",(st=lt||(lt={})).OwnedByMe="owned_by_me",st.Followed="followed",st.All="all",dt.BaseCollectionIdentifier;var pt=n(70065);c.T.encloseNamespace("shared.shared-utils");var ft,yt;!function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos",e.PinnedVideos="pinnedVideos"}(ft||(ft={})),function(e){e.Subject="Subject",e.Curriculum="Curriculum"}(yt||(yt={}));var vt=function(e,t){return"/api/domain/v1/subjects/".concat(e,"?query=").concat(function(e){return"banner,cover,tallPoster,followers{id:".concat(e,"},pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0}")}(t))},ht=function(e){return"{gateway}/v1/objects/".concat(e,"?query=").concat("tallposter,rating,banner")},gt=c.T.encloseNamespace("shared.share"),bt={getObjectTypeId:function(e){switch(e){case"video":return X.Video;case"playlist":return X.Playlist;case"subject":return X.Subject;case"series":return X.Series;case"interactive":return X.Interactive;case"clip":return X.Clip}},createLink:function(e){var t={resourceId:e.entity.id};e.password&&(t.password=e.password),e.linkExpireDate&&(t.linkExpireDate=e.linkExpireDate),l.a.fetch(e.dispatch,function(e,t,n,r){return{url:"{gateway}/v1/share/links",key:"create:share:link",type:O.k.POST,data:e,normalizeOptions:tt,invalidationKeys:["share:link:object:".concat(e.resourceId),"privacy:".concat(e.resourceId)],success:t,error:n,always:r}}(t,(function(t){Xe.k.logUserAction(t,Xe.k.mergeOptions(bt.getAnalyticsOptions(e.entityType),{actionType:Ye.Vw.Create,entity:Ye.py.ShareLink,eventVersion:Ye.eq.V3})),e.success&&e.success(t)}),(function(){e.alerts.error(gt("createLinkError",{name:e.entity.name}))})))},updateLink:function(e,t,n,r,a,i,o,c){l.a.fetch(e,function(e,t,n,r,a){return{url:"{gateway}/v1/share/links/".concat(e.id),key:"edit:share:link",data:t,type:O.k.PUT,normalizeOptions:tt,invalidationKeys:["share:".concat(e.id),"share:link:object:".concat(e.objectId),"share:sent"],success:n,error:r,always:a}}(r,a,(function(e){Xe.k.logUserAction(e,Xe.k.mergeOptions(bt.getAnalyticsOptions(n),{actionType:Ye.Vw.Edit,entity:Ye.py.ShareLink,eventVersion:Ye.eq.V3})),o&&o(e),i.success(gt("editSuccess",{name:t.name,escapeText:!0}))}),(function(){c&&c(),i.error(gt("editError",{name:t.name,escapeText:!0}))})))},deleteLink:function(e,t,n,r,a,i,o){l.a.fetch(e,function(e,t,n,r){return{url:"{gateway}/v1/share/links/".concat(e.id),key:"delete:share:link",type:O.k.DELETE,normalizeOptions:tt,invalidationKeys:["share:".concat(e.id),"share:link:object:".concat(e.objectId)],success:t,error:n,always:r}}(r,(function(){Xe.k.logUserAction({shareLink:r},Xe.k.mergeOptions(bt.getAnalyticsOptions(n),{actionType:Ye.Vw.Delete,entity:Ye.py.ShareLink})),i&&i(),a.success(gt("deleteSuccess",{name:t.name,escapeText:!0}))}),(function(){a.error(gt("deleteError",{name:t.name,escapeText:!0}))}),(function(){o&&o()})))},createOrUpdateDirectShare:function(e){var t=e.dispatch,n=e.entity,r=e.entityType,a=e.currentUser,i=e.recipients,o=e.sentDirectShare,c=e.message,s=e.onSuccess,u=e.onError,m=e.onDone,d=function(e){s&&s(e),Xe.k.logUserAction(Object.assign(Object.assign({},n),{shareCount:i.length}),Xe.k.mergeOptions(bt.getAnalyticsOptions(r),{actionType:Ye.Vw.Share,descriptor:Ye.YM.DirectShare,eventVersion:Ye.eq.V3})),i.map((function(e){!function(e,t){at.addRecentItem(it(e),rt.SG,t)}(a.id,{id:e.id})}))},p={objectId:n.id,objectTypeId:bt.getObjectTypeId(r),recipients:i,message:c},f={recipients:i,message:c},y=o?function(e,t,n,r,a){var i="direct:share:recipients:".concat(e);return{url:"{gateway}/v1/share/".concat(e,"/recipients"),key:"edit:direct:share",data:t,type:O.k.POST,normalizeOptions:tt,invalidationKeys:"share:sent",updateState:{keys:i,updateData:function(e){return!e[i]||t.recipients.length?e:Object.assign(Object.assign({},e),Je({},i,[]))}},success:n,error:r,always:a}}(o.id,f,d,u,m):function(e,t,n,r){return{url:"{gateway}/v1/share",key:"create:direct:share",data:e,type:O.k.POST,normalizeOptions:tt,invalidationKeys:["direct:share:sent:object:".concat(e.objectId),"share:sent"],success:t,error:n,always:r}}(p,d,u,m);l.a.fetch(t,y)},removeDirectShareRecipient:function(e,t,n,r,a,i){l.a.fetch(e,function(e,t,n,r,a){var i="direct:share:recipients:".concat(e);return{url:b._.urlBuilder("{gateway}/v1/share/".concat(e,"/recipients"),{recipientId:t}),key:"remove:direct:share:recipient",type:O.k.DELETE,normalizeOptions:tt,invalidationKeys:"share:sent",updateState:{keys:i,updateData:function(e){return e[i]?Object.assign(Object.assign({},e),Je({},i,[])):e}},success:n,error:r,always:a}}(r.id,t,(function(e){a&&a(e),Xe.k.logUserAction({shareCount:1},Xe.k.mergeOptions(bt.getAnalyticsOptions(n),{actionType:Ye.Vw.Unshare}))}),i))},getDirectShareRecipientsRequest:function(e){var t,n,r,a;return!!(null===(t=null==e?void 0:e.recipients)||void 0===t?void 0:t.length)&&(n=e.id,r=e.recipients,a=r.map((function(e){return"id=".concat(e.id)})).join("&"),{url:"{gateway}/v1/objects?".concat(a),key:"direct:share:recipients:".concat(n)})},useHydrateRecipients:function(e){var t=g.m.groupBy(e,"typeId"),n=t[X.User],r=t[X.Classroom],a=t[X.ClassroomGroup];l.a.useBasicFetch(!!(null==n?void 0:n.length)&&nt(n.map((function(e){return e.id})),X.User)),l.a.useBasicFetch(!!(null==r?void 0:r.length)&&nt(r.map((function(e){return e.id})),X.Classroom)),l.a.useBasicFetch(!!(null==a?void 0:a.length)&&nt(a.map((function(e){return e.id})),X.ClassroomGroup))},getAnalyticsOptions:function(e){var t;switch(e){case"playlist":t=Ye.py.Playlist;break;case"subject":t=Ye.py.Classification;break;case"video":t=Ye.py.Video;break;case"series":t=Ye.py.Series;break;case"interactive":t=Ye.py.Interactive;break;case"clip":t=Ye.py.Clip}return{entity:t,location:Ye.LZ.Popup,workflowPhase:Ye.eu.Complete}},getFetchFunctionByType:function(e){switch(e){case"video":return function(e){return l.a.useBasicFetch(function(e,t){return{url:mt(e,t),key:"videos:".concat(e,":").concat(t),formatData:function(e){var t,n;return(null===(t=e.interactives)||void 0===t?void 0:t.data)&&(e.interactives.data=e.interactives.data.map((function(t){return Object.assign(Object.assign({},t),{video:{id:e.id}})}))),(null===(n=e.clips)||void 0===n?void 0:n.data)&&(e.clips.data=e.clips.data.map((function(t){return Object.assign(Object.assign({},t),{video:{id:e.id}})}))),e}}}(e))};case"playlist":return function(e){return l.a.useBasicFetch(function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e,"?query=").concat("cover,banner,owner,videos[count()]{limit:0},clips[count()]{limit:0},interactives[count()]{limit:0},followers[count()]{limit:0}",",_isClickViewPlaylist,_liteOwner"),key:"playlist:".concat(e),success:t,error:n}}(e))};case"subject":return function(e,t){return l.a.useBasicFetch(function(e,t,n){return{url:vt(e,t),key:"classification:".concat(e),error:n}}(e,t))};case"series":return function(e){return l.a.useBasicFetch(function(e){return{url:ht(e),key:"series:".concat(e)}}(e))};case"interactive":return function(e){return l.a.useBasicFetch(function(e,t){return{url:b._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"(interactive)",permissionFilterOption:t}),key:"interactive:metadata:".concat(e,":").concat(t)}}(e))};case"clip":return function(e){return l.a.useBasicFetch(function(e,t){return{key:"clip:".concat(e,":").concat(t),url:b._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"(clip)",permissionFilterOption:t})}}(e))}}},getImageUrl:function(e){var t,n,r,a,i,o,c,l;return"thumbnail"in e&&e.thumbnail?null===(t=e.thumbnail)||void 0===t?void 0:t.url:"cover"in e?null===(n=e.cover)||void 0===n?void 0:n.url:"tallPoster"in e?null===(r=e.tallPoster)||void 0===r?void 0:r.url:"video"in e&&e.video?null===(i=null===(a=e.video)||void 0===a?void 0:a.thumbnail)||void 0===i?void 0:i.url:"clip"in e?null===(l=null===(c=null===(o=null==e?void 0:e.clip)||void 0===o?void 0:o.video)||void 0===c?void 0:c.thumbnail)||void 0===l?void 0:l.url:""}};function St(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Et(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var kt="share.shareAsLink";function Ct(e){var t=St(i().useState(!1),2),n=t[0],r=t[1],a=St(i().useState(!1),2),o=a[0],l=a[1];return i().useEffect((function(){r(!!e.shareLinkIsLoading)}),[e.shareLinkIsLoading]),n?i().createElement("div",{className:"text-center"},i().createElement(x.Spinner,{as:"div",animation:"border",role:"status"})):i().createElement(i().Fragment,null,i().createElement("div",{className:"d-flex justify-content-between"},i().createElement("h3",{className:"h6"},i().createElement(u.x,{phrase:"shareALink"})),e.shareLink&&("playlist"===e.entityType||"series"===e.entityType)&&i().createElement(ne.u,{title:"playlist"===e.entityType||"series"===e.entityType?c.T.getPhrase(kt,"deleteLinkTooltipPlaylist"):"",spanHack:!0},i().createElement(we.L,{onClick:e.onClickDeleteLink,className:"info-link justify-self-start"},i().createElement(u.x,{namespace:kt,phrase:"deleteLink"})))),i().createElement("div",{className:"d-flex justify-content-between align-items-center"},i().createElement("div",{className:"".concat(e.shareLink?"w-100":"w-75 d-flex align-items-center")},e.shareLink?i().createElement(i().Fragment,null,i().createElement("div",{className:"d-flex justify-content-between align-items-center mb-1"},i().createElement(We,{linkExpireDate:e.shareLink.linkExpireDate,isPasswordProtected:e.shareLink.isPasswordProtected,privacy:e.privacy,entityTypeId:e.shareLink.objectTypeId,status:e.shareLink.status,onClickShowPrivacies:e.onClickShowPrivacies}),e.canAddPolicies&&i().createElement(we.L,{className:"cursor-pointer",onClick:e.onClickShowSettings},i().createElement(B.x,{svgName:_.vn.Cog}))),i().createElement(qe,{value:e.shareLink.url,onCopy:function(){o||(l(!0),Xe.k.logUserAction(Object.assign({},e.entity),Xe.k.mergeOptions(bt.getAnalyticsOptions(e.entityType),{actionType:pt.UserAction.Share,descriptor:pt.ShareDescriptors.CopyLink,eventVersion:pt.EventVersion.V3})))}})):i().createElement("div",{className:"d-flex align-items-center"},i().createElement(B.x,{svgName:_.vn.Link,className:"svg-container mr-1"}),i().createElement("span",null,i().createElement(u.x,{namespace:kt,phrase:"generate"})))),!e.shareLink&&i().createElement(we.L,{className:"info-link",onClick:function(){r(!0),e.onClickCreateLink()}},i().createElement(u.x,{phrase:"createLink"}))))}var wt=n(5173),xt=n(92802);function Ot(e){var t=I.t.deepClone(e);return Object.keys(t).forEach((function(e){t.hasOwnProperty(e)&&(I.t.isObject(t[e])?t[e]=Ot(t[e]):null===t[e]&&delete t[e])})),t}function It(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,r=e.initialValues,i=e.onSubmit,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),c=t&&e.validationSchema?e.validationSchema.cast(Ot(r)):r,l={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(xt.J9,Object.assign({enableReinitialize:!0},o,{initialValues:c,onSubmit:function(t,r){var a=r.setSubmitting,o=r.resetForm,c=n&&e.validationSchema?e.validationSchema.cast(t):t;i(c,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.reset&&o(),a(!1)}))},initialStatus:l}),C.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}It.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0};var Nt=function(e,t,n,r,a){var i="form-control";return"sm"===r&&(i+=" form-control-sm"),"lg"===r&&(i+=" form-control-lg"),(0,xt.u9)(t,n)&&(0,xt.u9)(e,n)&&(i+=" is-invalid"),a&&(i+=" ".concat(a)),i};function jt(e){var t=e.label,n=e.checkboxLabelClassName,r=e.checkboxLabelFontWeight,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["label","checkboxLabelClassName","checkboxLabelFontWeight"]);return a.createElement(x.Form.Group,null,a.createElement("div",{className:"custom-control custom-checkbox"},a.createElement(Lt,Object.assign({className:"custom-control-input"},i)),a.createElement(x.Form.Label,{className:"custom-control-label cursor-pointer ".concat("normal"===r?"font-weight-normal":""," \n ").concat(n),htmlFor:i.id},t)))}function Tt(e){var t=(0,xt.u6)().values[e.fieldName];return"string"!=typeof t?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-right text-muted"},t.length,"/",e.limit)}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Pt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function Lt(e){var t,n,r=e.children,i=Pt(e,["children"]),o=(t=a.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return At(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=o[0],l=o[1],s=C.q.isFunction(r)?function(e){return r(e)}:a.Children.count(r)?r:null;if("password"!==i.type)return a.createElement(xt.gN,Object.assign({},I.t.omit(i,["formSize"])),s);var u="position-relative ".concat("d78lK");return i.className&&(u+=" ".concat(i.className)),i.disabled&&(u+=" ".concat("asbVo")),a.createElement("div",{className:u},a.createElement(xt.gN,Object.assign({},I.t.omit(i,["formSize","type","className"]),{type:c,className:"".concat("RBJnf"," border-0 w-100 h-100 outline-none rounded")}),s),"password"===i.type&&a.createElement(B.x,{svgName:"password"===c?_.vn.VisibleOn:_.vn.VisibleOff,className:"svg-container cursor-pointer ".concat("jCfI0"),onClick:function(){l("password"===c?"text":"password")}}))}function Ut(e){var t=e.label,n=e.className,r=e.showCharacterCounter,i=e.showRequiredStar,o=e.infoTooltip,c=e.infoText,l=e.formSize,s=e.showOptionalLabel,m=Pt(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoText","formSize","showOptionalLabel"]),d=(0,xt.u6)(),p=d.errors,f=d.touched,y=function(){};if("checkbox"===m.type){var v=I.t.omit(e,["formSize"]);return e.disabled&&(v.onChange=y),a.createElement(jt,Object.assign({},v))}var h=Object.assign(Object.assign({},m),{className:Nt(p,f,m.name,l,n)});return e.disabled&&(h.onChange=y),a.createElement(x.Form.Group,null,!!t&&a.createElement(x.Form.Label,{htmlFor:m.id,className:"d-flex align-items-center"},t,i&&a.createElement("span",{className:"text-danger"},"*"),o&&a.createElement(B.x,{svgName:_.vn.Info,title:o,tooltipPlacement:"top",tooltipSpanHack:!0}),s&&a.createElement("span",{className:"text-muted"}," ",a.createElement(u.x,{namespace:"shared.formField",phrase:"optional"}))),a.createElement(Lt,Object.assign({},h)),!!r&&!!m.maxLength&&a.createElement(Tt,{fieldName:m.name,limit:m.maxLength}),!!c&&a.createElement(x.Form.Text,{className:"text-muted"},c),a.createElement(xt.Bc,{name:m.name},(function(e){return a.createElement(x.Form.Control.Feedback,{type:"invalid"},e)})))}Lt.defaultProps={autoComplete:"off"},Ut.defaultProps={autoComplete:"off"};var Ft=n(85610),Rt=c.T.encloseNamespace("share.shareMessage"),Dt=wt.Ry().shape({message:wt.Z_().max(280,(function(){return Rt("maxMessageLen")}))});function Vt(){var e=(0,xt.u6)();return i().createElement(xt.l0,null,i().createElement(Ut,{component:"textarea",name:"message",id:"message",placeholder:Rt("placeholder"),value:e.values.message,label:Rt("label"),showOptionalLabel:!0}),i().createElement(Ft.u,null,i().createElement(Ft.u.Submit,{variant:"dark",text:Rt("share")})))}function Mt(e){return i().createElement(It,{initialValues:{message:"",showMessage:!1},validationSchema:Dt,onSubmit:function(t,n){var r=null;t.message&&(r=t.message),e.onClickShare(r,n)},allowInitialSubmit:!0},i().createElement(Vt,null))}var Gt="g-share-to-classroom";function zt(e){var t;if(t=e.integrations,i().useEffect((function(){var e;t.includes(r.GoogleClassroom)&&(null===(e=null===gapi||void 0===gapi?void 0:gapi.sharetoclassroom)||void 0===e||e.go(Gt))}),[t.includes(r.GoogleClassroom)]),i().useEffect((function(){t.includes(r.MicrosoftTeams)&&(null===shareToMicrosoftTeams||void 0===shareToMicrosoftTeams||shareToMicrosoftTeams.renderButtons())}),[t.includes(r.MicrosoftTeams)]),!e.integrations.length)return i().createElement(i().Fragment,null);var n="".concat("Rkyqz"," rounded mx-1");return i().createElement("div",{className:"d-flex mt-2 mx-n1"},e.integrations.includes(r.GoogleClassroom)&&i().createElement("div",{id:Gt,className:"".concat(n," partial-loading-background")},i().createElement("div",{className:"g-sharetoclassroom","data-size":"32","data-url":e.url})),e.integrations.includes(r.MicrosoftTeams)&&i().createElement("div",{className:"teams-share-button ".concat(n," ").concat("mPAD2"),"data-href":e.url,"data-button-type":"smallTransWhite","data-preview":"false","data-icon-px-size":"32"}))}function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bt(e){return function(e){if(Array.isArray(e))return Ht(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_t(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _t(e,t){if(e){if("string"==typeof e)return Ht(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ht(e,t):void 0}}function Ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Kt=c.T.encloseNamespace("shared.share");function Zt(e,t,n,r){if(!e)return[];var a=[].concat(Bt(t),Bt(n)).map((function(e){return e.id}));return e.filter((function(e){return!a.includes(e.id)&&e.id!==r}))}function $t(e){var t,n,r,a=(n=i().useState([]),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(n,r)||_t(n,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.")}()),o=a[0],c=a[1],l=S().hasPermissions,s=Zt(e.recentlySharedTo,o,e.directShareRecipients,e.currentUser.id);return i().createElement(i().Fragment,null,i().createElement("div",{className:"d-flex justify-content-between align-items-center pb-3"},i().createElement(Ve,{key:null!==(t=null==s?void 0:s.map((function(e){return e.id})).join(":"))&&void 0!==t?t:"share:search",getRemoteUrl:function(t){var n,r=b._.safeUrlConcat(e.gatewayApiUrl,"v1/search/users"),a=["user"];return l(f.ShareToClassrooms)&&a.push("classroom"),l(f.ShareToClassroomGroups)&&a.push("classroom_group"),b._.urlBuilder(r,(qt(n={query:t,index:a},"".concat("filters.","customerId"),e.currentUser.customerId),qt(n,"limit",10),n))},requestHeaders:e.searchRequestHeaders,formatRemoteSuggestions:function(t){return Zt(null==t?void 0:t.results,o,e.directShareRecipients,e.currentUser.id)},recentSearches:s,selections:o,updateSelections:function(e){return c([].concat(Bt(o),[e]))},removeSelection:function(e){return c(o.filter((function(t){return t.id!==e})))},placeholder:Kt("searchPlaceholder"),imageCdnUrl:e.imageCdnUrl,activationLength:2,fetchSelectionMembers:e.fetchRecipientUsers&&function(t){e.fetchRecipientUsers&&e.fetchRecipientUsers(t,(function(e){var n=[];o.forEach((function(r){var a;if(r.id!==t)return n.push(r);var i=I.t.deepClone(r);(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.length)?i.users=e:i.users={count:0,data:[],pagination:null},n.push(i)})),c(g.m.uniq(n,"id"))}))},debounceTime:300,emptyStateImageUrl:e.emptyStateImageUrl,errorStateImageUrl:e.errorStateImageUrl})),!o.length&&e.directShareRecipients.length?i().createElement("div",null,i().createElement("h3",{className:"font-size-normal"},i().createElement(u.x,{phrase:"sharedTo"})),i().createElement(h.ZP,{autoHeight:!0},i().createElement("ul",{className:"list-unstyled"},e.directShareRecipients.map((function(t){return i().createElement("li",{key:t.id,className:"mb-2 pr-1"},i().createElement(Ee,{entity:t,imageCdnUrl:e.imageCdnUrl,removeRecipient:e.onClickRemoveRecipient}))}))))):i().createElement(i().Fragment,null),o.length?i().createElement(Mt,{onClickShare:function(t,n){e.onClickShare(o.map((function(e){return{id:e.id,typeId:e.typeId}})),t,(function(){c([]),n()}))}}):i().createElement("div",{className:"mx-n3 px-3 pt-3 border-top"},i().createElement(Ct,{entity:e.entity,entityType:e.entityType,shareLink:e.shareLink,onClickShowSettings:e.onClickShowSettings,onClickCreateLink:e.onClickCreateLink,shareLinkIsLoading:e.shareLinkIsLoading,canAddPolicies:e.canAddPolicies,privacy:e.privacy,entityTypeId:e.entity.typeId,onClickShowPrivacies:e.onClickShowPrivacies,onClickDeleteLink:e.onClickDeleteLink}),!!e.shareLink&&i().createElement(zt,{integrations:e.integrations,url:e.shareLink.url})))}var Wt=n(42905);function Qt(e){var t=e.isLabelEllipsis,n=a.useRef(null);return a.useEffect((function(){n.current&&(e.checked?n.current.indeterminate&&(n.current.indeterminate=!1):!e.indeterminate||n.current.indeterminate?!e.indeterminate&&n.current.indeterminate&&(n.current.indeterminate=!1):n.current.indeterminate=!0)}),[n.current,e.indeterminate,e.checked]),a.createElement("div",{className:"custom-control custom-checkbox ".concat(e.className)},a.createElement("input",{ref:n,type:"checkbox",className:"custom-control-input",id:e.id,name:e.name,checked:e.checked,onChange:e.onChange,disabled:e.disabled}),a.createElement("label",{className:"custom-control-label cursor-pointer",htmlFor:e.id},a.createElement("span",{className:"".concat(t?"clamp-1":"")},e.label)))}Qt.defaultProps={checked:!1,label:"",className:""};var Xt="share.embedSize";function Yt(e){var t=e.autoplay,n=e.setAutoplay,r=e.videoSize,a=e.setVideoSize,o=e.videoSizes;return i().createElement("div",{className:"d-flex align-items-center"},!!o.length&&i().createElement(i().Fragment,null,i().createElement("div",{className:"mr-1"},i().createElement(u.x,{namespace:Xt,phrase:"videoSize"})),i().createElement("div",{className:"pr-3"},i().createElement(x.Dropdown,null,i().createElement(x.Dropdown.Toggle,{id:"embed-resolution",variant:"outline-dark"},r.label),i().createElement(x.Dropdown.Menu,null,o.map((function(e){return i().createElement(x.Dropdown.Item,{key:"".concat(e.width,"x").concat(e.height),onClick:function(){return a(e)}},e.label)})))))),i().createElement("div",{className:"mr-2"},i().createElement(u.x,{namespace:Xt,phrase:"autoplay"})),i().createElement(Qt,{id:"autoplay-checkbox",checked:t,onChange:function(){return n(!t)}}))}function Jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return en(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function en(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var tn="share.copyEmbedHtml",nn=c.T.encloseNamespace(tn);function rn(e){var t=Wt.i.getEmbedResolutions(),n=Jt(i().useState("copy"),2),r=n[0],a=n[1],o=Jt(i().useState(!1),2),c=o[0],l=o[1],s=Jt(i().useState(t.find((function(e){return"100%"===e.width}))),2),m=s[0],d=s[1],p=Jt(i().useState(!1),2),f=p[0],y=p[1],v=Wt.i.buildEmbedUrl({embedUrl:e.embedUrl,host:e.config.primaryUrl,shareId:e.shareId,autoplay:c}),h=Wt.i.getEmbedString({url:v,size:m});return i().createElement(u.D.Provider,{value:tn},i().createElement("label",null,i().createElement(u.x,{namespace:tn,phrase:"label"})),i().createElement("div",{className:"input-group mb-2"},i().createElement("textarea",{className:"form-control rounded w-100 h-100 ".concat("mwvd0"),spellCheck:!1,value:h,rows:5,readOnly:!0}),i().createElement("div",{className:"input-group-append ".concat("myePx")},i().createElement(Me,{onCopy:function(){a("copied"),setTimeout((function(){return a("copy")}),2e3),f||(y(!0),Xe.k.logUserAction(Object.assign(Object.assign({},e.entity),{embedDetails:{size:m,autoplay:c}}),Xe.k.mergeOptions(bt.getAnalyticsOptions(e.entityType),{actionType:pt.UserAction.Share,descriptor:pt.ShareDescriptors.CopyEmbedHtml,eventVersion:pt.EventVersion.V3})))},text:h},i().createElement("button",{className:"btn btn-outline-dark border border-secondary ".concat("zgdag"),type:"button"},nn(r))))),i().createElement(Yt,{autoplay:c,setAutoplay:l,videoSize:m,setVideoSize:d,videoSizes:t}))}var an=(0,wt.Ry)().shape({removePassword:(0,wt.O7)(),resourceId:(0,wt.Z_)(),linkExpireDate:(0,wt.Z_)().nullable(),password:(0,wt.Z_)().test({name:"password-length",exclusive:!1,params:{},message:c.T.getPhrase("share.validation","minPassword"),test:function(e){return!((null==e?void 0:e.length)&&e.length<3)}}).default("")}),on=n(9063);function cn(e){if(!e)return null;var t=new Date;return t.setDate(t.getDate()+30),t.toISOString()}var ln="shared.linkExpiry",sn=c.T.encloseNamespace(ln);function un(e){var t=(0,xt.u6)();return i().createElement("div",{className:"d-flex justify-content-between align-items-center pb-3"},i().createElement("div",null,i().createElement("label",{className:"m-0",htmlFor:""},i().createElement(u.x,{namespace:ln,phrase:"linkExpirationHeading"})),i().createElement("p",{className:"m-0"},i().createElement(u.x,{namespace:ln,phrase:"linkExpirationInfo"}))),i().createElement(ne.u,{title:sn("passwordProtected"),disable:!e.passwordProtectLink,spanHack:!0,trigger:"hover"},i().createElement(on.Z,{onClick:function(){e.passwordProtectLink||t.setFieldValue("linkExpireDate",cn(!t.values.linkExpireDate))},on:!!t.values.linkExpireDate,disabled:e.passwordProtectLink,showStateWhenDisabled:!0})))}var mn="W9Jl8";function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pn=c.T.encloseNamespace("share.setPasswordInput");function fn(e){var t,n,r,i=(n=a.useState(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(n,r)||function(e,t){if(e){if("string"==typeof e)return dn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dn(e,t):void 0}}(n,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.")}()),o=i[0],c=i[1],l=null===(t=(0,xt.u6)().errors)||void 0===t?void 0:t.password;return a.createElement(a.Fragment,null,a.createElement("input",{className:"form-control ".concat(l?"is-invalid":""),value:e.value,onChange:function(t){e.canEdit&&e.onChange(t.target.value)},type:o?"text":"password",placeholder:e.placeholder||pn("passwordPlaceholder"),readOnly:!e.canEdit}),!!l&&a.createElement(x.Form.Control.Feedback,{type:"invalid"},l),!!e.canEdit&&a.createElement(we.L,{className:mn,onClick:function(){return c(!o)}},a.createElement(B.x,{svgName:o?_.vn.VisibleOn:_.vn.VisibleOff,title:pn(o?"hidePassword":"revealPassword"),tooltipPlacement:"top"})),!e.canEdit&&!!e.canReset&&!!e.onReset&&a.createElement(we.L,{className:mn,onClick:e.onReset},a.createElement(B.x,{svgName:_.vn.Close,title:pn("resetPassword"),tooltipPlacement:"top"})))}function yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vn="shared.linkPassword";function hn(e){var t,n,r,a=e.passwordProtectLink,o=e.setPasswordProtectLink,c=(0,xt.u6)(),l=(n=i().useState(!!(null===(t=e.shareLink)||void 0===t?void 0:t.isPasswordProtected)),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(n,r)||function(e,t){if(e){if("string"==typeof e)return yn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yn(e,t):void 0}}(n,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.")}()),s=l[0],m=l[1];return i().createElement("div",{className:"pb-3"},i().createElement("div",{className:"d-flex justify-content-between align-items-center"},i().createElement("div",null,i().createElement("label",{className:"m-0",htmlFor:""},i().createElement(u.x,{namespace:vn,phrase:"passwordProtectHeading"})),i().createElement("p",{className:"m-0"},i().createElement(u.x,{namespace:vn,phrase:"passwordProtectInfo"}))),i().createElement(on.Z,{onClick:function(){var t;(null===(t=e.shareLink)||void 0===t?void 0:t.isPasswordProtected)&&c.setFieldValue("removePassword",a),c.setFieldValue("password",""),o(!a),c.setFieldValue("linkExpireDate",cn(!a))},on:a})),a&&i().createElement("div",{className:"position-relative mt-2"},i().createElement(fn,{value:s?"********":c.values.password,onChange:function(e){c.setFieldValue("password",e)},onReset:function(){c.setFieldValue("password",""),c.setFieldValue("removePassword",!0),m(!1)},canEdit:!s,canReset:!0})))}function gn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bn=c.T.encloseNamespace("shared.share");function Sn(e){var t,n,r=(0,xt.u6)(),a=S().hasPermissions,o=(t=i().useState(!!e.shareLink.isPasswordProtected),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return gn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gn(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=o[0],l=o[1];return i().createElement(xt.l0,null,i().createElement("div",{className:"d-flex align-items-center justify-content-between pb-3"},i().createElement(We,{linkExpireDate:r.values.linkExpireDate,isPasswordProtected:c,privacy:e.privacy,entityTypeId:e.shareLink.objectTypeId,status:e.shareLink.status,onClickShowPrivacies:e.onClickShowPrivacies}),i().createElement(ne.u,{title:bn("deleteLinkTooltip"),spanHack:!0},i().createElement(we.L,{onClick:e.onClickDeleteLink,className:"info-link justify-self-start"},i().createElement(u.x,{phrase:"deleteLink"})))),a(f.ManageShareLinkSettings)&&i().createElement(i().Fragment,null,i().createElement(un,{passwordProtectLink:c}),i().createElement(hn,{shareLink:e.shareLink,passwordProtectLink:c,setPasswordProtectLink:l})),!!e.canEmbed&&i().createElement("div",{className:"pb-3"},i().createElement(rn,{embedUrl:e.shareLink.embedUrl,entity:e.entity,entityType:e.entityType,config:e.config,entityId:e.entityId,shareId:e.shareLink.id,analyticsOptions:e.analyticsOptions})),i().createElement(Ft.u,null,i().createElement(Ft.u.Cancel,{onClick:e.onClickCancel,text:bn("back"),variant:"outline-dark"}),i().createElement(Ft.u.Submit,{variant:"dark"})))}function En(e){var t={password:"",removePassword:!1,linkExpireDate:e.shareLink.linkExpireDate};return i().createElement(It,{initialValues:t,onSubmit:e.onClickSaveLink,castInitialValues:!1,validationSchema:an},i().createElement(Sn,{entity:e.entity,entityType:e.entityType,config:e.config,shareLink:e.shareLink,entityId:e.entityId,onClickCancel:e.onClickCancel,analyticsOptions:e.analyticsOptions,canEmbed:e.canEmbed,privacy:e.privacy,onClickShowPrivacies:e.onClickShowPrivacies,onClickDeleteLink:e.onClickDeleteLink}))}var kn=n(28294);function Cn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xn="share.shareLinkPrivacies",On=c.T.encloseNamespace(xn);function In(e){return i().createElement("div",{className:"pb-3"},i().createElement(x.Form.Check,{type:"radio",name:e.id,id:e.id,value:e.id,label:e.name,onChange:function(){return e.onSelect(e.id)},checked:e.checked,className:"".concat("Hxlr9"," m-0"),custom:!0,disabled:e.disabled}),i().createElement("p",{className:"mb-0 ".concat("ZFUnb")},e.description))}function Nn(e){var t="private";Array.isArray(e.privacy)||(t=e.privacy.privacy);var n=Cn(i().useState(t),2),r=n[0],a=n[1],o=Cn(i().useState(!1),2),c=o[0],l=o[1];function s(e){r!==e&&("restricted"===r&&"private"===e||a(e))}var m=e.shareLink.isPasswordProtected;return i().createElement(i().Fragment,null,e.shareLink.objectTypeId===X.Playlist&&i().createElement("div",null,i().createElement(u.x,{namespace:xn,phrase:"privatePlaylistVideos"})),m&&i().createElement(We,{entityTypeId:e.shareLink.objectTypeId,linkExpireDate:e.shareLink.linkExpireDate,isPasswordProtected:e.shareLink.isPasswordProtected,status:e.shareLink.status,privacy:e.privacy}),i().createElement("div",{className:"py-3"},i().createElement(In,{key:"public",id:"public",name:On("public"),description:On("publicDescription"),checked:!m&&"public"===r,onSelect:s,disabled:m}),i().createElement(In,{key:"just_my_customer",id:"just_my_customer",name:On("protected"),description:On("protectedDescription"),checked:!m&&"just_my_customer"===r,onSelect:s,disabled:m}),i().createElement(In,{key:"private",id:"private",name:On("private"),description:On("privateDescription"),checked:!m&&("private"===r||"restricted"===r),onSelect:s,disabled:m})),i().createElement("div",{className:"d-flex justify-content-between align-items-center"},i().createElement("div",{className:"d-flex justify-content-end"},i().createElement("button",{type:"button",className:"btn btn-outline-dark mr-2",onClick:e.onClickCancel},i().createElement(u.x,{namespace:xn,phrase:"back"})),i().createElement(kn.m,{className:"btn btn-dark",type:"button",onClick:function(){l(!0),e.onClickSavePrivacy(r)},disabled:r===t,showSpinner:c},i().createElement(u.x,{namespace:xn,phrase:"save"})))))}var jn=n(33755);function Tn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return An(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?An(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function An(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Pn="shared.share",Ln=c.T.encloseNamespace(Pn);function Un(e){switch(e){case"video":return Ln("titleVideo");case"clip":return Ln("titleClip");case"interactive":return Ln("titleInteractive");case"series":return Ln("titleSeries");case"playlist":return Ln("titlePlaylist");case"subject":return Ln("titleTopic")}}var Fn=function(e){return"video"===e||"interactive"===e||"clip"===e};function Rn(e){var t,n,r,a,c,p,f,y,h=(0,o.useDispatch)(),g=(0,d.Z)(),b=!e.gatewayApiUrl,S=Tn(i().useState(!1),2),E=S[0],k=S[1],C=Tn(i().useState("main"),2),w=C[0],x=C[1],I=(n=w,r=i().useRef(),i().useEffect((function(){r.current=n})),r.current),N=Tn(i().useState(!1),2),j=N[0],T=N[1],A=l.a.useBasicFetch(s.N.currentUser()),P=bt.getFetchFunctionByType(e.entityType)(e.entityId,null===(t=A.data)||void 0===t?void 0:t.id),L=l.a.useBasicFetch({url:"/api/config",key:"config",bootstrapName:"config",success:f,error:y}),U=l.a.useBasicFetch(b&&s.N.token()),F=l.a.useBasicFetch((p=e.entityId,{url:"{gateway}/v1/share/links?objectId=".concat(p),key:"share:link:object:".concat(p),normalizeOptions:tt,formatData:function(e){return Object.assign(Object.assign({},e),{linkExpireDate:e.linkExpireDate||null})}})),R=l.a.useBasicFetch((c=e.entityId,{url:"{gateway}/v1/users/me/share/direct/sent-items?objectId=".concat(c),key:"direct:share:sent:object:".concat(c),normalizeOptions:tt})),D=l.a.useBasicFetch(bt.getDirectShareRecipientsRequest(R.data)),V=A.data&&(a=A.data.id,at.getRecentItem(it(a),rt.SG)),M=!!(null==V?void 0:V.length),G=l.a.useBasicFetch(M&&function(e){e.sort();var t=e.map((function(e){return"id=".concat(e)})).join("&");return{url:"{gateway}/v1/objects?".concat(t),key:"share:recipients:".concat(e.join(","))}}(V)),z=l.a.useBasicFetch(function(e){return{url:"{gateway}/v1/objects/".concat(e,"/access"),key:"privacy:".concat(e),normalize:!1}}(e.entityId)),q=(0,jn.r)(null),B=q.shareToGoogleClassroom,_=q.shareToMicrosoftTeams,H=q.isLoadingSettings;function K(e){var t;(null===(t=e.recipients)||void 0===t?void 0:t.length)&&l.a.getFetch(h)(bt.getDirectShareRecipientsRequest(e))}function Z(e,t){l.a.getFetch(h)(function(e,t){return{url:"{gateway}/v1/objects/".concat(e,"/users?query={limit:100}"),key:"share:recipients:".concat(e,":users"),success:t}}(e,t))}function $(){F.data||bt.createLink({dispatch:h,entity:P.data,entityType:e.entityType,alerts:g})}function W(t,n){bt.updateLink(h,P.data,e.entityType,F.data,t,g,(function(){return x("main")}),n)}function Q(){k(!0),T(!1),bt.deleteLink(h,P.data,e.entityType,F.data,g,(function(){return x("main")}),(function(){return k(!1)}))}function X(t,n,r){bt.createOrUpdateDirectShare({dispatch:h,entity:P.data,entityType:e.entityType,currentUser:A.data,recipients:t,message:n,sentDirectShare:R.data,onSuccess:K,onError:function(){return g.error(Ln("directShareError",{name:P.data.name}))},onDone:r})}function Y(t,n){bt.removeDirectShareRecipient(h,t,e.entityType,R.data,K,(function(){g.error(Ln("removeDirectShareError")),n&&n()}))}function J(t){l.a.fetch(h,function(e,t,n,r){return{url:"{gateway}/v1/objects/privacy",key:"update:privacy",type:O.k.PUT,data:{privacy:t,objectId:e},invalidationKeys:"privacy",normalize:!1,success:n,error:r}}(e.entityId,t,(function(){return x(I)}),(function(){return g.error(Ln("privaciesError",{name:P.data.name}))})))}bt.useHydrateRecipients(D.data),bt.useHydrateRecipients(G.data),i().useEffect((function(){F.hasCompleted&&T(!0)}),[F.hasCompleted,j]);var ee=!!A.data&&!!L.data&&(!b||!!U.data)&&!!R.hasCompleted&&j&&!!z.data&&!!P.data&&!H;return i().createElement(u.D.Provider,{value:Pn},i().createElement(m.G,{title:Un(e.entityType),closePopup:e.closePopup,showLoadingSpinner:E||!ee},function(){if(E||!ee)return i().createElement(i().Fragment,null);switch(w){case"main":return i().createElement($t,{shareLink:F.data,shareLinkIsLoading:F.isFetching,entity:P.data,entityType:e.entityType,directShareRecipients:D.data||[],recentlySharedTo:G.data||[],onClickCreateLink:$,onClickShowSettings:function(){return x("link-settings")},onClickShare:X,onClickRemoveRecipient:Y,onClickDeleteLink:Q,analyticsOptions:bt.getAnalyticsOptions(e.entityType),gatewayApiUrl:e.gatewayApiUrl||L.data.gatewayApiUrl,imageCdnUrl:L.data.imageCdnUrl,searchRequestHeaders:b?{authorization:"Bearer ".concat(U.data.value)}:null,currentUser:A.data,fetchRecipientUsers:Z,privacy:z.data,onClickShowPrivacies:function(){return x("privacy")},canAddPolicies:(r=e.entityType,"video"===r||"interactive"===r||"clip"===r),emptyStateImageUrl:e.emptyStateImageUrl,errorStateImageUrl:e.errorStateImageUrl,integrations:(t=B,n=_,v(t,n).filter((function(e){return e.enabled})).map((function(e){return e.id})))});case"link-settings":return i().createElement(En,{entity:P.data,entityType:e.entityType,config:L.data,shareLink:F.data,entityId:e.entityId,analyticsOptions:bt.getAnalyticsOptions(e.entityType),onClickSaveLink:W,onClickDeleteLink:Q,onClickCancel:function(){return x("main")},canEmbed:Fn(e.entityType),privacy:z.data,onClickShowPrivacies:function(){return x("privacy")}});case"privacy":return i().createElement(Nn,{privacy:z.data,shareLink:F.data,onClickCancel:function(){return x(I)},onClickSavePrivacy:J})}var t,n,r}()))}},2491:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(54096),a=n(21186),i=n(92159);function o(){var e=(0,r.G)(i.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:a.NK.Warning,heading:a.R6.Warning,message:t})}}}},42905:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(57857),a=n(68003),i="shared.shared-utils",o={getEmbedResolutions:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=[{label:r.T.getPhrase(i,"small"),width:"640",height:"360"},{label:r.T.getPhrase(i,"medium"),width:"1014",height:"576"},{label:r.T.getPhrase(i,"large"),width:"1280",height:"720"}];return e&&t.unshift({label:r.T.getPhrase(i,"responsive"),width:"100%",height:"100%"}),t},getEmbedString:function(e){var t=e.url,n=e.size,r="100%"===n.width,a=r?'style="position:absolute; top:0; left:0; width:100%; height:100%;"':'width="'.concat(n.width,'" height="').concat(n.height,'"'),i='src="'.concat(t,'"'),o="<iframe ".concat(a," ").concat('frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen allow="autoplay"'," ").concat(i,"></iframe>");return r?'<div style="padding:56.25% 0 0 0; position:relative;">'.concat(o,"</div>"):o},buildEmbedUrl:function(e){var t=e.embedUrl,n=e.host,r=e.shareId,i=e.autoplay,o=e.consumerKey,c=t;c||(c=a._.safeUrlConcat(n,"share/embed/".concat(r)));var l={};return i&&(l.a=!0),o&&(l.consumerKey=o),a._.urlBuilder(c,l)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9695],{49695:function(e,t,n){"use strict";n.r(t),n.d(t,{UploadCompleteView:function(){return m}});var r=n(31647),o=n(21679),i=n(27169),l=n.n(i),a=n(30305),u=n(57857),c={completeImage:"TcxNH"};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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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,r.key,r)}}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function b(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)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(m,e);var t,n,r,i,p=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(r);if(i){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function m(){return s(this,m),p.apply(this,arguments)}return t=m,(n=[{key:"initialize",value:function(){this.videoUploadService=o.u.getInstance(a.K9.VideoUpload,this)}},{key:"name",get:function(){return"UploadCompleteView"}},{key:"title",get:function(){return u.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.uploadComplete"}},{key:"template",get:function(){return l()}},{key:"className",get:function(){return"p-3 my-3 bg-white rounded text-center"}},{key:"appLinks",get:function(){return{".back-to-library-applink":{application:a.OV.LIBRARY_EDITOR,action:a.eX.LibraryEditor.HOME}}}},{key:"viewOptions",value:function(){return{styles:c,count:this.videoUploadService.getCollection().length,imageUrl:a.Wn.Shared.SUCCESS}}},{key:"onBeforeDestroy",value:function(){this.videoUploadService.getCollection().reset()}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(r.Q.View)},27169:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return"<h1>"+u((n.lang||t&&t.lang||a).call(l,"inLibrary",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.count:i},data:o}))+'</h1>\r\n<div class="my-3">\r\n <img src='+u(c(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+' class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.completeImage:i,t))+' my-4 img-fluid"/>\r\n</div>\r\n<p>'+u((n.lang||t&&t.lang||a).call(l,"isProcessing",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.count:i},data:o}))+'</p>\r\n<a class="back-to-library-applink btn btn-dark">'+u((n.lang||t&&t.lang||a).call(l,"back",{name:"lang",hash:{},data:o}))+"</a>"},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9927],{67670:function(e,t,n){"use strict";n.d(t,{v:function(){return f}});var r=n(31647),o=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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,r.key,r)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function u(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var f=function(e){!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&&c(e,t)}(p,e);var t,n,r,i,f=(r=p,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(r);if(i){var n=s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function p(){return l(this,p),f.apply(this,arguments)}return t=p,(n=[{key:"defaults",value:function(){return e={},!0,(t=o.ZV.Disabled)in e?Object.defineProperty(e,t,{value:true,enumerable:!0,configurable:!0,writable:!0}):e[t]=true,e;var e,t}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(r.Q.Model)},79927:function(e,t,n){"use strict";n.r(t),n.d(t,{DownloadToLocalCacheView:function(){return w}});var r=n(21679),o=n(57857),i=n(31647),l=n(10101),a=n(88172),c=n(9484),u=n(30305),s=n(67670),f=n(61843),p=n(16317),h=n(9231),d=n.n(h),y={image:"wnpu5"};function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function g(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,r.key,r)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function v(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var w=function(e){!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)}(O,e);var t,n,h,b,w=(h=O,b=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=C(h);if(b){var n=C(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v(this,e)});function O(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),w.call(this,e)}return t=O,(n=[{key:"initialize",value:function(){this.localCacheDataService=r.u.getInstance(u.Or.LocalCache,this),this.bindListeners()}},{key:"name",get:function(){return"DownloadToLocalCacheView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"shared.downloadToLocalCache"}},{key:"template",get:function(){return d()}},{key:"channelName",get:function(){return f.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){return this.spinnerModel=new s.v,[{behaviorClass:l.Yw,title:o.T.getPhrase(this.lang,"popupHeading"),spinnerButtonOptions:this.getSpinnerButtonOptions}]}},{key:"bindListeners",value:function(){var e=this;this.listenTo(u.Vk.USER,"".concat(u.M_.CURRENT_USER,":sync"),this.render),this.listenTo(u.Vk.LOCAL_CACHE,"".concat(u.M_.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(u.Vk.LOCAL_CACHE,"".concat(u.M_.LOCAL_CACHE_DOWNLOADS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(u.Vk.LOCAL_CACHE,"".concat(u.M_.ADD_VIDEO_TO_LOCAL_CACHE,":sync"),(function(){return e.triggerMethod("hide")})),this.listenTo(u.Vk.LOCAL_CACHE,"".concat(u.M_.ADD_VIDEO_TO_LOCAL_CACHE,":error"),(function(){return e.triggerMethod("hide")}))}},{key:"getSpinnerButtonOptions",value:function(){var e=this;if(!this.localCacheDownloads||!this.localCacheDownloads.length)return{model:this.spinnerModel,channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"buttonText"),onClick:function(){return e.onClickAddToLocalCache()}}}},{key:"onClickAddToLocalCache",value:function(){this.spinnerModel.set(a.ZV.ShowSpinner,!0),this.localCacheDataService.downloadVideoToLocalCache(this.model.get("deviceId"),this.options.videoId)}},{key:"requiredResources",get:function(){return{currentUser:c.K.currentUser}}},{key:"onBeforeRender",value:function(){var e=this.localCacheDataService.getDevices(this.currentUser.get("customerId"));return this.localCacheDownloads=this.localCacheDataService.getDownloadsForVideos([this.options.videoId]),!(e&&this.localCacheDownloads&&(this.model=f.o8.getNewestDeviceUserCanManage(e,this.currentUser.get("customerId")),this.model?(this.spinnerModel.set(a.ZV.Disabled,!1),0):(setTimeout((function(){return i.Q.ErrorHelper.throw(new p.HH)}),0),1)))}},{key:"viewOptions",value:function(){return{styles:y,dataFetched:!!this.model&&!!this.localCacheDownloads,spinnerEl:f.Kp.getSpinner({size:f.Ey.Large,extraClasses:"mx-auto"}),alreadyDownloaded:this.localCacheDownloads&&this.localCacheDownloads.length,imageUrl:u.Wn.Shared.LOCAL_CACHE}}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),O}(i.Q.View)},9231:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.alreadyDownloaded:i,{name:"unless",hash:{},fn:e.program(4,o,0),inverse:e.program(6,o,0),data:o}))?i:""},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,c=e.escapeExpression,u=e.lambda;return'<p class="mb-3"><strong>'+c((n.lang||t&&t.lang||a).call(l,"description",{name:"lang",hash:{},data:o}))+'</strong></p>\r\n<img class="img-fluid '+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' mb-3" src="'+c(u(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" />\r\n<p>'+c((n.lang||t&&t.lang||a).call(l,"nextStep",{name:"lang",hash:{},data:o}))+"</p>\r\n"},6:function(e,t,n,r,o){return e.propertyIsEnumerable,'<p class="m-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"alreadyAdded",{name:"lang",hash:{},data:o}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
|