@clickview/library-editor 1.8.1-rc.2 → 1.8.1-rc.3

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.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5891],{54096:function(e,t,r){r.d(t,{G:function(){return a}});var n=r(1024),o=r(21679);function a(e){var t,r;return t=e,r=o.u.getInstance(t),n.useEffect((function(){return function(){o.u.releaseInstance(t)}})),r}},90335:function(e,t,r){var n;r.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={}))},2491:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(54096),o=r(21186),a=r(92159);function i(){var e=(0,n.G)(a.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:o.NK.Warning,heading:o.R6.Warning,message:t})}}}},94223:function(e,t,r){r.d(t,{P:function(){return l}});var n=r(1024),o=r(58566),a=r(86120),i=r(53808);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t,r){function l(e){if(e)return i.q.isFunction(t)?t(e):e.data}function c(e){var t,n;if(e)return r?r(e):null===(n=null===(t=e.pagination)||void 0===t?void 0:t.cursors)||void 0===n?void 0:n.next}return(0,o.useSelector)((0,n.useMemo)((function(){return function(t){if(i.q.isFunction(e)){for(var r=e,n=i.q.isFunction(e)&&r(),o=n&&a.a.getResponse(t,n),s=o&&o.isFetching,d=o&&o.statusCode,f=o&&o.hasCompleted,p=o&&o.shouldFetch,y=l(o&&o.data),v=c(o&&o.data),b=function(e){var t;if(e)return null===(t=e)||void 0===t?void 0:t.count}(o&&o.data);v&&(s=(o=a.a.getResponse(t,r(v))).isFetching,d=o.statusCode,f=o.hasCompleted,!o.shouldFetch);){var m=l(o.data);m&&y.push.apply(y,function(e){if(Array.isArray(e))return u(e)}(A=m)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(A)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(A)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var h=c(o.data);v=h===v?null:h}var g={shouldInitialFetch:p,items:y,nextCursor:v,isFetching:s,statusCode:d,hasCompleted:f};return"number"==typeof b&&(g.totalItems=b),g}var A}}),[e]))}r(35656).o.Ok},22430:function(e,t,r){r.d(t,{M:function(){return a}});var n=r(57857).T.encloseNamespace("shared.errorMessageHelper"),o={"operation-not-allowed":"operationNotAllowed","library-not-supported":"libraryNotSupported","access-denied":"accessDenied","library-access-denied":"libraryAccessDenied","library-access-denied-create":"libraryAccessDeniedCreate","library-access-denied-fulfil":"libraryAccessDeniedFulfill","customer-not-found":"customerNotFound","user-not-found":"userNotFound","library-not-found":"libraryNotFound","video-not-found":"videoNotFound","category-not-found":"categoryNotFound","library-request-not-found":"libraryRequestNotFound","invalid-category-path":"invalidCategoryPath","library-api-error":"somethingWentWrong","content-not-playable":"contentNotPlayable","invalid-object":"invalidObject","unknown-error":"somethingWentWrong"},a={libraryApiError:function(e){var t,r=o[null===(t=null==e?void 0:e.responseJSON)||void 0===t?void 0:t.type];return n(r||"somethingWentWrong")}}},50072:function(e,t,r){var n;r.d(t,{l:function(){return n}}),function(e){e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected",e.Closed="Closed"}(n||(n={}))},85739:function(e,t,r){r.d(t,{p:function(){return l}});var n=r(1024),o=r.n(n),a=r(86120),i=r(94223),u=r(25796);function l(e,t){var r=a.a.useGetFetch(),n=function(r){return u.y.libraryRequests(e,t,r)},l=function(e){return r(n(e))},c=(0,i.P)(n&&function(e){return n(e).key});return o().useEffect((function(){c&&c.shouldInitialFetch&&l()}),[e,t]),Object.assign(Object.assign({},c),{fetchNext:l})}},31170:function(e,t,r){r.r(t),r.d(t,{ApproveLibraryRequestView:function(){return w}});var n=r(1024),o=r.n(n),a=r(57857),i=r(86120),u=r(31647),l=r(71575),c=r(66703),s=r(85610),d=r(2491),f=r(22430),p=r(25796),y=r(50072),v=r(90335),b=r(50997),m=r(85739),h=r(70065),g=r(52076);function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var I="libraryRequests.approve",F=a.T.encloseNamespace(I);function w(e){var t,r,n,a=(r=o().useState(!1),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}(r,n)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=a[0],S=a[1],C=i.a.useGetFetch(),R=(0,d.Z)(),N=(0,m.p)(e.queryParams.sort||v.D.Newest,[y.l.Pending]),E=i.a.useBasicFetch(p.y.libraryRequest(e.libraryRequestId)),q=i.a.useBasicFetch(p.y.library(e.libraryId)),P=i.a.useBasicFetch(p.y.folder(e.folderId));function k(){!function(){var t,r,n,o,a={location:h.LocationContext.Popup,actionType:h.UserAction.Approve,entity:h.EntityType.LibraryRequest,workflowPhase:h.WorkflowPhase.Complete},i={id:E.data.id,videoId:null===(t=E.data.object)||void 0===t?void 0:t.id,requestingUserId:null===(r=E.data.sender)||void 0===r?void 0:r.id,sourceLibraryId:null===(n=E.data.sourceLibrary)||void 0===n?void 0:n.id,sourceFolderId:null===(o=E.data.sourceCategory)||void 0===o?void 0:o.id,destinationLibraryId:e.libraryId,destinationFolderId:e.folderId};g.k.logUserAction(i,a)}(),R.success(F("success"));var t=N.items.findIndex((function(t){return t.id.toString()===e.libraryRequestId.toString()})),r=N.items[t+1];u.Q.AppLinkHelper.trigger({application:b.OV.LIBRARY_REQUESTS,action:b.eX.LibraryRequests.PENDING_REQUESTS,args:[(null==r?void 0:r.id)||""],params:e.queryParams},{replace:!0})}var j=((null===(t=N.items)||void 0===t?void 0:t.length)||N.hasCompleted)&&!!E.data&&!!q.data&&!!P.data;return o().createElement(l.G,{title:F("title"),closePopup:e.closePopup,showLoadingSpinner:!j},j&&o().createElement(o().Fragment,null,o().createElement("p",null,o().createElement(c.x,{namespace:I,phrase:"confirmation",options:{videoName:E.data.object.name,libraryName:q.data.name,folderName:P.data.name}})),o().createElement(s.u,null,o().createElement(s.u.Cancel,{onClick:e.closePopup}),o().createElement(s.u.Submit,{onClick:function(){S(!0);var t={response:y.l.Approved,metadata:{destinationLibraryId:e.libraryId,destinationCategoryId:e.folderId}};C(p.y.fulfilRequest(e.libraryRequestId,t,k,(function(e){return R.error(f.M.libraryApiError(e))}),e.closePopup))},text:F("approve"),showSpinner:w,variant:"dark"}))))}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8337],{70868:function(e,t,n){n.d(t,{t:function(){return i}});var r=n(48088),o=n(25417),i={preventScrollTop:function(){r.Radio.channel(o.G.SHELL).trigger("prevent:scroll:top")}}},54096:function(e,t,n){n.d(t,{G:function(){return i}});var r=n(1024),o=n(21679);function i(e){var t,n;return t=e,n=o.u.getInstance(t),r.useEffect((function(){return function(){o.u.releaseInstance(t)}})),n}},86242:function(e,t,n){n.d(t,{Oo:function(){return u},b2:function(){return a}});var r=n(1024),o=n(54753),i=n(89146),c=function(e){var t=e.breadcrumb,n=t.name,i=t.appLink,c=t.active;return r.createElement("li",{className:"breadcrumb-item".concat(c?" active":"")},c?r.createElement("strong",null,n):r.createElement(o.F,{appLink:i},n))},u=function(e){var t=e.breadcrumbs;return r.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return r.createElement(c,{key:t,breadcrumb:e})})))},a=r.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb m-0 p-0"},i.u.getPartialLoadingItems({numItems:n}).map((function(e,t){var n=e.width;return r.createElement("li",{key:t,className:"breadcrumb-item"},r.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},58424:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(1024),o=n.n(r),i=o().forwardRef((function(e,t){return o().createElement("div",Object.assign({},e,{ref:t,role:"button",tabIndex:0,className:"".concat(e.className?e.className:""," cursor-pointer"),onKeyDown:e.onKeyDown?e.onKeyDown:function(t){return"Enter"===t.key&&e.onClick(t)},onClick:e.onClick,style:e.style?e.style:{}}),e.children)}))},66703:function(e,t,n){n.d(t,{D:function(){return c},x:function(){return u}});var r=n(1024),o=n(57857),i=n(85887),c=r.createContext(""),u=r.memo((function(e){var t=e.phrase,n=e.namespace,i=e.options,u=r.useContext(c),a=n||u,f=Object.assign({escapeText:!0},i),l=o.T.getPhrase(a,t,f);return r.createElement("span",{dangerouslySetInnerHTML:{__html:l}})}),(function(e,t){return e.namespace===t.namespace&&e.phrase===t.phrase&&i.t.isEqual(e.options,t.options)}))},84657:function(e,t,n){n.d(t,{v:function(){return r}});var r={BASE_VIDEO_COLLECTION:"thumbnail,tags,rating,series,season,owner",VIDEO_COLLECTION:"(videoCollection)",SERIES:"tallposter,rating,banner",FOLDER:"banner,thumbnail",CLASSIFICATION_COLLECTION:"banner,cover,tallPoster",CLASSIFICATION:function(e){return"banner,cover,tallPoster,followers{id:".concat(e,"},pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0}")},VIDEO:"series,season,rating,producers,glance,distributors,owner,resources[thumbnail,pdf],tags,productionCompanies,directors,links,thumbnail,interactives[thumbnail,_canBeConsumed],clips[_canBeConsumed],_canUpdate,_videoProgress,_canBeConsumed,categories,libraries,_canAddToLibrary",PLAYLIST:"cover,banner,owner,videos[count()]{limit:0},clips[count()]{limit:0},interactives[count()]{limit:0},followers[count()]{limit:0}",PLAYLIST_COLLECTION:"videos[count()]{limit:0},interactives[count()]{limit:0},clips[count()]{limit:0},cover",CLIP:"(clip)",CLIP_COLLECTION:"(clipCollection)",INTERACTIVE:"(interactive)",LIBRARY_COLLECTION:"owner[logo]",LIBRARY:"owner[logo],categorytree"}},2491:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(54096),o=n(21186),i=n(92159);function c(){var e=(0,r.G)(i.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:o.NK.Warning,heading:o.R6.Warning,message:t})}}}},30317:function(e,t,n){n.d(t,{v:function(){return B}});var r=n(1024),o=n(31647),i=n(35656),c=n(57857),u=n(88070);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 f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function s(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)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var y="shared.notFoundError",d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(u,e);var t,n,r,o,i=(r=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(r);if(o){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(y,"title"))}return t=u,(n=[{key:"name",get:function(){return"NotFoundError"}},{key:"heading",get:function(){return c.T.getPhrase(y,"heading")}},{key:"description",get:function(){return c.T.getPhrase(y,"description")}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(u.H);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function v(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var O="shared.unspecifiedError",w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(u,e);var t,n,r,o,i=(r=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(r);if(o){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(O,"title"))}return t=u,(n=[{key:"name",get:function(){return"UnspecifiedError"}},{key:"heading",get:function(){return c.T.getPhrase(O,"heading")}},{key:"description",get:function(){return c.T.getPhrase(O,"description")}},{key:"cta",get:function(){return!1}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(u.H);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function _(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var T="shared.privateResourceError",R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(u,e);var t,n,r,o,i=(r=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=S(r);if(o){var n=S(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(T,"title"))}return t=u,(n=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return c.T.getPhrase(T,"heading")}},{key:"description",get:function(){return c.T.getPhrase(T,"description")}}])&&P(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(u.H);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function L(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}var A="shared.regionLockedResourceError",x={notFound:d,forbidden:{rating:R,yearLevel:R,region:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(u,e);var t,n,r,o,i=(r=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=N(r);if(o){var n=N(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return L(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(A,"title"))}return t=u,(n=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return c.T.getPhrase(A,"heading")}},{key:"description",get:function(){return c.T.getPhrase(A,"description")}}])&&I(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(u.H),privacy:R},badRequest:w};function F(e){return e.map((function(e){return e.statusCode})).join(":")}function B(e,t,n){var c=Array.isArray(e)?e:[e];(0,r.useEffect)((function(){c.forEach((function(e){!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var r;r="number"==typeof e?e:e.status;var c=Object.assign(Object.assign({},x),t);r&&o.Q.ErrorHelper.isStatusCodeError(r)&&(r!==i.o.NotFound?r!==i.o.Forbidden?n.badRequest||o.Q.ErrorHelper.throw(new c.badRequest):n.forbidden||o.Q.ErrorHelper.throw(new c.forbidden.privacy):n.notFound||o.Q.ErrorHelper.throw(new c.notFound))}}(e.statusCode,t,n)}))}),[F(c),t,n])}},89146:function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{u:function(){return c}});var i={numItems:5,minWidth:50,maxWidth:100},c={getPartialLoadingItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},i),e),n=function(){return Math.max(Math.floor(Math.random()*t.maxWidth),t.minWidth)};return r(Array(t.numItems)).map((function(){return{width:"".concat(n(),"px")}}))}}},22430:function(e,t,n){n.d(t,{M:function(){return i}});var r=n(57857).T.encloseNamespace("shared.errorMessageHelper"),o={"operation-not-allowed":"operationNotAllowed","library-not-supported":"libraryNotSupported","access-denied":"accessDenied","customer-not-found":"customerNotFound","user-not-found":"userNotFound","library-not-found":"libraryNotFound","video-not-found":"videoNotFound","category-not-found":"categoryNotFound","library-request-not-found":"libraryRequestNotFound","invalid-category-path":"invalidCategoryPath","library-api-error":"somethingWentWrong","content-not-playable":"contentNotPlayable","invalid-object":"invalidObject","unknown-error":"somethingWentWrong"},i={libraryApiError:function(e){var t,n=o[null===(t=null==e?void 0:e.responseJSON)||void 0===t?void 0:t.type];return r(n||"somethingWentWrong")}}}}]);
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8337],{70868:function(e,t,r){r.d(t,{t:function(){return i}});var n=r(48088),o=r(25417),i={preventScrollTop:function(){n.Radio.channel(o.G.SHELL).trigger("prevent:scroll:top")}}},54096:function(e,t,r){r.d(t,{G:function(){return i}});var n=r(1024),o=r(21679);function i(e){var t,r;return t=e,r=o.u.getInstance(t),n.useEffect((function(){return function(){o.u.releaseInstance(t)}})),r}},86242:function(e,t,r){r.d(t,{Oo:function(){return u},b2:function(){return a}});var n=r(1024),o=r(54753),i=r(89146),c=function(e){var t=e.breadcrumb,r=t.name,i=t.appLink,c=t.active;return n.createElement("li",{className:"breadcrumb-item".concat(c?" active":"")},c?n.createElement("strong",null,r):n.createElement(o.F,{appLink:i},r))},u=function(e){var t=e.breadcrumbs;return n.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return n.createElement(c,{key:t,breadcrumb:e})})))},a=n.memo((function(e){var t=e.numItems,r=void 0===t?3:t;return n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},i.u.getPartialLoadingItems({numItems:r}).map((function(e,t){var r=e.width;return n.createElement("li",{key:t,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:r},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},58424:function(e,t,r){r.d(t,{L:function(){return i}});var n=r(1024),o=r.n(n),i=o().forwardRef((function(e,t){return o().createElement("div",Object.assign({},e,{ref:t,role:"button",tabIndex:0,className:"".concat(e.className?e.className:""," cursor-pointer"),onKeyDown:e.onKeyDown?e.onKeyDown:function(t){return"Enter"===t.key&&e.onClick(t)},onClick:e.onClick,style:e.style?e.style:{}}),e.children)}))},66703:function(e,t,r){r.d(t,{D:function(){return c},x:function(){return u}});var n=r(1024),o=r(57857),i=r(85887),c=n.createContext(""),u=n.memo((function(e){var t=e.phrase,r=e.namespace,i=e.options,u=n.useContext(c),a=r||u,f=Object.assign({escapeText:!0},i),l=o.T.getPhrase(a,t,f);return n.createElement("span",{dangerouslySetInnerHTML:{__html:l}})}),(function(e,t){return e.namespace===t.namespace&&e.phrase===t.phrase&&i.t.isEqual(e.options,t.options)}))},84657:function(e,t,r){r.d(t,{v:function(){return n}});var n={BASE_VIDEO_COLLECTION:"thumbnail,tags,rating,series,season,owner",VIDEO_COLLECTION:"(videoCollection)",SERIES:"tallposter,rating,banner",FOLDER:"banner,thumbnail",CLASSIFICATION_COLLECTION:"banner,cover,tallPoster",CLASSIFICATION:function(e){return"banner,cover,tallPoster,followers{id:".concat(e,"},pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0}")},VIDEO:"series,season,rating,producers,glance,distributors,owner,resources[thumbnail,pdf],tags,productionCompanies,directors,links,thumbnail,interactives[thumbnail,_canBeConsumed],clips[_canBeConsumed],_canUpdate,_videoProgress,_canBeConsumed,categories,libraries,_canAddToLibrary",PLAYLIST:"cover,banner,owner,videos[count()]{limit:0},clips[count()]{limit:0},interactives[count()]{limit:0},followers[count()]{limit:0}",PLAYLIST_COLLECTION:"videos[count()]{limit:0},interactives[count()]{limit:0},clips[count()]{limit:0},cover",CLIP:"(clip)",CLIP_COLLECTION:"(clipCollection)",INTERACTIVE:"(interactive)",LIBRARY_COLLECTION:"owner[logo]",LIBRARY:"owner[logo],categorytree"}},2491:function(e,t,r){r.d(t,{Z:function(){return c}});var n=r(54096),o=r(21186),i=r(92159);function c(){var e=(0,n.G)(i.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:o.NK.Warning,heading:o.R6.Warning,message:t})}}}},30317:function(e,t,r){r.d(t,{v:function(){return D}});var n=r(1024),o=r(31647),i=r(35656),c=r(57857),u=r(88070);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 f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function s(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)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var y="shared.notFoundError",d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(u,e);var t,r,n,o,i=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(n);if(o){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return s(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(y,"title"))}return t=u,(r=[{key:"name",get:function(){return"NotFoundError"}},{key:"heading",get:function(){return c.T.getPhrase(y,"heading")}},{key:"description",get:function(){return c.T.getPhrase(y,"description")}}])&&f(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(u.H);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function v(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var O="shared.unspecifiedError",w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(u,e);var t,r,n,o,i=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(n);if(o){var r=g(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return v(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(O,"title"))}return t=u,(r=[{key:"name",get:function(){return"UnspecifiedError"}},{key:"heading",get:function(){return c.T.getPhrase(O,"heading")}},{key:"description",get:function(){return c.T.getPhrase(O,"description")}},{key:"cta",get:function(){return!1}}])&&m(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(u.H);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function _(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var T="shared.privateResourceError",R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(u,e);var t,r,n,o,i=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=S(n);if(o){var r=S(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(T,"title"))}return t=u,(r=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return c.T.getPhrase(T,"heading")}},{key:"description",get:function(){return c.T.getPhrase(T,"description")}}])&&P(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(u.H);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function L(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}var A="shared.regionLockedResourceError",F={notFound:d,forbidden:{rating:R,yearLevel:R,region:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(u,e);var t,r,n,o,i=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=N(n);if(o){var r=N(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return L(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(A,"title"))}return t=u,(r=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return c.T.getPhrase(A,"heading")}},{key:"description",get:function(){return c.T.getPhrase(A,"description")}}])&&I(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(u.H),privacy:R},badRequest:w};function x(e){return e.map((function(e){return e.statusCode})).join(":")}function D(e,t,r){var c=Array.isArray(e)?e:[e];(0,n.useEffect)((function(){c.forEach((function(e){!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var n;n="number"==typeof e?e:e.status;var c=Object.assign(Object.assign({},F),t);n&&o.Q.ErrorHelper.isStatusCodeError(n)&&(n!==i.o.NotFound?n!==i.o.Forbidden?r.badRequest||o.Q.ErrorHelper.throw(new c.badRequest):r.forbidden||o.Q.ErrorHelper.throw(new c.forbidden.privacy):r.notFound||o.Q.ErrorHelper.throw(new c.notFound))}}(e.statusCode,t,r)}))}),[x(c),t,r])}},89146:function(e,t,r){function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{u:function(){return c}});var i={numItems:5,minWidth:50,maxWidth:100},c={getPartialLoadingItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},i),e),r=function(){return Math.max(Math.floor(Math.random()*t.maxWidth),t.minWidth)};return n(Array(t.numItems)).map((function(){return{width:"".concat(r(),"px")}}))}}},22430:function(e,t,r){r.d(t,{M:function(){return i}});var n=r(57857).T.encloseNamespace("shared.errorMessageHelper"),o={"operation-not-allowed":"operationNotAllowed","library-not-supported":"libraryNotSupported","access-denied":"accessDenied","library-access-denied":"libraryAccessDenied","library-access-denied-create":"libraryAccessDeniedCreate","library-access-denied-fulfil":"libraryAccessDeniedFulfill","customer-not-found":"customerNotFound","user-not-found":"userNotFound","library-not-found":"libraryNotFound","video-not-found":"videoNotFound","category-not-found":"categoryNotFound","library-request-not-found":"libraryRequestNotFound","invalid-category-path":"invalidCategoryPath","library-api-error":"somethingWentWrong","content-not-playable":"contentNotPlayable","invalid-object":"invalidObject","unknown-error":"somethingWentWrong"},i={libraryApiError:function(e){var t,r=o[null===(t=null==e?void 0:e.responseJSON)||void 0===t?void 0:t.type];return n(r||"somethingWentWrong")}}}}]);