Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/jet-blog   php

Repository URL to install this package:

Version: 2.2.12 

/ modules / vue-ui / assets / js / cx-vue-ui.js

!function(i){var n={};function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}o.m=i,o.c=n,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=6)}([function(t,e,i){!function(t){"use strict";var e={inject:["manager"],props:{index:{type:Number,required:!0},collection:{type:[String,Number],default:"default"},disabled:{type:Boolean,default:!1}},mounted:function(){var t=this.$props,e=t.collection,i=t.disabled,n=t.index;i||this.setDraggable(e,n)},watch:{index:function(t){this.$el&&this.$el.sortableInfo&&(this.$el.sortableInfo.index=t)},disabled:function(t){t?this.removeDraggable(this.collection):this.setDraggable(this.collection,this.index)},collection:function(t,e){this.removeDraggable(e),this.setDraggable(t,this.index)}},beforeDestroy:function(){var t=this.collection,e=this.disabled;e||this.removeDraggable(t)},methods:{setDraggable:function(t,e){var i=this.$el;i.sortableInfo={index:e,collection:t,manager:this.manager},this.ref={node:i},this.manager.add(t,this.ref)},removeDraggable:function(t){this.manager.remove(t,this.ref)}}},i=function(){function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}}(),d=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)},n=function(){function t(){!function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),this.refs={}}return i(t,[{key:"add",value:function(t,e){this.refs[t]||(this.refs[t]=[]),this.refs[t].push(e)}},{key:"remove",value:function(t,e){var i=this.getIndex(t,e);-1!==i&&this.refs[t].splice(i,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var i=this;return this.refs[this.active.collection].find(function(t){var e=t.node;return e.sortableInfo.index==i.active.index})}},{key:"getIndex",value:function(t,e){return this.refs[t].indexOf(e)}},{key:"getOrderedRefs",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[t].sort(function(t,e){return t.node.sortableInfo.index-e.node.sortableInfo.index})}}]),t}();function u(t,e,i){var n=t.slice(0);if(i>=n.length)for(var o=i-n.length;1+o--;)n.push(void 0);return n.splice(i,0,n.splice(e,1)[0]),n}var _={start:["touchstart","mousedown"],move:["touchmove","mousemove"],end:["touchend","touchcancel","mouseup"]},b=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var t=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],e=(Array.prototype.slice.call(t).join("").match(/-(moz|webkit|ms)-/)||""===t.OLink&&["","o"])[1];switch(e){case"ms":return"ms";default:return e&&e.length?e[0].toUpperCase()+e.substr(1):""}}();function l(t,e){for(;t;){if(e(t))return t;t=t.parentNode}}function h(t,e,i){return i<t?t:e<i?e:i}function w(t){return"px"===t.substr(-2)?parseFloat(t):0}var o={data:function(){return{sorting:!1,sortingIndex:null,manager:new n,events:{start:this.handleStart,move:this.handleMove,end:this.handleEnd}}},props:{value:{type:Array,required:!0},axis:{type:String,default:"y"},distance:{type:Number,default:0},pressDelay:{type:Number,default:0},pressThreshold:{type:Number,default:5},useDragHandle:{type:Boolean,default:!1},useWindowAsScrollContainer:{type:Boolean,default:!1},hideSortableGhost:{type:Boolean,default:!0},lockToContainerEdges:{type:Boolean,default:!1},lockOffset:{type:[String,Number,Array],default:"50%"},transitionDuration:{type:Number,default:300},appendTo:{type:String,default:"body"},draggedSettlingDuration:{type:Number,default:null},lockAxis:String,helperClass:String,contentWindow:Object,shouldCancelStart:{type:Function,default:function(t){return-1!==["input","textarea","select","option","button"].indexOf(t.target.tagName.toLowerCase())}},getHelperDimensions:{type:Function,default:function(t){var e=t.node;return{width:e.offsetWidth,height:e.offsetHeight}}}},provide:function(){return{manager:this.manager}},mounted:function(){var i=this;this.container=this.$el,this.document=this.container.ownerDocument||document,this._window=this.contentWindow||window,this.scrollContainer=this.useWindowAsScrollContainer?this.document.body:this.container;var t=function(e){i.events.hasOwnProperty(e)&&_[e].forEach(function(t){return i.container.addEventListener(t,i.events[e],!1)})};for(var e in this.events)t(e)},beforeDestroy:function(){var i=this,t=function(e){i.events.hasOwnProperty(e)&&_[e].forEach(function(t){return i.container.removeEventListener(t,i.events[e])})};for(var e in this.events)t(e)},methods:{handleStart:function(t){var e=this,i=this.$props,n=i.distance,o=i.shouldCancelStart;if(2===t.button||o(t))return!1;this._touched=!0,this._pos={x:t.pageX,y:t.pageY};var r=l(t.target,function(t){return null!=t.sortableInfo});if(r&&r.sortableInfo&&this.nodeIsChild(r)&&!this.sorting){var s=this.$props.useDragHandle,a=r.sortableInfo,u=a.index,c=a.collection;if(s&&!l(t.target,function(t){return null!=t.sortableHandle}))return;this.manager.active={index:u,collection:c},"a"===t.target.tagName.toLowerCase()&&t.preventDefault(),n||(0===this.$props.pressDelay?this.handlePress(t):this.pressTimer=setTimeout(function(){return e.handlePress(t)},this.$props.pressDelay))}},nodeIsChild:function(t){return t.sortableInfo.manager===this.manager},handleMove:function(t){var e=this.$props,i=e.distance,n=e.pressThreshold;if(!this.sorting&&this._touched){this._delta={x:this._pos.x-t.pageX,y:this._pos.y-t.pageY};var o=Math.abs(this._delta.x)+Math.abs(this._delta.y);i||n&&!(n&&n<=o)?i&&i<=o&&this.manager.isActive()&&this.handlePress(t):(clearTimeout(this.cancelTimer),this.cancelTimer=setTimeout(this.cancel,0))}},handleEnd:function(){var t=this.$props.distance;this._touched=!1,t||this.cancel()},cancel:function(){this.sorting||(clearTimeout(this.pressTimer),this.manager.active=null)},handlePress:function(t){var e=this,i=this.manager.getActive();if(i){var n=this.$props,o=n.axis,r=n.getHelperDimensions,s=n.helperClass,a=n.hideSortableGhost,u=n.useWindowAsScrollContainer,c=n.appendTo,l=i.node,p=i.collection,d=l.sortableInfo.index,h=function(t){var e=window.getComputedStyle(t);return{top:w(e.marginTop),right:w(e.marginRight),bottom:w(e.marginBottom),left:w(e.marginLeft)}}(l),f=this.container.getBoundingClientRect(),x=r({index:d,node:l,collection:p});this.node=l,this.margin=h,this.width=x.width,this.height=x.height,this.marginOffset={x:this.margin.left+this.margin.right,y:Math.max(this.margin.top,this.margin.bottom)},this.boundingClientRect=l.getBoundingClientRect(),this.containerBoundingRect=f,this.index=d,this.newIndex=d,this._axis={x:0<=o.indexOf("x"),y:0<=o.indexOf("y")},this.offsetEdge=this.getEdgeOffset(l),this.initialOffset=this.getOffset(t),this.initialScroll={top:this.scrollContainer.scrollTop,left:this.scrollContainer.scrollLeft},this.initialWindowScroll={top:window.pageYOffset,left:window.pageXOffset};var m,v=l.querySelectorAll("input, textarea, select"),b=l.cloneNode(!0),g=[].concat(y(b.querySelectorAll("input, textarea, select")));if(g.forEach(function(t,e){"file"!==t.type&&v[e]&&(t.value=v[e].value)}),this.helper=this.document.querySelector(c).appendChild(b),this.helper.style.position="fixed",this.helper.style.top=this.boundingClientRect.top-h.top+"px",this.helper.style.left=this.boundingClientRect.left-h.left+"px",this.helper.style.width=this.width+"px",this.helper.style.height=this.height+"px",this.helper.style.boxSizing="border-box",this.helper.style.pointerEvents="none",a&&((this.sortableGhost=l).style.visibility="hidden",l.style.opacity=0),this.translate={},this.minTranslate={},this.maxTranslate={},this._axis.x&&(this.minTranslate.x=(u?0:f.left)-this.boundingClientRect.left-this.width/2,this.maxTranslate.x=(u?this._window.innerWidth:f.left+f.width)-this.boundingClientRect.left-this.width/2),this._axis.y&&(this.minTranslate.y=(u?0:f.top)-this.boundingClientRect.top-this.height/2,this.maxTranslate.y=(u?this._window.innerHeight:f.top+f.height)-this.boundingClientRect.top-this.height/2),s)(m=this.helper.classList).add.apply(m,y(s.split(" ")));this.listenerNode=t.touches?l:this._window,_.move.forEach(function(t){return e.listenerNode.addEventListener(t,e.handleSortMove,!1)}),_.end.forEach(function(t){return e.listenerNode.addEventListener(t,e.handleSortEnd,!1)}),this.sorting=!0,this.sortingIndex=d,this.$emit("sort-start",{event:t,node:l,index:d,collection:p})}},handleSortMove:function(t){t.preventDefault(),this.updatePosition(t),this.animateNodes(),this.autoscroll(),this.$emit("sort-move",{event:t})},handleSortEnd:function(o){var r=this,s=this.manager.active.collection;this.listenerNode&&(_.move.forEach(function(t){return r.listenerNode.removeEventListener(t,r.handleSortMove)}),_.end.forEach(function(t){return r.listenerNode.removeEventListener(t,r.handleSortEnd)}));var a=this.manager.refs[s],t=function(){r.helper.parentNode.removeChild(r.helper),r.hideSortableGhost&&r.sortableGhost&&(r.sortableGhost.style.visibility="",r.sortableGhost.style.opacity="");for(var t=0,e=a.length;t<e;t++){var i=a[t],n=i.node;i.edgeOffset=null,n.style[b+"Transform"]="",n.style[b+"TransitionDuration"]=""}clearInterval(r.autoscrollInterval),r.autoscrollInterval=null,r.manager.active=null,r.sorting=!1,r.sortingIndex=null,r.$emit("sort-end",{event:o,oldIndex:r.index,newIndex:r.newIndex,collection:s}),r.$emit("input",u(r.value,r.index,r.newIndex)),r._touched=!1};this.$props.transitionDuration||this.$props.draggedSettlingDuration?this.transitionHelperIntoPlace(a).then(function(){return t()}):t()},transitionHelperIntoPlace:function(t){var n=this;if(0===this.$props.draggedSettlingDuration)return Promise.resolve();var e={left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top},i=t[this.index].node,o=t[this.newIndex].node,r=-e.left;this.translate&&0<this.translate.x?r+=o.offsetLeft+o.offsetWidth-(i.offsetLeft+i.offsetWidth):r+=o.offsetLeft-i.offsetLeft;var s=-e.top;this.translate&&0<this.translate.y?s+=o.offsetTop+o.offsetHeight-(i.offsetTop+i.offsetHeight):s+=o.offsetTop-i.offsetTop;var a=null!==this.$props.draggedSettlingDuration?this.$props.draggedSettlingDuration:this.$props.transitionDuration;return this.helper.style[b+"Transform"]="translate3d("+r+"px,"+s+"px, 0)",this.helper.style[b+"TransitionDuration"]=a+"ms",new Promise(function(e){var t=function(t){t&&"transform"!==t.propertyName||(clearTimeout(i),n.helper.style[b+"Transform"]="",n.helper.style[b+"TransitionDuration"]="",e())},i=setTimeout(t,a+10);n.helper.addEventListener("transitionend",t,!1)})},getEdgeOffset:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{top:0,left:0};if(t){var i={top:e.top+t.offsetTop,left:e.left+t.offsetLeft};return t.parentNode!==this.container?this.getEdgeOffset(t.parentNode,i):i}},getOffset:function(t){return{x:t.touches?t.touches[0].pageX:t.pageX,y:t.touches?t.touches[0].pageY:t.pageY}},getLockPixelOffsets:function(){var t=this.$props.lockOffset;if(Array.isArray(this.lockOffset)||(t=[t,t]),2!==t.length)throw new Error("lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given "+t);var e=t,i=d(e,2),n=i[0],o=i[1];return[this.getLockPixelOffset(n),this.getLockPixelOffset(o)]},getLockPixelOffset:function(t){var e=t,i=t,n="px";if("string"==typeof t){var o=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);if(null===o)throw new Error('lockOffset value should be a number or a string of a number followed by "px" or "%". Given '+t);e=i=parseFloat(t),n=o[1]}if(!isFinite(e)||!isFinite(i))throw new Error("lockOffset value should be a finite. Given "+t);return"%"===n&&(e=e*this.width/100,i=i*this.height/100),{x:e,y:i}},updatePosition:function(t){var e=this.$props,i=e.lockAxis,n=e.lockToContainerEdges,o=this.getOffset(t),r={x:o.x-this.initialOffset.x,y:o.y-this.initialOffset.y};if(r.y-=window.pageYOffset-this.initialWindowScroll.top,r.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=r,n){var s=this.getLockPixelOffsets(),a=d(s,2),u=a[0],c=a[1],l={x:this.width/2-u.x,y:this.height/2-u.y},p={x:this.width/2-c.x,y:this.height/2-c.y};r.x=h(this.minTranslate.x+l.x,this.maxTranslate.x-p.x,r.x),r.y=h(this.minTranslate.y+l.y,this.maxTranslate.y-p.y,r.y)}"x"===i?r.y=0:"y"===i&&(r.x=0),this.helper.style[b+"Transform"]="translate3d("+r.x+"px,"+r.y+"px, 0)"},animateNodes:function(){var t=this.$props,e=t.transitionDuration,i=t.hideSortableGhost,n=this.manager.getOrderedRefs(),o={left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top},r={left:this.offsetEdge.left+this.translate.x+o.left,top:this.offsetEdge.top+this.translate.y+o.top},s={top:window.pageYOffset-this.initialWindowScroll.top,left:window.pageXOffset-this.initialWindowScroll.left};this.newIndex=null;for(var a=0,u=n.length;a<u;a++){var c=n[a].node,l=c.sortableInfo.index,p=c.offsetWidth,d=c.offsetHeight,h={width:this.width>p?p/2:this.width/2,height:this.height>d?d/2:this.height/2},f={x:0,y:0},x=n[a].edgeOffset;x||(n[a].edgeOffset=x=this.getEdgeOffset(c));var m=a<n.length-1&&n[a+1],v=0<a&&n[a-1];m&&!m.edgeOffset&&(m.edgeOffset=this.getEdgeOffset(m.node)),l!==this.index?(e&&(c.style[b+"TransitionDuration"]=e+"ms"),this._axis.x?this._axis.y?l<this.index&&(r.left+s.left-h.width<=x.left&&r.top+s.top<=x.top+h.height||r.top+s.top+h.height<=x.top)?(f.x=this.width+this.marginOffset.x,x.left+f.x>this.containerBoundingRect.width-h.width&&(f.x=m.edgeOffset.left-x.left,f.y=m.edgeOffset.top-x.top),null===this.newIndex&&(this.newIndex=l)):l>this.index&&(r.left+s.left+h.width>=x.left&&r.top+s.top+h.height>=x.top||r.top+s.top+h.height>=x.top+d)&&(f.x=-(this.width+this.marginOffset.x),x.left+f.x<this.containerBoundingRect.left+h.width&&(f.x=v.edgeOffset.left-x.left,f.y=v.edgeOffset.top-x.top),this.newIndex=l):l>this.index&&r.left+s.left+h.width>=x.left?(f.x=-(this.width+this.marginOffset.x),this.newIndex=l):l<this.index&&r.left+s.left<=x.left+h.width&&(f.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=l)):this._axis.y&&(l>this.index&&r.top+s.top+h.height>=x.top?(f.y=-(this.height+this.marginOffset.y),this.newIndex=l):l<this.index&&r.top+s.top<=x.top+h.height&&(f.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=l))),c.style[b+"Transform"]="translate3d("+f.x+"px,"+f.y+"px,0)"):i&&((this.sortableGhost=c).style.visibility="hidden",c.style.opacity=0)}null==this.newIndex&&(this.newIndex=this.index)},autoscroll:function(){var e=this,t=this.translate,i={x:0,y:0},n={x:1,y:1},o={x:10,y:10};t.y>=this.maxTranslate.y-this.height/2?(i.y=1,n.y=o.y*Math.abs((this.maxTranslate.y-this.height/2-t.y)/this.height)):t.x>=this.maxTranslate.x-this.width/2?(i.x=1,n.x=o.x*Math.abs((this.maxTranslate.x-this.width/2-t.x)/this.width)):t.y<=this.minTranslate.y+this.height/2?(i.y=-1,n.y=o.y*Math.abs((t.y-this.height/2-this.minTranslate.y)/this.height)):t.x<=this.minTranslate.x+this.width/2&&(i.x=-1,n.x=o.x*Math.abs((t.x-this.width/2-this.minTranslate.x)/this.width)),this.autoscrollInterval&&(clearInterval(this.autoscrollInterval),this.autoscrollInterval=null,this.isAutoScrolling=!1),0===i.x&&0===i.y||(this.autoscrollInterval=setInterval(function(){e.isAutoScrolling=!0;var t={left:1*n.x*i.x,top:1*n.y*i.y};e.scrollContainer.scrollTop+=t.top,e.scrollContainer.scrollLeft+=t.left,e.translate.x+=t.left,e.translate.y+=t.top,e.animateNodes()},5))}}},r={name:"slick-list",mixins:[o],render:function(t){return t("div",this.$slots.default)}},s={name:"slick-item",mixins:[e],render:function(t){return t("div",this.$slots.default)}};t.ElementMixin=e,t.ContainerMixin=o,t.HandleDirective={bind:function(t){t.sortableHandle=true}},t.SlickList=r,t.SlickItem=s,t.arrayMove=u,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,i){var n=i(2);"string"==typeof n&&(n=[[t.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(4)(n,o);n.locals&&(t.exports=n.locals)},function(t,e,i){(t.exports=i(3)(!1)).push([t.i,'.cx-vui-component{display:flex;padding:20px;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.cx-vui-component+.cx-vui-component{border-top:1px solid #ececec}.cx-vui-component--equalwidth{justify-content:space-between}.cx-vui-component--equalwidth .cx-vui-component__meta,.cx-vui-component--equalwidth .cx-vui-component__meta+.cx-vui-component__control{max-width:49%;flex:0 0 49%}.cx-vui-component--vertical-fullwidth{flex-direction:column;padding-left:0;padding-right:0}.cx-vui-component--vertical-fullwidth .cx-vui-component__meta{padding:0 0 20px;margin:0 0 25px;border-bottom:1px solid #ececec}.cx-vui-component--vertical-fullwidth .cx-vui-component__label{padding:0 0 5px}.cx-vui-component--fullwidth-control .cx-vui-component__control{max-width:100%;flex:0 0 100%}.cx-vui-component__meta{display:flex;flex-direction:column;align-items:flex-start}.cx-vui-component__label{display:block;font-size:15px;line-height:20px;color:#23282d;font-weight:500}.cx-vui-component__desc{font-size:13px;line-height:17px;color:#7b7e81;padding:0 0 4px}.cx-vui-panel{background:#fff;box-shadow:0 2px 6px rgba(35,40,45,.07);border-radius:6px;margin-bottom:30px;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.cx-vui-inner-panel{background:#f5f5f5;border-radius:4px;padding:30px}.cs-vui-title,.wrap .cs-vui-title{font-size:24px;line-height:37px;padding:0 0 20px}.cs-vui-title,.cx-vui-subtitle,.wrap .cs-vui-title{font-weight:500;color:#23282d;margin:0;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.cx-vui-subtitle{font-size:18px;line-height:27px;padding:0}.cx-vui-text{font-size:13px;line-height:20px;color:#7b7e81;padding:15px 0;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.cx-vui-hr{display:block;width:100%;height:0;border-top:1px solid #dcdcdd;margin:30px 0}.cx-vui-notice--error{background:#fbf0f0}.cx-vui-notice--success{background:#e9f6ea}.cx-vui-inline-notice{font-weight:700}.cx-vui-inline-notice--error{color:#c92c2c}.cx-vui-inline-notice--success{color:#46b450}.cx-vui-tooltip{background:#23282d;box-shadow:0 1px 4px rgba(35,40,45,.24);border-radius:3px;padding:5px 15px;font-size:12px;line-height:15px;color:#fff;bottom:100%;position:absolute;margin:0 0 10px;text-align:center}.cx-vui-tooltip:after{top:100%;left:50%;margin:0 0 0 -4px;width:0;height:0;border-color:#23282d transparent transparent;border-style:solid;border-width:4px 4px 0;content:"";position:absolute}.cx-vui-popup{position:fixed;z-index:999;left:0;right:0;top:0;bottom:0;display:flex;align-items:center;justify-content:center}.cx-vui-popup__overlay{background:#23282d;opacity:.5;position:absolute;left:0;right:0;top:0;bottom:0;z-index:1}.cx-vui-popup__body{background:#fff;box-shadow:0 2px 6px rgba(35,40,45,.07);border-radius:6px;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;position:relative;z-index:2;padding:30px 40px 40px}.cx-vui-popup__header{padding:0 0 10px}.cx-vui-popup__content,.cx-vui-popup__content p{font-size:13px;line-height:20px;color:#7b7e81}.cx-vui-popup__content p{margin:0;padding:0 0 20px}.cx-vui-popup__footer{padding:20px 0 0;display:flex;align-items:center}.cx-vui-popup__footer .cx-vui-button+.cx-vui-button{margin:0 0 0 10px}.cx-vui-popup__close{position:absolute;right:12px;top:15px;cursor:pointer}.cx-vui-popup__close path{fill:#dcdcdd}.cx-vui-popup__close:hover path{fill:#7b7e81}.cx-vui-collapse{border-bottom:1px solid #dcdcdd}.cx-vui-collapse:last-child{border-bottom:none}.cx-vui-collapse__heading{display:flex;padding:20px 0;align-items:center;cursor:pointer}.cx-vui-collapse__heading-icon{font-size:18px;margin:0 5px 0 0}.cx-vui-collapse--collapsed .cx-vui-collapse__content{display:none}input.cx-vui-input{font-size:13px;line-height:20px;border-radius:4px;background-color:#f4f4f5;border:none;color:#7b7e81;padding:6px 12px;box-shadow:none;outline:none;box-sizing:border-box;margin:0}input.cx-vui-input:focus{box-shadow:inset 0 0 0 2px #80bddc;background-color:#fff;color:#23282d}input.cx-vui-input.has-error{box-shadow:inset 0 0 0 2px #e49595;color:#c92c2c}input.cx-vui-input.size-fullwidth{width:100%}textarea.cx-vui-textarea{font-size:13px;line-height:20px;border-radius:4px;background-color:#f4f4f5;border:none;color:#7b7e81;padding:6px 12px;box-shadow:none;outline:none;box-sizing:border-box;margin:0;resize:vertical}textarea.cx-vui-textarea:focus{box-shadow:inset 0 0 0 2px #80bddc;background-color:#fff;color:#23282d}textarea.cx-vui-textarea.has-error{box-shadow:inset 0 0 0 2px #e49595;color:#c92c2c}textarea.cx-vui-textarea.size-fullwidth{width:100%}.cx-vui-switcher{width:36px;position:relative;cursor:pointer;padding:3px 0}.cx-vui-switcher__panel{width:100%;height:12px;border-radius:6px;background:#ececec;transition:all .15s linear}.cx-vui-switcher--on .cx-vui-switcher__panel{background:#cce5f1}.cx-vui-switcher__trigger{width:18px;height:18px;left:0;top:50%;margin-top:-9px;box-shadow:0 1px 4px rgba(35,40,45,.24);transition:all .15s linear;background:#fff;border-radius:100%;position:absolute}.cx-vui-switcher--on .cx-vui-switcher__trigger{background:#007cba;left:calc(100% - 18px)}.cx-vui-switcher--in-focus .cx-vui-switcher__trigger{box-shadow:0 1px 4px rgba(35,40,45,.24),0 0 0 9px rgba(166,167,168,.2)}.cx-vui-switcher--on.cx-vui-switcher--in-focus .cx-vui-switcher__trigger{box-shadow:0 1px 4px rgba(35,40,45,.24),0 0 0 9px rgba(0,124,186,.2)}.cx-vui-iconpicker{position:relative}.cx-vui-iconpicker__fieldgroup{display:flex}.cx-vui-iconpicker__input{flex:1 0 auto}.cx-vui-iconpicker__preview{width:32px;height:32px;flex:0 0 32px;display:flex;align-items:center;justify-content:center;background:#f4f4f5;border-radius:4px;margin:0 5px 0 0}.cx-vui-iconpicker__canvas{position:absolute;top:100%;left:0;right:0;margin:20px 0 0;box-shadow:0 4px 20px rgba(35,40,45,.24);border-radius:4px;border:1px solid #80bddc;background:#fff;z-index:999;max-width:100%;width:311px}.cx-vui-iconpicker__canvas-content{padding:10px;border-radius:4px;max-height:312px;overflow-y:scroll}.cx-vui-iconpicker__canvas:before{position:absolute;left:9px;top:-7px;width:0;height:0;border-color:transparent transparent #80bddc;border-style:solid;border-width:0 7px 7px;content:"";z-index:1}.cx-vui-iconpicker__canvas:after{position:absolute;left:10px;top:-6px;width:0;height:0;z-index:2;border-color:transparent transparent #fff;border-style:solid;border-width:0 6px 6px;content:""}.cx-vui-iconpicker__canvas-list{display:flex;flex-wrap:wrap;margin:6px -3px}.cx-vui-iconpicker__canvas-icon{width:48px;height:48px;margin:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;box-sizing:border-box;border-radius:4px;border:1px solid #ececec;transition:all .15s linear}.cx-vui-iconpicker__canvas-icon i{color:#7b7e81}.cx-vui-iconpicker__canvas-icon--selected{border-color:#80bddc;background:#edf6fa}.cx-vui-iconpicker__canvas-icon--selected i{color:#007cba}.cx-vui-iconpicker__canvas-icon:focus,.cx-vui-iconpicker__canvas-icon:hover{background:#007cba;border-color:#007cba}.cx-vui-iconpicker__canvas-icon:focus i,.cx-vui-iconpicker__canvas-icon:hover i{color:#fff}.wp-admin .cx-vui-select{font-size:13px;line-height:20px;border-radius:4px;background-color:#f4f4f5;border:none;color:#7b7e81;padding:6px 12px;box-shadow:none;outline:none;box-sizing:border-box;margin:0;height:auto;-webkit-appearance:none}.wp-admin .cx-vui-select:focus{box-shadow:inset 0 0 0 2px #80bddc;background-color:#fff;color:#23282d}.wp-admin .cx-vui-select.has-error{box-shadow:inset 0 0 0 2px #e49595;color:#c92c2c}.wp-admin .cx-vui-select.size-fullwidth{width:100%}.cx-vui-f-select__select-tag{display:none}.cx-vui-f-select__input.cx-vui-input--in-focus{box-shadow:inset 0 0 0 2px #80bddc;background:#fff;border-bottom-left-radius:0;border-bottom-right-radius:0}.cx-vui-f-select__control{position:relative}.cx-vui-f-select__results{top:100%;left:0;right:0;z-index:999;position:absolute;border:1px solid #80bddc;box-sizing:border-box;box-shadow:0 4px 20px rgba(35,40,45,.24);border-radius:0 0 4px 4px;background:#fff;padding:10px 0;margin:-1px 0 0}.cx-vui-f-select__results-loading,.cx-vui-f-select__results-message{padding:0 10px;color:#7b7e81}.cx-vui-f-select__result{color:#7b7e81;font-size:13px;line-height:17px;padding:3px 12px 4px;cursor:pointer;transition:all .15s linear}.cx-vui-f-select__result.is-selected{background:#edf6fa}.cx-vui-f-select__result.in-focus,.cx-vui-f-select__result:hover{color:#fff;background:#007cba}.cx-vui-f-select__selected{display:flex;flex-wrap:wrap}.cx-vui-f-select__selected-not-empty{margin:0 0 15px}.cx-vui-f-select__selected-option{padding:5px 11px 5px 5px;display:flex;align-items:center;background:#edf6fa;cursor:pointer;color:#7b7e81;margin:0 5px 5px 0;white-space:nowrap}.cx-vui-f-select__selected-option-icon{width:22px;height:22px;background:#fff;border-radius:1px;transition:all liear .15s;margin:0 6px 0 0;display:flex;align-items:center;justify-content:center}.cx-vui-f-select__selected-option-icon path{transition:all liear .15s;fill:#7b7e81}.cx-vui-f-select__selected-option:hover .cx-vui-f-select__selected-option-icon{background:#007cba}.cx-vui-f-select__selected-option:hover .cx-vui-f-select__selected-option-icon path{fill:#fff}.cx-vui-button{cursor:pointer;display:inline-block;padding:0;margin:0;border:none;box-shadow:0 4px 4px rgba(35,40,45,.24);border-radius:4px;transition:all .15s linear;font-weight:500;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;outline:none;position:relative;box-sizing:border-box;text-decoration:none}.cx-vui-button__content{display:flex;justify-content:center;align-items:center}.cx-vui-button--loading .cx-vui-button__content{opacity:0}.cx-vui-button--style-default{background:#f4f4f5;color:#007cba}.cx-vui-button--style-default:hover{box-shadow:none;color:#007cba;background:#ececec}.cx-vui-button--style-accent{background:#007cba;color:#fff}.cx-vui-button--style-accent:hover{box-shadow:none;color:#fff;background:#066ea2}.cx-vui-button--style-link-accent{color:#007cba;background:none;box-shadow:none}.cx-vui-button--style-link-accent path{fill:#007cba}.cx-vui-button--style-link-accent:hover{color:#066ea2}.cx-vui-button--style-link-accent:hover path{fill:#066ea2}.cx-vui-button--style-link-error{color:#c92c2c;background:none;box-shadow:none}.cx-vui-button--style-link-error path{fill:#c92c2c}.cx-vui-button--style-link-error:hover{color:#c92c2c}.cx-vui-button--size-default{font-size:15px;line-height:21px;padding:12px 25px 13px}.cx-vui-button--size-default .cx-vui-button__content .dashicons{margin:0 5px 0 -8px}.cx-vui-button--size-default .cx-vui-button__content span+.dashicons{margin:-8px 0 0 5px}.cx-vui-button--size-link{font-size:15px;line-height:18px}.cx-vui-button--size-link .cx-vui-button__content svg{margin:0 5px 1px 0}.cx-vui-button--size-link .cx-vui-button__content span+svg{margin:0 0 1px 5px}.cx-vui-button--size-mini{font-size:13px;line-height:19px;padding:6px 14px 7px}.cx-vui-button--size-mini .cx-vui-button__content .dashicons{margin:0 4px 0 -5px}.cx-vui-button--size-mini .cx-vui-button__content span+.dashicons{margin:-5px 0 0 4px}.cx-vui-button--disabled{cursor:default;opacity:.3;pointer-events:none}.cx-vui-button--loading{cursor:default}.cx-vui-button__loader{position:absolute;right:0;top:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}.cx-vui-button__loader .loader-icon{animation:spin 1.2s linear infinite}.cx-vui-button__loader .loader-icon path{fill:currentColor}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.cx-vui-button.fullwidth{width:100%}.cx-vui-repeater__actions{display:flex;align-items:center}.cx-vui-repeater__tip{color:#7b7e81;margin:0 0 0 20px}.cx-vui-collapse__content>.cx-vui-repeater{margin-bottom:25px}.cx-vui-repeater-item__handle{cursor:n-resize;display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:-12px 0 -10px -16px}.cx-vui-repeater-item__handle svg line{stroke:#dcdcdd}.cx-vui-repeater-item__heading{display:flex;border-bottom:1px solid #ececec;padding:18px 20px 16px;align-items:center;justify-content:space-between;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cx-vui-repeater-item__heading--is-collpased{border-bottom:none}.cx-vui-repeater-item__heading-start{display:flex;align-items:center;cursor:pointer}.cx-vui-repeater-item__heading-end{display:flex;align-items:center}.cx-vui-repeater-item__subtitle,.cx-vui-repeater-item__title{font-size:15px;line-height:17px}.cx-vui-repeater-item__title{font-weight:500;color:#007cba;margin:0 10px 0 0}.cx-vui-repeater-item__subtitle{font-style:italic;color:#7b7e81}.cx-vui-repeater-item__collapse{margin:0 8px 0 0}.cx-vui-repeater-item__collapse--is-collpased{margin:0 8px 4px 0;transform:rotate(-90deg)}.cx-vui-repeater-item__collapse path{fill:#007cba}.cx-vui-repeater-item__content--is-collpased{display:none}.cx-vui-repeater-item__clean,.cx-vui-repeater-item__copy{cursor:pointer;width:20px;height:20px;display:flex;align-items:center;justify-content:center;margin:0 0 0 10px;position:relative}.cx-vui-repeater-item__clean .cx-vui-tooltip,.cx-vui-repeater-item__copy .cx-vui-tooltip{width:80px}.cx-vui-repeater-item__clean path,.cx-vui-repeater-item__copy path{transition:all .15s linear;fill:#7b7e81}.cx-vui-repeater-item__clean:hover path,.cx-vui-repeater-item__copy:hover path{fill:#007cba}.cx-vui-repeater-item__cancel-del,.cx-vui-repeater-item__confrim-del{text-decoration:underline}.cx-vui-repeater-item__confrim-del{color:#c92c2c}.cx-vui-checkbox{display:inline-flex;align-items:center;margin:0 0 10px}.cx-vui-checkbox--disabled{pointer-events:none}.cx-vui-checkgroup--single-item .cx-vui-checkbox{margin:0}.cx-vui-checkbox__check{box-sizing:border-box;width:18px;height:18px;border-radius:4px;border:2px solid #7b7e81;margin:-1px 10px 0 0;cursor:pointer;display:flex;align-items:center;justify-content:center}.cx-vui-checkbox__check--focused{border-color:#80bddc}.cx-vui-checkbox__check--checked{border-color:#007cba;background:#007cba}.cx-vui-checkbox__check--checked path{fill:#fff}.cx-vui-checkbox__check--disabled{pointer-events:none;opacity:.5;cursor:default}.cx-vui-checkbox__label{color:#7b7e81;cursor:pointer}.cx-vui-checkbox--disabled .cx-vui-checkbox__label{cursor:default}.cx-vui-checkbox__input[type=checkbox]{display:none}.cx-vui-radio{display:inline-flex;align-items:center;margin:0 0 10px}.cx-vui-radio--disabled{pointer-events:none}.cx-vui-radiogroup--single-item .cx-vui-radio{margin:0}.cx-vui-radio__input{visibility:hidden;position:absolute;left:-999em}.cx-vui-radio__mark{box-sizing:border-box;width:18px;height:18px;border-radius:100%;border:2px solid #7b7e81;margin:0 10px 0 0;cursor:pointer;display:flex;align-items:center;justify-content:center}.cx-vui-radio__mark:before{content:"";width:10px;height:10px;border-radius:100%}.cx-vui-radio__mark--focused{border-color:#80bddc}.cx-vui-radio__mark--checked{border-color:#007cba}.cx-vui-radio__mark--checked:before{background:#007cba}.cx-vui-radio__mark--disabled{pointer-events:none;opacity:.5;cursor:default}.cx-vui-radio__label{color:#7b7e81;cursor:pointer}.cx-vui-radio--disabled .cx-vui-radio__label{cursor:default}.cx-vue-list-table{background:#fff;box-shadow:0 2px 6px rgba(35,40,45,.07);border-radius:6px;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.cx-vue-list-table__items.is-empty{padding:16px 20px 17px;text-align:center;color:#7b7e81;font-size:13px;line-height:16px}.list-table-footer,.list-table-heading,.list-table-item{display:flex;align-items:center;justify-content:flex-start}.list-table-footer__cell,.list-table-heading__cell,.list-table-item__cell{padding:16px 20px 14px;text-align:left;box-sizing:border-box}.list-table-heading{border-bottom:1px solid #ececec}.cx-vue-list-table__footer .list-table-heading{border-bottom:none;border-top:1px solid #ececec}.list-table-heading__cell{font-size:15px;line-height:20px;color:#23282d;font-weight:500}.list-table-item{color:#7b7e81}.list-table-item:nth-child(odd){background:#f5f5f5}.list-table-item__cell{font-size:13px;line-height:16px}.list-table-item:first-child{border-top:none}.cx-vui-tabs.cx-vui-tabs--layout-vertical{display:flex;align-items:stretch}.cx-vui-tabs__nav{background:#f5f5f5}.cx-vui-tabs--layout-vertical .cx-vui-tabs__nav{width:20%;flex:0 0 20%;max-width:220px;padding:0 0 40px}.cx-vui-tabs--layout-horizontal .cx-vui-tabs__nav{display:flex;padding:0 40px}.cx-vui-tabs--invert .cx-vui-tabs__nav{background:#fff}.cx-vui-tabs__nav-item{cursor:pointer;padding:14px 20px;font-weight:500;font-size:15px;line-height:20px;color:#23282d;border:1px solid transparent}.cx-vui-tabs--layout-vertical .cx-vui-tabs__nav-item{border-bottom:1px solid #dcdcdd}.cx-vui-tabs__nav-item:hover{color:#007cba}.cx-vui-tabs:not(.cx-vui-tabs--in-panel) .cx-vui-tabs__nav-item{border-top:none}.cx-vui-tabs__nav-item--active{color:#007cba;position:relative;z-index:3;background:#fff}.cx-vui-tabs--layout-horizontal .cx-vui-tabs__nav-item--active{border:1px solid #dcdcdd;border-bottom:none}.cx-vui-tabs--in-panel .cx-vui-tabs__nav-item--active{border-radius:4px 4px 0 0}.cx-vui-tabs--invert .cx-vui-tabs__nav-item--active{background:#f5f5f5}.cx-vui-tabs__content{padding:40px}.cx-vui-tabs--invert .cx-vui-tabs__content{background:#f5f5f5}.cx-vui-tabs--layout-horizontal .cx-vui-tabs__content{border-top:1px solid #dcdcdd;margin:-1px 0 0}.cx-vui-tabs--layout-vertical .cx-vui-tabs__content{flex:1 1 auto;border-left:1px solid #dcdcdd;margin:0 0 0 -1px;padding:15px 40px}.cx-vui-notices{position:fixed;right:20px;top:52px}.cx-vui-notice{padding:20px;margin:0 0 20px;transition:all .25s ease;display:flex;align-items:flex-start;box-shadow:0 2px 6px rgba(35,40,45,.07);min-width:250px;max-width:450px;box-sizing:border-box;background:#fff;border-radius:4px;font-size:15px;line-height:23px;color:#7b7e81}.cx-vui-notice__icon{width:24px;height:24px;overflow:hidden;flex:0 0 24px;margin:0 15px 0 0}.cx-vui-notice__icon svg{width:100%;height:auto}.cx-vui-notice__icon--info path{fill:#007cba}.cx-vui-notice__icon--success path{fill:#46b450}.cx-vui-notice__icon--error path{fill:#c92c2c}.cx-vui-notice__title{font-weight:500;color:#23282d}.cx-vui-notice__content{flex:1 1 auto}.cx-vui-notice__close{width:16px;height:16px;flex:0 0 16px;margin:-2px 0 0 10px;cursor:pointer;box-sizing:border-box;padding:2px}.cx-vui-notice__close svg{width:12px;height:12px}.cx-vui-notice__close path{fill:#dcdcdd}.cx-vui-notice__close:hover path{fill:#23282d}.cx-vui-notices-enter,.cx-vui-notices-leave-to{opacity:0;transform:translateX(30px)}.cx-vui-notices-leave-active{position:absolute}',""])},function(t,e,i){"use strict";t.exports=function(i){var s=[];return s.toString=function(){return this.map(function(t){var e=function(t,e){var i=t[1]||"",n=t[3];if(!n)return i;if(e&&"function"==typeof btoa){var o=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(n),r=n.sources.map(function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"});return[i].concat(r).concat([o]).join("\n")}return[i].join("\n")}(t,i);return t[2]?"@media "+t[2]+"{"+e+"}":e}).join("")},s.i=function(t,e){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},n=0;n<this.length;n++){var o=this[n][0];null!=o&&(i[o]=!0)}for(n=0;n<t.length;n++){var r=t[n];null!=r[0]&&i[r[0]]||(e&&!r[2]?r[2]=e:e&&(r[2]="("+r[2]+") and ("+e+")"),s.push(r))}},s}},function(t,e,n){var i,o,r,u={},c=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=i.apply(this,arguments)),o}),s=(r={},function(t,e){if("function"==typeof t)return t();if(void 0===r[t]){var i=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}r[t]=i}return r[t]}),a=null,l=0,p=[],d=n(5);function h(t,e){for(var i=0;i<t.length;i++){var n=t[i],o=u[n.id];if(o){o.refs++;for(var r=0;r<o.parts.length;r++)o.parts[r](n.parts[r]);for(;r<n.parts.length;r++)o.parts.push(g(n.parts[r],e))}else{var s=[];for(r=0;r<n.parts.length;r++)s.push(g(n.parts[r],e));u[n.id]={id:n.id,refs:1,parts:s}}}}function f(t,e){for(var i=[],n={},o=0;o<t.length;o++){var r=t[o],s=e.base?r[0]+e.base:r[0],a={css:r[1],media:r[2],sourceMap:r[3]};n[s]?n[s].parts.push(a):i.push(n[s]={id:s,parts:[a]})}return i}function x(t,e){var i=s(t.insertInto);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=p[p.length-1];if("top"===t.insertAt)n?n.nextSibling?i.insertBefore(e,n.nextSibling):i.appendChild(e):i.insertBefore(e,i.firstChild),p.push(e);else if("bottom"===t.insertAt)i.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=s(t.insertAt.before,i);i.insertBefore(e,o)}}function m(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=p.indexOf(t);0<=e&&p.splice(e,1)}function v(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var i=function(){0;return n.nc}();i&&(t.attrs.nonce=i)}return b(e,t.attrs),x(t,e),e}function b(e,i){Object.keys(i).forEach(function(t){e.setAttribute(t,i[t])})}function g(e,t){var i,n,o,r;if(t.transform&&e.css){if(!(r="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=r}if(t.singleton){var s=l++;i=a=a||v(t),n=w.bind(null,i,s,!1),o=w.bind(null,i,s,!0)}else o=e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",b(e,t.attrs),x(t,e),e}(t),n=function(t,e,i){var n=i.css,o=i.sourceMap,r=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||r)&&(n=d(n));o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var s=new Blob([n],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,i,t),function(){m(i),i.href&&URL.revokeObjectURL(i.href)}):(i=v(t),n=function(t,e){var i=e.css,n=e.media;n&&t.setAttribute("media",n);if(t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}.bind(null,i),function(){m(i)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}t.exports=function(t,s){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(s=s||{}).attrs="object"==typeof s.attrs?s.attrs:{},s.singleton||"boolean"==typeof s.singleton||(s.singleton=c()),s.insertInto||(s.insertInto="head"),s.insertAt||(s.insertAt="bottom");var a=f(t,s);return h(a,s),function(t){for(var e=[],i=0;i<a.length;i++){var n=a[i];(o=u[n.id]).refs--,e.push(o)}t&&h(f(t,s),s);for(i=0;i<e.length;i++){var o;if(0===(o=e[i]).refs){for(var r=0;r<o.parts.length;r++)o.parts[r]();delete u[o.id]}}}};var y,_=(y=[],function(t,e){return y[t]=e,y.filter(Boolean).join("\n")});function w(t,e,i,n){var o=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=_(e,o);else{var r=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var o=e.protocol+"//"+e.host,r=o+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var i,n=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(n)?t:(i=0===n.indexOf("//")?n:0===n.indexOf("/")?o+n:r+n.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(t,e,i){"use strict";i.r(e);var n={name:"cx-vui-title",template:"#cx-vui-title",props:{}};function o(t,e){for(var i=0;i<e.length;i++)if(t==e[i])return!0;return!1}var r={methods:{isVisible:function(){if(!this.conditions.length)return!0;for(var t=[],e="AND",i=this.conditions.length,n=0;n<this.conditions.length;n++)if(this.conditions[n].operator)e=this.conditions[n].operator,i--;else switch(this.conditions[n].compare){case"equal":this.conditions[n].input===this.conditions[n].value&&t.push(this.conditions[n].value);break;case"not_equal":this.conditions[n].input!==this.conditions[n].value&&t.push(this.conditions[n].value);break;case"in":o(this.conditions[n].input,this.conditions[n].value)&&t.push(this.conditions[n].value);break;case"not_in":o(this.conditions[n].input,this.conditions[n].value)||t.push(this.conditions[n].value);break;case"contains":o(this.conditions[n].value,this.conditions[n].input)&&t.push(this.conditions[n].value);break;case"not_contains":o(this.conditions[n].value,this.conditions[n].input)||t.push(this.conditions[n].value)}switch(e){case"AND":return t.length===i;case"OR":return!!t.length}}}},s={name:"cx-vui-collapse",template:"#cx-vui-collapse",mixins:[r],props:{collapsed:{type:Boolean,default:!1},conditions:{type:Array,default:function(){return[]}}},data:function(){return{state:""}},mounted:function(){this.collapsed&&(this.state="collapsed")},computed:{iconArrow:function(){return"collapsed"===this.state?"dashicons-arrow-right-alt2":"dashicons-arrow-down-alt2"}},methods:{switchState:function(){"collapsed"===this.state?this.state="":this.state="collapsed",this.$emit("state-switched",this.state)}}},a={name:"cx-vui-component-wrapper",template:"#cx-vui-component-wrapper",mixins:[{methods:{wrapperClasses:function(){var e=["cx-vui-component"];return this.wrapperCss.length&&this.wrapperCss.forEach(function(t){e.push("cx-vui-component--"+t)}),e}}},r],props:{elementId:{type:String},label:{type:String},description:{type:String},preventWrap:{type:Boolean,default:!1},wrapperCss:{type:Array,default:function(){return[]}},conditions:{type:Array,default:function(){return[]}}},computed:{wrapperClassesRaw:function(){var e=["cx-vui-component-raw"];return this.wrapperCss&&this.wrapperCss.forEach(function(t){e.push(t)}),e}}},u={name:"cx-vui-button",template:"#cx-vui-button",mixins:[r],props:{type:{validator:function(t){return o(t,["button","submit","reset"])},default:"button"},buttonStyle:{validator:function(t){return o(t,["default","accent","link-accent","link-error"])},default:"default"},size:{validator:function(t){return o(t,["default","mini","link"])},default:"default"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},customCss:{type:String},url:{type:String},target:{type:String},tagName:{validator:function(t){return o(t,["a","button"])},default:"button"},elementId:{type:String},conditions:{type:Array,default:function(){return[]}}},data:function(){return{baseClass:"cx-vui-button"}},computed:{classesList:function(){var t=[this.baseClass,this.baseClass+"--style-"+this.buttonStyle,this.baseClass+"--size-"+this.size];return this.loading&&t.push(this.baseClass+"--loading"),this.disabled&&t.push(this.baseClass+"--disabled"),this.customCss&&t.push(this.customCss),t},tagAtts:function(){var t={};return"a"===this.tagName?(this.url&&(t.href=this.url),this.target&&(t.target=this.target)):t.type=this.type,t}},methods:{handleClick:function(){this.loading||this.disabled||this.$emit("click",event)}}},c=i(0),l={name:"cx-vui-repeater",template:"#cx-vui-repeater",mixins:[c.ContainerMixin,r],props:{buttonLabel:{type:String},buttonStyle:{type:String,default:"accent"},buttonSize:{type:String,default:"default"},value:{type:Array,default:function(){return[]}},distance:{type:Number,default:20},useDragHandle:{type:Boolean,default:!0},conditions:{type:Array,default:function(){return[]}}},data:function(){return{inFocus:!1}},methods:{handleClick:function(t){this.$emit("add-new-item",t)}}},p={name:"cx-vui-repeater-item",template:"#cx-vui-repeater-item",mixins:[c.ElementMixin],directives:{handle:c.HandleDirective},props:{title:{type:String},subtitle:{type:String},collapsed:{type:Boolean,default:!0},index:{type:Number}},data:function(){return{fieldData:this.field,isCollapsed:this.collapsed,showConfirmTip:!1}},methods:{handleCopy:function(){this.$emit("clone-item",this.index)},handleDelete:function(){this.showConfirmTip=!0},confrimDeletion:function(){this.showConfirmTip=!1,this.$emit("delete-item",this.index)},cancelDeletion:function(){this.showConfirmTip=!1}}},d={name:"cx-vui-popup",template:"#cx-vui-popup",props:{value:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},close:{type:Boolean,default:!0},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},okLabel:{type:String,default:"OK"},cancelLabel:{type:String,default:"Cancel"},bodyWidth:{type:String,default:"auto"}},data:function(){return{currentValue:this.value}},watch:{value:function(t){this.setCurrentValue(t)}},methods:{handleCancel:function(){this.setCurrentValue(!1),this.$emit("input",!1),this.$emit("on-cancel")},handleOk:function(){this.setCurrentValue(!1),this.$emit("input",!1),this.$emit("on-ok")},setCurrentValue:function(t){this.currentValue!==t&&(this.currentValue=t)}}},h={name:"cx-vui-list-table",template:"#cx-vui-list-table",mixins:[r],props:{conditions:{type:Array,default:function(){return[]}},isEmpty:{type:Boolean,default:!1},emptyMessage:{type:String,default:""}}},f={name:"cx-vui-list-table-item",template:"#cx-vui-list-table-item",mixins:[r],props:{slots:{type:Array,default:function(){return[]}},conditions:{type:Array,default:function(){return[]}},className:{type:String,default:""}}},x={name:"cx-vui-list-table-heading",template:"#cx-vui-list-table-heading",props:{slots:{type:Array,default:function(){return[]}},className:{type:String,default:""}}},m={name:"cx-vui-tabs",template:"#cx-vui-tabs",mixins:[r],props:{value:{type:[String,Number],default:""},name:{type:String,default:""},invert:{type:Boolean,default:!1},inPanel:{type:Boolean,default:!1},layout:{validator:function(t){return o(t,["horizontal","vertical"])},default:"horizontal"},conditions:{type:Array,default:function(){return[]}}},data:function(){return{navList:[],activeTab:this.value}},mounted:function(){var t=this.getTabs();this.navList=t,this.activeTab||(this.activeTab=t[0].name),this.updateState()},methods:{isActive:function(t){return t===this.activeTab},onTabClick:function(t){this.activeTab=t,this.$emit("input",this.activeTab),this.updateState()},updateState:function(){var e=this;this.getTabs().forEach(function(t){t.show=e.activeTab===t.name})},getTabs:function(){var e=this,t=this.$children.filter(function(t){return"cx-vui-tabs-panel"===t.$options.name}),i=[];return t.forEach(function(t){t.tab&&e.name?t.tab===e.name&&i.push(t):i.push(t)}),i}}},v={name:"cx-vui-tabs-panel",template:"#cx-vui-tabs-panel",props:{tab:{type:String,default:""},name:{type:String,default:""},label:{type:String,default:""}},data:function(){return{show:!1}},methods:{}},b={name:"cx-vui-notice",template:"#cx-vui-notice",data:function(){return{stack:{},destroyQueue:{}}},methods:{addToStack:function(t,e){var i=this,n=setTimeout(function(){i.destroyItem(e)},t.duration);i.$set(i.stack,e,t),i.$set(i.destroyQueue,e,n)},destroyItem:function(t){this.$delete(this.stack,t),this.destroyQueue[t]&&(clearTimeout(this.destroyQueue[t]),this.$delete(this.destroyQueue,t))},destroyAll:function(){for(var t in this.destroyQueue)console.log(this.destroyQueue[t]),clearTimeout(this.destroyQueue[t]);this.stack={},this.destroyQueue={}},getIcon:function(t){var e;switch(t){case"success":e='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.38498 12.0188L13.5962 4.80751L12.4695 3.64319L6.38498 9.7277L3.53052 6.87324L2.40376 8L6.38498 12.0188ZM2.32864 2.3662C3.9061 0.788732 5.79656 0 8 0C10.2034 0 12.0814 0.788732 13.6338 2.3662C15.2113 3.91862 16 5.79656 16 8C16 10.2034 15.2113 12.0939 13.6338 13.6714C12.0814 15.2238 10.2034 16 8 16C5.79656 16 3.9061 15.2238 2.32864 13.6714C0.776213 12.0939 0 10.2034 0 8C0 5.79656 0.776213 3.91862 2.32864 2.3662Z"/></svg>';break;case"error":e='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.71489 10.1136V6.71605H7.28511V10.1136H8.71489ZM8.71489 13.4716V11.7728H7.28511V13.4716H8.71489ZM0 16L8 0L16 16H0Z"/></svg>';break;default:e='<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.78873 5.59624V3.98122H7.21127V5.59624H8.78873ZM8.78873 12.0188V7.21127H7.21127V12.0188H8.78873ZM2.32864 2.3662C3.9061 0.788732 5.79656 0 8 0C10.2034 0 12.0814 0.788732 13.6338 2.3662C15.2113 3.91862 16 5.79656 16 8C16 10.2034 15.2113 12.0939 13.6338 13.6714C12.0814 15.2238 10.2034 16 8 16C5.79656 16 3.9061 15.2238 2.32864 13.6714C0.776213 12.0939 0 10.2034 0 8C0 5.79656 0.776213 3.91862 2.32864 2.3662Z"/></svg>'}return e}}},g={instance:null,stack:{},newInstance:function(){var t=Vue.extend(b);this.instance=new t({propsData:{type:"primary"}}),this.instance.$mount(),document.body.appendChild(this.instance.$el)},getRandId:function(){return Math.random().toString(36).substring(2,7)+Math.random().toString(36).substring(2,7)},add:function(t,e){e=e||this.getRandId(),this.instance||this.newInstance(),t.duration=t.duration||4500,t.type=t.type||"info",this.instance.addToStack(t,e)},close:function(t){if(!t)return!1;t=t.toString(),this.instance&&this.instance.destroyItem(t)},closeAll:function(){this.instance.destroyAll()}},y={name:"cx-vui-input",template:"#cx-vui-input",mixins:[r],props:{type:{validator:function(t){return o(t,["text","textarea","password","url","email","date","number","tel"])},default:"text"},value:{type:[String,Number],default:""},size:{validator:function(t){return o(t,["small","large","default","fullwidth"])},default:"default"},placeholder:{type:String,default:""},maxlength:{type:Number},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},name:{type:String},autofocus:{type:Boolean,default:!1},autocomplete:{validator:function(t){return o(t,["on","off"])},default:"off"},elementId:{type:String},conditions:{type:Array,default:function(){return[]}},preventWrap:{type:Boolean,default:!1},label:{type:String},description:{type:String},wrapperCss:{type:Array,default:function(){return[]}}},data:function(){return{currentValue:this.value,currentId:this.elementId}},watch:{value:function(t){this.setCurrentValue(t)}},mounted:function(){!this.currentId&&this.name&&(this.currentId="cx_"+this.name)},computed:{controlClasses:function(){var t=["cx-vui-input"];return t.push("size-"+this.size),this.error&&t.push("has-error"),t}},methods:{handleEnter:function(t){this.$emit("on-enter",t)},handleKeydown:function(t){this.$emit("on-keydown",t)},handleKeypress:function(t){this.$emit("on-keypress",t)},handleKeyup:function(t){this.$emit("on-keyup",t)},handleFocus:function(t){this.$emit("on-focus",t)},handleBlur:function(t){this.$emit("on-blur",t)},handleInput:function(t){var e=t.target.value;this.$emit("input",e),this.setCurrentValue(e),this.$emit("on-change",t)},handleChange:function(t){this.$emit("on-input-change",t)},setCurrentValue:function(t){t!==this.currentValue&&(this.currentValue=t)}}},_={name:"cx-vui-textarea",template:"#cx-vui-textarea",mixins:[r],props:{value:{type:[String,Number],default:""},size:{validator:function(t){return o(t,["small","large","default","fullwidth"])},default:"default"},placeholder:{type:String,default:""},rows:{type:Number},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},name:{type:String},elementId:{type:String},conditions:{type:Array,default:function(){return[]}},preventWrap:{type:Boolean,default:!1},label:{type:String},description:{type:String},wrapperCss:{type:Array,default:function(){return[]}}},data:function(){return{currentValue:this.value,currentId:this.elementId}},watch:{value:function(t){this.setCurrentValue(t)}},mounted:function(){!this.currentId&&this.name&&(this.currentId="cx_"+this.name)},computed:{controlClasses:function(){var t=["cx-vui-textarea"];return t.push("size-"+this.size),this.error&&t.push("has-error"),t}},methods:{handleEnter:function(t){this.$emit("on-enter",t)},handleKeydown:function(t){this.$emit("on-keydown",t)},handleKeypress:function(t){this.$emit("on-keypress",t)},handleKeyup:function(t){this.$emit("on-keyup",t)},handleFocus:function(t){this.$emit("on-focus",t)},handleBlur:function(t){this.$emit("on-blur",t)},handleInput:function(t){var e=t.target.value;this.$emit("input",e),this.setCurrentValue(e),this.$emit("on-change",t)},handleChange:function(t){this.$emit("on-input-change",t)},setCurrentValue:function(t){t!==this.currentValue&&(this.currentValue=t)}}},w={name:"cx-vui-switcher",template:"#cx-vui-switcher",mixins:[r],props:{value:{type:[String,Number,Boolean],default:""},disabled:{type:Boolean,default:!1},name:{type:String},elementId:{type:String},conditions:{type:Array,default:function(){return[]}},returnTrue:{type:[String,Number,Boolean],default:!0},returnFalse:{type:[String,Number,Boolean],default:""},preventWrap:{type:Boolean,default:!1},label:{type:String},description:{type:String},wrapperCss:{type:Array,default:function(){return[]}}},data:function(){return{currentValue:this.value,currentId:this.elementId,isOn:!1,inFocus:!1}},watch:{value:function(t){this.setCurrentValue(t),t===this.returnTrue?this.isOn=!0:this.isOn=!1}},mounted:function(){!this.currentId&&this.name&&(this.currentId="cx_"+this.name),this.value===this.returnTrue&&(this.isOn=!0)},methods:{handleEnter:function(t){this.$emit("on-enter",t),this.switchState(),this.inFocus=!0},handleFocus:function(t){this.inFocus=!0,this.$emit("on-focus",t)},handleBlur:function(t){this.inFocus=!1,this.$emit("on-blur",t)},switchState:function(){var t;this.isOn=!this.isOn,t=this.isOn?this.returnTrue:this.returnFalse,this.$emit("input",t),this.setCurrentValue(t),this.$emit("on-change",event),this.inFocus=!1},handleChange:function(t){this.$emit("on-input-change",t)},setCurrentValue:function(t){t!==this.currentValue&&(this.currentValue=t)}}};function k(t){return(k="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)}function S(e,t){var i=Object.keys(e);return Object.getOwnPropertySymbols&&i.push.apply(i,Object.getOwnPropertySymbols(e)),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i}function C(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?S(i,!0).forEach(function(t){I(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):S(i).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function I(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function O(n,t,o,e){var r=o.target;t[e].forEach(function(t){var e=t.el;if(e!==r&&!e.contains(r)){var i=t.binding;i.modifiers.stop&&o.stopPropagation(),i.modifiers.prevent&&o.preventDefault(),i.value.call(n,o)}})}function V(t,e){return t?(A[e]||(A[e]=function(t){O(this,T,t,e)}),A[e]):(B[e]||(B[e]=function(t){O(this,$,t,e)}),B[e])}var T=Object.create(null),$=Object.create(null),A=Object.create(null),B=Object.create(null),j=[T,$],z=Object.defineProperties({},{$_captureInstances:{value:T},$_nonCaptureInstances:{value:$},$_captureEventHandlers:{value:A},$_nonCaptureEventHandlers:{value:B},bind:{value:function(t,e){if("function"!=typeof e.value)throw new TypeError("Binding value must be a function.");var i=e.arg||"click",n=C({},e,{},{arg:i,modifiers:C({},{capture:!1,prevent:!1,stop:!1},{},e.modifiers)}),o=n.modifiers.capture,r=o?T:$;Array.isArray(r[i])||(r[i]=[]),1===r[i].push({el:t,binding:n})&&"object"===("undefined"==typeof document?"undefined":k(document))&&document&&document.addEventListener(i,V(o,i),o)}},unbind:{value:function(e){function o(t){return t.el!==e}j.forEach(function(i){var t=Object.keys(i);if(t.length){var n=i===T;t.forEach(function(t){var e=i[t].filter(o);e.length?i[t]=e:("object"===("undefined"==typeof document?"undefined":k(document))&&document&&document.removeEventListener(t,V(n,t),n),delete i[t])})}})}},version:{enumerable:!0,value:"4.0.10"}});var E={name:"cx-vui-iconpicker",template:"#cx-vui-iconpicker",mixins:[r],directives:{clickOutside:z},props:{value:{type:[String],default:""},size:{validator:function(t){return o(t,["small","large","default","fullwidth"])},default:"default"},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},name:{type:String},autofocus:{type:Boolean,default:!1},elementId:{type:String},autocomplete:{validator:function(t){return o(t,["on","off"])},default:"off"},conditions:{type:Array,default:function(){return[]}},iconBase:{type:String,default:""},iconPrefix:{type:String,default:""},icons:{type:Array,default:function(){return[]}},preventWrap:{type:Boolean,default:!1},label:{type:String},description:{type:String},wrapperCss:{type:Array,default:function(){return[]}}},data:function(){return{currentValue:this.value,currentId:this.elementId,filterQuery:"",panelActive:!1,prefixedIcons:[]}},watch:{value:function(t){this.setCurrentValue(t)}},mounted:function(){var e=this;!this.currentId&&this.name&&(this.currentId="cx_"+this.name),this.icons.forEach(function(t){e.prefixedIcons.push(e.iconPrefix+t)})},computed:{filteredIcons:function(){var e=this;return this.filterQuery?this.prefixedIcons.filter(function(t){return t.includes(e.filterQuery)}):this.prefixedIcons}},methods:{handleEnter:function(t){this.$emit("on-enter",t)},handleKeydown:function(t){this.$emit("on-keydown",t)},handleKeypress:function(t){this.$emit("on-keypress",t)},handleKeyup:function(t){this.$emit("on-keyup",t)},handleFocus:function(t){this.panelActive=!0,this.$emit("on-focus",t)},handleBlur:function(t){this.$emit("on-blur",t)},seclectIcon:function(t){this.$emit("input",t),this.setCurrentValue(t),this.$emit("on-change",t),this.closePanel()},handleInput:function(t){var e=t.target.value;this.filterQuery=e,this.$emit("input",e),this.setCurrentValue(e),this.$emit("on-change",t)},handleChange:function(t){this.$emit("on-input-change",t)},setCurrentValue:function(t){t!==this.currentValue&&(this.currentValue=t)},onClickOutside:function(t){this.closePanel()},closePanel:function(){this.panelActive&&(this.panelActive=!1,this.filterQuery="",this.$emit("on-panel-closed"))}}};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})(t)}var F={name:"cx-vui-select",template:"#cx-vui-select",mixins:[r],props:{value:{type:[String,Number,Array],default:""},size:{validator:function(t){return o(t,["small","large","default","fullwidth"])},default:"default"},placeholder:{type:String,default:""},optionsList:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},name:{type:String},multiple:{type:Boolean,default:!1},elementId:{type:String},conditions:{type:Array,default:function(){return[]}},remote:{type:Boolean,default:!1},remoteCallback:{type:Function},preventWrap:{type:Boolean,default:!1},label:{type:String},description:{type:String},wrapperCss:{type:Array,default:function(){return[]}}},data:function(){return{options:this.optionsList,currentValue:this.value,currentId:this.elementId}},watch:{value:function(t){this.storeCurrentValue(t)},optionsList:function(t){this.setOptions(t)}},created:function(){this.multiple?this.currentValue&&"object"!==L(this.currentValue)&&(this.currentValue=[this.currentValue]):this.currentValue&&"object"===L(this.currentValue)&&(this.currentValue=this.currentValue[0])},mounted:function(){var e=this;if(!this.currentId&&this.name&&(this.currentId="cx_"+this.name),this.remote&&this.remoteCallback){var t=this.remoteCallback();t&&t.then&&t.then(function(t){t&&(e.options=t)})}},methods:{controlClasses:function(){var t=["cx-vui-select"];return t.push("size-"+this.size),t},handleFocus:function(t){this.$emit("on-focus",t)},handleBlur:function(t){this.$emit("on-blur",t)},handleInput:function(){this.$emit("input",this.currentValue),this.$emit("on-change",event)},storeCurrentValue:function(t){if(this.multiple){if(o(t,this.currentValue))return;"object"===L(t)?"[object Array]"===Object.prototype.toString.call(t)?this.currentValues.concat(t):this.currentValues.push(t):this.currentValue.push(t)}else{if(t===this.currentValue)return;this.currentValue=t}},setOptions:function(t){this.options=t},isOptionSelected:function(t){return!!this.currentValue&&(this.multiple?o(t.value,this.currentValue):t.value===this.currentValue)}}};function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var D={name:"cx-vui-f-select",template:"#cx-vui-f-select",mixins:[r],directives:{clickOutside:z},props:{value:{type:[String,Number,Array],default:""},placeholder:{type:String,default:""},optionsList:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},name:{type:String},error:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},elementId:{type:String},autocomplete:{validator:function(t){return o(t,["on","off"])},default:"off"},conditions:{type:Array,default:function(){return[]}},remote:{type:Boolean,default:!1},remoteCallback:{type:Function},remoteTrigger:{type:Number,default:3},remoteTriggerMessage:{type:String,default:"Please enter %d char(s) to start search"},notFoundMeassge:{type:String,default:"There is no items find matching this query"},loadingMessage:{type:String,default:"Loading..."},preventWrap:{type:Boolean,default:!1},label:{type:String},description:{type:String},wrapperCss:{type:Array,default:function(){return[]}}},data:function(){return{options:this.optionsList,currentValues:this.value,currentId:this.elementId,selectedOptions:[],query:"",inFocus:!1,optionInFocus:!1,loading:!1,loaded:!1}},watch:{value:function(t,e){if(this.multiple){if(function(t,e){if(t.length!==e.length)return!1;for(var i=t.length;i--;)if(t[i]!==e[i])return!1;return!0}(t,e))return}else if(t===e)return;this.storeValues(t)},optionsList:function(t){this.setOptions(t)}},created:function(){this.currentValues?"object"!==N(this.currentValues)&&("[object Array]"===Object.prototype.toString.call(this.currentValues)||(this.currentValues=[this.currentValues])):this.currentValues=[]},mounted:function(){var e=this;!this.currentId&&this.name&&(this.currentId="cx_"+this.name),this.remote&&this.remoteCallback&&this.currentValues.length?this.remoteUpdateSelected():this.currentValues.length&&this.options.forEach(function(t){o(t.value,e.currentValues)&&e.selectedOptions.push(t)})},computed:{filteredOptions:function(){var e=this;return this.query?this.options.filter(function(t){return!!e.remote||(t.label.includes(e.query)||t.value.includes(e.query))}):this.options},parsedRemoteTriggerMessage:function(){return this.remoteTriggerMessage.replace(/\%d/g,this.charsDiff)},charsDiff:function(){var t=0;return this.query&&(t=this.query.length),this.remoteTrigger-t}},methods:{remoteUpdateSelected:function(){var e=this;this.loading=!0;var t=this.remoteCallback(this.query,this.currentValues);t&&t.then&&t.then(function(t){t&&(e.selectedOptions=t,e.loaded=!0,e.loading=!1)})},handleFocus:function(t){this.inFocus=!0,this.$emit("on-focus",t)},handleOptionsNav:function(t){"ArrowUp"!==t.key&&"Tab"!==t.key||this.navigateOptions(-1),"ArrowDown"===t.key&&this.navigateOptions(1)},navigateOptions:function(t){!1===this.optionInFocus&&(this.optionInFocus=-1);var e=this.optionInFocus+t,i=this.options.length-1;i<0&&(i=0),e<0?e=0:i<e&&(e=i),this.optionInFocus=e},onClickOutside:function(t){this.inFocus&&(this.inFocus=!1,this.$emit("on-blur",t))},handleInput:function(t){var e=this,i=t.target.value;if(this.query=i,this.$emit("input",this.currentValues),this.$emit("on-change",t),this.inFocus||(this.inFocus=!0),this.remote&&this.remoteCallback&&this.charsDiff<=0&&!this.loading&&!this.loaded){this.loading=!0;var n=this.remoteCallback(this.query,[]);n&&n.then&&n.then(function(t){t&&(e.options=t,e.loaded=!0,e.loading=!1)})}else this.remote&&this.remoteCallback&&this.loaded&&0<this.charsDiff&&this.resetRemoteOptions()},handleEnter:function(){if(!1!==this.optionInFocus&&this.options[this.optionInFocus]){var t=this.options[this.optionInFocus].value;this.handleResultClick(t)}},handleResultClick:function(t){o(t,this.currentValues)?this.removeValue(t):this.storeValues(t),this.$emit("input",this.currentValues),this.$emit("on-change",this.currentValues),this.inFocus=!1,this.optionInFocus=!1,this.query="",this.remote&&this.remoteCallback&&this.loaded&&this.resetRemoteOptions()},resetRemoteOptions:function(){this.options=[],this.loaded=!1},removeValue:function(t){this.currentValues.splice(this.currentValues.indexOf(t),1),this.removeFromSelected(t)},removeFromSelected:function(i){var n=this;this.selectedOptions.forEach(function(t,e){t.value===i&&n.selectedOptions.splice(e,1)})},pushToSelected:function(e,i){var n=this;this.options.forEach(function(t){t.value===e&&(i?n.selectedOptions=[t]:n.selectedOptions.push(t))})},storeValues:function(t){var e=this;o(t,this.currentValues)||(this.multiple?"object"===N(t)&&"[object Array]"===Object.prototype.toString.call(t)?t.forEach(function(t){o(t,e.currentValues)||(e.currentValues.push(t),e.pushToSelected(t))}):(this.currentValues.push(t),this.pushToSelected(t)):"object"===N(t)&&"[object Array]"===Object.prototype.toString.call(t)?(this.currentValues=t).forEach(function(t){e.pushToSelected(t,!0)}):(this.currentValues=[t],this.pushToSelected(t,!0)))},setOptions:function(t){this.options=t},isOptionSelected:function(t){return!!this.currentValues&&o(t.value,this.currentValues)}}},M={name:"cx-vui-checkbox",template:"#cx-vui-checkbox",mixins:[r],props:{returnType:{validator:function(t){return o(t,["array","object","single"])},default:"object"},value:{default:""},disabled:{type:Boolean,default:!1},name:{type:String},optionsList:{type:Array,default:function(){return[]}},returnTrue:{type:[Boolean,String,Number],default:!0},returnFalse:{type:[Boolean,String,Number],default:!1},elementId:{type:String},conditions:{type:Array,default:function(){return[]}},preventWrap:{type:Boolean,default:!1},label:{type:String},description:{type:String},wrapperCss:{type:Array,default:function(){return[]}}},data:function(){return{currentValues:this.value,currentId:this.elementId,optionInFocus:null}},watch:{value:function(t){this.setCurrentValues(t)}},mounted:function(){!this.currentId&&this.name&&(this.currentId="cx_"+this.name)},computed:{inputType:function(){return"array"===this.returnType?"checkbox":"hidden"}},methods:{inputValue:function(t){return"checkbox"===this.inputType?this.returnTrue:this.isChecked(t)?this.returnTrue:this.returnFalse},isChecked:function(t){if(!this.currentValues)return!1;switch(this.returnType){case"single":return t===this.currentValues;case"array":return o(t,this.currentValues);case"object":return!!this.currentValues[t]&&this.currentValues[t]===this.returnTrue}},handleEnter:function(t){this.$emit("on-enter",t)},handleClick:function(t){this.$emit("on-click",t)},handleFocus:function(t,e){this.disabled||(this.optionInFocus=e,this.$emit("on-focus",t,e))},handleBlur:function(t,e){this.disabled||(e===this.optionInFocus&&(this.optionInFocus=null),this.$emit("on-blur",t,e))},handleParentFocus:function(){this.disabled||null===this.optionInFocus&&this.optionsList.length&&(this.optionInFocus=this.optionsList[0].value)},handleInput:function(t,e){this.disabled||(this.updateValueState(e),this.$emit("input",this.currentValues),this.$emit("on-change",t))},isOptionInFocus:function(t){return t===this.optionInFocus},updateValueState:function(t){switch(this.returnType){case"single":t!==this.currentValues&&(this.currentValues=t);break;case"array":o(t,this.currentValues)?this.currentValues.splice(this.currentValues.indexOf(t),1):this.currentValues.push(t);break;case"object":this.currentValues[t]&&this.currentValues[t]===this.returnTrue?this.$set(this.currentValues,t,this.returnFalse):this.$set(this.currentValues,t,this.returnTrue)}},setCurrentValues:function(t){switch(this.returnType){case"single":t!==this.currentValues&&(this.currentValues=t);break;case"array":case"object":this.currentValues=t}}}},R={name:"cx-vui-radio",template:"#cx-vui-radio",mixins:[r],props:{value:{default:""},disabled:{type:Boolean,default:!1},name:{type:String},optionsList:{type:Array,default:function(){return[]}},elementId:{type:String},conditions:{type:Array,default:function(){return[]}},preventWrap:{type:Boolean,default:!1},label:{type:String},description:{type:String},wrapperCss:{type:Array,default:function(){return[]}}},data:function(){return{currentValue:this.value,currentId:this.elementId,optionInFocus:null}},watch:{value:function(t){this.setCurrentValue(t)}},mounted:function(){!this.currentId&&this.name&&(this.currentId="cx_"+this.name)},methods:{handleEnter:function(t){this.$emit("on-enter",t)},handleClick:function(t){this.$emit("on-click",t)},handleFocus:function(t,e){this.disabled||(this.optionInFocus=e,this.$emit("on-focus",t,e))},handleBlur:function(t,e){this.disabled||(e===this.optionInFocus&&(this.optionInFocus=null),this.$emit("on-blur",t,e))},handleInput:function(t,e){this.disabled||(this.setCurrentValue(e),this.$emit("input",this.currentValue),this.$emit("on-change",t))},isOptionInFocus:function(t){return t===this.optionInFocus},setCurrentValue:function(t){t!==this.currentValue&&(this.currentValue=t)}}};i(1);Vue.component(n.name,n),Vue.component(s.name,s),Vue.component(a.name,a),Vue.component(u.name,u),Vue.component(l.name,l),Vue.component(p.name,p),Vue.component(d.name,d),Vue.component(h.name,h),Vue.component(f.name,f),Vue.component(x.name,x),Vue.component(m.name,m),Vue.component(v.name,v),Vue.component(y.name,y),Vue.component(_.name,_),Vue.component(w.name,w),Vue.component(E.name,E),Vue.component(F.name,F),Vue.component(D.name,D),Vue.component(M.name,M),Vue.component(R.name,R),Vue.prototype.$CXNotice=g}]);