@clickview/library-editor 1.54.0-rc.1 → 1.54.1-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +3 -3
- package/dist/css/{826-library-editor-2797c4568f.chunk.css → 4001-library-editor-da87291909.chunk.css} +3 -2
- package/dist/css/{library-editor-app-cade5e4b6a.css → library-editor-app-08d619de95.css} +2 -2
- package/dist/languages/en.json +1 -1
- package/dist/scripts/101-1aa755b98b.chunk.js +1 -0
- package/dist/scripts/{1010-37e7c83417.chunk.js → 1010-2c4e71bac2.chunk.js} +1 -1
- package/dist/scripts/{1086-7632f7b45b.chunk.js → 1086-d0efa1a0ca.chunk.js} +1 -1
- package/dist/scripts/1216-9d2e314558.chunk.js +1 -0
- package/dist/scripts/{1269-02d8d91784.chunk.js → 1269-ec70091b19.chunk.js} +1 -1
- package/dist/scripts/{1409-79be9fc25d.chunk.js → 1409-f3fea6c3c3.chunk.js} +1 -1
- package/dist/scripts/1537-2945b91924.chunk.js +1 -0
- package/dist/scripts/{1703-4d41a9e919.chunk.js → 1703-0e6940a3c0.chunk.js} +1 -1
- package/dist/scripts/{1832-305c691701.chunk.js → 1832-9fd96d5efe.chunk.js} +1 -1
- package/dist/scripts/{1876-33e86bc26f.chunk.js → 1876-fc815ba31e.chunk.js} +1 -1
- package/dist/scripts/1973-074d4e72c2.chunk.js +1 -0
- package/dist/scripts/209-f9e52775b1.chunk.js +1 -0
- package/dist/scripts/{243-526e36736c.chunk.js → 243-d27b3c7903.chunk.js} +1 -1
- package/dist/scripts/2516-0290fc7712.chunk.js +1 -0
- package/dist/scripts/{259-e1c3eb98ce.chunk.js → 259-d6a4aa6694.chunk.js} +1 -1
- package/dist/scripts/{2601-f14eacbf73.chunk.js → 2601-d42245cb40.chunk.js} +1 -1
- package/dist/scripts/2639-efe1222211.chunk.js +2 -0
- package/dist/scripts/2639-efe1222211.chunk.js.LICENSE.txt +8 -0
- package/dist/scripts/{2644-60bdfc1c95.chunk.js → 2644-cadc6531d6.chunk.js} +1 -1
- package/dist/scripts/2648-61a84bc983.chunk.js +1 -0
- package/dist/scripts/{2692-1ddd87476e.chunk.js → 2692-b7dff9da8a.chunk.js} +1 -1
- package/dist/scripts/{2803-fbb9d2439d.chunk.js → 2803-026f3af7cb.chunk.js} +1 -1
- package/dist/scripts/{2888-c2c8b859cd.chunk.js → 2888-a406bcd564.chunk.js} +1 -1
- package/dist/scripts/2955-521e238d27.chunk.js +1 -0
- package/dist/scripts/299-32a1391000.chunk.js +1 -0
- package/dist/scripts/{2998-aae0ec14de.chunk.js → 2998-a3c3a1e950.chunk.js} +1 -1
- package/dist/scripts/{3400-ebc91cde7a.chunk.js → 3400-326dc33968.chunk.js} +1 -1
- package/dist/scripts/{35-278014f3ca.chunk.js → 35-d04a61537f.chunk.js} +1 -1
- package/dist/scripts/{3551-17275d533c.chunk.js → 3551-97ac416527.chunk.js} +1 -1
- package/dist/scripts/{3639-c5cc04c72d.chunk.js → 3639-171b53e474.chunk.js} +1 -1
- package/dist/scripts/3746-9f89d2e526.chunk.js +1 -0
- package/dist/scripts/376-4d9e8d5305.chunk.js +1 -0
- package/dist/scripts/{3763-47619f0e54.chunk.js → 3763-21a9bc8c81.chunk.js} +1 -1
- package/dist/scripts/3969-14f58e46c8.chunk.js +1 -0
- package/dist/scripts/4001-5f16bcaff3.chunk.js +2 -0
- package/dist/scripts/4024-e76b07c207.chunk.js +1 -0
- package/dist/scripts/{4201-ffd35af9cb.chunk.js → 4201-9f363cadea.chunk.js} +1 -1
- package/dist/scripts/{4245-9262674448.chunk.js → 4245-3680566469.chunk.js} +1 -1
- package/dist/scripts/{8727-30dadf014c.chunk.js → 4506-e3e16c1c39.chunk.js} +1 -1
- package/dist/scripts/4523-e918636e67.chunk.js +1 -0
- package/dist/scripts/{4591-78600e384c.chunk.js → 4591-84bc2f21f0.chunk.js} +1 -1
- package/dist/scripts/471-9ae0a7d088.chunk.js +2 -0
- package/dist/scripts/{4860-6001ab4e2a.chunk.js → 4860-7e9c7b578f.chunk.js} +1 -1
- package/dist/scripts/4984-e55e0bfa17.chunk.js +1 -0
- package/dist/scripts/514-9e42f33112.chunk.js +2 -0
- package/dist/scripts/514-9e42f33112.chunk.js.LICENSE.txt +6 -0
- package/dist/scripts/{5173-d333602893.chunk.js → 5173-6fe93f90b8.chunk.js} +1 -1
- package/dist/scripts/{5286-b5a0097954.chunk.js → 5286-c55bd5882c.chunk.js} +1 -1
- package/dist/scripts/535-96be75b325.chunk.js +1 -0
- package/dist/scripts/{5412-e2505df3a4.chunk.js → 5412-abf3c7ab24.chunk.js} +1 -1
- package/dist/scripts/{5418-f84d0ff359.chunk.js → 5418-4cf3592f6a.chunk.js} +1 -1
- package/dist/scripts/{5424-65be3c657c.chunk.js → 5424-fb9af4cac5.chunk.js} +1 -1
- package/dist/scripts/5524-83e92242a1.chunk.js +1 -0
- package/dist/scripts/5698-74d4a95cab.chunk.js +1 -0
- package/dist/scripts/{5707-41459498e9.chunk.js → 5707-2455798bbe.chunk.js} +1 -1
- package/dist/scripts/{5747-f28298b80d.chunk.js → 5747-dc100fe944.chunk.js} +1 -1
- package/dist/scripts/5850-21711256a9.chunk.js +1 -0
- package/dist/scripts/5891-1f548b9c62.chunk.js +1 -0
- package/dist/scripts/{6093-e19df1d1fa.chunk.js → 6093-c4d7d99258.chunk.js} +1 -1
- package/dist/scripts/61-35a4e0dd3d.chunk.js +2 -0
- package/dist/scripts/{6352-d267f9afea.chunk.js → 6352-9f5498c43f.chunk.js} +1 -1
- package/dist/scripts/6637-3078ed12bc.chunk.js +1 -0
- package/dist/scripts/6725-52d65e0d02.chunk.js +2 -0
- package/dist/scripts/{6732-85afd02f41.chunk.js → 6732-0223b7e084.chunk.js} +1 -1
- package/dist/scripts/{6774-a002ac7253.chunk.js → 6774-7d16e3a1b2.chunk.js} +1 -1
- package/dist/scripts/{6788-dc6b522995.chunk.js → 6788-1baf5483df.chunk.js} +1 -1
- package/dist/scripts/6963-2e5edf04ac.chunk.js +1 -0
- package/dist/scripts/{7053-00950d18ae.chunk.js → 7053-5f6f2bf8ee.chunk.js} +1 -1
- package/dist/scripts/7071-9ae15d6979.chunk.js +1 -0
- package/dist/scripts/7153-11798dda90.chunk.js +1 -0
- package/dist/scripts/{7190-2b40df1e89.chunk.js → 7190-b143292308.chunk.js} +1 -1
- package/dist/scripts/7295-c5ccbfe2be.chunk.js +1 -0
- package/dist/scripts/{7376-e3bf3a94f9.chunk.js → 7376-e476873e22.chunk.js} +1 -1
- package/dist/scripts/{7408-49b32d5829.chunk.js → 7408-eb04403233.chunk.js} +1 -1
- package/dist/scripts/7416-bafece2a3d.chunk.js +1 -0
- package/dist/scripts/7827-53c10fe9d7.chunk.js +1 -0
- package/dist/scripts/8080-540165cb5c.chunk.js +1 -0
- package/dist/scripts/8113-eb9901344c.chunk.js +1 -0
- package/dist/scripts/{8213-6c873c853e.chunk.js → 8213-4d11becb33.chunk.js} +1 -1
- package/dist/scripts/{8362-267efdac61.chunk.js → 8362-2712404025.chunk.js} +1 -1
- package/dist/scripts/8542-7dbc2fa676.chunk.js +1 -0
- package/dist/scripts/8591-920b0560e4.chunk.js +1 -0
- package/dist/scripts/{8726-2d0bc64637.chunk.js → 8726-10013d1e22.chunk.js} +1 -1
- package/dist/scripts/8757-8ba60a3c5f.chunk.js +2 -0
- package/dist/scripts/8757-8ba60a3c5f.chunk.js.LICENSE.txt +44 -0
- package/dist/scripts/{8762-be126e413d.chunk.js → 8762-0c818e61d0.chunk.js} +1 -1
- package/dist/scripts/{8906-2ae58fb990.chunk.js → 8906-3052c24e98.chunk.js} +1 -1
- package/dist/scripts/{8952-27f5ea4a16.chunk.js → 8952-5dfd08cdc7.chunk.js} +2 -2
- package/dist/scripts/9077-fd1d054d31.chunk.js +1 -0
- package/dist/scripts/9134-8845590ece.chunk.js +1 -0
- package/dist/scripts/{9357-e71ea6a34d.chunk.js → 9357-04700677af.chunk.js} +1 -1
- package/dist/scripts/9369-cacc5f30e5.chunk.js +2 -0
- package/dist/scripts/9383-26ce3e3847.chunk.js +1 -0
- package/dist/scripts/{9695-636ea0ef64.chunk.js → 9695-8b46921478.chunk.js} +1 -1
- package/dist/scripts/{9927-7a935c955d.chunk.js → 9927-1a5a65a341.chunk.js} +1 -1
- package/dist/scripts/bundle-5d010f1f12.min.js +2 -0
- package/dist/scripts/bundle-5d010f1f12.min.js.LICENSE.txt +133 -0
- package/dist/scripts/{polyfills-5ce436cbbe.min.js → polyfills-e4d8584da7.min.js} +1 -1
- package/package.json +4 -4
- package/dist/scripts/101-c8fa0bf8c0.chunk.js +0 -1
- package/dist/scripts/112-4f413f94c0.chunk.js +0 -1
- package/dist/scripts/1216-83f6fbc7be.chunk.js +0 -1
- package/dist/scripts/152-808e046b1f.chunk.js +0 -2
- package/dist/scripts/1973-7a1768228d.chunk.js +0 -1
- package/dist/scripts/2417-e85abc4005.chunk.js +0 -1
- package/dist/scripts/2482-ded3090c15.chunk.js +0 -1
- package/dist/scripts/2648-0a58c0fc05.chunk.js +0 -1
- package/dist/scripts/2802-d428814c29.chunk.js +0 -2
- package/dist/scripts/2802-d428814c29.chunk.js.LICENSE.txt +0 -8
- package/dist/scripts/299-e59ef1fc4f.chunk.js +0 -1
- package/dist/scripts/343-4f77983932.chunk.js +0 -1
- package/dist/scripts/3746-1fd61fe062.chunk.js +0 -1
- package/dist/scripts/376-0ae51da38f.chunk.js +0 -1
- package/dist/scripts/3969-c636ff3159.chunk.js +0 -1
- package/dist/scripts/4024-8372510247.chunk.js +0 -1
- package/dist/scripts/4523-e244d0dae2.chunk.js +0 -1
- package/dist/scripts/5046-7f741b88da.chunk.js +0 -1
- package/dist/scripts/514-eeb95eba47.chunk.js +0 -1
- package/dist/scripts/535-b26597b4d0.chunk.js +0 -1
- package/dist/scripts/5524-04583b6e40.chunk.js +0 -1
- package/dist/scripts/5850-996ea58208.chunk.js +0 -1
- package/dist/scripts/5891-bf6bb58afe.chunk.js +0 -1
- package/dist/scripts/61-29f179811f.chunk.js +0 -2
- package/dist/scripts/6532-48f3f080f5.chunk.js +0 -2
- package/dist/scripts/6963-68cce4d38c.chunk.js +0 -1
- package/dist/scripts/7002-48057608dc.chunk.js +0 -1
- package/dist/scripts/7071-78d0b6c0cb.chunk.js +0 -1
- package/dist/scripts/708-4faf09f1e5.chunk.js +0 -1
- package/dist/scripts/7153-b581d35045.chunk.js +0 -1
- package/dist/scripts/7295-5a82c36f28.chunk.js +0 -1
- package/dist/scripts/7827-ef0d617862.chunk.js +0 -1
- package/dist/scripts/8113-d678e76098.chunk.js +0 -1
- package/dist/scripts/8234-8b643077a3.chunk.js +0 -1
- package/dist/scripts/826-c6d1a46e45.chunk.js +0 -2
- package/dist/scripts/8542-475ab8438e.chunk.js +0 -1
- package/dist/scripts/8591-149f4a2b62.chunk.js +0 -1
- package/dist/scripts/9369-f43ee314be.chunk.js +0 -2
- package/dist/scripts/9383-2c77c78fe8.chunk.js +0 -1
- package/dist/scripts/bundle-24f329fa27.min.js +0 -2
- package/dist/scripts/bundle-24f329fa27.min.js.LICENSE.txt +0 -1
- package/typings/libs/CVEvents.d.ts +0 -13
- package/typings/libs/CVLanguages.d.ts +0 -24
- package/typings/libs/LazyLoad.d.ts +0 -30
- package/typings/libs/LazyLoad.ts +0 -27
- package/typings/libs/cookiesjs.d.ts +0 -24
- /package/dist/css/{2417-library-editor-46f8e6e95b.chunk.css → 1537-library-editor-46f8e6e95b.chunk.css} +0 -0
- /package/dist/css/{2482-library-editor-1b6dc45d45.chunk.css → 209-library-editor-1b6dc45d45.chunk.css} +0 -0
- /package/dist/css/{343-library-editor-d2f704c6a5.chunk.css → 2955-library-editor-d2f704c6a5.chunk.css} +0 -0
- /package/dist/css/{112-library-editor-6a2d152d7d.chunk.css → 6637-library-editor-6a2d152d7d.chunk.css} +0 -0
- /package/dist/css/{152-library-editor-01b4461ff1.chunk.css → 6725-library-editor-01b4461ff1.chunk.css} +0 -0
- /package/dist/css/{708-library-editor-7ffe353138.chunk.css → 8080-library-editor-7ffe353138.chunk.css} +0 -0
- /package/dist/css/{5046-library-editor-765ea88cb0.chunk.css → 9077-library-editor-765ea88cb0.chunk.css} +0 -0
- /package/dist/css/{8234-library-editor-5a1c6fc3b4.chunk.css → 9134-library-editor-5a1c6fc3b4.chunk.css} +0 -0
- /package/dist/scripts/{61-29f179811f.chunk.js.LICENSE.txt → 4001-5f16bcaff3.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6532-48f3f080f5.chunk.js.LICENSE.txt → 471-9ae0a7d088.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{546-40961bc779.chunk.js → 546-2cf4378b0c.chunk.js} +0 -0
- /package/dist/scripts/{826-c6d1a46e45.chunk.js.LICENSE.txt → 61-35a4e0dd3d.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{152-808e046b1f.chunk.js.LICENSE.txt → 6725-52d65e0d02.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8952-27f5ea4a16.chunk.js.LICENSE.txt → 8952-5dfd08cdc7.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9369-f43ee314be.chunk.js.LICENSE.txt → 9369-cacc5f30e5.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6352],{26328:function(e,t,i){"use strict";i.r(t),i.d(t,{AwaitingReviewView:function(){return P}});var n=i(39479),o=i(21679),r=i(57857),s=i(31647),a=i(70763),c=i(13809),l=i(57098),u=i(29457),p=i(85847),d=i(48404),h=i(19226),f=i(14129),v=i(7572),y=i(95920),g=i(82405),m=i(39090),b=i(29565),w=i(95061),C=i(71010),S=i.n(C);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function V(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function k(e){var t=function(e){if("object"!=O(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=O(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(t)?t:t+""}function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T=function(){return!!e})()}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}var P=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,i){return t=E(t),function(e,t){if(t&&("object"==O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,T()?Reflect.construct(t,i||[],E(e).constructor):t.apply(e,i))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(t,e),i=t,(C=[{key:"initialize",value:function(){this.bindListeners(),this.contentUpdatesDataService=o.u.getInstance(l.Or.ContentUpdates,this),this.videoDataService=o.u.getInstance(l.Or.Video,this)}},{key:"name",get:function(){return"AwaitingReviewView"}},{key:"title",get:function(){return r.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.awaitingReview"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white rounded"}},{key:"template",get:function(){return S()}},{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,partialLoading:u.LP.AwaitingReviewHeader},videos:{el:".video-list-region",replaceElement:!0,partialLoading:u.LP.VideoGroupList}}}},{key:"bindListeners",value:function(){this.listenTo(l.Vk.CONTENT_UPDATES,"".concat(l.M_.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(l.Vk.CONTENT_UPDATES,"".concat(l.M_.LIBRARY_REVIEW_SETTINGS,":sync"),this.render),this.listenTo(l.Vk.CONTENT_UPDATES,"".concat(l.M_.LIBRARY_REVIEW_SETTINGS,":error"),this.render),this.listenTo(l.Vk.RESTRICTED_VIDEO,"".concat(l.M_.VIDEOS_TO_REVIEW,":invalidate"),this.fetchVideos),this.listenTo(this.channelName,"approve:all",this.approveAllVideos),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"approveAllVideos",value:function(){this.contentUpdatesDataService.approveAllVideos(n.bind(this.fetchVideos,this))}},{key:"redirectToPastReleases",value:function(){s.Q.C$.trigger({application:l.OV.CONTENT_UPDATES,action:l.eX.ContentUpdates.PAST_RELEASES},{replace:!0})}},{key:"getContentClassName",value:function(){var e="".concat(b.Z.content," border-start ").concat(b.Z.contentWithLeftNav);return this.videoCollection&&!this.videoCollection.length?e+=" d-inline-flex justify-content-center align-items-center":e+=" d-inline-block",e}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new a.t(this.videoCollection.map((function(e){return new p.n({id:e.get("id")})}))))}},{key:"renderHeader",value:function(){this.reviewSetting?this.showChildView("header",new v.u({activeTab:m.JI.AwaitingReview,reviewEnabled:this.reviewSetting.get("reviewPeriod")})):this.renderPartialLoading("header")}},{key:"renderLeftNav",value:function(){this.reviewSetting&&this.showChildView("leftNav",new y.m({supportSiteUrl:this.config.get("supportSiteUrl"),currentUser:this.currentUser}))}},{key:"renderListHeader",value:function(){this.videoCollection?this.videoCollection.length&&this.showChildView("listHeader",new f.U({collection:this.videoCollection,channelName:this.channelName})):this.renderPartialLoading("listHeader")}},{key:"renderVideos",value:function(){this.groupedVideoCollection?this.showChildView("videos",new g.D({collection:this.groupedVideoCollection,childOptions:{videoItemComponentType:c.UC.AwaitingReview,videosWithMetadata:this.videosWithMetadata,config:this.config,collectionViewChannel:this.channelName,currentUser:this.currentUser,libraries:this.libraries},emptyStateType:u.ub.AwaitingReview,emptyStateOptions:{heading:r.T.getPhrase(this.lang,"emptyStateHeading"),description:r.T.getPhrase(this.lang,"emptyStateDescription",{classNames:"disable-review info-link"})}})):this.renderPartialLoading("videos")}},{key:"fetchVideos",value:function(){this.videoCollection=this.contentUpdatesDataService.getVideosToReview(),this.videoCollection&&(this.setVideosWithMetadata(),this.groupedVideoCollection=m.hp.groupVideosByHostedLibrary(this.videoCollection))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(i){var n=t.videosWithMetadata.get(e);n&&(n.set(i.toJSON()),n.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:d.p.config,currentUser:h.K.currentUser,libraries:w.T.libraries}}},{key:"onBeforeRender",value:function(){this.reviewSetting=this.contentUpdatesDataService.getLibraryReviewSettings(),this.fetchVideos(),this.reviewSetting&&!this.reviewSetting.get("reviewPeriod")&&this.redirectToPastReleases()}},{key:"viewOptions",value:function(){return{contentClass:this.getContentClassName()}}},{key:"onRender",value:function(){this.renderHeader(),this.renderLeftNav(),this.renderListHeader(),this.renderVideos()}}])&&V(i.prototype,C),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,C}(s.Q.G7)},13809:function(e,t,i){"use strict";i.d(t,{UC:function(){return n.U}});var n=i(58688);i(19969),i(14898)},80867:function(e,t,i){"use strict";i.d(t,{Y:function(){return E}});var n=i(31647),o=i(52076),r=i(70065),s=i(50028),a=i(80758),c=i(10101),l=i(58688),u=i(37071),p=i(57098),d=i(29457),h=i(25887),f=i(30606),v=i.n(f);function y(e){return y="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},y(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}function b(e,t,i){return t&&m(e.prototype,t),i&&m(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function w(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=y(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}function C(e,t,i){return t=O(t),function(e,t){if(t&&("object"==y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,S()?Reflect.construct(t,i||[],O(e).constructor):t.apply(e,i))}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function V(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)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}var T=function(e){function t(e){return g(this,t),C(this,t,[e])}return V(t,e),b(t,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return u.j}},{key:"childViewOptions",get:function(){var e=this;return function(t,i){return{componentType:t.get("status")===s.X.Processing?l.U.ProcessingVideo:e.options.videoItemComponentType,videoWithMetadata:e.options.videosWithMetadata&&e.options.videosWithMetadata.get(t.get("id")),allowBulk:e.options.allowBulk,collectionIdentifier:e.options.collectionIdentifier,application:e.options.application,pendingItems:e.options.pendingItems,config:e.options.config,sourceMetadataOptions:e.options.sourceMetadataOptions,collectionViewChannel:e.options.collectionViewChannel,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,videoCollectionSource:e.options.videoCollectionSource,currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey,isLastItem:!e.options.hasCursors&&i===e.collection.length-1,libraries:e.options.libraries,products:e.options.products}}}}])}(n.Q.$W),E=function(e){function t(e){return g(this,t),C(this,t,[e])}return V(t,e),b(t,[{key:"name",get:function(){return"VideoListView"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return v()}},{key:"defaults",get:function(){return{videoItemComponentType:l.U.Base,allowBulk:!1,emptyState:d.ub.Default,videoCollectionSource:h.x_.Folder}}},{key:"behaviors",get:function(){var e=[{behaviorClass:c.Im,selector:".lazy-img",minBrowserSupportVersion:p.v9}];return this.options.showEmptyState&&e.push({behaviorClass:a.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:p.aW}),e}},{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var e=new T({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:o.k.mergeOptions(this.options.analyticsOptions,{location:r.LZ.VideoListItem,entity:r.py.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser,playerApiUrl:this.options.playerApiUrl,createViewKey:this.options.createViewKey,hasCursors:this.options.hasCursors,libraries:this.options.libraries,products:this.options.products});this.showChildView("videos",e)}}])}(n.Q.wA)},71010:function(e,t,i){var n=i(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,o){var r;return e.propertyIsEnumerable,'<div class="header-region"></div>\n<div class="left-nav-region"></div><div class="'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.contentClass:r,t))+'">\n<div class="list-header-region"></div>\n<div class="video-list-region"></div>\n</div>'},useData:!0})},30606:function(e,t,i){var n=i(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,o){return'<div class="videos-region"></div>'},useData:!0})}}]);
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6352],{26328:function(e,t,i){"use strict";i.r(t),i.d(t,{AwaitingReviewView:function(){return P}});var n=i(21161),o=i(21679),r=i(57857),s=i(31647),a=i(70763),c=i(13809),l=i(57098),u=i(29457),p=i(85847),d=i(48404),h=i(19226),f=i(14129),v=i(7572),y=i(95920),g=i(82405),m=i(39090),b=i(29565),w=i(95061),C=i(71010),S=i.n(C);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function V(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function k(e){var t=function(e){if("object"!=O(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=O(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(t)?t:t+""}function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T=function(){return!!e})()}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}var P=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,i){return t=E(t),function(e,t){if(t&&("object"==O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,T()?Reflect.construct(t,i||[],E(e).constructor):t.apply(e,i))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(t,e),i=t,(C=[{key:"initialize",value:function(){this.bindListeners(),this.contentUpdatesDataService=o.u.getInstance(l.Or.ContentUpdates,this),this.videoDataService=o.u.getInstance(l.Or.Video,this)}},{key:"name",get:function(){return"AwaitingReviewView"}},{key:"title",get:function(){return r.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.awaitingReview"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white rounded"}},{key:"template",get:function(){return S()}},{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,partialLoading:u.LP.AwaitingReviewHeader},videos:{el:".video-list-region",replaceElement:!0,partialLoading:u.LP.VideoGroupList}}}},{key:"bindListeners",value:function(){this.listenTo(l.Vk.CONTENT_UPDATES,"".concat(l.M_.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(l.Vk.CONTENT_UPDATES,"".concat(l.M_.LIBRARY_REVIEW_SETTINGS,":sync"),this.render),this.listenTo(l.Vk.CONTENT_UPDATES,"".concat(l.M_.LIBRARY_REVIEW_SETTINGS,":error"),this.render),this.listenTo(l.Vk.RESTRICTED_VIDEO,"".concat(l.M_.VIDEOS_TO_REVIEW,":invalidate"),this.fetchVideos),this.listenTo(this.channelName,"approve:all",this.approveAllVideos),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"approveAllVideos",value:function(){this.contentUpdatesDataService.approveAllVideos(n.bind(this.fetchVideos,this))}},{key:"redirectToPastReleases",value:function(){s.Q.C$.trigger({application:l.OV.CONTENT_UPDATES,action:l.eX.ContentUpdates.PAST_RELEASES},{replace:!0})}},{key:"getContentClassName",value:function(){var e="".concat(b.Z.content," border-start ").concat(b.Z.contentWithLeftNav);return this.videoCollection&&!this.videoCollection.length?e+=" d-inline-flex justify-content-center align-items-center":e+=" d-inline-block",e}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new a.t(this.videoCollection.map((function(e){return new p.n({id:e.get("id")})}))))}},{key:"renderHeader",value:function(){this.reviewSetting?this.showChildView("header",new v.u({activeTab:m.JI.AwaitingReview,reviewEnabled:this.reviewSetting.get("reviewPeriod")})):this.renderPartialLoading("header")}},{key:"renderLeftNav",value:function(){this.reviewSetting&&this.showChildView("leftNav",new y.m({supportSiteUrl:this.config.get("supportSiteUrl"),currentUser:this.currentUser}))}},{key:"renderListHeader",value:function(){this.videoCollection?this.videoCollection.length&&this.showChildView("listHeader",new f.U({collection:this.videoCollection,channelName:this.channelName})):this.renderPartialLoading("listHeader")}},{key:"renderVideos",value:function(){this.groupedVideoCollection?this.showChildView("videos",new g.D({collection:this.groupedVideoCollection,childOptions:{videoItemComponentType:c.UC.AwaitingReview,videosWithMetadata:this.videosWithMetadata,config:this.config,collectionViewChannel:this.channelName,currentUser:this.currentUser,libraries:this.libraries},emptyStateType:u.ub.AwaitingReview,emptyStateOptions:{heading:r.T.getPhrase(this.lang,"emptyStateHeading"),description:r.T.getPhrase(this.lang,"emptyStateDescription",{classNames:"disable-review info-link"})}})):this.renderPartialLoading("videos")}},{key:"fetchVideos",value:function(){this.videoCollection=this.contentUpdatesDataService.getVideosToReview(),this.videoCollection&&(this.setVideosWithMetadata(),this.groupedVideoCollection=m.hp.groupVideosByHostedLibrary(this.videoCollection))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(i){var n=t.videosWithMetadata.get(e);n&&(n.set(i.toJSON()),n.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:d.p.config,currentUser:h.K.currentUser,libraries:w.T.libraries}}},{key:"onBeforeRender",value:function(){this.reviewSetting=this.contentUpdatesDataService.getLibraryReviewSettings(),this.fetchVideos(),this.reviewSetting&&!this.reviewSetting.get("reviewPeriod")&&this.redirectToPastReleases()}},{key:"viewOptions",value:function(){return{contentClass:this.getContentClassName()}}},{key:"onRender",value:function(){this.renderHeader(),this.renderLeftNav(),this.renderListHeader(),this.renderVideos()}}])&&V(i.prototype,C),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,C}(s.Q.G7)},13809:function(e,t,i){"use strict";i.d(t,{UC:function(){return n.U}});var n=i(58688);i(19969),i(14898)},80867:function(e,t,i){"use strict";i.d(t,{Y:function(){return E}});var n=i(31647),o=i(52076),r=i(70065),s=i(50028),a=i(80758),c=i(10101),l=i(58688),u=i(37071),p=i(57098),d=i(29457),h=i(25887),f=i(30606),v=i.n(f);function y(e){return y="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},y(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}function b(e,t,i){return t&&m(e.prototype,t),i&&m(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function w(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=y(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}function C(e,t,i){return t=O(t),function(e,t){if(t&&("object"==y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,S()?Reflect.construct(t,i||[],O(e).constructor):t.apply(e,i))}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function V(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)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}var T=function(e){function t(e){return g(this,t),C(this,t,[e])}return V(t,e),b(t,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return u.j}},{key:"childViewOptions",get:function(){var e=this;return function(t,i){return{componentType:t.get("status")===s.X.Processing?l.U.ProcessingVideo:e.options.videoItemComponentType,videoWithMetadata:e.options.videosWithMetadata&&e.options.videosWithMetadata.get(t.get("id")),allowBulk:e.options.allowBulk,collectionIdentifier:e.options.collectionIdentifier,application:e.options.application,pendingItems:e.options.pendingItems,config:e.options.config,sourceMetadataOptions:e.options.sourceMetadataOptions,collectionViewChannel:e.options.collectionViewChannel,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,videoCollectionSource:e.options.videoCollectionSource,currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey,isLastItem:!e.options.hasCursors&&i===e.collection.length-1,libraries:e.options.libraries,products:e.options.products}}}}])}(n.Q.$W),E=function(e){function t(e){return g(this,t),C(this,t,[e])}return V(t,e),b(t,[{key:"name",get:function(){return"VideoListView"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return v()}},{key:"defaults",get:function(){return{videoItemComponentType:l.U.Base,allowBulk:!1,emptyState:d.ub.Default,videoCollectionSource:h.x_.Folder}}},{key:"behaviors",get:function(){var e=[{behaviorClass:c.Im,selector:".lazy-img",minBrowserSupportVersion:p.v9}];return this.options.showEmptyState&&e.push({behaviorClass:a.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:p.aW}),e}},{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var e=new T({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:o.k.mergeOptions(this.options.analyticsOptions,{location:r.LZ.VideoListItem,entity:r.py.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser,playerApiUrl:this.options.playerApiUrl,createViewKey:this.options.createViewKey,hasCursors:this.options.hasCursors,libraries:this.options.libraries,products:this.options.products});this.showChildView("videos",e)}}])}(n.Q.wA)},71010:function(e,t,i){var n=i(31197);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,o){var r;return e.propertyIsEnumerable,'<div class="header-region"></div>\n<div class="left-nav-region"></div><div class="'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.contentClass:r,t))+'">\n<div class="list-header-region"></div>\n<div class="video-list-region"></div>\n</div>'},useData:!0})},30606:function(e,t,i){var n=i(31197);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,o){return'<div class="videos-region"></div>'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6637],{93421:function(e,t,n){"use strict";n.d(t,{wc:function(){return p},ND:function(){return d},W2:function(){return o}});var r=n(62699),i=n.n(r),o={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"};function a(e){return a="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},a(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var d=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=u(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return i()}},{key:"className",get:function(){return"".concat(o.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:o},this.options)}}])&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(n(31647).Q.wA),p={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},9934:function(e,t,n){"use strict";n.r(t),n.d(t,{InteractiveDetailsView:function(){return K}});var r=n(21161),i=n(99748),o=n(21679),a=n(31647),c=n(50997),l=n(57085),s=n(50002),u=n(30831),f=n(23130),d=n(4785),p=n.n(d);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}var w=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=m(t),function(e,t){if(t&&("object"==h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"InteractiveBasicInfoComponent"}},{key:"className",get:function(){return"py-3 pe-2"}},{key:"template",get:function(){return p()}},{key:"lang",get:function(){return"shared.interactiveBasicInfo"}},{key:"defaults",get:function(){return{truncateDescription:!0}}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},interactives:{el:".interactives-region",replaceElement:!0},mediaTypeBadge:{el:".media-type-badge-region",replaceElement:!0}}}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new f.Z({model:this.model,linkify:!0,size:f.t.Large,truncate:this.options.truncateDescription,allowExpand:!0});this.showChildView("description",e)}}},{key:"renderInteractives",value:function(){if(this.model._timepoints.length){var e=new s.F({model:this.model});this.showChildView("interactives",e)}}},{key:"renderMediaTypeBadge",value:function(){var e=new u.Z({model:this.model});this.showChildView("mediaTypeBadge",e)}},{key:"onRender",value:function(){this.renderDescription(),this.renderInteractives(),this.renderMediaTypeBadge()}}])&&v(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.Q.wA),O=n(57098),E=n(21251),k=n(33800),C=n(29457),I=n(48404),j=n(64649),S=n(19226),T=n(53609),_=(n(73176),n(79238),n(69051),n(17017),n(67743),n(67430),n(2496),n(60371),n(38890),n(42511),n(7427)),P=(n(91850),n(37570),n(37071),n(13809),n(39216)),V=n.n(P);function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function R(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,L(r.key),r)}}function L(e){var t=function(e){if("object"!=D(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==D(t)?t:t+""}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}var F=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=B(t),function(e,t){if(t&&("object"==D(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,x()?Reflect.construct(t,n||[],B(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"InteractiveSidebarInfoComponent"}},{key:"lang",get:function(){return"libraryEditor.interactiveSidebarInfo"}},{key:"className",get:function(){return"py-3 h-100"}},{key:"template",get:function(){return V()}},{key:"regions",value:function(){return{interactiveThumbnail:{el:".interactive-thumbnail-region",replaceElement:!0},folders:{el:".folders-region",replaceElement:!0}}}},{key:"renderInteractiveThumbnail",value:function(){this.showChildView("interactiveThumbnail",new T.b({model:this.model,config:this.options.config}))}},{key:"renderFolders",value:function(){this.model.get("categories")&&this.model.get("categories").length&&this.showChildView("folders",new _.V({model:this.model,libraries:this.options.libraries,showFolder:!0,hideLabel:!0}))}},{key:"viewOptions",value:function(){return{folders:this.model.categories&&this.model.categories.length,multipleFolders:this.model.categories.length>1}}},{key:"onRender",value:function(){this.renderInteractiveThumbnail(),this.renderFolders()}}])&&R(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.Q.wA),M=n(24397),H=n(56906),N=n(95061),U=n(34620),Q=n.n(U);function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function Y(e,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,z(r.key),r)}}function z(e){var t=function(e){if("object"!=G(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=G(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==G(t)?t:t+""}function J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(J=function(){return!!e})()}function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}function q(e,t){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},q(e,t)}var K=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=Z(t),function(e,t){if(t&&("object"==G(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,J()?Reflect.construct(t,n||[],Z(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q(e,t)}(t,e),n=t,(s=[{key:"initialize",value:function(){this.bindListeners(),this.videoDataService=o.u.getInstance(k.O.Video,this),this.localCacheDataService=o.u.getInstance(k.O.LocalCache,this)}},{key:"bindListeners",value:function(){this.listenTo(O.Vk.VIDEO,"".concat(E.M.INTERACTIVES,":").concat(this.options.interactiveId,":sync"),this.render),this.listenTo(O.Vk.VIDEO,"".concat(E.M.INTERACTIVES,":").concat(this.options.interactiveId,":error"),this.onError),this.listenTo(O.Vk.VIDEO,"".concat(E.M.RESTRICTED_OBJECTS,":").concat(this.options.interactiveId,":sync"),this.render),this.listenTo(O.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(O.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(O.Vk.RESTRICTED_VIDEO,"".concat(E.M.RESTRICTED_OBJECTS,":").concat(this.options.interactiveId,":sync"),this.render),this.listenTo(O.Vk.LOCAL_CACHE,"".concat(E.M.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(O.Vk.LOCAL_CACHE,"".concat(E.M.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"onError",value:function(e){switch(e.type){case i.h.NotFound:a.Q.Ry.throw(new H.l1);break;case i.h.Forbidden:a.Q.Ry.throw(new H.aV)}}},{key:"name",get:function(){return"InteractiveDetailsView"}},{key:"title",get:function(){return this.interactive&&this.interactive.get("name")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return Q()}},{key:"className",get:function(){return"container-fluid h-100 bg-white rounded"}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1,partialLoading:C.LP.Breadcrumbs},header:{replaceElement:!0,el:".interactive-header-region",partialLoading:C.LP.VideoHeader},main:{replaceElement:!0,el:".main-interactive-information-region",partialLoading:C.LP.VideoSidebarInfo},basic:{replaceElement:!1,el:".basic-interactive-information-region",partialLoading:C.LP.InteractiveBasicInfo},interactives:{el:".interactives-region",replaceElement:!0}}}},{key:"getCustomLibraryFolders",value:function(){var e;if(!(null===(e=this.interactive)||void 0===e?void 0:e.categories)||!this.libraries)return[];var t=this.libraries.reduce((function(e,t){return e[t.id]=!0,e}),{});return this.interactive.categories.filter((function(e){var n=e.libraries.first().get("id");return t[n]}))}},{key:"renderBreadcrumbs",value:function(){this.folder&&this.interactive&&this.showChildView("breadcrumbs",new l.n({folder:this.folder,libraries:this.libraries,video:this.interactive,enableLastItemAppLink:!1}))}},{key:"renderVideoHeader",value:function(){this.showChildView("header",new M.U({model:this.interactive,customerHasLocalCache:c.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),collectionIdentifier:this.folder&&new c.F7(this.folder.id,c.x$.GetCurrentSortType()),config:this.config,products:this.products,libraries:this.libraries}))}},{key:"renderSidebarInfo",value:function(){this.showChildView("main",new F({model:this.interactive,libraries:this.libraries,config:this.config}))}},{key:"renderBasicInfo",value:function(){this.interactive&&this.showChildView("basic",new w({model:this.interactive}))}},{key:"requiredResources",get:function(){return{config:I.p.config,currentUser:S.K.currentUser,libraries:N.T.libraries,products:j.s.products}}},{key:"onBeforeRender",value:function(){return this.interactive=this.videoDataService.getInteractive(this.options.interactiveId),this.interactive&&(this.folder=r.default.first(this.getCustomLibraryFolders())),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),!!this.interactive}},{key:"viewOptions",value:function(){if(this.interactive)return{hasFolder:!!this.folder}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderVideoHeader(),this.renderSidebarInfo(),this.renderBasicInfo()}}])&&Y(n.prototype,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,s}(a.Q.G7)},13809:function(e,t,n){"use strict";n.d(t,{UC:function(){return r.U}});var r=n(58688);n(19969),n(14898)},62699:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,c=e.escapeExpression;return'<span class="'+c(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.svgContainer:o,t))+' me-2">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.svg:o,t))?o:"")+'</span>\n<span class="'+c(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.dragText:o,t))+'">'+c(a(null!=(o=null!=t?t.options:t)?o.text:o,t))+"</span>"},useData:!0})},39216:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,' <div class="mt-3">\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"folders",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.folders:o},data:i}))+'</h5>\n <div class="folders-region"></div>\n </div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,'<div class="h-100 ps-2 pe-2">\n <div class="interactive-thumbnail-region"></div>\n\n'+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.folders:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"</div>"},useData:!0})},34620:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="row border-bottom">\n <div class="interactive-header-region"></div>\n\n <div class="px-3 pb-3">\n <div class="breadcrumbs-region"></div>\n </div>\n</div>\n\n<div class="row">\n <div class="col-4">\n <div class="main-interactive-information-region"></div>\n </div>\n <div class="col-8">\n <div class="basic-interactive-information-region"></div>\n\n <div class="interactives-region"></div>\n </div>\n</div>'},useData:!0})},4785:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,l=e.escapeExpression;return' <div class="col-3 fw-semibold">'+l((n.lang||t&&t.lang||c).call(a,"title",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+l("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:c)?o.call(a,{name:"name",hash:{},data:i}):o)+"</p>\n"},3:function(e,t,n,r,i){return e.propertyIsEnumerable,' <div class="col-3 fw-semibold">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"description",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9">\n <div class="description-region"></div>\n </div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,l=e.escapeExpression;return'<div class="position-relative">\n <h5 class="d-inline-block">'+l((n.lang||t&&t.lang||c).call(a,"heading",{name:"lang",hash:{},data:i}))+'</h5>\n</div>\n<div class="row mb-0">\n'+(null!=(o=n.if.call(a,null!=t?t.name:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=n.if.call(a,null!=t?t.description:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+'\n <div class="col-3 fw-semibold">'+l((n.lang||t&&t.lang||c).call(a,"type",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9 mb-2">\n <div class="media-type-badge-region"></div>\n </div>\n\n <div class="interactives-region"></div>\n</div>'},useData:!0})}}]);
|