@clickview/library-editor 1.16.1-rc.6 → 1.16.1-rc.7
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/dist/bundles.json +1 -1
- package/dist/css/{4000-library-editor-4c9381e16c.chunk.css → 2417-library-editor-cafbdbc710.chunk.css} +0 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/2417-fed945706c.chunk.js +1 -0
- package/dist/scripts/bundle-b6bdcfafe8.min.js +2 -0
- package/package.json +2 -2
- package/dist/css/9379-library-editor-d4c68a200b.chunk.css +0 -1
- package/dist/scripts/4000-9ac17853ea.chunk.js +0 -1
- package/dist/scripts/9379-c0daa11abc.chunk.js +0 -1
- package/dist/scripts/bundle-b929148d56.min.js +0 -2
- /package/dist/scripts/{bundle-b929148d56.min.js.LICENSE.txt → bundle-b6bdcfafe8.min.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickview/library-editor",
|
|
3
3
|
"description": "Library Editor",
|
|
4
|
-
"version": "1.16.1-rc.
|
|
4
|
+
"version": "1.16.1-rc.7",
|
|
5
5
|
"main": "dist/scripts/bundle.js",
|
|
6
6
|
"types": "dist/projects/library-editor/src/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@babel/polyfill": "7.4.4",
|
|
44
|
-
"@clickview/styles": "1.15.1-rc.
|
|
44
|
+
"@clickview/styles": "1.15.1-rc.7",
|
|
45
45
|
"@clickview/url-signer": "1.0.0",
|
|
46
46
|
"@microsoft/signalr": "^3.1.0",
|
|
47
47
|
"abortcontroller-polyfill": "1.7.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.aGxoe{vertical-align:top;position:relative}.aGxoe._cjiV{padding-left:36px;white-space:nowrap}.aGxoe._cjiV .q6vwS{left:.53125rem;top:50%;margin-top:-0.75rem;position:absolute}.aGxoe._cjiV svg{vertical-align:top}.aGxoe._cjiV .sm svg{vertical-align:middle}.aGxoe.T1CzO{padding:1rem}.aGxoe.T1CzO .q6vwS{top:50%;left:50%;transform:translate3D(-50%, -50%, 0);position:absolute}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4e3],{98001:function(t,e,n){"use strict";n.d(e,{u:function(){return w}});var r=n(39479),o=n(48088),i=n(31647),l=n(11306),a=n(63791),c=n(48090),u=n(61843),s=n(57857),f=n(93421),p=n(40622),y="bimhO";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 b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==d(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key,"string"),"symbol"===d(o)?o:String(o)),r)}var o}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function v(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)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}(k,t);var e,n,d,w,O=(d=k,w=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=m(d);if(w){var n=m(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return v(this,t)});function k(){return b(this,k),O.apply(this,arguments)}return e=k,(n=[{key:"initialize",value:function(){this.options.model||i.Q.ErrorHelper.throw(new l.H("DraggableVideoBehavior must be passed a Video model")),this.listenTo(c.jr.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(c.jr.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"lang",get:function(){return"libraryEditor.behaviors"}},{key:"helper",value:function(){var t=this.getVideoModels();return new f.ND({text:t.length>1?s.T.getPhrase(this.lang,"videos",{videoCount:t.length}):t[0].get("name"),svg:a.Nj.getSvg(a.vn.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(y)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(y)}},{key:"start",value:function(){var t=this.getVideoModels(),e=o.Radio.channel(c.jr.VIDEO_DRAG_DROP);e.trigger("drag:start",t,this.options.collectionIdentifier),r.each(t,(function(t){return e.trigger("drag:style:".concat(t.id))}))}},{key:"stop",value:function(){o.Radio.channel(c.jr.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var t=this,e=u.S0.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:p.CheckboxTypes.VIDEO_LIST,collection:this.view.model.collection});return r.any(e,(function(e){return e.id===t.view.model.id}))||(e=[this.view.model]),e.length?e:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":f.W2.draggable,"ui-draggable-disabled":f.W2.disabled,"ui-draggable-handle":f.W2.handle,"ui-draggable-dragging":f.W2.dragging}}},{key:"onRender",value:function(){var t=this.getSelector(),e={helper:r.bind(this.helper,this),start:r.bind(this.start,this),stop:r.bind(this.stop,this)};e.classes=this.getClassMappings(),t.draggable(r.extend({},f.wc,e))}},{key:"onBeforeDestroy",value:function(){var t=this.getSelector();t.draggable("instance")&&t.draggable("destroy")}}])&&h(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),k}(i.Q.Behavior)},93421:function(t,e,n){"use strict";n.d(e,{wc:function(){return p},ND:function(){return f},W2:function(){return r}});var r={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"},o=n(62699),i=n.n(o);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==l(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key,"string"),"symbol"===l(o)?o:String(o)),r)}var o}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function u(t,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var f=function(t){!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&&c(t,e)}(p,t);var e,n,o,l,f=(o=p,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(o);if(l){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return u(this,t)});function p(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),f.call(this,t)}return e=p,(n=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return i()}},{key:"className",get:function(){return"".concat(r.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:r},this.options)}}])&&a(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),p}(n(31647).Q.Component),p={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},43953:function(t,e,n){"use strict";n.d(e,{J:function(){return g}});var r=n(31647),o=n(57857),i=n(63791),l=n(70065),a=n(52076),c=n(71641),u=n(48090),s=n(8050),f=n.n(s);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==p(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key,"string"),"symbol"===p(o)?o:String(o)),r)}var o}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function b(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}var g=function(t){!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)}(v,t);var e,n,s,p,g=(s=v,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=h(s);if(p){var n=h(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return b(this,t)});function v(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),g.call(this,t)}return e=v,(n=[{key:"name",get:function(){return"LibraryActionsComponent"}},{key:"template",get:function(){return f()}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.libraryActions"}},{key:"className",get:function(){return"position-absolute ".concat("Qgopl"," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".items-region"}}}},{key:"getDropdownItems",value:function(){return[{title:o.T.getPhrase(this.lang,"addFolder"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.UserAction.Create,entity:l.EntityType.Folder,workflowPhase:l.WorkflowPhase.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.Shared.NEW_FOLDER,args:[this.model.get("id")]}},{title:o.T.getPhrase(this.lang,"rename"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.UserAction.Rename,entity:l.EntityType.Library,workflowPhase:l.WorkflowPhase.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.RENAME_LIBRARY,args:[this.model.get("id")]}},{title:o.T.getPhrase(this.lang,"libraryRequestSettings"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.UserAction.SetAccess,entity:l.EntityType.Library,workflowPhase:l.WorkflowPhase.Start}),appLink:{application:u.OV.LIBRARY_REQUESTS,action:u.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[this.model.get("id")]}},{title:o.T.getPhrase(this.lang,"remove"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.UserAction.Delete,entity:l.EntityType.Library,workflowPhase:l.WorkflowPhase.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.DELETE_LIBRARY,args:[this.model.get("id")]},classes:"text-danger"}]}},{key:"onClickDropdownToggle",value:function(){this.showChildView("dropdownItems",new c.w({analyticsHelper:a.k,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new r.Q.Collection(this.getDropdownItems())}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{dropdownClass:"".concat("AAIc2"," ").concat(this.options.buttonClass),svg:i.Nj.getSvg(i.vn.More)}}}])&&y(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),v}(r.Q.Component)},23800:function(t,e,n){"use strict";n.r(e),n.d(e,{LibraryView:function(){return F}});var r=n(39479),o=n(31647),i=n(21679),l=n(57857),a=n(70065),c=n(63791),u=n(80758),s=n(77502),f=n(48404),p=n(48090),y=n(29457),d=n(3059),b=n(87002);function h(t){return h="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},h(t)}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==h(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key,"string"),"symbol"===h(o)?o:String(o)),r)}var o}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function m(t,e){if(e&&("object"===h(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)}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}var O=function(t){!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&&v(t,e)}(l,t);var e,n,r,o,i=(r=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=w(r);if(o){var n=w(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return m(this,t)});function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,t)}return e=l,(n=[{key:"name",get:function(){return"LibraryFolderListComponent"}},{key:"className",get:function(){return"row"}},{key:"childView",get:function(){return b.Y}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])&&g(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(o.Q.ComponentCollection),k=n(43953),S=n(99249),P=n(4705),j=n(50997),R={banner:"goMgi",hide:"mIN1f",svgContainer:"TlMWg"},E=n(25234),_=n.n(E);function T(t){return T="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},T(t)}function C(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function I(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==T(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key,"string"),"symbol"===T(o)?o:String(o)),r)}var o}function D(t,e){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},D(t,e)}function x(t,e){if(e&&("object"===T(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)}function L(t){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},L(t)}var B=function(t){!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)}(l,t);var e,n,r,o,i=(r=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=L(r);if(o){var n=L(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return x(this,t)});function l(){return C(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"initialize",value:function(){this.viewModel=S.r.get("library:editor:updates",{show:!0},{storage:{type:P.Z1.LocalStorage,persistProps:["show"]}})}},{key:"name",get:function(){return"UpdatesBannerComponent"}},{key:"template",get:function(){return _()}},{key:"lang",get:function(){return"libraryEditor.upgradesBanner"}},{key:"events",value:function(){return{"click .hide-button":"onClickHide"}}},{key:"onClickHide",value:function(){this.viewModel.set("show",!1),this.destroy()}},{key:"appLinks",get:function(){return{".upgrades-applink":{application:j.OV.LIBRARY_EDITOR,action:j.eX.LibraryEditor.UPDATES}}}},{key:"viewOptions",value:function(){return{styles:R,backgroundImage:j.Wn.Updates.BANNER,hideSvg:c.Nj.getSvg(c.vn.Close)}}},{key:"onBeforeRender",value:function(){return this.viewModel.get("show")}}])&&I(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(o.Q.Component),A=n(32849),N=n.n(A),V={actions:"_12j8"};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 U(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==M(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key,"string"),"symbol"===M(o)?o:String(o)),r)}var o}function W(t,e){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},W(t,e)}function Q(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)}function Y(t){return Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Y(t)}var F=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&W(t,e)}(g,t);var e,n,o,b,h=(o=g,b=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Y(o);if(b){var n=Y(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Q(this,t)});function g(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,g),h.call(this,t)}return e=g,(n=[{key:"initialize",value:function(){var t=this;this.libraryDataService=i.u.getInstance(p.Or.Library,this),this.listenTo(p.Vk.LIBRARY,"clear:library:folder:cache",(function(){t.folders=null,t.render()}))}},{key:"name",get:function(){return"LibraryView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.library"}},{key:"template",get:function(){return N()}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:u.o,region:"folders",type:y.ub.Library,shouldRender:function(){return t.model&&!t.model.children.length},componentOptions:{libraryId:this.options.libraryId,moreSvg:c.Nj.getSvg(c.vn.More),heading:l.T.getPhrase(this.lang,"emptyStateHeading"),description:l.T.getPhrase(this.lang,"emptyStateInfo",{moreSvg:'<span class="d-inline-block svg-container align-top">\n '.concat(c.Nj.getSvg(c.vn.More),"</span>")})},emptyStateComponents:p.aW}]}},{key:"regions",value:function(){return{upgradesBanner:{el:".upgrades-banner-region",replaceElement:!0},folders:{el:".folders-region",replaceElement:!0,partialLoading:y.LP.LibraryFolders},actions:{el:".actions-region",replaceElement:!0}}}},{key:"renderUpgradesBanner",value:function(){this.showChildView("upgradesBanner",new B)}},{key:"renderFolders",value:function(){this.showChildView("folders",new O({collection:this.folders,childOptions:{location:"library"}}))}},{key:"renderActions",value:function(){this.showChildView("actions",new k.J({model:this.model,extraClasses:"".concat(V.actions," rounded-circle mr-2 mt-2"),analyticsOptions:{location:a.LocationContext.Banner}}))}},{key:"requiredResources",get:function(){return{config:f.p.config}}},{key:"bindScrollListener",value:function(){var t=this;if(!this.scrollBound){this.scrollBound=!0;var e=$(window),n=r.debounce((function(){if(e.scrollTop()+e.height()>t.$el.offset().top+t.$el.height()&&t.currentIdentifier){var n=t.libraryDataService.getFoldersCursors(t.currentIdentifier);n&&n.next&&t.libraryDataService.getFolders(t.getNewCollectionIdentifier(n.next),(function(e){t.folders.add(e.toJSON())}))}}),333);e.scroll(n),window.setTimeout(n,100)}}},{key:"getNewCollectionIdentifier",value:function(t){return this.currentIdentifier=new d.KX(this.model.categoryTree.get("id"),s.E.AtoZ,t)}},{key:"onBeforeRender",value:function(){var t=this;if(this.model)return this.folders||this.libraryDataService.getFolders(this.getNewCollectionIdentifier(),(function(e){t.folders=e,t.render()})),!!this.model&&!!this.folders;this.libraryDataService.getLibraries((function(e){t.model=e.get(t.options.libraryId),t.listenTo(t.model,"change:name",t.render),t.render()}))}},{key:"viewOptions",value:function(){return{styles:V}}},{key:"onRender",value:function(){this.renderUpgradesBanner(),this.renderFolders(),this.renderActions(),this.bindScrollListener()}}])&&U(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),g}(o.Q.View)},71641:function(t,e,n){"use strict";n.d(e,{w:function(){return f}});var r=n(39479),o=n(31647),i=n(55142);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==l(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key,"string"),"symbol"===l(o)?o:String(o)),r)}var o}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function u(t,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var f=function(t){!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&&c(t,e)}(p,t);var e,n,o,l,f=(o=p,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(o);if(l){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return u(this,t)});function p(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),f.call(this,t)}return e=p,n=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return i.N}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.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,r=t.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{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)}}}],n&&a(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),p}(o.Q.ComponentCollection)},62699:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression;return'<span class="'+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=l(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\n<span class="'+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+a(l(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},8050:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,l=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(l(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\n '+(null!=(i=l(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\n</span>\n<div class="items-region"></div>'},useData:!0})},25234:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing;return'<div class="py-4 px-3 mb-3 rounded h4 border '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.banner:i,e))+'"\n style="background-image: url('+a(l(null!=(i=null!=e?e.options:e)?i.backgroundImage:i,e))+')"\n>\n '+a((n.lang||e&&e.lang||u).call(c,"message",{name:"lang",hash:{},data:o}))+'\n <button class="btn btn-outline-dark ml-3 align-middle upgrades-applink">\n '+a((n.lang||e&&e.lang||u).call(c,"button",{name:"lang",hash:{},data:o}))+'\n </button>\n <div class="'+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.hide:i,e))+' hide-button">\n <div class="'+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">\n '+(null!=(i=l(null!=(i=null!=e?e.options:e)?i.hideSvg:i,e))?i:"")+"\n </div>\n </div>\n</div>"},useData:!0})},32849:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,l,a=t.escapeExpression;return'<div class="upgrades-banner-region"></div>\n<div class="bg-white px-3 pt-3 pb-2 position-relative rounded '+a(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.library:i,e))+'">\n <h1 class="h3">'+a("function"==typeof(l=null!=(l=n.name||(null!=e?e.name:e))?l:t.hooks.helperMissing)?l.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):l)+'</h1>\n <div class="folders-region"></div>\n <div class="actions-region"></div>\n</div>'},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9379],{83814:function(e,t,r){r.r(t),r.d(t,{UpdatesView:function(){return h}});var n=r(1024),a=r.n(n),l=r(71575),c=r(57857),s=r(66703),i=r(85610),m=r(264),o=r(50997),u=r(54753);function p(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 E="libraryEditor.updates",f=c.T.encloseNamespace(E);function b(e){return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("img",{src:o.Wn.Updates.LIBRARY_REQUESTS,className:"img-responsive mb-3"}),a().createElement("h2",{className:"h6"},a().createElement(s.x,{namespace:E,phrase:"libraryReqeuestsHeading"})),a().createElement("p",null,a().createElement(s.x,{namespace:E,phrase:"liteLibraryRequests1"})),a().createElement("p",null,a().createElement(u.F,{appLink:{application:o.OV.LIBRARY_REQUESTS,action:o.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES},className:"info-link"},a().createElement(s.x,{namespace:E,phrase:"liteLibraryRequestsLink"}))," ",a().createElement(s.x,{namespace:E,phrase:"liteLibraryRequests2"}))),a().createElement(i.u,null,a().createElement(i.u.Submit,{onClick:e.closePopup,text:f("confirm"),variant:"dark"})))}function d(e){return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("img",{src:o.Wn.Updates.LIBRARY_REQUESTS,className:"img-responsive mb-3"}),a().createElement("h2",{className:"h6"},a().createElement(s.x,{namespace:E,phrase:"libraryReqeuestsHeading"})),a().createElement("p",null,a().createElement(s.x,{namespace:E,phrase:"libraryReqeuestsMessage"}))),a().createElement("div",{className:"d-flex justify-content-between align-items-center border-top pt-3 px-3 mx-n3"},a().createElement(s.x,{namespace:E,phrase:"step",options:{step:1}}),a().createElement(i.u.Submit,{onClick:e.next,text:f("next"),variant:"dark"})))}function y(e){return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("img",{src:o.Wn.Updates.NAVIGATION,className:"img-responsive mb-3"}),a().createElement("h2",{className:"h6"},a().createElement(s.x,{namespace:E,phrase:"navigationHeading"})),a().createElement("p",null,a().createElement(s.x,{namespace:E,phrase:"navigatonMessage"}))),a().createElement("div",{className:"d-flex justify-content-between align-items-center border-top pt-3 px-3 mx-n3"},a().createElement(s.x,{namespace:E,phrase:"step",options:{step:2}}),a().createElement(i.u.Submit,{onClick:e.closePopup,text:f("confirm"),variant:"dark"})))}function h(e){var t,r,n=(t=a().useState("library-requests"),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,l,c,s=[],i=!0,m=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;i=!1}else for(;!(i=(n=l.call(r)).done)&&(s.push(n.value),s.length!==t);i=!0);}catch(e){m=!0,a=e}finally{try{if(!i&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(m)throw a}}return s}}(t,r)||function(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}(t,r)||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.")}()),c=n[0],s=n[1];return a().createElement(l.G,{title:f("title"),closePopup:e.closePopup},m.g.hasLite?a().createElement(b,{closePopup:e.closePopup}):"library-requests"===c?a().createElement(d,{next:function(){return s("navigation")}}):a().createElement(y,{closePopup:e.closePopup}))}}}]);
|