@clickview/library-editor 1.16.1-dev.1 → 1.16.1-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 (162) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{969-library-editor-c6e04e5107.chunk.css → 4274-library-editor-2e7ad56bc8.chunk.css} +9 -1
  3. package/dist/css/{58-library-editor-6b4606a972.chunk.css → 6833-library-editor-cf78223244.chunk.css} +10 -1
  4. package/dist/css/{library-editor-app-0f73fdab81.css → library-editor-app-bb91d6169b.css} +1 -1
  5. package/dist/languages/en.json +1 -1
  6. package/dist/scripts/101-882794aeb8.chunk.js +1 -0
  7. package/dist/scripts/1010-deb50c7ea4.chunk.js +1 -0
  8. package/dist/scripts/1086-c589e7a188.chunk.js +1 -0
  9. package/dist/scripts/1203-81d0661e18.chunk.js +1 -0
  10. package/dist/scripts/1216-7f24ede8e0.chunk.js +1 -0
  11. package/dist/scripts/1269-0663125949.chunk.js +1 -0
  12. package/dist/scripts/1364-3cdf7e5e62.chunk.js +1 -0
  13. package/dist/scripts/1409-061e3f9029.chunk.js +1 -0
  14. package/dist/scripts/1492-e352aa8d88.chunk.js +1 -0
  15. package/dist/scripts/1601-1ef0e562fc.chunk.js +2 -0
  16. package/dist/scripts/1671-f88be3329a.chunk.js +1 -0
  17. package/dist/scripts/1832-4939bef81a.chunk.js +1 -0
  18. package/dist/scripts/1887-10d9bb03cb.chunk.js +1 -0
  19. package/dist/scripts/1911-23568f6138.chunk.js +1 -0
  20. package/dist/scripts/2227-af3bb5232c.chunk.js +2 -0
  21. package/dist/scripts/243-7bb390ea4d.chunk.js +1 -0
  22. package/dist/scripts/259-fdac3828c2.chunk.js +1 -0
  23. package/dist/scripts/2692-a74b07a169.chunk.js +1 -0
  24. package/dist/scripts/{2802-2218d4b4bb.chunk.js → 2802-af98ef08cd.chunk.js} +1 -1
  25. package/dist/scripts/2803-29511f028a.chunk.js +1 -0
  26. package/dist/scripts/2888-eec152c5f5.chunk.js +1 -0
  27. package/dist/scripts/299-e581e06f46.chunk.js +1 -0
  28. package/dist/scripts/3096-3b816591ce.chunk.js +1 -0
  29. package/dist/scripts/3400-d4b59083ef.chunk.js +1 -0
  30. package/dist/scripts/3639-63ad27fb38.chunk.js +1 -0
  31. package/dist/scripts/3746-1f13b0764f.chunk.js +1 -0
  32. package/dist/scripts/3763-f486c7b891.chunk.js +1 -0
  33. package/dist/scripts/4000-9ac17853ea.chunk.js +1 -0
  34. package/dist/scripts/4177-d135a23ab6.chunk.js +1 -0
  35. package/dist/scripts/4201-84129dfc88.chunk.js +1 -0
  36. package/dist/scripts/4245-a95daa8056.chunk.js +1 -0
  37. package/dist/scripts/4274-3eb2257694.chunk.js +1 -0
  38. package/dist/scripts/4591-706f7173dd.chunk.js +1 -0
  39. package/dist/scripts/4830-a10093b5d2.chunk.js +1 -0
  40. package/dist/scripts/4860-f9a7be96c8.chunk.js +1 -0
  41. package/dist/scripts/4885-7c1d78dd3d.chunk.js +1 -0
  42. package/dist/scripts/4993-1e2baa25b7.chunk.js +1 -0
  43. package/dist/scripts/514-520d9e5687.chunk.js +1 -0
  44. package/dist/scripts/{5173-088a10449c.chunk.js → 5173-02a0713c0b.chunk.js} +1 -1
  45. package/dist/scripts/5235-d8a1857ab9.chunk.js +1 -0
  46. package/dist/scripts/5412-3b77eef79d.chunk.js +1 -0
  47. package/dist/scripts/5418-8318e5971b.chunk.js +1 -0
  48. package/dist/scripts/5424-164897f2cf.chunk.js +1 -0
  49. package/dist/scripts/546-7f77850497.chunk.js +1 -0
  50. package/dist/scripts/5747-c7570a4dee.chunk.js +1 -0
  51. package/dist/scripts/{5891-12bda30b4c.chunk.js → 5891-784e65ff2e.chunk.js} +1 -1
  52. package/dist/scripts/6093-e000b9f0a3.chunk.js +1 -0
  53. package/dist/scripts/6220-3273db4569.chunk.js +1 -0
  54. package/dist/scripts/6357-d37e948f5e.chunk.js +1 -0
  55. package/dist/scripts/6505-8ae1da1dfa.chunk.js +1 -0
  56. package/dist/scripts/6732-73f12b3316.chunk.js +1 -0
  57. package/dist/scripts/6756-73653a9e01.chunk.js +1 -0
  58. package/dist/scripts/6774-3b27ee5b7d.chunk.js +1 -0
  59. package/dist/scripts/6788-d25db35e6c.chunk.js +1 -0
  60. package/dist/scripts/6833-36be90324c.chunk.js +1 -0
  61. package/dist/scripts/{6963-473a09e985.chunk.js → 6963-222d163a4b.chunk.js} +1 -1
  62. package/dist/scripts/6995-6be8d799d2.chunk.js +1 -0
  63. package/dist/scripts/6999-9284afd732.chunk.js +1 -0
  64. package/dist/scripts/7002-baa9e9e285.chunk.js +1 -0
  65. package/dist/scripts/7053-cce5055ceb.chunk.js +1 -0
  66. package/dist/scripts/708-44fa959bcc.chunk.js +1 -0
  67. package/dist/scripts/{7190-3632c1b97b.chunk.js → 7190-aa3f4b4ba1.chunk.js} +1 -1
  68. package/dist/scripts/7376-e3e7d54126.chunk.js +1 -0
  69. package/dist/scripts/755-03d4567c99.chunk.js +1 -0
  70. package/dist/scripts/7634-bcbee3cbfc.chunk.js +1 -0
  71. package/dist/scripts/8362-ccb5f61d03.chunk.js +1 -0
  72. package/dist/scripts/8727-86d52bc39b.chunk.js +1 -0
  73. package/dist/scripts/8762-ab438942a2.chunk.js +1 -0
  74. package/dist/scripts/8906-e6be28b199.chunk.js +1 -0
  75. package/dist/scripts/8947-50189acd36.chunk.js +1 -0
  76. package/dist/scripts/9357-cac07c3362.chunk.js +1 -0
  77. package/dist/scripts/{9379-12465b685a.chunk.js → 9379-dc10121a03.chunk.js} +1 -1
  78. package/dist/scripts/9695-b789b2a9be.chunk.js +1 -0
  79. package/dist/scripts/9927-773e307959.chunk.js +1 -0
  80. package/dist/scripts/9976-aa31d18e61.chunk.js +1 -0
  81. package/dist/scripts/bundle-eb490e61aa.min.js +2 -0
  82. package/package.json +2 -2
  83. package/dist/scripts/101-d96e2f6c30.chunk.js +0 -1
  84. package/dist/scripts/1010-9322c39308.chunk.js +0 -1
  85. package/dist/scripts/1086-65173e4f6f.chunk.js +0 -1
  86. package/dist/scripts/1203-50f5844bcc.chunk.js +0 -1
  87. package/dist/scripts/1216-7a9f411abd.chunk.js +0 -1
  88. package/dist/scripts/1269-391b95a348.chunk.js +0 -1
  89. package/dist/scripts/1364-2540e700a9.chunk.js +0 -1
  90. package/dist/scripts/1409-9ca416a3a6.chunk.js +0 -1
  91. package/dist/scripts/1601-4fee3d2336.chunk.js +0 -2
  92. package/dist/scripts/1832-84b066cd22.chunk.js +0 -1
  93. package/dist/scripts/1887-59656a5c74.chunk.js +0 -1
  94. package/dist/scripts/1911-fb86f6cf48.chunk.js +0 -1
  95. package/dist/scripts/2227-2504e75ca4.chunk.js +0 -2
  96. package/dist/scripts/243-6b31d75a3e.chunk.js +0 -1
  97. package/dist/scripts/259-14636ed69c.chunk.js +0 -1
  98. package/dist/scripts/2692-2bd19c2b39.chunk.js +0 -1
  99. package/dist/scripts/2803-c102b0ab98.chunk.js +0 -1
  100. package/dist/scripts/2888-7a0e8d2574.chunk.js +0 -1
  101. package/dist/scripts/299-529b3d1c71.chunk.js +0 -1
  102. package/dist/scripts/3096-3ca8e8973f.chunk.js +0 -1
  103. package/dist/scripts/3400-181a33c06f.chunk.js +0 -1
  104. package/dist/scripts/3639-69c8ac5224.chunk.js +0 -1
  105. package/dist/scripts/3746-5e91d1f43b.chunk.js +0 -1
  106. package/dist/scripts/3763-99ac8ff777.chunk.js +0 -1
  107. package/dist/scripts/4000-a623369bef.chunk.js +0 -1
  108. package/dist/scripts/4177-719ae5d83e.chunk.js +0 -1
  109. package/dist/scripts/4201-8af865508e.chunk.js +0 -1
  110. package/dist/scripts/4245-1eba9c3cf2.chunk.js +0 -1
  111. package/dist/scripts/4353-ec529c5ba1.chunk.js +0 -1
  112. package/dist/scripts/4591-c6ba353e39.chunk.js +0 -1
  113. package/dist/scripts/4830-e87392f843.chunk.js +0 -1
  114. package/dist/scripts/4860-3da347c5a2.chunk.js +0 -1
  115. package/dist/scripts/4885-cc2e3d4f81.chunk.js +0 -1
  116. package/dist/scripts/514-bea172c18c.chunk.js +0 -1
  117. package/dist/scripts/5235-b6c96f2729.chunk.js +0 -1
  118. package/dist/scripts/5412-273d33a674.chunk.js +0 -1
  119. package/dist/scripts/5418-32716c915a.chunk.js +0 -1
  120. package/dist/scripts/5424-208acbb259.chunk.js +0 -1
  121. package/dist/scripts/546-a82365178d.chunk.js +0 -1
  122. package/dist/scripts/5747-fea829f6ed.chunk.js +0 -1
  123. package/dist/scripts/58-69552d3a8a.chunk.js +0 -1
  124. package/dist/scripts/6093-8b76178c29.chunk.js +0 -1
  125. package/dist/scripts/6220-36949a4ae4.chunk.js +0 -1
  126. package/dist/scripts/6732-fdb443a7b2.chunk.js +0 -1
  127. package/dist/scripts/6774-1322f42232.chunk.js +0 -1
  128. package/dist/scripts/6788-3450bef42f.chunk.js +0 -1
  129. package/dist/scripts/6995-5aa2da66d8.chunk.js +0 -1
  130. package/dist/scripts/6999-deb99c2bc6.chunk.js +0 -1
  131. package/dist/scripts/7002-cc2ef03644.chunk.js +0 -1
  132. package/dist/scripts/7053-f60b518071.chunk.js +0 -1
  133. package/dist/scripts/708-a654139b29.chunk.js +0 -1
  134. package/dist/scripts/7295-78d818c45e.chunk.js +0 -1
  135. package/dist/scripts/7376-0cb303b67a.chunk.js +0 -1
  136. package/dist/scripts/7634-0af03f5b05.chunk.js +0 -1
  137. package/dist/scripts/8124-1a4f25b158.chunk.js +0 -1
  138. package/dist/scripts/8362-3956de64fc.chunk.js +0 -1
  139. package/dist/scripts/8727-f4069ff97d.chunk.js +0 -1
  140. package/dist/scripts/8762-d2131ead72.chunk.js +0 -1
  141. package/dist/scripts/8906-6ebd80b566.chunk.js +0 -1
  142. package/dist/scripts/8947-fdf495502b.chunk.js +0 -1
  143. package/dist/scripts/9040-3f59b66adc.chunk.js +0 -1
  144. package/dist/scripts/9268-6b2b1cd07c.chunk.js +0 -1
  145. package/dist/scripts/9357-985ceb4f17.chunk.js +0 -1
  146. package/dist/scripts/9383-65c422d821.chunk.js +0 -1
  147. package/dist/scripts/969-85e83a6a9b.chunk.js +0 -1
  148. package/dist/scripts/9695-6ad5f06aef.chunk.js +0 -1
  149. package/dist/scripts/9927-998d2ca69d.chunk.js +0 -1
  150. package/dist/scripts/9976-0072a2700d.chunk.js +0 -1
  151. package/dist/scripts/bundle-6c2338a38f.min.js +0 -2
  152. /package/dist/css/{7295-library-editor-cdf829452c.chunk.css → 1492-library-editor-cdf829452c.chunk.css} +0 -0
  153. /package/dist/css/{8124-library-editor-bd1f6e2ee3.chunk.css → 1671-library-editor-bd1f6e2ee3.chunk.css} +0 -0
  154. /package/dist/css/{9383-library-editor-c6a9216107.chunk.css → 6505-library-editor-c6a9216107.chunk.css} +0 -0
  155. /package/dist/css/{4353-library-editor-7a8f34cf74.chunk.css → 6756-library-editor-7a8f34cf74.chunk.css} +0 -0
  156. /package/dist/scripts/{1601-4fee3d2336.chunk.js.LICENSE.txt → 1601-1ef0e562fc.chunk.js.LICENSE.txt} +0 -0
  157. /package/dist/scripts/{2227-2504e75ca4.chunk.js.LICENSE.txt → 2227-af3bb5232c.chunk.js.LICENSE.txt} +0 -0
  158. /package/dist/scripts/{2802-2218d4b4bb.chunk.js.LICENSE.txt → 2802-af98ef08cd.chunk.js.LICENSE.txt} +0 -0
  159. /package/dist/scripts/{3969-a22b097163.chunk.js → 3969-2a1261acad.chunk.js} +0 -0
  160. /package/dist/scripts/{8495-c2a8d27ffa.chunk.js → 8495-80e0f9737d.chunk.js} +0 -0
  161. /package/dist/scripts/{9770-f16965ec13.chunk.js → 9770-d498ca5470.chunk.js} +0 -0
  162. /package/dist/scripts/{bundle-6c2338a38f.min.js.LICENSE.txt → bundle-eb490e61aa.min.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1887],{59054:function(e,t,r){"use strict";var n;r.d(t,{f:function(){return n}}),function(e){e.Share="share",e.MasterObject="masterobject"}(n||(n={}))},61519:function(e,t,r){"use strict";r.r(t),r.d(t,{SearchView:function(){return $}});var n=r(39479),i=r(48088),o=r(31647),a=r(21679),c=r(99249),s=r(57857),u=r(11543),l=r(33303),f=r(47022),h=r(59054),y=r(48090),p=r(21251),d=r(70763),g=r(71192),v=r(33800),b=r(48404),m=r(19226),S=r(95061),w=r(44937),O=r(5344),C=r(8614),k=r(15709),P=r.n(k);function R(e){return R="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},R(e)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(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,(void 0,i=function(e,t){if("object"!==R(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===R(i)?i:String(i)),n)}var i}function V(e,t){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},V(e,t)}function _(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}(a,e);var t,r,n,i,o=(n=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=M(n);if(i){var r=M(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _(this,e)});function a(){return j(this,a),o.apply(this,arguments)}return t=a,(r=[{key:"name",get:function(){return"SearchHeaderComponent"}},{key:"template",get:function(){return P()}},{key:"lang",get:function(){return"search.searchHeader"}},{key:"className",get:function(){return"bg-white border-bottom p-3"}},{key:"regions",value:function(){return{filters:{el:".filters-region",replaceElement:!0}}}},{key:"renderFilters",value:function(){var e=new C.b5({collection:this.collection,channelName:this.options.channelName});this.showChildView("filters",e)}},{key:"onRender",value:function(){this.renderFilters()}}])&&E(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Q.Component),D=r(29457),q=r(23096),x=r(13809),H=r(96605),I=r.n(H);function F(e){return F="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},F(e)}function A(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,(void 0,i=function(e,t){if("object"!==F(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==F(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===F(i)?i:String(i)),n)}var i}function N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},N(e,t)}function Q(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N(e,t)}(a,e);var t,r,n,i,o=(n=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=U(n);if(i){var r=U(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Q(this,e)});function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e)}return t=a,(r=[{key:"name",get:function(){return"SearchResultsComponent"}},{key:"template",get:function(){return I()}},{key:"lang",get:function(){return"search.searchResults"}},{key:"className",get:function(){return"bg-white"}},{key:"regions",value:function(){return{results:{replaceElement:!0,el:".results-region",partialLoading:D.LP.VideoList}}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){var e=new q.Y({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,application:y.OV.SEARCH,videoItemComponentType:x.UC.Search,collectionIdentifier:null,config:this.options.config,emptyStateType:D.ub.Search,emptyStateOptions:{heading:s.T.getPhrase(this.lang,"emptyStateHeading",{query:this.options.query}),description:s.T.getPhrase(this.lang,"emptyStateDescription")},collectionViewChannel:this.options.collectionViewChannel,customerHasExchange:this.options.customerHasExchange,currentUser:this.options.currentUser,playerApiUrl:this.options.playerApiUrl,createViewKey:this.options.createViewKey,hasCursors:this.options.hasCursors,showEmptyState:!0,libraries:this.options.libraries});this.showChildView("results",e)}}])&&A(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Q.Component),L=r(21769),B=r(28434),K=r.n(B);function z(e){return z="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},z(e)}function X(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,G(n.key),n)}}function G(e){var t=function(e,t){if("object"!==z(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===z(t)?t:String(t)}function J(e,t){return J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},J(e,t)}function Y(e,t){if(t&&("object"===z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}var $=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&J(e,t)}(R,e);var t,r,C,k,P=(C=R,k=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Z(C);if(k){var r=Z(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Y(this,e)});function R(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,R),P.call(this,e)}return t=R,(r=[{key:"initialize",value:function(){this.initializeQuery(),this.bindListeners(),this.contextualSearchService=a.u.getInstance(u.D.ContextualSearch,this),this.searchDataService=a.u.getInstance(u.Z.Search,this),this.videoDataService=a.u.getInstance(v.O.Video,this),this.ratingsDataService=a.u.getInstance(v.O.Ratings,this),this.playerDataService=a.u.getInstance(v.O.Player,this),this.collectionIdentifier=new l.J(Object.assign({collectionPrefix:p.M.SEARCH_VIDEOS},this.options.queryParams)),this.createViewKey=this.createViewKey.bind(this)}},{key:"initializeQuery",value:function(){this.queryModel=this.getSearchModel()}},{key:"bindListeners",value:function(){this.listenTo(y.Vk.RATINGS,"".concat(p.M.RATINGS,":sync"),this.render),this.listenTo(this.channelName,y.Vy.Filters.FILTER_CHANGED,n.debounce(this.onFilterChange,100)),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(L.I.TagFilter,"change:relevant:tags",this.updateSearchResults)}},{key:"name",get:function(){return"SearchView"}},{key:"title",get:function(){return s.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"search.search"}},{key:"template",get:function(){return K()}},{key:"className",get:function(){return"bg-white rounded"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{header:{replaceElement:!0,el:".header-region"},results:{replaceElement:!0,el:".results-region"},pagination:{el:".pagination-region",replaceElement:!0}}}},{key:"getSearchModel",value:function(){return c.r.get("search",{ctor:w.AE})}},{key:"fetchSearchData",value:function(){this.ratings=this.ratingsDataService.getAllRatings(),this.ratings&&!this.filterCollection&&this.initializeFilterCollection()}},{key:"initializeFilterCollection",value:function(){this.filterCollection=O.qr.getFilterCollection(this.sources,this.ratings),this.setQueryParams()}},{key:"setQueryParams",value:function(){O.yf.setQueryParams(Object.assign(Object.assign({},this.options.queryParams),this.getContextParams()),this.queryModel,this.filterCollection)}},{key:"getContextParams",value:function(){if(!this.queryModel.get("query"))return i.Radio.channel(y.jr.CONTEXTUAL_SEARCH).trigger("reset:search:context"),{};var e,t,r,n=this.contextualSearchService.getSearchContext();return n&&n.get("filterParam")?(e={},t=n.get("filterParam"),r=n.get("filterValue"),(t=G(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e):{}}},{key:"createViewKey",value:function(e,t){this.playerDataService.createViewKey(e,h.f.MasterObject,t)}},{key:"onFilterChange",value:function(){o.Q.AppLinkHelper.trigger({application:y.OV.SEARCH,action:y.eX.Search.HOME,params:O.yf.getRouteQueryParams(this.queryModel,this.filterCollection,this.sources)})}},{key:"setVideosWithMetadata",value:function(){this.resultCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new d.t(this.resultCollection.map((function(e){return new g.n({id:e.get("id")})}))))}},{key:"updateSearchResults",value:function(){var e=this;this.resultCollection=null,this.renderResults(),this.queryString=O.yf.getQueryString(this.queryModel,this.filterCollection,this.collectionIdentifier.cursor);var t=function(){return o.Q.AppLinkHelper.trigger({application:y.OV.SEARCH,action:y.eX.Search.HOME,params:O.yf.getRouteQueryParams(e.queryModel,e.filterCollection,e.sources)})};this.queryString?this.searchDataService.searchVideos(this.queryString,this.collectionIdentifier,t):t()}},{key:"renderHeader",value:function(){var e=new T({collection:this.filterCollection,channelName:this.channelName});this.showChildView("header",e)}},{key:"renderResults",value:function(){var e=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),t=new W({collection:this.resultCollection,videosWithMetadata:this.videosWithMetadata,config:this.config,collectionViewChannel:this.channelName,customerHasExchange:this.exchanges.any(),currentUser:this.currentUser,playerApiUrl:this.config.get("playerApiUrl"),createViewKey:this.createViewKey,hasCursors:!!e,libraries:this.sources,query:this.queryModel.get("query")});this.showChildView("results",t)}},{key:"renderPagination",value:function(){if(this.resultCollection&&this.resultCollection.length){var e=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),t=new f.Q({cursors:e,appLink:{application:y.OV.SEARCH,action:y.eX.Search.HOME,params:O.yf.getRouteQueryParams(this.queryModel,this.filterCollection,this.sources)}});this.showChildView("pagination",t)}}},{key:"fetchResults",value:function(){var e=this;if(this.filterCollection){this.queryString=O.yf.getQueryString(this.queryModel,this.filterCollection,this.collectionIdentifier.cursor);var t=O.yf.getDynamicFilterQueryString(this.queryModel,this.filterCollection);if(this.dynamicFiltersFetched||this.searchDataService.getDynamicFilters(t,(function(t){e.dynamicFiltersFetched||(e.filterCollection.add(t.toJSON(),{merge:!0}),e.dynamicFiltersFetched=!0,e.render())})),!this.resultCollection){var r=function(t){e.resultCollection=t,e.setVideosWithMetadata(),e.render()};this.queryString?this.searchDataService.searchVideos(this.queryString,this.collectionIdentifier,r):r(new d.t([]))}}}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(r){var n=t.videosWithMetadata.get(e);n&&(n.set(r.toJSON()),n.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:b.p.config,sources:S.T.libraries,exchanges:S.T.exchanges,currentUser:m.K.currentUser}}},{key:"onBeforeRender",value:function(){return this.fetchSearchData(),this.fetchResults(),!0}},{key:"onRender",value:function(){this.renderHeader(),this.renderResults(),this.renderPagination()}},{key:"onBeforeDestroy",value:function(){this.queryModel.clear()}}])&&X(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),R}(o.Q.View)},13809:function(e,t,r){"use strict";r.d(t,{UC:function(){return n.U}});var n=r(58688);r(86605),r(14898)},96605:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,i){return'<div class="results-region"></div>'},useData:!0})},15709:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,i){return e.propertyIsEnumerable,"<h3>"+e.escapeExpression((r.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"header",{name:"lang",hash:{},data:i}))+'</h3>\n<div class="filters-region"></div>'},useData:!0})},28434:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,i){return'<div class="header-region"></div>\n<div class="results-region"></div>\n<div class="pagination-region"></div>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1911],{59054:function(e,t,n){"use strict";var o;n.d(t,{f:function(){return o}}),function(e){e.Share="share",e.MasterObject="masterobject"}(o||(o={}))},47022:function(e,t,n){"use strict";n.d(t,{Q:function(){return y}});var o=n(39479),r=n(31647),i=n(70065),l=n(52076),c=n(99186),a=n.n(c);function s(e){return s="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},s(e)}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===s(t)?t:String(t)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function d(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(y,e);var t,n,r,c,s=(r=y,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(c){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),s.call(this,e)}return t=y,(n=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return a()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var t=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous);+t<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,e[".previous-applink"]=n}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(e){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,(t={},n=this.options.cursorParamName,r=e,(n=f(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))};var t,n,r}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var t=l.k.mergeOptions(this.options.analyticsOptions,{location:i.LocationContext.Pagination,entity:i.EntityType.Pagination,actionType:i.UserAction.Navigate}),n={id:this.options.collectionId,page:e};l.k.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(r.Q.Component)},27719:function(e,t,n){"use strict";n.r(t),n.d(t,{FolderView:function(){return nt},SeriesView:function(){return ot}});var o=n(31647),r=n(21679),i=n(57857),l=n(99748),c=n(47022),a=n(77502),s=n(60602),u=n(71192),f=n(48090),p=n(70763),d=n(61843),h=n(29457),y=n(3059),b=n(23096),v=n(58688),m=n(48404),g=n(19226),k=n(26457),w=n(95061),O=n(51785),S=n(85552),E=n.n(S),C=n(21625),P=n(70065),j=n(22231),x=n(24828);function I(e){return I="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},I(e)}function R(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==I(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===I(r)?r:String(r)),o)}var r}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function T(e,t){if(t&&("object"===I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}var V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(l,e);var t,n,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=L(o);if(r){var n=L(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return T(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"BannerComponent"}},{key:"className",get:function(){var e=(0,j.x)(this.model.get("name"),x.o);return"px-3 position-relative rounded-top ".concat(C.Z.banner," ").concat(e)}},{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"attributes",get:function(){var e=d.jw.createBannerUrl(this.model.banner);return e?{style:"background-image: url('".concat(e,"')")}:null}},{key:"template",get:function(){return E()}},{key:"renderActions",value:function(){this.showChildView("options",new O.c({model:this.model,extraClasses:"".concat(C.Z.actions," rounded-circle mr-2 mt-2"),buttonClass:"text-light",analyticsOptions:{location:P.LocationContext.Banner}}))}},{key:"onRender",value:function(){this.renderActions()}}])&&R(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.Q.Component),B=n(87002),D=n(73368),A=n.n(D),M=n(63791),N={svgContainer:"mMWNm",caretClosed:"Fe74o"},F=n(4705);function H(e){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(e)}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==H(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==H(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===H(r)?r:String(r)),o)}var r}function W(e,t,n){return t&&Q(e.prototype,t),n&&Q(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y(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)}function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=G(e);if(t){var r=G(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return X(this,n)}}function X(e,t){if(t&&("object"===H(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}var Z="has:expanded:library:folders",J=function(e){Y(n,e);var t=z(n);function n(){return U(this,n),t.apply(this,arguments)}return W(n,[{key:"name",get:function(){return"SubFoldersCollectionView"}},{key:"className",get:function(){return"row px-2"}},{key:"childView",get:function(){return B.Y}},{key:"childViewOptions",get:function(){return{location:"subfolder"}}}]),n}(o.Q.ComponentCollection),$=function(e){Y(n,e);var t=z(n);function n(e){return U(this,n),t.call(this,e)}return W(n,[{key:"initialize",value:function(){this.forceExpanded=this.options.forceExpanded||this.collection.length<=6,this.forceExpanded?this.isExpanded=!0:this.isExpanded=F.SG.get(Z)||!1}},{key:"name",get:function(){return"SubFoldersView"}},{key:"className",get:function(){return"container-fluid pb-3"}},{key:"lang",get:function(){return"libraryEditor.subfolders"}},{key:"template",get:function(){return A()}},{key:"events",value:function(){return{"click .expand-toggle":"onClickExpandToggle"}}},{key:"regions",value:function(){return{subFolders:{replaceElement:!0,el:".subfolders-region"}}}},{key:"onClickExpandToggle",value:function(){this.options.forceExpanded||(this.isExpanded=!this.isExpanded,F.SG.set(Z,this.isExpanded),this.render())}},{key:"viewOptions",value:function(){return{styles:N,caretSvg:M.Nj.getSvg(M.vn.Caret),isExpanded:this.isExpanded,forceExpanded:this.forceExpanded,caretClass:this.isExpanded?"":N.caretClosed,count:this.collection.length}}},{key:"onRender",value:function(){this.showChildView("subFolders",new J({collection:this.isExpanded?this.collection:new o.Q.Collection(this.collection.first(6))}))}}]),n}(o.Q.Component),q=n(8420),ee=n.n(q),te=n(57085);function ne(e){return ne="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},ne(e)}function oe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==ne(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==ne(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===ne(r)?r:String(r)),o)}var r}function re(e,t){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},re(e,t)}function ie(e,t){if(t&&("object"===ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function le(e){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},le(e)}var ce=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&re(e,t)}(l,e);var t,n,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=le(o);if(r){var n=le(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ie(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"VideoListHeaderComponent"}},{key:"template",get:function(){return ee()}},{key:"className",get:function(){return this.options.folder?"px-3 mb-3":"mb-3"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1}}}},{key:"renderBreadcrumbs",value:function(){this.options.folder&&this.options.libraries&&this.showChildView("breadcrumbs",new te.n({folder:this.options.folder,libraries:this.options.libraries}))}},{key:"onBeforeRender",value:function(){return!!this.options.folder}},{key:"onRender",value:function(){this.renderBreadcrumbs()}}])&&oe(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.Q.Component),ae=n(56906),se=n(93089),ue=n.n(se),fe=n(98985),pe=n(25692),de=n(59054),he=n(56846),ye=n.n(he),be=n(12542),ve=n(40622),me=n(50028),ge=n(52076),ke=n(71641),we=n(34670),Oe=n.n(we);function Se(e){return Se="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},Se(e)}function Ee(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==Se(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==Se(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===Se(r)?r:String(r)),o)}var r}function Ce(e,t){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ce(e,t)}function Pe(e,t){if(t&&("object"===Se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function je(e){return je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},je(e)}var xe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ce(e,t)}(a,e);var t,n,r,l,c=(r=a,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=je(r);if(l){var n=je(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Pe(this,e)});function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),c.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"getViewModel",value:function(){var e=this.options.collectionIdentifier.toString();this.model=d.S0.GetViewModel(e,ve.CheckboxTypes.VIDEO_LIST)}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.collection,"remove",this.render)}},{key:"name",get:function(){return"BulkVideoActionsComponent"}},{key:"template",get:function(){return Oe()}},{key:"lang",get:function(){return"shared.bulkVideoActions"}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".dropdown-menu-region"}}}},{key:"getSelectedIds",value:function(){return d.S0.GetSelectedIds({key:this.options.collectionIdentifier.toString(),type:ve.CheckboxTypes.VIDEO_LIST,collection:this.collection,excludePredicate:function(e){return e.get("status")===me.X.Processing}})}},{key:"getActions",value:function(){if(this.options.collectionIdentifier){var e=this.getSelectedIds();return new o.Q.Collection([{title:i.T.getPhrase(this.lang,"move",{smartCount:e.length}),appLink:{application:this.options.application,action:f.eX.Shared.MOVE_VIDEOS,args:[e.join(","),this.options.collectionIdentifier.id]},analyticsOptions:ge.k.mergeOptions(this.options.analyticsOptions,{actionType:P.UserAction.Move,workflowPhase:P.WorkflowPhase.Start})},{title:i.T.getPhrase(this.lang,"remove",{smartCount:e.length}),appLink:{application:f.OV.LIBRARY_EDITOR,action:f.eX.Shared.DELETE_VIDEOS,args:[this.options.collectionIdentifier.id,e.join(",")]},analyticsOptions:ge.k.mergeOptions(this.options.analyticsOptions,{actionType:P.UserAction.Delete,workflowPhase:P.WorkflowPhase.Start}),classes:"text-danger"}])}}},{key:"viewOptions",value:function(){return{enabled:this.getSelectedIds().length}}},{key:"onRender",value:function(){this.showChildView("dropdownItems",new ke.w({displayOptions:{alignment:"right"},channelName:"".concat(this.name).concat(this.cid),collection:this.getActions(),analyticsHelper:ge.k}))}}])&&Ee(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Q.Component),Ie=n(39479),Re=n(53370),_e=n.n(Re);function Te(e){return Te="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},Te(e)}function Le(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==Te(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==Te(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===Te(r)?r:String(r)),o)}var r}function Ve(e,t){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ve(e,t)}function Be(e,t){if(t&&("object"===Te(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function De(e){return De=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},De(e)}var Ae=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ve(e,t)}(c,e);var t,n,r,i,l=(r=c,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=De(r);if(i){var n=De(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Be(this,e)});function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),l.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.getViewModel(),this.setSort(),this.bindListeners(),this.initializeCollection()}},{key:"getViewModel",value:function(){this.model=d.x$.GetSortViewModel()}},{key:"setSort",value:function(){var e=this.options.collectionIdentifier.sort;if(e!==this.model.get("sortType")){var t=d.x$.CreateSortObject(e);this.model.set(t)}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"sort:selected",this.onSortSelected)}},{key:"initializeCollection",value:function(){this.collection||(this.collection=d.x$.CreateSortCollection())}},{key:"name",get:function(){return"SortSelectComponent"}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"template",get:function(){return _e()}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){this.logAction(P.WorkflowPhase.Start)}},{key:"onSortSelected",value:function(e){this.model.set(e.toJSON()),this.render(),this.logAction(P.WorkflowPhase.Complete)}},{key:"logAction",value:function(e){var t=ge.k.mergeOptions(this.options.analyticsOptions,{actionType:P.UserAction.Sort,workflowPhase:e}),n={id:this.options.collectionIdentifier.id,sort:this.model.get("name")};ge.k.logUserAction(n,t)}},{key:"onRender",value:function(){var e=this,t=this.collection.filter((function(t){return t.get("name")!==e.model.get("name")})),n=new o.Q.Collection(Ie.map(t,(function(t){var n=t.toJSON();return n.appLink={application:e.options.appLink.application,action:e.options.appLink.action,args:[e.options.collectionIdentifier.id],params:{sort:t.get("sortName")}},n})));this.showChildView("dropdown",new ke.w({collection:n,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"sort:selected"},displayOptions:{alignment:"right"},analyticsHelper:ge.k}))}}])&&Le(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Q.Component);function Me(e){return Me="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},Me(e)}function Ne(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==Me(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==Me(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===Me(r)?r:String(r)),o)}var r}function Fe(e,t){return Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fe(e,t)}function He(e,t){if(t&&("object"===Me(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ue(e){return Ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ue(e)}var Qe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fe(e,t)}(l,e);var t,n,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ue(o);if(r){var n=Ue(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return He(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.analyticsOptions=ge.k.mergeOptions(this.options.analyticsOptions,{location:P.LocationContext.VideoListHeader})}},{key:"name",get:function(){return"VideoListSubheadingComponent"}},{key:"template",get:function(){return ye()}},{key:"className",get:function(){return"px-3"}},{key:"lang",get:function(){return"libraryEditor.videoListSubheading"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{checkAll:{el:".check-all-region",replaceElement:!1},bulkActions:{el:".bulk-actions-region",replaceElement:!0},sorting:{el:".sorting-region",replaceElement:!0}}}},{key:"renderCheckAll",value:function(){this.options.allowBulk&&this.showChildView("checkAll",new be.Y({className:"float-left",key:this.collectionIdentifier.toString(),type:ve.CheckboxTypes.VIDEO_LIST,numberOfItems:this.collection.length}))}},{key:"renderBulkActions",value:function(){this.options.allowBulk&&this.showChildView("bulkActions",new xe({collection:this.collection,collectionIdentifier:this.collectionIdentifier,application:this.options.application,analyticsOptions:ge.k.mergeOptions(this.options.analyticsOptions,{descriptor:P.OperationDescriptor.Bulk,location:P.LocationContext.VideoListHeader,entity:P.EntityType.Video,workflowPhase:P.WorkflowPhase.Start})}))}},{key:"renderSorting",value:function(){this.showChildView("sorting",new Ae({collectionIdentifier:this.collectionIdentifier,analyticsOptions:this.analyticsOptions,appLink:{application:this.options.application,action:this.options.action}}))}},{key:"viewOptions",value:function(){return{showBulkActions:this.options.allowBulk&&this.collection.length>0,showHeading:this.options.showHeading}}},{key:"onBeforeRender",value:function(){return!(this.collection.length<=0)}},{key:"onRender",value:function(){this.renderCheckAll(),this.renderBulkActions(),this.renderSorting()}}])&&Ne(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.Q.Component);function We(e){return We="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},We(e)}function Ye(){return Ye="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Ke(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},Ye.apply(this,arguments)}function Ke(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=et(e)););return e}function ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==We(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==We(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===We(r)?r:String(r)),o)}var r}function Ge(e,t,n){return t&&Xe(e.prototype,t),n&&Xe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ze(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&&Je(e,t)}function Je(e,t){return Je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Je(e,t)}function $e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=et(e);if(t){var r=et(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return qe(this,n)}}function qe(e,t){if(t&&("object"===We(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function et(e){return et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},et(e)}var tt=function(e){Ze(n,e);var t=$e(n);function n(e){return ze(this,n),t.call(this,e)}return Ge(n,[{key:"initialize",value:function(){this.bindListeners(),this.getSortType(),this.videoDataService=r.u.getInstance(f.Or.Video,this),this.libraryDataService=r.u.getInstance(f.Or.Library,this),this.pendingItemsService=r.u.getInstance(f.K9.PendingItems,this),this.localCacheDataService=r.u.getInstance(f.Or.LocalCache,this),this.playerDataService=r.u.getInstance(f.Or.Player,this),this.videoMixinService=r.u.getInstance(f.K9.VideoMixin,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"template",get:function(){return ue()}},{key:"className",get:function(){return"bg-white rounded"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{banner:{el:".banner-region",replaceElement:!0,partialLoading:h.LP.Banner},header:{el:".header-region",replaceElement:!0,partialLoading:h.LP.VideoListHeader},videoList:{el:".video-list-region",replaceElement:!0,partialLoading:h.LP.VideoListWithBulkActions},childFolders:{el:".child-folders-region",replaceElement:!1,partialLoading:h.LP.SubFolder},pagination:{el:".pagination-region",replaceElement:!0},subheading:{el:".subheading-region",replaceElement:!0,partialLoading:h.LP.VideoListSubheading}}}},{key:"bindListeners",value:function(){var e=this.options.collectionIdentifier.toString();this.listenTo(f.Vk.VIDEO,"".concat(e,":sync"),this.render),this.listenTo(f.Vk.VIDEO,"".concat(f.M_.DELETE_VIDEO,":sync"),this.fetchData),this.listenTo(f.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(f.Vk.RESTRICTED_VIDEO,"".concat(f.M_.RESTRICTED_OBJECTS,":").concat(e,":invalidate"),this.updateRestrictedVideos),this.listenTo(this.channelName,"cancel:pending:item",this.cancelPendingItem),this.listenTo(this.channelName,"retry:pending:item",this.retryPendingItem),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(f.Vk.LOCAL_CACHE,"".concat(f.M_.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(f.Vk.LOCAL_CACHE,"".concat(f.M_.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"getSortType",value:function(){this.sortType||(this.sortType=this.options.collectionIdentifier.sort)}},{key:"updateRestrictedVideos",value:function(){var e=this;this.videoMixinService.getAndMixinVideoCollectionRestrictions(this.videoCollection,this.collectionIdentifier,(function(){return e.render()}))}},{key:"cancelPendingItem",value:function(e){this.pendingItemsService.clearPendingItem(e)}},{key:"retryPendingItem",value:function(e){this.pendingItemsService.retryPendingItem(e)}},{key:"createViewKey",value:function(e,t){this.playerDataService.createViewKey(e,de.f.MasterObject,t)}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&(this.videosWithMetadata=new p.t(this.videoCollection.map((function(e){return new u.n({id:e.get("id")})}))))}},{key:"renderBanner",value:function(){var e=new V({model:this.model,channelName:this.channelName,imageCdnUrl:this.config.get("imageCdnUrl")});this.showChildView("banner",e)}},{key:"renderChildFolders",value:function(){var e;if(null===(e=this.folders)||void 0===e?void 0:e.length){var t=new $({collection:this.folders,forceExpanded:0===this.videoCollection.length});this.showChildView("childFolders",t)}}},{key:"renderHeader",value:function(){this.showChildView("header",new ce({collection:this.videoCollection,libraries:this.libraryCollection,folder:this.model instanceof s.g&&this.model}))}},{key:"renderSubheading",value:function(){var e;this.showChildView("subheading",new Qe({collection:this.videoCollection,application:f.OV.LIBRARY_EDITOR,action:this.appLinkAction(),allowBulk:this.allowBulk(),collectionIdentifier:this.collectionIdentifier,analyticsOptions:this.options.analyticsOptions,showHeading:!!(null===(e=this.folders)||void 0===e?void 0:e.length)}))}},{key:"renderVideoList",value:function(){var e,t=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),n=new b.Y({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:f.OV.LIBRARY_EDITOR,allowBulk:this.allowBulk(),collectionIdentifier:this.collectionIdentifier,config:this.config,pendingItems:this.pendingItemsService.getPendingItems(),videoItemComponentType:this.componentType,emptyStateType:this.emptyStateType(),emptyStateOptions:this.emptyStateOptions(),supportSiteUrl:this.config.get("supportSiteUrl"),collectionViewChannel:this.channelName,customerHasLocalCache:d.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),customerHasExchange:this.exchanges.any(),analyticsOptions:this.options.analyticsOptions,sourceMetadataOptions:{showFolder:this.showFolderSource(),libraries:this.libraryCollection},videoCollectionSource:this.getVideoCollectionSource(),currentUser:this.currentUser,playerApiUrl:this.config.get("playerApiUrl"),createViewKey:this.createViewKey,hasCursors:!!t,showEmptyState:!(null===(e=this.folders)||void 0===e?void 0:e.length),libraries:this.libraryCollection});this.showChildView("videoList",n)}},{key:"renderPagination",value:function(){var e=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),t=new c.Q({cursors:e,collectionId:this.options.collectionIdentifier.id,appLink:{application:f.OV.LIBRARY_EDITOR,action:this.appLinkAction(),args:[this.collectionIdentifier.id],params:this.collectionIdentifier.toParams()},analyticsOptions:this.options.analyticsOptions});this.showChildView("pagination",t)}},{key:"fetchData",value:function(){this.fetchModel(),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),this.fetchVideoCollection()}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var o=t.videosWithMetadata.get(e);o&&(o.set(n.toJSON()),o.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:m.p.config,currentUser:g.K.currentUser,libraryCollection:w.T.libraries,exchanges:w.T.exchanges}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.videoCollection&&(this.setVideosWithMetadata(),!!this.model)}},{key:"onRender",value:function(){this.renderBanner(),this.renderHeader(),this.renderChildFolders(),this.renderSubheading(),this.renderVideoList(),this.renderPagination()}}]),n}(o.Q.View),nt=function(e){Ze(n,e);var t=$e(n);function n(){return ze(this,n),t.apply(this,arguments)}return Ge(n,[{key:"name",get:function(){return"FolderView"}},{key:"lang",get:function(){return"libraryEditor.folderView"}},{key:"componentType",get:function(){return v.U.Draggable}},{key:"bindListeners",value:function(){this.listenTo(f.Vk.LIBRARY,"".concat(f.M_.FOLDER,":").concat(this.options.collectionIdentifier.id,":sync libraries:sync"),this.render),this.listenTo(f.Vk.LIBRARY,"".concat(f.M_.FOLDER,":").concat(this.options.collectionIdentifier.id,":error"),this.onError),this.listenTo(f.Vk.LIBRARY,"".concat(f.M_.UPDATE_FOLDER_BANNER,":").concat(this.options.collectionIdentifier.id,":sync"),this.fetchModel),this.listenTo(f.Vk.LIBRARY,"".concat(new y.KX(this.options.collectionIdentifier.id,a.E.AtoZ),":invalidate"),this.onFoldersInvalidate),Ye(et(n.prototype),"bindListeners",this).call(this)}},{key:"onError",value:function(e){switch(e.type){case l.h.Forbidden:o.Q.ErrorHelper.throw(new ae.gO);break;case l.h.NotFound:o.Q.ErrorHelper.throw(new ae.Zv)}}},{key:"appLinkAction",value:function(){return f.eX.LibraryEditor.FOLDER}},{key:"allowBulk",value:function(){return!0}},{key:"emptyStateType",value:function(){return h.ub.Folder}},{key:"emptyStateOptions",value:function(){return{heading:i.T.getPhrase(this.lang,"emptyStateHeading"),description:i.T.getPhrase(this.lang,"emptyStateInfo",{url:fe.o.getHybridArticle(pe.s.AddFromOnline,pe.b.AddFromLite),classNames:"info-link"})}}},{key:"showFolderSource",value:function(){return!1}},{key:"getVideoCollectionSource",value:function(){return k.x_.Folder}},{key:"fetchModel",value:function(){this.model=this.libraryDataService.getFolder(this.collectionIdentifier.id)}},{key:"fetchVideoCollection",value:function(){this.videoCollection=this.videoDataService.getCollectionVideos(this.collectionIdentifier)}},{key:"onFoldersInvalidate",value:function(){this.fetchFolders(null,!0)}},{key:"fetchFolders",value:function(e,t){var n=this,o=new y.KX(this.collectionIdentifier.id,a.E.AtoZ,e);this.libraryDataService.getFolders(o,(function(e){t||!n.folders?n.folders=e:n.folders.add(e.models);var r=n.libraryDataService.getFoldersCursors(o);(null==r?void 0:r.next)?n.fetchFolders(r.next):n.render()}))}},{key:"onBeforeRender",value:function(){return this.folders||this.fetchFolders(),Ye(et(n.prototype),"onBeforeRender",this).call(this)&&!!this.folders}}]),n}(tt),ot=function(e){Ze(n,e);var t=$e(n);function n(){return ze(this,n),t.apply(this,arguments)}return Ge(n,[{key:"initialize",value:function(){this.seriesDataService=r.u.getInstance(f.Or.Series,this),Ye(et(n.prototype),"initialize",this).call(this)}},{key:"name",get:function(){return"SeriesView"}},{key:"lang",get:function(){return"libraryEditor.seriesView"}},{key:"componentType",get:function(){return v.U.Base}},{key:"regions",value:function(){var e=Ye(et(n.prototype),"regions",this).call(this);return e.subheading.partialLoading=h.LP.SeriesVideoListSubheading,delete e.header.partialLoading,delete e.childFolders.partialLoading,e}},{key:"bindListeners",value:function(){this.listenTo(f.Vk.SERIES,"".concat(f.M_.SERIES,":").concat(this.options.collectionIdentifier.id,":sync"),this.render),this.listenTo(f.Vk.SERIES,"".concat(f.M_.SERIES,":").concat(this.options.collectionIdentifier.id,":error"),this.onError),Ye(et(n.prototype),"bindListeners",this).call(this)}},{key:"onError",value:function(e){e.type===l.h.NotFound&&o.Q.ErrorHelper.throw(new ae.Ag)}},{key:"appLinkAction",value:function(){return f.eX.LibraryEditor.SERIES}},{key:"allowBulk",value:function(){return!1}},{key:"emptyStateType",value:function(){return h.ub.Series}},{key:"emptyStateOptions",value:function(){return{heading:i.T.getPhrase(this.lang,"emptyStateHeading"),description:i.T.getPhrase(this.lang,"emptyStateInfo",{url:fe.o.getHybridArticle(pe.s.AddFromOnline,pe.b.AddFromLite),classNames:"info-link"})}}},{key:"showFolderSource",value:function(){return!0}},{key:"getVideoCollectionSource",value:function(){return k.x_.Series}},{key:"fetchModel",value:function(){this.model=this.seriesDataService.getSeries(this.collectionIdentifier.id)}},{key:"fetchVideoCollection",value:function(){this.videoCollection=this.videoDataService.getSeriesVideos(this.collectionIdentifier,this.libraryCollection.pluck("id"))}}]),n}(tt)},57085:function(e,t,n){"use strict";n.d(t,{n:function(){return P}});var o=n(31647),r=n(93933),i=n.n(r),l=n(86363),c=n.n(l);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===a(r)?r:String(r)),o)}var r}function f(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=b(e);if(t){var r=b(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return y(this,n)}}function y(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var v=function(e){p(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return c()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}]),n}(o.Q.Component),m=function(e){p(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return v}}]),n}(o.Q.ComponentCollection),g=n(22557),k=n(48090);function w(e){return w="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},w(e)}function O(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==w(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==w(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===w(r)?r:String(r)),o)}var r}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function E(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(a,e);var t,n,r,l,c=(r=a,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=C(r);if(l){var n=C(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return E(this,e)});function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),c.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return i()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var e=this;this.breadcrumbCollection=new o.Q.Collection([]);var t,n=this.options.folder;do{if(!n)break;if(t=g.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!t),{at:0}),!t)break;n=t}while(t);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:k.OV.LIBRARY_EDITOR,action:k.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(t){return e.breadcrumbCollection.add(t)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?k.eX.LibraryEditor.FOLDER:k.eX.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:k.OV.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new m({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&O(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Q.Component)},99186:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,a=e.escapeExpression;return'<div class="p-3">\n <a class="btn previous-applink btn-outline-dark '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.previous:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+a((n.lang||t&&t.lang||c).call(l,"previous",{name:"lang",hash:{},data:r}))+'</a>\n <a class="btn next-applink btn-outline-dark '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.next:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+a((n.lang||t&&t.lang||c).call(l,"next",{name:"lang",hash:{},data:r}))+"</a>\n</div>"},useData:!0})},85552:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<h1 class="text-white position-absolute m-0">\n '+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+'\n</h1>\n<div class="options-region"></div>'},useData:!0})},53370:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<button class="btn btn-outline-dark dropdown-toggle" type="button" id="sortSelectButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n '+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+'\n</button>\n<div class="dropdown-menu-region"></div>'},useData:!0})},73368:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"pl-2"},3:function(e,t,n,o,r){return"cursor-pointer"},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression;return' <div class="'+c(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+" "+c(l(null!=(i=null!=t?t.options:t)?i.caretClass:i,t))+'">\n '+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.caretSvg:i,t))?i:"")+"\n </div>\n"},7:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,' <div class="d-flex justify-content-end justify-self-end px-2 expand-toggle">\n <span class="info-link d-inline-block">\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.isExpanded:i,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.program(10,r,0),data:r}))?i:"")+" </span>\n </div>\n"},8:function(e,t,n,o,r){return e.propertyIsEnumerable," "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeLess",{name:"lang",hash:{},data:r}))+"\n"},10:function(e,t,n,o,r){var i;return e.propertyIsEnumerable," "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.count:i},data:r}))+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},c=e.escapeExpression;return'<div class="d-flex justify-content-between align-items-center">\n <div class="d-inline-flex align-items-center mb-2 expand-toggle '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.forceExpanded:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'">\n'+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.forceExpanded:i,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' <h2 class="h4 mb-0">'+c((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folders",{name:"lang",hash:{},data:r}))+" ("+c(e.lambda(null!=(i=null!=t?t.options:t)?i.count:i,t))+")</h2>\n </div>\n"+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.forceExpanded:i,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\n<div class="subfolders-region"></div>'},useData:!0})},8420:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="py-3 border-bottom">\n <div class="breadcrumbs-region d-inline-flex align-items-center"></div>\n</div>'},useData:!0})},56846:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,'<h2 class="h4">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"videos",{name:"lang",hash:{},data:r}))+"</h2>"},3:function(e,t,n,o,r){return"pt-2"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showHeading:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\n<div class="d-flex justify-content-between align-items-center pb-2 '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showHeading:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <div class="d-inline-flex justify-content-start">\n <div class="check-all-region d-inline-flex align-items-center"></div>\n <div class="bulk-actions-region"></div>\n </div>\n <div class="sorting-region"></div>\n</div>'},useData:!0})},93089:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="banner-region"></div>\n<div class="header-region"></div>\n<div class="child-folders-region"></div>\n<div class="subheading-region"></div>\n<div class="video-list-region"></div>\n<div class="pagination-region"></div>'},useData:!0})},86363:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<span class="font-weight-bolder">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</span>\n"},3:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,"<a>"+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.isActive:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},93933:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},34670:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<button\n class="dropdown-toggle btn btn-outline-dark ml-2 '+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.enabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'"\n type="button"\n id="bulkActions"\n data-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n '+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.enabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+"\n>\n "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"options",{name:"lang",hash:{},data:r}))+'\n</button>\n<div class="dropdown-menu-region"></div>'},useData:!0})}}]);