@clickview/library-editor 1.12.1-rc.0 → 1.12.1-rc.1
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 +2 -2
- package/dist/css/{library-editor-app-7a5673c33c.css → library-editor-app-57b3a4db50.css} +1 -1
- package/dist/scripts/299-4f58ee4227.chunk.js +1 -0
- package/dist/scripts/{3969-943c9420c5.chunk.js → 3969-2f5a1b269d.chunk.js} +1 -1
- package/dist/scripts/4830-937f0c9160.chunk.js +1 -0
- package/dist/scripts/6963-8eaa918e57.chunk.js +1 -0
- package/dist/scripts/7002-fe8d55589f.chunk.js +1 -0
- package/dist/scripts/bundle-bf7036c437.min.js +2 -0
- package/package.json +2 -2
- package/dist/scripts/299-0afeacb3d6.chunk.js +0 -1
- package/dist/scripts/4830-d257ad6495.chunk.js +0 -1
- package/dist/scripts/6963-62f3f0be14.chunk.js +0 -1
- package/dist/scripts/7002-46aa63351b.chunk.js +0 -1
- package/dist/scripts/bundle-13099ed40f.min.js +0 -2
- /package/dist/scripts/{bundle-13099ed40f.min.js.LICENSE.txt → bundle-bf7036c437.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.12.1-rc.
|
|
4
|
+
"version": "1.12.1-rc.1",
|
|
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.11.1-rc.
|
|
44
|
+
"@clickview/styles": "1.11.1-rc.1",
|
|
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
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[299],{91439:function(t,e,n){"use strict";n.d(e,{u:function(){return b}});var o=n(39479),r=n(48088),i=n(31647),s=n(63791),l=n(88181),a=n(93421),c="C8gyn";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){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(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,o.key,o)}}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function y(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)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(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&&h(t,e)}(v,t);var e,n,i,u,b=(i=v,u=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=d(i);if(u){var n=d(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return y(this,t)});function v(){return p(this,v),b.apply(this,arguments)}return e=v,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":a.W2.draggable,"ui-draggable-handle":a.W2.handle,"ui-draggable-disabled":a.W2.disabled,"ui-draggable-dragging":a.W2.dragging}}},{key:"helper",value:function(){return new a.ND({text:this.view.model.get("name"),svg:s.Nj.getSvg(s.vn.Folder)}).render().el}},{key:"start",value:function(){r.Radio.channel(l.jr.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(c)}},{key:"stop",value:function(){r.Radio.channel(l.jr.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(c)}},{key:"onRender",value:function(){var t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},a.wc,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&f(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),v}(i.Q.Behavior)},6929:function(t,e,n){"use strict";n.d(e,{x:function(){return h}});var o=n(39479),r=n(48088),i=n(31647),s=n(10454);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){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(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,o.key,o)}}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function p(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 f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var h=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&&u(t,e)}(y,t);var e,n,i,l,h=(i=y,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=f(i);if(l){var n=f(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return p(this,t)});function y(){return a(this,y),h.apply(this,arguments)}return e=y,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;o.each(this.options.channelNames,(function(e){r.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return o.each(this.options.channelNames,(function(n){!0===r.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",s.Z.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:o.bind(this.drop,this),accept:o.bind(this.accept,this),over:o.bind(this.over,this),out:o.bind(this.out,this)};t.classes={"ui-droppable":s.Z.droppable,"ui-droppable-active":s.Z.active,"ui-droppable-hover":s.Z.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&c(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),y}(i.Q.Behavior)},93421:function(t,e,n){"use strict";n.d(e,{wc:function(){return f},ND:function(){return p},W2:function(){return o}});var o={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"},r=n(62699),i=n.n(r);function s(t){return s="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},s(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,o.key,o)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function c(t,e){if(e&&("object"===s(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 u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var p=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&&a(t,e)}(f,t);var e,n,r,s,p=(r=f,s=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=u(r);if(s){var n=u(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return c(this,t)});function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,t)}return e=f,(n=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return i()}},{key:"className",get:function(){return"".concat(o.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:o},this.options)}}])&&l(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),f}(n(31647).Q.Component),f={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},50299:function(t,e,n){"use strict";n.d(e,{J:function(){return j}});var o=n(39479),r=n(31647),i=n(48088),s=n(63791),l=n(70065),a=n(61843),c=n(88181),u=n(6929),p=n(91439),f=n(42978),h=n.n(f);function y(t){return y="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},y(t)}function d(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,o.key,o)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function v(t,e){if(e&&("object"===y(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 g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var m=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&&b(t,e)}(O,t);var e,n,f,y,m=(f=O,y=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=g(f);if(y){var n=g(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return v(this,t)});function O(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,O),m.call(this,t)}return e=O,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render);var t=this.getChildren();t&&this.listenTo(t,"add remove",this.render),this.listenTo(this,"open:sub:folders",this.onOpenSubFolders)}},{key:"name",get:function(){return"LeftNavNodeComponent"}},{key:"elements",get:function(){return{anchor:".ui-node",text:".ui-text"}}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="position-relative";return this.isSelected()&&(t+=" ".concat(this.options.styles.selected)),this.isParent()&&(t+=" ".concat(this.options.styles.parent)),this.options.isSelector&&(t+=" ".concat(this.options.styles.isSelector)),t}},{key:"behaviors",get:function(){return this.options.isSelector?[]:[{behaviorClass:u.x,ui:"anchor",channelNames:[c.jr.VIDEO_DRAG_DROP,c.jr.FOLDER_DRAG_DROP],analyticsOptions:{location:l.LocationContext.LeftNav}},{behaviorClass:p.u}]}},{key:"appLinks",get:function(){return this.options.appLink?{"@ui.anchor":this.getAppLink()}:{}}},{key:"events",value:function(){return{"click .ui-node":"onClick"}}},{key:"regions",value:function(){return{children:{el:"ul",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"template",get:function(){return h()}},{key:"hasChildren",value:function(){var t=this.getChildren();return!!t&&!!t.length}},{key:"getChildren",value:function(){return this.options.childrenProperty?this.model.get(this.options.childrenProperty):null}},{key:"getText",value:function(){return this.options.textProperty?this.model.get(this.options.textProperty):this.model.get("name")}},{key:"isSelected",value:function(){return a.PU.isSelected(this.options.folderTreeId,this.model.get("id"))}},{key:"isParent",value:function(){return a.PU.isParent(this.options.folderTreeId,this.model.get("id"))}},{key:"isDisabled",value:function(){return this.options.disabledIds&&this.options.disabledIds[this.model.get("id").toString()]}},{key:"getAnchorClass",value:function(){var t="position-relative ".concat(this.options.styles.node);return this.isSelected()?t+=" text-body font-weight-bold":this.isDisabled()?t+=" text-muted":t+=" text-dark",t}},{key:"getCaretClass",value:function(){var t=this.options.styles.caret;return this.isDisabled()&&(t+=" text-muted"),t}},{key:"getAppLink",value:function(){if(!this.options.appLink)return{};var t=this.options.linkArgs,e=this.options.linkParams;return{application:this.options.appLink.application,action:this.options.appLink.action,args:o.isFunction(t)?t(this.model):null,params:o.isFunction(e)?e(this.model):null}}},{key:"onClick",value:function(t){t.stopPropagation();var e=this.getRegion("children"),n=i.Radio.channel(this.options.channelName);if(this.isDisabled()||(this.$el.addClass(this.options.styles.selected),this.getUI("text").addClass("text-body font-weight-bold")),this.options.isSelector&&n.trigger("folder:selected",this.model,this.isDisabled()),this.isDisabled()||this.isSelected()&&this.isCurrentPath()){if(t.stopImmediatePropagation(),t.preventDefault(),!this.hasChildren())return void(this.options.isSelector&&n.trigger("re:render:selector"));var o=!e.hasView();return o?this.openChildren():this.closeChildren(),void(this.options.isSelector&&o&&n.trigger("re:render:selector"))}this.hasChildren()&&(this.openChildren(),this.options.isSelector&&i.Radio.channel(this.options.channelName).trigger("re:render:selector"))}},{key:"isCurrentPath",value:function(){var t=r.Q.AppLinkHelper.getCurrentAppLink(),e=this.getAppLink();return!o.keys(e).length||t.application===e.application&&t.action===e.action}},{key:"closeChildren",value:function(){var t=this.getRegion("children");this.$el.addClass(this.options.styles.collapsed),this.$el.removeClass(this.options.styles.parent),t.empty()}},{key:"openChildren",value:function(){this.$el.removeClass(this.options.styles.collapsed),this.renderChildren()}},{key:"onOpenSubFolders",value:function(t){this.renderedSubChildren||this.renderChildren(t)}},{key:"renderChildren",value:function(t){var e=this.getChildren();if(e&&e.length){var n={styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,extraClass:this.options.extraClass,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds};n.extraClasses=t,n.collection=e,this.showChildView("children",new j(n)),this.renderedSubChildren=!0}}},{key:"viewOptions",value:function(){var t="".concat(this.options.styles.item," ").concat(this.options.styles.customItem||"");return this.isDisabled()&&this.renderedSubChildren&&(t+=" ".concat(this.options.styles.disabledActive)),{children:this.getChildren(),itemClass:t,anchorClass:this.getAnchorClass(),caretClass:this.getCaretClass(),showCaret:this.hasChildren(),svg:s.Nj.getSvg(s.vn.Caret),extraClasses:this.options.extraClasses,textStyle:this.options.styles.text,text:this.getText()}}},{key:"onRender",value:function(){this.resetClassName(),this.options.actions&&this.showChildView("actions",new this.options.actions({model:this.model,extraClasses:"rounded-circle mr-1 ".concat(this.options.styles.actions),buttonClass:"text-muted",analyticsOptions:this.options.analyticsOptions})),(this.isSelected()||this.isParent())&&this.renderChildren()}}])&&d(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),O}(r.Q.Component),O=n(95308);function w(t){return w="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},w(t)}function k(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,o.key,o)}}function C(t,e){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},C(t,e)}function P(t,e){if(e&&("object"===w(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 x(t){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},x(t)}var j=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)}(l,t);var e,n,r,i,s=(r=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=x(r);if(i){var n=x(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return P(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),t.styles=o.extend({},O.Z,t.styles),s.call(this,t)}return e=l,(n=[{key:"name",get:function(){return"LeftNavComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"childView",get:function(){return m}},{key:"className",get:function(){var t="".concat(this.options.styles.folderTree," position-relative");return this.options.extraClass?"".concat(t," ").concat(this.options.extraClass):t}},{key:"viewComparator",get:function(){return function(t){var e;return null===(e=t.get("name"))||void 0===e?void 0:e.toLowerCase()}}},{key:"childViewOptions",get:function(){return{styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,extraClass:this.options.extraClass,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds}}}])&&k(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(r.Q.ComponentCollection)},62699:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,l=t.escapeExpression;return'<span class="'+l(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\n<span class="'+l(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+l(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},42978:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda;return' <span class="'+t.escapeExpression(s(null!=(i=null!=e?e.options:e)?i.caretClass:i,e))+' d-inline-block position-absolute">\n '+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"\n </span>\n"},3:function(t,e,n,o,r){return"<ul></ul>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,l=t.escapeExpression,a=null!=e?e:t.nullContext||{};return'<div class="position-relative '+l(s(null!=(i=null!=e?e.options:e)?i.itemClass:i,e))+'">\n <a class="'+l(s(null!=(i=null!=e?e.options:e)?i.anchorClass:i,e))+' d-block ui-node">\n'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.showCaret:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' <span class="'+l(s(null!=(i=null!=e?e.options:e)?i.textStyle:i,e))+" ui-text "+l(s(null!=(i=null!=e?e.options:e)?i.extraClasses:i,e))+'">'+l(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+'</span>\n </a>\n <div class="actions-region"></div>\n</div>\n'+(null!=(i=n.if.call(a,null!=(i=null!=(i=null!=e?e.options:e)?i.children:i)?i.length:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})},95308:function(t,e){"use strict";e.Z={folderTree:"JTT7V",text:"ekgGD",caret:"tFpUT",library:"VmDO7",isSelector:"gxCnr",selected:"UotqF",parent:"WHPA5",disabledActive:"S2QPI",disabled:"tntwp",collapsed:"Po9s7",actions:"Sf28U",node:"vm17w",libraryContainer:"_xoJs",item:"aMuxi"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4830],{84611:function(e,r,t){t.d(r,{f:function(){return c}});var a=t(1024),n=t.n(a),i=t(39396);function c(e){return e.imageUrl||e.svgName?e.imageUrl?n().createElement("div",{className:"".concat("BQ87Y"," rounded-circle h-100 w-100"),style:{backgroundImage:"url(".concat(e.imageUrl,")")}}," "):n().createElement("div",{className:"".concat("Uxnsl"," ").concat(e.variant?"bg-".concat(e.variant):""," text-").concat(e.textVariant," rounded-circle h-100 w-100")},n().createElement(i.x,{svgName:e.svgName,size:e.svgSize})):n().createElement(n().Fragment,null)}c.defaultProps={textVariant:"white"}},9063:function(e,r,t){t.d(r,{Z:function(){return o}});var a=t(1024),n=t.n(a),i=t(58424),c=t(63946);function o(e){function r(){e.disabled||e.onClick.apply(e,arguments)}var t=e.disabled?"disabled":"",a=e.hideOutline?"outline-none":"",o=e.on?"on":"";e.disabled&&!e.showStateWhenDisabled&&(o="");var s="".concat("d-inline-block float-right align-top custom-toggle toggle-option"," ").concat(o," ").concat(t," ").concat(a);return e.tooltipText?n().createElement(c.u,{title:e.tooltipText,spanHack:!0},n().createElement(i.L,{onClick:r,className:s},n().createElement("span",{className:"handle"}))):n().createElement(i.L,{onClick:r,className:s},n().createElement("span",{className:"handle"}))}},34107:function(e,r,t){t.d(r,{D:function(){return o}});var a=t(68003),n=t(2248),i=t(40221),c=t(84657),o={domainLibraries:function(e,r,t,n){return{url:a._.urlBuilder("/api/domain/v2/me/libraries",{type:e,maxCategoryDepth:0}),key:"libraries:".concat(e.sort().join(":")),formatData:function(e){return e.map((function(e){return e.data}))},success:r,error:t,always:n}},libraryRequestLibraries:function(){return{url:"{gateway}/v1/library-requests/libraries",key:"libraries"}},librariesWithCategories:function(){return{url:a._.urlBuilder("/api/domain/v2/me/libraries",{type:["sharedLibrary","customLibrary","unpublishedCustomLibrary"],maxCategoryDepth:5}),key:"libraries:with:categories",normalize:!1}},librariesWithOwnerLogos:function(e,r,t,n){return e.sort(),{url:a._.urlBuilder("/api/domain/v2/objects",{query:c.v.LIBRARY_COLLECTION,id:e}),key:"libraries:owner:logo:".concat(e.join(",")),success:r,error:t,always:n}},library:function(e,r,t,n){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:c.v.LIBRARY}),key:"library:".concat(e),success:r,error:t,always:n}},librarySubscribers:function(e,r){var t={};return r&&(t.cursor=r),{url:a._.urlBuilder("{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers"),t),key:"library:subscribers:".concat(e,":").concat(r)}},libraryOwner:function(e){return{url:"{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers?ownerOnly=true"),key:"library:owner:".concat(e),formatData:function(e){return i.m.first(e.data)}}},updateSubscriberPermissions:function(e,r,t,a,i){return{url:"{gateway}/v1/libraries/".concat(e,"/library-request-permissions"),key:"update:subscriber:permissions:".concat(e,":").concat(r),type:n.k.PUT,data:{customerId:r,granted:t},success:a,error:i}},removeSubscriber:function(e,r,t,a){return{url:"{gateway}/v1/objects/".concat(e,"/subscribedcustomers?memberId=").concat(r),key:"revoke:subscription:".concat(e,":").concat(r),type:n.k.DELETE,invalidationKeys:["library:subscribers:".concat(e)],success:t,error:a}},folder:function(e,r,t,a){return{url:"{gateway}/v1/objects/".concat(e,"?query=banner,libraries"),key:"library:folder:".concat(e),success:r,error:t,always:a}},folderParentTree:function(e,r,t,a){return{url:"/api/domain/v2/categories/".concat(e,"/parent-tree?includeAll=false"),key:"folder:parent:tree".concat(e),success:r,error:t,always:a}},childFolders:function(e,r,t,a,n){var i="{gateway}/v1/objects/".concat(e,"/categories?query={limit:100}thumbnail"),c="child:folders:".concat(e);return r&&(i+="&cursor=".concat(r),c+=":".concat(r)),{url:i,key:c,formatData:function(e){var r=e.data.sort((function(e,r){return e.name.toLowerCase().localeCompare(r.name.toLowerCase())}));return Object.assign(Object.assign({},e),{data:r})},success:t,error:a,always:n}},addToLibrary:function(e){return{url:"{gateway}/v1/library-requests",key:"add:".concat(e.objectId,":to:").concat(e.destinationLibraryId,":").concat(e.metadata.destinationCategoryId),type:n.k.POST,data:e}}}},52814:function(e,r,t){t.d(r,{y:function(){return i}});var a=t(1024),n=t.n(a);function i(){return n().createElement("div",{className:"partial-loading-background w-100 rounded-lg",style:{height:"3.5rem"}}," ")}},4830:function(e,r,t){t.r(r),t.d(r,{LibraryRequestSettingsView:function(){return q}});var a=t(1024),n=t.n(a),i=t(86120),c=t(57857),o=t(89375),s=t(34107),l=t(30317),u=t(66703),m=t(2491),d=t(86242),b=t(99910),y=t(70868),p=t(54753),v=t(52076),g=t(70065);function f(e,r){var t;if(!r)return null;var a=null!==(t=e.params)&&void 0!==t?t:{};return{application:e.application,action:e.action,args:e.args,params:Object.assign(Object.assign({},a),{cursor:r})}}function E(e){var r=e.appLink,t=e.cursors,n=e.className,i=e.buttonVariant,c=e.onClick;function o(e){r&&y.t.preventScrollTop(),v.k.logUserAction({page:e},{location:g.LocationContext.Pagination,entity:g.EntityType.Pagination,actionType:g.UserAction.Navigate}),c&&c(t[e])}return r?a.createElement(u.D.Provider,{value:"shared.pagination"},a.createElement("div",{className:n},a.createElement(p.F,{appLink:f(r,t.previous),className:"btn btn-".concat(i," mr-1 ").concat(t.previous?"":"disabled"),onClick:function(){return o("previous")}},a.createElement(u.x,{phrase:"previous"})),a.createElement(p.F,{appLink:f(r,t.next),className:"btn btn-".concat(i," ").concat(t.next?"":"disabled"),onClick:function(){return o("next")}},a.createElement(u.x,{phrase:"next"})))):a.createElement(u.D.Provider,{value:"shared.pagination"},a.createElement("div",{className:n},a.createElement(b.Button,{variant:i,className:"mr-1 ".concat(t.previous?"":"disabled"),onClick:function(){return o("previous")}},a.createElement(u.x,{phrase:"previous"})),a.createElement(b.Button,{variant:i,className:"btn ".concat(t.next?"":"disabled"),onClick:function(){return o("next")}},a.createElement(u.x,{phrase:"next"}))))}E.defaultProps={className:"py-2",buttonVariant:"secondary"};var h=t(50997),L=t(9063),k=t(63791),R=t(84611);function S(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var w="libraryRequests.schoolLibraryRequestSettings";function I(e){var r,t,a,i,c=(a=n().useState(!!e.customer.libraryRequestEnabled),i=2,function(e){if(Array.isArray(e))return e}(a)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,n,i=[],c=!0,o=!1;try{for(t=t.call(e);!(c=(a=t.next()).done)&&(i.push(a.value),!r||i.length!==r);c=!0);}catch(e){o=!0,n=e}finally{try{c||null==t.return||t.return()}finally{if(o)throw n}}return i}}(a,i)||function(e,r){if(e){if("string"==typeof e)return S(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,r):void 0}}(a,i)||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.")}()),o=c[0],s=c[1];return n().createElement("div",{className:"p-2 border rounded-lg d-flex align-items-center mb-2 ".concat(e.isLibraryOwner?"":"S_m9j")},n().createElement("div",{className:"mr-2 ".concat("iKsvQ")},n().createElement(R.f,{imageUrl:e.customer.logoUrl,svgName:k.vn.School,variant:"dark-blue"})),n().createElement("div",{className:"mr-auto"},n().createElement("h3",{className:"h6 mb-0"},e.customer.customerName),n().createElement("p",{className:"".concat("ru_SO"," mb-0 text-muted")},n().createElement(u.x,{namespace:w,phrase:"totalStaffAndAdmins",options:{smartCount:(null!==(r=e.customer.staff)&&void 0!==r?r:0)+(null!==(t=e.customer.admin)&&void 0!==t?t:0)}})),n().createElement(p.F,{className:"".concat("BZF1Q"," danger-link"),appLink:{application:h.OV.LIBRARY_REQUESTS,action:h.eX.LibraryRequests.REMOVE_LIBRARY_SUBSCRIBER,args:[e.libraryId,e.customer.customerId]},analyticsData:{id:e.libraryId,customerId:e.customer.customerId},analyticsOptions:{actionType:g.UserAction.Dissociate,entity:g.EntityType.Library,descriptor:g.AssocDescriptor.Customer,location:g.LocationContext.LibraryRequestSettings,workflowPhase:g.WorkflowPhase.Start}},n().createElement(u.x,{namespace:w,phrase:"removeAccess"}))),n().createElement(L.Z,{on:o,onClick:function(){s(!o),e.onToggle(e.customer.customerId,!o)}}))}var N=t(52814);function x(){return n().createElement("div",{className:"bg-white p-3"},n().createElement("div",{className:"mb-2 partial-loading-background",style:{width:"10rem",height:"1.8rem"}}),n().createElement(d.b2,null),n().createElement("hr",null),n().createElement("div",{className:"mb-1 partial-loading-background",style:{height:"1.5rem",width:"5.25rem"}}),n().createElement("div",{className:"mb-2 partial-loading-background",style:{height:"1.15rem",width:"24.5rem"}}),n().createElement(N.y,null))}var T=t(22430),A="libraryRequests.libraryRequestSettings",C=c.T.encloseNamespace(A);function q(e){var r,t,a,c,b,y,p,f,L,k,R=i.a.useBasicFetch(s.D.domainLibraries(["customLibrary","unpublishedCustomLibrary"])),S=null===(r=R.data)||void 0===r?void 0:r.find((function(r){return r.id.toString()===e.libraryId.toString()})),w=i.a.useBasicFetch(s.D.libraryOwner(e.libraryId)),N=i.a.useBasicFetch(s.D.librarySubscribers(e.libraryId,e.cursor)),q=!!(null===(a=null===(t=N.data)||void 0===t?void 0:t.data)||void 0===a?void 0:a.length),O=i.a.useGetFetch(),B=(0,m.Z)();function _(r,t){var a=w.data.customerId===r?w.data:N.data.data.find((function(e){return e.customerId===r}));O(s.D.updateSubscriberPermissions(e.libraryId,r,t,(function(){var n=C(t?"enableLibraryRequestsSuccess":"disableLibraryRequestsSuccess",{school:a.customerName});B.success(n),v.k.logUserAction({id:e.libraryId,customerId:r,canAddContent:t},{actionType:g.UserAction.SetAccess,entity:g.EntityType.Library,descriptor:g.AssocDescriptor.Customer,location:g.LocationContext.LibraryRequestSettings})}),(function(e){return B.error(T.M.libraryApiError(e))})))}(0,l.v)(R),n().useEffect((function(){return o.j.setPageTitle(C("libraryRequestSettings"))}),[]);var D=[{name:C("libraryEditor"),appLink:{application:h.OV.LIBRARY_EDITOR,action:h.eX.LibraryEditor.HOME}},{name:C("libraryRequestSettings"),appLink:{application:h.OV.LIBRARY_REQUESTS,action:h.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES},active:(null===(c=R.data)||void 0===c?void 0:c.length)<=1}];return R.data&&(null===(b=R.data)||void 0===b?void 0:b.length)>1&&D.push({name:C("requestingTo",{name:S.name}),appLink:{application:h.OV.LIBRARY_EDITOR,action:h.eX.LibraryEditor.LIBRARY,args:[S.id]},active:!0}),R.data&&N.data?n().createElement("div",{className:"bg-white p-3"},n().createElement("h1",{className:"h3 mb-2"},q?n().createElement(u.x,{namespace:A,phrase:"requestingTo",options:{name:S.name}}):C("libraryRequestSettings")),n().createElement(d.Oo,{breadcrumbs:D}),n().createElement("hr",null),n().createElement("p",{className:"mb-3"},q?n().createElement(u.x,{namespace:A,phrase:"manageSubscribers"}):n().createElement(u.x,{namespace:A,phrase:"manageSchool"})),!(null===(p=null===(y=N.data.pagination)||void 0===y?void 0:y.cursors)||void 0===p?void 0:p.previous)&&n().createElement(n().Fragment,null,n().createElement("h2",{className:"h5 mb-1"},q?n().createElement(u.x,{namespace:A,phrase:"mySchool"}):S.name),!!w.data&&n().createElement(I,{libraryId:e.libraryId,customer:w.data,onToggle:_,isLibraryOwner:!0})),!!(null===(L=null===(f=N.data)||void 0===f?void 0:f.data)||void 0===L?void 0:L.length)&&n().createElement(n().Fragment,null,n().createElement("h2",{className:"h5 mb-1 mt-3"},n().createElement(u.x,{namespace:A,phrase:"subscribers"})),N.data.data.map((function(r){return n().createElement(I,{libraryId:e.libraryId,key:r.customerId,customer:r,onToggle:_})})),(null===(k=N.data.pagination)||void 0===k?void 0:k.cursors)&&n().createElement(E,{cursors:N.data.pagination.cursors,appLink:{application:h.OV.LIBRARY_REQUESTS,action:h.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[e.libraryId]},buttonVariant:"outline-dark",className:"text-right pt-2 pb-1"}))):n().createElement(x,null)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6963],{54096:function(r,e,t){t.d(e,{G:function(){return a}});var n=t(1024),o=t(21679);function a(r){var e,t;return e=r,t=o.u.getInstance(e),n.useEffect((function(){return function(){o.u.releaseInstance(e)}})),t}},84657:function(r,e,t){t.d(e,{v:function(){return n}});var n={BASE_VIDEO_COLLECTION:"thumbnail,tags,rating,series,season,owner",VIDEO_COLLECTION:"(videoCollection)",SERIES:"tallposter,rating,banner",FOLDER:"banner,thumbnail",CLASSIFICATION_COLLECTION:"banner,cover,tallPoster",CLASSIFICATION:function(r){return"banner,cover,tallPoster,followers{id:".concat(r,"},pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0}")},VIDEO:"series,season,rating,producers,glance,distributors,owner,resources[thumbnail,pdf],tags,productionCompanies,directors,links,thumbnail,interactives[thumbnail,_canBeConsumed,_isClickViewContent,owner[avatar]],clips[_canBeConsumed,owner[avatar],_isClickViewContent],_canUpdate,_videoProgress,_canBeConsumed,categories,libraries,_canAddToLibrary",PLAYLIST:"cover,banner,owner,videos[count()]{limit:0},clips[count()]{limit:0},interactives[count()]{limit:0},followers[count()]{limit:0}",PLAYLIST_COLLECTION:"videos[count()]{limit:0},interactives[count()]{limit:0},clips[count()]{limit:0},cover",CLIP:"(clip)",CLIP_COLLECTION:"(clipCollection)",INTERACTIVE:"(interactive)",LIBRARY_COLLECTION:"owner[logo]",LIBRARY:"owner[logo],categorytree"}},34107:function(r,e,t){t.d(e,{D:function(){return c}});var n=t(68003),o=t(2248),a=t(40221),i=t(84657),c={domainLibraries:function(r,e,t,o){return{url:n._.urlBuilder("/api/domain/v2/me/libraries",{type:r,maxCategoryDepth:0}),key:"libraries:".concat(r.sort().join(":")),formatData:function(r){return r.map((function(r){return r.data}))},success:e,error:t,always:o}},libraryRequestLibraries:function(){return{url:"{gateway}/v1/library-requests/libraries",key:"libraries"}},librariesWithCategories:function(){return{url:n._.urlBuilder("/api/domain/v2/me/libraries",{type:["sharedLibrary","customLibrary","unpublishedCustomLibrary"],maxCategoryDepth:5}),key:"libraries:with:categories",normalize:!1}},librariesWithOwnerLogos:function(r,e,t,o){return r.sort(),{url:n._.urlBuilder("/api/domain/v2/objects",{query:i.v.LIBRARY_COLLECTION,id:r}),key:"libraries:owner:logo:".concat(r.join(",")),success:e,error:t,always:o}},library:function(r,e,t,o){return{url:n._.urlBuilder("{gateway}/v1/objects/".concat(r),{query:i.v.LIBRARY}),key:"library:".concat(r),success:e,error:t,always:o}},librarySubscribers:function(r,e){var t={};return e&&(t.cursor=e),{url:n._.urlBuilder("{gateway}/v1/library-requests/libraries/".concat(r,"/subscribers"),t),key:"library:subscribers:".concat(r,":").concat(e)}},libraryOwner:function(r){return{url:"{gateway}/v1/library-requests/libraries/".concat(r,"/subscribers?ownerOnly=true"),key:"library:owner:".concat(r),formatData:function(r){return a.m.first(r.data)}}},updateSubscriberPermissions:function(r,e,t,n,a){return{url:"{gateway}/v1/libraries/".concat(r,"/library-request-permissions"),key:"update:subscriber:permissions:".concat(r,":").concat(e),type:o.k.PUT,data:{customerId:e,granted:t},success:n,error:a}},removeSubscriber:function(r,e,t,n){return{url:"{gateway}/v1/objects/".concat(r,"/subscribedcustomers?memberId=").concat(e),key:"revoke:subscription:".concat(r,":").concat(e),type:o.k.DELETE,invalidationKeys:["library:subscribers:".concat(r)],success:t,error:n}},folder:function(r,e,t,n){return{url:"{gateway}/v1/objects/".concat(r,"?query=banner,libraries"),key:"library:folder:".concat(r),success:e,error:t,always:n}},folderParentTree:function(r,e,t,n){return{url:"/api/domain/v2/categories/".concat(r,"/parent-tree?includeAll=false"),key:"folder:parent:tree".concat(r),success:e,error:t,always:n}},childFolders:function(r,e,t,n,o){var a="{gateway}/v1/objects/".concat(r,"/categories?query={limit:100}thumbnail"),i="child:folders:".concat(r);return e&&(a+="&cursor=".concat(e),i+=":".concat(e)),{url:a,key:i,formatData:function(r){var e=r.data.sort((function(r,e){return r.name.toLowerCase().localeCompare(e.name.toLowerCase())}));return Object.assign(Object.assign({},r),{data:e})},success:t,error:n,always:o}},addToLibrary:function(r){return{url:"{gateway}/v1/library-requests",key:"add:".concat(r.objectId,":to:").concat(r.destinationLibraryId,":").concat(r.metadata.destinationCategoryId),type:o.k.POST,data:r}}}},2491:function(r,e,t){t.d(e,{Z:function(){return i}});var n=t(54096),o=t(21186),a=t(92159);function i(){var r=(0,n.G)(a.P.ALERT);return{success:function(e){r.success(e)()},error:function(e){r.error(e)()},warning:function(e){r.createAlert({type:o.NK.Warning,heading:o.R6.Warning,message:e})}}}},82378:function(r,e,t){t.d(e,{i:function(){return a}});var n=t(1024),o=t(94223);function a(r,e){var t=r,a=e,i=(0,o.P)(r&&function(r){return t(r).key});return(0,n.useEffect)((function(){i&&i.shouldInitialFetch&&e&&a()}),[null==i?void 0:i.shouldInitialFetch,e]),(0,n.useEffect)((function(){i&&i.nextCursor&&!i.isFetching&&e&&a(i.nextCursor)}),[null==i?void 0:i.nextCursor,null==i?void 0:i.isFetching,e]),i}},94223:function(r,e,t){t.d(e,{P:function(){return s}});var n=t(1024),o=t(58566),a=t(86120),i=t(53808);function c(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function s(r,e,t){function s(r){if(r)return i.q.isFunction(e)?e(r):r.data}function u(r){var e,n;if(r)return t?t(r):null===(n=null===(e=r.pagination)||void 0===e?void 0:e.cursors)||void 0===n?void 0:n.next}return(0,o.useSelector)((0,n.useMemo)((function(){return function(e){if(i.q.isFunction(r)){for(var t=r,n=i.q.isFunction(r)&&t(),o=n&&a.a.getResponse(e,n),l=o&&o.isFetching,d=o&&o.statusCode,b=o&&o.hasCompleted,f=o&&o.shouldFetch,y=s(o&&o.data),m=u(o&&o.data),v=function(r){var e;if(r)return null===(e=r)||void 0===e?void 0:e.count}(o&&o.data);m&&(l=(o=a.a.getResponse(e,t(m))).isFetching,d=o.statusCode,b=o.hasCompleted,!o.shouldFetch);){var p=s(o.data);p&&y.push.apply(y,function(r){if(Array.isArray(r))return c(r)}(C=p)||function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(C)||function(r,e){if(r){if("string"==typeof r)return c(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(r,e):void 0}}(C)||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.")}());var h=u(o.data);m=h===m?null:h}var g={shouldInitialFetch:f,items:y,nextCursor:m,isFetching:l,statusCode:d,hasCompleted:b};return"number"==typeof v&&(g.totalItems=v),g}var C}}),[r]))}t(35656).o.Ok},91021:function(r,e,t){t.r(e),t.d(e,{RemoveLibrarySubscriberView:function(){return p}});var n=t(1024),o=t.n(n),a=t(52076),i=t(86120),c=t(57857),s=t(71575),u=t(2491),l=t(34107),d=t(82378),b=t(85610),f=t(66703),y=t(70065);function m(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}var v="libraryRequests.removeLibrarySubscriber";function p(r){var e,t,n,p=i.a.useGetFetch(),h=(t=o().useState(!1),n=2,function(r){if(Array.isArray(r))return r}(t)||function(r,e){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(r);!(i=(n=t.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(r){c=!0,o=r}finally{try{i||null==t.return||t.return()}finally{if(c)throw o}}return a}}(t,n)||function(r,e){if(r){if("string"==typeof r)return m(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(r,e):void 0}}(t,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.")}()),g=h[0],C=h[1],I=i.a.useBasicFetch(l.D.library(r.libraryId));function w(e){return l.D.librarySubscribers(r.libraryId,e)}var L=(0,d.i)(w,(function(r){p(w(r))})),E=(0,u.Z)(),S=null===(e=null==L?void 0:L.items)||void 0===e?void 0:e.find((function(e){return e.customerId===r.customerId})),k=I.hasCompleted&&!!S;return o().createElement(s.G,{title:c.T.getPhrase(v,"removeAccess"),closePopup:r.closePopup,showLoadingSpinner:!k},!!k&&o().createElement(o().Fragment,null,o().createElement("div",{className:"alert alert-info",role:"alert"},o().createElement(f.x,{namespace:v,phrase:"alert"})),o().createElement("p",null,o().createElement(f.x,{namespace:v,phrase:"removeSubscriberInfo",options:{school:S.customerName,library:I.data.name}})),o().createElement(b.u,null,o().createElement(b.u.Cancel,{onClick:r.closePopup}),o().createElement(b.u.Submit,{onClick:function(){C(!0),p(l.D.removeSubscriber(r.libraryId,r.customerId,(function(){E.success(c.T.getPhrase(v,"revokeSubscriptionSuccess",{school:S.customerName,library:I.data.name})),a.k.logUserAction({id:r.libraryId,customerId:r.customerId},{actionType:y.UserAction.Dissociate,entity:y.EntityType.Library,descriptor:y.AssocDescriptor.Customer,location:y.LocationContext.Popup,workflowPhase:y.WorkflowPhase.Complete}),r.closePopup()}),(function(){C(!1),E.error(c.T.getPhrase(v,"revokeSubscriptionError",{school:S.customerName,library:I.data.name}))})))},text:c.T.getPhrase(v,"removeAccess"),variant:"danger",showSpinner:g}))))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[7002],{24828:function(t,e,n){"use strict";n.d(e,{o:function(){return o}});var o=["bg-pink","bg-orange"].concat(["bg-green","bg-cyan","bg-teal","bg-blue","bg-indigo","bg-purple"])},22231:function(t,e,n){"use strict";function o(t,e){return e[t.charCodeAt(0)%e.length]}n.d(e,{x:function(){return o}})},91439:function(t,e,n){"use strict";n.d(e,{u:function(){return h}});var o=n(39479),r=n(48088),i=n(31647),a=n(63791),c=n(88181),l=n(93421),s="C8gyn";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){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(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,o.key,o)}}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function d(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)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}var h=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&&y(t,e)}(g,t);var e,n,i,u,h=(i=g,u=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=b(i);if(u){var n=b(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return d(this,t)});function g(){return p(this,g),h.apply(this,arguments)}return e=g,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":l.W2.draggable,"ui-draggable-handle":l.W2.handle,"ui-draggable-disabled":l.W2.disabled,"ui-draggable-dragging":l.W2.dragging}}},{key:"helper",value:function(){return new l.ND({text:this.view.model.get("name"),svg:a.Nj.getSvg(a.vn.Folder)}).render().el}},{key:"start",value:function(){r.Radio.channel(c.jr.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(s)}},{key:"stop",value:function(){r.Radio.channel(c.jr.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(s)}},{key:"onRender",value:function(){var t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},l.wc,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&f(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),g}(i.Q.Behavior)},6929:function(t,e,n){"use strict";n.d(e,{x:function(){return y}});var o=n(39479),r=n(48088),i=n(31647),a=n(10454);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 l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(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,o.key,o)}}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function p(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)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var y=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&&u(t,e)}(d,t);var e,n,i,c,y=(i=d,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=f(i);if(c){var n=f(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return p(this,t)});function d(){return l(this,d),y.apply(this,arguments)}return e=d,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;o.each(this.options.channelNames,(function(e){r.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return o.each(this.options.channelNames,(function(n){!0===r.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",a.Z.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:o.bind(this.drop,this),accept:o.bind(this.accept,this),over:o.bind(this.over,this),out:o.bind(this.out,this)};t.classes={"ui-droppable":a.Z.droppable,"ui-droppable-active":a.Z.active,"ui-droppable-hover":a.Z.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&s(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),d}(i.Q.Behavior)},87002:function(t,e,n){"use strict";n.d(e,{Y:function(){return O}});var o=n(31647),r=n(50997),i=n(91439),a=(n(98001),n(6929)),c=n(70065),l=n(61843),s=n(22231),u=n(24828),p=n(51785),f=n(90743),y=n.n(f),d={folder:"cLuIF",actions:"vWWVi"};function b(t){return b="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},b(t)}function h(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,o.key,o)}}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function m(t,e){if(e&&("object"===b(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 v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(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&&g(t,e)}(O,t);var e,n,o,f,b=(o=O,f=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=v(o);if(f){var n=v(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return m(this,t)});function O(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,O),b.call(this,t)}return e=O,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"name",get:function(){return"FolderItemComponent"}},{key:"template",get:function(){return y()}},{key:"className",get:function(){return"col-2 p-1 rounded"}},{key:"appLinks",get:function(){return{a:{application:r.OV.LIBRARY_EDITOR,action:r.eX.LibraryEditor.FOLDER,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{actions:{el:".actions-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:a.x,channelNames:[r.jr.VIDEO_DRAG_DROP,r.jr.FOLDER_DRAG_DROP],analyticsOptions:{location:"library"===this.options.location?c.LocationContext.LibraryTiles:c.LocationContext.SubFolderList}},{behaviorClass:i.u}]}},{key:"viewOptions",value:function(){var t=l.jw.createFolderThumbnailUrl(this.model.thumbnail);return{styles:d,imageUrl:t,backgroundColor:(0,s.x)(this.model.get("name"),u.o)}}},{key:"onRender",value:function(){this.showChildView("actions",new p.c({model:this.model,extraClasses:"".concat(d.actions," rounded-circle"),buttonClass:"text-light",analyticsOptions:{location:c.LocationContext.LibraryTiles},overrideClasses:!0}))}}])&&h(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),O}(o.Q.Component)},51785:function(t,e,n){"use strict";n.d(e,{c:function(){return _}});var o=n(31647),r=n(63791),i=n(60602),a=n(70065),c=n(52076),l=n(71641),s=n(88181),u=n(57857),p=n(58266),f=n.n(p);function y(t){return y="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},y(t)}function d(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,o.key,o)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function h(t,e){if(e&&("object"===y(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 g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var m=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&&b(t,e)}(y,t);var e,n,r,i,p=(r=y,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=g(r);if(i){var n=g(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return h(this,t)});function y(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),p.call(this,t)}return e=y,(n=[{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return f()}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:u.T.getPhrase(this.lang,"addSubfolder"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"rename"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Rename,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"move"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Move,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"editImages"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.EditAssoc,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start,descriptor:a.AssocDescriptor.Image}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"generatePdf"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.PDF,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"remove"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Delete,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),classes:"text-danger",appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new l.w({analyticsHelper:c.k,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new o.Q.Collection(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}}])&&d(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),y}(o.Q.Component),v=n(26704),O=n.n(v);function w(t){return w="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},w(t)}function k(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,o.key,o)}}function R(t,e){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},R(t,e)}function E(t,e){if(e&&("object"===w(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 P(t){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P(t)}var _=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&&R(t,e)}(l,t);var e,n,o,a,c=(o=l,a=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=P(o);if(a){var n=P(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return E(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),c.call(this,t)}return e=l,(n=[{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof i.g)return"position-absolute ".concat(this.options.overrideClasses?"":"zHCsb"," ").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:"template",get:function(){return O()}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.model instanceof i.g&&this.showChildView("items",new m({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof i.g,dropdownClass:"".concat("He1m9"," ").concat(this.options.buttonClass),svg:r.Nj.getSvg(r.vn.More)}}}])&&k(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(o.Q.Component)},58266:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="items-region"></div>'},useData:!0})},90743:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,"style=\"background-image: url('"+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+"')\""},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a,c=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,s="function",u=t.escapeExpression,p=t.lambda;return'<a class="rounded d-block text-decoration-none" title="'+u(typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:l)===s?a.call(c,{name:"name",hash:{},data:r}):a)+'">\n <div \n class="'+u(p(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.folder:i,e))+" "+u(p(null!=(i=null!=e?e.options:e)?i.backgroundColor:i,e))+' rounded-top"\n '+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.imageUrl:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'\n />\n <h3 class="font-size-normal font-weight-500 mb-0 p-2 bg-white border-left border-right border-bottom rounded-bottom ">\n <span class="text-truncate d-block">'+u(typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:l)===s?a.call(c,{name:"name",hash:{},data:r}):a)+'</span>\n </h3>\n</a>\n<div class="actions-region"></div>'},useData:!0})},26704:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\n</span>\n<div class="items-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasActions:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:""},useData:!0})}}]);
|