@clickview/library-editor 1.50.0 → 1.50.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/package.json +1 -6
- package/dist/bundles.json +0 -5
- package/dist/css/101-library-editor-ea0aa41f12.chunk.css +0 -2
- package/dist/css/1086-library-editor-076ef8e022.chunk.css +0 -4
- package/dist/css/112-library-editor-f77f4c1797.chunk.css +0 -16
- package/dist/css/1409-library-editor-bc215e1152.chunk.css +0 -1
- package/dist/css/152-library-editor-01b4461ff1.chunk.css +0 -10
- package/dist/css/1601-library-editor-4a6aafa66a.chunk.css +0 -4
- package/dist/css/1703-library-editor-3334df179f.chunk.css +0 -6
- package/dist/css/1832-library-editor-e123877850.chunk.css +0 -1
- package/dist/css/1876-library-editor-3334df179f.chunk.css +0 -6
- package/dist/css/2417-library-editor-1c2828a69b.chunk.css +0 -7
- package/dist/css/243-library-editor-decee8d957.chunk.css +0 -2
- package/dist/css/2482-library-editor-6893a774e7.chunk.css +0 -20
- package/dist/css/2601-library-editor-8922d361d6.chunk.css +0 -14
- package/dist/css/2644-library-editor-cdc1c17774.chunk.css +0 -13
- package/dist/css/2692-library-editor-076ef8e022.chunk.css +0 -4
- package/dist/css/3087-library-editor-7c76d2234e.chunk.css +0 -4
- package/dist/css/343-library-editor-a5b4b92fa3.chunk.css +0 -24
- package/dist/css/3551-library-editor-37e6a3ecdc.chunk.css +0 -24
- package/dist/css/3746-library-editor-46e4b6af59.chunk.css +0 -1
- package/dist/css/376-library-editor-6d718e6fc5.chunk.css +0 -8
- package/dist/css/3969-library-editor-30997910e2.chunk.css +0 -2
- package/dist/css/4523-library-editor-c52f3ffbb0.chunk.css +0 -2
- package/dist/css/456-library-editor-a92bd26671.chunk.css +0 -17
- package/dist/css/4860-library-editor-f5eddb2400.chunk.css +0 -1
- package/dist/css/5046-library-editor-d255e3d3d5.chunk.css +0 -15
- package/dist/css/514-library-editor-4cb4f22674.chunk.css +0 -1
- package/dist/css/5314-library-editor-2013dd2fec.chunk.css +0 -11
- package/dist/css/5424-library-editor-cbb9c55dc8.chunk.css +0 -5
- package/dist/css/5524-library-editor-de77327cdc.chunk.css +0 -11
- package/dist/css/5747-library-editor-de4ea80bfc.chunk.css +0 -1
- package/dist/css/5891-library-editor-46e4b6af59.chunk.css +0 -1
- package/dist/css/6093-library-editor-446ee2e049.chunk.css +0 -1
- package/dist/css/61-library-editor-46bcd7b5f8.chunk.css +0 -48
- package/dist/css/6352-library-editor-c99ed407da.chunk.css +0 -19
- package/dist/css/6732-library-editor-6233ce01e9.chunk.css +0 -6
- package/dist/css/6963-library-editor-46e4b6af59.chunk.css +0 -1
- package/dist/css/7053-library-editor-cbe896c46a.chunk.css +0 -1
- package/dist/css/708-library-editor-ce48b52d72.chunk.css +0 -7
- package/dist/css/7295-library-editor-a539c72655.chunk.css +0 -9
- package/dist/css/7349-library-editor-7150116d84.chunk.css +0 -82
- package/dist/css/7408-library-editor-2a67dae087.chunk.css +0 -4
- package/dist/css/8762-library-editor-076ef8e022.chunk.css +0 -4
- package/dist/css/8906-library-editor-076ef8e022.chunk.css +0 -4
- package/dist/css/9369-library-editor-126f3beb94.chunk.css +0 -16
- package/dist/css/9383-library-editor-a65f7ef186.chunk.css +0 -16
- package/dist/css/9695-library-editor-c5004a1fec.chunk.css +0 -1
- package/dist/css/9927-library-editor-a11669ad9d.chunk.css +0 -1
- package/dist/css/library-editor-app-fdf847d1b4.css +0 -62
- package/dist/languages/en.json +0 -1
- package/dist/scripts/101-cd0245d087.chunk.js +0 -1
- package/dist/scripts/1010-60f6dfd832.chunk.js +0 -1
- package/dist/scripts/1086-2682e6d3f7.chunk.js +0 -1
- package/dist/scripts/112-24c19e2cde.chunk.js +0 -1
- package/dist/scripts/1216-f3e3f911fa.chunk.js +0 -1
- package/dist/scripts/1224-3ad7211630.chunk.js +0 -1
- package/dist/scripts/1269-a34a1de36d.chunk.js +0 -1
- package/dist/scripts/1409-93a72ff5bf.chunk.js +0 -1
- package/dist/scripts/1479-9cdc81c093.chunk.js +0 -1
- package/dist/scripts/152-2a8a32c9e8.chunk.js +0 -2
- package/dist/scripts/152-2a8a32c9e8.chunk.js.LICENSE.txt +0 -50
- package/dist/scripts/1601-cfa68d5d16.chunk.js +0 -2
- package/dist/scripts/1601-cfa68d5d16.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/1703-0ee4d1051b.chunk.js +0 -1
- package/dist/scripts/1832-23fead57c5.chunk.js +0 -1
- package/dist/scripts/1876-a98a0d0a0b.chunk.js +0 -1
- package/dist/scripts/1934-cf53d84778.chunk.js +0 -2
- package/dist/scripts/1934-cf53d84778.chunk.js.LICENSE.txt +0 -9
- package/dist/scripts/2417-d1a2c3b7e1.chunk.js +0 -1
- package/dist/scripts/243-2012c53e96.chunk.js +0 -1
- package/dist/scripts/2482-955e4b3615.chunk.js +0 -1
- package/dist/scripts/259-7d1d480f6e.chunk.js +0 -1
- package/dist/scripts/2601-bd6f95da25.chunk.js +0 -1
- package/dist/scripts/2644-4188284c06.chunk.js +0 -1
- package/dist/scripts/2648-10e901bc4c.chunk.js +0 -1
- package/dist/scripts/2692-438539ccbe.chunk.js +0 -1
- package/dist/scripts/2802-31b24a8131.chunk.js +0 -2
- package/dist/scripts/2802-31b24a8131.chunk.js.LICENSE.txt +0 -8
- package/dist/scripts/2803-3cee0dd7a5.chunk.js +0 -1
- package/dist/scripts/2888-55edc16fd6.chunk.js +0 -1
- package/dist/scripts/299-eeaac48864.chunk.js +0 -1
- package/dist/scripts/2998-24191bc8ab.chunk.js +0 -1
- package/dist/scripts/3087-12081a5e15.chunk.js +0 -1
- package/dist/scripts/3400-95d7a3a0d6.chunk.js +0 -1
- package/dist/scripts/343-4e17813e7a.chunk.js +0 -1
- package/dist/scripts/35-7bfbab50e6.chunk.js +0 -1
- package/dist/scripts/3551-5513258594.chunk.js +0 -1
- package/dist/scripts/3639-02abbd0b71.chunk.js +0 -1
- package/dist/scripts/3746-fab7340300.chunk.js +0 -1
- package/dist/scripts/376-98c734f74f.chunk.js +0 -1
- package/dist/scripts/3763-c5de5a36a1.chunk.js +0 -1
- package/dist/scripts/3969-fe64f3d542.chunk.js +0 -1
- package/dist/scripts/4064-0862db0614.chunk.js +0 -1
- package/dist/scripts/4201-6311ac5cac.chunk.js +0 -1
- package/dist/scripts/4245-6e9e71cc7d.chunk.js +0 -1
- package/dist/scripts/4523-7a79c1890d.chunk.js +0 -1
- package/dist/scripts/456-f1d9ed6fe2.chunk.js +0 -1
- package/dist/scripts/4591-9e342f97bc.chunk.js +0 -1
- package/dist/scripts/4860-955b4bf901.chunk.js +0 -1
- package/dist/scripts/5046-19d7090284.chunk.js +0 -1
- package/dist/scripts/514-927a43219d.chunk.js +0 -1
- package/dist/scripts/5173-ae0218ce2b.chunk.js +0 -1
- package/dist/scripts/5286-293188ce69.chunk.js +0 -1
- package/dist/scripts/5314-2ef80448f2.chunk.js +0 -1
- package/dist/scripts/5412-95152820bb.chunk.js +0 -1
- package/dist/scripts/5418-f31f79952c.chunk.js +0 -1
- package/dist/scripts/5424-f53a7d8068.chunk.js +0 -1
- package/dist/scripts/546-9b17236feb.chunk.js +0 -1
- package/dist/scripts/5524-165e9fe50f.chunk.js +0 -1
- package/dist/scripts/5707-6ef0aaefcf.chunk.js +0 -1
- package/dist/scripts/5747-0ab2cc3678.chunk.js +0 -1
- package/dist/scripts/5850-a9edf39a77.chunk.js +0 -1
- package/dist/scripts/5891-f7bd1916f7.chunk.js +0 -1
- package/dist/scripts/6093-7e5c1af050.chunk.js +0 -1
- package/dist/scripts/61-5627ac4bab.chunk.js +0 -2
- package/dist/scripts/61-5627ac4bab.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/6352-aaaf02499b.chunk.js +0 -1
- package/dist/scripts/6427-eb4344120b.chunk.js +0 -1
- package/dist/scripts/6532-ffb2f40362.chunk.js +0 -2
- package/dist/scripts/6532-ffb2f40362.chunk.js.LICENSE.txt +0 -13
- package/dist/scripts/6721-f62b08a446.chunk.js +0 -1
- package/dist/scripts/6732-5bf9ec4e56.chunk.js +0 -1
- package/dist/scripts/6774-3cad51b5b7.chunk.js +0 -1
- package/dist/scripts/6788-6e4efcfd00.chunk.js +0 -1
- package/dist/scripts/6963-898cb28e8d.chunk.js +0 -1
- package/dist/scripts/7002-3686f9dcfb.chunk.js +0 -1
- package/dist/scripts/7053-38535c04ca.chunk.js +0 -1
- package/dist/scripts/7071-5a543a7eec.chunk.js +0 -1
- package/dist/scripts/708-9aa6428a97.chunk.js +0 -1
- package/dist/scripts/7190-d26b5ef34d.chunk.js +0 -1
- package/dist/scripts/7295-594d2f2def.chunk.js +0 -1
- package/dist/scripts/7349-49635047ab.chunk.js +0 -2
- package/dist/scripts/7349-49635047ab.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/7376-baac126511.chunk.js +0 -1
- package/dist/scripts/7408-209544dca5.chunk.js +0 -1
- package/dist/scripts/8113-879f7b221a.chunk.js +0 -1
- package/dist/scripts/8362-e82bef3e07.chunk.js +0 -1
- package/dist/scripts/8542-776c339eeb.chunk.js +0 -1
- package/dist/scripts/8726-edded1064e.chunk.js +0 -1
- package/dist/scripts/8727-2e314f9301.chunk.js +0 -1
- package/dist/scripts/8762-4ee15995c8.chunk.js +0 -1
- package/dist/scripts/8906-3bde92a78d.chunk.js +0 -1
- package/dist/scripts/9357-c5c5984ec8.chunk.js +0 -1
- package/dist/scripts/9369-ef153a7fd3.chunk.js +0 -2
- package/dist/scripts/9369-ef153a7fd3.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/9383-b01e8ae3c8.chunk.js +0 -1
- package/dist/scripts/9695-a04e508364.chunk.js +0 -1
- package/dist/scripts/9927-a667775ac4.chunk.js +0 -1
- package/dist/scripts/bundle-ffc4ed37ae.min.js +0 -2
- package/dist/scripts/bundle-ffc4ed37ae.min.js.LICENSE.txt +0 -1
- package/dist/scripts/polyfills-a15c0386f5.min.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -1 +0,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 I}});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(64404),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,t){if("object"!=O(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!=O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(t)?t:t+""}function T(e,t,i){return t=_(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,E()?Reflect.construct(t,i||[],_(e).constructor):t.apply(e,i))}function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(E=function(){return!!e})()}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}var I=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),T(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(t,e),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(26457),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,t){if("object"!=y(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!=y(n))return n;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 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6427],{54096:function(e,t,i){i.d(t,{G:function(){return a}});var n=i(1024),r=i(21679);function a(e){var t,i;return t=e,i=r.u.getInstance(t),n.useEffect((function(){return function(){r.u.releaseInstance(t)}})),i}},38182:function(e,t,i){i.d(t,{q:function(){return s}});var n=i(1024),r=i.n(n),a=i(68003),o=i(88483),c=i(87013),u={avatar:"Gvwzj",dot:"JJHBJ"};function s(e){var t,i,n=e.imageUrl||(t=e.imageCdnUrl,(i=e.initials)?c.j.createUrl(a._.safeUrlConcat(t,"/v1/profile-images?initials=".concat(i)),{size:o.h2.Small}):"");return r().createElement("div",{className:"position-relative h-100 w-100"},r().createElement("div",{className:"".concat(u.avatar," ").concat((null==e?void 0:e.extraClasses)||""),style:{backgroundImage:"url('".concat(n,"')")}}," "),e.showDot&&r().createElement("div",{className:"".concat(u.dot," rounded-circle bg-danger")}))}},90547:function(e,t,i){var n;i.d(t,{r:function(){return n}}),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)"}(n||(n={}))},34254:function(e,t,i){var n;i.d(t,{r:function(){return n}}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(n||(n={}))},87648:function(e,t,i){var n;i.d(t,{c:function(){return n}}),function(e){e.Custom="custom",e.User="year_group"}(n||(n={}))},90335:function(e,t,i){var n;i.d(t,{D:function(){return n}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(n||(n={}))},332:function(e,t,i){i.d(t,{e:function(){return c}});var n=i(2248),r=i(68003),a=i(84657),o=i(34254),c={clip:function(e,t){return{key:"clip:".concat(e,":").concat(t),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.CLIP,permissionFilterOption:t})}},videoClips:function(e,t){return{key:"video:".concat(e,":clips:").concat(t),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e,"/clips"),{query:a.v.CLIP_COLLECTION,permissionFilterOption:t}),formatData:function(e){return e.data}}},clipWithAllInteractives:function(e,t){return{key:"clip:".concat(e,":").concat(t,":interactives"),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"".concat(a.v.CLIP,",interactives{status:[0,1]}"),permissionFilterOption:t}),normalize:!1}},publicClip:function(e,t,i,n){return{key:"clip:".concat(e,":public:").concat(t),url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo,_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),bootstrapName:"shared:object:".concat(e),success:i,error:n}},sharedClip:function(e,t,i,n){return{key:"shared:clip:".concat(e),url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.CLIP}),success:i,error:n}},createClip:function(e,t,i,r,a){return{key:"create:clip",url:"{gateway}/v1/objects/".concat(e,"/clips"),data:t,type:n.k.POST,invalidationKeys:["videos:".concat(e),"my:videos"],success:i,error:r,always:a}},updateClip:function(e,t,i,r,a){return{key:"update:clip",url:"{gateway}/v1/objects/".concat(e),data:t,type:n.k.PUT,success:i,error:r,always:a}},deleteClip:function(e,t,i,r,a){return{key:"delete:clip",url:"{gateway}/v1/objects/".concat(e),type:n.k.DELETE,invalidationKeys:["videos:".concat(t),"my:videos","videos"],success:i,error:r,always:a}}}},91432:function(e,t,i){i.d(t,{b:function(){return c}});var n=i(2248),r=i(68003),a=i(84657),o=i(34254),c={interactiveMetadata:function(e,t){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.INTERACTIVE,permissionFilterOption:t}),key:"interactive:metadata:".concat(e,":").concat(t)}},videoInteractives:function(e,t){return{key:"video:".concat(e,":interactives:").concat(t),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e,"/interactives"),{query:a.v.INTERACTIVE_COLLECTION}),publicUrl:r._.urlBuilder("/api/objects/".concat(e,"/interactives"),{query:a.v.INTERACTIVE_COLLECTION}),formatData:function(e){return e.data}}},sharedInteractiveMetadata:function(e,t,i,n){return{url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.INTERACTIVE}),key:"shared:interactive:metadata:".concat(e),success:i,error:n}},publicInteractiveMetadata:function(e,t,i,n){return{url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo[rating],_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),key:"interactive:metadata:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:i,error:n}},interactive:function(e){return{url:"/api/domain/v1/interactives/".concat(e),key:"interactive:".concat(e)}},createInteractive:function(e,t,i){return{url:"/api/domain/v1/interactives",key:"create:interactive",type:n.k.POST,invalidationKeys:["my:videos"],data:e,success:t,error:i}},createInteractiveMetadata:function(e,t,i,r){return{url:"{gateway}/v1/objects/".concat(e,"/interactives"),key:"create:interactive:metadata",type:n.k.POST,data:t,success:i,error:r}},updateInteractive:function(e,t,i,r){return{url:"/api/domain/v1/interactives/".concat(e),key:"update:interactive",type:n.k.PUT,data:t,success:i,error:r,formatData:function(){return t}}},updateInteractiveMetadata:function(e,t,i,r){return{url:"{gateway}/v1/objects/".concat(e),key:"update:interactive:metadata",type:n.k.PUT,data:t,success:i,error:r}},interactiveResultSet:function(e,t){return{url:"/api/domain/v1/analytics/interactives/".concat(e,"/metadata/").concat(t),key:"interactive:result:set:".concat(e,":").concat(t)}},copyInteractive:function(e,t,i){return{url:"/api/domain/v1/interactives/".concat(e,"/copy"),key:"copy:interactive",type:n.k.POST,invalidationKeys:["interactive:".concat(e),"my:videos"],success:t,error:i}},deleteInteractiveMetadata:function(e,t,i){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:interactive",type:n.k.DELETE,invalidationKeys:["interactive:".concat(e),"my:videos","videos"],success:t,error:i}},removeInteractiveMetadata:function(e){var t=e.libraryId,i=e.categoryId,a=e.interactiveMetadataId;return{url:r._.urlBuilder("/api/domain/v1/libraries/".concat(t,"/videos"),{categoryId:i,videoIds:a}),key:"remove:interactive:metadata:".concat(a),type:n.k.DELETE,invalidationKeys:["interactive:".concat(a),"my:videos","videos"]}},contributeToCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:n.k.POST}},revokefromCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:n.k.DELETE}},isContributed:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contributed"),key:"iscontributed:".concat(e),normalize:!1}}}},77131:function(e,t,i){i.d(t,{R:function(){return f}});var n,r=i(2248),a=i(68003),o=i(84657),c=i(50028),u=i(74421),s=i(34254);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget",e.Folder="category",e.CategoryTree="categoryTree"}(n||(n={}));var d=i(15970),l=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:o.v.VIDEO})},v=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating,libraries{typeId:[17]}",permissionFilterOption:s.r.StripMetadata,shareId:t})},p=function(e){return a._.urlBuilder("{gateway}/v1/objects",{"query.video":o.v.VIDEO_COLLECTION,"query.clip":o.v.CLIP_COLLECTION,"query.interactive":o.v.INTERACTIVE_COLLECTION,id:e})},y=function(e){var t=e.videoId,i=e.context,r=e.collectionId,c=e.moviesAndTv,u={videoId:t,limit:e.limit,query:o.v.VIDEO_COLLECTION};return i&&(i===n.Widget?u["context.widgetId"]=r:(u["context.collectionType"]=i,u["context.collectionId"]=r)),c&&(u["context.moviesAndTv"]=!0),a._.urlBuilder("{gateway}/v1/suggestions/related-videos",u)},f={video:function(e,t){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:o.v.VIDEO,permissionFilterOption:t}),publicUrl:a._.urlBuilder("/api/objects/".concat(e),{query:o.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t)}},publicVideo:function(e,t,i,n){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:i,error:n}},sharedVideo:function(e,t,i,n){return{url:l(e,t),key:"shared:video:".concat(e),success:i,error:n}},myVideos:function(e,t){var i=o.v.VIDEO_COLLECTION,n=o.v.CLIP_COLLECTION,r=o.v.INTERACTIVE,d="videos[".concat(i,"]{libraries.typeid:").concat(u.E.WorkspaceCollection,"}"),l="clips[".concat(n,"]"),v="interactives[".concat(r,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),p={query:"(".concat(d,"|").concat(l,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:s.r.StripMetadata};return t&&(p.cursor=t),{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),p),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:p(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:p(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,i,n,a){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:r.k.PUT,data:t,success:i,error:n,always:a}},videoRatings:function(e,t){var i=e.map((function(e){return"id=".concat(e)}));if(i.length)return{url:"/api/domain/v2/objects?query=rating&".concat(i.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},videoMixinAssocs:function(e,t){if(e.map((function(e){return"id=".concat(e)})).length)return{url:a._.urlBuilder("{gateway}/v1/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},glance",id:e}),publicUrl:a._.urlBuilder("/api/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},glance",id:e}),key:"video:mixin:assocs:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(u.E.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,i){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video:".concat(e),type:r.k.DELETE,success:t,error:i,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,i,n,a){var o=e.map((function(e){return"videoIds=".concat(e)})).join("&"),c=["categoryId=".concat(i),"".concat(o)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(c),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(i),type:r.k.DELETE,success:n,error:a,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,i=e.context,n=e.collectionId,r=e.moviesAndTv;return{url:y(e),key:"related:videos:".concat(t,":").concat(i,":").concat(n,":").concat(r)}},collectionVideos:function(e,t,i,n,r,u){var l=d.d.getVideoSortParam(t),v=o.v.VIDEO_COLLECTION,p=o.v.CLIP_COLLECTION,y=o.v.INTERACTIVE,f="videos[".concat(v,"]"),m="clips[".concat(p,"]"),g="interactives[".concat(y,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),b=Object.assign({query:"(".concat(f,"|").concat(m,"|").concat(g,")").concat(l?"{".concat(l,"}"):""),permissionFilterOption:s.r.FilterOut},i?{cursor:i}:{}),C=["folder","videos",e,i,t].filter((function(e){return!!e})).join(":");return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),b),key:C,success:n,error:r,always:u}},pointsOfInterest:function(e,t,i,n,r){var o={query:"{limit:100}",cursor:t};return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),o),publicUrl:a._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),o),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:i,error:n,always:r}},regionAlternatives:function(e,t,i,n){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:i,always:n}}}},2491:function(e,t,i){i.d(t,{Z:function(){return o}});var n=i(92159),r=i(21186),a=i(54096);function o(){var e=(0,a.G)(n.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:r.NK.Warning,heading:r.R6.Warning,message:t})}}}},38e3:function(e,t,i){i.d(t,{G:function(){return r}});var n=i(74421),r={isType:function(e,t){return(null==e?void 0:e.typeId)===t},isResource:function(e){return r.isType(e,n.E.Resource)},isClassification:function(e){return"Subject"===e.type}}},45428:function(e,t,i){i.d(t,{l:function(){return f}});var n=i(57857),r=i(56285),a=i(7121),o=i(87648),c=i(63791);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var d=n.T.encloseNamespace("shared.shared-utils"),l=s(s({},o.c.Custom,a.Z.restrictionBadgeCustom),o.c.User,a.Z.restrictionBadgeUser),v=s(s({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),p=s(s({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),y=s(s({},o.c.Custom,200),o.c.User,100),f={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var i=f.getWeightedRestriction(e.value);return l[i.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var i=f.getWeightedRestriction(e.value);return v[i.type]},mapRestrictionToText:function(e,t){var i;if(!(null===(i=null==e?void 0:e.value)||void 0===i?void 0:i.length)||!(null==t?void 0:t.length))return"";var n=f.getWeightedRestriction(e.value),r=t.find((function(e){return e.value===n.yearGroup})),a=p[n.type];if(n.type===o.c.User)return null===n.yearGroup?d("restrictionStaff"):r?d(a,{yearGroup:r.name}):"";if(n.type===o.c.Custom){var c=f.getRestrictionDuration(n);return c?d(a,{duration:c,smartCount:c}):d("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(null==e?void 0:e.length)return 1===e.length?e[0]:e.reduce((function(e,i){var n=y[e.type],r=y[i.type];return"highest"===t&&n>r||"lowest"===t&&n<r?e:i}))},getRestrictionByType:function(e,t){if(!f.hasRestrictions(e))return null;var i=Array.isArray(t)?t:[t],n=e._restrictions.value.filter((function(e){return i.includes(e.type)}));return f.getWeightedRestriction(n)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=r.O.convertUTCToLocal(e.expiresOn);if(t)return r.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!f.getRestrictionByType(e,[o.c.Custom])},hasRestrictions:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===i?void 0:i.length)}}},12927:function(e,t,i){i.d(t,{M:function(){return b}});var n,r=i(11306),a=i(57857),o=i(31647),c=i(56285),u=i(70065);!function(e){e.Screenrights="screenrights",e.Era="era",e.ClickView="clickview"}(n||(n={}));var s=i(50028),d=i(74421),l=i(87648),v=i(332),p=i(91432),y=i(77131),f=i(45428),m=i(13034),g=a.T.encloseNamespace("shared.shared-utils"),b={isVideo:function(e){return(null==e?void 0:e.typeId)===d.E.Video},isClip:function(e){return(null==e?void 0:e.typeId)===d.E.Clip},isInteractive:function(e){return(null==e?void 0:e.typeId)===d.E.Interactive},isVideoTypeArchived:function(e){return(null==e?void 0:e.status)===s.X.Archived},isVideoType:function(e){return b.isVideo(e)||b.isInteractive(e)||b.isClip(e)},hasSeries:function(e){var t;return!!(null===(t=null==e?void 0:e.series)||void 0===t?void 0:t.id)},showVideoGuidance:function(e){return!e(m.C.StudentExperience)},showInteractivesGuidance:function(e){var t,i;return!(!e||b.isInteractive(e)||!(null===(i=null===(t=e.interactives)||void 0===t?void 0:t.data)||void 0===i?void 0:i.length))},showResourcesGuidance:function(e){var t,i,n,r;return!(!e||b.isInteractive(e)||!(((null===(i=null===(t=e.resources)||void 0===t?void 0:t.data)||void 0===i?void 0:i.length)||0)+((null===(r=null===(n=e.links)||void 0===n?void 0:n.data)||void 0===r?void 0:r.length)||0)))},getVideoProgress:function(e){var t,i;return(null==e?void 0:e.lastProgressPoint)?null==e?void 0:e.lastProgressPoint:(null===(t=null==e?void 0:e._videoProgress)||void 0===t?void 0:t.progress)?null===(i=null==e?void 0:e._videoProgress)||void 0===i?void 0:i.progress:0},getThumbnail:function(e){var t,i,n;return e?b.isVideo(e)?e.thumbnail:(null==e?void 0:e._thumbnail)?e._thumbnail:b.isClip(e)?e.thumbnail||(null===(t=e._parentVideo)||void 0===t?void 0:t.thumbnail):b.isInteractive(e)?(null===(i=e._parentVideo)||void 0===i?void 0:i.thumbnail)||(null===(n=e._parentClip)||void 0===n?void 0:n.thumbnail):void 0:null},getDuration:function(e){var t,i;if(e){if(b.isVideo(e))return e.duration;if(b.isInteractive(e)){if(null===(t=e._parentClip)||void 0===t?void 0:t.id)return 1e3*(e._parentClip.endTime-e._parentClip.startTime);if(null===(i=e._parentVideo)||void 0===i?void 0:i.duration)return e._parentVideo.duration}return b.isClip(e)?1e3*(e.endTime-e.startTime):void 0}},getAnalyticsEntity:function(e){return b.isVideo(e)?u.py.Video:b.isInteractive(e)?u.py.Interactive:b.isClip(e)?u.py.Clip:void 0},getAnalyticsData:function(e){var t,i,n,r,a,o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(b.isVideo(e))return Object.assign(Object.assign({},c||{}),{id:e.id,name:e.name});if(b.isClip(e)){var u=Object.assign(Object.assign({},c||{}),{id:e.id,name:e.name});return(null===(t=e._parentVideo)||void 0===t?void 0:t.id)&&(u.video={id:null===(i=e._parentVideo)||void 0===i?void 0:i.id,name:e._parentVideo.name}),u}var s=Object.assign(Object.assign({},c),{id:e.id,interactiveId:e.interactiveId,name:e.name,status:e.status,originType:e.originType});return(null===(n=null==e?void 0:e._parentClip)||void 0===n?void 0:n.id)&&(s.clip={id:null===(r=null==e?void 0:e._parentClip)||void 0===r?void 0:r.id,name:null==e?void 0:e._parentClip.name}),(null===(a=null==e?void 0:e._parentVideo)||void 0===a?void 0:a.id)&&(s.video={id:null===(o=null==e?void 0:e._parentVideo)||void 0===o?void 0:o.id,name:null==e?void 0:e._parentVideo.name}),s},getCanBeConsumed:function(e){var t,i;return e&&b.isVideoType(e)?e._canBeConsumed?{canNavigate:"login-required"===(null===(t=e._canBeConsumed)||void 0===t?void 0:t.reason)&&b.isVideo(e)||!0===e._canBeConsumed.value,canConsume:e._canBeConsumed.value,reason:null===(i=e._canBeConsumed)||void 0===i?void 0:i.reason}:{canNavigate:!0,canConsume:!0}:{canNavigate:!1,canConsume:!1}},getPrivacyReasoning:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=b.getCanBeConsumed(e),r=n.canConsume,a=n.canNavigate,o=n.reason,c=function(){return b.isClip(e)?g("clipLoginRequired"):b.isInteractive(e)?g("interactiveLoginRequired"):g("videoLoginRequired")};if(!r&&!a){if(i)return c();switch(o){case"rating-not-allowed":return g("ratingNotAllowed");case"video-deleted":return b.isClip(e)?g("clipParentDeleted"):b.isInteractive(e)?g("interactiveParentDeleted"):g("videoDeleted");case"clickview-private":return g("clickViewPrivate");case"private":default:return g("genericCannotAccess");case"login-required":return c();case"restricted-access":var u=f.l.getWeightedRestriction(null===(t=e._restrictions)||void 0===t?void 0:t.value);return(null==u?void 0:u.type)===l.c.Custom?g("awaitingApproval"):g("restrictedAccess")}}return b.isInteractive(e)&&e.status===s.X.Draft?g("draftInteractive"):""},getTitle:function(e){if(e.name)return b.isInteractive(e)&&e.status===s.X.Draft?g("draftInteractiveTitle",{name:e.name}):e.name;var t=b.getCanBeConsumed(e),i=t.canConsume,n=t.reason;return g(i||"private"!==n?i||"video-deleted"!==n?"privateVideo":"videoUnavailable":"privateVideo")},getParentVideo:function(e){return b.isVideo(e)?e:b.isClip(e)||b.isInteractive(e)?e._parentVideo:void 0},getRating:function(e){var t;return b.isVideo(e)?e.rating:null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t.rating},getVideoRequest:function(e,t,i){if(i){switch(t){case d.E.Video:return y.R.sharedVideo(e,i);case d.E.Clip:return v.e.sharedClip(e,i);case d.E.Interactive:return p.b.sharedInteractiveMetadata(e,i)}o.Q.Ry.throw(new r.H("Unsupported master type"))}switch(t){case d.E.Video:return y.R.video(e);case d.E.Clip:return v.e.clip(e);case d.E.Interactive:return p.b.interactiveMetadata(e)}o.Q.Ry.throw(new r.H("Unsupported master type"))},isBroadcast:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e.contentLicences)||void 0===t?void 0:t.data)||void 0===i?void 0:i.some((function(e){return e.systemName===n.Era||e.systemName===n.Screenrights})))},getReleaseDate:function(e){return e&&e.dateReleased&&b.isBroadcast(e)?c.O.format(e.dateReleased,"DD/MM/YYYY"):""},canViewOriginalVideo:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t._canBeConsumed)||void 0===i?void 0:i.value)},getTrackingCode:function(e){return b.isVideo(e)?e.trackingCode:b.isClip(e)||b.isInteractive(e)?e._parentVideo.trackingCode:void 0},isInExchange:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e.libraries)||void 0===t?void 0:t.data)||void 0===i?void 0:i.some((function(e){return e.typeId===d.E.ExchangeCollection})))},canViewUploadDate:function(e){return!(!e||!e.dateCreated||!e._isClickViewCurated||e._isClickViewCurated.value)}}},15970:function(e,t,i){i.d(t,{d:function(){return o}});var n=i(4705),r=i(90335),a=r.D.RecentlyAdded,o={getValidSortTypeFromParam:function(e){return Object.values(r.D).includes(e)?e:r.D.Newest},getOrSetSortType:function(e,t,i){var r=function(e){return"video:sort:".concat(e)}(e);return!t&&n.SG.cacheExists(r)||n.SG.cacheSet(r,t||i||a),t||(t=n.SG.cacheGet(r)),t},getVideoSortParam:function(e){switch(e){case r.D.AtoZ:return"orderby:name";case r.D.ZtoA:return"orderbydesc:name";case r.D.Newest:return"orderbydesc:datecreated";case r.D.Oldest:return"orderby:datecreated";case r.D.RecentlyAdded:return"orderbydesc:timestamp";case r.D.Series:return"orderby:seriessort";default:return}}}},7121:function(e,t){t.Z={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}}}]);
|