@clickview/library-editor 1.38.1 → 1.39.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/bundles.json +0 -5
- package/dist/css/101-library-editor-63a9643aad.chunk.css +0 -2
- package/dist/css/1086-library-editor-076ef8e022.chunk.css +0 -4
- package/dist/css/112-library-editor-f77f4c1797.chunk.css +0 -16
- package/dist/css/1409-library-editor-bc215e1152.chunk.css +0 -1
- package/dist/css/1492-library-editor-a539c72655.chunk.css +0 -9
- package/dist/css/1601-library-editor-6b7ab30a3e.chunk.css +0 -4
- package/dist/css/1703-library-editor-22d3cf78a3.chunk.css +0 -6
- package/dist/css/1832-library-editor-e123877850.chunk.css +0 -1
- package/dist/css/1876-library-editor-22d3cf78a3.chunk.css +0 -6
- package/dist/css/2417-library-editor-1142af5a96.chunk.css +0 -7
- package/dist/css/243-library-editor-decee8d957.chunk.css +0 -2
- package/dist/css/2482-library-editor-9683109615.chunk.css +0 -20
- package/dist/css/2601-library-editor-0db14cf497.chunk.css +0 -14
- package/dist/css/2644-library-editor-94bb070288.chunk.css +0 -13
- package/dist/css/2692-library-editor-076ef8e022.chunk.css +0 -4
- package/dist/css/3087-library-editor-32398cd1ad.chunk.css +0 -4
- package/dist/css/343-library-editor-c4402b71ea.chunk.css +0 -24
- package/dist/css/3551-library-editor-875234ea74.chunk.css +0 -24
- package/dist/css/3746-library-editor-d4c68a200b.chunk.css +0 -1
- package/dist/css/376-library-editor-6d718e6fc5.chunk.css +0 -8
- package/dist/css/3969-library-editor-30997910e2.chunk.css +0 -2
- package/dist/css/4523-library-editor-c52f3ffbb0.chunk.css +0 -2
- package/dist/css/4860-library-editor-f5eddb2400.chunk.css +0 -1
- package/dist/css/5046-library-editor-d255e3d3d5.chunk.css +0 -15
- package/dist/css/514-library-editor-4cb4f22674.chunk.css +0 -1
- package/dist/css/5424-library-editor-cbb9c55dc8.chunk.css +0 -5
- package/dist/css/5524-library-editor-36f0a42508.chunk.css +0 -11
- package/dist/css/5747-library-editor-de4ea80bfc.chunk.css +0 -1
- package/dist/css/5891-library-editor-d4c68a200b.chunk.css +0 -1
- package/dist/css/6093-library-editor-446ee2e049.chunk.css +0 -1
- package/dist/css/61-library-editor-51e80bdaad.chunk.css +0 -46
- package/dist/css/6150-library-editor-59f052a1cf.chunk.css +0 -73
- package/dist/css/6352-library-editor-a033138bd8.chunk.css +0 -19
- package/dist/css/6732-library-editor-6233ce01e9.chunk.css +0 -6
- package/dist/css/6963-library-editor-d4c68a200b.chunk.css +0 -1
- package/dist/css/7053-library-editor-cbe896c46a.chunk.css +0 -1
- package/dist/css/708-library-editor-ce48b52d72.chunk.css +0 -7
- package/dist/css/7408-library-editor-58e2f5e100.chunk.css +0 -4
- package/dist/css/8762-library-editor-076ef8e022.chunk.css +0 -4
- package/dist/css/8906-library-editor-076ef8e022.chunk.css +0 -4
- package/dist/css/9215-library-editor-01b4461ff1.chunk.css +0 -10
- package/dist/css/9219-library-editor-4fe948138f.chunk.css +0 -19
- package/dist/css/9309-library-editor-4f83101450.chunk.css +0 -10
- package/dist/css/9383-library-editor-454e5b7acb.chunk.css +0 -16
- package/dist/css/9695-library-editor-c5004a1fec.chunk.css +0 -1
- package/dist/css/9927-library-editor-a11669ad9d.chunk.css +0 -1
- package/dist/css/library-editor-app-88622a8138.css +0 -65
- package/dist/languages/en.json +0 -1
- package/dist/scripts/101-4c60c0a1d9.chunk.js +0 -1
- package/dist/scripts/1010-2a92a263a3.chunk.js +0 -1
- package/dist/scripts/1086-f474fdd295.chunk.js +0 -1
- package/dist/scripts/112-e12297c056.chunk.js +0 -1
- package/dist/scripts/1216-4ca9b12e2d.chunk.js +0 -1
- package/dist/scripts/1269-9ae6f52d3d.chunk.js +0 -1
- package/dist/scripts/1409-8d7b677cb8.chunk.js +0 -1
- package/dist/scripts/1492-95e9c7537a.chunk.js +0 -1
- package/dist/scripts/1601-e99fdde245.chunk.js +0 -2
- package/dist/scripts/1601-e99fdde245.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/1703-c0dbaab27c.chunk.js +0 -1
- package/dist/scripts/1832-670c87f424.chunk.js +0 -1
- package/dist/scripts/1876-ca6bb09e77.chunk.js +0 -1
- package/dist/scripts/1934-2174e052c3.chunk.js +0 -2
- package/dist/scripts/1934-2174e052c3.chunk.js.LICENSE.txt +0 -9
- package/dist/scripts/2417-0ecf739bcd.chunk.js +0 -1
- package/dist/scripts/243-d3d7abe117.chunk.js +0 -1
- package/dist/scripts/2482-87564f7874.chunk.js +0 -1
- package/dist/scripts/259-075889f0e6.chunk.js +0 -1
- package/dist/scripts/2601-88248233bb.chunk.js +0 -1
- package/dist/scripts/2644-72833b9de8.chunk.js +0 -1
- package/dist/scripts/2692-8a53aba52d.chunk.js +0 -1
- package/dist/scripts/2802-d1e0319458.chunk.js +0 -2
- package/dist/scripts/2802-d1e0319458.chunk.js.LICENSE.txt +0 -8
- package/dist/scripts/2803-403caf73d8.chunk.js +0 -1
- package/dist/scripts/2849-52940803ca.chunk.js +0 -2
- package/dist/scripts/2849-52940803ca.chunk.js.LICENSE.txt +0 -32
- package/dist/scripts/2888-cc4110ed32.chunk.js +0 -1
- package/dist/scripts/299-fd20c7c19b.chunk.js +0 -1
- package/dist/scripts/2998-c652787bf9.chunk.js +0 -1
- package/dist/scripts/3087-b5f7599412.chunk.js +0 -1
- package/dist/scripts/3400-0982c29b3f.chunk.js +0 -1
- package/dist/scripts/343-ad087e2d1c.chunk.js +0 -1
- package/dist/scripts/35-aa593493ed.chunk.js +0 -1
- package/dist/scripts/3551-ef8b9692dd.chunk.js +0 -1
- package/dist/scripts/3639-6f85164408.chunk.js +0 -1
- package/dist/scripts/3746-c000b59b9b.chunk.js +0 -1
- package/dist/scripts/376-b8f7abb317.chunk.js +0 -1
- package/dist/scripts/3763-14cb5eba8b.chunk.js +0 -1
- package/dist/scripts/3969-99be8f1ef1.chunk.js +0 -1
- package/dist/scripts/4201-56cff16d9a.chunk.js +0 -1
- package/dist/scripts/4245-4b8ff55ce5.chunk.js +0 -1
- package/dist/scripts/4523-88443dc698.chunk.js +0 -1
- package/dist/scripts/4591-c8e25180d5.chunk.js +0 -1
- package/dist/scripts/4860-4ca1a4e51d.chunk.js +0 -1
- package/dist/scripts/5046-cc98da747f.chunk.js +0 -1
- package/dist/scripts/514-3de0207983.chunk.js +0 -1
- package/dist/scripts/5173-9daba2a065.chunk.js +0 -1
- package/dist/scripts/5235-a377fd0fa3.chunk.js +0 -1
- package/dist/scripts/5286-d5088b9145.chunk.js +0 -1
- package/dist/scripts/5412-4fcfecee5c.chunk.js +0 -1
- package/dist/scripts/5418-d828f63db4.chunk.js +0 -1
- package/dist/scripts/5424-1433cc8161.chunk.js +0 -1
- package/dist/scripts/546-0e65b37c79.chunk.js +0 -1
- package/dist/scripts/5524-73dce4a640.chunk.js +0 -1
- package/dist/scripts/5698-fe8deeb19c.chunk.js +0 -1
- package/dist/scripts/5707-b463d21e70.chunk.js +0 -1
- package/dist/scripts/5747-bfbe98e0f3.chunk.js +0 -1
- package/dist/scripts/5891-b7c7024645.chunk.js +0 -1
- package/dist/scripts/6093-9a90c064ec.chunk.js +0 -1
- package/dist/scripts/61-c1bcdcfb78.chunk.js +0 -2
- package/dist/scripts/61-c1bcdcfb78.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/6150-b6ff084b50.chunk.js +0 -2
- package/dist/scripts/6150-b6ff084b50.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/6352-2cbc465b4e.chunk.js +0 -1
- package/dist/scripts/6732-8ffe8f9b56.chunk.js +0 -1
- package/dist/scripts/6774-837012ac23.chunk.js +0 -1
- package/dist/scripts/6788-62a321db6d.chunk.js +0 -1
- package/dist/scripts/6963-54f96adfbb.chunk.js +0 -1
- package/dist/scripts/7002-3019918534.chunk.js +0 -1
- package/dist/scripts/7053-4bb976f78c.chunk.js +0 -1
- package/dist/scripts/7071-e4a0d4efdf.chunk.js +0 -1
- package/dist/scripts/708-30b695437c.chunk.js +0 -1
- package/dist/scripts/7190-892b865b01.chunk.js +0 -1
- package/dist/scripts/7376-a589320e1c.chunk.js +0 -1
- package/dist/scripts/7408-32aecd60b3.chunk.js +0 -1
- package/dist/scripts/8113-f16b2f9e26.chunk.js +0 -1
- package/dist/scripts/8213-8af5c4d45b.chunk.js +0 -1
- package/dist/scripts/8362-584b78235f.chunk.js +0 -1
- package/dist/scripts/8495-bdf4488b7f.chunk.js +0 -1
- package/dist/scripts/8542-12aeadfe39.chunk.js +0 -1
- package/dist/scripts/8726-619f5876a1.chunk.js +0 -1
- package/dist/scripts/8727-cd7adf615a.chunk.js +0 -1
- package/dist/scripts/8762-c12f4bc9a0.chunk.js +0 -1
- package/dist/scripts/8906-29da3dd261.chunk.js +0 -1
- package/dist/scripts/9215-c65cf4202e.chunk.js +0 -2
- package/dist/scripts/9215-c65cf4202e.chunk.js.LICENSE.txt +0 -31
- package/dist/scripts/9219-fcb2aa48d4.chunk.js +0 -1
- package/dist/scripts/9309-c4a5761175.chunk.js +0 -1
- package/dist/scripts/9357-15f9f50960.chunk.js +0 -1
- package/dist/scripts/9383-38a30cdc5a.chunk.js +0 -1
- package/dist/scripts/9695-a0ea892377.chunk.js +0 -1
- package/dist/scripts/9770-7f7960aae8.chunk.js +0 -1
- package/dist/scripts/9927-e154a1838c.chunk.js +0 -1
- package/dist/scripts/bundle-13b94f8812.min.js +0 -2
- package/dist/scripts/bundle-13b94f8812.min.js.LICENSE.txt +0 -1
- package/dist/scripts/polyfills-04eb088291.min.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
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:String(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])}var n,o;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}),e}(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:String(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])}var n,r;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}),e}(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:String(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])}var n,i;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}),e}(i.Q.$W)},66882:function(t,e,n){"use strict";n.d(e,{R:function(){return z}});var o=n(57857),i=n(31647),r=n(52076),a=n(70065),l=n(84868),s=n(63791),c=n(71641),u=n(39479),p=n(56210),f=n(37106),h=n.n(f),y={actions:"VXWM3",svgContainer:"etJKo",moreSvgContainer:"kwNUa",actionName:"gbBGB",disabled:"Ykm_2",iconButton:"xqFbC"};function d(t){return d="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},d(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 b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(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 g(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function w(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=d(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==d(e)?e:String(e)}function k(t,e,n){return e=E(e),function(t,e){if(e&&("object"===d(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){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&&P(t,e)}function P(t,e){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},P(t,e)}var j=function(t){function e(t){return b(this,e),k(this,e,[t])}return S(e,t),g(e,[{key:"name",get:function(){return"VideoActionItemComponent"}},{key:"template",get:function(){return h()}},{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(y.iconButton," btn btn-outline-dark ms-2"):t+=" d-inline-block px-1 no-decoration",this.model.get("isDisabled")&&(t+=" ".concat(y.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:p.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(u.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 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,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];r.k.logUserAction({id:o},this.model.get("analyticsOptions"))}}},{key:"viewOptions",value:function(){return{styles:y,showLabel:this.options.showLabel,additionalClassName:this.model.get("isDisabled")?"disabled":"cursor-pointer"}}}]),e}(i.Q.wA),T=function(t){function e(t){return b(this,e),k(this,e,[t])}return S(e,t),g(e,[{key:"name",get:function(){return"VideoActionsComponentCollection"}},{key:"childView",get:function(){return j}},{key:"childViewOptions",get:function(){return{showLabel:this.options.showActionLabels}}}]),e}(i.Q.$W),C=n(57098),_=n(93569),x=n(89707),A=n(264),V=n(26457),D=n(59168),L=n.n(D);function N(t){return N="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},N(t)}function R(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 M(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,I(o.key),o)}}function I(t){var e=function(t,e){if("object"!=N(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=N(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==N(e)?e:String(e)}function B(t,e,n){return e=F(e),function(t,e){if(e&&("object"===N(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||[],F(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 F(t){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},F(t)}function K(t,e){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},K(t,e)}var z=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),B(this,e,[t])}var n,u;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&&K(t,e)}(e,t),n=e,(u=[{key:"name",get:function(){return"VideoActionsComponent"}},{key:"template",get:function(){return L()}},{key:"lang",get:function(){return"shared.videoActions"}},{key:"className",get:function(){return y.actions}},{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:"onClick",value:function(t){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 i.Q.FE([].concat(function(t){if(Array.isArray(t))return R(t)}(t=_.M2.isInteractive(this.model)&&this.hasProduct(l.x.Analytics)?[{title:o.T.getPhrase(this.lang,"viewResults"),svg:s.Nj.getSvg(s.vn.Chart),tooltipText:o.T.getPhrase(this.lang,"viewResults"),analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.Click,descriptor:a.XX.ViewResults}),href:x.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 R(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)?R(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:o.T.getPhrase(this.lang,"share"),svg:s.Nj.getSvg(s.vn.Share2),isDisabled:!_.BK.canShareVideo(this.options.libraries,this.options.application),tooltipText:_.BK.canShareVideo(this.options.libraries,this.options.application)?o.T.getPhrase(this.lang,"share"):_.BK.getSharePermissionsMessage(this.options.libraries,this.options.application),appLink:A.g.hasLite?{application:this.options.application,action:C.eX.Shared.SHARE,args:[this.model.get("id")],params:{entityType:_.M2.getMediaType(this.model)}}:{application:this.options.application,action:C.eX.Shared.SHARE_VIDEO,args:[this.model.get("id")]},analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.Share,eventVersion:a.eq.V3})},{title:o.T.getPhrase(this.lang,"edit"),svg:_.BK.canEditVideo(this.model)?s.Nj.getSvg(s.vn.Edit):s.Nj.getSvg(s.vn.EditClickView),tooltipText:this.getEditTooltip(),appLink:_.M2.getEditAppLink(this.model),analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.Edit,workflowPhase:a.eu.Start})}]));var t}},{key:"getEditTooltip",value:function(){return _.BK.canEditVideo(this.model)?o.T.getPhrase(this.lang,"edit"):_.M2.isExchangeVideo(this.model)?o.T.getPhrase(this.lang,"linkedToExchange"):o.T.getPhrase(this.lang,"linkedToCv")}},{key:"getFolderSourceId",value:function(){return this.options.collectionSource===V.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:o.T.getPhrase(this.lang,"move"),appLink:{application:this.options.application,action:C.eX.Shared.MOVE_VIDEOS,args:[this.model.get("id").toString(),this.getFolderSourceId()]},analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.Move,descriptor:a.yh.Single,workflowPhase:a.eu.Start})}),t.push({title:o.T.getPhrase(this.lang,"manageAccess"),appLink:{application:this.options.application,action:C.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString(),this.model.get("typeId")]},analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.SetAccess,workflowPhase:a.eu.Start})}),this.options.application===C.OV.CONTENT_UPDATES&&this.options.customerHasCustomLibrary&&t.push({title:o.T.getPhrase(this.lang,"addToLibrary"),appLink:{application:this.options.application,action:C.eX.ContentUpdates.ADD_TO_LIBRARY,args:[this.model.get("id").toString()]}}),t.push({title:o.T.getPhrase(this.lang,"openInStaffView"),href:_.M2.getProductUrl(this.model,this.options.config),external:!0,icon:s.Nj.getSvg(s.vn.NewWindow),analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.Click,descriptor:a._S.OpenInStaffView})}),!_.M2.isInteractive(this.model)&&this.hasProduct(l.x.Analytics)&&t.push({title:o.T.getPhrase(this.lang,"viewUsage"),icon:s.Nj.getSvg(s.vn.NewWindow),analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.Click,descriptor:a.XX.ViewResults}),href:x.k.getAnalyticsUrl(this.model,this.options.config),external:!0}),_.M2.isVideo(this.model)&&this.options.application!==C.OV.CONTENT_UPDATES){var e=_.BK.canDownloadVideo(this.model);t.push({title:o.T.getPhrase(this.lang,"download"),disabled:!e,classes:e?"":"".concat(y.disabled),tooltip:e?null:{title:o.T.getPhrase(this.lang,"cannotDownload"),placement:"left"},analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.Download}),appLink:e?{application:this.options.application,action:C.eX.Shared.DOWNLOAD_VIDEO,args:[this.model.id.toString()]}:null})}return this.options.customerHasExchange&&_.BK.canAddToExchange(this.model)&&!A.g.hasLite&&t.push({title:o.T.getPhrase(this.lang,"addToExchange"),appLink:{application:this.options.application,action:C.eX.LibraryEditor.ADD_TO_EXCHANGE,args:[this.model.get("id").toString()]}}),_.M2.isVideo(this.model)&&this.options.customerHasLocalCache&&t.push({title:o.T.getPhrase(this.lang,"localCache"),appLink:{application:this.options.application,action:C.eX.Shared.DOWNLOAD_TO_LOCAL_CACHE,args:[this.model.id.toString()]},analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.AddToLocalCache})}),this.options.collectionIdentifier&&t.push({title:o.T.getPhrase(this.lang,"remove"),appLink:{application:this.options.application,action:C.eX.Shared.DELETE_VIDEOS,args:[this.getFolderSourceId(),this.model.get("id").toString()],params:{routeToFolderOnDelete:this.options.routeToFolderOnDelete}},classes:"text-danger",analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.Delete,descriptor:a.yh.Single,workflowPhase:a.eu.Start})}),new i.Q.FE(t)}},{key:"renderActions",value:function(){this.showChildView("actions",new T({collection:this.getActions(),showActionLabels:this.options.showActionLabels}))}},{key:"renderMoreActions",value:function(){this.moreActionsRendered||(this.moreActionsRendered=!0,this.showChildView("moreActions",new c.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:r.k})))}},{key:"viewOptions",value:function(){return{styles:y,moreSvg:s.Nj.getSvg(s.vn.More),showLabel:this.options.showActionLabels}}},{key:"onRender",value:function(){this.moreActionsRendered=!1,this.renderActions(),this.renderMoreActions()}}])&&M(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),e}(i.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:String(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}var n,r;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}),e}(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:String(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])}var n,o;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}),e}(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:String(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}var n,r;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}),e}(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})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
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),g=t(98985),h=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:String(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)}var t,a;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(h.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:g.o.getHybridArticle(p.s.UploadToLibraryEditor,p.b.UploadToLibraryEditor),uploadTermsUrl:this.config?l._.safeUrlConcat(this.config.get("marketingSiteUrl"),h.l.UploadingUserContent):"",classNames:"info-link",imageUrl:h.Wn.Upload.UPLOAD_VIDEO}}}])&&w(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),n}(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})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
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(85610),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"}))))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
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:String(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)}var r,o;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}),e}(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})}}]);
|