@clickview/library-editor 1.42.0 → 1.43.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{4293-library-editor-f09d854115.chunk.css → 3778-library-editor-30b6f4a9e6.chunk.css} +2 -1
  3. package/dist/css/{8039-library-editor-bd2eb65aa8.chunk.css → 435-library-editor-1bf620364f.chunk.css} +12 -15
  4. package/dist/css/{61-library-editor-99f1501ab2.chunk.css → 61-library-editor-af56e745db.chunk.css} +5 -5
  5. package/dist/css/{3522-library-editor-caf03857f1.chunk.css → 7265-library-editor-8cd863992c.chunk.css} +0 -1
  6. package/dist/css/library-editor-app-e458f6f722.css +62 -0
  7. package/dist/languages/en.json +1 -1
  8. package/dist/scripts/1010-15bfd0e2e2.chunk.js +1 -0
  9. package/dist/scripts/1086-18354eee73.chunk.js +1 -0
  10. package/dist/scripts/112-6a9fb5a3b4.chunk.js +1 -0
  11. package/dist/scripts/1216-3a338cf937.chunk.js +1 -0
  12. package/dist/scripts/1269-ebb70ecc87.chunk.js +1 -0
  13. package/dist/scripts/1409-3266733722.chunk.js +1 -0
  14. package/dist/scripts/1601-a7df278c88.chunk.js +2 -0
  15. package/dist/scripts/1703-9bf208d1af.chunk.js +1 -0
  16. package/dist/scripts/1832-819b1ccc4a.chunk.js +1 -0
  17. package/dist/scripts/1876-8a58bcc17f.chunk.js +1 -0
  18. package/dist/scripts/2417-38a64e3d12.chunk.js +1 -0
  19. package/dist/scripts/243-c7d2f16d38.chunk.js +1 -0
  20. package/dist/scripts/2482-2e771aa32e.chunk.js +1 -0
  21. package/dist/scripts/259-a9b4038b9f.chunk.js +1 -0
  22. package/dist/scripts/2601-19bbaf1796.chunk.js +1 -0
  23. package/dist/scripts/2644-e902b701ab.chunk.js +1 -0
  24. package/dist/scripts/2692-72f0ddadb4.chunk.js +1 -0
  25. package/dist/scripts/2803-d7f348b7f5.chunk.js +1 -0
  26. package/dist/scripts/2888-808acc2fef.chunk.js +1 -0
  27. package/dist/scripts/299-b7a814c887.chunk.js +1 -0
  28. package/dist/scripts/2998-a78cff549d.chunk.js +1 -0
  29. package/dist/scripts/{3087-bd524a57f9.chunk.js → 3087-5568b6f0d8.chunk.js} +1 -1
  30. package/dist/scripts/3400-2e845c4564.chunk.js +1 -0
  31. package/dist/scripts/343-a0c8fb4f28.chunk.js +1 -0
  32. package/dist/scripts/35-d8f006c39a.chunk.js +1 -0
  33. package/dist/scripts/3551-ccced9a938.chunk.js +1 -0
  34. package/dist/scripts/3639-bf6b264ec9.chunk.js +1 -0
  35. package/dist/scripts/376-843259f6ce.chunk.js +1 -0
  36. package/dist/scripts/3763-408ce1508a.chunk.js +1 -0
  37. package/dist/scripts/3778-95c9be3a02.chunk.js +1 -0
  38. package/dist/scripts/4201-30387c4a99.chunk.js +1 -0
  39. package/dist/scripts/4245-d60147b7d2.chunk.js +1 -0
  40. package/dist/scripts/435-72cf20b42f.chunk.js +2 -0
  41. package/dist/scripts/4591-e149bc74c4.chunk.js +1 -0
  42. package/dist/scripts/4860-0d9f4a4d0b.chunk.js +1 -0
  43. package/dist/scripts/5046-6c4ba66b08.chunk.js +1 -0
  44. package/dist/scripts/514-c6a928c7c4.chunk.js +1 -0
  45. package/dist/scripts/5286-6642fe4afa.chunk.js +1 -0
  46. package/dist/scripts/5412-c8877fa040.chunk.js +1 -0
  47. package/dist/scripts/5418-c3e6433e3e.chunk.js +1 -0
  48. package/dist/scripts/5424-66a285070b.chunk.js +1 -0
  49. package/dist/scripts/546-5322ba9438.chunk.js +1 -0
  50. package/dist/scripts/5524-e3ae3829ab.chunk.js +1 -0
  51. package/dist/scripts/5707-5afc9794d4.chunk.js +1 -0
  52. package/dist/scripts/5747-b29b11ef8c.chunk.js +1 -0
  53. package/dist/scripts/6093-defd3e7edf.chunk.js +1 -0
  54. package/dist/scripts/61-8f0fab0c34.chunk.js +2 -0
  55. package/dist/scripts/6352-b25f71e62c.chunk.js +1 -0
  56. package/dist/scripts/6427-9dd141a8c6.chunk.js +1 -0
  57. package/dist/scripts/6732-33c1578a4a.chunk.js +1 -0
  58. package/dist/scripts/6774-5ec2037d61.chunk.js +1 -0
  59. package/dist/scripts/6788-fabfcf71cf.chunk.js +1 -0
  60. package/dist/scripts/7002-5f00527776.chunk.js +1 -0
  61. package/dist/scripts/7053-811d21804f.chunk.js +1 -0
  62. package/dist/scripts/7071-c547b68bba.chunk.js +1 -0
  63. package/dist/scripts/708-b92e9adddd.chunk.js +1 -0
  64. package/dist/scripts/{7190-92d6511c8e.chunk.js → 7190-62556429f8.chunk.js} +1 -1
  65. package/dist/scripts/7265-471f7cafa6.chunk.js +1 -0
  66. package/dist/scripts/7295-bdea5df4cc.chunk.js +1 -0
  67. package/dist/scripts/7376-2a91178587.chunk.js +1 -0
  68. package/dist/scripts/7408-78e0102457.chunk.js +1 -0
  69. package/dist/scripts/8113-133ecdfe0c.chunk.js +1 -0
  70. package/dist/scripts/8213-400f1712b3.chunk.js +1 -0
  71. package/dist/scripts/8362-b11e7dbcbd.chunk.js +1 -0
  72. package/dist/scripts/8542-48fd3a46e3.chunk.js +1 -0
  73. package/dist/scripts/8726-8f24d59af7.chunk.js +1 -0
  74. package/dist/scripts/8727-7cfc7188db.chunk.js +1 -0
  75. package/dist/scripts/8762-ded7396830.chunk.js +1 -0
  76. package/dist/scripts/8906-327640bf39.chunk.js +1 -0
  77. package/dist/scripts/9357-35c3761c84.chunk.js +1 -0
  78. package/dist/scripts/9383-c630c62e24.chunk.js +1 -0
  79. package/dist/scripts/9695-0cf4f10b51.chunk.js +1 -0
  80. package/dist/scripts/9927-8e56991c93.chunk.js +1 -0
  81. package/dist/scripts/bundle-8ea8b45730.min.js +2 -0
  82. package/package.json +1 -1
  83. package/dist/css/library-editor-app-bca55a2b94.css +0 -66
  84. package/dist/scripts/1010-ccfc933e4a.chunk.js +0 -1
  85. package/dist/scripts/1086-d0524e6814.chunk.js +0 -1
  86. package/dist/scripts/112-f7a1dd87cf.chunk.js +0 -1
  87. package/dist/scripts/1216-ae44942ec0.chunk.js +0 -1
  88. package/dist/scripts/1269-65eb334e36.chunk.js +0 -1
  89. package/dist/scripts/1409-24f32108a3.chunk.js +0 -1
  90. package/dist/scripts/1492-e47c20e1e2.chunk.js +0 -1
  91. package/dist/scripts/1601-92aebf3641.chunk.js +0 -2
  92. package/dist/scripts/1703-9b90fdd089.chunk.js +0 -1
  93. package/dist/scripts/1832-11d2e90817.chunk.js +0 -1
  94. package/dist/scripts/1876-ee2e5930fe.chunk.js +0 -1
  95. package/dist/scripts/2417-dd7416caad.chunk.js +0 -1
  96. package/dist/scripts/243-90478a752f.chunk.js +0 -1
  97. package/dist/scripts/2482-a2940d20c1.chunk.js +0 -1
  98. package/dist/scripts/259-1ccff765e8.chunk.js +0 -1
  99. package/dist/scripts/2601-09e770d106.chunk.js +0 -1
  100. package/dist/scripts/2644-3b5cc8face.chunk.js +0 -1
  101. package/dist/scripts/2692-78248cc3cf.chunk.js +0 -1
  102. package/dist/scripts/2803-afaa9720a7.chunk.js +0 -1
  103. package/dist/scripts/2888-56333db4d4.chunk.js +0 -1
  104. package/dist/scripts/299-952bef0d6e.chunk.js +0 -1
  105. package/dist/scripts/2998-89c62035d5.chunk.js +0 -1
  106. package/dist/scripts/3400-04972a9c4f.chunk.js +0 -1
  107. package/dist/scripts/343-499357ee34.chunk.js +0 -1
  108. package/dist/scripts/35-8bd662588e.chunk.js +0 -1
  109. package/dist/scripts/3522-9cb18ea94f.chunk.js +0 -1
  110. package/dist/scripts/3551-c8c601ef86.chunk.js +0 -1
  111. package/dist/scripts/3639-72a0aedfdb.chunk.js +0 -1
  112. package/dist/scripts/376-1c990f4466.chunk.js +0 -1
  113. package/dist/scripts/3763-0d33be2a48.chunk.js +0 -1
  114. package/dist/scripts/4201-b83136ee20.chunk.js +0 -1
  115. package/dist/scripts/4245-16fa79a2c7.chunk.js +0 -1
  116. package/dist/scripts/4293-e13603d9b4.chunk.js +0 -1
  117. package/dist/scripts/4591-3e56779cc0.chunk.js +0 -1
  118. package/dist/scripts/4860-ecd0f16f32.chunk.js +0 -1
  119. package/dist/scripts/5046-8994ca4e32.chunk.js +0 -1
  120. package/dist/scripts/514-b2ab55e242.chunk.js +0 -1
  121. package/dist/scripts/5286-07efed4490.chunk.js +0 -1
  122. package/dist/scripts/5412-890acc67f9.chunk.js +0 -1
  123. package/dist/scripts/5418-5bacba1f08.chunk.js +0 -1
  124. package/dist/scripts/5424-f73cc69163.chunk.js +0 -1
  125. package/dist/scripts/546-c73c102502.chunk.js +0 -1
  126. package/dist/scripts/5524-9c37501175.chunk.js +0 -1
  127. package/dist/scripts/5707-dfab80e46e.chunk.js +0 -1
  128. package/dist/scripts/5747-c929092195.chunk.js +0 -1
  129. package/dist/scripts/6093-fb397173d3.chunk.js +0 -1
  130. package/dist/scripts/61-feb49f1354.chunk.js +0 -2
  131. package/dist/scripts/6352-5b8474151f.chunk.js +0 -1
  132. package/dist/scripts/6732-f57737a0b7.chunk.js +0 -1
  133. package/dist/scripts/6774-1459396196.chunk.js +0 -1
  134. package/dist/scripts/6788-18b20f336f.chunk.js +0 -1
  135. package/dist/scripts/7002-07547e2a6a.chunk.js +0 -1
  136. package/dist/scripts/7053-b4a29a5e49.chunk.js +0 -1
  137. package/dist/scripts/7071-d64fe020b9.chunk.js +0 -1
  138. package/dist/scripts/708-057b85292d.chunk.js +0 -1
  139. package/dist/scripts/7376-c7d547d8ad.chunk.js +0 -1
  140. package/dist/scripts/7408-7a37d26507.chunk.js +0 -1
  141. package/dist/scripts/8039-0ff5939ce0.chunk.js +0 -2
  142. package/dist/scripts/8113-af6da90997.chunk.js +0 -1
  143. package/dist/scripts/8213-298d64a86f.chunk.js +0 -1
  144. package/dist/scripts/8316-57718b3e30.chunk.js +0 -1
  145. package/dist/scripts/8362-dd89d446bd.chunk.js +0 -1
  146. package/dist/scripts/8542-35d1c3890f.chunk.js +0 -1
  147. package/dist/scripts/8726-3072ba6953.chunk.js +0 -1
  148. package/dist/scripts/8727-9a9ffc31ba.chunk.js +0 -1
  149. package/dist/scripts/8762-7f056bd5d9.chunk.js +0 -1
  150. package/dist/scripts/8906-2bc258c89c.chunk.js +0 -1
  151. package/dist/scripts/9357-3c5497422c.chunk.js +0 -1
  152. package/dist/scripts/9383-53ec8e93e0.chunk.js +0 -1
  153. package/dist/scripts/9695-6f0d09d3b3.chunk.js +0 -1
  154. package/dist/scripts/9927-c23126c5dd.chunk.js +0 -1
  155. package/dist/scripts/bundle-8e5edc2a41.min.js +0 -2
  156. /package/dist/css/{1492-library-editor-a539c72655.chunk.css → 7295-library-editor-a539c72655.chunk.css} +0 -0
  157. /package/dist/scripts/{1601-92aebf3641.chunk.js.LICENSE.txt → 1601-a7df278c88.chunk.js.LICENSE.txt} +0 -0
  158. /package/dist/scripts/{61-feb49f1354.chunk.js.LICENSE.txt → 435-72cf20b42f.chunk.js.LICENSE.txt} +0 -0
  159. /package/dist/scripts/{8039-0ff5939ce0.chunk.js.LICENSE.txt → 61-8f0fab0c34.chunk.js.LICENSE.txt} +0 -0
  160. /package/dist/scripts/{bundle-8e5edc2a41.min.js.LICENSE.txt → bundle-8ea8b45730.min.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6352],{26328:function(e,t,i){"use strict";i.r(t),i.d(t,{AwaitingReviewView:function(){return I}});var n=i(39479),o=i(21679),r=i(57857),s=i(31647),a=i(70763),c=i(13809),l=i(57098),u=i(29457),p=i(64404),d=i(48404),h=i(19226),f=i(14129),v=i(7572),y=i(95920),g=i(82405),m=i(39090),b=i(29565),w=i(95061),C=i(71010),S=i.n(C);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function V(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function k(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!=O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(t)?t:t+""}function T(e,t,i){return t=_(t),function(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,E()?Reflect.construct(t,i||[],_(e).constructor):t.apply(e,i))}function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(E=function(){return!!e})()}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}var I=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),T(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(t,e),i=t,(C=[{key:"initialize",value:function(){this.bindListeners(),this.contentUpdatesDataService=o.u.getInstance(l.Or.ContentUpdates,this),this.videoDataService=o.u.getInstance(l.Or.Video,this)}},{key:"name",get:function(){return"AwaitingReviewView"}},{key:"title",get:function(){return r.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.awaitingReview"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white rounded"}},{key:"template",get:function(){return S()}},{key:"regions",value:function(){return{header:{el:".header-region",replaceElement:!0},leftNav:{el:".left-nav-region",replaceElement:!0},listHeader:{el:".list-header-region",replaceElement:!0,partialLoading:u.LP.AwaitingReviewHeader},videos:{el:".video-list-region",replaceElement:!0,partialLoading:u.LP.VideoGroupList}}}},{key:"bindListeners",value:function(){this.listenTo(l.Vk.CONTENT_UPDATES,"".concat(l.M_.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(l.Vk.CONTENT_UPDATES,"".concat(l.M_.LIBRARY_REVIEW_SETTINGS,":sync"),this.render),this.listenTo(l.Vk.CONTENT_UPDATES,"".concat(l.M_.LIBRARY_REVIEW_SETTINGS,":error"),this.render),this.listenTo(l.Vk.RESTRICTED_VIDEO,"".concat(l.M_.VIDEOS_TO_REVIEW,":invalidate"),this.fetchVideos),this.listenTo(this.channelName,"approve:all",this.approveAllVideos),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"approveAllVideos",value:function(){this.contentUpdatesDataService.approveAllVideos(n.bind(this.fetchVideos,this))}},{key:"redirectToPastReleases",value:function(){s.Q.C$.trigger({application:l.OV.CONTENT_UPDATES,action:l.eX.ContentUpdates.PAST_RELEASES},{replace:!0})}},{key:"getContentClassName",value:function(){var e="".concat(b.Z.content," border-start ").concat(b.Z.contentWithLeftNav);return this.videoCollection&&!this.videoCollection.length?e+=" d-inline-flex justify-content-center align-items-center":e+=" d-inline-block",e}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new a.t(this.videoCollection.map((function(e){return new p.n({id:e.get("id")})}))))}},{key:"renderHeader",value:function(){this.reviewSetting?this.showChildView("header",new v.u({activeTab:m.JI.AwaitingReview,reviewEnabled:this.reviewSetting.get("reviewPeriod")})):this.renderPartialLoading("header")}},{key:"renderLeftNav",value:function(){this.reviewSetting&&this.showChildView("leftNav",new y.m({supportSiteUrl:this.config.get("supportSiteUrl"),currentUser:this.currentUser}))}},{key:"renderListHeader",value:function(){this.videoCollection?this.videoCollection.length&&this.showChildView("listHeader",new f.U({collection:this.videoCollection,channelName:this.channelName})):this.renderPartialLoading("listHeader")}},{key:"renderVideos",value:function(){this.groupedVideoCollection?this.showChildView("videos",new g.D({collection:this.groupedVideoCollection,childOptions:{videoItemComponentType:c.UC.AwaitingReview,videosWithMetadata:this.videosWithMetadata,config:this.config,collectionViewChannel:this.channelName,currentUser:this.currentUser,libraries:this.libraries},emptyStateType:u.ub.AwaitingReview,emptyStateOptions:{heading:r.T.getPhrase(this.lang,"emptyStateHeading"),description:r.T.getPhrase(this.lang,"emptyStateDescription",{classNames:"disable-review info-link"})}})):this.renderPartialLoading("videos")}},{key:"fetchVideos",value:function(){this.videoCollection=this.contentUpdatesDataService.getVideosToReview(),this.videoCollection&&(this.setVideosWithMetadata(),this.groupedVideoCollection=m.hp.groupVideosByHostedLibrary(this.videoCollection))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(i){var n=t.videosWithMetadata.get(e);n&&(n.set(i.toJSON()),n.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:d.p.config,currentUser:h.K.currentUser,libraries:w.T.libraries}}},{key:"onBeforeRender",value:function(){this.reviewSetting=this.contentUpdatesDataService.getLibraryReviewSettings(),this.fetchVideos(),this.reviewSetting&&!this.reviewSetting.get("reviewPeriod")&&this.redirectToPastReleases()}},{key:"viewOptions",value:function(){return{contentClass:this.getContentClassName()}}},{key:"onRender",value:function(){this.renderHeader(),this.renderLeftNav(),this.renderListHeader(),this.renderVideos()}}])&&V(i.prototype,C),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,C}(s.Q.G7)},13809:function(e,t,i){"use strict";i.d(t,{UC:function(){return n.U}});var n=i(58688);i(19969),i(14898)},80867:function(e,t,i){"use strict";i.d(t,{Y:function(){return E}});var n=i(31647),o=i(52076),r=i(70065),s=i(50028),a=i(80758),c=i(10101),l=i(58688),u=i(37071),p=i(57098),d=i(29457),h=i(26457),f=i(30606),v=i.n(f);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}function b(e,t,i){return t&&m(e.prototype,t),i&&m(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function w(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}function C(e,t,i){return t=O(t),function(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,S()?Reflect.construct(t,i||[],O(e).constructor):t.apply(e,i))}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function V(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}var T=function(e){function t(e){return g(this,t),C(this,t,[e])}return V(t,e),b(t,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return u.j}},{key:"childViewOptions",get:function(){var e=this;return function(t,i){return{componentType:t.get("status")===s.X.Processing?l.U.ProcessingVideo:e.options.videoItemComponentType,videoWithMetadata:e.options.videosWithMetadata&&e.options.videosWithMetadata.get(t.get("id")),allowBulk:e.options.allowBulk,collectionIdentifier:e.options.collectionIdentifier,application:e.options.application,pendingItems:e.options.pendingItems,config:e.options.config,sourceMetadataOptions:e.options.sourceMetadataOptions,collectionViewChannel:e.options.collectionViewChannel,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,videoCollectionSource:e.options.videoCollectionSource,currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey,isLastItem:!e.options.hasCursors&&i===e.collection.length-1,libraries:e.options.libraries,products:e.options.products}}}}])}(n.Q.$W),E=function(e){function t(e){return g(this,t),C(this,t,[e])}return V(t,e),b(t,[{key:"name",get:function(){return"VideoListView"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return v()}},{key:"defaults",get:function(){return{videoItemComponentType:l.U.Base,allowBulk:!1,emptyState:d.ub.Default,videoCollectionSource:h.x_.Folder}}},{key:"behaviors",get:function(){var e=[{behaviorClass:c.Im,selector:".lazy-img",minBrowserSupportVersion:p.v9}];return this.options.showEmptyState&&e.push({behaviorClass:a.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:p.aW}),e}},{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var e=new T({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:o.k.mergeOptions(this.options.analyticsOptions,{location:r.LZ.VideoListItem,entity:r.py.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser,playerApiUrl:this.options.playerApiUrl,createViewKey:this.options.createViewKey,hasCursors:this.options.hasCursors,libraries:this.options.libraries,products:this.options.products});this.showChildView("videos",e)}}])}(n.Q.wA)},71010:function(e,t,i){var n=i(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,o){var r;return e.propertyIsEnumerable,'<div class="header-region"></div>\n<div class="left-nav-region"></div><div class="'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.contentClass:r,t))+'">\n<div class="list-header-region"></div>\n<div class="video-list-region"></div>\n</div>'},useData:!0})},30606:function(e,t,i){var n=i(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,o){return'<div class="videos-region"></div>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6427],{54096:function(e,t,i){i.d(t,{G:function(){return a}});var n=i(1024),r=i(21679);function a(e){var t,i;return t=e,i=r.u.getInstance(t),n.useEffect((function(){return function(){r.u.releaseInstance(t)}})),i}},38182:function(e,t,i){i.d(t,{q:function(){return s}});var n=i(1024),r=i.n(n),a=i(68003),o=i(88483),c=i(87013),u={avatar:"Gvwzj",dot:"JJHBJ"};function s(e){var t,i,n=e.imageUrl||(t=e.imageCdnUrl,(i=e.initials)?c.j.createUrl(a._.safeUrlConcat(t,"/v1/profile-images?initials=".concat(i)),{size:o.h2.Small}):"");return r().createElement("div",{className:"position-relative h-100 w-100"},r().createElement("div",{className:"".concat(u.avatar," ").concat((null==e?void 0:e.extraClasses)||""),style:{backgroundImage:"url('".concat(n,"')")}}," "),e.showDot&&r().createElement("div",{className:"".concat(u.dot," rounded-circle bg-danger")}))}},90547:function(e,t,i){var n;i.d(t,{r:function(){return n}}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(n||(n={}))},34254:function(e,t,i){var n;i.d(t,{r:function(){return n}}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(n||(n={}))},87648:function(e,t,i){var n;i.d(t,{c:function(){return n}}),function(e){e.Custom="custom",e.User="year_group"}(n||(n={}))},90335:function(e,t,i){var n;i.d(t,{D:function(){return n}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(n||(n={}))},332:function(e,t,i){i.d(t,{e:function(){return c}});var n=i(2248),r=i(68003),a=i(84657),o=i(34254),c={clip:function(e,t){return{key:"clip:".concat(e,":").concat(t),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.CLIP,permissionFilterOption:t})}},clipWithAllInteractives:function(e,t){return{key:"clip:".concat(e,":").concat(t,":interactives"),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"".concat(a.v.CLIP,",interactives{status:[0,1]}"),permissionFilterOption:t}),normalize:!1}},publicClip:function(e,t,i,n){return{key:"clip:".concat(e,":public:").concat(t),url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo,_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),bootstrapName:"shared:object:".concat(e),success:i,error:n}},sharedClip:function(e,t,i,n){return{key:"shared:clip:".concat(e),url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.CLIP}),success:i,error:n}},createClip:function(e,t,i,r,a){return{key:"create:clip",url:"{gateway}/v1/objects/".concat(e,"/clips"),data:t,type:n.k.POST,invalidationKeys:["videos:".concat(e),"my:videos"],success:i,error:r,always:a}},updateClip:function(e,t,i,r,a){return{key:"update:clip",url:"{gateway}/v1/objects/".concat(e),data:t,type:n.k.PUT,success:i,error:r,always:a}},deleteClip:function(e,t,i,r,a){return{key:"delete:clip",url:"{gateway}/v1/objects/".concat(e),type:n.k.DELETE,invalidationKeys:["videos:".concat(t),"my:videos","videos"],success:i,error:r,always:a}}}},91432:function(e,t,i){i.d(t,{b:function(){return c}});var n=i(2248),r=i(68003),a=i(84657),o=i(34254),c={interactiveMetadata:function(e,t){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.INTERACTIVE,permissionFilterOption:t}),key:"interactive:metadata:".concat(e,":").concat(t)}},sharedInteractiveMetadata:function(e,t,i,n){return{url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.INTERACTIVE}),key:"shared:interactive:metadata:".concat(e),success:i,error:n}},publicInteractiveMetadata:function(e,t,i,n){return{url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo[rating],_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),key:"interactive:metadata:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:i,error:n}},interactive:function(e){return{url:"/api/domain/v1/interactives/".concat(e),key:"interactive:".concat(e)}},createInteractive:function(e,t,i){return{url:"/api/domain/v1/interactives",key:"create:interactive",type:n.k.POST,invalidationKeys:["my:videos"],data:e,success:t,error:i}},createInteractiveMetadata:function(e,t,i,r){return{url:"{gateway}/v1/objects/".concat(e,"/interactives"),key:"create:interactive:metadata",type:n.k.POST,data:t,success:i,error:r}},updateInteractive:function(e,t,i,r){return{url:"/api/domain/v1/interactives/".concat(e),key:"update:interactive",type:n.k.PUT,data:t,success:i,error:r,formatData:function(){return t}}},updateInteractiveMetadata:function(e,t,i,r){return{url:"{gateway}/v1/objects/".concat(e),key:"update:interactive:metadata",type:n.k.PUT,data:t,success:i,error:r}},interactiveResultSet:function(e,t){return{url:"/api/domain/v1/analytics/interactives/".concat(e,"/metadata/").concat(t),key:"interactive:result:set:".concat(e,":").concat(t)}},copyInteractive:function(e,t,i){return{url:"/api/domain/v1/interactives/".concat(e,"/copy"),key:"copy:interactive",type:n.k.POST,invalidationKeys:["interactive:".concat(e),"my:videos"],success:t,error:i}},deleteInteractiveMetadata:function(e,t,i){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:interactive",type:n.k.DELETE,invalidationKeys:["interactive:".concat(e),"my:videos","videos"],success:t,error:i}},removeInteractiveMetadata:function(e){var t=e.libraryId,i=e.categoryId,a=e.interactiveMetadataId;return{url:r._.urlBuilder("/api/domain/v1/libraries/".concat(t,"/videos"),{categoryId:i,videoIds:a}),key:"remove:interactive:metadata:".concat(a),type:n.k.DELETE,invalidationKeys:["interactive:".concat(a),"my:videos","videos"]}},contributeToCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:n.k.POST}},revokefromCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:n.k.DELETE}},isContributed:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contributed"),key:"iscontributed:".concat(e),normalize:!1}}}},77131:function(e,t,i){i.d(t,{R:function(){return f}});var n,r=i(2248),a=i(68003),o=i(84657),c=i(50028),u=i(74421),s=i(34254);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget"}(n||(n={}));var d=i(15970),l=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:o.v.VIDEO})},v=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating,libraries{typeId:[17]}",permissionFilterOption:s.r.StripMetadata,shareId:t})},p=function(e){return a._.urlBuilder("{gateway}/v1/objects",{"query.video":o.v.VIDEO_COLLECTION,"query.clip":o.v.CLIP_COLLECTION,"query.interactive":o.v.INTERACTIVE_COLLECTION,id:e})},y=function(e){var t=e.videoId,i=e.context,r=e.collectionId,c=e.moviesAndTv,u={videoId:t,limit:e.limit,query:o.v.VIDEO_COLLECTION};return i&&(i===n.Widget?u["context.widgetId"]=r:(u["context.collectionType"]=i,u["context.collectionId"]=r)),c&&(u["context.moviesAndTv"]=!0),a._.urlBuilder("{gateway}/v1/suggestions/related-videos",u)},f={video:function(e,t){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:o.v.VIDEO,permissionFilterOption:t}),publicUrl:a._.urlBuilder("/api/objects/".concat(e),{query:o.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t),formatData:function(e){var t,i;return(null===(t=e.interactives)||void 0===t?void 0:t.data)&&(e.interactives.data=e.interactives.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),(null===(i=e.clips)||void 0===i?void 0:i.data)&&(e.clips.data=e.clips.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),e}}},publicVideo:function(e,t,i,n){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:i,error:n}},sharedVideo:function(e,t,i,n){return{url:l(e,t),key:"shared:video:".concat(e),formatData:function(e){var t,i;return(null===(t=e.interactives)||void 0===t?void 0:t.data)&&(e.interactives.data=e.interactives.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),(null===(i=e.clips)||void 0===i?void 0:i.data)&&(e.clips.data=e.clips.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),e},success:i,error:n}},myVideos:function(e,t){var i=o.v.VIDEO_COLLECTION,n=o.v.CLIP_COLLECTION,r=o.v.INTERACTIVE,d="videos[".concat(i,"]{libraries.typeid:").concat(u.E.WorkspaceCollection,"}"),l="clips[".concat(n,"]"),v="interactives[".concat(r,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),p={query:"(".concat(d,"|").concat(l,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:s.r.StripMetadata};return t&&(p.cursor=t),{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),p),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:p(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:p(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,i,n,a){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:r.k.PUT,data:t,success:i,error:n,always:a}},videoRatings:function(e,t){var i=e.map((function(e){return"id=".concat(e)}));if(i.length)return{url:"/api/domain/v2/objects?query=rating&".concat(i.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},videoMixinAssocs:function(e,t){if(e.map((function(e){return"id=".concat(e)})).length)return{url:a._.urlBuilder("{gateway}/v1/objects",{query:"interactives{limit:100},resources{limit:100}",id:e}),key:"video:mixin:assocs:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(u.E.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,i){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video:".concat(e),type:r.k.DELETE,success:t,error:i,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,i,n,a){var o=e.map((function(e){return"videoIds=".concat(e)})).join("&"),c=["categoryId=".concat(i),"".concat(o)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(c),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(i),type:r.k.DELETE,success:n,error:a,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,i=e.context,n=e.collectionId,r=e.moviesAndTv;return{url:y(e),key:"related:videos:".concat(t,":").concat(i,":").concat(n,":").concat(r)}},collectionVideos:function(e,t,i,n,r,u){var l=d.d.getVideoSortParam(t),v=o.v.VIDEO_COLLECTION,p=o.v.CLIP_COLLECTION,y=o.v.INTERACTIVE,f="videos[".concat(v,"]"),m="clips[".concat(p,"]"),g="interactives[".concat(y,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),b=Object.assign({query:"(".concat(f,"|").concat(m,"|").concat(g,")").concat(l?"{".concat(l,"}"):""),permissionFilterOption:s.r.FilterOut},i?{cursor:i}:{}),h=["folder","videos",e,i,t].filter((function(e){return!!e})).join(":");return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),b),key:h,success:n,error:r,always:u}},pointsOfInterest:function(e,t,i,n,r){var o={query:"{limit:100}",cursor:t};return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),o),publicUrl:a._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),o),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:i,error:n,always:r}},regionAlternatives:function(e,t,i,n){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:i,always:n}}}},2491:function(e,t,i){i.d(t,{Z:function(){return o}});var n=i(92159),r=i(21186),a=i(54096);function o(){var e=(0,a.G)(n.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:r.NK.Warning,heading:r.R6.Warning,message:t})}}}},38e3:function(e,t,i){i.d(t,{G:function(){return r}});var n=i(74421),r={isType:function(e,t){return(null==e?void 0:e.typeId)===t},isResource:function(e){return r.isType(e,n.E.Resource)}}},45428:function(e,t,i){i.d(t,{l:function(){return f}});var n=i(57857),r=i(56285),a=i(7121),o=i(87648),c=i(63791);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t,i){var n;return n=function(e,t){if("object"!=u(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==u(n)?n:n+"")in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var d=n.T.encloseNamespace("shared.shared-utils"),l=s(s({},o.c.Custom,a.Z.restrictionBadgeCustom),o.c.User,a.Z.restrictionBadgeUser),v=s(s({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),p=s(s({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),y=s(s({},o.c.Custom,200),o.c.User,100),f={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var i=f.getWeightedRestriction(e.value);return l[i.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var i=f.getWeightedRestriction(e.value);return v[i.type]},mapRestrictionToText:function(e,t){var i;if(!(null===(i=null==e?void 0:e.value)||void 0===i?void 0:i.length)||!(null==t?void 0:t.length))return"";var n=f.getWeightedRestriction(e.value),r=t.find((function(e){return e.value===n.yearGroup})),a=p[n.type];if(n.type===o.c.User)return null===n.yearGroup?d("restrictionStaff"):r?d(a,{yearGroup:r.name}):"";if(n.type===o.c.Custom){var c=f.getRestrictionDuration(n);return c?d(a,{duration:c,smartCount:c}):d("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(null==e?void 0:e.length)return 1===e.length?e[0]:e.reduce((function(e,i){var n=y[e.type],r=y[i.type];return"highest"===t&&n>r||"lowest"===t&&n<r?e:i}))},getRestrictionByType:function(e,t){if(!f.hasRestrictions(e))return null;var i=Array.isArray(t)?t:[t],n=e._restrictions.value.filter((function(e){return i.includes(e.type)}));return f.getWeightedRestriction(n)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=r.O.convertUTCToLocal(e.expiresOn);if(t)return r.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!f.getRestrictionByType(e,[o.c.Custom])},hasRestrictions:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===i?void 0:i.length)}}},12927:function(e,t,i){i.d(t,{M:function(){return b}});var n,r=i(11306),a=i(57857),o=i(31647),c=i(56285),u=i(70065);!function(e){e.Screenrights="screenrights",e.Era="era",e.ClickView="clickview"}(n||(n={}));var s=i(50028),d=i(74421),l=i(87648),v=i(332),p=i(91432),y=i(77131),f=i(45428),m=i(13034),g=a.T.encloseNamespace("shared.shared-utils"),b={isVideo:function(e){return(null==e?void 0:e.typeId)===d.E.Video},isClip:function(e){return(null==e?void 0:e.typeId)===d.E.Clip},isInteractive:function(e){return(null==e?void 0:e.typeId)===d.E.Interactive},isVideoTypeArchived:function(e){return(null==e?void 0:e.status)===s.X.Archived},isVideoType:function(e){return b.isVideo(e)||b.isInteractive(e)||b.isClip(e)},hasSeries:function(e){var t;return!!(null===(t=null==e?void 0:e.series)||void 0===t?void 0:t.id)},showVideoGuidance:function(e){return!e(m.C.StudentExperience)},getVideoProgress:function(e){var t,i;return(null==e?void 0:e.lastProgressPoint)?null==e?void 0:e.lastProgressPoint:(null===(t=null==e?void 0:e._videoProgress)||void 0===t?void 0:t.progress)?null===(i=null==e?void 0:e._videoProgress)||void 0===i?void 0:i.progress:0},getThumbnail:function(e){var t,i;return e?b.isVideo(e)?e.thumbnail:(null==e?void 0:e._thumbnail)?e._thumbnail:b.isClip(e)?e.thumbnail||(null===(t=e._parentVideo)||void 0===t?void 0:t.thumbnail):b.isInteractive(e)?null===(i=e._parentVideo)||void 0===i?void 0:i.thumbnail:void 0:null},getDuration:function(e){var t,i;if(e){if(b.isVideo(e))return e.duration;if(b.isInteractive(e)){if(null===(t=e._parentClip)||void 0===t?void 0:t.id)return 1e3*(e._parentClip.endTime-e._parentClip.startTime);if(null===(i=e._parentVideo)||void 0===i?void 0:i.duration)return e._parentVideo.duration}return b.isClip(e)?1e3*(e.endTime-e.startTime):void 0}},getAnalyticsEntity:function(e){return b.isVideo(e)?u.py.Video:b.isInteractive(e)?u.py.Interactive:b.isClip(e)?u.py.Clip:void 0},getAnalyticsData:function(e){var t,i,n,r,a,o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(b.isVideo(e))return Object.assign(Object.assign({},c||{}),{id:e.id});if(b.isClip(e)){var u=Object.assign(Object.assign({},c||{}),{id:e.id});return(null===(t=e._parentVideo)||void 0===t?void 0:t.id)&&(u.video={id:null===(i=e._parentVideo)||void 0===i?void 0:i.id}),u}var s=Object.assign(Object.assign({},c),{id:e.id,interactiveId:e.interactiveId,name:e.name,status:e.status,originType:e.originType});return(null===(n=null==e?void 0:e._parentClip)||void 0===n?void 0:n.id)&&(s.clip={id:null===(r=null==e?void 0:e._parentClip)||void 0===r?void 0:r.id}),(null===(a=null==e?void 0:e._parentVideo)||void 0===a?void 0:a.id)&&(s.video={id:null===(o=null==e?void 0:e._parentVideo)||void 0===o?void 0:o.id}),s},getCanBeConsumed:function(e){var t,i;return e&&b.isVideoType(e)?e._canBeConsumed?{canNavigate:"login-required"===(null===(t=e._canBeConsumed)||void 0===t?void 0:t.reason)&&b.isVideo(e)||!0===e._canBeConsumed.value,canConsume:e._canBeConsumed.value,reason:null===(i=e._canBeConsumed)||void 0===i?void 0:i.reason}:{canNavigate:!0,canConsume:!0}:{canNavigate:!1,canConsume:!1}},getPrivacyReasoning:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=b.getCanBeConsumed(e),r=n.canConsume,a=n.canNavigate,o=n.reason,c=function(){return b.isClip(e)?g("clipLoginRequired"):b.isInteractive(e)?g("interactiveLoginRequired"):g("videoLoginRequired")};if(!r&&!a){if(i)return c();switch(o){case"rating-not-allowed":return g("ratingNotAllowed");case"video-deleted":return b.isClip(e)?g("clipParentDeleted"):b.isInteractive(e)?g("interactiveParentDeleted"):g("videoDeleted");case"clickview-private":return g("clickViewPrivate");case"private":default:return g("genericCannotAccess");case"login-required":return c();case"restricted-access":var u=f.l.getWeightedRestriction(null===(t=e._restrictions)||void 0===t?void 0:t.value);return(null==u?void 0:u.type)===l.c.Custom?g("awaitingApproval"):g("restrictedAccess")}}return b.isInteractive(e)&&e.status===s.X.Draft?g("draftInteractive"):""},getTitle:function(e){if(e.name)return b.isInteractive(e)&&e.status===s.X.Draft?g("draftInteractiveTitle",{name:e.name}):e.name;var t=b.getCanBeConsumed(e),i=t.canConsume,n=t.reason;return g(i||"private"!==n?i||"video-deleted"!==n?"privateVideo":"videoUnavailable":"privateVideo")},getParentVideo:function(e){return b.isVideo(e)?e:b.isClip(e)||b.isInteractive(e)?e._parentVideo:void 0},getRating:function(e){var t;return b.isVideo(e)?e.rating:null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t.rating},getVideoRequest:function(e,t,i){if(i){switch(t){case d.E.Video:return y.R.sharedVideo(e,i);case d.E.Clip:return v.e.sharedClip(e,i);case d.E.Interactive:return p.b.sharedInteractiveMetadata(e,i)}o.Q.Ry.throw(new r.H("Unsupported master type"))}switch(t){case d.E.Video:return y.R.video(e);case d.E.Clip:return v.e.clip(e);case d.E.Interactive:return p.b.interactiveMetadata(e)}o.Q.Ry.throw(new r.H("Unsupported master type"))},isBroadcast:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e.contentLicences)||void 0===t?void 0:t.data)||void 0===i?void 0:i.some((function(e){return e.systemName===n.Era||e.systemName===n.Screenrights})))},getReleaseDate:function(e){return e&&e.dateReleased&&b.isBroadcast(e)?c.O.format(e.dateReleased,"DD/MM/YYYY"):""},canViewOriginalVideo:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t._canBeConsumed)||void 0===i?void 0:i.value)},getTrackingCode:function(e){return b.isVideo(e)?e.trackingCode:b.isClip(e)||b.isInteractive(e)?e._parentVideo.trackingCode:void 0},isInExchange:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e.libraries)||void 0===t?void 0:t.data)||void 0===i?void 0:i.some((function(e){return e.typeId===d.E.ExchangeCollection})))}}},15970:function(e,t,i){i.d(t,{d:function(){return o}});var n=i(4705),r=i(90335),a=r.D.RecentlyAdded,o={getValidSortTypeFromParam:function(e){return Object.values(r.D).includes(e)?e:r.D.Newest},getOrSetSortType:function(e,t,i){var r=function(e){return"video:sort:".concat(e)}(e);return!t&&n.SG.cacheExists(r)||n.SG.cacheSet(r,t||i||a),t||(t=n.SG.cacheGet(r)),t},getVideoSortParam:function(e){switch(e){case r.D.AtoZ:return"orderby:name";case r.D.ZtoA:return"orderbydesc:name";case r.D.Newest:return"orderbydesc:datecreated";case r.D.Oldest:return"orderby:datecreated";case r.D.RecentlyAdded:return"orderbydesc:timestamp";case r.D.Series:return"orderby:seriessort";default:return}}}},7121:function(e,t){t.Z={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6732],{57733:function(e,t,r){"use strict";r.r(t),r.d(t,{AddToLibraryView:function(){return E}});var n,i=r(39479),o=r(21679),a=r(57857),l=r(31647);!function(e){e[e.MasterVideo=1]="MasterVideo",e[e.MasterClip=2]="MasterClip",e[e.MasterInteractive=3]="MasterInteractive"}(n||(n={}));var s=r(75459),u=r(10101),c=r(88172),d=r(20072),h=r(57098),f=r(67670),p=r(93569),b=r(79665),y=r(95061),m=r(99765),g=r.n(m),v={header:"S7CRE"};function L(e){return L="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},L(e)}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}function w(e){var t=function(e,t){if("object"!=L(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==L(t)?t:t+""}function S(e,t,r){return t=C(t),function(e,t){if(t&&("object"===L(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,T()?Reflect.construct(t,r||[],C(e).constructor):t.apply(e,r))}function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T=function(){return!!e})()}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function I(e,t){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I(e,t)}var E=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),S(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)}(t,e),r=t,(l=[{key:"initialize",value:function(){this.videoDataService=o.u.getInstance(h.Or.Video,this),this.bindListeners()}},{key:"name",get:function(){return"AddToLibraryView"}},{key:"title",get:function(){return a.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.addToLibrary"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"appLinks",get:function(){return{".library-editor-applink":{application:h.OV.LIBRARY_EDITOR,action:h.eX.LibraryEditor.HOME}}}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"channelName",get:function(){return p.N0.generateUniqueChannelName(this)}},{key:"template",get:function(){return g()}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:u.Yw,title:a.T.getPhrase(this.lang,"title"),size:"modal-md",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new f.v,buttonText:a.T.getPhrase(this.lang,"addBtn"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(t){return e.onSubmit(t)}}}]}},{key:"regions",value:function(){return{libraryDropdown:".library-dropdown-region",folderSelector:".folder-selector-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"elements",get:function(){return{folderName:".folder-name"}}},{key:"bindListeners",value:function(){this.listenTo("".concat(this.channelName,":library"),"library:selected",this.onLibrarySelected),this.listenTo("".concat(this.channelName,":folder"),"folder:selected",this.onFolderSelected),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(h.Vk.VIDEO,"get:video:categories:libraries:".concat(this.options.videoId,":sync"),this.render)}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.spinnerModel.set(c.ZV.ShowSpinner,!0),this.addToLibrary()}},{key:"onLibrarySelected",value:function(e){this.spinnerModel.set(c.ZV.Disabled,!0),p.PU.setSelected(this.libraryTreeKey,e.get("id"),this.customLibraries),this.renderFolderSelector()}},{key:"onFolderSelected",value:function(e){this.spinnerModel.set(c.ZV.Disabled,!1),p.PU.setSelected(this.folderTreeKey,e,this.customLibraries)}},{key:"getVideosCustomLibraryNames",value:function(){if(!this.dataFetched())return null;var e=this.getVideoCustomLibraries();if(!e.length)return null;var t=i.map(e,(function(e){return"<strong>".concat(p.m$.escapeExpression(e),"</strong>")}));if(1===t.length)return t[0];var r=a.T.getPhrase(this.lang,"and");return"".concat(t.slice(0,-1).join(", ")," ").concat(r," ").concat(t.slice(-1))}},{key:"addToLibrary",value:function(){var e,t,r=this,o=p.PU.getSelected(this.folderTreeKey,this.customLibraries),a=o.get("id"),l=p.PU.getSelected(this.libraryTreeKey,this.customLibraries).get("id"),u=this.model.libraries.filter((function(e){return e.get("type")===s.r.HostedLibrary})),c=this.model.categories;c&&c.last()&&(e=c.last().get("id")),u&&u.length&&(t=i.last(u).get("id"));var d={objectId:this.options.videoId,objectType:n.MasterVideo,sourceLibraryId:t,destinationLibraryId:l,metadata:{sourceCategoryId:e,destinationCategoryId:a}};this.videoDataService.addVideoToCustomLibrary(d,this.model,o,(function(){r.triggerMethod("hide")}))}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(c.ZV.Disabled)&&this.hasAvailableLibraries())return{title:a.T.getPhrase(this.lang,"heading")}}},{key:"getAvailableCustomLibraries",value:function(){if(!this.dataFetched())return null;var e=this.customLibraries.clone();e.remove(this.model.libraries.filter((function(e){return e.get("type")===s.r.CustomLibrary})));var t=e.filter((function(e){return 0===e.children.length}));return e.remove(t),e}},{key:"hasAvailableLibraries",value:function(){if(!this.customLibraries)return!1;var e=this.getAvailableCustomLibraries();return e&&e.length>0}},{key:"hasFolders",value:function(){return!!this.customLibraries&&!!this.customLibraries.find((function(e){return!!e.get("children").length}))}},{key:"getVideoCustomLibraries",value:function(){if(!this.model||!this.model.libraries||!this.model.libraries.length)return null;var e=this.model.libraries.filter((function(e){return e.get("type")===s.r.CustomLibrary}));return i.map(e,(function(e){return e.get("name")}))}},{key:"dataFetched",value:function(){return!!this.model}},{key:"renderLibraryDropdown",value:function(){if(this.customLibraries.length<=1)this.renderFolderSelector();else{var e=p.PU.getSelected(this.libraryTreeKey,this.customLibraries),t=this.getUI("folderName");this.$(t).hide(),this.showChildView("libraryDropdown",new b.A({currentLibraryId:e?e.get("id"):null,collection:this.getAvailableCustomLibraries(),channelName:"".concat(this.channelName,":library")}))}}},{key:"renderFolderSelector",value:function(){var e=this.getAvailableCustomLibraries();1===e.length&&p.PU.setSelected(this.libraryTreeKey,e.first().get("id"),e);var t=p.PU.getSelected(this.libraryTreeKey,e),r=t.get("children")&&!!t.get("children").length,n=this.getUI("folderName");t&&r&&this.$(n).show(),this.showChildView("folderSelector",new d.Y({collection:t.children,channelName:"".concat(this.channelName,":folder"),folderTreeKey:this.folderTreeKey}))}},{key:"requiredResources",get:function(){return{customLibraries:y.T.libraries}}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){var e;return{styles:v,foundLibraries:this.getVideosCustomLibraryNames(),hasAvailableLibraries:this.hasAvailableLibraries(),hasMultipleLibraries:(null===(e=this.customLibraries)||void 0===e?void 0:e.length)>1,dataFetched:this.dataFetched(),spinnerEl:p.Kp.getSpinner({size:p.Ey.Large,extraClasses:"mx-auto"}),showNoFolderText:!this.hasFolders()}}},{key:"onRender",value:function(){this.dataFetched()&&this.hasAvailableLibraries()&&this.renderLibraryDropdown()}}])&&k(r.prototype,l),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,l}(l.Q.G7)},99765:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({1:function(e,t,r,n,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{};return(null!=(o=r.if.call(a,null!=(o=null!=t?t.options:t)?o.foundLibraries:o,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=r.if.call(a,null!=(o=null!=t?t.options:t)?o.hasAvailableLibraries:o,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?o:"")+"\n"+(null!=(o=r.if.call(a,null!=(o=null!=t?t.options:t)?o.showNoFolderText:o,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?o:"")},2:function(e,t,r,n,i){var o;return e.propertyIsEnumerable,' <div class="alert alert-info" role="alert">\n <p class="m-0">'+(null!=(o=(r.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"foundLibraries",{name:"lang",hash:{libraries:null!=(o=null!=t?t.options:t)?o.foundLibraries:o},data:i}))?o:"")+"</p>\n </div>\n"},4:function(e,t,r,n,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return' <span class="d-block pb-2">'+s((r.lang||t&&t.lang||l).call(a,"selectFolder",{name:"lang",hash:{},data:i}))+"</span>\n"+(null!=(o=r.if.call(a,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+' <div class="mt-1 mb-2 library-dropdown-region"></div>\n\n <span class="'+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.header:o,t))+' folder-name">'+s((r.lang||t&&t.lang||l).call(a,"folder",{name:"lang",hash:{},data:i}))+'</span>\n <div class="'+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.folderSelector:o,t))+' mt-1 folder-selector-region"></div>\n'},5:function(e,t,r,n,i){e.propertyIsEnumerable;var o,a=e.escapeExpression;return' <span class="'+a(e.lambda(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.header:o,t))+'">'+a((r.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:i}))+"</span>\n"},7:function(e,t,r,n,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return" <p>"+e.escapeExpression((r.lang||t&&t.lang||l).call(a,"noFolders1",{name:"lang",hash:{},data:i}))+"</p>\n <p>"+(null!=(o=(r.lang||t&&t.lang||l).call(a,"noFolders2",{name:"lang",hash:{},data:i}))?o:"")+"</p>\n"},9:function(e,t,r,n,i){var o;return e.propertyIsEnumerable,(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.spinnerEl:o,t))?o:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,r,n,i){var o;return e.propertyIsEnumerable,null!=(o=r.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.dataFetched:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(9,i,0),data:i}))?o:""},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6774],{86774:function(e,n,t){"use strict";t.r(n),t.d(n,{PublishLibraryView:function(){return S}});var r=t(48088),i=t(21679),o=t(57857),a=t(31647),l=t(69184),u=t(10101),c=t(88172),s=t(57098),f=t(93569),h=t(264),p=t(95061),y=t(48652),b=t.n(y);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function v(e){var n=function(e,n){if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(n)?n:n+""}function d(e,n,t){return n=k(n),function(e,n){if(n&&("object"===g(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,w()?Reflect.construct(n,t||[],k(e).constructor):n.apply(e,t))}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function O(e,n){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},O(e,n)}var S=function(e){function n(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),d(this,n,arguments)}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&O(e,n)}(n,e),t=n,(a=[{key:"initialize",value:function(){this.libraryDataService=i.u.getInstance(s.Or.Library,this),this.videoDataService=i.u.getInstance(s.Or.Video,this)}},{key:"name",get:function(){return"PublishLibraryView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.publishLibrary"}},{key:"template",get:function(){return b()}},{key:"channelName",get:function(){return f.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:o.T.getPhrase(this.lang,"heading"),behaviorClass:u.Yw,spinnerButtonOptions:{channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"continue"),onClick:function(){return e.onClickContinue()}}}]}},{key:"viewOptions",value:function(){return{hasLite:h.g.hasLite}}},{key:"onClickContinue",value:function(){var e=this;r.Radio.channel(this.channelName).trigger(c.I3.ShowSpinner);var n=0,t=function(){++n===e.libraries.length&&(e.triggerMethod("hide"),e.videoDataService.clearVideoCache(),r.Radio.channel(l.GL.LIBRARY_STATUS).trigger("status:changed"))};this.libraries.each((function(n){e.libraryDataService.publishLibrary(n.get("id"),t)}))}},{key:"requiredResources",get:function(){return{libraries:p.T.libraries}}}])&&m(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,a}(a.Q.G7)},48652:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,i){return e.propertyIsEnumerable," <li>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"meaning2",{name:"lang",hash:{},data:i}))+"</li>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var o,a=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,u=e.escapeExpression;return"<p>"+u((t.lang||n&&n.lang||l).call(a,"infoHeading",{name:"lang",hash:{},data:i}))+"</p>\n<p>"+u((t.lang||n&&n.lang||l).call(a,"meaningSubheading",{name:"lang",hash:{},data:i}))+"</p>\n<ul>\n <li>"+u((t.lang||n&&n.lang||l).call(a,"meaning1",{name:"lang",hash:{},data:i}))+"</li>\n"+(null!=(o=t.unless.call(a,null!=(o=null!=n?n.options:n)?o.hasLite:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+" <li>"+u((t.lang||n&&n.lang||l).call(a,"meaning3",{name:"lang",hash:{},data:i}))+"</li>\n</ul>"},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6788],{36788:function(t,e,r){"use strict";r.r(e),r.d(e,{NoLibraryView:function(){return h}});var n=r(57857),o=r(31647),i=r(80758),u=r(63791),c=r(57098),a=r(29457),f=r(2),l=r.n(f);function p(t){return p="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},p(t)}function y(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t,e){if("object"!=p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==p(e)?e:e+""}function b(t,e,r){return e=v(e),function(t,e){if(e&&("object"===p(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)}(t,m()?Reflect.construct(e,r||[],v(t).constructor):e.apply(t,r))}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),b(this,e,arguments)}return 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&&g(t,e)}(e,t),r=e,(o=[{key:"name",get:function(){return"NoLibraryView"}},{key:"title",get:function(){return n.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.noLibrary"}},{key:"template",get:function(){return l()}},{key:"regions",value:function(){return{emptyState:{el:".no-library-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:i.o,region:"emptyState",type:a.ub.LibraryEditor,shouldRender:function(){return!0},componentOptions:{plusSvg:u.Nj.getSvg(u.vn.Plus),heading:n.T.getPhrase(this.lang,"emptyStateHeading"),description:n.T.getPhrase(this.lang,"emptyStateDescription"),btnText:n.T.getPhrase(this.lang,"emptyStateCta")},emptyStateComponents:c.aW}]}}])&&y(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(o.Q.G7)},2:function(t,e,r){var n=r(32227);t.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(t,e,r,n,o){return'<div class="no-library-region"></div>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[7002],{24828:function(t,e,n){"use strict";n.d(e,{o:function(){return o}});var o=["bg-pink","bg-orange"].concat(["bg-green","bg-cyan","bg-teal","bg-blue","bg-indigo","bg-purple"])},22231:function(t,e,n){"use strict";function o(t,e){return e[t.charCodeAt(0)%e.length]}n.d(e,{x:function(){return o}})},91439:function(t,e,n){"use strict";n.d(e,{u:function(){return m}});var o=n(48088),r=n(39479),i=n(31647),a=n(63791),c=n(57098),l=n(93421),u="C8gyn";function s(t){return s="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},s(t)}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function f(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==s(e)?e:e+""}function y(t,e,n){return e=b(e),function(t,e){if(e&&("object"===s(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)}(t,d()?Reflect.construct(e,n||[],b(t).constructor):e.apply(t,n))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),y(this,e,arguments)}return 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)}(e,t),n=e,(i=[{key:"getClassMappings",value:function(){return{"ui-draggable":l.W2.draggable,"ui-draggable-handle":l.W2.handle,"ui-draggable-disabled":l.W2.disabled,"ui-draggable-dragging":l.W2.dragging}}},{key:"helper",value:function(){return new l.ND({text:this.view.model.get("name"),svg:a.Nj.getSvg(a.vn.Folder)}).render().el}},{key:"start",value:function(){o.Radio.channel(c.jr.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(u)}},{key:"stop",value:function(){o.Radio.channel(c.jr.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(u)}},{key:"onRender",value:function(){var t={helper:r.bind(this.helper,this),start:r.bind(this.start,this),stop:r.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(r.extend({},l.wc,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.cg)},6929:function(t,e,n){"use strict";n.d(e,{x:function(){return b}});var o=n(48088),r=n(39479),i=n(31647),a=n(50997),c=n(10454);function l(t){return l="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},l(t)}function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,s(o.key),o)}}function s(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function p(t,e,n){return e=y(e),function(t,e){if(e&&("object"===l(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)}(t,f()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var b=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,e,arguments)}return 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&&d(t,e)}(e,t),n=e,(i=[{key:"initialize",value:function(){this.listenTo(a.jr.VIDEO_DRAG_DROP,"drag:stop",this.stop),this.listenTo(a.jr.FOLDER_DRAG_DROP,"drag:stop",this.stop)}},{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;r.each(this.options.channelNames,(function(e){o.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return r.each(this.options.channelNames,(function(n){!0===o.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e||(this.disabledElement=this.getDroppableElement(),this.disabledElement.addClass(c.Z.disabled)),e}},{key:"stop",value:function(){var t;null===(t=this.disabledElement)||void 0===t||t.removeClass(c.Z.disabled)}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",c.Z.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:r.bind(this.drop,this),accept:r.bind(this.accept,this),over:r.bind(this.over,this),out:r.bind(this.out,this)};t.classes={"ui-droppable":c.Z.droppable,"ui-droppable-active":c.Z.active,"ui-droppable-hover":c.Z.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&u(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.cg)},87002:function(t,e,n){"use strict";n.d(e,{Y:function(){return E}});var o=n(31647),r=n(70065),i=n(24828),a=n(22231),c=n(50997),l=n(93569),u=n(91439),s=(n(98001),n(6929)),p=n(51785),f=n(90743),y=n.n(f),d={folder:"cLuIF",actions:"vWWVi"};function b(t){return b="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},b(t)}function h(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,m(o.key),o)}}function m(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}function v(t,e,n){return e=O(e),function(t,e){if(e&&("object"===b(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)}(t,g()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}var E=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,e,[t])}return 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&&w(t,e)}(e,t),n=e,(o=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"name",get:function(){return"FolderItemComponent"}},{key:"template",get:function(){return y()}},{key:"className",get:function(){return"col-2 p-1 rounded position-relative"}},{key:"appLinks",get:function(){return{a:{application:c.OV.LIBRARY_EDITOR,action:c.eX.LibraryEditor.FOLDER,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{actions:{el:".actions-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:s.x,channelNames:[c.jr.VIDEO_DRAG_DROP,c.jr.FOLDER_DRAG_DROP],analyticsOptions:{location:"library"===this.options.location?r.LZ.LibraryTiles:r.LZ.SubFolderList}},{behaviorClass:u.u}]}},{key:"viewOptions",value:function(){var t=l.jw.createFolderThumbnailUrl(this.model.thumbnail);return{styles:d,imageUrl:t,backgroundColor:(0,a.x)(this.model.get("name"),i.o)}}},{key:"onRender",value:function(){this.showChildView("actions",new p.c({model:this.model,extraClasses:"".concat(d.actions," rounded-circle"),buttonClass:"text-light",analyticsOptions:{location:r.LZ.LibraryTiles},overrideClasses:!0}))}}])&&h(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},51785:function(t,e,n){"use strict";n.d(e,{c:function(){return T}});var o=n(31647),r=n(63791),i=n(60602),a=n(57857),c=n(52076),l=n(70065),u=n(71641),s=n(57098),p=n(58266),f=n.n(p);function y(t){return y="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},y(t)}function d(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,b(o.key),o)}}function b(t){var e=function(t,e){if("object"!=y(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==y(e)?e:e+""}function h(t,e,n){return e=v(e),function(t,e){if(e&&("object"===y(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)}(t,m()?Reflect.construct(e,n||[],v(t).constructor):e.apply(t,n))}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}var O=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,e,[t])}return 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&&g(t,e)}(e,t),n=e,(r=[{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return f()}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:a.T.getPhrase(this.lang,"addSubfolder"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Create,entity:l.py.Folder,workflowPhase:l.eu.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:a.T.getPhrase(this.lang,"rename"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Rename,entity:l.py.Folder,workflowPhase:l.eu.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:a.T.getPhrase(this.lang,"move"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Move,entity:l.py.Folder,workflowPhase:l.eu.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:a.T.getPhrase(this.lang,"editImages"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.EditAssoc,entity:l.py.Folder,workflowPhase:l.eu.Start,descriptor:l.iF.Image}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:a.T.getPhrase(this.lang,"generatePdf"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Create,entity:l.py.PDF,workflowPhase:l.eu.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:a.T.getPhrase(this.lang,"remove"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Delete,entity:l.py.Folder,workflowPhase:l.eu.Start}),classes:"text-danger",appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new u.w({analyticsHelper:c.k,displayOptions:{alignment:"end"},channelName:this.channelName,collection:new o.Q.FE(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}}])&&d(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(o.Q.wA),w=n(26704),E=n.n(w);function k(t){return k="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},k(t)}function j(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,_(o.key),o)}}function _(t){var e=function(t,e){if("object"!=k(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=k(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==k(e)?e:e+""}function P(t,e,n){return e=D(e),function(t,e){if(e&&("object"===k(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)}(t,R()?Reflect.construct(e,n||[],D(t).constructor):e.apply(t,n))}function R(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(R=function(){return!!t})()}function D(t){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},D(t)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}var T=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),P(this,e,[t])}return 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)}(e,t),n=e,(o=[{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof i.g)return"position-absolute ".concat(this.options.overrideClasses?"":"zHCsb"," ").concat(this.options.extraClasses," ")}},{key:"template",get:function(){return E()}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"renderFolderActions",value:function(){this.model instanceof i.g&&this.showChildView("items",new O({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof i.g,dropdownClass:"".concat("He1m9"," ").concat(this.options.buttonClass),svg:r.Nj.getSvg(r.vn.More)}}},{key:"onRender",value:function(){this.renderFolderActions()}}])&&j(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},58266:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="items-region"></div>'},useData:!0})},90743:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,"style=\"background-image: url('"+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+"')\""},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a,c=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,u="function",s=t.escapeExpression,p=t.lambda;return'<a class="rounded d-block text-decoration-none" title="'+s(typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:l)===u?a.call(c,{name:"name",hash:{},data:r}):a)+'">\n <div \n class="'+s(p(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.folder:i,e))+" "+s(p(null!=(i=null!=e?e.options:e)?i.backgroundColor:i,e))+' rounded-top"\n '+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.imageUrl:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'\n ></div>\n <h3 class="font-size-normal fw-semibold mb-0 p-2 bg-white border-start border-end border-bottom rounded-bottom ">\n <span class="text-truncate d-block">'+s(typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:l)===u?a.call(c,{name:"name",hash:{},data:r}):a)+'</span>\n </h3>\n</a>\n<div class="actions-region"></div>'},useData:!0})},26704:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\n</span>\n<div class="items-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasActions:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:""},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[7053],{87053:function(e,t,n){"use strict";n.r(t),n.d(t,{GeneratePastReleasesPdfView:function(){return x}});var r=n(39479),i=n(21679),o=n(57857),a=n(31647),l=n(56285),s=n(52076),u=n(70065),c=n(10101),f=n(88172),p=n(57098),d=n(3059),h=n(67670),b=n(19226),y=n(93569),g=n(39090),v=n(44937),m=n(29569),j=n.n(m),S={image:"go5qS"};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 w(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,O(r.key),r)}}function O(e){var t=function(e,t){if("object"!=P(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==P(t)?t:t+""}function I(e,t,n){return t=C(t),function(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)}(e,k()?Reflect.construct(t,n||[],C(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}var x=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),I(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(t,e),n=t,(a=[{key:"initialize",value:function(){this.libraryDataService=i.u.getInstance(p.Or.Library,this),this.contentUpdatesDataService=i.u.getInstance(p.Or.ContentUpdates,this),this.exportDataService=i.u.getInstance(p.Or.Export,this)}},{key:"name",get:function(){return"GeneratePastReleasesPdfView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.generatePastReleasesPdf"}},{key:"template",get:function(){return j()}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.Yw,title:o.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new h.v,channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"generateBtn"),onClick:function(){return e.onClickGeneratePdf()}}}]}},{key:"onLibrariesSync",value:function(e){var t=this;this.libraries=e,this.selectedLibraryIds=g.RF.getLibraryIds(this.options.librariesQueryString,e),this.subjectCollectionIdentifier=new d.xw({dateQueryString:this.options.dateQueryString,libraryIds:this.selectedLibraryIds}),this.contentUpdatesDataService.getRecentVideoSubjects(this.subjectCollectionIdentifier,(function(n){return t.onSubjectsSync(e,n)}))}},{key:"onSubjectsSync",value:function(e,t){var n=g.RF.getSubjectOptions(t).map((function(e){return new v.Wx(e)})),i={dateQueryString:this.options.dateQueryString,libraryIds:this.selectedLibraryIds};if(!this.options.subjectQueryString)return this.videoCollectionIdentifier=new d.IJ(i),void this.spinnerModel.set(f.ZV.Disabled,!1);var o=this.getSubjectIds();this.videoCollectionIdentifier=new d.IJ(r.extend(i,{subjects:n.filter((function(e){return!!r.intersection(o,e.get("subjectIds")).length}))})),this.spinnerModel.set(f.ZV.Disabled,!1)}},{key:"getSubjectIds",value:function(){if(this.options.subjectQueryString)return this.options.subjectQueryString.split("-")[1].split(",")}},{key:"getLibrariesText",value:function(){var e=this;if(this.libraries.length!==this.selectedLibraryIds.length){var t=this.libraries.filter((function(t){return r.contains(e.selectedLibraryIds,t.id.toString())})),n=t.map((function(e){return"<strong>".concat(y.m$.escapeExpression(e.get("name")),"</strong>")}));return t.length<=2?n.join(" ".concat(o.T.getPhrase(this.lang,"and")," ")):r.first(n,n.length-1).join(", ")+" ".concat(o.T.getPhrase(this.lang,"and")," ").concat(r.last(n))}}},{key:"getFormattedDate",value:function(e){if(e)return l.O.format(e,"DD MMMM YYYY")}},{key:"getFormattedSubjects",value:function(){if(this.videoCollectionIdentifier.subjects){var e=this.videoCollectionIdentifier.subjects.map((function(e){return e.get("name")}));return 1===e.length?e[0]:e.slice(0,-1).join(", ")+" ".concat(o.T.getPhrase(this.lang,"and")," ")+e.slice(-1)}}},{key:"onClickGeneratePdf",value:function(){this.spinnerModel.set(f.ZV.ShowSpinner,!0),this.fetchVideosAndGeneratePdf()}},{key:"fetchVideosAndGeneratePdf",value:function(){var e=this;this.contentUpdatesDataService.getRecentVideosAllPages(this.videoCollectionIdentifier,(function(t){t&&t.length?e.generatePdf(t.map((function(e){return e.id.toString()}))):e.triggerMethod("hide")}))}},{key:"generatePdf",value:function(e){var t=this,n=this.videoCollectionIdentifier.subjects?this.getFormattedSubjects():o.T.getPhrase(this.lang,"latestReleases"),r=l.O.format(this.videoCollectionIdentifier.dateOption.get("from"),"MMMM YYYY"),i=l.O.format(this.videoCollectionIdentifier.dateOption.get("to"),"MMMM YYYY"),a=r===i?o.T.getPhrase(this.lang,"fromContentUpdate",{from:r}):o.T.getPhrase(this.lang,"fromToContentUpdates",{from:r,to:i});this.exportDataService.generateCustomListPdf(n,a,e,this.currentUser,(function(){return t.triggerMethod("hide")})),this.logAction(e.length)}},{key:"logAction",value:function(e){var t={location:u.LZ.Popup,actionType:u.Vw.Create,entity:u.py.PDF,workflowPhase:u.eu.Complete},n={videoCount:e,libraries:this.selectedLibraryIds.join(","),releaseDate:this.videoCollectionIdentifier.dateOption.get("name"),subjects:this.options.subjectQueryString?this.videoCollectionIdentifier.subjects.map((function(e){return e.get("name")})).join(","):""};s.k.logUserAction(n,t)}},{key:"requiredResources",get:function(){return{currentUser:b.K.currentUser}}},{key:"onBeforeRender",value:function(){var e=this;this.libraries||this.libraryDataService.getHostedLibraries((function(t){return e.onLibrariesSync(t)}))}},{key:"viewOptions",value:function(){return{styles:S,dataFetched:!!this.libraries,spinnerEl:y.Kp.getSpinner({size:y.Ey.Large,extraClasses:"mx-auto"}),email:this.currentUser.get("email"),imageUrl:p.Wn.Shared.GENERATE_PDF,libraryText:this.getLibrariesText(),subject:this.getFormattedSubjects(),from:this.videoCollectionIdentifier&&this.getFormattedDate(this.videoCollectionIdentifier.dateOption.get("from")),to:this.videoCollectionIdentifier&&this.getFormattedDate(this.videoCollectionIdentifier.dateOption.get("to"))}}}])&&w(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(a.Q.G7)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return d}});var r=n(31647),i=n(88172);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(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,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}function u(e,t,n){return t=f(t),function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,(r=[{key:"defaults",value:function(){return a(a({},i.ZV.Disabled,!0),i.ZV.Hidden,!1)}}])&&l(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},29569: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,(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.spinnerEl:o,t))?o:"")+"\n"},3:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="pb-3 text-center">\n <img src="'+l(a(null!=(o=null!=t?t.options:t)?o.imageUrl:o,t))+'" class="'+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.image:o,t))+'" />\n</div>\n<p class="m-0">\n '+(null!=(o=(n.lang||t&&t.lang||u).call(s,"body1",{name:"lang",hash:{},data:i}))?o:"")+"\n "+(null!=(o=n.if.call(s,null!=(o=null!=t?t.options:t)?o.libraryText:o,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?o:"")+"\n "+(null!=(o=n.if.call(s,null!=(o=null!=t?t.options:t)?o.subject:o,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?o:"")+"\n "+(null!=(o=(n.lang||t&&t.lang||u).call(s,"body4",{name:"lang",hash:{email:null!=(o=null!=t?t.options:t)?o.email:o,to:null!=(o=null!=t?t.options:t)?o.to:o,from:null!=(o=null!=t?t.options:t)?o.from:o},data:i}))?o:"")+"\n</p>\n"},4:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"body2",{name:"lang",hash:{libraryText:null!=(o=null!=t?t.options:t)?o.libraryText:o},data:i}))?o:""},6:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"body3",{name:"lang",hash:{subject:null!=(o=null!=t?t.options:t)?o.subject:o},data:i}))?o:""},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=n.unless.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.dataFetched:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?o:""},useData:!0})}}]);