@clickview/library-editor 1.35.0-rc.0 → 1.35.0-rc.2

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.
Files changed (85) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{library-editor-app-9e70719a5d.css → library-editor-app-ad7039f1c8.css} +4 -0
  3. package/dist/languages/en.json +1 -1
  4. package/dist/scripts/{1010-4ef589d008.chunk.js → 1010-4d193dac9e.chunk.js} +1 -1
  5. package/dist/scripts/{1032-3728f9df89.chunk.js → 1032-417348711d.chunk.js} +1 -1
  6. package/dist/scripts/{1086-341076633d.chunk.js → 1086-aad27f7c95.chunk.js} +1 -1
  7. package/dist/scripts/{1409-9429160d1d.chunk.js → 1409-ac31418286.chunk.js} +1 -1
  8. package/dist/scripts/{1492-85fc4f1440.chunk.js → 1492-58e6c2cfda.chunk.js} +1 -1
  9. package/dist/scripts/{1601-0550afd76f.chunk.js → 1601-b0af727472.chunk.js} +2 -2
  10. package/dist/scripts/1703-d7f5edbf11.chunk.js +1 -0
  11. package/dist/scripts/{1832-5a04f29a50.chunk.js → 1832-714a73ab92.chunk.js} +1 -1
  12. package/dist/scripts/1876-d0c62dcad6.chunk.js +1 -0
  13. package/dist/scripts/{2254-a44369c23f.chunk.js → 2254-799d6c5eee.chunk.js} +1 -1
  14. package/dist/scripts/{2417-4aa80cae75.chunk.js → 2417-96e0949602.chunk.js} +1 -1
  15. package/dist/scripts/{243-637db87e01.chunk.js → 243-918a686085.chunk.js} +1 -1
  16. package/dist/scripts/2548-6a87ecc6d8.chunk.js +1 -0
  17. package/dist/scripts/{259-eb6c27e0ba.chunk.js → 259-ec48acb47c.chunk.js} +1 -1
  18. package/dist/scripts/{2601-7fbe77582f.chunk.js → 2601-1e0481c432.chunk.js} +1 -1
  19. package/dist/scripts/{2644-1e60bf9d9a.chunk.js → 2644-47e13c01bd.chunk.js} +1 -1
  20. package/dist/scripts/{2692-79a41634fc.chunk.js → 2692-4703edbf92.chunk.js} +1 -1
  21. package/dist/scripts/{2803-bf2efe7108.chunk.js → 2803-536f4de2e5.chunk.js} +1 -1
  22. package/dist/scripts/{2888-81722c9a17.chunk.js → 2888-82154ef78f.chunk.js} +1 -1
  23. package/dist/scripts/{299-2b1b8399d8.chunk.js → 299-b7dbf0ebbf.chunk.js} +1 -1
  24. package/dist/scripts/{2998-ed2a612f50.chunk.js → 2998-196d38b166.chunk.js} +1 -1
  25. package/dist/scripts/{35-ddade9da12.chunk.js → 35-0332d0d4ec.chunk.js} +1 -1
  26. package/dist/scripts/{3639-573b6e5774.chunk.js → 3639-33630e86bc.chunk.js} +1 -1
  27. package/dist/scripts/{3746-5bf623b37c.chunk.js → 3746-44c2f70e92.chunk.js} +1 -1
  28. package/dist/scripts/376-acdd8a7bae.chunk.js +1 -0
  29. package/dist/scripts/{3763-04bb9b9f59.chunk.js → 3763-1b221d69b3.chunk.js} +1 -1
  30. package/dist/scripts/{3838-de148f8ce8.chunk.js → 3838-1b742c6e78.chunk.js} +1 -1
  31. package/dist/scripts/3969-aac649e660.chunk.js +1 -0
  32. package/dist/scripts/{4201-069a0ae82b.chunk.js → 4201-d2cd82d164.chunk.js} +1 -1
  33. package/dist/scripts/4523-d2c7bc4ef6.chunk.js +1 -0
  34. package/dist/scripts/{4591-9edc896170.chunk.js → 4591-f4bbb00b24.chunk.js} +1 -1
  35. package/dist/scripts/{4860-70078a99af.chunk.js → 4860-b4b567b013.chunk.js} +1 -1
  36. package/dist/scripts/{514-73f47c096f.chunk.js → 514-899d11ac93.chunk.js} +1 -1
  37. package/dist/scripts/{5286-ff323ac9a4.chunk.js → 5286-d262387308.chunk.js} +1 -1
  38. package/dist/scripts/{5412-a5b5c4e8df.chunk.js → 5412-1bb7fe0d88.chunk.js} +1 -1
  39. package/dist/scripts/5424-84c95bcb01.chunk.js +1 -0
  40. package/dist/scripts/{546-9821b7a137.chunk.js → 546-08908e5aea.chunk.js} +1 -1
  41. package/dist/scripts/5698-a34aef1372.chunk.js +1 -0
  42. package/dist/scripts/{5707-a14bfb1cf4.chunk.js → 5707-a5cf4bfb65.chunk.js} +1 -1
  43. package/dist/scripts/{5747-76d3bf1ac9.chunk.js → 5747-7d4c5072db.chunk.js} +1 -1
  44. package/dist/scripts/61-be57702064.chunk.js +2 -0
  45. package/dist/scripts/{6505-a3cd826b3d.chunk.js → 6505-094c5a1df8.chunk.js} +1 -1
  46. package/dist/scripts/{6539-73d88ad7a8.chunk.js → 6539-3126f0fbda.chunk.js} +1 -1
  47. package/dist/scripts/{6673-e06bde51a3.chunk.js → 6673-012b6a34e6.chunk.js} +2 -2
  48. package/dist/scripts/{6732-926ba6e4a7.chunk.js → 6732-a50459c84d.chunk.js} +1 -1
  49. package/dist/scripts/{6774-bc3e91ef9f.chunk.js → 6774-d9478103b4.chunk.js} +1 -1
  50. package/dist/scripts/{6788-162a034c8f.chunk.js → 6788-587666f144.chunk.js} +1 -1
  51. package/dist/scripts/6963-9d33991743.chunk.js +1 -0
  52. package/dist/scripts/{7002-2abf4ab235.chunk.js → 7002-913b8786d0.chunk.js} +1 -1
  53. package/dist/scripts/{7053-31953ee49e.chunk.js → 7053-27fd687560.chunk.js} +1 -1
  54. package/dist/scripts/{7071-666cb9ad06.chunk.js → 7071-e41973e685.chunk.js} +1 -1
  55. package/dist/scripts/{708-387b4a22ae.chunk.js → 708-83d4f20c11.chunk.js} +1 -1
  56. package/dist/scripts/{7376-88ce2513f1.chunk.js → 7376-30a7796bd8.chunk.js} +1 -1
  57. package/dist/scripts/7471-7ca6e3c040.chunk.js +1 -0
  58. package/dist/scripts/{8213-e81d88992f.chunk.js → 8213-76e961afd7.chunk.js} +1 -1
  59. package/dist/scripts/{8362-9f5d02162b.chunk.js → 8362-ee0581a213.chunk.js} +1 -1
  60. package/dist/scripts/{8726-188275719c.chunk.js → 8726-9cf2439dab.chunk.js} +1 -1
  61. package/dist/scripts/{8727-25b7a07d5e.chunk.js → 8727-2db647e01c.chunk.js} +1 -1
  62. package/dist/scripts/{8762-19b69b9933.chunk.js → 8762-b961ffc598.chunk.js} +1 -1
  63. package/dist/scripts/{8906-03db1bdbc3.chunk.js → 8906-b3e2cf9511.chunk.js} +1 -1
  64. package/dist/scripts/{9267-93c60091a6.chunk.js → 9267-02cd2bc5dd.chunk.js} +1 -1
  65. package/dist/scripts/{9357-4f30f5eb0d.chunk.js → 9357-730d572872.chunk.js} +1 -1
  66. package/dist/scripts/{9695-0ee92974f3.chunk.js → 9695-8485f54457.chunk.js} +1 -1
  67. package/dist/scripts/{9927-1c47de191d.chunk.js → 9927-a5554b6c8f.chunk.js} +1 -1
  68. package/dist/scripts/bundle-6811d6111b.min.js +2 -0
  69. package/package.json +1 -1
  70. package/dist/scripts/1703-cb95448dd7.chunk.js +0 -1
  71. package/dist/scripts/1876-8cbd30a64a.chunk.js +0 -1
  72. package/dist/scripts/2548-b757efc24f.chunk.js +0 -1
  73. package/dist/scripts/376-16d0d5c7fe.chunk.js +0 -1
  74. package/dist/scripts/3969-5585d517d7.chunk.js +0 -1
  75. package/dist/scripts/4523-befa1c95fa.chunk.js +0 -1
  76. package/dist/scripts/5424-40969425da.chunk.js +0 -1
  77. package/dist/scripts/5698-569428a4cd.chunk.js +0 -1
  78. package/dist/scripts/61-d1ed7b849d.chunk.js +0 -2
  79. package/dist/scripts/6963-bb36f098b6.chunk.js +0 -1
  80. package/dist/scripts/7471-66a3ac412d.chunk.js +0 -1
  81. package/dist/scripts/bundle-e4bf8d2629.min.js +0 -2
  82. /package/dist/scripts/{1601-0550afd76f.chunk.js.LICENSE.txt → 1601-b0af727472.chunk.js.LICENSE.txt} +0 -0
  83. /package/dist/scripts/{61-d1ed7b849d.chunk.js.LICENSE.txt → 61-be57702064.chunk.js.LICENSE.txt} +0 -0
  84. /package/dist/scripts/{6673-e06bde51a3.chunk.js.LICENSE.txt → 6673-012b6a34e6.chunk.js.LICENSE.txt} +0 -0
  85. /package/dist/scripts/{bundle-e4bf8d2629.min.js.LICENSE.txt → bundle-6811d6111b.min.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6963],{54096:function(e,r,t){t.d(r,{G:function(){return a}});var n=t(1024),i=t(21679);function a(e){var r,t;return r=e,t=i.u.getInstance(r),n.useEffect((function(){return function(){i.u.releaseInstance(r)}})),t}},84657:function(e,r,t){t.d(r,{t:function(){return a},v:function(){return i}});var n=t(50028),i={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,thumbnail,followers{id:".concat(e,"},pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0}")},VIDEO:"series,season,rating,producers,glance,distributors,owner,subjectPresentationAudiences,resources[thumbnail,pdf],tags,productionCompanies,directors,links,thumbnail,interactives[thumbnail,_canBeConsumed,_isClickViewContent,owner[avatar]],clips[_canBeConsumed,owner[avatar],_isClickViewContent,_thumbnail],_canUpdate,_videoProgress,_canBeConsumed,categories[libraries],libraries,_canAddToLibrary,_restrictions,contentLicences",PLAYLIST:"cover,banner,owner,videos[count()]{limit:0,status:[".concat(n.X.Published,",").concat(n.X.Archived,"]},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"},a={CLASSIFICATION:"banner,cover,tallPoster,pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0}",CLASSIFICATION_COLLECTION:"banner,cover,tallPoster",VIDEO:"series,season,rating,producers,glance,distributors,subjectPresentationAudiences,resources[thumbnail,pdf],tags,productionCompanies,directors,links,thumbnail,interactives[thumbnail,_canBeConsumed,_isClickViewContent],clips[_canBeConsumed,_isClickViewContent,_thumbnail],_canBeConsumed,categories,libraries",VIDEO_COLLECTION:"thumbnail,rating,series,season,subjectPresentationAudiences,subtitles{limit:1},_canBeConsumed"}},34107:function(e,r,t){t.d(r,{D:function(){return c}});var n=t(2248),i=t(68003),a=t(40221),o=t(84657),c={domainLibraries:function(e,r,t,n){return{url:i._.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:i._.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:i._.urlBuilder("/api/domain/v2/objects",{query:o.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:i._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:o.v.LIBRARY}),key:"library:".concat(e),success:r,error:t,always:n}},exchange:function(e){return{url:i._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"categorytree"}),key:"exchange"}},librarySubscribers:function(e,r){var t={};return r&&(t.cursor=r),{url:i._.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 a.m.first(e.data)}}},updateSubscriberPermissions:function(e,r,t,i,a){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},invalidationKeys:["library:owner:".concat(e),"library:subscribers:".concat(e)],success:i,error:a}},removeSubscriber:function(e,r,t,i){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:i}},folder:function(e,r,t,n){return{url:"{gateway}/v1/objects/".concat(e,"?query=banner,libraries"),key:"library:folder:".concat(e),success:r,error:t,always:n}},folderParentTree:function(e,r,t,n){return{url:"/api/domain/v2/categories/".concat(e,"/parent-tree?includeAll=false"),key:"folder:parent:tree".concat(e),success:r,error:t,always:n}},childFolders:function(e,r,t,n,i){var a="{gateway}/v1/objects/".concat(e,"/categories?query={limit:100}thumbnail"),o="child:folders:".concat(e);return r&&(a+="&cursor=".concat(r),o+=":".concat(r)),{url:a,key:o,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:n,always:i}},addToLibrary:function(e,r){var t=["folder","videos",e.metadata.destinationCategoryId,r].filter((function(e){return!!e})).join(":");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,invalidationKeys:t}},libraries:function(){return{url:"{gateway}/v1/users/me/libraries",key:"objects:libraries"}}}},2491:function(e,r,t){t.d(r,{Z:function(){return o}});var n=t(92159),i=t(21186),a=t(54096);function o(){var e=(0,a.G)(n.P.ALERT);return{success:function(r){e.success(r)()},error:function(r){e.error(r)()},warning:function(r){e.createAlert({type:i.NK.Warning,heading:i.R6.Warning,message:r})}}}},82378:function(e,r,t){t.d(r,{i:function(){return a}});var n=t(1024),i=t(94223);function a(e,r){var t=e,a=r,o=(0,i.P)(e&&function(e){return t(e).key});return(0,n.useEffect)((function(){o&&o.shouldInitialFetch&&r&&a()}),[null==o?void 0:o.shouldInitialFetch,r]),(0,n.useEffect)((function(){o&&o.nextCursor&&!o.isFetching&&r&&a(o.nextCursor)}),[null==o?void 0:o.nextCursor,null==o?void 0:o.isFetching,r]),o}},94223:function(e,r,t){t.d(r,{P:function(){return u}});var n=t(1024),i=t(58566),a=t(35656),o=t(53808),c=t(86120);function s(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function u(e,r,t){function a(e){if(e)return o.q.isFunction(r)?r(e):e.data}function u(e){var r,n;if(e)return t?t(e):null===(n=null===(r=e.pagination)||void 0===r?void 0:r.cursors)||void 0===n?void 0:n.next}return(0,i.useSelector)((0,n.useMemo)((function(){return function(r){if(o.q.isFunction(e)){for(var t=e,n=o.q.isFunction(e)&&t(),i=n&&c.a.getResponse(r,n),l=i&&i.isFetching,d=i&&i.statusCode,b=i&&i.hasCompleted,m=i&&i.shouldFetch,f=a(i&&i.data),y=u(i&&i.data),v=function(e){if(e)return null==e?void 0:e.count}(i&&i.data);y&&(i=c.a.getResponse(r,t(y)),l=l||i.isFetching,d=i.statusCode,b=i.hasCompleted,!i.shouldFetch);){var p=a(i.data);p&&f.push.apply(f,function(e){if(Array.isArray(e))return s(e)}(g=p)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(g)||function(e,r){if(e){if("string"==typeof e)return s(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)?s(e,r):void 0}}(g)||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=u(i.data);y=h===y?null:h}var C={shouldInitialFetch:m,items:f,nextCursor:y,isFetching:l,statusCode:d,hasCompleted:b};return"number"==typeof v&&(C.totalItems=v),C}var g}}),[e]))}a.o.Ok},91021:function(e,r,t){t.r(r),t.d(r,{RemoveLibrarySubscriberView:function(){return p}});var n=t(1024),i=t.n(n),a=t(57857),o=t(86120),c=t(52076),s=t(70065),u=t(71575),l=t(85610),d=t(66703),b=t(34107),m=t(2491),f=t(82378);function y(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var v="libraryRequests.removeLibrarySubscriber";function p(e){var r,t,n,p=o.a.useGetFetch(),h=(t=i().useState(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,i,a,o,c=[],s=!0,u=!1;try{if(a=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}(t,n)||function(e,r){if(e){if("string"==typeof e)return y(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)?y(e,r):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),C=h[0],g=h[1],I=o.a.useBasicFetch(b.D.library(e.libraryId));function w(r){return b.D.librarySubscribers(e.libraryId,r)}var L=(0,f.i)(w,(function(e){p(w(e))})),O=(0,m.Z)(),A=null===(r=null==L?void 0:L.items)||void 0===r?void 0:r.find((function(r){return r.customerId===e.customerId})),S=I.hasCompleted&&!!A;return i().createElement(u.G,{title:a.T.getPhrase(v,"removeAccess"),closePopup:e.closePopup,showLoadingSpinner:!S},!!S&&i().createElement(i().Fragment,null,i().createElement("div",{className:"alert alert-info",role:"alert"},i().createElement(d.x,{namespace:v,phrase:"alert"})),i().createElement("p",null,i().createElement(d.x,{namespace:v,phrase:"removeSubscriberInfo",options:{school:A.customerName,library:I.data.name}})),i().createElement(l.u,null,i().createElement(l.u.Cancel,{onClick:e.closePopup}),i().createElement(l.u.Submit,{onClick:function(){g(!0),p(b.D.removeSubscriber(e.libraryId,e.customerId,(function(){O.success(a.T.getPhrase(v,"revokeSubscriptionSuccess",{school:A.customerName,library:I.data.name})),c.k.logUserAction({id:e.libraryId,customerId:e.customerId},{actionType:s.Vw.Dissociate,entity:s.py.Library,descriptor:s.iF.Customer,location:s.LZ.Popup,workflowPhase:s.eu.Complete}),e.closePopup()}),(function(){g(!1),O.error(a.T.getPhrase(v,"revokeSubscriptionError",{school:A.customerName,library:I.data.name}))})))},text:a.T.getPhrase(v,"removeAccess"),variant:"danger",showSpinner:C}))))}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[7471],{9934:function(e,t,n){"use strict";n.r(t),n.d(t,{InteractiveDetailsView:function(){return G}});var r=n(39479),i=n.n(r),o=n(99748),a=n(21679),c=n(31647),s=n(50997),l=n(57085),u=n(50002),f=n(30831),d=n(23130),p=n(4785),h=n.n(p);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 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,(void 0,i=function(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===v(i)?i:String(i)),r)}var i}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(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&&b(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(r);if(i){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(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)}(this,e)});function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e)}return t=a,(n=[{key:"name",get:function(){return"InteractiveBasicInfoComponent"}},{key:"className",get:function(){return"py-3"}},{key:"template",get:function(){return h()}},{key:"lang",get:function(){return"shared.interactiveBasicInfo"}},{key:"defaults",get:function(){return{truncateDescription:!0}}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},interactives:{el:".interactives-region",replaceElement:!0},mediaTypeBadge:{el:".media-type-badge-region",replaceElement:!0}}}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new d.Z({model:this.model,linkify:!0,size:d.t.Large,truncate:this.options.truncateDescription,allowExpand:!0});this.showChildView("description",e)}}},{key:"renderInteractives",value:function(){if(this.model._timepoints.length){var e=new u.F({model:this.model});this.showChildView("interactives",e)}}},{key:"renderMediaTypeBadge",value:function(){var e=new f.Z({model:this.model});this.showChildView("mediaTypeBadge",e)}},{key:"onRender",value:function(){this.renderDescription(),this.renderInteractives(),this.renderMediaTypeBadge()}}])&&y(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(c.Q.wA),w=n(93479),E=n(21251),k=n(33800),O=n(29457),C=n(48404),I=n(64649),S=n(19226),T=n(84294),_=(n(73176),n(79238),n(69051),n(17017),n(67743),n(67430),n(2496),n(60371),n(38890),n(42511),n(7427)),j=(n(91850),n(37570),n(37071),n(13809),n(39216)),P=n.n(j);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 R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==V(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==V(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===V(i)?i:String(i)),r)}var i}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}var B=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)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=D(r);if(i){var n=D(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(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)}(this,e)});function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e)}return t=a,(n=[{key:"name",get:function(){return"InteractiveSidebarInfoComponent"}},{key:"lang",get:function(){return"libraryEditor.interactiveSidebarInfo"}},{key:"className",get:function(){return"py-3 h-100"}},{key:"template",get:function(){return P()}},{key:"regions",value:function(){return{interactiveThumbnail:{el:".interactive-thumbnail-region",replaceElement:!0},folders:{el:".folders-region",replaceElement:!0}}}},{key:"renderInteractiveThumbnail",value:function(){this.showChildView("interactiveThumbnail",new T.b({model:this.model,config:this.options.config}))}},{key:"renderFolders",value:function(){this.model.get("categories")&&this.model.get("categories").length&&this.showChildView("folders",new _.V({model:this.model,libraries:this.options.libraries,showFolder:!0,hideLabel:!0}))}},{key:"viewOptions",value:function(){return{folders:this.model.categories&&this.model.categories.length,multipleFolders:this.model.categories.length>1}}},{key:"onRender",value:function(){this.renderInteractiveThumbnail(),this.renderFolders()}}])&&R(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(c.Q.wA),x=n(24397),A=n(56906),M=n(95061),F=n(34620),H=n.n(F);function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function U(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,(void 0,i=function(e,t){if("object"!==N(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===N(i)?i:String(i)),r)}var i}function Q(e,t){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Q(e,t)}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z(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&&Q(e,t)}(d,e);var t,n,r,u,f=(r=d,u=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=z(r);if(u){var n=z(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===N(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)}(this,e)});function d(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),f.call(this,e)}return t=d,(n=[{key:"initialize",value:function(){this.bindListeners(),this.videoDataService=a.u.getInstance(k.O.Video,this),this.localCacheDataService=a.u.getInstance(k.O.LocalCache,this)}},{key:"bindListeners",value:function(){this.listenTo(w.Vk.VIDEO,"".concat(E.M.INTERACTIVES,":").concat(this.options.interactiveId,":sync"),this.render),this.listenTo(w.Vk.VIDEO,"".concat(E.M.INTERACTIVES,":").concat(this.options.interactiveId,":error"),this.onError),this.listenTo(w.Vk.VIDEO,"".concat(E.M.RESTRICTED_OBJECTS,":").concat(this.options.interactiveId,":sync"),this.render),this.listenTo(w.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(w.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(w.Vk.RESTRICTED_VIDEO,"".concat(E.M.RESTRICTED_OBJECTS,":").concat(this.options.interactiveId,":sync"),this.render),this.listenTo(w.Vk.LOCAL_CACHE,"".concat(E.M.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(w.Vk.LOCAL_CACHE,"".concat(E.M.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"onError",value:function(e){switch(e.type){case o.h.NotFound:c.Q.Ry.throw(new A.l1);break;case o.h.Forbidden:c.Q.Ry.throw(new A.aV)}}},{key:"name",get:function(){return"InteractiveDetailsView"}},{key:"title",get:function(){return this.interactive&&this.interactive.get("name")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return H()}},{key:"className",get:function(){return"container-fluid h-100 bg-white rounded"}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1,partialLoading:O.LP.Breadcrumbs},header:{replaceElement:!0,el:".interactive-header-region",partialLoading:O.LP.VideoHeader},main:{replaceElement:!0,el:".main-interactive-information-region",partialLoading:O.LP.VideoSidebarInfo},basic:{replaceElement:!0,el:".basic-interactive-information-region",partialLoading:O.LP.VideoBasicInfo},interactives:{el:".interactives-region",replaceElement:!0}}}},{key:"getCustomLibraryFolders",value:function(){var e;if(!(null===(e=this.interactive)||void 0===e?void 0:e.categories)||!this.libraries)return[];var t=this.libraries.reduce((function(e,t){return e[t.id]=!0,e}),{});return this.interactive.categories.filter((function(e){var n=e.libraries.first().get("id");return t[n]}))}},{key:"renderBreadcrumbs",value:function(){this.folder&&this.interactive&&this.showChildView("breadcrumbs",new l.n({folder:this.folder,libraries:this.libraries,video:this.interactive,enableLastItemAppLink:!1}))}},{key:"renderVideoHeader",value:function(){this.showChildView("header",new x.U({model:this.interactive,customerHasLocalCache:s.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),collectionIdentifier:this.folder&&new s.F7(this.folder.id,s.x$.GetCurrentSortType()),config:this.config,products:this.products}))}},{key:"renderSidebarInfo",value:function(){this.showChildView("main",new B({model:this.interactive,libraries:this.libraries,config:this.config}))}},{key:"renderBasicInfo",value:function(){this.interactive&&this.showChildView("basic",new g({model:this.interactive}))}},{key:"requiredResources",get:function(){return{config:C.p.config,currentUser:S.K.currentUser,libraries:M.T.libraries,products:I.s.products}}},{key:"onBeforeRender",value:function(){return this.interactive=this.videoDataService.getInteractive(this.options.interactiveId),this.interactive&&(this.folder=i().first(this.getCustomLibraryFolders())),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),!!this.interactive}},{key:"viewOptions",value:function(){if(this.interactive)return{hasFolder:!!this.folder}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderVideoHeader(),this.renderSidebarInfo(),this.renderBasicInfo()}}])&&U(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(c.Q.G7)},13809:function(e,t,n){"use strict";n.d(t,{UC:function(){return r.U}});var r=n(58688);n(19969),n(14898)},39216:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,' <div class="mt-3">\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"folders",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.folders:o},data:i}))+'</h5>\n <div class="folders-region"></div>\n </div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,'<div class="h-100 ps-2 pe-2">\n <div class="interactive-thumbnail-region"></div>\n\n'+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.folders:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"</div>"},useData:!0})},34620:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="row border-bottom">\n <div class="interactive-header-region"></div>\n\n <div class="px-3 pb-3">\n <div class="breadcrumbs-region"></div>\n </div>\n</div>\n\n<div class="row">\n <div class="col-4">\n <div class="main-interactive-information-region"></div>\n </div>\n <div class="col-8">\n <div class="basic-interactive-information-region py-3 pe-2"></div>\n\n <div class="interactives-region"></div>\n </div>\n</div>'},useData:!0})},4785:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,s=e.escapeExpression;return' <div class="col-3 fw-semibold">'+s((n.lang||t&&t.lang||c).call(a,"title",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-9">'+s("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:c)?o.call(a,{name:"name",hash:{},data:i}):o)+"</p>\n"},3:function(e,t,n,r,i){return e.propertyIsEnumerable,' <div class="col-3 fw-semibold">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"description",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9">\n <div class="description-region"></div>\n </div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="position-relative">\n <h5 class="d-inline-block">'+s((n.lang||t&&t.lang||c).call(a,"heading",{name:"lang",hash:{},data:i}))+'</h5>\n</div>\n<div class="row mb-0">\n'+(null!=(o=n.if.call(a,null!=t?t.name:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=n.if.call(a,null!=t?t.description:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+'\n <div class="col-3 fw-semibold">'+s((n.lang||t&&t.lang||c).call(a,"type",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-9 mb-2">\n <div class="media-type-badge-region"></div>\n </div>\n\n <div class="interactives-region"></div>\n</div>'},useData:!0})}}]);