@clickview/library-editor 1.8.1-rc.4 → 1.8.1-rc.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@clickview/library-editor",
3
3
  "description": "Library Editor",
4
- "version": "1.8.1-rc.4",
4
+ "version": "1.8.1-rc.6",
5
5
  "main": "dist/scripts/bundle.js",
6
6
  "types": "dist/projects/library-editor/src/index.d.ts",
7
7
  "scripts": {
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1002],{70868:function(t,e,n){n.d(e,{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(t,e,n){n.d(e,{G:function(){return i}});var r=n(1024),o=n(21679);function i(t){var e,n;return e=t,n=o.u.getInstance(e),r.useEffect((function(){return function(){o.u.releaseInstance(e)}})),n}},86242:function(t,e,n){n.d(e,{Oo:function(){return u},b2:function(){return a}});var r=n(1024),o=n(54753),i=n(89146),c=function(t){var e=t.breadcrumb,n=e.name,i=e.appLink,c=e.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(t){var e=t.breadcrumbs;return r.createElement("ol",{className:"breadcrumb m-0 p-0"},e.map((function(t,e){return r.createElement(c,{key:e,breadcrumb:t})})))},a=r.memo((function(t){var e=t.numItems,n=void 0===e?3:e;return r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb m-0 p-0"},i.u.getPartialLoadingItems({numItems:n}).map((function(t,e){var n=t.width;return r.createElement("li",{key:e,className:"breadcrumb-item"},r.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},58424:function(t,e,n){n.d(e,{L:function(){return i}});var r=n(1024),o=n.n(r),i=o().forwardRef((function(t,e){return o().createElement("div",Object.assign({},t,{ref:e,role:"button",tabIndex:0,className:"".concat(t.className?t.className:""," cursor-pointer"),onKeyDown:t.onKeyDown?t.onKeyDown:function(e){return"Enter"===e.key&&t.onClick(e)},onClick:t.onClick,style:t.style?t.style:{}}),t.children)}))},66703:function(t,e,n){n.d(e,{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(t){var e=t.phrase,n=t.namespace,i=t.options,u=r.useContext(c),a=n||u,f=Object.assign({escapeText:!0},i),s=o.T.getPhrase(a,e,f);return r.createElement("span",{dangerouslySetInnerHTML:{__html:s}})}),(function(t,e){return t.namespace===e.namespace&&t.phrase===e.phrase&&i.t.isEqual(t.options,e.options)}))},84657:function(t,e,n){n.d(e,{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(t){return"banner,cover,tallPoster,followers{id:".concat(t,"},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(t,e,n){n.d(e,{Z:function(){return c}});var r=n(54096),o=n(21186),i=n(92159);function c(){var t=(0,r.G)(i.P.ALERT);return{success:function(e){t.success(e)()},error:function(e){t.error(e)()},warning:function(e){t.createAlert({type:o.NK.Warning,heading:o.R6.Warning,message:e})}}}},30317:function(t,e,n){n.d(e,{v:function(){return D}});var r=n(1024),o=n(31647),i=n(35656),c=n(57857),u=n(88070);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var y="shared.notFoundError",b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(u,t);var e,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(t){return!1}}(),function(){var t,e=p(r);if(o){var n=p(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return l(this,t)});function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(y,"title"))}return e=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(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(u.H);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function v(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var O="shared.unspecifiedError",w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(u,t);var e,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(t){return!1}}(),function(){var t,e=g(r);if(o){var n=g(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return v(this,t)});function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(O,"title"))}return e=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(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(u.H);function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}function j(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}var R="shared.privateResourceError",S=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}(u,t);var e,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(t){return!1}}(),function(){var t,e=T(r);if(o){var n=T(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return j(this,t)});function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(R,"title"))}return e=u,(n=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return c.T.getPhrase(R,"heading")}},{key:"description",get:function(){return c.T.getPhrase(R,"description")}}])&&P(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(u.H);function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function I(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function L(t,e){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},L(t,e)}function k(t,e){if(e&&("object"===C(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function A(t){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},A(t)}var N="shared.regionLockedResourceError",x={notFound:b,forbidden:{rating:S,yearLevel:S,region:function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&L(t,e)}(u,t);var e,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(t){return!1}}(),function(){var t,e=A(r);if(o){var n=A(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return k(this,t)});function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(N,"title"))}return e=u,(n=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return c.T.getPhrase(N,"heading")}},{key:"description",get:function(){return c.T.getPhrase(N,"description")}}])&&I(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(u.H),privacy:S},badRequest:w};function B(t){return t.map((function(t){return t.statusCode})).join(":")}function D(t,e,n){var c=Array.isArray(t)?t:[t];(0,r.useEffect)((function(){c.forEach((function(t){!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t){var r;r="number"==typeof t?t:t.status;var c=Object.assign(Object.assign({},x),e);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))}}(t.statusCode,e,n)}))}),[B(c),e,n])}},89146:function(t,e,n){function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,{u:function(){return c}});var i={numItems:5,minWidth:50,maxWidth:100},c={getPartialLoadingItems:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign(Object.assign({},i),t),n=function(){return Math.max(Math.floor(Math.random()*e.maxWidth),e.minWidth)};return r(Array(e.numItems)).map((function(){return{width:"".concat(n(),"px")}}))}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3969],{86242:function(e,r,t){t.d(r,{Oo:function(){return o},b2:function(){return s}});var a=t(1024),n=t(54753),i=t(89146),c=function(e){var r=e.breadcrumb,t=r.name,i=r.appLink,c=r.active;return a.createElement("li",{className:"breadcrumb-item".concat(c?" active":"")},c?a.createElement("strong",null,t):a.createElement(n.F,{appLink:i},t))},o=function(e){var r=e.breadcrumbs;return a.createElement("ol",{className:"breadcrumb m-0 p-0"},r.map((function(e,r){return a.createElement(c,{key:r,breadcrumb:e})})))},s=a.memo((function(e){var r=e.numItems,t=void 0===r?3:r;return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},i.u.getPartialLoadingItems({numItems:t}).map((function(e,r){var t=e.width;return a.createElement("li",{key:r,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:t},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},84611:function(e,r,t){t.d(r,{f:function(){return c}});var a=t(1024),n=t.n(a),i=t(39396);function c(e){return e.imageUrl||e.svgName?e.imageUrl?n().createElement("div",{className:"".concat("BQ87Y"," rounded-circle h-100 w-100"),style:{backgroundImage:"url(".concat(e.imageUrl,")")}}," "):n().createElement("div",{className:"".concat("Uxnsl"," ").concat(e.variant?"bg-".concat(e.variant):""," text-").concat(e.textVariant," rounded-circle h-100 w-100")},n().createElement(i.x,{svgName:e.svgName,size:e.svgSize})):n().createElement(n().Fragment,null)}c.defaultProps={textVariant:"white"}},66703:function(e,r,t){t.d(r,{D:function(){return c},x:function(){return o}});var a=t(1024),n=t(57857),i=t(85887),c=a.createContext(""),o=a.memo((function(e){var r=e.phrase,t=e.namespace,i=e.options,o=a.useContext(c),s=t||o,l=Object.assign({escapeText:!0},i),u=n.T.getPhrase(s,r,l);return a.createElement("span",{dangerouslySetInnerHTML:{__html:u}})}),(function(e,r){return e.namespace===r.namespace&&e.phrase===r.phrase&&i.t.isEqual(e.options,r.options)}))},84657:function(e,r,t){t.d(r,{v:function(){return a}});var a={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"}},34107:function(e,r,t){t.d(r,{D:function(){return o}});var a=t(68003),n=t(2248),i=t(40221),c=t(84657),o={domainLibraries:function(e,r,t,n){return{url:a._.urlBuilder("/api/domain/v2/me/libraries",{type:e,maxCategoryDepth:0}),key:"libraries:".concat(e.sort().join(":")),formatData:function(e){return e.map((function(e){return e.data}))},success:r,error:t,always:n}},libraryRequestLibraries:function(){return{url:"{gateway}/v1/library-requests/libraries",key:"libraries"}},librariesWithCategories:function(){return{url:a._.urlBuilder("/api/domain/v2/me/libraries",{type:["sharedLibrary","customLibrary","unpublishedCustomLibrary"],maxCategoryDepth:5}),key:"libraries:with:categories",normalize:!1}},librariesWithOwnerLogos:function(e,r,t,n){return e.sort(),{url:a._.urlBuilder("/api/domain/v2/objects",{query:c.v.LIBRARY_COLLECTION,id:e}),key:"libraries:owner:logo:".concat(e.join(",")),success:r,error:t,always:n}},library:function(e,r,t,n){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:c.v.LIBRARY}),key:"library:".concat(e),success:r,error:t,always:n}},librarySubscribers:function(e,r){var t={};return r&&(t.cursor=r),{url:a._.urlBuilder("{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers"),t),key:"library:subscribers:".concat(e,":").concat(r)}},libraryOwner:function(e){return{url:"{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers?ownerOnly=true"),key:"library:owner:".concat(e),formatData:function(e){return i.m.first(e.data)}}},updateSubscriberPermissions:function(e,r,t,a,i){return{url:"{gateway}/v1/libraries/".concat(e,"/library-request-permissions"),key:"update:subscriber:permissions:".concat(e,":").concat(r),type:n.k.PUT,data:{customerId:r,granted:t},success:a,error:i}},removeSubscriber:function(e,r,t,a){return{url:"{gateway}/v1/objects/".concat(e,"/subscribedcustomers?memberId=").concat(r),key:"revoke:subscription:".concat(e,":").concat(r),type:n.k.DELETE,invalidationKeys:["library:subscribers:".concat(e)],success:t,error:a}},folder:function(e,r,t,a){return{url:"{gateway}/v1/objects/".concat(e,"?query=banner"),key:"library:folder:".concat(e),success:r,error:t,always:a}},folderParentTree:function(e,r,t,a){return{url:"/api/domain/v2/categories/".concat(e,"/parent-tree?includeAll=false"),key:"folder:parent:tree".concat(e),success:r,error:t,always:a}},childFolders:function(e,r,t,a,n){var i="{gateway}/v1/objects/".concat(e,"/categories?query={limit:100}thumbnail"),c="child:folders:".concat(e);return r&&(i+="&cursor=".concat(r),c+=":".concat(r)),{url:i,key:c,formatData:function(e){var r=e.data.sort((function(e,r){return e.name.toLowerCase().localeCompare(r.name.toLowerCase())}));return Object.assign(Object.assign({},e),{data:r})},success:t,error:a,always:n}},addToLibrary:function(e){return{url:"{gateway}/v1/library-requests",key:"add:".concat(e.objectId,":to:").concat(e.destinationLibraryId,":").concat(e.metadata.destinationCategoryId),type:n.k.POST,data:e}}}},89146:function(e,r,t){function a(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return n(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}t.d(r,{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]:{},r=Object.assign(Object.assign({},i),e),t=function(){return Math.max(Math.floor(Math.random()*r.maxWidth),r.minWidth)};return a(Array(r.numItems)).map((function(){return{width:"".concat(t(),"px")}}))}}},52814:function(e,r,t){t.d(r,{y:function(){return i}});var a=t(1024),n=t.n(a);function i(){return n().createElement("div",{className:"partial-loading-background w-100 rounded-lg",style:{height:"3.5rem"}}," ")}},23969:function(e,r,t){t.r(r),t.d(r,{LibraryRequestSettingsLibrariesView:function(){return L}});var a=t(1024),n=t.n(a),i=t(31647),c=t(86120),o=t(40221),s=t(57857),l=t(66703),u=t(86242),m=t(34107),b=t(50997),d=t(54753),y=t(6681),p=t(84611);function f(e){var r,t;return n().createElement(d.F,{className:"p-2 border rounded-lg d-flex align-items-center mb-2 text-decoration-none",appLink:{application:b.OV.LIBRARY_REQUESTS,action:b.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[e.library.id]}},n().createElement("div",{className:"".concat("hQt1a"," mr-2")},n().createElement(p.f,{svgName:y.vn.Library,imageUrl:null===(t=null===(r=e.library.owner)||void 0===r?void 0:r.logo)||void 0===t?void 0:t.url,variant:"dark-blue"})),n().createElement("h3",{className:"h6 mb-0"},e.library.name))}var v=t(52814),g="libraryEditor.libraryRequestSettingsLibraries",E=s.T.encloseNamespace(g);function L(){var e=c.a.useBasicFetch(m.D.domainLibraries(["customLibrary","unpublishedCustomLibrary"]));n().useEffect((function(){e.data&&(e.data.length>1||i.Q.AppLinkHelper.trigger({application:b.OV.LIBRARY_REQUESTS,action:b.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[o.m.first(e.data).id]},{replace:!0}))}),[e.data]);var r=[{name:E("libraryEditor"),appLink:{application:b.OV.LIBRARY_EDITOR,action:b.eX.LibraryEditor.HOME}},{name:E("libraryRequestSettings"),appLink:{application:b.OV.LIBRARY_REQUESTS,action:b.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES},active:!0}];return n().createElement("div",{className:"bg-white p-3"},n().createElement("h1",{className:"h3 mb-2"},n().createElement(l.x,{namespace:g,phrase:"libraryRequestSettings"})),n().createElement(u.Oo,{breadcrumbs:r}),n().createElement("hr",null),n().createElement("h2",{className:"h5 mb-2"},n().createElement(l.x,{namespace:g,phrase:"myLibraries"})),e.data?n().createElement(n().Fragment,null,e.data.map((function(e){return n().createElement(f,{key:e.id,library:e})}))):n().createElement(n().Fragment,null,n().createElement("div",{className:"mb-2"},n().createElement(v.y,null)),n().createElement("div",{className:"mb-2"},n().createElement(v.y,null))))}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4e3],{98001:function(e,t,n){"use strict";n.d(t,{u:function(){return w}});var r=n(39479),o=n(48088),i=n(31647),c=n(11306),a=n(6681),l=n(88181),u=n(61843),s=n(57857),f=n(93421),p=n(40622),y="bimhO";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 b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e,t){if(t&&("object"===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)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(k,e);var t,n,d,w,O=(d=k,w=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(d);if(w){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function k(){return b(this,k),O.apply(this,arguments)}return t=k,(n=[{key:"initialize",value:function(){this.options.model||i.Q.ErrorHelper.throw(new c.H("DraggableVideoBehavior must be passed a Video model")),this.listenTo(l.jr.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(l.jr.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"lang",get:function(){return"libraryEditor.behaviors"}},{key:"helper",value:function(){var e=this.getVideoModels();return new f.ND({text:e.length>1?s.T.getPhrase(this.lang,"videos",{videoCount:e.length}):e[0].get("name"),svg:a.Nj.getSvg(a.vn.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(y)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(y)}},{key:"start",value:function(){var e=this.getVideoModels(),t=o.Radio.channel(l.jr.VIDEO_DRAG_DROP);t.trigger("drag:start",e,this.options.collectionIdentifier),r.each(e,(function(e){return t.trigger("drag:style:".concat(e.id))}))}},{key:"stop",value:function(){o.Radio.channel(l.jr.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var e=this,t=u.S0.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:p.CheckboxTypes.VIDEO_LIST,collection:this.view.model.collection});return r.any(t,(function(t){return t.id===e.view.model.id}))||(t=[this.view.model]),t.length?t:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":f.W2.draggable,"ui-draggable-disabled":f.W2.disabled,"ui-draggable-handle":f.W2.handle,"ui-draggable-dragging":f.W2.dragging}}},{key:"onRender",value:function(){var e=this.getSelector(),t={helper:r.bind(this.helper,this),start:r.bind(this.start,this),stop:r.bind(this.stop,this)};t.classes=this.getClassMappings(),e.draggable(r.extend({},f.wc,t))}},{key:"onBeforeDestroy",value:function(){var e=this.getSelector();e.draggable("instance")&&e.draggable("destroy")}}])&&h(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),k}(i.Q.Behavior)},93421:function(e,t,n){"use strict";n.d(t,{wc:function(){return p},ND:function(){return f},W2:function(){return r}});var r={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"},o=n(62699),i=n.n(o);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 a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function u(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 s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(p,e);var t,n,o,c,f=(o=p,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(o);if(c){var n=s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),f.call(this,e)}return t=p,(n=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return i()}},{key:"className",get:function(){return"".concat(r.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:r},this.options)}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(n(31647).Q.Component),p={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},43953:function(e,t,n){"use strict";n.d(t,{J:function(){return g}});var r=n(31647),o=n(57857),i=n(6681),c=n(70065),a=n(52076),l=n(71641),u=n(88181),s=n(8050),f=n.n(s);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function 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,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function b(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var g=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&&d(e,t)}(m,e);var t,n,s,p,g=(s=m,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(s);if(p){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function m(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),g.call(this,e)}return t=m,(n=[{key:"name",get:function(){return"LibraryActionsComponent"}},{key:"template",get:function(){return f()}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.libraryActions"}},{key:"className",get:function(){return"position-absolute ".concat("Qgopl"," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".items-region"}}}},{key:"getDropdownItems",value:function(){return[{title:o.T.getPhrase(this.lang,"addFolder"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:c.UserAction.Create,entity:c.EntityType.Folder,workflowPhase:c.WorkflowPhase.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.Shared.NEW_FOLDER,args:[this.model.get("id")]}},{title:o.T.getPhrase(this.lang,"rename"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:c.UserAction.Rename,entity:c.EntityType.Library,workflowPhase:c.WorkflowPhase.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.RENAME_LIBRARY,args:[this.model.get("id")]}},{title:o.T.getPhrase(this.lang,"libraryRequestSettings"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:c.UserAction.SetAccess,entity:c.EntityType.Library,workflowPhase:c.WorkflowPhase.Start}),appLink:{application:u.OV.LIBRARY_REQUESTS,action:u.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[this.model.get("id")]}},{title:o.T.getPhrase(this.lang,"remove"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:c.UserAction.Delete,entity:c.EntityType.Library,workflowPhase:c.WorkflowPhase.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.DELETE_LIBRARY,args:[this.model.get("id")]},classes:"text-danger"}]}},{key:"onClickDropdownToggle",value:function(){this.showChildView("dropdownItems",new l.w({analyticsHelper:a.k,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new r.Q.Collection(this.getDropdownItems())}))}},{key:"onClickDropdownItem",value:function(e){e.stopPropagation(),e.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{dropdownClass:"".concat("AAIc2"," ").concat(this.options.buttonClass),svg:i.Nj.getSvg(i.vn.More)}}}])&&y(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(r.Q.Component)},23800:function(e,t,n){"use strict";n.r(t),n.d(t,{LibraryView:function(){return W}});var r=n(39479),o=n(31647),i=n(21679),c=n(57857),a=n(70065),l=n(6681),u=n(80758),s=n(77502),f=n(48404),p=n(88181),y=n(93638),d=n(3059),b=n(87002);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 g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function v(e,t){if(t&&("object"===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)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(c,e);var t,n,r,o,i=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(r);if(o){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v(this,e)});function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,e)}return t=c,(n=[{key:"name",get:function(){return"LibraryFolderListComponent"}},{key:"className",get:function(){return"row"}},{key:"childView",get:function(){return b.Y}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Q.ComponentCollection),k=n(43953),P=n(50997),S={banner:"goMgi"},j=n(25234),R=n.n(j);function _(e){return _="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)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function I(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(c,e);var t,n,r,o,i=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=D(r);if(o){var n=D(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return I(this,e)});function c(){return E(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"name",get:function(){return"UpdatesBannerComponent"}},{key:"template",get:function(){return R()}},{key:"lang",get:function(){return"libraryEditor.upgradesBanner"}},{key:"appLinks",get:function(){return{".upgrades-applink":{application:P.OV.LIBRARY_EDITOR,action:P.eX.LibraryEditor.UPDATES}}}},{key:"viewOptions",value:function(){return{styles:S,backgroundImage:P.Wn.Updates.BANNER}}}])&&T(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Q.Component),L=n(32849),B=n.n(L),A={actions:"_12j8"};function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}function U(e,t){if(t&&("object"===V(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Q(e){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Q(e)}var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}(g,e);var t,n,o,b,h=(o=g,b=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Q(o);if(b){var n=Q(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return U(this,e)});function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),h.call(this,e)}return t=g,(n=[{key:"initialize",value:function(){var e=this;this.libraryDataService=i.u.getInstance(p.Or.Library,this),this.listenTo(p.Vk.LIBRARY,"clear:library:folder:cache",(function(){e.folders=null,e.render()}))}},{key:"name",get:function(){return"LibraryView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.library"}},{key:"template",get:function(){return B()}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:u.o,region:"folders",type:y.ub.Library,shouldRender:function(){return e.model&&!e.model.children.length},componentOptions:{libraryId:this.options.libraryId,moreSvg:l.Nj.getSvg(l.vn.More),heading:c.T.getPhrase(this.lang,"emptyStateHeading"),description:c.T.getPhrase(this.lang,"emptyStateInfo",{moreSvg:'<span class="d-inline-block svg-container align-top">\n '.concat(l.Nj.getSvg(l.vn.More),"</span>")})},emptyStateComponents:p.aW}]}},{key:"regions",value:function(){return{upgradesBanner:{el:".upgrades-banner-region",replaceElement:!0},folders:{el:".folders-region",replaceElement:!0,partialLoading:y.LP.LibraryFolders},actions:{el:".actions-region",replaceElement:!0}}}},{key:"renderUpgradesBanner",value:function(){this.showChildView("upgradesBanner",new x)}},{key:"renderFolders",value:function(){this.showChildView("folders",new O({collection:this.folders,childOptions:{location:"library"}}))}},{key:"renderActions",value:function(){this.showChildView("actions",new k.J({model:this.model,extraClasses:"".concat(A.actions," rounded-circle mr-2 mt-2"),analyticsOptions:{location:a.LocationContext.Banner}}))}},{key:"requiredResources",get:function(){return{config:f.p.config}}},{key:"bindScrollListener",value:function(){var e=this;if(!this.scrollBound){this.scrollBound=!0;var t=$(window),n=r.debounce((function(){if(t.scrollTop()+t.height()>e.$el.offset().top+e.$el.height()&&e.currentIdentifier){var n=e.libraryDataService.getFoldersCursors(e.currentIdentifier);n&&n.next&&e.libraryDataService.getFolders(e.getNewCollectionIdentifier(n.next),(function(t){e.folders.add(t.toJSON())}))}}),333);t.scroll(n),window.setTimeout(n,100)}}},{key:"getNewCollectionIdentifier",value:function(e){return this.currentIdentifier=new d.KX(this.model.categoryTree.get("id"),s.E.AtoZ,e)}},{key:"onBeforeRender",value:function(){var e=this;if(this.model)return this.folders||this.libraryDataService.getFolders(this.getNewCollectionIdentifier(),(function(t){e.folders=t,e.render()})),!!this.model&&!!this.folders;this.libraryDataService.getLibraries((function(t){e.model=t.get(e.options.libraryId),e.listenTo(e.model,"change:name",e.render),e.render()}))}},{key:"viewOptions",value:function(){return{styles:A}}},{key:"onRender",value:function(){this.renderUpgradesBanner(),this.renderFolders(),this.renderActions(),this.bindScrollListener()}}])&&N(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),g}(o.Q.View)},71641:function(e,t,n){"use strict";n.d(t,{w:function(){return f}});var r=n(39479),o=n(31647),i=n(55142);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 a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function u(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 s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(p,e);var t,n,o,c,f=(o=p,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(o);if(c){var n=s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),f.call(this,e)}return t=p,n=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return i.N}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}],n&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.Q.ComponentCollection)},62699:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=e.lambda,a=e.escapeExpression;return'<span class="'+a(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' mr-2">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n<span class="'+a(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dragText:i,t))+'">'+a(c(null!=(i=null!=t?t.options:t)?i.text:i,t))+"</span>"},useData:!0})},8050:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=e.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+e.escapeExpression(c(null!=(i=null!=t?t.options:t)?i.dropdownClass:i,t))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>'},useData:!0})},25234:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=e.lambda,a=e.escapeExpression,l=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="py-4 px-3 mb-3 rounded h4 border '+a(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.banner:i,t))+'"\r\n style="background-image: url('+a(c(null!=(i=null!=t?t.options:t)?i.backgroundImage:i,t))+')"\r\n>\r\n '+a((n.lang||t&&t.lang||u).call(l,"message",{name:"lang",hash:{},data:o}))+'\r\n <button class="btn btn-outline-dark ml-3 align-middle upgrades-applink">\r\n '+a((n.lang||t&&t.lang||u).call(l,"button",{name:"lang",hash:{},data:o}))+"\r\n </button>\r\n</div>"},useData:!0})},32849:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c,a=e.escapeExpression;return'<div class="upgrades-banner-region"></div>\r\n<div class="bg-white px-3 pt-3 pb-2 position-relative rounded '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.library:i,t))+'">\r\n <h1 class="h3">'+a("function"==typeof(c=null!=(c=n.name||(null!=t?t.name:t))?c:e.hooks.helperMissing)?c.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):c)+'</h1>\r\n <div class="folders-region"></div>\r\n <div class="actions-region"></div>\r\n</div>'},useData:!0})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4830],{84611:function(e,r,t){t.d(r,{f:function(){return c}});var a=t(1024),n=t.n(a),i=t(39396);function c(e){return e.imageUrl||e.svgName?e.imageUrl?n().createElement("div",{className:"".concat("BQ87Y"," rounded-circle h-100 w-100"),style:{backgroundImage:"url(".concat(e.imageUrl,")")}}," "):n().createElement("div",{className:"".concat("Uxnsl"," ").concat(e.variant?"bg-".concat(e.variant):""," text-").concat(e.textVariant," rounded-circle h-100 w-100")},n().createElement(i.x,{svgName:e.svgName,size:e.svgSize})):n().createElement(n().Fragment,null)}c.defaultProps={textVariant:"white"}},9063:function(e,r,t){t.d(r,{Z:function(){return o}});var a=t(1024),n=t.n(a),i=t(58424),c=t(63946);function o(e){function r(){e.disabled||e.onClick.apply(e,arguments)}var t=e.disabled?"disabled":"",a=e.hideOutline?"outline-none":"",o=e.on?"on":"";e.disabled&&!e.showStateWhenDisabled&&(o="");var s="".concat("d-inline-block float-right align-top custom-toggle toggle-option"," ").concat(o," ").concat(t," ").concat(a);return e.tooltipText?n().createElement(c.u,{title:e.tooltipText,spanHack:!0},n().createElement(i.L,{onClick:r,className:s},n().createElement("span",{className:"handle"}))):n().createElement(i.L,{onClick:r,className:s},n().createElement("span",{className:"handle"}))}},34107:function(e,r,t){t.d(r,{D:function(){return o}});var a=t(68003),n=t(2248),i=t(40221),c=t(84657),o={domainLibraries:function(e,r,t,n){return{url:a._.urlBuilder("/api/domain/v2/me/libraries",{type:e,maxCategoryDepth:0}),key:"libraries:".concat(e.sort().join(":")),formatData:function(e){return e.map((function(e){return e.data}))},success:r,error:t,always:n}},libraryRequestLibraries:function(){return{url:"{gateway}/v1/library-requests/libraries",key:"libraries"}},librariesWithCategories:function(){return{url:a._.urlBuilder("/api/domain/v2/me/libraries",{type:["sharedLibrary","customLibrary","unpublishedCustomLibrary"],maxCategoryDepth:5}),key:"libraries:with:categories",normalize:!1}},librariesWithOwnerLogos:function(e,r,t,n){return e.sort(),{url:a._.urlBuilder("/api/domain/v2/objects",{query:c.v.LIBRARY_COLLECTION,id:e}),key:"libraries:owner:logo:".concat(e.join(",")),success:r,error:t,always:n}},library:function(e,r,t,n){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:c.v.LIBRARY}),key:"library:".concat(e),success:r,error:t,always:n}},librarySubscribers:function(e,r){var t={};return r&&(t.cursor=r),{url:a._.urlBuilder("{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers"),t),key:"library:subscribers:".concat(e,":").concat(r)}},libraryOwner:function(e){return{url:"{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers?ownerOnly=true"),key:"library:owner:".concat(e),formatData:function(e){return i.m.first(e.data)}}},updateSubscriberPermissions:function(e,r,t,a,i){return{url:"{gateway}/v1/libraries/".concat(e,"/library-request-permissions"),key:"update:subscriber:permissions:".concat(e,":").concat(r),type:n.k.PUT,data:{customerId:r,granted:t},success:a,error:i}},removeSubscriber:function(e,r,t,a){return{url:"{gateway}/v1/objects/".concat(e,"/subscribedcustomers?memberId=").concat(r),key:"revoke:subscription:".concat(e,":").concat(r),type:n.k.DELETE,invalidationKeys:["library:subscribers:".concat(e)],success:t,error:a}},folder:function(e,r,t,a){return{url:"{gateway}/v1/objects/".concat(e,"?query=banner"),key:"library:folder:".concat(e),success:r,error:t,always:a}},folderParentTree:function(e,r,t,a){return{url:"/api/domain/v2/categories/".concat(e,"/parent-tree?includeAll=false"),key:"folder:parent:tree".concat(e),success:r,error:t,always:a}},childFolders:function(e,r,t,a,n){var i="{gateway}/v1/objects/".concat(e,"/categories?query={limit:100}thumbnail"),c="child:folders:".concat(e);return r&&(i+="&cursor=".concat(r),c+=":".concat(r)),{url:i,key:c,formatData:function(e){var r=e.data.sort((function(e,r){return e.name.toLowerCase().localeCompare(r.name.toLowerCase())}));return Object.assign(Object.assign({},e),{data:r})},success:t,error:a,always:n}},addToLibrary:function(e){return{url:"{gateway}/v1/library-requests",key:"add:".concat(e.objectId,":to:").concat(e.destinationLibraryId,":").concat(e.metadata.destinationCategoryId),type:n.k.POST,data:e}}}},52814:function(e,r,t){t.d(r,{y:function(){return i}});var a=t(1024),n=t.n(a);function i(){return n().createElement("div",{className:"partial-loading-background w-100 rounded-lg",style:{height:"3.5rem"}}," ")}},4830:function(e,r,t){t.r(r),t.d(r,{LibraryRequestSettingsView:function(){return C}});var a=t(1024),n=t.n(a),i=t(86120),c=t(57857),o=t(34107),s=t(30317),l=t(66703),u=t(2491),m=t(86242),d=t(99910),b=t(70868),y=t(54753),p=t(52076),v=t(70065);function g(e,r){var t;if(!r)return null;var a=null!==(t=e.params)&&void 0!==t?t:{};return{application:e.application,action:e.action,args:e.args,params:Object.assign(Object.assign({},a),{cursor:r})}}function f(e){var r=e.appLink,t=e.cursors,n=e.className,i=e.buttonVariant,c=e.onClick;function o(e){r&&b.t.preventScrollTop(),p.k.logUserAction({page:e},{location:v.LocationContext.Pagination,entity:v.EntityType.Pagination,actionType:v.UserAction.Navigate}),c&&c(t[e])}return r?a.createElement(l.D.Provider,{value:"shared.pagination"},a.createElement("div",{className:n},a.createElement(y.F,{appLink:g(r,t.previous),className:"btn btn-".concat(i," mr-1 ").concat(t.previous?"":"disabled"),onClick:function(){return o("previous")}},a.createElement(l.x,{phrase:"previous"})),a.createElement(y.F,{appLink:g(r,t.next),className:"btn btn-".concat(i," ").concat(t.next?"":"disabled"),onClick:function(){return o("next")}},a.createElement(l.x,{phrase:"next"})))):a.createElement(l.D.Provider,{value:"shared.pagination"},a.createElement("div",{className:n},a.createElement(d.Button,{variant:i,className:"mr-1 ".concat(t.previous?"":"disabled"),onClick:function(){return o("previous")}},a.createElement(l.x,{phrase:"previous"})),a.createElement(d.Button,{variant:i,className:"btn ".concat(t.next?"":"disabled"),onClick:function(){return o("next")}},a.createElement(l.x,{phrase:"next"}))))}f.defaultProps={className:"py-2",buttonVariant:"secondary"};var E=t(50997),h=t(9063),L=t(6681),k=t(84611);function R(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var S="libraryRequests.schoolLibraryRequestSettings";function w(e){var r,t,a,i,c=(a=n().useState(!!e.customer.libraryRequestEnabled),i=2,function(e){if(Array.isArray(e))return e}(a)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,n,i=[],c=!0,o=!1;try{for(t=t.call(e);!(c=(a=t.next()).done)&&(i.push(a.value),!r||i.length!==r);c=!0);}catch(e){o=!0,n=e}finally{try{c||null==t.return||t.return()}finally{if(o)throw n}}return i}}(a,i)||function(e,r){if(e){if("string"==typeof e)return R(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?R(e,r):void 0}}(a,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=c[0],s=c[1];return n().createElement("div",{className:"p-2 border rounded-lg d-flex align-items-center mb-2 ".concat(e.isLibraryOwner?"":"S_m9j")},n().createElement("div",{className:"mr-2 ".concat("iKsvQ")},n().createElement(k.f,{imageUrl:e.customer.logoUrl,svgName:L.vn.School,variant:"dark-blue"})),n().createElement("div",{className:"mr-auto"},n().createElement("h3",{className:"h6 mb-0"},e.customer.customerName),n().createElement("p",{className:"".concat("ru_SO"," mb-0 text-muted")},n().createElement(l.x,{namespace:S,phrase:"totalStaffAndAdmins",options:{smartCount:(null!==(r=e.customer.staff)&&void 0!==r?r:0)+(null!==(t=e.customer.admin)&&void 0!==t?t:0)}})),n().createElement(y.F,{className:"".concat("BZF1Q"," danger-link"),appLink:{application:E.OV.LIBRARY_REQUESTS,action:E.eX.LibraryRequests.REMOVE_LIBRARY_SUBSCRIBER,args:[e.libraryId,e.customer.customerId]},analyticsData:{id:e.libraryId,customerId:e.customer.customerId},analyticsOptions:{actionType:v.UserAction.Dissociate,entity:v.EntityType.Library,descriptor:v.AssocDescriptor.Customer,location:v.LocationContext.LibraryRequestSettings,workflowPhase:v.WorkflowPhase.Start}},n().createElement(l.x,{namespace:S,phrase:"removeAccess"}))),n().createElement(h.Z,{on:o,onClick:function(){s(!o),e.onToggle(e.customer.customerId,!o)}}))}var I=t(52814);function N(){return n().createElement("div",{className:"bg-white p-3"},n().createElement("div",{className:"mb-2 partial-loading-background",style:{width:"10rem",height:"1.8rem"}}),n().createElement(m.b2,null),n().createElement("hr",null),n().createElement("div",{className:"mb-1 partial-loading-background",style:{height:"1.5rem",width:"5.25rem"}}),n().createElement("div",{className:"mb-2 partial-loading-background",style:{height:"1.15rem",width:"24.5rem"}}),n().createElement(I.y,null))}var x=t(22430),T="libraryRequests.libraryRequestSettings",A=c.T.encloseNamespace(T);function C(e){var r,t,a,c,d,b,y,g,h,L,k=i.a.useBasicFetch(o.D.domainLibraries(["customLibrary","unpublishedCustomLibrary"])),R=null===(r=k.data)||void 0===r?void 0:r.find((function(r){return r.id.toString()===e.libraryId.toString()})),S=i.a.useBasicFetch(o.D.libraryOwner(e.libraryId)),I=i.a.useBasicFetch(o.D.librarySubscribers(e.libraryId,e.cursor)),C=!!(null===(a=null===(t=I.data)||void 0===t?void 0:t.data)||void 0===a?void 0:a.length),O=i.a.useGetFetch(),q=(0,u.Z)();function B(r,t){var a=S.data.customerId===r?S.data:I.data.data.find((function(e){return e.customerId===r}));O(o.D.updateSubscriberPermissions(e.libraryId,r,t,(function(){var n=A(t?"enableLibraryRequestsSuccess":"disableLibraryRequestsSuccess",{school:a.customerName});q.success(n),p.k.logUserAction({id:e.libraryId,customerId:r,canAddContent:t},{actionType:v.UserAction.SetAccess,entity:v.EntityType.Library,descriptor:v.AssocDescriptor.Customer,location:v.LocationContext.LibraryRequestSettings})}),(function(e){return q.error(x.M.libraryApiError(e))})))}(0,s.v)(k);var _=[{name:A("libraryEditor"),appLink:{application:E.OV.LIBRARY_EDITOR,action:E.eX.LibraryEditor.HOME}},{name:A("libraryRequestSettings"),appLink:{application:E.OV.LIBRARY_REQUESTS,action:E.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES},active:(null===(c=k.data)||void 0===c?void 0:c.length)<=1}];return k.data&&(null===(d=k.data)||void 0===d?void 0:d.length)>1&&_.push({name:A("requestingTo",{name:R.name}),appLink:{application:E.OV.LIBRARY_EDITOR,action:E.eX.LibraryEditor.LIBRARY,args:[R.id]},active:!0}),k.data&&I.data?n().createElement("div",{className:"bg-white p-3"},n().createElement("h1",{className:"h3 mb-2"},C?n().createElement(l.x,{namespace:T,phrase:"requestingTo",options:{name:R.name}}):A("libraryRequestSettings")),n().createElement(m.Oo,{breadcrumbs:_}),n().createElement("hr",null),n().createElement("p",{className:"mb-3"},n().createElement(l.x,{namespace:T,phrase:"manageSubscribers"})),!(null===(y=null===(b=I.data.pagination)||void 0===b?void 0:b.cursors)||void 0===y?void 0:y.previous)&&n().createElement(n().Fragment,null,n().createElement("h2",{className:"h5 mb-1"},C?n().createElement(l.x,{namespace:T,phrase:"mySchool"}):R.name),!!S.data&&n().createElement(w,{libraryId:e.libraryId,customer:S.data,onToggle:B,isLibraryOwner:!0})),!!(null===(h=null===(g=I.data)||void 0===g?void 0:g.data)||void 0===h?void 0:h.length)&&n().createElement(n().Fragment,null,n().createElement("h2",{className:"h5 mb-1 mt-3"},n().createElement(l.x,{namespace:T,phrase:"subscribers"})),I.data.data.map((function(r){return n().createElement(w,{libraryId:e.libraryId,key:r.customerId,customer:r,onToggle:B})})),(null===(L=I.data.pagination)||void 0===L?void 0:L.cursors)&&n().createElement(f,{cursors:I.data.pagination.cursors,appLink:{application:E.OV.LIBRARY_REQUESTS,action:E.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[e.libraryId]},buttonVariant:"outline-dark",className:"text-right pt-2 pb-1"}))):n().createElement(N,null)}}}]);