@clickview/library-editor 1.64.0-rc.1 → 1.64.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 (214) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/languages/en.json +1 -1
  3. package/dist/scripts/1010-5488aa2ff0.chunk.js +1 -0
  4. package/dist/scripts/1115-ea197312ba.chunk.js +1 -0
  5. package/dist/scripts/1200-5edfc011db.chunk.js +1 -0
  6. package/dist/scripts/1318-3fc90ae380.chunk.js +1 -0
  7. package/dist/scripts/1524-0256080e94.chunk.js +1 -0
  8. package/dist/scripts/1752-1cc77fb182.chunk.js +1 -0
  9. package/dist/scripts/1934-1deec5c14f.chunk.js +2 -0
  10. package/dist/scripts/2035-550073891d.chunk.js +1 -0
  11. package/dist/scripts/2539-4aab3368d8.chunk.js +1 -0
  12. package/dist/scripts/2591-06b808d96f.chunk.js +1 -0
  13. package/dist/scripts/2781-080a819ebe.chunk.js +2 -0
  14. package/dist/scripts/2781-080a819ebe.chunk.js.LICENSE.txt +1 -0
  15. package/dist/scripts/2803-b9bcf14dbc.chunk.js +1 -0
  16. package/dist/scripts/2888-bc66454b24.chunk.js +1 -0
  17. package/dist/scripts/299-f4a952cbbf.chunk.js +1 -0
  18. package/dist/scripts/3236-6a7cb9be48.chunk.js +2 -0
  19. package/dist/scripts/3236-6a7cb9be48.chunk.js.LICENSE.txt +1 -0
  20. package/dist/scripts/3305-5e7276a25d.chunk.js +1 -0
  21. package/dist/scripts/336-aaaad34c63.chunk.js +2 -0
  22. package/dist/scripts/336-aaaad34c63.chunk.js.LICENSE.txt +1 -0
  23. package/dist/scripts/3373-0b8fc10032.chunk.js +1 -0
  24. package/dist/scripts/3391-7d6d13408d.chunk.js +1 -0
  25. package/dist/scripts/3400-0cf6cbede5.chunk.js +1 -0
  26. package/dist/scripts/3450-4284a60805.chunk.js +1 -0
  27. package/dist/scripts/3475-8a3623ae22.chunk.js +1 -0
  28. package/dist/scripts/3639-ff8bf51fe5.chunk.js +1 -0
  29. package/dist/scripts/3643-cc5b2ec6d9.chunk.js +1 -0
  30. package/dist/scripts/3664-c8fe2e77de.chunk.js +1 -0
  31. package/dist/scripts/3763-93c217e1d6.chunk.js +1 -0
  32. package/dist/scripts/3873-a70c87d3a8.chunk.js +1 -0
  33. package/dist/scripts/4096-f73b3f1eb3.chunk.js +1 -0
  34. package/dist/scripts/4201-9fb1d6fa7e.chunk.js +1 -0
  35. package/dist/scripts/4245-ea180d7240.chunk.js +1 -0
  36. package/dist/scripts/4327-274f834810.chunk.js +1 -0
  37. package/dist/scripts/4567-ea4c943187.chunk.js +1 -0
  38. package/dist/scripts/4591-3158e38f59.chunk.js +1 -0
  39. package/dist/scripts/4796-715e3f2b8b.chunk.js +2 -0
  40. package/dist/scripts/4796-715e3f2b8b.chunk.js.LICENSE.txt +1 -0
  41. package/dist/scripts/5173-5459fe9617.chunk.js +1 -0
  42. package/dist/scripts/5180-35612cb57e.chunk.js +1 -0
  43. package/dist/scripts/5327-90b0daeedd.chunk.js +1 -0
  44. package/dist/scripts/5346-96ba841e31.chunk.js +1 -0
  45. package/dist/scripts/5412-806e4b03b6.chunk.js +1 -0
  46. package/dist/scripts/5418-d9b73741e6.chunk.js +1 -0
  47. package/dist/scripts/5424-e6d5e20449.chunk.js +1 -0
  48. package/dist/scripts/5513-ce9c27b731.chunk.js +1 -0
  49. package/dist/scripts/576-275aeaa88a.chunk.js +1 -0
  50. package/dist/scripts/5972-bd6ca57952.chunk.js +1 -0
  51. package/dist/scripts/6239-b216beeef2.chunk.js +1 -0
  52. package/dist/scripts/6350-fe2f5d07ae.chunk.js +1 -0
  53. package/dist/scripts/6439-8af974fe93.chunk.js +1 -0
  54. package/dist/scripts/6450-179a533a35.chunk.js +1 -0
  55. package/dist/scripts/6467-e4856f0f90.chunk.js +1 -0
  56. package/dist/scripts/6567-e6d3411b91.chunk.js +2 -0
  57. package/dist/scripts/{6567-02b07e94bc.chunk.js.LICENSE.txt → 6567-e6d3411b91.chunk.js.LICENSE.txt} +1 -1
  58. package/dist/scripts/6587-a52e6ae3db.chunk.js +1 -0
  59. package/dist/scripts/6591-1f53a56a4f.chunk.js +1 -0
  60. package/dist/scripts/6677-679046f587.chunk.js +1 -0
  61. package/dist/scripts/6697-72ac40931d.chunk.js +1 -0
  62. package/dist/scripts/6768-945c9c69c7.chunk.js +1 -0
  63. package/dist/scripts/6774-e23988f663.chunk.js +1 -0
  64. package/dist/scripts/6788-40d07b7ac5.chunk.js +1 -0
  65. package/dist/scripts/6796-2744de7ac8.chunk.js +1 -0
  66. package/dist/scripts/7071-21381973d1.chunk.js +1 -0
  67. package/dist/scripts/7182-700d11a1b6.chunk.js +2 -0
  68. package/dist/scripts/7190-9f654e9bab.chunk.js +1 -0
  69. package/dist/scripts/7197-46b37cfd17.chunk.js +2 -0
  70. package/dist/scripts/7197-46b37cfd17.chunk.js.LICENSE.txt +1 -0
  71. package/dist/scripts/7366-438b9e40d9.chunk.js +1 -0
  72. package/dist/scripts/7384-738b216ce5.chunk.js +1 -0
  73. package/dist/scripts/775-f94fdf08a6.chunk.js +1 -0
  74. package/dist/scripts/777-ad756c2420.chunk.js +2 -0
  75. package/dist/scripts/777-ad756c2420.chunk.js.LICENSE.txt +1 -0
  76. package/dist/scripts/7925-afa4ac58db.chunk.js +2 -0
  77. package/dist/scripts/8113-f198ecf002.chunk.js +1 -0
  78. package/dist/scripts/8143-3881cf510e.chunk.js +1 -0
  79. package/dist/scripts/8306-7a937af758.chunk.js +1 -0
  80. package/dist/scripts/8362-e513473f50.chunk.js +1 -0
  81. package/dist/scripts/8542-29e39900a1.chunk.js +1 -0
  82. package/dist/scripts/8591-4b212ec72d.chunk.js +1 -0
  83. package/dist/scripts/8757-218873f759.chunk.js +2 -0
  84. package/dist/scripts/8797-d74aa54767.chunk.js +1 -0
  85. package/dist/scripts/8862-d4faaa1043.chunk.js +1 -0
  86. package/dist/scripts/8915-60cef85b59.chunk.js +1 -0
  87. package/dist/scripts/8989-f5a1466541.chunk.js +1 -0
  88. package/dist/scripts/9011-8ad9cd886b.chunk.js +1 -0
  89. package/dist/scripts/9037-8ee5edeb0f.chunk.js +1 -0
  90. package/dist/scripts/9082-6ae95039ff.chunk.js +1 -0
  91. package/dist/scripts/9090-9d0aafabc4.chunk.js +1 -0
  92. package/dist/scripts/9096-a05aba009e.chunk.js +1 -0
  93. package/dist/scripts/9219-a62eb8dec1.chunk.js +1 -0
  94. package/dist/scripts/9357-cacc922e17.chunk.js +1 -0
  95. package/dist/scripts/9376-a690087044.chunk.js +1 -0
  96. package/dist/scripts/95-14875ad65e.chunk.js +1 -0
  97. package/dist/scripts/9620-47637ac50e.chunk.js +1 -0
  98. package/dist/scripts/968-4da16290ef.chunk.js +1 -0
  99. package/dist/scripts/9734-a32f5aa1b8.chunk.js +1 -0
  100. package/dist/scripts/9743-1a17ae4c30.chunk.js +1 -0
  101. package/dist/scripts/9766-22dd736844.chunk.js +2 -0
  102. package/dist/scripts/9825-40ead8d7a8.chunk.js +1 -0
  103. package/dist/scripts/9928-7069d8d073.chunk.js +1 -0
  104. package/dist/scripts/bundle-a45fdccb10.min.js +2 -0
  105. package/dist/scripts/{bundle-7c1c669253.min.js.LICENSE.txt → bundle-a45fdccb10.min.js.LICENSE.txt} +1 -1
  106. package/dist/scripts/polyfills-be59146258.min.js +1 -0
  107. package/package.json +1 -1
  108. package/dist/scripts/1010-9c54dac5ec.chunk.js +0 -1
  109. package/dist/scripts/1115-189174d1dd.chunk.js +0 -1
  110. package/dist/scripts/1200-9c85c3d5ca.chunk.js +0 -1
  111. package/dist/scripts/1318-11b8de6498.chunk.js +0 -1
  112. package/dist/scripts/1524-ae7b7beeda.chunk.js +0 -1
  113. package/dist/scripts/1752-111d0ad14d.chunk.js +0 -1
  114. package/dist/scripts/1934-84460445ad.chunk.js +0 -2
  115. package/dist/scripts/2035-4bf3392b3a.chunk.js +0 -1
  116. package/dist/scripts/2539-915297f0b5.chunk.js +0 -1
  117. package/dist/scripts/2591-730e72b14a.chunk.js +0 -1
  118. package/dist/scripts/2781-efa54c8c8c.chunk.js +0 -2
  119. package/dist/scripts/2781-efa54c8c8c.chunk.js.LICENSE.txt +0 -1
  120. package/dist/scripts/2803-d7cf29380f.chunk.js +0 -1
  121. package/dist/scripts/2888-97c3b4f37c.chunk.js +0 -1
  122. package/dist/scripts/299-f415ca8856.chunk.js +0 -1
  123. package/dist/scripts/3236-24a5bf1bb8.chunk.js +0 -2
  124. package/dist/scripts/3236-24a5bf1bb8.chunk.js.LICENSE.txt +0 -1
  125. package/dist/scripts/3305-d21eab0110.chunk.js +0 -1
  126. package/dist/scripts/336-86a858ee3c.chunk.js +0 -2
  127. package/dist/scripts/336-86a858ee3c.chunk.js.LICENSE.txt +0 -1
  128. package/dist/scripts/3373-c35e99d4f4.chunk.js +0 -1
  129. package/dist/scripts/3391-c1544af17d.chunk.js +0 -1
  130. package/dist/scripts/3400-7a082a0377.chunk.js +0 -1
  131. package/dist/scripts/3450-2b77dc7d81.chunk.js +0 -1
  132. package/dist/scripts/3475-c2090d0f65.chunk.js +0 -1
  133. package/dist/scripts/3639-a0854003d2.chunk.js +0 -1
  134. package/dist/scripts/3643-877406d207.chunk.js +0 -1
  135. package/dist/scripts/3664-7bab52835f.chunk.js +0 -1
  136. package/dist/scripts/3763-7ae73d91fa.chunk.js +0 -1
  137. package/dist/scripts/3873-32cef8b267.chunk.js +0 -1
  138. package/dist/scripts/4096-2f0afc78f8.chunk.js +0 -1
  139. package/dist/scripts/4201-f856bd659a.chunk.js +0 -1
  140. package/dist/scripts/4245-09abccc77c.chunk.js +0 -1
  141. package/dist/scripts/4327-b8cd9a74f9.chunk.js +0 -1
  142. package/dist/scripts/4567-3ca6ef4308.chunk.js +0 -1
  143. package/dist/scripts/4591-7f81bdcc51.chunk.js +0 -1
  144. package/dist/scripts/4796-1330a255f5.chunk.js +0 -2
  145. package/dist/scripts/4796-1330a255f5.chunk.js.LICENSE.txt +0 -1
  146. package/dist/scripts/5173-9338a14ee3.chunk.js +0 -1
  147. package/dist/scripts/5180-542a42cb27.chunk.js +0 -1
  148. package/dist/scripts/5327-c4b6d0885a.chunk.js +0 -1
  149. package/dist/scripts/5346-4a50d1fd29.chunk.js +0 -1
  150. package/dist/scripts/5412-9a31b69a02.chunk.js +0 -1
  151. package/dist/scripts/5418-a9d060f9d0.chunk.js +0 -1
  152. package/dist/scripts/5424-843a480e1a.chunk.js +0 -1
  153. package/dist/scripts/5513-1c7c464e84.chunk.js +0 -1
  154. package/dist/scripts/576-b7bc67c359.chunk.js +0 -1
  155. package/dist/scripts/5972-e170671a7c.chunk.js +0 -1
  156. package/dist/scripts/6239-b13c96eaf8.chunk.js +0 -1
  157. package/dist/scripts/6350-ebae8f11b0.chunk.js +0 -1
  158. package/dist/scripts/6439-8aac0bd92a.chunk.js +0 -1
  159. package/dist/scripts/6450-8de9792b20.chunk.js +0 -1
  160. package/dist/scripts/6467-eae5f517db.chunk.js +0 -1
  161. package/dist/scripts/6567-02b07e94bc.chunk.js +0 -2
  162. package/dist/scripts/6587-2e97f69e7a.chunk.js +0 -1
  163. package/dist/scripts/6591-62947b6aea.chunk.js +0 -1
  164. package/dist/scripts/6677-5c66883ffc.chunk.js +0 -1
  165. package/dist/scripts/6697-efdc49a3ce.chunk.js +0 -1
  166. package/dist/scripts/6768-416924be66.chunk.js +0 -1
  167. package/dist/scripts/6774-7ed47e1b8c.chunk.js +0 -1
  168. package/dist/scripts/6788-5ad863550d.chunk.js +0 -1
  169. package/dist/scripts/6796-d47d2fa948.chunk.js +0 -1
  170. package/dist/scripts/7071-e41e06917b.chunk.js +0 -1
  171. package/dist/scripts/7182-e45ad5e0fe.chunk.js +0 -2
  172. package/dist/scripts/7190-3b8aefddee.chunk.js +0 -1
  173. package/dist/scripts/7197-35da0227f2.chunk.js +0 -2
  174. package/dist/scripts/7197-35da0227f2.chunk.js.LICENSE.txt +0 -1
  175. package/dist/scripts/7366-4b7b22791a.chunk.js +0 -1
  176. package/dist/scripts/7384-8f86b79bd6.chunk.js +0 -1
  177. package/dist/scripts/775-96028af5a8.chunk.js +0 -1
  178. package/dist/scripts/777-03d78e4162.chunk.js +0 -2
  179. package/dist/scripts/777-03d78e4162.chunk.js.LICENSE.txt +0 -1
  180. package/dist/scripts/7925-b80cab7a7a.chunk.js +0 -2
  181. package/dist/scripts/8113-fa8be2fe60.chunk.js +0 -1
  182. package/dist/scripts/8143-3c844e6f7b.chunk.js +0 -1
  183. package/dist/scripts/8306-7e1ecc6b80.chunk.js +0 -1
  184. package/dist/scripts/8362-976c6b3cfc.chunk.js +0 -1
  185. package/dist/scripts/8542-a96ff58cda.chunk.js +0 -1
  186. package/dist/scripts/8591-047736d51e.chunk.js +0 -1
  187. package/dist/scripts/8757-9ff47570ba.chunk.js +0 -2
  188. package/dist/scripts/8797-2e772deab9.chunk.js +0 -1
  189. package/dist/scripts/8862-292b678cef.chunk.js +0 -1
  190. package/dist/scripts/8915-e31f2d1282.chunk.js +0 -1
  191. package/dist/scripts/8989-1ca7a01335.chunk.js +0 -1
  192. package/dist/scripts/9011-4862aa077d.chunk.js +0 -1
  193. package/dist/scripts/9037-7ce5f91571.chunk.js +0 -1
  194. package/dist/scripts/9082-ad6d7d2f96.chunk.js +0 -1
  195. package/dist/scripts/9090-42d71ef295.chunk.js +0 -1
  196. package/dist/scripts/9096-ce7dabfccf.chunk.js +0 -1
  197. package/dist/scripts/9219-5a71a27c3e.chunk.js +0 -1
  198. package/dist/scripts/9357-64d247d840.chunk.js +0 -1
  199. package/dist/scripts/9376-fa6bc20209.chunk.js +0 -1
  200. package/dist/scripts/95-d04a83d83f.chunk.js +0 -1
  201. package/dist/scripts/9620-3ba8334ebc.chunk.js +0 -1
  202. package/dist/scripts/968-b8e7ead008.chunk.js +0 -1
  203. package/dist/scripts/9734-bf7adc8154.chunk.js +0 -1
  204. package/dist/scripts/9743-d88fb1f700.chunk.js +0 -1
  205. package/dist/scripts/9766-da39830c71.chunk.js +0 -2
  206. package/dist/scripts/9825-965bc63629.chunk.js +0 -1
  207. package/dist/scripts/9928-0d83a09f31.chunk.js +0 -1
  208. package/dist/scripts/bundle-7c1c669253.min.js +0 -2
  209. package/dist/scripts/polyfills-4c06ebd0dd.min.js +0 -1
  210. /package/dist/scripts/{1934-84460445ad.chunk.js.LICENSE.txt → 1934-1deec5c14f.chunk.js.LICENSE.txt} +0 -0
  211. /package/dist/scripts/{7182-e45ad5e0fe.chunk.js.LICENSE.txt → 7182-700d11a1b6.chunk.js.LICENSE.txt} +0 -0
  212. /package/dist/scripts/{7925-b80cab7a7a.chunk.js.LICENSE.txt → 7925-afa4ac58db.chunk.js.LICENSE.txt} +0 -0
  213. /package/dist/scripts/{8757-9ff47570ba.chunk.js.LICENSE.txt → 8757-218873f759.chunk.js.LICENSE.txt} +0 -0
  214. /package/dist/scripts/{9766-da39830c71.chunk.js.LICENSE.txt → 9766-22dd736844.chunk.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[775],{79665:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var o=n(43823),r=n(21161),i=n(57857),l=n(31647),c=n(52076),u=n(75226),s=n(93569),a=n(58315),p=n.n(a);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 d(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,y(o.key),o)}}function y(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var v=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),function(e,t,n){return t=b(t),function(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)}(e,h()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}(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&&m(e,t)}(t,e),n=t,(l=[{key:"initialize",value:function(){this.bindListeners(),s.yV.deselectAll(this.collection),s.yV.setSelected(this.options.currentLibraryId,this.collection)}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return p()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",function(t){o.Radio.channel(e.options.channelName).trigger("library:selected",t)})}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(r.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new u.H({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||i.T.getPhrase(this.lang,"placeholder"),noOptionsText:i.T.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:c.k}))}}])&&d(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,l}(l.Q.wA)},71641:function(e,t,n){"use strict";n.d(t,{w:function(){return f}});var o=n(21161),r=n(31647),i=n(55142);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 c(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,u(o.key),o)}}function u(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.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(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f=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),function(e,t,n){return t=a(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,s()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n))}(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&&p(e,t)}(t,e),n=t,r=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return i.N}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(e,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,o=e.extraClasses,r="dropdown-menu-".concat(n);return o&&(r="".concat(r," ").concat(o)),r}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}],r&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.$W)},75226:function(e,t,n){"use strict";n.d(t,{H:function(){return m}});var o=n(43823),r=n(21161),i=n(31647),l=n(71641),c=n(93569),u=n(46635),s=n.n(u),a={dropdownMenu:"oKdKI",selectButton:"fTeoW",disabled:"gZbQ4"};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 f(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,d(o.key),o)}}function d(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}var m=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=h(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,y()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}(this,t,[e])).selectSearch="",n.sameCharIndex=1,n.optionStep=1,n}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&&b(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return s()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){c.yV.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(c.yV.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(c.yV.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=c.yV.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=c.yV.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(c.yV.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=r.find(this.collection.models,function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())})),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=r.filter(this.collection.models,function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e});if(n.length>1){var o=n[this.sameCharIndex];return o||(o=r.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return r.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout(function(){e.selectSearch=""},500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!r.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(o))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=c.yV.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.w({collection:this.collection,channelName:this.options.channelName,childOptions:r.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}}],i&&f(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},75917:function(e,t,n){"use strict";n.d(t,{Y:function(){return m}});var o=n(43823),r=n(57857),i=n(31647),l=n(50299),c=n(93569),u=n(68979),s=n.n(u),a={selectBtn:"tZUtI",list:"MxlSt",selector:"qHvbU",maxHeight:"jp36d",customItem:"aJzJB"};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 f(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,d(o.key),o)}}function d(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}var m=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),function(e,t,n){return t=h(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,y()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}(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&&b(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce(function(e,t){return Object.assign(Object.assign({},e),(n={},r=!0,(o=d(o=t))in n?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r,n));var n,o,r},{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return s()}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".button-text"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),o.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var o=c.PU.getSelected(this.options.folderTreeKey,this.collection),i=o?o.get("name"):r.T.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.J({styles:a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew,dropdown:this.options.dropdown}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}],i&&f(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return f}});var o=n(31647),r=n(88172);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 l(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(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,u(o.key),o)}}function u(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=a(t),function(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)}(e,s()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n))}(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,(o=[{key:"defaults",value:function(){return l(l({},r.ZV.Disabled,!0),r.ZV.Hidden,!1)}}])&&c(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.Hn)},58315:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="dropdown-menu-region"></div>\n<div class="form-feedback"></div>'},useData:!0})},46635:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3: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=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<button \n class="dropdown-toggle form-control text-start position-relative '+c(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" \n type="button" \n id="dropdownMenuButton" \n data-bs-toggle="dropdown" \n aria-haspopup="true" \n aria-expanded="false"\n '+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' \n name="'+c(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\n >\n '+c(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\n</button>\n<div class="dropdown-region"></div>\n<div class="form-feedback"></div>'},useData:!0})},68979:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression;return' <button\n class="'+c(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' form-select form-control"\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n name='+c(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\n >\n <span class="d-block text-truncate button-text">\n '+c(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'\n </span>\n </button>\n<div class="dropdown-menu '+c(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\n'},3:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,"border rounded-3 "+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.maxHeight:i,t))},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn fw-bold rounded-0 rounded-bottom-lg w-100 text-start '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:r}))+"</button>\n"},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.dropdown:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="'+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' overflow-auto" name='+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))+'>\n <div class="selector-region"></div>\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\n<div class="form-feedback"></div>'},useData:!0})}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 777-ad756c2420.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[777],{79472:function(e,t,r){"use strict";r.d(t,{W:function(){return b}});var n=r(43823),i=r(57857),o=r(31647),a=r(57085),s=r(65078),c=r(45390),u=r(43791),l=r.n(u),h={svgContainer:"mtegw"};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 d(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,f(n.key),n)}}function f(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.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 y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}var b=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),function(e,t,r){return t=m(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,y()?Reflect.construct(t,r||[],m(e).constructor):t.apply(e,r))}(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&&v(e,t)}(t,e),r=t,(o=[{key:"name",get:function(){return"EditVideoTabsComponent"}},{key:"className",get:function(){return"bg-white"}},{key:"regions",value:function(){return{tabs:{el:".tabs-region",replaceElement:!0},breadcrumbs:{el:".breadcrumbs-region",replaceElement:!0}}}},{key:"lang",get:function(){return"libraryEditor.editVideoTabs"}},{key:"template",get:function(){return l()}},{key:"viewOptions",value:function(){return{styles:h}}},{key:"onSave",value:function(){n.Radio.channel(c.OV.LIBRARY_EDITOR).trigger(c.eX.LibraryEditor.SAVE_VIDEO)}},{key:"getLocationBreadcrumb",value:function(){switch(this.options.context){case"edit":return{name:i.T.getPhrase(this.lang,"videoDetails")};case"chapters":return{name:i.T.getPhrase(this.lang,"chapters")};case"resources":return{name:i.T.getPhrase(this.lang,"resources")}}}},{key:"onRender",value:function(){this.showChildView("tabs",new s.n({tabs:this.options.tabs,activeTab:this.options.activeTab})),this.showChildView("breadcrumbs",new a.n({folder:this.options.folder,libraries:this.options.libraries,video:this.model,customBreadcrumbs:[this.getLocationBreadcrumb()],enableLastItemAppLink:!1}))}}])&&d(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(o.Q.wA)},61596:function(e,t,r){"use strict";r.d(t,{$:function(){return s}});var n=r(21161),i=r(57857),o=r(93569),a="libraryEditor.utils",s={isValidChapterTime:function(e,t,r,i){if(i){if(!n.isNumber(t))return c.StartTime.Invalid();if(t<0)return c.StartTime.Invalid();if(t>o.X4.millisecondsToSeconds(r))return c.StartTime.Exceeds();if(i.some(function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("startTime")===t}))return c.StartTime.Exists()}},isValidChapterName:function(e,t,r){return t?t.length>255?c.Name.MaxLength():r.some(function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("name").trim()===t.trim()})?c.Name.Exists():n.isEmpty(t.trim())?c.Name.Invalid():void 0:c.Name.Invalid()}},c={Name:{Invalid:function(){return i.T.getPhrase(a,"chapterNameInvalid")},Exists:function(){return i.T.getPhrase(a,"chapterNameExists")},MaxLength:function(){return i.T.getPhrase(a,"chapterNameExceeds")}},StartTime:{Invalid:function(){return i.T.getPhrase(a,"chapterStartTimeInvalid")},Exists:function(){return i.T.getPhrase(a,"chapterStartTimeExists")},Exceeds:function(){return i.T.getPhrase(a,"chapterStartTimeExceeds")}}}},16704:function(e,t,r){"use strict";r.r(t),r.d(t,{EditChaptersView:function(){return R}});var n=r(99748),i=r(21679),o=r(57857),a=r(31647),s=r(52076),c=r(70065),u=r(59054),l=r(13156),h=r(57e3),p=r(10079),d=r(45390),f=r(29457),y=r(74749),m=r(48404),v=r(19226),b=r(93569),g=r(264),w=r(45114),T=r(71733),k=r(79472),C=r(40622),E=r(56906),O=r(95061),S=r(61159),P=r.n(S);function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function j(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var c=n&&n.prototype instanceof s?n:s,u=Object.create(c.prototype);return _(u,"_invoke",function(r,n,i){var o,s,c,u=0,l=i||[],h=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return o=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!h&&u&&!i&&t<l.length;t++){var i,o=l[t],d=p.p,f=o[2];r>3?(i=f===n)&&(c=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=r<2&&d<o[1])?(s=0,p.v=n,p.n=o[1]):d<f&&(i=r<3||o[0]>n||n>f)&&(o[4]=r,o[5]=n,p.n=f,s=0))}if(i||r>1)return a;throw h=!0,n}return function(i,l,f){if(u>1)throw TypeError("Generator is already running");for(h&&1===l&&d(l,f),s=l,c=f;(t=s<2?e:c)||!h;){o||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(h=p.n<0)?c:r.call(n,p))!==a)break}catch(t){o=e,s=1,c=t}finally{u=1}}return{value:t,done:h}}}(r,i,o),!0),u}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(_(t={},n,function(){return this}),t),h=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,_(e,i,"GeneratorFunction")),e.prototype=Object.create(h),e}return c.prototype=u,_(h,"constructor",u),_(u,"constructor",c),c.displayName="GeneratorFunction",_(u,i,"GeneratorFunction"),_(h),_(h,i,"Generator"),_(h,n,function(){return this}),_(h,"toString",function(){return"[object Generator]"}),(j=function(){return{w:o,m:p}})()}function _(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}_=function(e,t,r,n){if(t)i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r;else{var o=function(t,r){_(e,t,function(e){return this._invoke(t,r,e)})};o("next",0),o("throw",1),o("return",2)}},_(e,t,r,n)}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function D(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,I(n.key),n)}}function I(e){var t=function(e){if("object"!=V(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=V(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==V(t)?t:t+""}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!e})()}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}var R=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=x(t),function(e,t){if(t&&("object"==V(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,L()?Reflect.construct(t,r||[],x(e).constructor):t.apply(e,r))}(this,t,[e]))._viewKeyRequested=!1,r}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&&A(e,t)}(t,e),r=t,(S=[{key:"initialize",value:function(){this.bindListeners(),this.initializeDataServices(),b.Si.initBackButton()}},{key:"name",get:function(){return"EditVideoChaptersView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.editChapters"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white p-3 rounded"}},{key:"template",get:function(){return P()}},{key:"regions",value:function(){return{tabs:{el:".tab-region",partialLoading:f.LP.EditVideoTabs},webplayer:{replaceElement:!0,el:".webplayer-region",partialLoading:f.LP.WebPlayer},addChapter:{replaceElement:!0,el:".add-chapter-region",partialLoading:f.LP.EditVideoChaptersForm},chapterList:{replaceElement:!0,el:".chapter-list-region",partialLoading:f.LP.EditVideoChapterList}}}},{key:"bindListeners",value:function(){this.listenTo(d.Vk.VIDEO,"".concat(d.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(d.Vk.VIDEO,"".concat(d.M_.VIDEOS,":").concat(this.options.videoId,":error"),this.onVideoDataError),this.listenTo(this.channelName,C.NT.CreateChapter,this.onCreateChapter),this.listenTo(this.channelName,C.NT.UpdateChapter,this.onUpdateChapter),this.listenTo(this.channelName,C.NT.DeleteChapter,this.onDeleteChapter),this.listenTo(this.channelName,C.NT.UpdateChapterTime,this.onTimeInputUpdate),this.listenTo(this.channelName,C.NT.SeekToChapter,this.onSeekToChapter)}},{key:"initializeDataServices",value:function(){this.videoDataService=i.u.getInstance(d.Or.Video,this),this.chapterDataService=i.u.getInstance(d.Or.Chapter,this),this.playerDataService=i.u.getInstance(d.Or.Player,this)}},{key:"onVideoDataError",value:function(e){switch(e.type){case n.h.NotFound:a.Q.Ry.throw(new E.l1);break;case n.h.Forbidden:a.Q.Ry.throw(new E.aV)}}},{key:"updateChapters",value:function(){var e=this;if(g.g.hasLite){var t=this.chapters.toJSON().reverse().reduce(function(t,r){var n=t[t.length-1];return[].concat(function(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?N(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t),[{timestamp:r.startTime,endTimestamp:(null==n?void 0:n.timestamp)||e.player.duration(),name:r.name}])},[]).reverse();this.player.setChapters(t)}}},{key:"onCreateChapter",value:function(e){0===this.chapters.length&&0!==e.startTime&&this.createChapter({name:o.T.getPhrase(this.lang,"intro"),startTime:0}),this.createChapter(e)}},{key:"createChapter",value:function(e){var t=this,r=new y.W(e);this.chapters.add(r),r.set("loading",!0),this.chapterDataService.createChapter(this.model.get("id"),e.name,e.startTime,function(e){r.set(e.toJSON(),{silent:!0}),r.set("loading",!1),t.chapters.sort(),t.renderChapterForm(),t.updateChapters(),t.logAction(e,c.Vw.Create)})}},{key:"onUpdateChapter",value:function(e){var t=this,r=this.chapters.find(function(t){return t.get("id")===e.id});r.set("loading",!0);var n=l.J.updatedChaptersAlert(this.model.get("name"));this.chapterDataService.updateChapter(r.id,e.name,e.startTime,function(e){r.set(e.toJSON(),{silent:!0}),r.set("loading",!1),t.chapters.sort(),t.updateChapters(),t.logAction(e,c.Vw.Edit)},n)}},{key:"onDeleteChapter",value:function(e){var t=this;e.set("loading",!0),this.chapterDataService.deleteChapter(e.id,function(){t.logAction(e,c.Vw.Delete),t.chapters.remove(e),t.updateChapters()})}},{key:"onTimeInputUpdate",value:function(e){e>=0&&e<=b.X4.millisecondsToSeconds(this.model.get("duration"))&&(this.player?this.player.currentTime(e):this.webPlayer.seekTo(e))}},{key:"logAction",value:function(e,t){var r=Object.assign({videoId:this.model.get("id")},e.pick("id","name","startTime"));s.k.logUserAction(r,{actionType:t,entity:c.py.Chapter,location:c.LZ.EditVideoChapters})}},{key:"onSeekToChapter",value:function(e){return t=this,r=void 0,n=void 0,i=j().m(function t(){var r,n;return j().w(function(t){for(;;)switch(t.n){case 0:if(!(e<0)){t.n=1;break}return t.a(2);case 1:if(!this.player){t.n=3;break}return t.n=2,this.player.getChapters();case 2:return r=t.v,n=r[e],this.player.currentTime(n.timestamp),t.a(2);case 3:this.webPlayer.seekToChapter(e);case 4:return t.a(2)}},t,this)}),new(n||(n=Promise))(function(e,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n(function(e){e(r)})).then(a,s)}c((i=i.apply(t,r||[])).next())});var t,r,n,i}},{key:"renderChapterList",value:function(){this.showChildView("chapterList",new T.Q({collection:this.chapters,duration:this.model.get("duration"),channelName:this.channelName,showActions:!0,editable:!0,showHeader:!0}))}},{key:"renderChapterForm",value:function(){this.showChildView("addChapter",new w.L({model:new y.W,collection:this.chapters,creating:!0,duration:this.model.get("duration"),channelName:this.channelName,playerViewModelKey:"".concat(d._2.NAME,"-").concat(this.model.get("id"))}))}},{key:"renderEditComponents",value:function(){this.renderChapterForm(),this.renderChapterList()}},{key:"renderTabs",value:function(){var e=b.BK.canEditVideo(this.model);this.showChildView("tabs",new k.W({model:this.model,tabs:b.Si.getEditVideoTabs(this.options.videoId,e),activeTab:".edit-chapters-applink",context:"chapters",folder:this.folder,libraries:this.libraries}))}},{key:"renderWebPlayer",value:function(){if(this.playerViewKey)return this.player=new h.l({model:this.playerViewKey,playerApiUrl:this.config.get("playerApiUrl"),channelName:this.channelName,inactivityTimeout:0}),void this.showChildView("webplayer",this.player);this.webPlayer=new p.Q({model:this.model,webPlayerUrl:this.config.get("webPlayerUrl"),captureAnalytics:!1,currentUser:this.currentUser}),this.showChildView("webplayer",this.webPlayer)}},{key:"redirectToVideoDetails",value:function(){a.Q.C$.trigger({application:d.OV.LIBRARY_EDITOR,action:d.eX.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]},{replace:!0})}},{key:"fetchData",value:function(){var e=this;this.model=this.videoDataService.getVideo(this.options.videoId),this.model&&(b.BK.canEditVideo(this.model)?(this.chapters=this.model.chapters,this.folder=this.model.categories.first(),g.g.hasLite&&!this._viewKeyRequested&&(this._viewKeyRequested=!0,this.playerDataService.createViewKey(this.model.get("id"),u.f.MasterObject,function(t){e.playerViewKey=t,e.render()}))):this.redirectToVideoDetails())}},{key:"shouldRender",value:function(){return!(!this.model||g.g.hasLite&&!this.playerViewKey)}},{key:"requiredResources",get:function(){return{config:m.p.config,currentUser:v.K.currentUser,libraries:O.T.libraries}}},{key:"onBeforeRender",value:function(){return this.fetchData(),this.shouldRender()}},{key:"onRender",value:function(){this.renderTabs(),this.renderWebPlayer(),this.renderEditComponents()}}])&&D(r.prototype,S),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,S}(a.Q.G7)},43791:function(e,t,r){var n=r(31197);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,i){var o;return e.propertyIsEnumerable,'<h1 class="h3">\n '+e.escapeExpression("function"==typeof(o=null!=(o=r.name||(null!=t?t.name:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):o)+'\n</h2>\n<div class="breadcrumbs-region"></div>\n<div class="tabs-region ps-2"></div>'},useData:!0})},61159:function(e,t,r){var n=r(31197);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,i){return'<div class="tab-region w-100"></div>\n<div class="row">\n <div class="col-6 pt-3">\n <div class="webplayer-region"></div>\n <div class="add-chapter-region"></div>\n </div>\n <div class="col-6 mb-2 pt-3">\n <div class="chapter-list-region"></div>\n </div>\n</div>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */