@clickview/library-editor 1.43.0-rc.2 → 1.43.0-rc.4

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 (147) hide show
  1. package/dist/bundles.json +5 -0
  2. package/dist/css/101-library-editor-5af6f4e937.chunk.css +2 -0
  3. package/dist/css/1086-library-editor-076ef8e022.chunk.css +4 -0
  4. package/dist/css/112-library-editor-f77f4c1797.chunk.css +16 -0
  5. package/dist/css/1409-library-editor-bc215e1152.chunk.css +1 -0
  6. package/dist/css/1601-library-editor-6b7ab30a3e.chunk.css +4 -0
  7. package/dist/css/1703-library-editor-22d3cf78a3.chunk.css +6 -0
  8. package/dist/css/1832-library-editor-e123877850.chunk.css +1 -0
  9. package/dist/css/1876-library-editor-22d3cf78a3.chunk.css +6 -0
  10. package/dist/css/2417-library-editor-1142af5a96.chunk.css +7 -0
  11. package/dist/css/243-library-editor-decee8d957.chunk.css +2 -0
  12. package/dist/css/2482-library-editor-9683109615.chunk.css +20 -0
  13. package/dist/css/2601-library-editor-0db14cf497.chunk.css +14 -0
  14. package/dist/css/2644-library-editor-94bb070288.chunk.css +13 -0
  15. package/dist/css/2692-library-editor-076ef8e022.chunk.css +4 -0
  16. package/dist/css/3087-library-editor-32398cd1ad.chunk.css +4 -0
  17. package/dist/css/343-library-editor-c4402b71ea.chunk.css +24 -0
  18. package/dist/css/3551-library-editor-875234ea74.chunk.css +24 -0
  19. package/dist/css/3578-library-editor-01b4461ff1.chunk.css +10 -0
  20. package/dist/css/3746-library-editor-d4c68a200b.chunk.css +1 -0
  21. package/dist/css/376-library-editor-6d718e6fc5.chunk.css +8 -0
  22. package/dist/css/3778-library-editor-30b6f4a9e6.chunk.css +12 -0
  23. package/dist/css/3969-library-editor-30997910e2.chunk.css +2 -0
  24. package/dist/css/435-library-editor-1bf620364f.chunk.css +76 -0
  25. package/dist/css/4523-library-editor-c52f3ffbb0.chunk.css +2 -0
  26. package/dist/css/4860-library-editor-f5eddb2400.chunk.css +1 -0
  27. package/dist/css/5046-library-editor-d255e3d3d5.chunk.css +15 -0
  28. package/dist/css/514-library-editor-4cb4f22674.chunk.css +1 -0
  29. package/dist/css/5424-library-editor-cbb9c55dc8.chunk.css +5 -0
  30. package/dist/css/5524-library-editor-36f0a42508.chunk.css +11 -0
  31. package/dist/css/5747-library-editor-de4ea80bfc.chunk.css +1 -0
  32. package/dist/css/5891-library-editor-d4c68a200b.chunk.css +1 -0
  33. package/dist/css/6093-library-editor-446ee2e049.chunk.css +1 -0
  34. package/dist/css/61-library-editor-af56e745db.chunk.css +47 -0
  35. package/dist/css/6352-library-editor-a033138bd8.chunk.css +19 -0
  36. package/dist/css/6732-library-editor-6233ce01e9.chunk.css +6 -0
  37. package/dist/css/6963-library-editor-d4c68a200b.chunk.css +1 -0
  38. package/dist/css/7053-library-editor-cbe896c46a.chunk.css +1 -0
  39. package/dist/css/708-library-editor-ce48b52d72.chunk.css +7 -0
  40. package/dist/css/7265-library-editor-8cd863992c.chunk.css +18 -0
  41. package/dist/css/7295-library-editor-a539c72655.chunk.css +9 -0
  42. package/dist/css/7408-library-editor-58e2f5e100.chunk.css +4 -0
  43. package/dist/css/8762-library-editor-076ef8e022.chunk.css +4 -0
  44. package/dist/css/8906-library-editor-076ef8e022.chunk.css +4 -0
  45. package/dist/css/9383-library-editor-454e5b7acb.chunk.css +16 -0
  46. package/dist/css/9695-library-editor-c5004a1fec.chunk.css +1 -0
  47. package/dist/css/9927-library-editor-a11669ad9d.chunk.css +1 -0
  48. package/dist/css/library-editor-app-0f996b4d1d.css +62 -0
  49. package/dist/languages/en.json +1 -0
  50. package/dist/scripts/101-135f13a4bb.chunk.js +1 -0
  51. package/dist/scripts/1010-15bfd0e2e2.chunk.js +1 -0
  52. package/dist/scripts/1086-18354eee73.chunk.js +1 -0
  53. package/dist/scripts/112-6a9fb5a3b4.chunk.js +1 -0
  54. package/dist/scripts/1216-3a338cf937.chunk.js +1 -0
  55. package/dist/scripts/1269-ebb70ecc87.chunk.js +1 -0
  56. package/dist/scripts/1409-3266733722.chunk.js +1 -0
  57. package/dist/scripts/1601-a7df278c88.chunk.js +2 -0
  58. package/dist/scripts/1601-a7df278c88.chunk.js.LICENSE.txt +1 -0
  59. package/dist/scripts/1703-9bf208d1af.chunk.js +1 -0
  60. package/dist/scripts/1832-819b1ccc4a.chunk.js +1 -0
  61. package/dist/scripts/1876-8a58bcc17f.chunk.js +1 -0
  62. package/dist/scripts/1934-cf53d84778.chunk.js +2 -0
  63. package/dist/scripts/1934-cf53d84778.chunk.js.LICENSE.txt +9 -0
  64. package/dist/scripts/2417-38a64e3d12.chunk.js +1 -0
  65. package/dist/scripts/243-c7d2f16d38.chunk.js +1 -0
  66. package/dist/scripts/2482-2e771aa32e.chunk.js +1 -0
  67. package/dist/scripts/259-a9b4038b9f.chunk.js +1 -0
  68. package/dist/scripts/2601-19bbaf1796.chunk.js +1 -0
  69. package/dist/scripts/2644-e902b701ab.chunk.js +1 -0
  70. package/dist/scripts/2648-10e901bc4c.chunk.js +1 -0
  71. package/dist/scripts/2692-72f0ddadb4.chunk.js +1 -0
  72. package/dist/scripts/2802-600d2b3485.chunk.js +2 -0
  73. package/dist/scripts/2802-600d2b3485.chunk.js.LICENSE.txt +8 -0
  74. package/dist/scripts/2803-d7f348b7f5.chunk.js +1 -0
  75. package/dist/scripts/2888-808acc2fef.chunk.js +1 -0
  76. package/dist/scripts/299-b7a814c887.chunk.js +1 -0
  77. package/dist/scripts/2998-a78cff549d.chunk.js +1 -0
  78. package/dist/scripts/3087-5568b6f0d8.chunk.js +1 -0
  79. package/dist/scripts/3400-2e845c4564.chunk.js +1 -0
  80. package/dist/scripts/343-a0c8fb4f28.chunk.js +1 -0
  81. package/dist/scripts/35-d8f006c39a.chunk.js +1 -0
  82. package/dist/scripts/3551-ccced9a938.chunk.js +1 -0
  83. package/dist/scripts/3578-b433c51a47.chunk.js +2 -0
  84. package/dist/scripts/3578-b433c51a47.chunk.js.LICENSE.txt +50 -0
  85. package/dist/scripts/3639-bf6b264ec9.chunk.js +1 -0
  86. package/dist/scripts/3746-53839c7d1b.chunk.js +1 -0
  87. package/dist/scripts/376-843259f6ce.chunk.js +1 -0
  88. package/dist/scripts/3763-408ce1508a.chunk.js +1 -0
  89. package/dist/scripts/3778-5a34d7791f.chunk.js +1 -0
  90. package/dist/scripts/3969-92dd3b164a.chunk.js +1 -0
  91. package/dist/scripts/4201-30387c4a99.chunk.js +1 -0
  92. package/dist/scripts/4245-d60147b7d2.chunk.js +1 -0
  93. package/dist/scripts/435-72cf20b42f.chunk.js +2 -0
  94. package/dist/scripts/435-72cf20b42f.chunk.js.LICENSE.txt +1 -0
  95. package/dist/scripts/4523-7349b5ef69.chunk.js +1 -0
  96. package/dist/scripts/4591-e149bc74c4.chunk.js +1 -0
  97. package/dist/scripts/4860-0d9f4a4d0b.chunk.js +1 -0
  98. package/dist/scripts/5046-6c4ba66b08.chunk.js +1 -0
  99. package/dist/scripts/514-c6a928c7c4.chunk.js +1 -0
  100. package/dist/scripts/5173-1b1806ceaa.chunk.js +1 -0
  101. package/dist/scripts/5286-6642fe4afa.chunk.js +1 -0
  102. package/dist/scripts/5412-c8877fa040.chunk.js +1 -0
  103. package/dist/scripts/5418-c3e6433e3e.chunk.js +1 -0
  104. package/dist/scripts/5424-66a285070b.chunk.js +1 -0
  105. package/dist/scripts/546-5322ba9438.chunk.js +1 -0
  106. package/dist/scripts/5524-e3ae3829ab.chunk.js +1 -0
  107. package/dist/scripts/5707-5afc9794d4.chunk.js +1 -0
  108. package/dist/scripts/5747-b29b11ef8c.chunk.js +1 -0
  109. package/dist/scripts/5891-a9a5452269.chunk.js +1 -0
  110. package/dist/scripts/6093-defd3e7edf.chunk.js +1 -0
  111. package/dist/scripts/61-e954b01d44.chunk.js +2 -0
  112. package/dist/scripts/61-e954b01d44.chunk.js.LICENSE.txt +1 -0
  113. package/dist/scripts/6352-b25f71e62c.chunk.js +1 -0
  114. package/dist/scripts/6427-9dd141a8c6.chunk.js +1 -0
  115. package/dist/scripts/6532-ffb2f40362.chunk.js +2 -0
  116. package/dist/scripts/6532-ffb2f40362.chunk.js.LICENSE.txt +13 -0
  117. package/dist/scripts/6721-e479e42307.chunk.js +1 -0
  118. package/dist/scripts/6732-33c1578a4a.chunk.js +1 -0
  119. package/dist/scripts/6774-5ec2037d61.chunk.js +1 -0
  120. package/dist/scripts/6788-fabfcf71cf.chunk.js +1 -0
  121. package/dist/scripts/6963-b5f5962132.chunk.js +1 -0
  122. package/dist/scripts/7002-5f00527776.chunk.js +1 -0
  123. package/dist/scripts/7053-811d21804f.chunk.js +1 -0
  124. package/dist/scripts/7071-c547b68bba.chunk.js +1 -0
  125. package/dist/scripts/708-b92e9adddd.chunk.js +1 -0
  126. package/dist/scripts/7190-62556429f8.chunk.js +1 -0
  127. package/dist/scripts/7265-471f7cafa6.chunk.js +1 -0
  128. package/dist/scripts/7295-bdea5df4cc.chunk.js +1 -0
  129. package/dist/scripts/7376-2a91178587.chunk.js +1 -0
  130. package/dist/scripts/7408-78e0102457.chunk.js +1 -0
  131. package/dist/scripts/8113-133ecdfe0c.chunk.js +1 -0
  132. package/dist/scripts/8213-400f1712b3.chunk.js +1 -0
  133. package/dist/scripts/8362-b11e7dbcbd.chunk.js +1 -0
  134. package/dist/scripts/8542-48fd3a46e3.chunk.js +1 -0
  135. package/dist/scripts/8726-8f24d59af7.chunk.js +1 -0
  136. package/dist/scripts/8727-7cfc7188db.chunk.js +1 -0
  137. package/dist/scripts/8762-ded7396830.chunk.js +1 -0
  138. package/dist/scripts/8906-327640bf39.chunk.js +1 -0
  139. package/dist/scripts/9357-35c3761c84.chunk.js +1 -0
  140. package/dist/scripts/9383-c630c62e24.chunk.js +1 -0
  141. package/dist/scripts/9695-0cf4f10b51.chunk.js +1 -0
  142. package/dist/scripts/9770-f9c6709b6e.chunk.js +1 -0
  143. package/dist/scripts/9927-8e56991c93.chunk.js +1 -0
  144. package/dist/scripts/bundle-37a9435da2.min.js +2 -0
  145. package/dist/scripts/bundle-37a9435da2.min.js.LICENSE.txt +1 -0
  146. package/dist/scripts/polyfills-a15c0386f5.min.js +1 -0
  147. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5707],{44391:function(t,e,n){"use strict";n.d(e,{K:function(){return P}});var o=n(11306),i=n(31647),r=n(48088),a=n(57098),l=n(26457),s=n(15564),c=n.n(s);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function f(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function h(t,e,n){return e=d(e),function(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}var b=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"TagItemComponent"}},{key:"tagName",get:function(){return this.options.behavior===l.Dm.Link?"a":"span"}},{key:"className",get:function(){var t="".concat(this.options.orientation===l.zM.Vertical?"":" d-inline-flex"),e="".concat(this.isSaving()?" saving":""),n="".concat(this.options.behavior===l.Dm.Disabled?" ".concat("dE3WC"):""),o="".concat(this.options.behavior===l.Dm.Filter?" cursor-pointer":"");return"rounded-pill tag py-1 px-2 flex-shrink-0 ".concat(o).concat(t).concat(e).concat(n)}},{key:"template",get:function(){return c()}},{key:"elements",get:function(){return{close:".btn-close"}}},{key:"appLinks",get:function(){return this.options.behavior!==l.Dm.Link?{}:{"[this]":{application:a.OV.SEARCH,action:a.eX.Search.HOME,params:{tag:this.model.get("name")}}}}},{key:"defaults",get:function(){return{behavior:l.Dm.Link,orientation:l.zM.Flex}}},{key:"events",value:function(){return this.options.removeEvent?{"click @ui.close":"onRemoveTag"}:{click:"onClickTag"}}},{key:"initialize",value:function(){this.options.behavior===l.Dm.Edit&&this.listenTo(this.model,"change",this.render)}},{key:"isSaving",value:function(){if(this.options.behavior!==l.Dm.Filter){var t=this.model.pick("id","name","remove"),e=t.id,n=t.name;return!!t.remove||!e||!n}}},{key:"onRemoveTag",value:function(t){if(t.stopPropagation(),!this.isSaving())return this.model.set("remove",!0),r.Radio.channel(this.options.channelName).trigger(this.options.removeEvent,this.model),!1}},{key:"onClickTag",value:function(){this.options.behavior!==l.Dm.Filter||this.options.removeEvent||r.Radio.channel(this.options.channelName).trigger(this.options.clickEvent,this.model)}},{key:"viewOptions",value:function(){return{removable:this.options.removeEvent}}},{key:"onRender",value:function(){this.resetClassName()}}])&&p(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(i.Q.wA);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,w(o.key),o)}}function w(t){var e=function(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}function k(t,e,n){return e=E(e),function(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,O()?Reflect.construct(e,n||[],E(t).constructor):e.apply(t,n))}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(O=function(){return!!t})()}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}var P=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),k(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}(e,t),n=e,(r=[{key:"initialize",value:function(){this.options.behavior!==l.Dm.Edit||this.options.removeEvent||i.Q.Ry.throw(new o.H("removeEvent is required to edit tags."))}},{key:"name",get:function(){return"TagComponentCollection"}},{key:"defaults",get:function(){return{orientation:l.zM.Flex}}},{key:"className",get:function(){var t="".concat(this.options.orientation===l.zM.Vertical?"d-flex align-items-start flex-column":"d-flex flex-wrap gap-1");return"tags ".concat(t)}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}}},{key:"childView",get:function(){return b}}])&&g(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(i.Q.$W)},71641:function(t,e,n){"use strict";n.d(e,{w:function(){return h}});var o=n(39479),i=n(31647),r=n(55142);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,s(o.key),o)}}function s(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function c(t,e,n){return e=p(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var h=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,i=[{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 r.N}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(t,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,o=t.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}}],i&&l(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.$W)},66882:function(t,e,n){"use strict";n.d(e,{R:function(){return X}});var o=n(48088),i=n(57857),r=n(31647),a=n(52076),l=n(70065),s=n(84868),c=n(63791),u=n(71641),p=n(39479),f=n(56210),h=n(37106),y=n.n(h),d={actions:"VXWM3",svgContainer:"etJKo",moreSvgContainer:"kwNUa",actionName:"gbBGB",disabled:"Ykm_2",iconButton:"xqFbC"};function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,k(o.key),o)}}function w(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function k(t){var e=function(t,e){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=m(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==m(e)?e:e+""}function O(t,e,n){return e=S(e),function(t,e){if(e&&("object"===m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,E()?Reflect.construct(e,n||[],S(t).constructor):e.apply(t,n))}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function P(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&T(t,e)}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}var j=function(t){function e(t){return v(this,e),O(this,e,[t])}return P(e,t),w(e,[{key:"name",get:function(){return"VideoActionItemComponent"}},{key:"template",get:function(){return y()}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){return this.model.get("href")?{href:this.model.get("href"),target:this.model.get("external")?"_blank":""}:{}}},{key:"className",get:function(){var t="cursor-pointer";return this.options.showLabel?t+=" ".concat(d.iconButton," btn btn-outline-dark ms-2"):t+=" d-inline-block px-1 no-decoration",this.model.get("isDisabled")&&(t+=" ".concat(d.disabled)),t}},{key:"events",value:function(){return{click:"onClick"}}},{key:"behaviors",get:function(){var t=(!this.options.showLabel||this.options.model.get("isDisabled"))&&this.options.model.get("tooltipText");if(t)return[{behaviorClass:f.H,title:t}]}},{key:"appLinks",get:function(){return!this.model.get("appLink")||this.model.get("isDisabled")?{}:{"[this]":this.model.get("appLink")}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var t,e,n=this.model.get("appLink");if(p.isObject(n)){var o=(t=n.args,e=1,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,i,r,a,l=[],s=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(t){c=!0,i=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];a.k.logUserAction({id:o},this.model.get("analyticsOptions"))}}},{key:"viewOptions",value:function(){return{styles:d,showLabel:this.options.showLabel,additionalClassName:this.model.get("isDisabled")?"disabled":"cursor-pointer"}}}])}(r.Q.wA),C=function(t){function e(t){return v(this,e),O(this,e,[t])}return P(e,t),w(e,[{key:"name",get:function(){return"VideoActionsComponentCollection"}},{key:"childView",get:function(){return j}},{key:"childViewOptions",get:function(){return{showLabel:this.options.showActionLabels}}}])}(r.Q.$W),_=n(57098),x=n(93569),A=n(89707),D=n(264),L=n(26457),V=n(59168),N=n.n(V);function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function I(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,B(o.key),o)}}function B(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=R(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==R(e)?e:e+""}function U(t,e,n){return e=K(e),function(t,e){if(e&&("object"===R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,F()?Reflect.construct(e,n||[],K(t).constructor):e.apply(t,n))}function F(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(F=function(){return!!t})()}function K(t){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},K(t)}function z(t,e){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},z(t,e)}var X=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),U(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&z(t,e)}(e,t),n=e,(p=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoActionsComponent"}},{key:"template",get:function(){return N()}},{key:"lang",get:function(){return"shared.videoActions"}},{key:"className",get:function(){return"".concat(d.actions," ").concat(this.model.id)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",moreActions:".more-actions-region"}}},{key:"regions",value:function(){return{actions:{el:".actions-region"},moreActions:{el:"@ui.moreActions",replaceElement:!1}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.name,"hide:actions:dropdown",this.hideDropdown)}},{key:"hideDropdown",value:function(t){this.model.id!==t&&this.getUI("dropdownToggle").dropdown("hide")}},{key:"onClick",value:function(t){o.Radio.channel(this.name).trigger("hide:actions:dropdown",this.model.id),t.stopPropagation()}},{key:"onClickMore",value:function(){this.renderMoreActions(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"hasProduct",value:function(t){var e;return!!(null===(e=this.options.products)||void 0===e?void 0:e.find((function(e){return e.get("id")===t})))}},{key:"getActions",value:function(){return new r.Q.FE([].concat(function(t){if(Array.isArray(t))return M(t)}(t=x.M2.isInteractive(this.model)&&this.hasProduct(s.x.Analytics)?[{title:i.T.getPhrase(this.lang,"viewResults"),svg:c.Nj.getSvg(c.vn.Chart),tooltipText:i.T.getPhrase(this.lang,"viewResults"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Click,descriptor:l.XX.ViewResults}),href:A.k.getAnalyticsUrl(this.model,this.options.config),external:!0}]:[])||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[{title:i.T.getPhrase(this.lang,"share"),svg:c.Nj.getSvg(c.vn.Share2),isDisabled:!x.BK.canShareVideo(this.options.libraries,this.options.application),tooltipText:x.BK.canShareVideo(this.options.libraries,this.options.application)?i.T.getPhrase(this.lang,"share"):x.BK.getSharePermissionsMessage(this.options.libraries,this.options.application),appLink:D.g.hasLite?{application:this.options.application,action:_.eX.Shared.SHARE,args:[this.model.get("id")],params:{entityType:x.M2.getMediaType(this.model)}}:{application:this.options.application,action:_.eX.Shared.SHARE_VIDEO,args:[this.model.get("id")]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Share,eventVersion:l.eq.V3})},{title:i.T.getPhrase(this.lang,"edit"),svg:x.BK.canEditVideo(this.model)?c.Nj.getSvg(c.vn.Edit):c.Nj.getSvg(c.vn.EditClickView),tooltipText:this.getEditTooltip(),appLink:x.M2.getEditAppLink(this.model),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Edit,workflowPhase:l.eu.Start})}]));var t}},{key:"getEditTooltip",value:function(){return x.BK.canEditVideo(this.model)?i.T.getPhrase(this.lang,"edit"):x.M2.isExchangeVideo(this.model)?i.T.getPhrase(this.lang,"linkedToExchange"):i.T.getPhrase(this.lang,"linkedToCv")}},{key:"getFolderSourceId",value:function(){return this.options.collectionSource===L.x_.Folder?this.options.collectionIdentifier.id:this.model.get("categories").first().get("id")}},{key:"getMoreActions",value:function(){var t=[];if(this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"move"),appLink:{application:this.options.application,action:_.eX.Shared.MOVE_VIDEOS,args:[this.model.get("id").toString(),this.getFolderSourceId()]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Move,descriptor:l.yh.Single,workflowPhase:l.eu.Start})}),t.push({title:i.T.getPhrase(this.lang,"manageAccess"),appLink:{application:this.options.application,action:_.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString(),this.model.get("typeId")]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.SetAccess,workflowPhase:l.eu.Start})}),this.options.application===_.OV.CONTENT_UPDATES&&this.options.customerHasCustomLibrary&&t.push({title:i.T.getPhrase(this.lang,"addToLibrary"),appLink:{application:this.options.application,action:_.eX.ContentUpdates.ADD_TO_LIBRARY,args:[this.model.get("id").toString()]}}),t.push({title:i.T.getPhrase(this.lang,"openInStaffView"),href:x.M2.getProductUrl(this.model,this.options.config),external:!0,icon:c.Nj.getSvg(c.vn.NewWindow),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Click,descriptor:l._S.OpenInStaffView})}),!x.M2.isInteractive(this.model)&&this.hasProduct(s.x.Analytics)&&t.push({title:i.T.getPhrase(this.lang,"viewUsage"),icon:c.Nj.getSvg(c.vn.NewWindow),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Click,descriptor:l.XX.ViewResults}),href:A.k.getAnalyticsUrl(this.model,this.options.config),external:!0}),x.M2.isVideo(this.model)&&this.options.application!==_.OV.CONTENT_UPDATES){var e=x.BK.canDownloadVideo(this.model);t.push({title:i.T.getPhrase(this.lang,"download"),disabled:!e,classes:e?"":"".concat(d.disabled),tooltip:e?null:{title:i.T.getPhrase(this.lang,"cannotDownload"),placement:"left"},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Download}),appLink:e?{application:this.options.application,action:_.eX.Shared.DOWNLOAD_VIDEO,args:[this.model.id.toString()]}:null})}return this.options.customerHasExchange&&x.BK.canAddToExchange(this.model)&&!D.g.hasLite&&t.push({title:i.T.getPhrase(this.lang,"addToExchange"),appLink:{application:this.options.application,action:_.eX.LibraryEditor.ADD_TO_EXCHANGE,args:[this.model.get("id").toString()]}}),x.M2.isVideo(this.model)&&this.options.customerHasLocalCache&&t.push({title:i.T.getPhrase(this.lang,"localCache"),appLink:{application:this.options.application,action:_.eX.Shared.DOWNLOAD_TO_LOCAL_CACHE,args:[this.model.id.toString()]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.AddToLocalCache})}),this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"remove"),appLink:{application:this.options.application,action:_.eX.Shared.DELETE_VIDEOS,args:[this.getFolderSourceId(),this.model.get("id").toString()],params:{routeToFolderOnDelete:this.options.routeToFolderOnDelete}},classes:"text-danger",analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Delete,descriptor:l.yh.Single,workflowPhase:l.eu.Start})}),new r.Q.FE(t)}},{key:"renderActions",value:function(){this.showChildView("actions",new C({collection:this.getActions(),showActionLabels:this.options.showActionLabels}))}},{key:"renderMoreActions",value:function(){this.moreActionsRendered||(this.moreActionsRendered=!0,this.showChildView("moreActions",new u.w({displayOptions:{alignment:"end"},channelName:this.channelName,collection:this.getMoreActions(),childOptions:{isDisabled:function(){return this.model.get("disabled")},getTooltip:function(){return this.options.model.get("tooltip")}},analyticsHelper:a.k})))}},{key:"viewOptions",value:function(){return{styles:d,moreSvg:c.Nj.getSvg(c.vn.More),showLabel:this.options.showActionLabels}}},{key:"onRender",value:function(){this.moreActionsRendered=!1,this.renderActions(),this.renderMoreActions()}}])&&I(n.prototype,p),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,p}(r.Q.wA)},23130:function(t,e,n){"use strict";n.d(e,{Z:function(){return g},t:function(){return o}});var o,i=n(57857),r=n(31647),a=n(93569),l=n(58040),s=n.n(l),c={columnNames:"hkjBy",descriptionWrapper:"vGCSU",description:"lM8Hu",ellipsis:"zcKZV",showMoreEllipsis:"mUQy_",singleEllipsis:"sLOGz",showEllipsis:"Dn0yN",hideEllipsis:"Y0fDv",open:"JcPWW",truncateSmall:"FgeiQ",truncateLarge:"x5Rgi"};function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,b(o.key),o)}}function f(t,e,n){return e=y(e),function(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function m(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}!function(t){t.Small="sm",t.Large="lg"}(o||(o={}));var v=m(m({},o.Small,3),o.Large,5),g=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=f(this,e,[t])).showingMore=!1,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,(r=[{key:"name",get:function(){return"VideoDescriptionComponent"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"shared.videoDescription"}},{key:"defaults",get:function(){return{size:"sm"}}},{key:"elements",get:function(){return{description:".description-element",ellipsis:this.options.allowExpand?".".concat(c.showMoreEllipsis):".".concat(c.singleEllipsis)}}},{key:"events",value:function(){return m({},"click .".concat(c.showMoreEllipsis),"onClickShowMore")}},{key:"onClickShowMore",value:function(t){t.preventDefault(),this.showingMore?this.showLessDescription():this.showMoreDescription()}},{key:"getDescription",value:function(){return this.options.linkify?a.m$.linkifyText(this.model.get("description")):this.options.highlighter?a.m$.wordsHighlighter(a.m$.escapeExpression(this.model.get("description")),this.model.get("_matchedWords")):void 0}},{key:"getDescriptionElements",value:function(){return{descriptionTextEl:this.getUI("description"),ellipsisEl:this.getUI("ellipsis")}}},{key:"showMoreDescription",value:function(){var t=this.getDescriptionElements(),e=t.descriptionTextEl,n=t.ellipsisEl;e.removeClass(c.truncateLarge).addClass(c.open),n.text(i.T.getPhrase(this.lang,"showLess")),this.showingMore=!0}},{key:"showLessDescription",value:function(){var t,e=this.getDescriptionElements(),n=e.descriptionTextEl,r=e.ellipsisEl;this.options.size===o.Small&&(t="truncateSmall"),this.options.size===o.Large&&(t="truncateLarge"),n.addClass(c[t]),r.text(this.options.allowExpand?"... ".concat(i.T.getPhrase(this.lang,"showMore")):"...").removeClass(c.hideEllipsis).addClass(c.showEllipsis),this.showingMore=!1}},{key:"truncateDescription",value:function(){if(this.options.truncate){var t=this.getDescriptionElements().descriptionTextEl,e=v[this.options.size];t.height()<=21*e||this.showLessDescription()}}},{key:"viewOptions",value:function(){return{styles:c,truncate:this.options.truncate,expandable:this.options.allowExpand,description:this.getDescription()}}},{key:"onAttach",value:function(){this.truncateDescription()}}])&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},7427:function(t,e,n){"use strict";n.d(e,{V:function(){return m}});var o=n(31647),i=n(57098),r=n(93569),a=n(25205),l=n.n(a),s={sourceLabel:"TczXY"};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,p(o.key),o)}}function p(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function f(t,e,n){return e=y(e),function(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var m=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"VideoSourcesMetadataComponent"}},{key:"template",get:function(){return l()}},{key:"lang",get:function(){return"shared.videoSourcesMetadata"}},{key:"defaults",get:function(){return{showFolder:!1,highlight:!1}}},{key:"appLinks",get:function(){var t;return this.options.showFolder&&(null===(t=this.folders)||void 0===t?void 0:t.length)?this.folders.reduce((function(t,e){return t[".applink-folder-".concat(e.get("id"))]={application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.FOLDER,args:[e.get("id")]},t}),{}):{}}},{key:"events",value:function(){var t,e,n,o=Object.keys(this.appLinks),i=(t={},n="onClick",(e=p(e="click .".concat(s.sourceLabel)))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t);return o.forEach((function(t){i["click ".concat(t)]="onClick"})),i}},{key:"onClick",value:function(t){t.stopPropagation()}},{key:"getFolderLinks",value:function(){var t,e=this;if(null===(t=this.folders)||void 0===t?void 0:t.length){var n={};return this.folders.forEach((function(t){var o=e.options.highlight?r.m$.wordsHighlighter(r.m$.escapeExpression(t.get("name")),e.model.get("_matchedWords")):r.m$.escapeExpression(t.get("name"));n[t.get("id")]=o})),Object.keys(n).map((function(t){return'<a class="info-link applink-folder-'.concat(t,'">').concat(n[t],"</a>")})).join(", ")}}},{key:"getCustomLibraryFolders",value:function(){var t;if(!(null===(t=this.model)||void 0===t?void 0:t.categories)||!this.options.libraries)return[];var e=this.options.libraries.reduce((function(t,e){return t[e.id]=!0,t}),{});return this.model.categories.filter((function(t){var n,o=null===(n=t.libraries)||void 0===n?void 0:n.first().get("id");return e[o]}))}},{key:"onBeforeRender",value:function(){var t;return this.folders||(this.folders=this.getCustomLibraryFolders()),this.options.showFolder&&!!(null===(t=this.folders)||void 0===t?void 0:t.length)}},{key:"viewOptions",value:function(){return{styles:s,folderCount:this.folders.length,folders:this.options.showFolder&&this.getFolderLinks(),hideLabel:this.options.hideLabel}}}])&&u(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},61356:function(t,e,n){"use strict";n.d(e,{c:function(){return P}});var o=n(48088),i=n(39479),r=n(31647),a=n(52076),l=n(70065),s=n(88483),c=n(2772),u=n(10101),p=n(89167),f=n(57098),h=n(93569),y=n(264),d=n(57e3),m=n(37339),b=n.n(m);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,w(o.key),o)}}function w(t){var e=function(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}function k(t,e,n){return e=E(e),function(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,O()?Reflect.construct(e,n||[],E(t).constructor):e.apply(t,n))}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(O=function(){return!!t})()}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}var P=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=k(this,e,[t]))._viewKeyRequested=!1,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}(e,t),n=e,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoPreviewComponent"}},{key:"template",get:function(){return b()}},{key:"instanceChannelName",get:function(){return h.N0.generateUniqueChannelName(this)}},{key:"defaults",get:function(){return{captureAnalytics:!0}}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:u.Im,selector:".lazy-img",callback:function(){o.Radio.channel(t.instanceChannelName).trigger("show:play:icon")},minBrowserSupportVersion:f.v9}]}},{key:"regions",value:function(){return{player:{el:".video-player-region",replaceElement:!1},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"update:chapter:time",this.onUpdateWebplayer)}},{key:"onUpdateWebplayer",value:function(t){return y.g.hasLite?this.playerViewKey?this.player?void this.seekToChapter(t):(this.listenToOnce(this.options.channelName,"player:loaded",i.bind(this.seekToChapter,this,t)),void this.renderVideoPreview()):(this.listenToOnce(this.options.channelName,"player:loaded",i.bind(this.seekToChapter,this,t)),void this.requestViewKey()):this.webPlayer?void this.seekToChapter(t):(this.listenToOnce(this.options.channelName,"webplayer:loaded",i.bind(this.seekToChapter,this,t)),void this.renderVideoPreview())}},{key:"seekToChapter",value:function(t){this.player?this.player.currentTime(t):this.webPlayer.seekTo(t)}},{key:"requestViewKey",value:function(){var t=this;this.playerViewKey||this._viewKeyRequested||(this._viewKeyRequested=!0,this.options.createViewKey(this.model.get("id"),(function(e){t.playerViewKey=e,t.renderVideoPreview()})))}},{key:"onClick",value:function(){this.model.get("id")&&(y.g.hasLite?this.requestViewKey():this.webPlayer||this.renderVideoPreview())}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new c.Z({model:this.model,thumbnailOptions:{size:s.h2.Medium},playIcon:!0,lazyload:!0,channelName:this.instanceChannelName,thumbnail:h.M2.getThumbnail(this.model),duration:h.M2.getDuration(this.model),durationNewStyle:!0}))}},{key:"renderVideoPreview",value:function(){if(this.playerViewKey)return this.player=new d.l({model:this.playerViewKey,playerApiUrl:this.options.playerApiUrl,channelName:this.options.channelName}),void this.showChildView("player",this.player);this.webPlayer=new p.Q({model:this.model,webPlayerUrl:this.options.webPlayerUrl,parentChannelName:this.options.channelName,autoplay:!0,analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{entity:l.py.Video}),captureAnalytics:this.options.captureAnalytics,currentUser:this.options.currentUser}),this.showChildView("player",this.webPlayer)}},{key:"onRender",value:function(){this.playerViewKey?this.renderVideoPreview():this.renderThumbnail()}}])&&g(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},15564:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return'<span class="btn-close cursor-pointer" role="button" aria-label="Close"></span>\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a,l=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,c="function",u=t.escapeExpression;return'<span class="clamp-1" title="'+u(typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:s)===c?a.call(l,{name:"name",hash:{},data:i}):a)+'">'+u(typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:s)===c?a.call(l,{name:"name",hash:{},data:i}):a)+"</span>\n"+(null!=(r=n.if.call(l,null!=(r=null!=e?e.options:e)?r.removable:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},37106:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression("function"==typeof(r=null!=(r=n.title||(null!=e?e.title:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"title",hash:{},data:i}):r)},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a,l=t.lambda,s=t.escapeExpression,c=null!=e?e:t.nullContext||{};return' <span class="d-inline-block align-middle '+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" "+s(l(null!=(r=null!=e?e.options:e)?r.additionalClassName:r,e))+'">'+(null!=(r="function"==typeof(a=null!=(a=n.svg||(null!=e?e.svg:e))?a:t.hooks.helperMissing)?a.call(c,{name:"svg",hash:{},data:i}):a)?r:"")+"</span>\n"+(null!=(r=n.if.call(c,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},59168:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return"btn btn-outline-dark px-0 ms-2"},3:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.moreSvgContainer:r,e))},5:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" align-middle"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=null!=e?e:t.nullContext||{};return'<div class="actions-region d-inline-block"></div><span class="position-relative d-inline-block dropdown">\n <span\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n class="'+(null!=(r=n.if.call(a,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+' ui-dropdown-toggle"\n >\n <span class="ui-more d-inline-block '+(null!=(r=n.if.call(a,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(3,i,0),inverse:t.program(5,i,0),data:i}))?r:"")+' cursor-pointer">'+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.moreSvg:r,e))?r:"")+'</span>\n </span>\n <div class="more-actions-region"></div>\n</span>\n'},useData:!0})},58040:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.lambda,l=t.escapeExpression;return' <div class="'+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.descriptionWrapper:r,e))+'">\n <p class="description-element '+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.description:r,e))+'">'+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.expandable:r,{name:"if",hash:{},fn:t.program(2,i,0),inverse:t.program(4,i,0),data:i}))?r:"")+"</p>\n </div>\n"},2:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.lambda,l=t.escapeExpression;return(null!=(r=a(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+'<span class="'+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.showMoreEllipsis:r,e))+" "+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.hideEllipsis:r,e))+'">... '+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"showMore",{name:"lang",hash:{},data:i}))+"</span>"},4:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.lambda,l=t.escapeExpression;return(null!=(r=a(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+'<span class="'+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.singleEllipsis:r,e))+" "+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.hideEllipsis:r,e))+'">...</span>'},6:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.lambda;return' <p class="'+t.escapeExpression(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.description:r,e))+'">'+(null!=(r=a(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.truncate:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.program(6,i,0),data:i}))?r:""},useData:!0})},25205:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<span class="'+a(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.sourceLabel:r,e))+'">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"folder",{name:"lang",hash:{smartCount:null!=(r=null!=e?e.options:e)?r.folderCount:r},data:i}))+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,(null!=(r=n.unless.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.hideLabel:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.folders:r,e))?r:"")},useData:!0})},37339:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return"cursor-pointer "},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,'<div class="video-player-region '+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.id:e,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+'">\n <div class="thumbnail-region"></div>\n</div>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5747],{95747:function(e,n,t){"use strict";t.r(n),t.d(n,{FileSelectView:function(){return E}});var o=t(39479),r=t(21679),i=t(57857),l=t(68003),a=t(31647),c=t(52076),u=t(70065),s=t(81937),p=t(25692),d=t(57769),f=t(75432),h=t(98985),g=t(57098),y=t(48404),m=t(22103),v=t.n(m),b={uploadImage:"yRGoO"};function k(e){return k="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},k(e)}function w(e,n){for(var t=0;t<n.length;t++){var o=n[t];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 n=function(e,n){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=k(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(n)?n:n+""}function S(e,n,t){return n=_(n),function(e,n){if(n&&("object"===k(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,O()?Reflect.construct(n,t||[],_(e).constructor):n.apply(e,t))}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O=function(){return!!e})()}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function T(e,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},T(e,n)}var E=function(e){function n(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),S(this,n,arguments)}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&T(e,n)}(n,e),t=n,(a=[{key:"initialize",value:function(){this.listenTo(this.channelName,s.S.FILES_SELECTED,this.onFilesSelected),this.videoUploadService=r.u.getInstance(g.K9.VideoUpload,this)}},{key:"name",get:function(){return"FileSelectView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.fileSelect"}},{key:"template",get:function(){return v()}},{key:"className",get:function(){return"container px-0"}},{key:"props",get:function(){return["videoUploadService"]}},{key:"channelName",get:function(){return this.customCid||(this.customCid=o.uniqueId("custom")),"".concat(this.name).concat(this.customCid)}},{key:"behaviors",get:function(){return[{behaviorClass:d.Z,buttonSelector:".choose-files",channelName:this.channelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"onFilesSelected",value:function(e,n){this.videoUploadService.addFiles(e),this.logAction(e,n)}},{key:"logAction",value:function(e,n){var t={actionType:u.Vw.Upload,entity:u.py.Video,location:u.LZ.VideoUpload,workflowPhase:u.eu.Start,descriptor:c.k.mapInteractionType(n)};c.k.logUserAction(e,t)}},{key:"requiredResources",get:function(){return{config:y.p.config,currentUser:f.K.currentUser}}},{key:"viewOptions",value:function(){return{styles:b,uploadArticleUrl:h.o.getHybridArticle(p.s.UploadToLibraryEditor,p.b.UploadToLibraryEditor),uploadTermsUrl:this.config?l._.safeUrlConcat(this.config.get("marketingSiteUrl"),g.l.UploadingUserContent):"",classNames:"info-link",imageUrl:g.Wn.Upload.UPLOAD_VIDEO}}}])&&w(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,a}(a.Q.G7)},22103:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,c=e.escapeExpression,u=e.lambda;return'<div class="p-3 my-3 bg-white text-center">\n <h1>'+c((t.lang||n&&n.lang||a).call(l,"uploadVideos",{name:"lang",hash:{},data:r}))+'</h1>\n <div class="my-3">\n <img src="'+c(u(null!=(i=null!=n?n.options:n)?i.imageUrl:i,n))+'" class="'+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.uploadImage:i,n))+' img-fluid mb-2" />\n </div>\n <div>\n <button class="btn btn-dark choose-files">'+c((t.lang||n&&n.lang||a).call(l,"chooseVideo",{name:"lang",hash:{},data:r}))+"</button>\n </div>\n <div>\n <span>"+c((t.lang||n&&n.lang||a).call(l,"dragDrop",{name:"lang",hash:{},data:r}))+'</span>\n </div>\n</div>\n<div class="p-3 bg-white container-fluid">\n <div class="row">\n <div class="col-4">\n <h4>'+c((t.lang||n&&n.lang||a).call(l,"help",{name:"lang",hash:{},data:r}))+'</h2>\n <div class="border-top pt-2">\n <ul>\n <li><a class="info-link" href="'+c(u(null!=(i=null!=n?n.options:n)?i.uploadArticleUrl:i,n))+'" target="_blank">'+c((t.lang||n&&n.lang||a).call(l,"instructionsHeading",{name:"lang",hash:{},data:r}))+'</a></li>\n </ul>\n </div>\n </div>\n <div class="col-8">\n <h4>'+c((t.lang||n&&n.lang||a).call(l,"termsHeading",{name:"lang",hash:{},data:r}))+'</h2>\n <div class="border-top pt-2">\n <ol>\n <li>'+c((t.lang||n&&n.lang||a).call(l,"term1",{name:"lang",hash:{},data:r}))+"</li>\n <li>"+c((t.lang||n&&n.lang||a).call(l,"term2",{name:"lang",hash:{},data:r}))+"</li>\n <li>"+(null!=(i=(t.lang||n&&n.lang||a).call(l,"term3",{name:"lang",hash:{classNames:null!=(i=null!=n?n.options:n)?i.classNames:i,uploadTermsUrl:null!=(i=null!=n?n.options:n)?i.uploadTermsUrl:i},data:r}))?i:"")+"</li>\n </ol>\n </div>\n </div>\n </div>\n</div>"},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5891],{54096:function(e,t,r){r.d(t,{G:function(){return a}});var n=r(1024),o=r(21679);function a(e){var t,r;return t=e,r=o.u.getInstance(t),n.useEffect((function(){return function(){o.u.releaseInstance(t)}})),r}},90335:function(e,t,r){var n;r.d(t,{D:function(){return n}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(n||(n={}))},2491:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(92159),o=r(21186),a=r(54096);function i(){var e=(0,a.G)(n.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:o.NK.Warning,heading:o.R6.Warning,message:t})}}}},94223:function(e,t,r){r.d(t,{P:function(){return s}});var n=r(1024),o=r(58566),a=r(35656),i=r(53808),u=r(86120);function c(e){return function(e){if(Array.isArray(e))return l(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 l(e,t);var r=Object.prototype.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)?l(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.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t,r){function a(e){if(e)return i.q.isFunction(t)?c(t(e)):c(e.data)}function l(e){var t,n;if(e)return r?r(e):null===(n=null===(t=e.pagination)||void 0===t?void 0:t.cursors)||void 0===n?void 0:n.next}return(0,o.useSelector)((0,n.useMemo)((function(){return function(t){if(i.q.isFunction(e)){for(var r=e,n=i.q.isFunction(e)&&r(),o=n&&u.a.getResponse(t,n),s=o&&o.isFetching,d=o&&o.statusCode,f=o&&o.hasCompleted,p=f,y=o&&o.shouldFetch,v=a(o&&o.data),m=l(o&&o.data),b=function(e){if(e)return null==e?void 0:e.count}(o&&o.data);m&&(o=u.a.getResponse(t,r(m)),s=s||o.isFetching,d=o.statusCode,f=o.hasCompleted,!o.shouldFetch);){var h=a(o.data);h&&v.push.apply(v,c(h));var g=l(o.data);m=g===m?null:g}var I={shouldInitialFetch:y,items:v,nextCursor:m,isFetching:s,statusCode:d,hasCompleted:f,hasFirstPageCompleted:p};return"number"==typeof b&&(I.totalItems=b),I}}}),[e]))}a.o.Ok},50072:function(e,t,r){var n;r.d(t,{l:function(){return n}}),function(e){e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected",e.Closed="Closed",e.AutoApproved="AutoApproved"}(n||(n={}))},85739:function(e,t,r){r.d(t,{p:function(){return c}});var n=r(1024),o=r.n(n),a=r(86120),i=r(94223),u=r(25796);function c(e,t){var r=a.a.useGetFetch(),n=function(r){return u.y.libraryRequests(e,t,r)},c=function(e){return r(n(e))},l=(0,i.P)(n&&function(e){return n(e).key});return o().useEffect((function(){l&&l.shouldInitialFetch&&c()}),[e,t]),Object.assign(Object.assign({},l),{fetchNext:c})}},31170:function(e,t,r){r.r(t),r.d(t,{ApproveLibraryRequestView:function(){return S}});var n=r(1024),o=r.n(n),a=r(57857),i=r(31647),u=r(86120),c=r(52076),l=r(70065),s=r(71575),d=r(83996),f=r(66703),p=r(90335),y=r(2491),v=r(22430),m=r(50997),b=r(50072),h=r(25796),g=r(85739);function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var A="libraryRequests.approve",C=a.T.encloseNamespace(A);function S(e){var t,r,n,a=(r=o().useState(!1),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(r,n)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.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)?I(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),S=a[0],w=a[1],R=u.a.useGetFetch(),F=(0,y.Z)(),E=(0,g.p)(e.queryParams.sort||p.D.Newest,[b.l.Pending]),q=u.a.useBasicFetch(h.y.libraryRequest(e.libraryRequestId)),P=u.a.useBasicFetch(h.y.library(e.libraryId)),j=u.a.useBasicFetch(h.y.folder(e.folderId));function k(){!function(){var t,r,n,o,a={location:l.LZ.Popup,actionType:l.Vw.Approve,entity:l.py.LibraryRequest,workflowPhase:l.eu.Complete},i={id:q.data.id,videoId:null===(t=q.data.object)||void 0===t?void 0:t.id,requestingUserId:null===(r=q.data.sender)||void 0===r?void 0:r.id,sourceLibraryId:null===(n=q.data.sourceLibrary)||void 0===n?void 0:n.id,sourceFolderId:null===(o=q.data.sourceCategory)||void 0===o?void 0:o.id,destinationLibraryId:e.libraryId,destinationFolderId:e.folderId};c.k.logUserAction(i,a)}(),F.success(C("success"));var t=E.items.findIndex((function(t){return t.id.toString()===e.libraryRequestId.toString()})),r=E.items[t+1];i.Q.C$.trigger({application:m.OV.LIBRARY_REQUESTS,action:m.eX.LibraryRequests.PENDING_REQUESTS,args:[(null==r?void 0:r.id)||""],params:e.queryParams},{replace:!0})}var L=((null===(t=E.items)||void 0===t?void 0:t.length)||E.hasCompleted)&&!!q.data&&!!P.data&&!!j.data;return o().createElement(s.G,{title:C("title"),closePopup:e.closePopup,showLoadingSpinner:!L},L&&o().createElement(o().Fragment,null,o().createElement("p",null,o().createElement(f.x,{namespace:A,phrase:"confirmation",options:{videoName:q.data.object.name,libraryName:P.data.name,folderName:j.data.name}})),o().createElement(d.u,null,o().createElement(d.u.Cancel,{onClick:e.closePopup}),o().createElement(d.u.Submit,{onClick:function(){w(!0);var t={response:b.l.Approved,metadata:{destinationLibraryId:e.libraryId,destinationCategoryId:e.folderId}};R(h.y.fulfilRequest(e.libraryRequestId,t,k,(function(e){return F.error(v.M.libraryApiError(e))}),e.closePopup))},text:C("approve"),showSpinner:S,variant:"dark"}))))}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6093],{36093:function(t,e,r){"use strict";r.r(e),r.d(e,{ErrorView:function(){return v}});var n=r(48088),o=r(31647),i=r(50997),u=r(2882),c=r.n(u),l={image:"DlVFv"};function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function p(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function s(t,e,r){return e=b(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,r||[],b(t).constructor):e.apply(t,r))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}var v=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),r=e,(o=[{key:"initialize",value:function(){var t=n.Radio.channel("error:view");this.error=t.request("current:error")}},{key:"name",get:function(){return"ErrorView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"bg-white mt-3 p-5 text-center rounded"}},{key:"template",get:function(){return c()}},{key:"viewOptions",value:function(){return{heading:this.error.heading,description:this.error.description,imageUrl:i.Wn.Errors.GENERIC,styles:l}}}])&&f(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(o.Q.G7)},2882:function(t,e,r){var n=r(32227);t.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(t,e,r,n,o){t.propertyIsEnumerable;var i,u=t.lambda,c=t.escapeExpression;return'<img src="'+c(u(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'" class="img-fluid '+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.image:i,e))+' pt-5 pb-3" />\n<h2 class="h6">'+c(u(null!=(i=null!=e?e.options:e)?i.heading:i,e))+'</h2>\n<p class="pb-5">'+(null!=(i=u(null!=(i=null!=e?e.options:e)?i.description:i,e))?i:"")+"</p>"},useData:!0})}}]);