From 895b8d79a62dd504626ce8e2f849c08d6f78a9aa Mon Sep 17 00:00:00 2001 From: romanslonov Date: Fri, 19 Apr 2019 15:53:11 +0800 Subject: [PATCH] Build and updated --- dist/modulist-vue.common.js | 4 ++-- dist/modulist-vue.esm.js | 4 ++-- dist/modulist-vue.min.js | 4 ++-- package.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dist/modulist-vue.common.js b/dist/modulist-vue.common.js index cd4500a..480e918 100644 --- a/dist/modulist-vue.common.js +++ b/dist/modulist-vue.common.js @@ -1,6 +1,6 @@ /** - * Modulist Vue v1.0.0-alpha.11 + * Modulist Vue v1.0.0-alpha.12 * (c) 2019 SimplyStack * Released under the MIT License. */ -"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var Popper=_interopDefault(require("popper.js")),fuzzysearch=_interopDefault(require("fuzzysearch")),Vue=_interopDefault(require("vue")),script={name:"VAlert",props:{title:{type:String,default:"Default title"},type:{type:String,default:"info",validator:function(e){return["info","success","warn","error"].indexOf(e)>-1}},wide:{type:Boolean,default:!1}},computed:{classes:function(){return["alert--"+this.type,{"alert--wide":this.wide}]}}};function normalizeComponent(e,t,i,n,s,o,_,a,r,l){"boolean"!=typeof _&&(r=a,a=_,_=!1);var u,c="function"==typeof i?i.options:i;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,s&&(c.functional=!0)),n&&(c._scopeId=n),o?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,r(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=u):t&&(u=_?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),u)if(c.functional){var d=c.render;c.render=function(e,t){return u.call(t),d(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,u):[u]}return i}var normalizeComponent_1=normalizeComponent,__vue_script__=script,__vue_render__=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"alert",class:this.classes},[t("div",{staticClass:"alert__body"},[t("div",{staticClass:"alert__title"},[this._v(this._s(this.title))]),this._v(" "),t("div",{staticClass:"alert__text"},[this._t("default")],2)])])},__vue_staticRenderFns__=[],__vue_inject_styles__=void 0,__vue_scope_id__=void 0,__vue_module_identifier__=void 0,__vue_is_functional_template__=!1,Alert=normalizeComponent_1({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__,__vue_scope_id__,__vue_is_functional_template__,__vue_module_identifier__,void 0,void 0);Alert.install=function(e){e.component("VAlert",Alert)};var script$1={name:"VAvatar",props:{src:{type:String,required:!0},size:{type:[String,Number],default:32},alt:{type:String,default:"Avatar"}}},__vue_script__$1=script$1,__vue_render__$1=function(){var e=this.$createElement;return(this._self._c||e)("img",{staticClass:"avatar",attrs:{src:this.src,alt:this.alt,width:this.size,height:this.size}})},__vue_staticRenderFns__$1=[],__vue_inject_styles__$1=void 0,__vue_scope_id__$1=void 0,__vue_module_identifier__$1=void 0,__vue_is_functional_template__$1=!1,Avatar=normalizeComponent_1({render:__vue_render__$1,staticRenderFns:__vue_staticRenderFns__$1},__vue_inject_styles__$1,__vue_script__$1,__vue_scope_id__$1,__vue_is_functional_template__$1,__vue_module_identifier__$1,void 0,void 0);Avatar.install=function(e){e.component("VAvatar",Avatar)};var script$2={name:"VBadge",props:{type:{type:String,default:"default",validator:function(e){return["default","primary","alternative","warning","success","danger"].indexOf(e)>-1}},align:{type:String,default:"middle",validator:function(e){return["top","middle","bottom"].indexOf(e)>-1}},text:{type:[String,Number],required:!0}},computed:{classes:function(){return["badge--"+this.type,"badge--align-"+this.align]}}},__vue_script__$2=script$2,__vue_render__$2=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"badge",class:this.classes,domProps:{textContent:this._s(this.text)}})},__vue_staticRenderFns__$2=[],__vue_inject_styles__$2=void 0,__vue_scope_id__$2=void 0,__vue_module_identifier__$2=void 0,__vue_is_functional_template__$2=!1,Badge=normalizeComponent_1({render:__vue_render__$2,staticRenderFns:__vue_staticRenderFns__$2},__vue_inject_styles__$2,__vue_script__$2,__vue_scope_id__$2,__vue_is_functional_template__$2,__vue_module_identifier__$2,void 0,void 0);Badge.install=function(e){e.component("VBadge",Badge)};var script$3={name:"VButton",props:{type:{type:String,default:"button"},appearance:{type:String,default:"default",validator:function(e){return["default","primary","alternative","subtle","success","danger"].indexOf(e)>-1}},size:{type:String,default:"4",validator:function(e){return["0","1","2","3","4"].indexOf(e)>-1}},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},iconFirst:{type:Boolean,default:!1},wide:{type:Boolean,default:!1}},computed:{classes:function(){return["button--"+this.appearance,"button--size-"+this.size,{"button--loading":this.loading},{"button--icon-only":!this.$slots.default},{"button--icon-first":this.iconFirst},{"button--wide":this.wide}]}}},__vue_script__$3=script$3,__vue_render__$3=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("button",e._g({staticClass:"button",class:e.classes,attrs:{disabled:e.disabled,type:e.type}},e.$listeners),[e._t("default"),e._v(" "),e.$slots.icon?i("div",{staticClass:"button__icon"},[e._t("icon")],2):e._e()],2)},__vue_staticRenderFns__$3=[],__vue_inject_styles__$3=void 0,__vue_scope_id__$3=void 0,__vue_module_identifier__$3=void 0,__vue_is_functional_template__$3=!1,Button=normalizeComponent_1({render:__vue_render__$3,staticRenderFns:__vue_staticRenderFns__$3},__vue_inject_styles__$3,__vue_script__$3,__vue_scope_id__$3,__vue_is_functional_template__$3,__vue_module_identifier__$3,void 0,void 0);function isObject(e){return null!==e&&"object"==typeof e}function looseEqual(e,t){return e==t||!(!isObject(e)||!isObject(t))&&JSON.stringify(e)===JSON.stringify(t)}function looseIndexOf(e,t){for(var i=0;i0?[].concat(this.initialValue):[])},isOptionCheckedByDefault:function(e){return looseIndexOf(this.initialValue,e[this.keys.value]||e)>-1},onFocus:function(e){this.isActive=!0,this.$emit("focus",e)},onBlur:function(e){this.isActive=!1,this.$emit("blur",e)},onChange:function(e,t){if(!this.ignoreChange){var i=e[0],n=e[1],s=[],o=t[this.keys.value]||t,_=looseIndexOf(this.value,o);i&&_<0&&(s=this.value.concat(o)),!i&&_>-1&&(s=this.value.slice(0,_).concat(this.value.slice(_+1))),this.$emit("input",s),this.$emit("change",s,n)}}},components:{VCheckbox:Checkbox}},__vue_script__$5=script$5,__vue_render__$5=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"checkbox-group"},[i("div",{staticClass:"checkbox-group__label"},[e._v(e._s(e.label))]),e._v(" "),i("div",{staticClass:"checkbox-group__list"},e._l(e.options,function(t,n){return i("div",{key:t[e.keys.id]||e.name+"-"+n,staticClass:"checkbox-group__item"},[i("v-checkbox",{key:t[e.keys.id],attrs:{id:t[e.keys.id]||(e.name||t[e.keys.name])+"-"+n,checked:e.isOptionCheckedByDefault(t),disabled:e.disabled||t[e.keys.disabled],name:e.name||t[e.keys.name],label:t[e.keys.label]||t},on:{blur:e.onBlur,change:function(i){return e.onChange(arguments,t)},focus:e.onFocus},model:{value:e.checkboxValues[n],callback:function(t){e.$set(e.checkboxValues,n,t)},expression:"checkboxValues[i]"}})],1)}),0)])},__vue_staticRenderFns__$5=[],__vue_inject_styles__$5=void 0,__vue_scope_id__$5=void 0,__vue_module_identifier__$5=void 0,__vue_is_functional_template__$5=!1,CheckboxGroup=normalizeComponent_1({render:__vue_render__$5,staticRenderFns:__vue_staticRenderFns__$5},__vue_inject_styles__$5,__vue_script__$5,__vue_scope_id__$5,__vue_is_functional_template__$5,__vue_module_identifier__$5,void 0,void 0);CheckboxGroup.install=function(e){e.component("VCheckboxGroup",CheckboxGroup)};var script$6={name:"VChip",props:{title:String,appearance:{type:String},closable:Boolean},computed:{classes:function(){return["chip--"+this.appearance]}},methods:{onDelete:function(e){this.$emit("delete",e)}}},__vue_script__$6=script$6,__vue_render__$6=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",e._g({ref:"chip",staticClass:"chip",class:e.classes,attrs:{tabindex:"0"}},e.$listeners),[i("div",{staticClass:"chip__text"},[e._v(e._s(e.title))]),e._v(" "),e.closable?i("div",{staticClass:"chip__close"},[i("button",{staticClass:"chip__delete",on:{click:function(t){return t.stopPropagation(),e.onDelete(t)}}},[i("svg",{attrs:{slot:"icon",height:"12",width:"12"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])]):e._e()])},__vue_staticRenderFns__$6=[],__vue_inject_styles__$6=void 0,__vue_scope_id__$6=void 0,__vue_module_identifier__$6=void 0,__vue_is_functional_template__$6=!1,Chip=normalizeComponent_1({render:__vue_render__$6,staticRenderFns:__vue_staticRenderFns__$6},__vue_inject_styles__$6,__vue_script__$6,__vue_scope_id__$6,__vue_is_functional_template__$6,__vue_module_identifier__$6,void 0,void 0);Chip.install=function(e){e.component("VChip",Chip)};var script$7={name:"VPopover",props:{trigger:{type:String,default:"click"},containFocus:{type:Boolean,default:!1},hasMaxHeight:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},offset:{type:[String,Number],default:"0"},manualOpen:{type:Boolean,default:!1},manualClose:{type:Boolean,default:!1},returnFocusOnClose:{type:Boolean,default:!0},focusRedirector:Function},data:function(){return{isActive:!1,popperInstance:null,focusedElBeforeOpen:null}},mounted:function(){this.addEventsListeners()},computed:{triggerEl:function(){return this.$refs.trigger},popperOptions:function(){return{placement:this.placement,modifiers:{offset:{offset:this.offset}}}}},methods:{addEventsListeners:function(){switch(this.trigger){case"click":this.manualClose||document.addEventListener("click",this.handleClickOutside,!0),this.manualOpen||this.triggerEl.addEventListener("click",this.toggle);break;case"hover":this.manualOpen||this.triggerEl.addEventListener("mouseenter",this.show),this.manualClose||document.addEventListener("mousemove",this.handleClickOutside,!0);break;default:throw new Error("[popover] "+this.trigger+" is not defined")}},removeEventsListeners:function(){switch(this.trigger){case"click":this.manualClose||document.removeEventListener("click",this.handleClickOutside,!0),this.triggerEl.removeEventListener("click",this.toggle);break;case"hover":this.manualOpen||this.triggerEl.removeEventListener("mouseenter",this.show),this.manualClose||document.removeEventListener("mousemove",this.handleClickOutside,!0);break;default:throw new Error("[popover] "+this.trigger+" is not defined")}},toggle:function(){this.isActive?this.close():this.show()},show:function(){var e=this;this.disabled||this.isActive||(this.focusedElBeforeOpen=document.activeElement,this.isActive=!0,this.initializePopper(),this.$nextTick(function(){e.$el.focus()}),this.$emit("open"))},close:function(){var e=this;this.isActive=!1,this.$nextTick(function(){e.destroyPopper()}),this.$emit("close"),this.returnFocusOnClose&&this.triggerEl.focus()},restrictFocus:function(e){this.containFocus?(e.stopPropagation(),this.focusRedirector?this.focusRedirector(e):this.$el.focus()):this.close()},initializePopper:function(){var e=this;this.$nextTick(function(){e.popperInstance=new Popper(e.triggerEl,e.$refs.content,e.popperOptions)})},destroyPopper:function(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)},handleClickOutside:function(e){this.$el.contains(e.target)||this.triggerEl.contains(e.target)||!this.isActive||this.close()}},beforeDestroy:function(){this.removeEventsListeners()}},__vue_script__$7=script$7,__vue_render__$7=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"popover",class:{"popover--has-max-height":e.hasMaxHeight},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.close(t)}}},[i("div",{ref:"trigger",staticClass:"popover__trigger"},[e._t("toggle")],2),e._v(" "),e.isActive?i("div",{ref:"content",staticClass:"popover__content",attrs:{role:"dialog","aria-haspopup":"true","aria-expanded":e.isActive?"true":"false",tabindex:"-1"}},[e._t("default"),e._v(" "),i("div",{staticClass:"popover__focus-redirector",attrs:{tabindex:"0"},on:{focus:e.restrictFocus}})],2):e._e()])},__vue_staticRenderFns__$7=[],__vue_inject_styles__$7=void 0,__vue_scope_id__$7=void 0,__vue_module_identifier__$7=void 0,__vue_is_functional_template__$7=!1,Popover=normalizeComponent_1({render:__vue_render__$7,staticRenderFns:__vue_staticRenderFns__$7},__vue_inject_styles__$7,__vue_script__$7,__vue_scope_id__$7,__vue_is_functional_template__$7,__vue_module_identifier__$7,void 0,void 0);Popover.install=function(e){e.component("VPopover",Popover)};var script$8={name:"VMenuOption",props:{type:String,label:String,disabled:{type:Boolean,default:!1}},computed:{classes:function(){return{"menu-option--divider":this.isDivider,"menu-option--disabled":this.disabled}},isDivider:function(){return"divider"===this.type}}},__vue_script__$8=script$8,__vue_render__$8=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("li",e._g({ref:"menuOption",staticClass:"menu-option",class:e.classes,attrs:{role:"menu-item",tabindex:e.isDivider||e.disabled?null:"0"}},e.$listeners),[e.isDivider?e._e():e._t("default",[i("div",{staticClass:"menu-option__content"},[i("div",{staticClass:"menu-option__text"},[e._v(e._s(e.label))])])])],2)},__vue_staticRenderFns__$8=[],__vue_inject_styles__$8=void 0,__vue_scope_id__$8=void 0,__vue_module_identifier__$8=void 0,__vue_is_functional_template__$8=!1,MenuOption=normalizeComponent_1({render:__vue_render__$8,staticRenderFns:__vue_staticRenderFns__$8},__vue_inject_styles__$8,__vue_script__$8,__vue_scope_id__$8,__vue_is_functional_template__$8,__vue_module_identifier__$8,void 0,void 0);MenuOption.install=function(e){e.component("VMenuOption",MenuOption)};var script$9={name:"VMenu",props:{options:{type:Array,default:function(){return[]}},containFocus:{type:Boolean,default:!1},keys:{type:Object,default:function(){return{type:"type",label:"label",disabled:"disabled"}}}},methods:{selectOption:function(e){e.disabled||"divider"===e.type||(this.$emit("select",e),this.closeMenu())},closeMenu:function(){this.$emit("close")},redirectFocus:function(e){e.stopPropagation(),this.$el.querySelector(".menu-option").focus()}},components:{VMenuOption:MenuOption}},__vue_script__$9=script$9,__vue_render__$9=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ul",{staticClass:"menu",attrs:{role:"menu"}},[e._l(e.options,function(t){return i("v-menu-option",{key:t.id,attrs:{disabled:t[e.keys.disabled],label:"divider"===t[e.keys.type]?null:t[e.keys.label]||t,type:t[e.keys.type]},on:{click:function(i){return e.selectOption(t)},keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),e.selectOption(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:(t.stopPropagation(),e.closeMenu(t))}]}},[e._t("option",null,{option:t})],2)}),e._v(" "),e.containFocus?i("div",{staticClass:"menu__focus-redirector",attrs:{tabindex:"0"},on:{focus:e.redirectFocus}}):e._e()],2)},__vue_staticRenderFns__$9=[],__vue_inject_styles__$9=void 0,__vue_scope_id__$9=void 0,__vue_module_identifier__$9=void 0,__vue_is_functional_template__$9=!1,Menu=normalizeComponent_1({render:__vue_render__$9,staticRenderFns:__vue_staticRenderFns__$9},__vue_inject_styles__$9,__vue_script__$9,__vue_scope_id__$9,__vue_is_functional_template__$9,__vue_module_identifier__$9,void 0,void 0);Menu.install=function(e){e.component("VMenu",Menu)};var script$a={name:"VDropdown",props:{placement:{type:String,default:"bottom"},options:{type:Array,default:function(){return[]}},containFocus:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},methods:{onSelect:function(e){this.$emit("select",e)},onOpen:function(){this.$emit("open")},onClose:function(){this.$emit("close")}},components:{Popover,Menu}},__vue_script__$a=script$a,__vue_render__$a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dropdown"},[i("Popover",{ref:"popover",attrs:{"contain-focus":"",disabled:e.disabled,placement:e.placement},on:{open:e.onOpen,close:e.onClose}},[i("div",{staticClass:"dropdown__toggle",attrs:{slot:"toggle"},slot:"toggle"},[e._t("toggle")],2),e._v(" "),i("Menu",{attrs:{options:e.options,"contain-focus":e.containFocus},on:{select:e.onSelect,close:function(t){return e.$refs.popover.close()}}})],1)],1)},__vue_staticRenderFns__$a=[],__vue_inject_styles__$a=void 0,__vue_scope_id__$a=void 0,__vue_module_identifier__$a=void 0,__vue_is_functional_template__$a=!1,Dropdown=normalizeComponent_1({render:__vue_render__$a,staticRenderFns:__vue_staticRenderFns__$a},__vue_inject_styles__$a,__vue_script__$a,__vue_scope_id__$a,__vue_is_functional_template__$a,__vue_module_identifier__$a,void 0,void 0);Dropdown.install=function(e){e.component("VDropdown",Dropdown)};var modalOpenClass="modal--open",script$b={name:"VModal",props:{open:{type:Boolean,default:!1},role:{type:String,default:"dialog",validator:function(e){return["dialog","alertdialog"].indexOf(e)>-1}},title:{type:String,default:"Modal title"},size:{type:String,default:"2",validator:function(e){return["1","2","3"].indexOf(e)>-1}},dismissible:{type:Boolean,default:!0},dismissOn:{type:String,default:"backdrop esc close-button"}},computed:{dismissOnBackdrop:function(){return this.dismissOn.indexOf("backdrop")>-1},dismissOnCloseButton:function(){return this.dismissOn.indexOf("close-button")>-1},dismissOnEsc:function(){return this.dismissOn.indexOf("esc")>-1},classes:function(){return["modal--size-"+this.size]}},methods:{close:function(e){this.dismissible&&(e.currentTarget===this.$refs.backdrop&&e.target!==e.currentTarget||this.$emit("close"))},onOpen:function(){this.lastfocusedElement=document.activeElement,this.$refs.container.focus(),document.body.classList.add(modalOpenClass),document.addEventListener("focus",this.restrictFocus,!0),this.$emit("open")},onClose:function(){this.teardownModal(),this.$emit("close")},redirectFocus:function(){this.$refs.container.focus()},restrictFocus:function(e){this.$refs.container.contains(e.target)||(e.stopPropagation(),this.$refs.container.focus())},teardownModal:function(){document.body.classList.remove(modalOpenClass),document.removeEventListener("focus",this.restrictFocus,!0),this.lastfocusedElement&&this.lastfocusedElement.focus()},onEnter:function(){this.$emit("reveal")},onLeave:function(){this.$emit("hide"),document.body.classList.remove(modalOpenClass)}},components:{VButton:Button},watch:{open:function(){var e=this;this.$nextTick(function(){e[e.open?"onOpen":"onClose"]()})}},beforeDestroy:function(){this.open&&this.teardownModal()}},isOldIE="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function createInjector(e){return function(e,t){return addStyle(e,t)}}var HEAD=document.head||document.getElementsByTagName("head")[0],styles={};function addStyle(e,t){var i=isOldIE?t.media||"default":e,n=styles[i]||(styles[i]={ids:new Set,styles:[]});if(!n.ids.has(e)){n.ids.add(e);var s=t.source;if(t.map&&(s+="\n/*# sourceURL="+t.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",t.media&&n.element.setAttribute("media",t.media),HEAD.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(s),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{var o=n.ids.size-1,_=document.createTextNode(s),a=n.element.childNodes;a[o]&&n.element.removeChild(a[o]),a.length?n.element.insertBefore(_,a[o]):n.element.appendChild(_)}}}var browser=createInjector,__vue_script__$b=script$b,__vue_render__$b=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("transition",{attrs:{name:"modal"},on:{"after-enter":e.onEnter,"after-leave":e.onLeave}},[e.open?i("div",{staticClass:"modal modal__mask",class:e.classes,attrs:{role:e.role}},[i("div",{ref:"backdrop",staticClass:"modal__wrapper",on:{click:function(t){e.dismissOnBackdrop&&e.close(t)}}},[i("div",{ref:"container",staticClass:"modal__container",attrs:{tabindex:"-1"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.dismissOnEsc&&e.close(t)}}},[i("div",{staticClass:"modal__header"},[i("h3",{staticClass:"modal__title"},[e._v(e._s(e.title))]),e._v(" "),i("v-button",{attrs:{appearance:"subtle",size:"1"},on:{click:e.close}},[i("svg",{attrs:{slot:"icon",width:"16",height:"16"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])],1),e._v(" "),i("div",{staticClass:"modal__body"},[e._t("default")],2),e._v(" "),i("div",{staticClass:"modal__footer"},[e._t("footer")],2),e._v(" "),i("div",{attrs:{tabindex:"0"},on:{focus:function(t){return t.stopPropagation(),e.redirectFocus(t)}}})])])]):e._e()])},__vue_staticRenderFns__$b=[],__vue_inject_styles__$b=function(e){e&&e("data-v-5d25e129_0",{source:".modal-enter{opacity:0}.modal-leave-active{opacity:0}.modal-enter .modal__container,.modal-leave-active .modal__container{transform:scale(1.1)}",map:void 0,media:void 0})},__vue_scope_id__$b=void 0,__vue_module_identifier__$b=void 0,__vue_is_functional_template__$b=!1,Modal=normalizeComponent_1({render:__vue_render__$b,staticRenderFns:__vue_staticRenderFns__$b},__vue_inject_styles__$b,__vue_script__$b,__vue_scope_id__$b,__vue_is_functional_template__$b,__vue_module_identifier__$b,browser,void 0);Modal.install=function(e){e.component("VModal",Modal)};var script$c={name:"VNotification",props:{id:{type:[Number,String],default:1},type:{type:String,default:"info"},title:{type:String},message:String,dismissible:{type:Boolean,default:!0},timeout:{type:Number,default:5e3,validator:function(e){return e>0}},actions:{type:Array,default:function(){return[]}}},computed:{computedTitle:function(){return this.title?this.title:capitalize(this.type)},classes:function(){return["notification--"+this.type]}},mounted:function(){this.timeout&&this.dismissible&&setTimeout(this.onClose,this.timeout)},methods:{onClose:function(e){this.$emit("close",e)},actionClickHandler:function(e){e?(e(),this.onClose()):this.onClose()}},components:{VButton:Button}},__vue_script__$c=script$c,__vue_render__$c=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"notification",class:e.classes},[i("div",{staticClass:"notification__icon"},["info"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"info-icon"}})]):e._e(),e._v(" "),"success"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"success-icon"}})]):e._e(),e._v(" "),"warning"===e.type?i("svg",{attrs:{width:"20",height:"16"}},[i("use",{attrs:{"xlink:href":"warning-icon"}})]):e._e(),e._v(" "),"error"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"error-icon"}})]):e._e()]),e._v(" "),i("div",{staticClass:"notification__content"},[i("div",{staticClass:"notification__title"},[e._v(e._s(e.computedTitle))]),e._v(" "),i("div",{staticClass:"notification__message"},[e._v(e._s(e.message))]),e._v(" "),e.actions.length>0?i("div",{staticClass:"notification__actions"},e._l(e.actions,function(t,n){return i("div",{key:n,staticClass:"notification__action"},[i("v-button",{attrs:{appearance:t.appearance,size:"2"},on:{click:function(i){return e.actionClickHandler(t.onClick)}}},[e._v("\n "+e._s(t.text)+"\n ")])],1)}),0):e._e()]),e._v(" "),e.dismissible?i("div",{staticClass:"notification__close"},[i("v-button",{attrs:{appearance:"subtle",size:"1"},on:{click:function(t){return t.stopPropagation(),e.onClose(t)}}},[i("svg",{attrs:{slot:"icon",width:"14",height:"14"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])],1):e._e()])},__vue_staticRenderFns__$c=[],__vue_inject_styles__$c=void 0,__vue_scope_id__$c=void 0,__vue_module_identifier__$c=void 0,__vue_is_functional_template__$c=!1,Notification=normalizeComponent_1({render:__vue_render__$c,staticRenderFns:__vue_staticRenderFns__$c},__vue_inject_styles__$c,__vue_script__$c,__vue_scope_id__$c,__vue_is_functional_template__$c,__vue_module_identifier__$c,void 0,void 0);Notification.install=function(e){e.component("VNotification",Notification)};var script$d={name:"VNotificationContainer",props:{queue:{type:Array,default:function(){return[]}},position:{type:String,default:"top-right",validator:function(e){return["top-left","top-right","bottom-right","bottom-left"].indexOf(e)>-1}}},computed:{classes:function(){return["notification-container--"+this.position]}},methods:{create:function(e){var t=e;t.timestamp=new Date,t.timestamp.setMilliseconds(t.timestamp.getMilliseconds()+this.queue.length),this.queue.push(t)},remove:function(e){var t=this.queue.findIndex(function(t){return t.timestamp===e});-1!==t&&this.queue.splice(t,1)}},components:{VNotification:Notification}},__vue_script__$d=script$d,__vue_render__$d=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"notification-container",class:e.classes},[i("transition-group",{attrs:{name:"list"}},e._l(e.queue,function(t,n){return i("v-notification",{key:t.timestamp.getTime(),attrs:{id:"notification-"+n,type:t.type,title:t.title,message:t.message,actions:t.actions,timestamp:t.timestamp},on:{close:function(i){return e.remove(t.timestamp)}}})}),1)],1)},__vue_staticRenderFns__$d=[],__vue_inject_styles__$d=function(e){e&&e("data-v-8fb8f2f0_0",{source:".list-enter-active,.list-leave-active{transition:all .3s}.list-enter,.list-leave-to{opacity:0;transform:translateX(30px)}",map:void 0,media:void 0})},__vue_scope_id__$d=void 0,__vue_module_identifier__$d=void 0,__vue_is_functional_template__$d=!1,NotificationContainer=normalizeComponent_1({render:__vue_render__$d,staticRenderFns:__vue_staticRenderFns__$d},__vue_inject_styles__$d,__vue_script__$d,__vue_scope_id__$d,__vue_is_functional_template__$d,__vue_module_identifier__$d,browser,void 0);NotificationContainer.install=function(e){e.component("VNotificationContainer",NotificationContainer)};var script$e={name:"VPagination",props:{value:{type:Number,default:1},maxVisibleButtons:{type:Number,default:3},total:{type:Number,required:!0},perPage:{type:Number,default:10},size:{type:String,default:"4"}},data:function(){return{currentPage:this.value}},computed:{startPage:function(){return 1===this.currentPage?1:this.currentPage===this.totalPages?this.totalPages-this.maxVisibleButtons+1:this.currentPage-1},endPage:function(){return Math.min(this.startPage+this.maxVisibleButtons-1,this.totalPages)},pages:function(){for(var e=[],t=this.startPage;t<=this.endPage;t+=1)e.push({name:t,isDisabled:t===this.currentPage});return e},isInFirstPage:function(){return 1===this.currentPage},isInLastPage:function(){return this.currentPage===this.totalPages},totalPages:function(){return Math.ceil(this.total/this.perPage)}},methods:{onClickFirstPage:function(){this.$emit("input",1)},onClickPreviousPage:function(){this.$emit("input",this.currentPage-1)},onClickPage:function(e){this.$emit("input",e)},onClickNextPage:function(){this.$emit("input",this.currentPage+1)},onClickLastPage:function(){this.$emit("input",this.totalPages)},isPageActive:function(e){return this.currentPage===e}},components:{VButton:Button},watch:{value:function(e){this.currentPage=e}}},__vue_script__$e=script$e,__vue_render__$e=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ul",{staticClass:"pagination"},[i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,"aria-label":"Go to first page",disabled:e.isInFirstPage},on:{click:e.onClickFirstPage}},[e._v("\n First\n ")])],1),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,"aria-label":"Go to previous page",disabled:e.isInFirstPage},on:{click:function(t){return t.preventDefault(),e.onClickPreviousPage(t)}}},[e._v("\n Previous\n ")])],1),e._v(" "),e._l(e.pages,function(t,n){return i("li",{key:n,staticClass:"pagination__item"},[i("v-button",{class:{active:e.isPageActive(t.name)},attrs:{size:e.size,appearance:e.isPageActive(t.name)?"primary":"default","aria-label":"Go to page number "+t.name},on:{click:function(i){return i.preventDefault(),e.onClickPage(t.name)}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,disabled:e.isInLastPage,"aria-label":"Go to next page"},on:{click:e.onClickNextPage}},[e._v("\n Next\n ")])],1),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,disabled:e.isInLastPage,"aria-label":"Go to last page"},on:{click:e.onClickLastPage}},[e._v("\n Last\n ")])],1)],2)},__vue_staticRenderFns__$e=[],__vue_inject_styles__$e=void 0,__vue_scope_id__$e=void 0,__vue_module_identifier__$e=void 0,__vue_is_functional_template__$e=!1,Pagination=normalizeComponent_1({render:__vue_render__$e,staticRenderFns:__vue_staticRenderFns__$e},__vue_inject_styles__$e,__vue_script__$e,__vue_scope_id__$e,__vue_is_functional_template__$e,__vue_module_identifier__$e,void 0,void 0);Pagination.install=function(e){e.component("VPagination",Pagination)};var script$f={name:"VProgress",props:{type:{type:String,default:"indeterminate",validator:function(e){return["indeterminate","determinate"].indexOf(e)>-1}},progress:{type:Number,default:0}},computed:{classes:function(){return["progress--"+this.type]},moderatedProgress:function(){return this.progress<0?0:this.progress>100?100:this.progress}}},__vue_script__$f=script$f,__vue_render__$f=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"progress",class:this.classes},["determinate"===this.type?t("div",{staticClass:"progress__bar",style:{width:this.moderatedProgress+"%"},attrs:{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":this.moderatedProgress}}):t("div",{staticClass:"progress__bar",attrs:{role:"progressbar","aria-valuemax":100,"aria-valuemin":0}})])},__vue_staticRenderFns__$f=[],__vue_inject_styles__$f=void 0,__vue_scope_id__$f=void 0,__vue_module_identifier__$f=void 0,__vue_is_functional_template__$f=!1,Progress=normalizeComponent_1({render:__vue_render__$f,staticRenderFns:__vue_staticRenderFns__$f},__vue_inject_styles__$f,__vue_script__$f,__vue_scope_id__$f,__vue_is_functional_template__$f,__vue_module_identifier__$f,void 0,void 0);Progress.install=function(e){e.component("VProgress",Progress)};var script$g={name:"VRadio",props:{id:{type:[String,Number]},name:{type:String,required:!0},label:{type:String,required:!0},tabindex:{type:[String,Number]},value:{type:[Number,String],required:!0},trueValue:{type:[Number,String],required:!0},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},created:function(){this.checked&&this.$emit("input",this.trueValue)},computed:{isChecked:function(){return String(this.value).length>0&&this.value==this.trueValue}},methods:{onFocus:function(e){this.isActive=!0,this.$emit("focus",e)},onBlur:function(e){this.isActive=!1,this.$emit("blur",e)},onChange:function(e){this.disabled||this.$emit("input",this.trueValue),this.$emit("change",this.isChecked,e)},focus:function(){this.$refs.input.focus()}}},__vue_script__$g=script$g,__vue_render__$g=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"radio",attrs:{for:e.id}},[i("input",{staticClass:"radio__input",attrs:{type:"radio",id:e.id,disabled:e.disabled,name:e.name,tabindex:e.tabindex},domProps:{checked:e.checked,value:e.trueValue},on:{blur:e.onBlur,change:e.onChange,focus:e.onFocus}}),e._v(" "),i("span",{staticClass:"radio__circle"}),e._v(" "),i("span",{staticClass:"radio__text"},[e._v(e._s(e.label))])])},__vue_staticRenderFns__$g=[],__vue_inject_styles__$g=void 0,__vue_scope_id__$g=void 0,__vue_module_identifier__$g=void 0,__vue_is_functional_template__$g=!1,Radio=normalizeComponent_1({render:__vue_render__$g,staticRenderFns:__vue_staticRenderFns__$g},__vue_inject_styles__$g,__vue_script__$g,__vue_scope_id__$g,__vue_is_functional_template__$g,__vue_module_identifier__$g,void 0,void 0);Radio.install=function(e){e.component("VRadio",Radio)};var script$h={name:"VRadioGroup",props:{name:{type:String,required:!0},tabindex:{type:[String,Number]},label:{type:String},options:{type:Array,required:!0},value:{type:[Number,String],required:!0},keys:{type:Object,default:function(){return{id:"id",label:"label",value:"value",checked:"checked",disabled:"disabled"}}},disabled:{type:Boolean,default:!1}},data:function(){return{initialValue:this.value,selectedOptionValue:this.value}},methods:{reset:function(){this.$emit("input",this.initialValue)},isOptionCheckedByDefault:function(e){return this.initialValue==e[this.keys.value]||this.initialValue==e||e[this.keys.checked]},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},watch:{selectedOptionValue:function(){this.$emit("input",this.selectedOptionValue),this.$emit("change",this.selectedOptionValue)},value:function(){this.selectedOptionValue=this.value}},components:{VRadio:Radio}},__vue_script__$h=script$h,__vue_render__$h=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"radio-group"},[i("div",{staticClass:"radio-group__label"},[e._v(e._s(e.label))]),e._v(" "),i("div",{staticClass:"radio-group__list"},e._l(e.options,function(t,n){return i("div",{key:t[e.keys.id]||e.name+"-"+n,staticClass:"radio-group__item"},[i("VRadio",{key:t[e.keys.id],attrs:{id:t[e.keys.id]||e.name+"-"+n,label:t[e.keys.label]||t,checked:e.isOptionCheckedByDefault(t),disabled:e.disabled||t[e.keys.disabled],name:e.name,tabindex:e.tabindex,"true-value":t[e.keys.value]||t},on:{blur:e.onBlur,focus:e.onFocus},model:{value:e.selectedOptionValue,callback:function(t){e.selectedOptionValue=t},expression:"selectedOptionValue"}})],1)}),0)])},__vue_staticRenderFns__$h=[],__vue_inject_styles__$h=void 0,__vue_scope_id__$h=void 0,__vue_module_identifier__$h=void 0,__vue_is_functional_template__$h=!1,RadioGroup=normalizeComponent_1({render:__vue_render__$h,staticRenderFns:__vue_staticRenderFns__$h},__vue_inject_styles__$h,__vue_script__$h,__vue_scope_id__$h,__vue_is_functional_template__$h,__vue_module_identifier__$h,void 0,void 0);RadioGroup.install=function(e){e.component("VRadio",RadioGroup)};var script$i={name:"VSelectOption",props:{option:{type:[String,Object]},selected:Boolean,highlighted:Boolean,disabled:Boolean,multiple:Boolean,keys:{type:Object,default:function(){return{label:"label",value:"value",image:"image",disabled:"disabled"}}}},computed:{classes:function(){return[{"select-option--selected":this.selected},{"select-option--highlighted":this.highlighted},{"select-option--disabled":this.disabled}]}}},__vue_script__$i=script$i,__vue_render__$i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"select-option",class:e.classes,attrs:{"data-value":e.option[e.keys.value]}},[e._t("default",[i("div",[e._v(e._s(e.option[e.keys.label]))])]),e._v(" "),e.multiple&&!e.disabled?i("div",{staticClass:"select-option__checkbox",class:{"select-option__checkbox--selected":e.selected}}):e._e()],2)},__vue_staticRenderFns__$i=[],__vue_inject_styles__$i=void 0,__vue_scope_id__$i=void 0,__vue_module_identifier__$i=void 0,__vue_is_functional_template__$i=!1,SelectOption=normalizeComponent_1({render:__vue_render__$i,staticRenderFns:__vue_staticRenderFns__$i},__vue_inject_styles__$i,__vue_script__$i,__vue_scope_id__$i,__vue_is_functional_template__$i,__vue_module_identifier__$i,void 0,void 0);SelectOption.install=function(e){e.component("VSelectOption",SelectOption)};var startClick,isServer=Vue.prototype.$isServer,on=!isServer&&document.addEventListener?function(e,t,i){e&&t&&i&&e.addEventListener(t,i,!1)}:function(e,t,i){e&&t&&i&&e.attachEvent("on"+t,i)},nodeList=[],ctx="@@clickoutsideContext",seed=0;function createDocumentHandler(e,t,i){return function(n,s){void 0===n&&(n={}),void 0===s&&(s={}),!(i&&i.context&&n.target&&s.target)||e.contains(n.target)||e.contains(s.target)||e===n.target||i.context.popperElm&&(i.context.popperElm.contains(n.target)||i.context.popperElm.contains(s.target))||(t.expression&&e[ctx].methodName&&i.context[e[ctx].methodName]?i.context[e[ctx].methodName]():e[ctx].bindingFn&&e[ctx].bindingFn())}}!Vue.prototype.$isServer&&on(document,"mousedown",function(e){return startClick=e}),!Vue.prototype.$isServer&&on(document,"mouseup",function(e){nodeList.forEach(function(t){return t[ctx].documentHandler(e,startClick)})});var Clickoutside={bind:function(e,t,i){nodeList.push(e);var n=seed++;e[ctx]={id:n,documentHandler:createDocumentHandler(e,t,i),methodName:t.expression,bindingFn:t.value}},update:function(e,t,i){e[ctx].documentHandler=createDocumentHandler(e,t,i),e[ctx].methodName=t.expression,e[ctx].bindingFn=t.value},unbind:function(e){for(var t=nodeList.length,i=0;i=n&&s<=o}}function scrollIntoView(e,t){void 0===t&&(t={container:null,marginTop:0}),e&&(t.container=t.container||e.parentElement,inView(e,t.container)||(t.container.scrollTop=e.offsetTop-t.marginTop))}function resetScroll(e){e&&(e.scrollTop=0)}Clickoutside.install=function(e){e.directive("Clickoutside",Clickoutside)};var script$j={name:"VSelect",directives:{clickoutside:Clickoutside},props:{id:{type:[Number,String]},tabindex:{type:[Number,String],default:0},name:{type:String},label:{type:String,default:"Label"},value:{type:[Array,Object],required:!0},multiple:{type:Boolean},filterable:{type:Boolean},clearable:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},placeholder:{type:String,default:"Placeholder"},options:{type:Array,default:function(){return[]}},keys:{type:Object,default:function(){return{label:"label",value:"value",image:"image",disabled:"disabled"}}}},created:function(){this.mutableValue=this.multiple?[]:this.value,this.mutableOptions=this.options.slice(0)},data:function(){return{query:"",isOpen:!1,isActive:!1,mutableValue:null,mutableOptions:[],highlightedIndex:-1}},computed:{classes:function(){return[{"select--open":this.isOpen},{"select--disabled":this.disabled}]},isSlotDisplayed:function(){return this.multiple?this.mutableValue.length>0&&this.mutableValue.length<=1:""!==this.mutableValue&&!isObjectEmpty(this.mutableValue)},isPlaceholderVisible:function(){return""===this.mutableValue||null===this.mutableValue||0===this.mutableValue.length||0===Object.keys(this.mutableValue).length},filteredOptions:function(){var e=this;return this.filterable?this.mutableOptions.filter(function(t,i){return e.defaultFilter(t,i)}):this.mutableOptions}},methods:{handleClickOutside:function(){this.isOpen?this.closeDropdown():this.isActive&&(this.isActive=!1)},handleOnEnterSelectOption:function(){var e=this.filteredOptions[this.highlightedIndex];this.select(e)},select:function(e){e.disabled||(this.multiple?this.isOptionSelected(e)?this.deselect(e):(this.mutableValue.push(e),this.setValue(this.mutableValue)):(this.setValue(e),this.closeDropdown()),this.$emit("select",e))},deselect:function(e){var t=this.mutableValue.indexOf(e);this.mutableValue.splice(t,1)},setValue:function(e){this.mutableValue=e,this.$emit("input",e),this.$emit("change",e)},toggleDropdown:function(){this[this.isOpen?"closeDropdown":"openDropdown"]()},onOpen:function(){var e=this;this.$nextTick(function(){e.$refs.dropdown.focus(),e.scrollOptionIntoView(e.$refs.dropdown.querySelector(".select-option--selected"))})},onBlur:function(){this.isActive=!1,this.$emit("blur"),this.isOpen&&this.closeDropdown()},onFocus:function(){this.isActive=!0,this.$emit("focus")},openDropdown:function(){this.disabled||(this.isOpen=!0,this.$refs.dropdown.focus())},closeDropdown:function(){var e=this;this.isOpen=!1,this.$refs.container.focus(),this.$nextTick(function(){e.query=""})},isOptionSelected:function(e){var t=this;return this.multiple?this.mutableValue.some(function(i){return i[t.keys.label]===e[t.keys.label]}):this.mutableValue[this.keys.label]===e[this.keys.label]},clear:function(){var e=this;this.multiple?this.setValue([]):this.setValue({}),this.highlightedIndex=-1,this.$emit("clear"),this.$nextTick(function(){resetScroll(e.$refs.dropdown)})},reset:function(){this.clear()},deleteSelectedOption:function(e,t){var i=this.mutableValue.indexOf(t);i>-1&&this.mutableValue.splice(i,1),e.stopPropagation()},defaultFilter:function(e){var t=this.query.toLowerCase(),i=e[this.keys.label];return"string"==typeof i&&(i=i.toLowerCase()),fuzzysearch(t,i)},highlightOption:function(e){var t=this;this.$refs.options.length!==this.highlightedIndex&&("next"===e&&(this.highlightedIndex=this.highlightedIndex+1,this.highlightedIndex===this.$refs.options.length&&(this.highlightedIndex=0)),"prev"===e&&(this.highlightedIndex=this.highlightedIndex-1,this.highlightedIndex<0&&(this.highlightedIndex=this.$refs.options.length-1)),this.filteredOptions[this.highlightedIndex].disabled&&this.highlightOption(e),this.$nextTick(function(){t.scrollOptionIntoView(t.$refs.options[t.highlightedIndex].$el)}))},scrollOptionIntoView:function(e){scrollIntoView(e,{container:this.$refs.dropdown,marginTop:8})}},watch:{value:function(e){this.mutableValue=e},options:function(e){this.mutableOptions=e},isOpen:function(){this.isOpen?(this.onOpen(),this.$emit("open")):this.$emit("close")},query:function(){this.highlightedIndex=0}},components:{VSelectOption:SelectOption,VChip:Chip}},__vue_script__$j=script$j,__vue_render__$j=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClickOutside,expression:"handleClickOutside"}],staticClass:"select",class:e.classes},[i("label",{staticClass:"select__label",attrs:{for:e.name||e.id}},[e._v("\n "+e._s(e.label)+"\n ")]),e._v(" "),i("input",{attrs:{type:"hidden",name:e.name||e.id,disabled:e.disabled},domProps:{value:e.value.value}}),e._v(" "),i("div",{ref:"container",staticClass:"select__container",attrs:{tabindex:e.disabled?null:e.tabindex},on:{focus:e.onFocus,click:e.toggleDropdown,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:(t.preventDefault(),e.toggleDropdown(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.toggleDropdown(t))}]}},[i("div",{ref:"toggle",staticClass:"select__display"},[e.isSlotDisplayed?e._t("option",null,{option:e.multiple?e.mutableValue[0]:e.mutableValue}):e._e(),e._v(" "),e.$scopedSlots.option&&2===e.mutableValue.length||!e.$scopedSlots.option&&e.mutableValue.length>0&&e.multiple?i("div",[i("v-chip",{staticClass:"select__selected-option",attrs:{title:e.mutableValue[0].label,closable:""},on:{click:function(e){e.stopPropagation()},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:(t.stopPropagation(),e.deleteSelectedOption(t,e.mutableValue[0]))},delete:function(t){return e.deleteSelectedOption(t,e.mutableValue[0])}}}),e._v(" "),e.mutableValue.length>1?i("v-chip",{attrs:{title:"+ "+(e.mutableValue.length-1)}}):e._e()],1):e._e(),e._v(" "),e.mutableValue&&!e.$scopedSlots.option?i("div",[e._v(e._s(e.mutableValue[e.keys.label]))]):e._e(),e._v(" "),e.isPlaceholderVisible?i("div",{staticClass:"select__placeholder"},[e._v(e._s(e.placeholder))]):e._e()],2),e._v(" "),e.isSlotDisplayed&&e.clearable?i("svg",{staticClass:"select__clear",attrs:{height:"16",width:"16"},on:{click:function(t){return t.stopPropagation(),e.clear(t)}}},[i("use",{attrs:{"xlink:href":"#cross-icon"}})]):i("svg",{staticClass:"select__chevron",attrs:{width:"18px",height:"18px"}},[i("use",{attrs:{"xlink:href":"#chevron-down-icon"}})])]),e._v(" "),i("div",{ref:"dropdown",staticClass:"select__dropdown",attrs:{tabindex:"-1"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:(t.preventDefault(),e.closeDropdown())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.highlightOption("next"))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.handleOnEnterSelectOption(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.onBlur(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.highlightOption("prev"))}]}},[e.filterable?i("div",{staticClass:"select__filter-wrapper"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"filter",staticClass:"select__filter",attrs:{tabindex:"0",type:"text",placeholder:"Search",autocomplete:"off"},domProps:{value:e.query},on:{input:function(t){t.target.composing||(e.query=t.target.value)}}})]):e._e(),e._v(" "),e._l(e.filteredOptions,function(t,n){return i("v-select-option",{key:n,ref:"options",refInFor:!0,attrs:{option:t,multiple:e.multiple,keys:e.keys,disabled:t[e.keys.disabled],selected:e.isOptionSelected(t),highlighted:e.highlightedIndex===n},nativeOn:{click:function(i){return i.stopPropagation(),e.select(t,n)}}},[e._t("option",null,{index:n,option:t})],2)})],2)])},__vue_staticRenderFns__$j=[],__vue_inject_styles__$j=void 0,__vue_scope_id__$j=void 0,__vue_module_identifier__$j=void 0,__vue_is_functional_template__$j=!1,Select=normalizeComponent_1({render:__vue_render__$j,staticRenderFns:__vue_staticRenderFns__$j},__vue_inject_styles__$j,__vue_script__$j,__vue_scope_id__$j,__vue_is_functional_template__$j,__vue_module_identifier__$j,void 0,void 0);Select.install=function(e){e.component("VSelect",Select)};var script$k={name:"VSpinner",props:{appearance:{type:String,default:"default"}},computed:{classes:function(){return["spinner--"+this.appearance]}}},__vue_script__$k=script$k,__vue_render__$k=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"spinner",class:this.classes})},__vue_staticRenderFns__$k=[],__vue_inject_styles__$k=void 0,__vue_scope_id__$k=void 0,__vue_module_identifier__$k=void 0,__vue_is_functional_template__$k=!1,Spinner=normalizeComponent_1({render:__vue_render__$k,staticRenderFns:__vue_staticRenderFns__$k},__vue_inject_styles__$k,__vue_script__$k,__vue_scope_id__$k,__vue_is_functional_template__$k,__vue_module_identifier__$k,void 0,void 0);Spinner.install=function(e){e.component("VSpinner",Spinner)};var script$l={name:"VStep",props:{id:{type:Number,required:!0},title:{type:String,required:!0},hideLabel:{type:Boolean,default:!1}},data:function(){return{}},computed:{isActive:function(){return this.$parent.currentStep===this.id},isPrevious:function(){return this.$parent.currentStep>this.id},isNext:function(){return this.$parent.currentStepe&&!this.disablePrev&&this.onChange(this.currentStep-1)},onChange:function(e){e>8&255]+lut[e>>16&255]+lut[e>>24&255]+"-"+lut[255&t]+lut[t>>8&255]+"-"+lut[t>>16&15|64]+lut[t>>24&255]+"-"+lut[63&i|128]+lut[i>>8&255]+"-"+lut[i>>16&255]+lut[i>>24&255]+lut[255&n]+lut[n>>8&255]+lut[n>>16&255]+lut[n>>24&255]},short=function(e){return(e=e||"")+generate().split("-")[0]},UUID={generate,short},script$n={name:"VTab",props:{id:{type:String,default:function(){return UUID.short("tab-")}},title:String,selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isActive:!1}},created:function(){this.$parent.addTab(this)},beforeDestroy:function(){this.$parent.removeTab(this)},methods:{activate:function(){this.isActive=!0,this.$emit("select",this.id)},deactivate:function(){this.isActive=!1,this.$emit("deselect",this.id)}},watch:{disabled:function(){this.$parent.onTabDisabledChange(this)}}},__vue_script__$n=script$n,__vue_render__$n=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"tab",class:{"tab--active":this.isActive,"tab--disabled":this.disabled},attrs:{role:"tabpanel",id:this.id,"aria-hidden":this.isActive?null:"true",tabindex:this.isActive?"0":null}},[this._t("default")],2)},__vue_staticRenderFns__$n=[],__vue_inject_styles__$n=void 0,__vue_scope_id__$n=void 0,__vue_module_identifier__$n=void 0,__vue_is_functional_template__$n=!1,Tab=normalizeComponent_1({render:__vue_render__$n,staticRenderFns:__vue_staticRenderFns__$n},__vue_inject_styles__$n,__vue_script__$n,__vue_scope_id__$n,__vue_is_functional_template__$n,__vue_module_identifier__$n,void 0,void 0);Tab.install=function(e){e.component("VTab",Tab)};var defaultSortCompare=function(e,t,i){return toString(e[i]).localeCompare(toString(t[i]),void 0,{numeric:!0})},script$o={name:"VTable",props:{ready:{type:Boolean,default:!0},value:{type:Array,default:function(){return[]}},fields:{type:Object,default:function(){}},items:{type:Array,default:function(){return[]}},multiSelect:{type:Boolean,default:!1},perPage:{type:Number,default:10},currentPage:{type:Number,default:1},sortCompare:{type:Function,default:null},emptyText:{type:String,default:"There is no records."},emptyFilteredText:{type:String,default:"There are no records matching your request."}},data:function(){return{query:"",selected:[],sortBy:null,sortDesc:!0}},computed:{mutableItems:function(){var e=this,t=this.items.slice();this.query&&(this.clearSelection(),t=t.filter(function(t){return fuzzysearch(e.query,toString(t))}));var i=this.sortCompare||defaultSortCompare;return this.sortBy&&(t=t.sort(function(t,n){var s=i(t,n,e.sortBy);return e.sortDesc?s:-1*s})),this.perPage&&(t=t.slice((this.currentPage-1)*this.perPage,this.currentPage*this.perPage)),t},mutableSelected:function(){var e=this;return this.mutableItems.map(function(t,i){if(e.selected[i])return t}).filter(function(e){return void 0!==e})}},methods:{onHeadClick:function(e,t){e.sortable?(t===this.sortBy&&(this.sortDesc=!this.sortDesc),this.sortBy=t):this.sortBy=null},handleSelect:function(){this.$emit("input",this.mutableSelected)},handleSelectAll:function(e){e.target.checked?this.selectAll():this.clearSelection(),this.handleSelect()},clearSelection:function(){this.selected=[]},selectAll:function(){this.selected=[].concat(this.mutableItems)}},components:{VSpinner:Spinner}},__vue_script__$o=script$o,__vue_render__$o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"table-responsive"},[e._t("header",null,{items:e.items,selected:e.mutableSelected,handleSearchInput:function(t){return e.query=t},disabledSearch:0===e.items.length}),e._v(" "),e.ready?i("table",{staticClass:"table"},[i("thead",[0===e.items.length||e.items.length>0&&0===e.mutableItems.length?e._e():i("tr",[e.multiSelect?i("th",{staticClass:"table-select-td"},[i("input",{ref:"checkbox",attrs:{type:"checkbox"},domProps:{checked:e.mutableItems.length===e.mutableSelected.length},on:{change:e.handleSelectAll}})]):e._e(),e._v(" "),e._l(e.fields,function(t,n){return i("th",{key:n,class:[t.sortable?"table-sorting":null,e.sortBy===n?"table-sorting--"+(e.sortDesc?"desc":"asc"):"",t.class?t.class:null],on:{click:function(i){return e.onHeadClick(t,n)}}},[t.label?i("span",{staticClass:"table-sorting__label",domProps:{innerHTML:e._s(t.label)}}):e._e()])})],2)]),e._v(" "),i("tbody",[0===e.items.length?i("tr",{attrs:{colspan:Object.keys(e.fields).length}},[e._t("empty",[i("div",{staticClass:"table-empty",domProps:{innerHTML:e._s(e.emptyText)}})])],2):e._e(),e._v(" "),e._l(e.mutableItems,function(t,n){return i("tr",{key:n},[e.multiSelect?i("td",{staticClass:"table-select-td"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.selected[n],expression:"selected[index]"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected[n])?e._i(e.selected[n],null)>-1:e.selected[n]},on:{change:[function(t){var i=e.selected[n],s=t.target,o=!!s.checked;if(Array.isArray(i)){var _=e._i(i,null);s.checked?_<0&&e.$set(e.selected,n,i.concat([null])):_>-1&&e.$set(e.selected,n,i.slice(0,_).concat(i.slice(_+1)))}else e.$set(e.selected,n,o)},e.handleSelect]}})]):e._e(),e._v(" "),e._l(e.fields,function(s,o){return i("td",{key:o,class:"table-"+s.label.toLowerCase()},[e._t(o,[e._v("\n "+e._s(t[o])+"\n ")],{value:t[o],item:t,index:n})],2)})],2)}),e._v(" "),e.items.length>0&&0===e.mutableItems.length?i("tr",{attrs:{colspan:Object.keys(e.fields).length}},[e._t("emptyfiltered",[i("div",{staticClass:"table-empty",domProps:{innerHTML:e._s(e.emptyFilteredText)}})])],2):e._e()],2)]):i("div",{staticClass:"table-spinner"},[i("v-spinner")],1),e._v(" "),e.$scopedSlots.pagination?i("div",{staticClass:"table-pagination"},[e._t("pagination",null,{total:e.items.length,perPage:e.perPage})],2):e._e()],2)},__vue_staticRenderFns__$o=[],__vue_inject_styles__$o=void 0,__vue_scope_id__$o=void 0,__vue_module_identifier__$o=void 0,__vue_is_functional_template__$o=!1,Table=normalizeComponent_1({render:__vue_render__$o,staticRenderFns:__vue_staticRenderFns__$o},__vue_inject_styles__$o,__vue_script__$o,__vue_scope_id__$o,__vue_is_functional_template__$o,__vue_module_identifier__$o,void 0,void 0);Table.install=function(e){e.component("VTable",Table)};var script$p={name:"VTableHeader",props:{title:{type:String,default:"Table title"},searchable:{type:Boolean,default:!0},handleSearchInput:{type:Function,default:function(){}},disabledSearch:{type:Boolean}}},__vue_script__$p=script$p,__vue_render__$p=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"table-header"},[e._t("title",[i("h2",{staticClass:"table-header__title"},[e._v(e._s(e.title))])]),e._v(" "),i("div",{staticClass:"table-header__actions"},[e.searchable?i("div",{staticClass:"table-header__search"},[i("v-textbox",{attrs:{floated:"",label:"Search",type:"text",placeholder:"Search",size:"3",wide:!1,disabled:e.disabledSearch},on:{input:e.handleSearchInput}})],1):e._e(),e._v(" "),e.$scopedSlots.action?i("div",{staticClass:"table-header__action"},[e._t("action")],2):e._e()])],2)},__vue_staticRenderFns__$p=[],__vue_inject_styles__$p=void 0,__vue_scope_id__$p=void 0,__vue_module_identifier__$p=void 0,__vue_is_functional_template__$p=!1,TableHeader=normalizeComponent_1({render:__vue_render__$p,staticRenderFns:__vue_staticRenderFns__$p},__vue_inject_styles__$p,__vue_script__$p,__vue_scope_id__$p,__vue_is_functional_template__$p,__vue_module_identifier__$p,void 0,void 0);TableHeader.install=function(e){e.component("VTableHeader",TableHeader)};var script$q={name:"VTabHeader",props:{id:{type:String,required:!0},title:{type:String,required:!0},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{classes:function(){return[{"tabs__link--active":this.active},{"tabs__link--disabled":this.disabled}]}},methods:{onClick:function(e){e.preventDefault(),this.$emit("click",e)}}},__vue_script__$q=script$q,__vue_render__$q=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("li",{staticClass:"tabs__item",attrs:{role:"tab","aria-controls":e.id,"aria-selected":e.active?"true":null,tabindex:e.active?0:-1}},[i("a",{staticClass:"tabs__link",class:e.classes,attrs:{href:"#"},on:{click:e.onClick}},[i("div",{staticClass:"tabs__link-text"},[e._v(e._s(e.title))])])])},__vue_staticRenderFns__$q=[],__vue_inject_styles__$q=void 0,__vue_scope_id__$q=void 0,__vue_module_identifier__$q=void 0,__vue_is_functional_template__$q=!1,TabHeader=normalizeComponent_1({render:__vue_render__$q,staticRenderFns:__vue_staticRenderFns__$q},__vue_inject_styles__$q,__vue_script__$q,__vue_scope_id__$q,__vue_is_functional_template__$q,__vue_module_identifier__$q,void 0,void 0);TabHeader.install=function(e){e.component("VTabHeader",TabHeader)};var script$r={name:"VTabs",props:{wide:{type:Boolean,default:!1}},data:function(){return{tabs:[],activeTabId:null,activeTabIndex:-1}},computed:{classes:function(){return[{"tabs--wide":this.wide}]}},methods:{addTab:function(e){this.tabs.push(e),(null===this.activeTabId||e.selected)&&(this.activeTabId=e.id)},removeTab:function(e){var t=this.tabs.indexOf(e);t>-1&&(this.tabs.splice(t,1),e.id===this.activeTabId&&this.selectTab(this.findNearestTab()))},onTabDisabledChange:function(e){e.disabled&&this.activeTabId===e.id&&this.selectTab(this.findNearestTab())},selectTab:function(e){null===e||e.disabled||e.id===this.activeTabId||(this.activeTabId=e.id,this.$emit("tab-change",e.id))},selectNextTab:function(){var e=this.findNextTab();e&&(this.selectTab(e),e.$el.focus())},selectPreviousTab:function(){var e=this.findPreviousTab();e&&(this.selectTab(e),e.$el.focus())},findNextTab:function(){for(var e=null,t=this.activeTabIndex+1;t=0;t--)if(this.$refs.tabHeaders[t]&&!this.$refs.tabHeaders[t].disabled){e=this.$refs.tabHeaders[t];break}return e},findNearestTab:function(){return this.findPreviousTab()||this.findNextTab()},findTabById:function(e){for(var t=0;t-1}},tabindex:[String,Number],multiline:{type:Boolean,default:!1},rows:{type:Number,default:2},min:Number,max:Number,step:{type:String,default:"any"},maxlength:Number,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},floated:{type:Boolean,default:!1},wide:{type:Boolean,default:!0},error:{type:Boolean,default:!1},errorText:{type:String},autocomplete:String,autofocus:{type:Boolean,default:!1}},computed:{minValue:function(){return"number"===this.type&&void 0!==this.min?this.min:null},maxValue:function(){return"number"===this.type&&void 0!==this.max?this.max:null},stepValue:function(){return"number"===this.type?this.step:null},classes:function(){return["textbox--size-"+this.size,{"textbox--floated":this.floated},{"textbox--floated-active":this.floated&&""!==this.value},{"textbox--wide":this.wide},{"textbox--error":this.error}]}},data:function(){return{isTouched:!1,initialValue:this.value}},created:function(){null===this.value&&(this.initialValue="",this.updateValue(""))},methods:{updateValue:function(e){this.$emit("input",e)},onChange:function(e){this.$emit("change",this.value,e)},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e),this.isTouched||(this.isTouched=!0,this.$emit("touch"))},onKeydown:function(e){this.$emit("keydown",e)},onKeydownEnter:function(e){this.$emit("keydown-enter",e)},reset:function(){document.activeElement!==this.$refs.input&&document.activeElement!==this.$refs.textarea||document.activeElement.blur(),this.updateValue(this.initialValue),this.resetTouched()},resetTouched:function(e){void 0===e&&(e={touched:!1}),this.isTouched=e.touched},focus:function(){(this.$refs.input||this.$refs.textarea).focus()}}},__vue_script__$s=script$s,__vue_render__$s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"textbox",class:e.classes},[i("span",{staticClass:"textbox__label"},[e._v(e._s(e.label))]),e._v(" "),e.multiline?i("textarea",{directives:[{name:"autofocus",rawName:"v-autofocus",value:e.autofocus,expression:"autofocus"}],ref:"textarea",staticClass:"textbox__textarea",attrs:{autocomplete:e.autocomplete?e.autocomplete:null,maxlength:e.maxlength?e.maxlength:null,disabled:e.disabled,readonly:e.readonly,placeholder:e.placeholder,name:e.name,id:e.id,rows:e.rows,tabindex:e.tabindex},domProps:{value:e.value},on:{blur:e.onBlur,change:e.onChange,focus:e.onFocus,input:function(t){return e.updateValue(t.target.value)},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onKeydownEnter(t)},e.onKeydown]}}):i("input",{directives:[{name:"autofocus",rawName:"v-autofocus",value:e.autofocus,expression:"autofocus"}],ref:"input",staticClass:"textbox__input",attrs:{autocomplete:e.autocomplete?e.autocomplete:null,disabled:e.disabled,readonly:e.readonly,placeholder:e.placeholder,name:e.name,id:e.id,tabindex:e.tabindex,max:e.maxValue,maxlength:e.maxlength?e.maxlength:null,min:e.minValue,number:"number"===e.type||null,step:e.stepValue,type:e.type},domProps:{value:e.value},on:{blur:e.onBlur,change:e.onChange,focus:e.onFocus,input:function(t){return e.updateValue(t.target.value)},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onKeydownEnter(t)},e.onKeydown]}}),e._v(" "),e.error&&e.errorText?i("span",{staticClass:"textbox__error"},[e._v(e._s(e.errorText))]):e._e()])},__vue_staticRenderFns__$s=[],__vue_inject_styles__$s=void 0,__vue_scope_id__$s=void 0,__vue_module_identifier__$s=void 0,__vue_is_functional_template__$s=!1,Textbox=normalizeComponent_1({render:__vue_render__$s,staticRenderFns:__vue_staticRenderFns__$s},__vue_inject_styles__$s,__vue_script__$s,__vue_scope_id__$s,__vue_is_functional_template__$s,__vue_module_identifier__$s,void 0,void 0);Textbox.install=function(e){e.component("VTextbox",Textbox)};var script$t={name:"VToggle",props:{id:{type:[String,Number]},name:{type:String},label:{type:[String,Number]},value:{required:!0},submittedValue:{type:String,default:"on"},checked:{type:Boolean,default:!1},trueValue:{default:!0},falseValue:{default:!1},indeterminate:{type:Boolean,default:!1},tabindex:[String,Number],vertical:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isChecked:looseEqual(this.value,this.trueValue)||this.checked}},created:function(){this.$emit("input",this.isChecked?this.trueValue:this.falseValue)},computed:{classes:function(){return[{"toggle--vertical":this.vertical}]}},methods:{focus:function(){this.$refs.input.focus()},onChange:function(e){var t=this.isChecked,i=e.target.checked;this.$emit("input",i?this.trueValue:this.falseValue,e),t!==i&&this.$emit("change",i?this.trueValue:this.falseValue,e)},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},watch:{value:function(){this.isChecked=looseEqual(this.value,this.trueValue)}}},__vue_script__$t=script$t,__vue_render__$t=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"toggle",class:e.classes,attrs:{for:e.id}},[i("input",{ref:"input",staticClass:"toggle__input",attrs:{id:e.id,name:e.name,disabled:e.disabled,tabindex:e.tabindex,type:"checkbox"},domProps:{checked:e.isChecked,value:e.submittedValue},on:{blur:e.onBlur,focus:e.onFocus,change:e.onChange}}),e._v(" "),i("span",{staticClass:"toggle__container"}),e._v(" "),i("span",{staticClass:"toggle__text"},[e._v(e._s(e.label))])])},__vue_staticRenderFns__$t=[],__vue_inject_styles__$t=void 0,__vue_scope_id__$t=void 0,__vue_module_identifier__$t=void 0,__vue_is_functional_template__$t=!1,Toggle=normalizeComponent_1({render:__vue_render__$t,staticRenderFns:__vue_staticRenderFns__$t},__vue_inject_styles__$t,__vue_script__$t,__vue_scope_id__$t,__vue_is_functional_template__$t,__vue_module_identifier__$t,void 0,void 0);Toggle.install=function(e){e.component("VToggle",Toggle)};var components=Object.freeze({VAlert:Alert,VAvatar:Avatar,VBadge:Badge,VButton:Button,VCheckbox:Checkbox,VCheckboxGroup:CheckboxGroup,VChip:Chip,VDropdown:Dropdown,VMenu:Menu,VMenuOption:MenuOption,VModal:Modal,VNotification:Notification,VNotificationContainer:NotificationContainer,VPagination:Pagination,VPopover:Popover,VProgress:Progress,VRadio:Radio,VRadioGroup:RadioGroup,VSelect:Select,VSelectOption:SelectOption,VSpinner:Spinner,VStepper:Stepper,VTab:Tab,VTable:Table,VTableHeader:TableHeader,VTabs:Tabs,VTextbox:Textbox,VToggle:Toggle}),directives=Object.freeze({Autofocus,Clickoutside});function install(e){install.installed||(install.installed=!0,Object.keys(components).forEach(function(t){e.component(t,components[t])}),Object.keys(directives).forEach(function(t){e.directive(t,directives[t])}))}var plugin={install},GlobalVue=null;"undefined"!=typeof window?GlobalVue=window.Vue:"undefined"!=typeof global&&(GlobalVue=global.Vue),GlobalVue&&GlobalVue.use(plugin),exports.Autofocus=Autofocus,exports.Clickoutside=Clickoutside,exports.VAlert=Alert,exports.VAvatar=Avatar,exports.VBadge=Badge,exports.VButton=Button,exports.VCheckbox=Checkbox,exports.VCheckboxGroup=CheckboxGroup,exports.VChip=Chip,exports.VDropdown=Dropdown,exports.VMenu=Menu,exports.VMenuOption=MenuOption,exports.VModal=Modal,exports.VNotification=Notification,exports.VNotificationContainer=NotificationContainer,exports.VPagination=Pagination,exports.VPopover=Popover,exports.VProgress=Progress,exports.VRadio=Radio,exports.VRadioGroup=RadioGroup,exports.VSelect=Select,exports.VSelectOption=SelectOption,exports.VSpinner=Spinner,exports.VStepper=Stepper,exports.VTab=Tab,exports.VTable=Table,exports.VTableHeader=TableHeader,exports.VTabs=Tabs,exports.VTextbox=Textbox,exports.VToggle=Toggle,exports.default=plugin; \ No newline at end of file +"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var Popper=_interopDefault(require("popper.js")),fuzzysearch=_interopDefault(require("fuzzysearch")),Vue=_interopDefault(require("vue")),script={name:"VAlert",props:{title:{type:String,default:"Default title"},type:{type:String,default:"info",validator:function(e){return["info","success","warn","error"].indexOf(e)>-1}},wide:{type:Boolean,default:!1}},computed:{classes:function(){return["alert--"+this.type,{"alert--wide":this.wide}]}}};function normalizeComponent(e,t,i,n,s,o,_,a,r,l){"boolean"!=typeof _&&(r=a,a=_,_=!1);var u,c="function"==typeof i?i.options:i;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,s&&(c.functional=!0)),n&&(c._scopeId=n),o?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,r(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=u):t&&(u=_?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),u)if(c.functional){var d=c.render;c.render=function(e,t){return u.call(t),d(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,u):[u]}return i}var normalizeComponent_1=normalizeComponent,__vue_script__=script,__vue_render__=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"alert",class:this.classes},[t("div",{staticClass:"alert__body"},[t("div",{staticClass:"alert__title"},[this._v(this._s(this.title))]),this._v(" "),t("div",{staticClass:"alert__text"},[this._t("default")],2)])])},__vue_staticRenderFns__=[],__vue_inject_styles__=void 0,__vue_scope_id__=void 0,__vue_module_identifier__=void 0,__vue_is_functional_template__=!1,Alert=normalizeComponent_1({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__,__vue_scope_id__,__vue_is_functional_template__,__vue_module_identifier__,void 0,void 0);Alert.install=function(e){e.component("VAlert",Alert)};var script$1={name:"VAvatar",props:{src:{type:String,required:!0},size:{type:[String,Number],default:32},alt:{type:String,default:"Avatar"}}},__vue_script__$1=script$1,__vue_render__$1=function(){var e=this.$createElement;return(this._self._c||e)("img",{staticClass:"avatar",attrs:{src:this.src,alt:this.alt,width:this.size,height:this.size}})},__vue_staticRenderFns__$1=[],__vue_inject_styles__$1=void 0,__vue_scope_id__$1=void 0,__vue_module_identifier__$1=void 0,__vue_is_functional_template__$1=!1,Avatar=normalizeComponent_1({render:__vue_render__$1,staticRenderFns:__vue_staticRenderFns__$1},__vue_inject_styles__$1,__vue_script__$1,__vue_scope_id__$1,__vue_is_functional_template__$1,__vue_module_identifier__$1,void 0,void 0);Avatar.install=function(e){e.component("VAvatar",Avatar)};var script$2={name:"VBadge",props:{type:{type:String,default:"default",validator:function(e){return["default","primary","alternative","warning","success","danger"].indexOf(e)>-1}},align:{type:String,default:"middle",validator:function(e){return["top","middle","bottom"].indexOf(e)>-1}},text:{type:[String,Number],required:!0}},computed:{classes:function(){return["badge--"+this.type,"badge--align-"+this.align]}}},__vue_script__$2=script$2,__vue_render__$2=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"badge",class:this.classes,domProps:{textContent:this._s(this.text)}})},__vue_staticRenderFns__$2=[],__vue_inject_styles__$2=void 0,__vue_scope_id__$2=void 0,__vue_module_identifier__$2=void 0,__vue_is_functional_template__$2=!1,Badge=normalizeComponent_1({render:__vue_render__$2,staticRenderFns:__vue_staticRenderFns__$2},__vue_inject_styles__$2,__vue_script__$2,__vue_scope_id__$2,__vue_is_functional_template__$2,__vue_module_identifier__$2,void 0,void 0);Badge.install=function(e){e.component("VBadge",Badge)};var script$3={name:"VButton",props:{type:{type:String,default:"button"},appearance:{type:String,default:"default",validator:function(e){return["default","primary","alternative","subtle","success","danger"].indexOf(e)>-1}},size:{type:String,default:"4",validator:function(e){return["0","1","2","3","4"].indexOf(e)>-1}},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},iconFirst:{type:Boolean,default:!1},wide:{type:Boolean,default:!1},inverted:{type:Boolean,default:!1}},computed:{classes:function(){return["button--"+this.appearance,"button--size-"+this.size,{"button--loading":this.loading},{"button--icon-only":!this.$slots.default},{"button--icon-first":this.iconFirst},{"button--wide":this.wide},{"button--inverted":this.inverted}]}}},__vue_script__$3=script$3,__vue_render__$3=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("button",e._g({staticClass:"button",class:e.classes,attrs:{disabled:e.disabled,type:e.type}},e.$listeners),[e._t("default"),e._v(" "),e.$slots.icon?i("div",{staticClass:"button__icon"},[e._t("icon")],2):e._e()],2)},__vue_staticRenderFns__$3=[],__vue_inject_styles__$3=void 0,__vue_scope_id__$3=void 0,__vue_module_identifier__$3=void 0,__vue_is_functional_template__$3=!1,Button=normalizeComponent_1({render:__vue_render__$3,staticRenderFns:__vue_staticRenderFns__$3},__vue_inject_styles__$3,__vue_script__$3,__vue_scope_id__$3,__vue_is_functional_template__$3,__vue_module_identifier__$3,void 0,void 0);function isObject(e){return null!==e&&"object"==typeof e}function looseEqual(e,t){return e==t||!(!isObject(e)||!isObject(t))&&JSON.stringify(e)===JSON.stringify(t)}function looseIndexOf(e,t){for(var i=0;i0?[].concat(this.initialValue):[])},isOptionCheckedByDefault:function(e){return looseIndexOf(this.initialValue,e[this.keys.value]||e)>-1},onFocus:function(e){this.isActive=!0,this.$emit("focus",e)},onBlur:function(e){this.isActive=!1,this.$emit("blur",e)},onChange:function(e,t){if(!this.ignoreChange){var i=e[0],n=e[1],s=[],o=t[this.keys.value]||t,_=looseIndexOf(this.value,o);i&&_<0&&(s=this.value.concat(o)),!i&&_>-1&&(s=this.value.slice(0,_).concat(this.value.slice(_+1))),this.$emit("input",s),this.$emit("change",s,n)}}},components:{VCheckbox:Checkbox}},__vue_script__$5=script$5,__vue_render__$5=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"checkbox-group"},[i("div",{staticClass:"checkbox-group__label"},[e._v(e._s(e.label))]),e._v(" "),i("div",{staticClass:"checkbox-group__list"},e._l(e.options,function(t,n){return i("div",{key:t[e.keys.id]||e.name+"-"+n,staticClass:"checkbox-group__item"},[i("v-checkbox",{key:t[e.keys.id],attrs:{id:t[e.keys.id]||(e.name||t[e.keys.name])+"-"+n,checked:e.isOptionCheckedByDefault(t),disabled:e.disabled||t[e.keys.disabled],name:e.name||t[e.keys.name],label:t[e.keys.label]||t},on:{blur:e.onBlur,change:function(i){return e.onChange(arguments,t)},focus:e.onFocus},model:{value:e.checkboxValues[n],callback:function(t){e.$set(e.checkboxValues,n,t)},expression:"checkboxValues[i]"}})],1)}),0)])},__vue_staticRenderFns__$5=[],__vue_inject_styles__$5=void 0,__vue_scope_id__$5=void 0,__vue_module_identifier__$5=void 0,__vue_is_functional_template__$5=!1,CheckboxGroup=normalizeComponent_1({render:__vue_render__$5,staticRenderFns:__vue_staticRenderFns__$5},__vue_inject_styles__$5,__vue_script__$5,__vue_scope_id__$5,__vue_is_functional_template__$5,__vue_module_identifier__$5,void 0,void 0);CheckboxGroup.install=function(e){e.component("VCheckboxGroup",CheckboxGroup)};var script$6={name:"VChip",props:{title:String,appearance:{type:String},closable:Boolean},computed:{classes:function(){return["chip--"+this.appearance]}},methods:{onDelete:function(e){this.$emit("delete",e)}}},__vue_script__$6=script$6,__vue_render__$6=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",e._g({ref:"chip",staticClass:"chip",class:e.classes,attrs:{tabindex:"0"}},e.$listeners),[i("div",{staticClass:"chip__text"},[e._v(e._s(e.title))]),e._v(" "),e.closable?i("div",{staticClass:"chip__close"},[i("button",{staticClass:"chip__delete",on:{click:function(t){return t.stopPropagation(),e.onDelete(t)}}},[i("svg",{attrs:{slot:"icon",height:"12",width:"12"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])]):e._e()])},__vue_staticRenderFns__$6=[],__vue_inject_styles__$6=void 0,__vue_scope_id__$6=void 0,__vue_module_identifier__$6=void 0,__vue_is_functional_template__$6=!1,Chip=normalizeComponent_1({render:__vue_render__$6,staticRenderFns:__vue_staticRenderFns__$6},__vue_inject_styles__$6,__vue_script__$6,__vue_scope_id__$6,__vue_is_functional_template__$6,__vue_module_identifier__$6,void 0,void 0);Chip.install=function(e){e.component("VChip",Chip)};var script$7={name:"VPopover",props:{trigger:{type:String,default:"click"},containFocus:{type:Boolean,default:!1},hasMaxHeight:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},offset:{type:[String,Number],default:"0"},manualOpen:{type:Boolean,default:!1},manualClose:{type:Boolean,default:!1},returnFocusOnClose:{type:Boolean,default:!0},focusRedirector:Function},data:function(){return{isActive:!1,popperInstance:null,focusedElBeforeOpen:null}},mounted:function(){this.addEventsListeners()},computed:{triggerEl:function(){return this.$refs.trigger},popperOptions:function(){return{placement:this.placement,modifiers:{offset:{offset:this.offset}}}}},methods:{addEventsListeners:function(){switch(this.trigger){case"click":this.manualClose||document.addEventListener("click",this.handleClickOutside,!0),this.manualOpen||this.triggerEl.addEventListener("click",this.toggle);break;case"hover":this.manualOpen||this.triggerEl.addEventListener("mouseenter",this.show),this.manualClose||document.addEventListener("mousemove",this.handleClickOutside,!0);break;default:throw new Error("[popover] "+this.trigger+" is not defined")}},removeEventsListeners:function(){switch(this.trigger){case"click":this.manualClose||document.removeEventListener("click",this.handleClickOutside,!0),this.triggerEl.removeEventListener("click",this.toggle);break;case"hover":this.manualOpen||this.triggerEl.removeEventListener("mouseenter",this.show),this.manualClose||document.removeEventListener("mousemove",this.handleClickOutside,!0);break;default:throw new Error("[popover] "+this.trigger+" is not defined")}},toggle:function(){this.isActive?this.close():this.show()},show:function(){var e=this;this.disabled||this.isActive||(this.focusedElBeforeOpen=document.activeElement,this.isActive=!0,this.initializePopper(),this.$nextTick(function(){e.$el.focus()}),this.$emit("open"))},close:function(){var e=this;this.isActive=!1,this.$nextTick(function(){e.destroyPopper()}),this.$emit("close"),this.returnFocusOnClose&&this.triggerEl.focus()},restrictFocus:function(e){this.containFocus?(e.stopPropagation(),this.focusRedirector?this.focusRedirector(e):this.$el.focus()):this.close()},initializePopper:function(){var e=this;this.$nextTick(function(){e.popperInstance=new Popper(e.triggerEl,e.$refs.content,e.popperOptions)})},destroyPopper:function(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)},handleClickOutside:function(e){this.$el.contains(e.target)||this.triggerEl.contains(e.target)||!this.isActive||this.close()}},beforeDestroy:function(){this.removeEventsListeners()}},__vue_script__$7=script$7,__vue_render__$7=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"popover",class:{"popover--has-max-height":e.hasMaxHeight},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.close(t)}}},[i("div",{ref:"trigger",staticClass:"popover__trigger"},[e._t("toggle")],2),e._v(" "),e.isActive?i("div",{ref:"content",staticClass:"popover__content",attrs:{role:"dialog","aria-haspopup":"true","aria-expanded":e.isActive?"true":"false",tabindex:"-1"}},[e._t("default"),e._v(" "),i("div",{staticClass:"popover__focus-redirector",attrs:{tabindex:"0"},on:{focus:e.restrictFocus}})],2):e._e()])},__vue_staticRenderFns__$7=[],__vue_inject_styles__$7=void 0,__vue_scope_id__$7=void 0,__vue_module_identifier__$7=void 0,__vue_is_functional_template__$7=!1,Popover=normalizeComponent_1({render:__vue_render__$7,staticRenderFns:__vue_staticRenderFns__$7},__vue_inject_styles__$7,__vue_script__$7,__vue_scope_id__$7,__vue_is_functional_template__$7,__vue_module_identifier__$7,void 0,void 0);Popover.install=function(e){e.component("VPopover",Popover)};var script$8={name:"VMenuOption",props:{type:String,label:String,disabled:{type:Boolean,default:!1}},computed:{classes:function(){return{"menu-option--divider":this.isDivider,"menu-option--disabled":this.disabled}},isDivider:function(){return"divider"===this.type}}},__vue_script__$8=script$8,__vue_render__$8=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("li",e._g({ref:"menuOption",staticClass:"menu-option",class:e.classes,attrs:{role:"menu-item",tabindex:e.isDivider||e.disabled?null:"0"}},e.$listeners),[e.isDivider?e._e():e._t("default",[i("div",{staticClass:"menu-option__content"},[i("div",{staticClass:"menu-option__text"},[e._v(e._s(e.label))])])])],2)},__vue_staticRenderFns__$8=[],__vue_inject_styles__$8=void 0,__vue_scope_id__$8=void 0,__vue_module_identifier__$8=void 0,__vue_is_functional_template__$8=!1,MenuOption=normalizeComponent_1({render:__vue_render__$8,staticRenderFns:__vue_staticRenderFns__$8},__vue_inject_styles__$8,__vue_script__$8,__vue_scope_id__$8,__vue_is_functional_template__$8,__vue_module_identifier__$8,void 0,void 0);MenuOption.install=function(e){e.component("VMenuOption",MenuOption)};var script$9={name:"VMenu",props:{options:{type:Array,default:function(){return[]}},containFocus:{type:Boolean,default:!1},keys:{type:Object,default:function(){return{type:"type",label:"label",disabled:"disabled"}}}},methods:{selectOption:function(e){e.disabled||"divider"===e.type||(this.$emit("select",e),this.closeMenu())},closeMenu:function(){this.$emit("close")},redirectFocus:function(e){e.stopPropagation(),this.$el.querySelector(".menu-option").focus()}},components:{VMenuOption:MenuOption}},__vue_script__$9=script$9,__vue_render__$9=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ul",{staticClass:"menu",attrs:{role:"menu"}},[e._l(e.options,function(t){return i("v-menu-option",{key:t.id,attrs:{disabled:t[e.keys.disabled],label:"divider"===t[e.keys.type]?null:t[e.keys.label]||t,type:t[e.keys.type]},on:{click:function(i){return e.selectOption(t)},keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),e.selectOption(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:(t.stopPropagation(),e.closeMenu(t))}]}},[e._t("option",null,{option:t})],2)}),e._v(" "),e.containFocus?i("div",{staticClass:"menu__focus-redirector",attrs:{tabindex:"0"},on:{focus:e.redirectFocus}}):e._e()],2)},__vue_staticRenderFns__$9=[],__vue_inject_styles__$9=void 0,__vue_scope_id__$9=void 0,__vue_module_identifier__$9=void 0,__vue_is_functional_template__$9=!1,Menu=normalizeComponent_1({render:__vue_render__$9,staticRenderFns:__vue_staticRenderFns__$9},__vue_inject_styles__$9,__vue_script__$9,__vue_scope_id__$9,__vue_is_functional_template__$9,__vue_module_identifier__$9,void 0,void 0);Menu.install=function(e){e.component("VMenu",Menu)};var script$a={name:"VDropdown",props:{placement:{type:String,default:"bottom"},options:{type:Array,default:function(){return[]}},containFocus:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},methods:{onSelect:function(e){this.$emit("select",e)},onOpen:function(){this.$emit("open")},onClose:function(){this.$emit("close")}},components:{Popover,Menu}},__vue_script__$a=script$a,__vue_render__$a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dropdown"},[i("Popover",{ref:"popover",attrs:{"contain-focus":"",disabled:e.disabled,placement:e.placement},on:{open:e.onOpen,close:e.onClose}},[i("div",{staticClass:"dropdown__toggle",attrs:{slot:"toggle"},slot:"toggle"},[e._t("toggle")],2),e._v(" "),i("Menu",{attrs:{options:e.options,"contain-focus":e.containFocus},on:{select:e.onSelect,close:function(t){return e.$refs.popover.close()}}})],1)],1)},__vue_staticRenderFns__$a=[],__vue_inject_styles__$a=void 0,__vue_scope_id__$a=void 0,__vue_module_identifier__$a=void 0,__vue_is_functional_template__$a=!1,Dropdown=normalizeComponent_1({render:__vue_render__$a,staticRenderFns:__vue_staticRenderFns__$a},__vue_inject_styles__$a,__vue_script__$a,__vue_scope_id__$a,__vue_is_functional_template__$a,__vue_module_identifier__$a,void 0,void 0);Dropdown.install=function(e){e.component("VDropdown",Dropdown)};var modalOpenClass="modal--open",script$b={name:"VModal",props:{open:{type:Boolean,default:!1},role:{type:String,default:"dialog",validator:function(e){return["dialog","alertdialog"].indexOf(e)>-1}},title:{type:String,default:"Modal title"},size:{type:String,default:"2",validator:function(e){return["1","2","3"].indexOf(e)>-1}},dismissible:{type:Boolean,default:!0},dismissOn:{type:String,default:"backdrop esc close-button"}},computed:{dismissOnBackdrop:function(){return this.dismissOn.indexOf("backdrop")>-1},dismissOnCloseButton:function(){return this.dismissOn.indexOf("close-button")>-1},dismissOnEsc:function(){return this.dismissOn.indexOf("esc")>-1},classes:function(){return["modal--size-"+this.size]}},methods:{close:function(e){this.dismissible&&(e.currentTarget===this.$refs.backdrop&&e.target!==e.currentTarget||this.$emit("close"))},onOpen:function(){this.lastfocusedElement=document.activeElement,this.$refs.container.focus(),document.body.classList.add(modalOpenClass),document.addEventListener("focus",this.restrictFocus,!0),this.$emit("open")},onClose:function(){this.teardownModal(),this.$emit("close")},redirectFocus:function(){this.$refs.container.focus()},restrictFocus:function(e){this.$refs.container.contains(e.target)||(e.stopPropagation(),this.$refs.container.focus())},teardownModal:function(){document.body.classList.remove(modalOpenClass),document.removeEventListener("focus",this.restrictFocus,!0),this.lastfocusedElement&&this.lastfocusedElement.focus()},onEnter:function(){this.$emit("reveal")},onLeave:function(){this.$emit("hide"),document.body.classList.remove(modalOpenClass)}},components:{VButton:Button},watch:{open:function(){var e=this;this.$nextTick(function(){e[e.open?"onOpen":"onClose"]()})}},beforeDestroy:function(){this.open&&this.teardownModal()}},isOldIE="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function createInjector(e){return function(e,t){return addStyle(e,t)}}var HEAD=document.head||document.getElementsByTagName("head")[0],styles={};function addStyle(e,t){var i=isOldIE?t.media||"default":e,n=styles[i]||(styles[i]={ids:new Set,styles:[]});if(!n.ids.has(e)){n.ids.add(e);var s=t.source;if(t.map&&(s+="\n/*# sourceURL="+t.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",t.media&&n.element.setAttribute("media",t.media),HEAD.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(s),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{var o=n.ids.size-1,_=document.createTextNode(s),a=n.element.childNodes;a[o]&&n.element.removeChild(a[o]),a.length?n.element.insertBefore(_,a[o]):n.element.appendChild(_)}}}var browser=createInjector,__vue_script__$b=script$b,__vue_render__$b=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("transition",{attrs:{name:"modal"},on:{"after-enter":e.onEnter,"after-leave":e.onLeave}},[e.open?i("div",{staticClass:"modal modal__mask",class:e.classes,attrs:{role:e.role}},[i("div",{ref:"backdrop",staticClass:"modal__wrapper",on:{click:function(t){e.dismissOnBackdrop&&e.close(t)}}},[i("div",{ref:"container",staticClass:"modal__container",attrs:{tabindex:"-1"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.dismissOnEsc&&e.close(t)}}},[i("div",{staticClass:"modal__header"},[i("h3",{staticClass:"modal__title"},[e._v(e._s(e.title))]),e._v(" "),i("v-button",{attrs:{appearance:"subtle",size:"1"},on:{click:e.close}},[i("svg",{attrs:{slot:"icon",width:"16",height:"16"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])],1),e._v(" "),i("div",{staticClass:"modal__body"},[e._t("default")],2),e._v(" "),i("div",{staticClass:"modal__footer"},[e._t("footer")],2),e._v(" "),i("div",{attrs:{tabindex:"0"},on:{focus:function(t){return t.stopPropagation(),e.redirectFocus(t)}}})])])]):e._e()])},__vue_staticRenderFns__$b=[],__vue_inject_styles__$b=function(e){e&&e("data-v-5d25e129_0",{source:".modal-enter{opacity:0}.modal-leave-active{opacity:0}.modal-enter .modal__container,.modal-leave-active .modal__container{transform:scale(1.1)}",map:void 0,media:void 0})},__vue_scope_id__$b=void 0,__vue_module_identifier__$b=void 0,__vue_is_functional_template__$b=!1,Modal=normalizeComponent_1({render:__vue_render__$b,staticRenderFns:__vue_staticRenderFns__$b},__vue_inject_styles__$b,__vue_script__$b,__vue_scope_id__$b,__vue_is_functional_template__$b,__vue_module_identifier__$b,browser,void 0);Modal.install=function(e){e.component("VModal",Modal)};var script$c={name:"VNotification",props:{id:{type:[Number,String],default:1},type:{type:String,default:"info"},title:{type:String},message:String,dismissible:{type:Boolean,default:!0},timeout:{type:Number,default:5e3,validator:function(e){return e>0}},actions:{type:Array,default:function(){return[]}}},computed:{computedTitle:function(){return this.title?this.title:capitalize(this.type)},classes:function(){return["notification--"+this.type]}},mounted:function(){this.timeout&&this.dismissible&&setTimeout(this.onClose,this.timeout)},methods:{onClose:function(e){this.$emit("close",e)},actionClickHandler:function(e){e?(e(),this.onClose()):this.onClose()}},components:{VButton:Button}},__vue_script__$c=script$c,__vue_render__$c=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"notification",class:e.classes},[i("div",{staticClass:"notification__icon"},["info"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"info-icon"}})]):e._e(),e._v(" "),"success"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"success-icon"}})]):e._e(),e._v(" "),"warning"===e.type?i("svg",{attrs:{width:"20",height:"16"}},[i("use",{attrs:{"xlink:href":"warning-icon"}})]):e._e(),e._v(" "),"error"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"error-icon"}})]):e._e()]),e._v(" "),i("div",{staticClass:"notification__content"},[i("div",{staticClass:"notification__title"},[e._v(e._s(e.computedTitle))]),e._v(" "),i("div",{staticClass:"notification__message"},[e._v(e._s(e.message))]),e._v(" "),e.actions.length>0?i("div",{staticClass:"notification__actions"},e._l(e.actions,function(t,n){return i("div",{key:n,staticClass:"notification__action"},[i("v-button",{attrs:{appearance:t.appearance,size:"2"},on:{click:function(i){return e.actionClickHandler(t.onClick)}}},[e._v("\n "+e._s(t.text)+"\n ")])],1)}),0):e._e()]),e._v(" "),e.dismissible?i("div",{staticClass:"notification__close"},[i("v-button",{attrs:{appearance:"subtle",size:"1"},on:{click:function(t){return t.stopPropagation(),e.onClose(t)}}},[i("svg",{attrs:{slot:"icon",width:"14",height:"14"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])],1):e._e()])},__vue_staticRenderFns__$c=[],__vue_inject_styles__$c=void 0,__vue_scope_id__$c=void 0,__vue_module_identifier__$c=void 0,__vue_is_functional_template__$c=!1,Notification=normalizeComponent_1({render:__vue_render__$c,staticRenderFns:__vue_staticRenderFns__$c},__vue_inject_styles__$c,__vue_script__$c,__vue_scope_id__$c,__vue_is_functional_template__$c,__vue_module_identifier__$c,void 0,void 0);Notification.install=function(e){e.component("VNotification",Notification)};var script$d={name:"VNotificationContainer",props:{queue:{type:Array,default:function(){return[]}},position:{type:String,default:"top-right",validator:function(e){return["top-left","top-right","bottom-right","bottom-left"].indexOf(e)>-1}}},computed:{classes:function(){return["notification-container--"+this.position]}},methods:{create:function(e){var t=e;t.timestamp=new Date,t.timestamp.setMilliseconds(t.timestamp.getMilliseconds()+this.queue.length),this.queue.push(t)},remove:function(e){var t=this.queue.findIndex(function(t){return t.timestamp===e});-1!==t&&this.queue.splice(t,1)}},components:{VNotification:Notification}},__vue_script__$d=script$d,__vue_render__$d=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"notification-container",class:e.classes},[i("transition-group",{attrs:{name:"list"}},e._l(e.queue,function(t,n){return i("v-notification",{key:t.timestamp.getTime(),attrs:{id:"notification-"+n,type:t.type,title:t.title,message:t.message,actions:t.actions,timestamp:t.timestamp},on:{close:function(i){return e.remove(t.timestamp)}}})}),1)],1)},__vue_staticRenderFns__$d=[],__vue_inject_styles__$d=function(e){e&&e("data-v-8fb8f2f0_0",{source:".list-enter-active,.list-leave-active{transition:all .3s}.list-enter,.list-leave-to{opacity:0;transform:translateX(30px)}",map:void 0,media:void 0})},__vue_scope_id__$d=void 0,__vue_module_identifier__$d=void 0,__vue_is_functional_template__$d=!1,NotificationContainer=normalizeComponent_1({render:__vue_render__$d,staticRenderFns:__vue_staticRenderFns__$d},__vue_inject_styles__$d,__vue_script__$d,__vue_scope_id__$d,__vue_is_functional_template__$d,__vue_module_identifier__$d,browser,void 0);NotificationContainer.install=function(e){e.component("VNotificationContainer",NotificationContainer)};var script$e={name:"VPagination",props:{value:{type:Number,default:1},maxVisibleButtons:{type:Number,default:3},total:{type:Number,required:!0},perPage:{type:Number,default:10},size:{type:String,default:"4"}},data:function(){return{currentPage:this.value}},computed:{startPage:function(){return 1===this.currentPage?1:this.currentPage===this.totalPages?this.totalPages-this.maxVisibleButtons+1:this.currentPage-1},endPage:function(){return Math.min(this.startPage+this.maxVisibleButtons-1,this.totalPages)},pages:function(){for(var e=[],t=this.startPage;t<=this.endPage;t+=1)e.push({name:t,isDisabled:t===this.currentPage});return e},isInFirstPage:function(){return 1===this.currentPage},isInLastPage:function(){return this.currentPage===this.totalPages},totalPages:function(){return Math.ceil(this.total/this.perPage)}},methods:{onClickFirstPage:function(){this.$emit("input",1)},onClickPreviousPage:function(){this.$emit("input",this.currentPage-1)},onClickPage:function(e){this.$emit("input",e)},onClickNextPage:function(){this.$emit("input",this.currentPage+1)},onClickLastPage:function(){this.$emit("input",this.totalPages)},isPageActive:function(e){return this.currentPage===e}},components:{VButton:Button},watch:{value:function(e){this.currentPage=e}}},__vue_script__$e=script$e,__vue_render__$e=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ul",{staticClass:"pagination"},[i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,"aria-label":"Go to first page",disabled:e.isInFirstPage},on:{click:e.onClickFirstPage}},[e._v("\n First\n ")])],1),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,"aria-label":"Go to previous page",disabled:e.isInFirstPage},on:{click:function(t){return t.preventDefault(),e.onClickPreviousPage(t)}}},[e._v("\n Previous\n ")])],1),e._v(" "),e._l(e.pages,function(t,n){return i("li",{key:n,staticClass:"pagination__item"},[i("v-button",{class:{active:e.isPageActive(t.name)},attrs:{size:e.size,appearance:e.isPageActive(t.name)?"primary":"default","aria-label":"Go to page number "+t.name},on:{click:function(i){return i.preventDefault(),e.onClickPage(t.name)}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,disabled:e.isInLastPage,"aria-label":"Go to next page"},on:{click:e.onClickNextPage}},[e._v("\n Next\n ")])],1),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,disabled:e.isInLastPage,"aria-label":"Go to last page"},on:{click:e.onClickLastPage}},[e._v("\n Last\n ")])],1)],2)},__vue_staticRenderFns__$e=[],__vue_inject_styles__$e=void 0,__vue_scope_id__$e=void 0,__vue_module_identifier__$e=void 0,__vue_is_functional_template__$e=!1,Pagination=normalizeComponent_1({render:__vue_render__$e,staticRenderFns:__vue_staticRenderFns__$e},__vue_inject_styles__$e,__vue_script__$e,__vue_scope_id__$e,__vue_is_functional_template__$e,__vue_module_identifier__$e,void 0,void 0);Pagination.install=function(e){e.component("VPagination",Pagination)};var script$f={name:"VProgress",props:{type:{type:String,default:"indeterminate",validator:function(e){return["indeterminate","determinate"].indexOf(e)>-1}},progress:{type:Number,default:0}},computed:{classes:function(){return["progress--"+this.type]},moderatedProgress:function(){return this.progress<0?0:this.progress>100?100:this.progress}}},__vue_script__$f=script$f,__vue_render__$f=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"progress",class:this.classes},["determinate"===this.type?t("div",{staticClass:"progress__bar",style:{width:this.moderatedProgress+"%"},attrs:{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":this.moderatedProgress}}):t("div",{staticClass:"progress__bar",attrs:{role:"progressbar","aria-valuemax":100,"aria-valuemin":0}})])},__vue_staticRenderFns__$f=[],__vue_inject_styles__$f=void 0,__vue_scope_id__$f=void 0,__vue_module_identifier__$f=void 0,__vue_is_functional_template__$f=!1,Progress=normalizeComponent_1({render:__vue_render__$f,staticRenderFns:__vue_staticRenderFns__$f},__vue_inject_styles__$f,__vue_script__$f,__vue_scope_id__$f,__vue_is_functional_template__$f,__vue_module_identifier__$f,void 0,void 0);Progress.install=function(e){e.component("VProgress",Progress)};var script$g={name:"VRadio",props:{id:{type:[String,Number]},name:{type:String,required:!0},label:{type:String,required:!0},tabindex:{type:[String,Number]},value:{type:[Number,String],required:!0},trueValue:{type:[Number,String],required:!0},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},created:function(){this.checked&&this.$emit("input",this.trueValue)},computed:{isChecked:function(){return String(this.value).length>0&&this.value==this.trueValue}},methods:{onFocus:function(e){this.isActive=!0,this.$emit("focus",e)},onBlur:function(e){this.isActive=!1,this.$emit("blur",e)},onChange:function(e){this.disabled||this.$emit("input",this.trueValue),this.$emit("change",this.isChecked,e)},focus:function(){this.$refs.input.focus()}}},__vue_script__$g=script$g,__vue_render__$g=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"radio",attrs:{for:e.id}},[i("input",{staticClass:"radio__input",attrs:{type:"radio",id:e.id,disabled:e.disabled,name:e.name,tabindex:e.tabindex},domProps:{checked:e.checked,value:e.trueValue},on:{blur:e.onBlur,change:e.onChange,focus:e.onFocus}}),e._v(" "),i("span",{staticClass:"radio__circle"}),e._v(" "),i("span",{staticClass:"radio__text"},[e._v(e._s(e.label))])])},__vue_staticRenderFns__$g=[],__vue_inject_styles__$g=void 0,__vue_scope_id__$g=void 0,__vue_module_identifier__$g=void 0,__vue_is_functional_template__$g=!1,Radio=normalizeComponent_1({render:__vue_render__$g,staticRenderFns:__vue_staticRenderFns__$g},__vue_inject_styles__$g,__vue_script__$g,__vue_scope_id__$g,__vue_is_functional_template__$g,__vue_module_identifier__$g,void 0,void 0);Radio.install=function(e){e.component("VRadio",Radio)};var script$h={name:"VRadioGroup",props:{name:{type:String,required:!0},tabindex:{type:[String,Number]},label:{type:String},options:{type:Array,required:!0},value:{type:[Number,String],required:!0},keys:{type:Object,default:function(){return{id:"id",label:"label",value:"value",checked:"checked",disabled:"disabled"}}},disabled:{type:Boolean,default:!1}},data:function(){return{initialValue:this.value,selectedOptionValue:this.value}},methods:{reset:function(){this.$emit("input",this.initialValue)},isOptionCheckedByDefault:function(e){return this.initialValue==e[this.keys.value]||this.initialValue==e||e[this.keys.checked]},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},watch:{selectedOptionValue:function(){this.$emit("input",this.selectedOptionValue),this.$emit("change",this.selectedOptionValue)},value:function(){this.selectedOptionValue=this.value}},components:{VRadio:Radio}},__vue_script__$h=script$h,__vue_render__$h=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"radio-group"},[i("div",{staticClass:"radio-group__label"},[e._v(e._s(e.label))]),e._v(" "),i("div",{staticClass:"radio-group__list"},e._l(e.options,function(t,n){return i("div",{key:t[e.keys.id]||e.name+"-"+n,staticClass:"radio-group__item"},[i("VRadio",{key:t[e.keys.id],attrs:{id:t[e.keys.id]||e.name+"-"+n,label:t[e.keys.label]||t,checked:e.isOptionCheckedByDefault(t),disabled:e.disabled||t[e.keys.disabled],name:e.name,tabindex:e.tabindex,"true-value":t[e.keys.value]||t},on:{blur:e.onBlur,focus:e.onFocus},model:{value:e.selectedOptionValue,callback:function(t){e.selectedOptionValue=t},expression:"selectedOptionValue"}})],1)}),0)])},__vue_staticRenderFns__$h=[],__vue_inject_styles__$h=void 0,__vue_scope_id__$h=void 0,__vue_module_identifier__$h=void 0,__vue_is_functional_template__$h=!1,RadioGroup=normalizeComponent_1({render:__vue_render__$h,staticRenderFns:__vue_staticRenderFns__$h},__vue_inject_styles__$h,__vue_script__$h,__vue_scope_id__$h,__vue_is_functional_template__$h,__vue_module_identifier__$h,void 0,void 0);RadioGroup.install=function(e){e.component("VRadio",RadioGroup)};var script$i={name:"VSelectOption",props:{option:{type:[String,Object]},selected:Boolean,highlighted:Boolean,disabled:Boolean,multiple:Boolean,keys:{type:Object,default:function(){return{label:"label",value:"value",image:"image",disabled:"disabled"}}}},computed:{classes:function(){return[{"select-option--selected":this.selected},{"select-option--highlighted":this.highlighted},{"select-option--disabled":this.disabled}]}}},__vue_script__$i=script$i,__vue_render__$i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"select-option",class:e.classes,attrs:{"data-value":e.option[e.keys.value]}},[e._t("default",[i("div",[e._v(e._s(e.option[e.keys.label]))])]),e._v(" "),e.multiple&&!e.disabled?i("div",{staticClass:"select-option__checkbox",class:{"select-option__checkbox--selected":e.selected}}):e._e()],2)},__vue_staticRenderFns__$i=[],__vue_inject_styles__$i=void 0,__vue_scope_id__$i=void 0,__vue_module_identifier__$i=void 0,__vue_is_functional_template__$i=!1,SelectOption=normalizeComponent_1({render:__vue_render__$i,staticRenderFns:__vue_staticRenderFns__$i},__vue_inject_styles__$i,__vue_script__$i,__vue_scope_id__$i,__vue_is_functional_template__$i,__vue_module_identifier__$i,void 0,void 0);SelectOption.install=function(e){e.component("VSelectOption",SelectOption)};var startClick,isServer=Vue.prototype.$isServer,on=!isServer&&document.addEventListener?function(e,t,i){e&&t&&i&&e.addEventListener(t,i,!1)}:function(e,t,i){e&&t&&i&&e.attachEvent("on"+t,i)},nodeList=[],ctx="@@clickoutsideContext",seed=0;function createDocumentHandler(e,t,i){return function(n,s){void 0===n&&(n={}),void 0===s&&(s={}),!(i&&i.context&&n.target&&s.target)||e.contains(n.target)||e.contains(s.target)||e===n.target||i.context.popperElm&&(i.context.popperElm.contains(n.target)||i.context.popperElm.contains(s.target))||(t.expression&&e[ctx].methodName&&i.context[e[ctx].methodName]?i.context[e[ctx].methodName]():e[ctx].bindingFn&&e[ctx].bindingFn())}}!Vue.prototype.$isServer&&on(document,"mousedown",function(e){return startClick=e}),!Vue.prototype.$isServer&&on(document,"mouseup",function(e){nodeList.forEach(function(t){return t[ctx].documentHandler(e,startClick)})});var Clickoutside={bind:function(e,t,i){nodeList.push(e);var n=seed++;e[ctx]={id:n,documentHandler:createDocumentHandler(e,t,i),methodName:t.expression,bindingFn:t.value}},update:function(e,t,i){e[ctx].documentHandler=createDocumentHandler(e,t,i),e[ctx].methodName=t.expression,e[ctx].bindingFn=t.value},unbind:function(e){for(var t=nodeList.length,i=0;i=n&&s<=o}}function scrollIntoView(e,t){void 0===t&&(t={container:null,marginTop:0}),e&&(t.container=t.container||e.parentElement,inView(e,t.container)||(t.container.scrollTop=e.offsetTop-t.marginTop))}function resetScroll(e){e&&(e.scrollTop=0)}Clickoutside.install=function(e){e.directive("Clickoutside",Clickoutside)};var script$j={name:"VSelect",directives:{clickoutside:Clickoutside},props:{id:{type:[Number,String]},tabindex:{type:[Number,String],default:0},name:{type:String},label:{type:String,default:"Label"},value:{type:[Array,Object],required:!0},multiple:{type:Boolean},filterable:{type:Boolean},clearable:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},placeholder:{type:String,default:"Placeholder"},options:{type:Array,default:function(){return[]}},keys:{type:Object,default:function(){return{label:"label",value:"value",image:"image",disabled:"disabled"}}}},created:function(){this.mutableValue=this.multiple?[]:this.value,this.mutableOptions=this.options.slice(0)},data:function(){return{query:"",isOpen:!1,isActive:!1,mutableValue:null,mutableOptions:[],highlightedIndex:-1}},computed:{classes:function(){return[{"select--open":this.isOpen},{"select--disabled":this.disabled}]},isSlotDisplayed:function(){return this.multiple?this.mutableValue.length>0&&this.mutableValue.length<=1:""!==this.mutableValue&&!isObjectEmpty(this.mutableValue)},isPlaceholderVisible:function(){return""===this.mutableValue||null===this.mutableValue||0===this.mutableValue.length||0===Object.keys(this.mutableValue).length},filteredOptions:function(){var e=this;return this.filterable?this.mutableOptions.filter(function(t,i){return e.defaultFilter(t,i)}):this.mutableOptions}},methods:{handleClickOutside:function(){this.isOpen?this.closeDropdown():this.isActive&&(this.isActive=!1)},handleOnEnterSelectOption:function(){var e=this.filteredOptions[this.highlightedIndex];this.select(e)},select:function(e){e.disabled||(this.multiple?this.isOptionSelected(e)?this.deselect(e):(this.mutableValue.push(e),this.setValue(this.mutableValue)):(this.setValue(e),this.closeDropdown()),this.$emit("select",e))},deselect:function(e){var t=this.mutableValue.indexOf(e);this.mutableValue.splice(t,1)},setValue:function(e){this.mutableValue=e,this.$emit("input",e),this.$emit("change",e)},toggleDropdown:function(){this[this.isOpen?"closeDropdown":"openDropdown"]()},onOpen:function(){var e=this;this.$nextTick(function(){e.$refs.dropdown.focus(),e.scrollOptionIntoView(e.$refs.dropdown.querySelector(".select-option--selected"))})},onBlur:function(){this.isActive=!1,this.$emit("blur"),this.isOpen&&this.closeDropdown()},onFocus:function(){this.isActive=!0,this.$emit("focus")},openDropdown:function(){this.disabled||(this.isOpen=!0,this.$refs.dropdown.focus())},closeDropdown:function(){var e=this;this.isOpen=!1,this.$refs.container.focus(),this.$nextTick(function(){e.query=""})},isOptionSelected:function(e){var t=this;return this.multiple?this.mutableValue.some(function(i){return i[t.keys.label]===e[t.keys.label]}):this.mutableValue[this.keys.label]===e[this.keys.label]},clear:function(){var e=this;this.multiple?this.setValue([]):this.setValue({}),this.highlightedIndex=-1,this.$emit("clear"),this.$nextTick(function(){resetScroll(e.$refs.dropdown)})},reset:function(){this.clear()},deleteSelectedOption:function(e,t){var i=this.mutableValue.indexOf(t);i>-1&&this.mutableValue.splice(i,1),e.stopPropagation()},defaultFilter:function(e){var t=this.query.toLowerCase(),i=e[this.keys.label];return"string"==typeof i&&(i=i.toLowerCase()),fuzzysearch(t,i)},highlightOption:function(e){var t=this;this.$refs.options.length!==this.highlightedIndex&&("next"===e&&(this.highlightedIndex=this.highlightedIndex+1,this.highlightedIndex===this.$refs.options.length&&(this.highlightedIndex=0)),"prev"===e&&(this.highlightedIndex=this.highlightedIndex-1,this.highlightedIndex<0&&(this.highlightedIndex=this.$refs.options.length-1)),this.filteredOptions[this.highlightedIndex].disabled&&this.highlightOption(e),this.$nextTick(function(){t.scrollOptionIntoView(t.$refs.options[t.highlightedIndex].$el)}))},scrollOptionIntoView:function(e){scrollIntoView(e,{container:this.$refs.dropdown,marginTop:8})}},watch:{value:function(e){this.mutableValue=e},options:function(e){this.mutableOptions=e},isOpen:function(){this.isOpen?(this.onOpen(),this.$emit("open")):this.$emit("close")},query:function(){this.highlightedIndex=0}},components:{VSelectOption:SelectOption,VChip:Chip}},__vue_script__$j=script$j,__vue_render__$j=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClickOutside,expression:"handleClickOutside"}],staticClass:"select",class:e.classes},[i("label",{staticClass:"select__label",attrs:{for:e.name||e.id}},[e._v("\n "+e._s(e.label)+"\n ")]),e._v(" "),i("input",{attrs:{type:"hidden",name:e.name||e.id,disabled:e.disabled},domProps:{value:e.value.value}}),e._v(" "),i("div",{ref:"container",staticClass:"select__container",attrs:{tabindex:e.disabled?null:e.tabindex},on:{focus:e.onFocus,click:e.toggleDropdown,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:(t.preventDefault(),e.toggleDropdown(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.toggleDropdown(t))}]}},[i("div",{ref:"toggle",staticClass:"select__display"},[e.isSlotDisplayed?e._t("option",null,{option:e.multiple?e.mutableValue[0]:e.mutableValue}):e._e(),e._v(" "),e.$scopedSlots.option&&2===e.mutableValue.length||!e.$scopedSlots.option&&e.mutableValue.length>0&&e.multiple?i("div",[i("v-chip",{staticClass:"select__selected-option",attrs:{title:e.mutableValue[0].label,closable:""},on:{click:function(e){e.stopPropagation()},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:(t.stopPropagation(),e.deleteSelectedOption(t,e.mutableValue[0]))},delete:function(t){return e.deleteSelectedOption(t,e.mutableValue[0])}}}),e._v(" "),e.mutableValue.length>1?i("v-chip",{attrs:{title:"+ "+(e.mutableValue.length-1)}}):e._e()],1):e._e(),e._v(" "),e.mutableValue&&!e.$scopedSlots.option?i("div",[e._v(e._s(e.mutableValue[e.keys.label]))]):e._e(),e._v(" "),e.isPlaceholderVisible?i("div",{staticClass:"select__placeholder"},[e._v(e._s(e.placeholder))]):e._e()],2),e._v(" "),e.isSlotDisplayed&&e.clearable?i("svg",{staticClass:"select__clear",attrs:{height:"16",width:"16"},on:{click:function(t){return t.stopPropagation(),e.clear(t)}}},[i("use",{attrs:{"xlink:href":"#cross-icon"}})]):i("svg",{staticClass:"select__chevron",attrs:{width:"18px",height:"18px"}},[i("use",{attrs:{"xlink:href":"#chevron-down-icon"}})])]),e._v(" "),i("div",{ref:"dropdown",staticClass:"select__dropdown",attrs:{tabindex:"-1"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:(t.preventDefault(),e.closeDropdown())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.highlightOption("next"))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.handleOnEnterSelectOption(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.onBlur(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.highlightOption("prev"))}]}},[e.filterable?i("div",{staticClass:"select__filter-wrapper"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"filter",staticClass:"select__filter",attrs:{tabindex:"0",type:"text",placeholder:"Search",autocomplete:"off"},domProps:{value:e.query},on:{input:function(t){t.target.composing||(e.query=t.target.value)}}})]):e._e(),e._v(" "),e._l(e.filteredOptions,function(t,n){return i("v-select-option",{key:n,ref:"options",refInFor:!0,attrs:{option:t,multiple:e.multiple,keys:e.keys,disabled:t[e.keys.disabled],selected:e.isOptionSelected(t),highlighted:e.highlightedIndex===n},nativeOn:{click:function(i){return i.stopPropagation(),e.select(t,n)}}},[e._t("option",null,{index:n,option:t})],2)})],2)])},__vue_staticRenderFns__$j=[],__vue_inject_styles__$j=void 0,__vue_scope_id__$j=void 0,__vue_module_identifier__$j=void 0,__vue_is_functional_template__$j=!1,Select=normalizeComponent_1({render:__vue_render__$j,staticRenderFns:__vue_staticRenderFns__$j},__vue_inject_styles__$j,__vue_script__$j,__vue_scope_id__$j,__vue_is_functional_template__$j,__vue_module_identifier__$j,void 0,void 0);Select.install=function(e){e.component("VSelect",Select)};var script$k={name:"VSpinner",props:{appearance:{type:String,default:"default"}},computed:{classes:function(){return["spinner--"+this.appearance]}}},__vue_script__$k=script$k,__vue_render__$k=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"spinner",class:this.classes})},__vue_staticRenderFns__$k=[],__vue_inject_styles__$k=void 0,__vue_scope_id__$k=void 0,__vue_module_identifier__$k=void 0,__vue_is_functional_template__$k=!1,Spinner=normalizeComponent_1({render:__vue_render__$k,staticRenderFns:__vue_staticRenderFns__$k},__vue_inject_styles__$k,__vue_script__$k,__vue_scope_id__$k,__vue_is_functional_template__$k,__vue_module_identifier__$k,void 0,void 0);Spinner.install=function(e){e.component("VSpinner",Spinner)};var script$l={name:"VStep",props:{id:{type:Number,required:!0},title:{type:String,required:!0},hideLabel:{type:Boolean,default:!1}},data:function(){return{}},computed:{isActive:function(){return this.$parent.currentStep===this.id},isPrevious:function(){return this.$parent.currentStep>this.id},isNext:function(){return this.$parent.currentStepe&&!this.disablePrev&&this.onChange(this.currentStep-1)},onChange:function(e){e>8&255]+lut[e>>16&255]+lut[e>>24&255]+"-"+lut[255&t]+lut[t>>8&255]+"-"+lut[t>>16&15|64]+lut[t>>24&255]+"-"+lut[63&i|128]+lut[i>>8&255]+"-"+lut[i>>16&255]+lut[i>>24&255]+lut[255&n]+lut[n>>8&255]+lut[n>>16&255]+lut[n>>24&255]},short=function(e){return(e=e||"")+generate().split("-")[0]},UUID={generate,short},script$n={name:"VTab",props:{id:{type:String,default:function(){return UUID.short("tab-")}},title:String,selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isActive:!1}},created:function(){this.$parent.addTab(this)},beforeDestroy:function(){this.$parent.removeTab(this)},methods:{activate:function(){this.isActive=!0,this.$emit("select",this.id)},deactivate:function(){this.isActive=!1,this.$emit("deselect",this.id)}},watch:{disabled:function(){this.$parent.onTabDisabledChange(this)}}},__vue_script__$n=script$n,__vue_render__$n=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"tab",class:{"tab--active":this.isActive,"tab--disabled":this.disabled},attrs:{role:"tabpanel",id:this.id,"aria-hidden":this.isActive?null:"true",tabindex:this.isActive?"0":null}},[this._t("default")],2)},__vue_staticRenderFns__$n=[],__vue_inject_styles__$n=void 0,__vue_scope_id__$n=void 0,__vue_module_identifier__$n=void 0,__vue_is_functional_template__$n=!1,Tab=normalizeComponent_1({render:__vue_render__$n,staticRenderFns:__vue_staticRenderFns__$n},__vue_inject_styles__$n,__vue_script__$n,__vue_scope_id__$n,__vue_is_functional_template__$n,__vue_module_identifier__$n,void 0,void 0);Tab.install=function(e){e.component("VTab",Tab)};var defaultSortCompare=function(e,t,i){return toString(e[i]).localeCompare(toString(t[i]),void 0,{numeric:!0})},script$o={name:"VTable",props:{ready:{type:Boolean,default:!0},value:{type:Array,default:function(){return[]}},fields:{type:Object,default:function(){}},items:{type:Array,default:function(){return[]}},multiSelect:{type:Boolean,default:!1},perPage:{type:Number,default:10},currentPage:{type:Number,default:1},sortCompare:{type:Function,default:null},emptyText:{type:String,default:"There is no records."},emptyFilteredText:{type:String,default:"There are no records matching your request."}},data:function(){return{query:"",selected:[],sortBy:null,sortDesc:!0}},computed:{mutableItems:function(){var e=this,t=this.items.slice();this.query&&(this.clearSelection(),t=t.filter(function(t){return fuzzysearch(e.query,toString(t))}));var i=this.sortCompare||defaultSortCompare;return this.sortBy&&(t=t.sort(function(t,n){var s=i(t,n,e.sortBy);return e.sortDesc?s:-1*s})),this.perPage&&(t=t.slice((this.currentPage-1)*this.perPage,this.currentPage*this.perPage)),t},mutableSelected:function(){var e=this;return this.mutableItems.map(function(t,i){if(e.selected[i])return t}).filter(function(e){return void 0!==e})}},methods:{onHeadClick:function(e,t){e.sortable?(t===this.sortBy&&(this.sortDesc=!this.sortDesc),this.sortBy=t):this.sortBy=null},handleSelect:function(){this.$emit("input",this.mutableSelected)},handleSelectAll:function(e){e.target.checked?this.selectAll():this.clearSelection(),this.handleSelect()},clearSelection:function(){this.selected=[]},selectAll:function(){this.selected=[].concat(this.mutableItems)}},components:{VSpinner:Spinner}},__vue_script__$o=script$o,__vue_render__$o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"table-responsive"},[e._t("header",null,{items:e.items,selected:e.mutableSelected,handleSearchInput:function(t){return e.query=t},disabledSearch:0===e.items.length}),e._v(" "),e.ready?i("table",{staticClass:"table"},[i("thead",[0===e.items.length||e.items.length>0&&0===e.mutableItems.length?e._e():i("tr",[e.multiSelect?i("th",{staticClass:"table-select-td"},[i("input",{ref:"checkbox",attrs:{type:"checkbox"},domProps:{checked:e.mutableItems.length===e.mutableSelected.length},on:{change:e.handleSelectAll}})]):e._e(),e._v(" "),e._l(e.fields,function(t,n){return i("th",{key:n,class:[t.sortable?"table-sorting":null,e.sortBy===n?"table-sorting--"+(e.sortDesc?"desc":"asc"):"",t.class?t.class:null],on:{click:function(i){return e.onHeadClick(t,n)}}},[t.label?i("span",{staticClass:"table-sorting__label",domProps:{innerHTML:e._s(t.label)}}):e._e()])})],2)]),e._v(" "),i("tbody",[0===e.items.length?i("tr",{attrs:{colspan:Object.keys(e.fields).length}},[e._t("empty",[i("div",{staticClass:"table-empty",domProps:{innerHTML:e._s(e.emptyText)}})])],2):e._e(),e._v(" "),e._l(e.mutableItems,function(t,n){return i("tr",{key:n},[e.multiSelect?i("td",{staticClass:"table-select-td"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.selected[n],expression:"selected[index]"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected[n])?e._i(e.selected[n],null)>-1:e.selected[n]},on:{change:[function(t){var i=e.selected[n],s=t.target,o=!!s.checked;if(Array.isArray(i)){var _=e._i(i,null);s.checked?_<0&&e.$set(e.selected,n,i.concat([null])):_>-1&&e.$set(e.selected,n,i.slice(0,_).concat(i.slice(_+1)))}else e.$set(e.selected,n,o)},e.handleSelect]}})]):e._e(),e._v(" "),e._l(e.fields,function(s,o){return i("td",{key:o,class:"table-"+s.label.toLowerCase()},[e._t(o,[e._v("\n "+e._s(t[o])+"\n ")],{value:t[o],item:t,index:n})],2)})],2)}),e._v(" "),e.items.length>0&&0===e.mutableItems.length?i("tr",{attrs:{colspan:Object.keys(e.fields).length}},[e._t("emptyfiltered",[i("div",{staticClass:"table-empty",domProps:{innerHTML:e._s(e.emptyFilteredText)}})])],2):e._e()],2)]):i("div",{staticClass:"table-spinner"},[i("v-spinner")],1),e._v(" "),e.$scopedSlots.pagination?i("div",{staticClass:"table-pagination"},[e._t("pagination",null,{total:e.items.length,perPage:e.perPage})],2):e._e()],2)},__vue_staticRenderFns__$o=[],__vue_inject_styles__$o=void 0,__vue_scope_id__$o=void 0,__vue_module_identifier__$o=void 0,__vue_is_functional_template__$o=!1,Table=normalizeComponent_1({render:__vue_render__$o,staticRenderFns:__vue_staticRenderFns__$o},__vue_inject_styles__$o,__vue_script__$o,__vue_scope_id__$o,__vue_is_functional_template__$o,__vue_module_identifier__$o,void 0,void 0);Table.install=function(e){e.component("VTable",Table)};var script$p={name:"VTableHeader",props:{title:{type:String,default:"Table title"},searchable:{type:Boolean,default:!0},handleSearchInput:{type:Function,default:function(){}},disabledSearch:{type:Boolean}}},__vue_script__$p=script$p,__vue_render__$p=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"table-header"},[e._t("title",[i("h2",{staticClass:"table-header__title"},[e._v(e._s(e.title))])]),e._v(" "),i("div",{staticClass:"table-header__actions"},[e.searchable?i("div",{staticClass:"table-header__search"},[i("v-textbox",{attrs:{floated:"",label:"Search",type:"text",placeholder:"Search",size:"3",wide:!1,disabled:e.disabledSearch},on:{input:e.handleSearchInput}})],1):e._e(),e._v(" "),e.$scopedSlots.action?i("div",{staticClass:"table-header__action"},[e._t("action")],2):e._e()])],2)},__vue_staticRenderFns__$p=[],__vue_inject_styles__$p=void 0,__vue_scope_id__$p=void 0,__vue_module_identifier__$p=void 0,__vue_is_functional_template__$p=!1,TableHeader=normalizeComponent_1({render:__vue_render__$p,staticRenderFns:__vue_staticRenderFns__$p},__vue_inject_styles__$p,__vue_script__$p,__vue_scope_id__$p,__vue_is_functional_template__$p,__vue_module_identifier__$p,void 0,void 0);TableHeader.install=function(e){e.component("VTableHeader",TableHeader)};var script$q={name:"VTabHeader",props:{id:{type:String,required:!0},title:{type:String,required:!0},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{classes:function(){return[{"tabs__link--active":this.active},{"tabs__link--disabled":this.disabled}]}},methods:{onClick:function(e){e.preventDefault(),this.$emit("click",e)}}},__vue_script__$q=script$q,__vue_render__$q=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("li",{staticClass:"tabs__item",attrs:{role:"tab","aria-controls":e.id,"aria-selected":e.active?"true":null,tabindex:e.active?0:-1}},[i("a",{staticClass:"tabs__link",class:e.classes,attrs:{href:"#"},on:{click:e.onClick}},[i("div",{staticClass:"tabs__link-text"},[e._v(e._s(e.title))])])])},__vue_staticRenderFns__$q=[],__vue_inject_styles__$q=void 0,__vue_scope_id__$q=void 0,__vue_module_identifier__$q=void 0,__vue_is_functional_template__$q=!1,TabHeader=normalizeComponent_1({render:__vue_render__$q,staticRenderFns:__vue_staticRenderFns__$q},__vue_inject_styles__$q,__vue_script__$q,__vue_scope_id__$q,__vue_is_functional_template__$q,__vue_module_identifier__$q,void 0,void 0);TabHeader.install=function(e){e.component("VTabHeader",TabHeader)};var script$r={name:"VTabs",props:{wide:{type:Boolean,default:!1}},data:function(){return{tabs:[],activeTabId:null,activeTabIndex:-1}},computed:{classes:function(){return[{"tabs--wide":this.wide}]}},methods:{addTab:function(e){this.tabs.push(e),(null===this.activeTabId||e.selected)&&(this.activeTabId=e.id)},removeTab:function(e){var t=this.tabs.indexOf(e);t>-1&&(this.tabs.splice(t,1),e.id===this.activeTabId&&this.selectTab(this.findNearestTab()))},onTabDisabledChange:function(e){e.disabled&&this.activeTabId===e.id&&this.selectTab(this.findNearestTab())},selectTab:function(e){null===e||e.disabled||e.id===this.activeTabId||(this.activeTabId=e.id,this.$emit("tab-change",e.id))},selectNextTab:function(){var e=this.findNextTab();e&&(this.selectTab(e),e.$el.focus())},selectPreviousTab:function(){var e=this.findPreviousTab();e&&(this.selectTab(e),e.$el.focus())},findNextTab:function(){for(var e=null,t=this.activeTabIndex+1;t=0;t--)if(this.$refs.tabHeaders[t]&&!this.$refs.tabHeaders[t].disabled){e=this.$refs.tabHeaders[t];break}return e},findNearestTab:function(){return this.findPreviousTab()||this.findNextTab()},findTabById:function(e){for(var t=0;t-1}},tabindex:[String,Number],multiline:{type:Boolean,default:!1},rows:{type:Number,default:2},min:Number,max:Number,step:{type:String,default:"any"},maxlength:Number,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},floated:{type:Boolean,default:!1},wide:{type:Boolean,default:!0},error:{type:Boolean,default:!1},errorText:{type:String},autocomplete:String,autofocus:{type:Boolean,default:!1}},computed:{minValue:function(){return"number"===this.type&&void 0!==this.min?this.min:null},maxValue:function(){return"number"===this.type&&void 0!==this.max?this.max:null},stepValue:function(){return"number"===this.type?this.step:null},classes:function(){return["textbox--size-"+this.size,{"textbox--floated":this.floated},{"textbox--floated-active":this.floated&&""!==this.value},{"textbox--wide":this.wide},{"textbox--error":this.error}]}},data:function(){return{isTouched:!1,initialValue:this.value}},created:function(){null===this.value&&(this.initialValue="",this.updateValue(""))},methods:{updateValue:function(e){this.$emit("input",e)},onChange:function(e){this.$emit("change",this.value,e)},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e),this.isTouched||(this.isTouched=!0,this.$emit("touch"))},onKeydown:function(e){this.$emit("keydown",e)},onKeydownEnter:function(e){this.$emit("keydown-enter",e)},reset:function(){document.activeElement!==this.$refs.input&&document.activeElement!==this.$refs.textarea||document.activeElement.blur(),this.updateValue(this.initialValue),this.resetTouched()},resetTouched:function(e){void 0===e&&(e={touched:!1}),this.isTouched=e.touched},focus:function(){(this.$refs.input||this.$refs.textarea).focus()}}},__vue_script__$s=script$s,__vue_render__$s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"textbox",class:e.classes},[i("span",{staticClass:"textbox__label"},[e._v(e._s(e.label))]),e._v(" "),e.multiline?i("textarea",{directives:[{name:"autofocus",rawName:"v-autofocus",value:e.autofocus,expression:"autofocus"}],ref:"textarea",staticClass:"textbox__textarea",attrs:{autocomplete:e.autocomplete?e.autocomplete:null,maxlength:e.maxlength?e.maxlength:null,disabled:e.disabled,readonly:e.readonly,placeholder:e.placeholder,name:e.name,id:e.id,rows:e.rows,tabindex:e.tabindex},domProps:{value:e.value},on:{blur:e.onBlur,change:e.onChange,focus:e.onFocus,input:function(t){return e.updateValue(t.target.value)},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onKeydownEnter(t)},e.onKeydown]}}):i("input",{directives:[{name:"autofocus",rawName:"v-autofocus",value:e.autofocus,expression:"autofocus"}],ref:"input",staticClass:"textbox__input",attrs:{autocomplete:e.autocomplete?e.autocomplete:null,disabled:e.disabled,readonly:e.readonly,placeholder:e.placeholder,name:e.name,id:e.id,tabindex:e.tabindex,max:e.maxValue,maxlength:e.maxlength?e.maxlength:null,min:e.minValue,number:"number"===e.type||null,step:e.stepValue,type:e.type},domProps:{value:e.value},on:{blur:e.onBlur,change:e.onChange,focus:e.onFocus,input:function(t){return e.updateValue(t.target.value)},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onKeydownEnter(t)},e.onKeydown]}}),e._v(" "),e.error&&e.errorText?i("span",{staticClass:"textbox__error"},[e._v(e._s(e.errorText))]):e._e()])},__vue_staticRenderFns__$s=[],__vue_inject_styles__$s=void 0,__vue_scope_id__$s=void 0,__vue_module_identifier__$s=void 0,__vue_is_functional_template__$s=!1,Textbox=normalizeComponent_1({render:__vue_render__$s,staticRenderFns:__vue_staticRenderFns__$s},__vue_inject_styles__$s,__vue_script__$s,__vue_scope_id__$s,__vue_is_functional_template__$s,__vue_module_identifier__$s,void 0,void 0);Textbox.install=function(e){e.component("VTextbox",Textbox)};var script$t={name:"VToggle",props:{id:{type:[String,Number]},name:{type:String},label:{type:[String,Number]},value:{required:!0},submittedValue:{type:String,default:"on"},checked:{type:Boolean,default:!1},trueValue:{default:!0},falseValue:{default:!1},indeterminate:{type:Boolean,default:!1},tabindex:[String,Number],vertical:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isChecked:looseEqual(this.value,this.trueValue)||this.checked}},created:function(){this.$emit("input",this.isChecked?this.trueValue:this.falseValue)},computed:{classes:function(){return[{"toggle--vertical":this.vertical}]}},methods:{focus:function(){this.$refs.input.focus()},onChange:function(e){var t=this.isChecked,i=e.target.checked;this.$emit("input",i?this.trueValue:this.falseValue,e),t!==i&&this.$emit("change",i?this.trueValue:this.falseValue,e)},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},watch:{value:function(){this.isChecked=looseEqual(this.value,this.trueValue)}}},__vue_script__$t=script$t,__vue_render__$t=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"toggle",class:e.classes,attrs:{for:e.id}},[i("input",{ref:"input",staticClass:"toggle__input",attrs:{id:e.id,name:e.name,disabled:e.disabled,tabindex:e.tabindex,type:"checkbox"},domProps:{checked:e.isChecked,value:e.submittedValue},on:{blur:e.onBlur,focus:e.onFocus,change:e.onChange}}),e._v(" "),i("span",{staticClass:"toggle__container"}),e._v(" "),i("span",{staticClass:"toggle__text"},[e._v(e._s(e.label))])])},__vue_staticRenderFns__$t=[],__vue_inject_styles__$t=void 0,__vue_scope_id__$t=void 0,__vue_module_identifier__$t=void 0,__vue_is_functional_template__$t=!1,Toggle=normalizeComponent_1({render:__vue_render__$t,staticRenderFns:__vue_staticRenderFns__$t},__vue_inject_styles__$t,__vue_script__$t,__vue_scope_id__$t,__vue_is_functional_template__$t,__vue_module_identifier__$t,void 0,void 0);Toggle.install=function(e){e.component("VToggle",Toggle)};var components=Object.freeze({VAlert:Alert,VAvatar:Avatar,VBadge:Badge,VButton:Button,VCheckbox:Checkbox,VCheckboxGroup:CheckboxGroup,VChip:Chip,VDropdown:Dropdown,VMenu:Menu,VMenuOption:MenuOption,VModal:Modal,VNotification:Notification,VNotificationContainer:NotificationContainer,VPagination:Pagination,VPopover:Popover,VProgress:Progress,VRadio:Radio,VRadioGroup:RadioGroup,VSelect:Select,VSelectOption:SelectOption,VSpinner:Spinner,VStepper:Stepper,VTab:Tab,VTable:Table,VTableHeader:TableHeader,VTabs:Tabs,VTextbox:Textbox,VToggle:Toggle}),directives=Object.freeze({Autofocus,Clickoutside});function install(e){install.installed||(install.installed=!0,Object.keys(components).forEach(function(t){e.component(t,components[t])}),Object.keys(directives).forEach(function(t){e.directive(t,directives[t])}))}var plugin={install},GlobalVue=null;"undefined"!=typeof window?GlobalVue=window.Vue:"undefined"!=typeof global&&(GlobalVue=global.Vue),GlobalVue&&GlobalVue.use(plugin),exports.Autofocus=Autofocus,exports.Clickoutside=Clickoutside,exports.VAlert=Alert,exports.VAvatar=Avatar,exports.VBadge=Badge,exports.VButton=Button,exports.VCheckbox=Checkbox,exports.VCheckboxGroup=CheckboxGroup,exports.VChip=Chip,exports.VDropdown=Dropdown,exports.VMenu=Menu,exports.VMenuOption=MenuOption,exports.VModal=Modal,exports.VNotification=Notification,exports.VNotificationContainer=NotificationContainer,exports.VPagination=Pagination,exports.VPopover=Popover,exports.VProgress=Progress,exports.VRadio=Radio,exports.VRadioGroup=RadioGroup,exports.VSelect=Select,exports.VSelectOption=SelectOption,exports.VSpinner=Spinner,exports.VStepper=Stepper,exports.VTab=Tab,exports.VTable=Table,exports.VTableHeader=TableHeader,exports.VTabs=Tabs,exports.VTextbox=Textbox,exports.VToggle=Toggle,exports.default=plugin; \ No newline at end of file diff --git a/dist/modulist-vue.esm.js b/dist/modulist-vue.esm.js index d045110..9ede557 100644 --- a/dist/modulist-vue.esm.js +++ b/dist/modulist-vue.esm.js @@ -1,6 +1,6 @@ /** - * Modulist Vue v1.0.0-alpha.11 + * Modulist Vue v1.0.0-alpha.12 * (c) 2019 SimplyStack * Released under the MIT License. */ -import e from"popper.js";import t from"fuzzysearch";import i from"vue";var n=function(e,t,i,n,s,a,o,r,l,c){"boolean"!=typeof o&&(l=r,r=o,o=!1);var u,d="function"==typeof i?i.options:i;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),n&&(d._scopeId=n),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=u):t&&(u=o?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),u)if(d.functional){var h=d.render;d.render=function(e,t){return u.call(t),h(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,u):[u]}return i},s=n({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"alert",class:this.classes},[t("div",{staticClass:"alert__body"},[t("div",{staticClass:"alert__title"},[this._v(this._s(this.title))]),this._v(" "),t("div",{staticClass:"alert__text"},[this._t("default")],2)])])},staticRenderFns:[]},void 0,{name:"VAlert",props:{title:{type:String,default:"Default title"},type:{type:String,default:"info",validator:function(e){return["info","success","warn","error"].indexOf(e)>-1}},wide:{type:Boolean,default:!1}},computed:{classes:function(){return["alert--"+this.type,{"alert--wide":this.wide}]}}},void 0,!1,void 0,void 0,void 0);s.install=function(e){e.component("VAlert",s)};var a=n({render:function(){var e=this.$createElement;return(this._self._c||e)("img",{staticClass:"avatar",attrs:{src:this.src,alt:this.alt,width:this.size,height:this.size}})},staticRenderFns:[]},void 0,{name:"VAvatar",props:{src:{type:String,required:!0},size:{type:[String,Number],default:32},alt:{type:String,default:"Avatar"}}},void 0,!1,void 0,void 0,void 0);a.install=function(e){e.component("VAvatar",a)};var o=n({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"badge",class:this.classes,domProps:{textContent:this._s(this.text)}})},staticRenderFns:[]},void 0,{name:"VBadge",props:{type:{type:String,default:"default",validator:function(e){return["default","primary","alternative","warning","success","danger"].indexOf(e)>-1}},align:{type:String,default:"middle",validator:function(e){return["top","middle","bottom"].indexOf(e)>-1}},text:{type:[String,Number],required:!0}},computed:{classes:function(){return["badge--"+this.type,"badge--align-"+this.align]}}},void 0,!1,void 0,void 0,void 0);o.install=function(e){e.component("VBadge",o)};var r=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("button",e._g({staticClass:"button",class:e.classes,attrs:{disabled:e.disabled,type:e.type}},e.$listeners),[e._t("default"),e._v(" "),e.$slots.icon?i("div",{staticClass:"button__icon"},[e._t("icon")],2):e._e()],2)},staticRenderFns:[]},void 0,{name:"VButton",props:{type:{type:String,default:"button"},appearance:{type:String,default:"default",validator:function(e){return["default","primary","alternative","subtle","success","danger"].indexOf(e)>-1}},size:{type:String,default:"4",validator:function(e){return["0","1","2","3","4"].indexOf(e)>-1}},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},iconFirst:{type:Boolean,default:!1},wide:{type:Boolean,default:!1}},computed:{classes:function(){return["button--"+this.appearance,"button--size-"+this.size,{"button--loading":this.loading},{"button--icon-only":!this.$slots.default},{"button--icon-first":this.iconFirst},{"button--wide":this.wide}]}}},void 0,!1,void 0,void 0,void 0);function l(e){return null!==e&&"object"==typeof e}function c(e,t){return e==t||!(!l(e)||!l(t))&&JSON.stringify(e)===JSON.stringify(t)}function u(e,t){for(var i=0;i0?[].concat(this.initialValue):[])},isOptionCheckedByDefault:function(e){return u(this.initialValue,e[this.keys.value]||e)>-1},onFocus:function(e){this.isActive=!0,this.$emit("focus",e)},onBlur:function(e){this.isActive=!1,this.$emit("blur",e)},onChange:function(e,t){if(!this.ignoreChange){var i=e[0],n=e[1],s=[],a=t[this.keys.value]||t,o=u(this.value,a);i&&o<0&&(s=this.value.concat(a)),!i&&o>-1&&(s=this.value.slice(0,o).concat(this.value.slice(o+1))),this.$emit("input",s),this.$emit("change",s,n)}}},components:{VCheckbox:h}},void 0,!1,void 0,void 0,void 0);p.install=function(e){e.component("VCheckboxGroup",p)};var f=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",e._g({ref:"chip",staticClass:"chip",class:e.classes,attrs:{tabindex:"0"}},e.$listeners),[i("div",{staticClass:"chip__text"},[e._v(e._s(e.title))]),e._v(" "),e.closable?i("div",{staticClass:"chip__close"},[i("button",{staticClass:"chip__delete",on:{click:function(t){return t.stopPropagation(),e.onDelete(t)}}},[i("svg",{attrs:{slot:"icon",height:"12",width:"12"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])]):e._e()])},staticRenderFns:[]},void 0,{name:"VChip",props:{title:String,appearance:{type:String},closable:Boolean},computed:{classes:function(){return["chip--"+this.appearance]}},methods:{onDelete:function(e){this.$emit("delete",e)}}},void 0,!1,void 0,void 0,void 0);f.install=function(e){e.component("VChip",f)};var v=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"popover",class:{"popover--has-max-height":e.hasMaxHeight},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.close(t)}}},[i("div",{ref:"trigger",staticClass:"popover__trigger"},[e._t("toggle")],2),e._v(" "),e.isActive?i("div",{ref:"content",staticClass:"popover__content",attrs:{role:"dialog","aria-haspopup":"true","aria-expanded":e.isActive?"true":"false",tabindex:"-1"}},[e._t("default"),e._v(" "),i("div",{staticClass:"popover__focus-redirector",attrs:{tabindex:"0"},on:{focus:e.restrictFocus}})],2):e._e()])},staticRenderFns:[]},void 0,{name:"VPopover",props:{trigger:{type:String,default:"click"},containFocus:{type:Boolean,default:!1},hasMaxHeight:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},offset:{type:[String,Number],default:"0"},manualOpen:{type:Boolean,default:!1},manualClose:{type:Boolean,default:!1},returnFocusOnClose:{type:Boolean,default:!0},focusRedirector:Function},data:function(){return{isActive:!1,popperInstance:null,focusedElBeforeOpen:null}},mounted:function(){this.addEventsListeners()},computed:{triggerEl:function(){return this.$refs.trigger},popperOptions:function(){return{placement:this.placement,modifiers:{offset:{offset:this.offset}}}}},methods:{addEventsListeners:function(){switch(this.trigger){case"click":this.manualClose||document.addEventListener("click",this.handleClickOutside,!0),this.manualOpen||this.triggerEl.addEventListener("click",this.toggle);break;case"hover":this.manualOpen||this.triggerEl.addEventListener("mouseenter",this.show),this.manualClose||document.addEventListener("mousemove",this.handleClickOutside,!0);break;default:throw new Error("[popover] "+this.trigger+" is not defined")}},removeEventsListeners:function(){switch(this.trigger){case"click":this.manualClose||document.removeEventListener("click",this.handleClickOutside,!0),this.triggerEl.removeEventListener("click",this.toggle);break;case"hover":this.manualOpen||this.triggerEl.removeEventListener("mouseenter",this.show),this.manualClose||document.removeEventListener("mousemove",this.handleClickOutside,!0);break;default:throw new Error("[popover] "+this.trigger+" is not defined")}},toggle:function(){this.isActive?this.close():this.show()},show:function(){var e=this;this.disabled||this.isActive||(this.focusedElBeforeOpen=document.activeElement,this.isActive=!0,this.initializePopper(),this.$nextTick(function(){e.$el.focus()}),this.$emit("open"))},close:function(){var e=this;this.isActive=!1,this.$nextTick(function(){e.destroyPopper()}),this.$emit("close"),this.returnFocusOnClose&&this.triggerEl.focus()},restrictFocus:function(e){this.containFocus?(e.stopPropagation(),this.focusRedirector?this.focusRedirector(e):this.$el.focus()):this.close()},initializePopper:function(){var t=this;this.$nextTick(function(){t.popperInstance=new e(t.triggerEl,t.$refs.content,t.popperOptions)})},destroyPopper:function(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)},handleClickOutside:function(e){this.$el.contains(e.target)||this.triggerEl.contains(e.target)||!this.isActive||this.close()}},beforeDestroy:function(){this.removeEventsListeners()}},void 0,!1,void 0,void 0,void 0);v.install=function(e){e.component("VPopover",v)};var m=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("li",e._g({ref:"menuOption",staticClass:"menu-option",class:e.classes,attrs:{role:"menu-item",tabindex:e.isDivider||e.disabled?null:"0"}},e.$listeners),[e.isDivider?e._e():e._t("default",[i("div",{staticClass:"menu-option__content"},[i("div",{staticClass:"menu-option__text"},[e._v(e._s(e.label))])])])],2)},staticRenderFns:[]},void 0,{name:"VMenuOption",props:{type:String,label:String,disabled:{type:Boolean,default:!1}},computed:{classes:function(){return{"menu-option--divider":this.isDivider,"menu-option--disabled":this.disabled}},isDivider:function(){return"divider"===this.type}}},void 0,!1,void 0,void 0,void 0);m.install=function(e){e.component("VMenuOption",m)};var b=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ul",{staticClass:"menu",attrs:{role:"menu"}},[e._l(e.options,function(t){return i("v-menu-option",{key:t.id,attrs:{disabled:t[e.keys.disabled],label:"divider"===t[e.keys.type]?null:t[e.keys.label]||t,type:t[e.keys.type]},on:{click:function(i){return e.selectOption(t)},keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),e.selectOption(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:(t.stopPropagation(),e.closeMenu(t))}]}},[e._t("option",null,{option:t})],2)}),e._v(" "),e.containFocus?i("div",{staticClass:"menu__focus-redirector",attrs:{tabindex:"0"},on:{focus:e.redirectFocus}}):e._e()],2)},staticRenderFns:[]},void 0,{name:"VMenu",props:{options:{type:Array,default:function(){return[]}},containFocus:{type:Boolean,default:!1},keys:{type:Object,default:function(){return{type:"type",label:"label",disabled:"disabled"}}}},methods:{selectOption:function(e){e.disabled||"divider"===e.type||(this.$emit("select",e),this.closeMenu())},closeMenu:function(){this.$emit("close")},redirectFocus:function(e){e.stopPropagation(),this.$el.querySelector(".menu-option").focus()}},components:{VMenuOption:m}},void 0,!1,void 0,void 0,void 0);b.install=function(e){e.component("VMenu",b)};var g=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dropdown"},[i("Popover",{ref:"popover",attrs:{"contain-focus":"",disabled:e.disabled,placement:e.placement},on:{open:e.onOpen,close:e.onClose}},[i("div",{staticClass:"dropdown__toggle",attrs:{slot:"toggle"},slot:"toggle"},[e._t("toggle")],2),e._v(" "),i("Menu",{attrs:{options:e.options,"contain-focus":e.containFocus},on:{select:e.onSelect,close:function(t){return e.$refs.popover.close()}}})],1)],1)},staticRenderFns:[]},void 0,{name:"VDropdown",props:{placement:{type:String,default:"bottom"},options:{type:Array,default:function(){return[]}},containFocus:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},methods:{onSelect:function(e){this.$emit("select",e)},onOpen:function(){this.$emit("open")},onClose:function(){this.$emit("close")}},components:{Popover:v,Menu:b}},void 0,!1,void 0,void 0,void 0);g.install=function(e){e.component("VDropdown",g)};var y={name:"VModal",props:{open:{type:Boolean,default:!1},role:{type:String,default:"dialog",validator:function(e){return["dialog","alertdialog"].indexOf(e)>-1}},title:{type:String,default:"Modal title"},size:{type:String,default:"2",validator:function(e){return["1","2","3"].indexOf(e)>-1}},dismissible:{type:Boolean,default:!0},dismissOn:{type:String,default:"backdrop esc close-button"}},computed:{dismissOnBackdrop:function(){return this.dismissOn.indexOf("backdrop")>-1},dismissOnCloseButton:function(){return this.dismissOn.indexOf("close-button")>-1},dismissOnEsc:function(){return this.dismissOn.indexOf("esc")>-1},classes:function(){return["modal--size-"+this.size]}},methods:{close:function(e){this.dismissible&&(e.currentTarget===this.$refs.backdrop&&e.target!==e.currentTarget||this.$emit("close"))},onOpen:function(){this.lastfocusedElement=document.activeElement,this.$refs.container.focus(),document.body.classList.add("modal--open"),document.addEventListener("focus",this.restrictFocus,!0),this.$emit("open")},onClose:function(){this.teardownModal(),this.$emit("close")},redirectFocus:function(){this.$refs.container.focus()},restrictFocus:function(e){this.$refs.container.contains(e.target)||(e.stopPropagation(),this.$refs.container.focus())},teardownModal:function(){document.body.classList.remove("modal--open"),document.removeEventListener("focus",this.restrictFocus,!0),this.lastfocusedElement&&this.lastfocusedElement.focus()},onEnter:function(){this.$emit("reveal")},onLeave:function(){this.$emit("hide"),document.body.classList.remove("modal--open")}},components:{VButton:r},watch:{open:function(){var e=this;this.$nextTick(function(){e[e.open?"onOpen":"onClose"]()})}},beforeDestroy:function(){this.open&&this.teardownModal()}},_="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var k=document.head||document.getElementsByTagName("head")[0],C={};var x=function(e){return function(e,t){return function(e,t){var i=_?t.media||"default":e,n=C[i]||(C[i]={ids:new Set,styles:[]});if(!n.ids.has(e)){n.ids.add(e);var s=t.source;if(t.map&&(s+="\n/*# sourceURL="+t.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",t.media&&n.element.setAttribute("media",t.media),k.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(s),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{var a=n.ids.size-1,o=document.createTextNode(s),r=n.element.childNodes;r[a]&&n.element.removeChild(r[a]),r.length?n.element.insertBefore(o,r[a]):n.element.appendChild(o)}}}(e,t)}},V=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("transition",{attrs:{name:"modal"},on:{"after-enter":e.onEnter,"after-leave":e.onLeave}},[e.open?i("div",{staticClass:"modal modal__mask",class:e.classes,attrs:{role:e.role}},[i("div",{ref:"backdrop",staticClass:"modal__wrapper",on:{click:function(t){e.dismissOnBackdrop&&e.close(t)}}},[i("div",{ref:"container",staticClass:"modal__container",attrs:{tabindex:"-1"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.dismissOnEsc&&e.close(t)}}},[i("div",{staticClass:"modal__header"},[i("h3",{staticClass:"modal__title"},[e._v(e._s(e.title))]),e._v(" "),i("v-button",{attrs:{appearance:"subtle",size:"1"},on:{click:e.close}},[i("svg",{attrs:{slot:"icon",width:"16",height:"16"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])],1),e._v(" "),i("div",{staticClass:"modal__body"},[e._t("default")],2),e._v(" "),i("div",{staticClass:"modal__footer"},[e._t("footer")],2),e._v(" "),i("div",{attrs:{tabindex:"0"},on:{focus:function(t){return t.stopPropagation(),e.redirectFocus(t)}}})])])]):e._e()])},staticRenderFns:[]},function(e){e&&e("data-v-5d25e129_0",{source:".modal-enter{opacity:0}.modal-leave-active{opacity:0}.modal-enter .modal__container,.modal-leave-active .modal__container{transform:scale(1.1)}",map:void 0,media:void 0})},y,void 0,!1,void 0,x,void 0);V.install=function(e){e.component("VModal",V)};var S=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"notification",class:e.classes},[i("div",{staticClass:"notification__icon"},["info"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"info-icon"}})]):e._e(),e._v(" "),"success"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"success-icon"}})]):e._e(),e._v(" "),"warning"===e.type?i("svg",{attrs:{width:"20",height:"16"}},[i("use",{attrs:{"xlink:href":"warning-icon"}})]):e._e(),e._v(" "),"error"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"error-icon"}})]):e._e()]),e._v(" "),i("div",{staticClass:"notification__content"},[i("div",{staticClass:"notification__title"},[e._v(e._s(e.computedTitle))]),e._v(" "),i("div",{staticClass:"notification__message"},[e._v(e._s(e.message))]),e._v(" "),e.actions.length>0?i("div",{staticClass:"notification__actions"},e._l(e.actions,function(t,n){return i("div",{key:n,staticClass:"notification__action"},[i("v-button",{attrs:{appearance:t.appearance,size:"2"},on:{click:function(i){return e.actionClickHandler(t.onClick)}}},[e._v("\n "+e._s(t.text)+"\n ")])],1)}),0):e._e()]),e._v(" "),e.dismissible?i("div",{staticClass:"notification__close"},[i("v-button",{attrs:{appearance:"subtle",size:"1"},on:{click:function(t){return t.stopPropagation(),e.onClose(t)}}},[i("svg",{attrs:{slot:"icon",width:"14",height:"14"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])],1):e._e()])},staticRenderFns:[]},void 0,{name:"VNotification",props:{id:{type:[Number,String],default:1},type:{type:String,default:"info"},title:{type:String},message:String,dismissible:{type:Boolean,default:!0},timeout:{type:Number,default:5e3,validator:function(e){return e>0}},actions:{type:Array,default:function(){return[]}}},computed:{computedTitle:function(){return this.title?this.title:(e=this.type).charAt(0).toUpperCase()+e.slice(1);var e},classes:function(){return["notification--"+this.type]}},mounted:function(){this.timeout&&this.dismissible&&setTimeout(this.onClose,this.timeout)},methods:{onClose:function(e){this.$emit("close",e)},actionClickHandler:function(e){e?(e(),this.onClose()):this.onClose()}},components:{VButton:r}},void 0,!1,void 0,void 0,void 0);S.install=function(e){e.component("VNotification",S)};var $=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"notification-container",class:e.classes},[i("transition-group",{attrs:{name:"list"}},e._l(e.queue,function(t,n){return i("v-notification",{key:t.timestamp.getTime(),attrs:{id:"notification-"+n,type:t.type,title:t.title,message:t.message,actions:t.actions,timestamp:t.timestamp},on:{close:function(i){return e.remove(t.timestamp)}}})}),1)],1)},staticRenderFns:[]},function(e){e&&e("data-v-8fb8f2f0_0",{source:".list-enter-active,.list-leave-active{transition:all .3s}.list-enter,.list-leave-to{opacity:0;transform:translateX(30px)}",map:void 0,media:void 0})},{name:"VNotificationContainer",props:{queue:{type:Array,default:function(){return[]}},position:{type:String,default:"top-right",validator:function(e){return["top-left","top-right","bottom-right","bottom-left"].indexOf(e)>-1}}},computed:{classes:function(){return["notification-container--"+this.position]}},methods:{create:function(e){var t=e;t.timestamp=new Date,t.timestamp.setMilliseconds(t.timestamp.getMilliseconds()+this.queue.length),this.queue.push(t)},remove:function(e){var t=this.queue.findIndex(function(t){return t.timestamp===e});-1!==t&&this.queue.splice(t,1)}},components:{VNotification:S}},void 0,!1,void 0,x,void 0);$.install=function(e){e.component("VNotificationContainer",$)};var O=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ul",{staticClass:"pagination"},[i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,"aria-label":"Go to first page",disabled:e.isInFirstPage},on:{click:e.onClickFirstPage}},[e._v("\n First\n ")])],1),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,"aria-label":"Go to previous page",disabled:e.isInFirstPage},on:{click:function(t){return t.preventDefault(),e.onClickPreviousPage(t)}}},[e._v("\n Previous\n ")])],1),e._v(" "),e._l(e.pages,function(t,n){return i("li",{key:n,staticClass:"pagination__item"},[i("v-button",{class:{active:e.isPageActive(t.name)},attrs:{size:e.size,appearance:e.isPageActive(t.name)?"primary":"default","aria-label":"Go to page number "+t.name},on:{click:function(i){return i.preventDefault(),e.onClickPage(t.name)}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,disabled:e.isInLastPage,"aria-label":"Go to next page"},on:{click:e.onClickNextPage}},[e._v("\n Next\n ")])],1),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,disabled:e.isInLastPage,"aria-label":"Go to last page"},on:{click:e.onClickLastPage}},[e._v("\n Last\n ")])],1)],2)},staticRenderFns:[]},void 0,{name:"VPagination",props:{value:{type:Number,default:1},maxVisibleButtons:{type:Number,default:3},total:{type:Number,required:!0},perPage:{type:Number,default:10},size:{type:String,default:"4"}},data:function(){return{currentPage:this.value}},computed:{startPage:function(){return 1===this.currentPage?1:this.currentPage===this.totalPages?this.totalPages-this.maxVisibleButtons+1:this.currentPage-1},endPage:function(){return Math.min(this.startPage+this.maxVisibleButtons-1,this.totalPages)},pages:function(){for(var e=[],t=this.startPage;t<=this.endPage;t+=1)e.push({name:t,isDisabled:t===this.currentPage});return e},isInFirstPage:function(){return 1===this.currentPage},isInLastPage:function(){return this.currentPage===this.totalPages},totalPages:function(){return Math.ceil(this.total/this.perPage)}},methods:{onClickFirstPage:function(){this.$emit("input",1)},onClickPreviousPage:function(){this.$emit("input",this.currentPage-1)},onClickPage:function(e){this.$emit("input",e)},onClickNextPage:function(){this.$emit("input",this.currentPage+1)},onClickLastPage:function(){this.$emit("input",this.totalPages)},isPageActive:function(e){return this.currentPage===e}},components:{VButton:r},watch:{value:function(e){this.currentPage=e}}},void 0,!1,void 0,void 0,void 0);O.install=function(e){e.component("VPagination",O)};var w=n({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"progress",class:this.classes},["determinate"===this.type?t("div",{staticClass:"progress__bar",style:{width:this.moderatedProgress+"%"},attrs:{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":this.moderatedProgress}}):t("div",{staticClass:"progress__bar",attrs:{role:"progressbar","aria-valuemax":100,"aria-valuemin":0}})])},staticRenderFns:[]},void 0,{name:"VProgress",props:{type:{type:String,default:"indeterminate",validator:function(e){return["indeterminate","determinate"].indexOf(e)>-1}},progress:{type:Number,default:0}},computed:{classes:function(){return["progress--"+this.type]},moderatedProgress:function(){return this.progress<0?0:this.progress>100?100:this.progress}}},void 0,!1,void 0,void 0,void 0);w.install=function(e){e.component("VProgress",w)};var P=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"radio",attrs:{for:e.id}},[i("input",{staticClass:"radio__input",attrs:{type:"radio",id:e.id,disabled:e.disabled,name:e.name,tabindex:e.tabindex},domProps:{checked:e.checked,value:e.trueValue},on:{blur:e.onBlur,change:e.onChange,focus:e.onFocus}}),e._v(" "),i("span",{staticClass:"radio__circle"}),e._v(" "),i("span",{staticClass:"radio__text"},[e._v(e._s(e.label))])])},staticRenderFns:[]},void 0,{name:"VRadio",props:{id:{type:[String,Number]},name:{type:String,required:!0},label:{type:String,required:!0},tabindex:{type:[String,Number]},value:{type:[Number,String],required:!0},trueValue:{type:[Number,String],required:!0},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},created:function(){this.checked&&this.$emit("input",this.trueValue)},computed:{isChecked:function(){return String(this.value).length>0&&this.value==this.trueValue}},methods:{onFocus:function(e){this.isActive=!0,this.$emit("focus",e)},onBlur:function(e){this.isActive=!1,this.$emit("blur",e)},onChange:function(e){this.disabled||this.$emit("input",this.trueValue),this.$emit("change",this.isChecked,e)},focus:function(){this.$refs.input.focus()}}},void 0,!1,void 0,void 0,void 0);P.install=function(e){e.component("VRadio",P)};var T=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"radio-group"},[i("div",{staticClass:"radio-group__label"},[e._v(e._s(e.label))]),e._v(" "),i("div",{staticClass:"radio-group__list"},e._l(e.options,function(t,n){return i("div",{key:t[e.keys.id]||e.name+"-"+n,staticClass:"radio-group__item"},[i("VRadio",{key:t[e.keys.id],attrs:{id:t[e.keys.id]||e.name+"-"+n,label:t[e.keys.label]||t,checked:e.isOptionCheckedByDefault(t),disabled:e.disabled||t[e.keys.disabled],name:e.name,tabindex:e.tabindex,"true-value":t[e.keys.value]||t},on:{blur:e.onBlur,focus:e.onFocus},model:{value:e.selectedOptionValue,callback:function(t){e.selectedOptionValue=t},expression:"selectedOptionValue"}})],1)}),0)])},staticRenderFns:[]},void 0,{name:"VRadioGroup",props:{name:{type:String,required:!0},tabindex:{type:[String,Number]},label:{type:String},options:{type:Array,required:!0},value:{type:[Number,String],required:!0},keys:{type:Object,default:function(){return{id:"id",label:"label",value:"value",checked:"checked",disabled:"disabled"}}},disabled:{type:Boolean,default:!1}},data:function(){return{initialValue:this.value,selectedOptionValue:this.value}},methods:{reset:function(){this.$emit("input",this.initialValue)},isOptionCheckedByDefault:function(e){return this.initialValue==e[this.keys.value]||this.initialValue==e||e[this.keys.checked]},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},watch:{selectedOptionValue:function(){this.$emit("input",this.selectedOptionValue),this.$emit("change",this.selectedOptionValue)},value:function(){this.selectedOptionValue=this.value}},components:{VRadio:P}},void 0,!1,void 0,void 0,void 0);T.install=function(e){e.component("VRadio",T)};var B=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"select-option",class:e.classes,attrs:{"data-value":e.option[e.keys.value]}},[e._t("default",[i("div",[e._v(e._s(e.option[e.keys.label]))])]),e._v(" "),e.multiple&&!e.disabled?i("div",{staticClass:"select-option__checkbox",class:{"select-option__checkbox--selected":e.selected}}):e._e()],2)},staticRenderFns:[]},void 0,{name:"VSelectOption",props:{option:{type:[String,Object]},selected:Boolean,highlighted:Boolean,disabled:Boolean,multiple:Boolean,keys:{type:Object,default:function(){return{label:"label",value:"value",image:"image",disabled:"disabled"}}}},computed:{classes:function(){return[{"select-option--selected":this.selected},{"select-option--highlighted":this.highlighted},{"select-option--disabled":this.disabled}]}}},void 0,!1,void 0,void 0,void 0);B.install=function(e){e.component("VSelectOption",B)};var E,F=!i.prototype.$isServer&&document.addEventListener?function(e,t,i){e&&t&&i&&e.addEventListener(t,i,!1)}:function(e,t,i){e&&t&&i&&e.attachEvent("on"+t,i)},N=[],A="@@clickoutsideContext",I=0;function D(e,t,i){return function(n,s){void 0===n&&(n={}),void 0===s&&(s={}),!(i&&i.context&&n.target&&s.target)||e.contains(n.target)||e.contains(s.target)||e===n.target||i.context.popperElm&&(i.context.popperElm.contains(n.target)||i.context.popperElm.contains(s.target))||(t.expression&&e[A].methodName&&i.context[e[A].methodName]?i.context[e[A].methodName]():e[A].bindingFn&&e[A].bindingFn())}}!i.prototype.$isServer&&F(document,"mousedown",function(e){return E=e}),!i.prototype.$isServer&&F(document,"mouseup",function(e){N.forEach(function(t){return t[A].documentHandler(e,E)})});var R={bind:function(e,t,i){N.push(e);var n=I++;e[A]={id:n,documentHandler:D(e,t,i),methodName:t.expression,bindingFn:t.value}},update:function(e,t,i){e[A].documentHandler=D(e,t,i),e[A].methodName=t.expression,e[A].bindingFn=t.value},unbind:function(e){for(var t=N.length,i=0;i0&&e.multiple?i("div",[i("v-chip",{staticClass:"select__selected-option",attrs:{title:e.mutableValue[0].label,closable:""},on:{click:function(e){e.stopPropagation()},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:(t.stopPropagation(),e.deleteSelectedOption(t,e.mutableValue[0]))},delete:function(t){return e.deleteSelectedOption(t,e.mutableValue[0])}}}),e._v(" "),e.mutableValue.length>1?i("v-chip",{attrs:{title:"+ "+(e.mutableValue.length-1)}}):e._e()],1):e._e(),e._v(" "),e.mutableValue&&!e.$scopedSlots.option?i("div",[e._v(e._s(e.mutableValue[e.keys.label]))]):e._e(),e._v(" "),e.isPlaceholderVisible?i("div",{staticClass:"select__placeholder"},[e._v(e._s(e.placeholder))]):e._e()],2),e._v(" "),e.isSlotDisplayed&&e.clearable?i("svg",{staticClass:"select__clear",attrs:{height:"16",width:"16"},on:{click:function(t){return t.stopPropagation(),e.clear(t)}}},[i("use",{attrs:{"xlink:href":"#cross-icon"}})]):i("svg",{staticClass:"select__chevron",attrs:{width:"18px",height:"18px"}},[i("use",{attrs:{"xlink:href":"#chevron-down-icon"}})])]),e._v(" "),i("div",{ref:"dropdown",staticClass:"select__dropdown",attrs:{tabindex:"-1"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:(t.preventDefault(),e.closeDropdown())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.highlightOption("next"))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.handleOnEnterSelectOption(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.onBlur(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.highlightOption("prev"))}]}},[e.filterable?i("div",{staticClass:"select__filter-wrapper"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"filter",staticClass:"select__filter",attrs:{tabindex:"0",type:"text",placeholder:"Search",autocomplete:"off"},domProps:{value:e.query},on:{input:function(t){t.target.composing||(e.query=t.target.value)}}})]):e._e(),e._v(" "),e._l(e.filteredOptions,function(t,n){return i("v-select-option",{key:n,ref:"options",refInFor:!0,attrs:{option:t,multiple:e.multiple,keys:e.keys,disabled:t[e.keys.disabled],selected:e.isOptionSelected(t),highlighted:e.highlightedIndex===n},nativeOn:{click:function(i){return i.stopPropagation(),e.select(t,n)}}},[e._t("option",null,{index:n,option:t})],2)})],2)])},staticRenderFns:[]},void 0,{name:"VSelect",directives:{clickoutside:R},props:{id:{type:[Number,String]},tabindex:{type:[Number,String],default:0},name:{type:String},label:{type:String,default:"Label"},value:{type:[Array,Object],required:!0},multiple:{type:Boolean},filterable:{type:Boolean},clearable:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},placeholder:{type:String,default:"Placeholder"},options:{type:Array,default:function(){return[]}},keys:{type:Object,default:function(){return{label:"label",value:"value",image:"image",disabled:"disabled"}}}},created:function(){this.mutableValue=this.multiple?[]:this.value,this.mutableOptions=this.options.slice(0)},data:function(){return{query:"",isOpen:!1,isActive:!1,mutableValue:null,mutableOptions:[],highlightedIndex:-1}},computed:{classes:function(){return[{"select--open":this.isOpen},{"select--disabled":this.disabled}]},isSlotDisplayed:function(){return this.multiple?this.mutableValue.length>0&&this.mutableValue.length<=1:""!==this.mutableValue&&(e=this.mutableValue,!(0===Object.keys(e).length));var e},isPlaceholderVisible:function(){return""===this.mutableValue||null===this.mutableValue||0===this.mutableValue.length||0===Object.keys(this.mutableValue).length},filteredOptions:function(){var e=this;return this.filterable?this.mutableOptions.filter(function(t,i){return e.defaultFilter(t,i)}):this.mutableOptions}},methods:{handleClickOutside:function(){this.isOpen?this.closeDropdown():this.isActive&&(this.isActive=!1)},handleOnEnterSelectOption:function(){var e=this.filteredOptions[this.highlightedIndex];this.select(e)},select:function(e){e.disabled||(this.multiple?this.isOptionSelected(e)?this.deselect(e):(this.mutableValue.push(e),this.setValue(this.mutableValue)):(this.setValue(e),this.closeDropdown()),this.$emit("select",e))},deselect:function(e){var t=this.mutableValue.indexOf(e);this.mutableValue.splice(t,1)},setValue:function(e){this.mutableValue=e,this.$emit("input",e),this.$emit("change",e)},toggleDropdown:function(){this[this.isOpen?"closeDropdown":"openDropdown"]()},onOpen:function(){var e=this;this.$nextTick(function(){e.$refs.dropdown.focus(),e.scrollOptionIntoView(e.$refs.dropdown.querySelector(".select-option--selected"))})},onBlur:function(){this.isActive=!1,this.$emit("blur"),this.isOpen&&this.closeDropdown()},onFocus:function(){this.isActive=!0,this.$emit("focus")},openDropdown:function(){this.disabled||(this.isOpen=!0,this.$refs.dropdown.focus())},closeDropdown:function(){var e=this;this.isOpen=!1,this.$refs.container.focus(),this.$nextTick(function(){e.query=""})},isOptionSelected:function(e){var t=this;return this.multiple?this.mutableValue.some(function(i){return i[t.keys.label]===e[t.keys.label]}):this.mutableValue[this.keys.label]===e[this.keys.label]},clear:function(){var e=this;this.multiple?this.setValue([]):this.setValue({}),this.highlightedIndex=-1,this.$emit("clear"),this.$nextTick(function(){var t;(t=e.$refs.dropdown)&&(t.scrollTop=0)})},reset:function(){this.clear()},deleteSelectedOption:function(e,t){var i=this.mutableValue.indexOf(t);i>-1&&this.mutableValue.splice(i,1),e.stopPropagation()},defaultFilter:function(e){var i=this.query.toLowerCase(),n=e[this.keys.label];return"string"==typeof n&&(n=n.toLowerCase()),t(i,n)},highlightOption:function(e){var t=this;this.$refs.options.length!==this.highlightedIndex&&("next"===e&&(this.highlightedIndex=this.highlightedIndex+1,this.highlightedIndex===this.$refs.options.length&&(this.highlightedIndex=0)),"prev"===e&&(this.highlightedIndex=this.highlightedIndex-1,this.highlightedIndex<0&&(this.highlightedIndex=this.$refs.options.length-1)),this.filteredOptions[this.highlightedIndex].disabled&&this.highlightOption(e),this.$nextTick(function(){t.scrollOptionIntoView(t.$refs.options[t.highlightedIndex].$el)}))},scrollOptionIntoView:function(e){var t,i;t=e,void 0===(i={container:this.$refs.dropdown,marginTop:8})&&(i={container:null,marginTop:0}),t&&(i.container=i.container||t.parentElement,function(e,t){if(e){t=t||e.parentElement;var i=e.offsetTop,n=t.scrollTop,s=i+e.offsetHeight,a=t.offsetHeight;return i>=n&&s<=a}}(t,i.container)||(i.container.scrollTop=t.offsetTop-i.marginTop))}},watch:{value:function(e){this.mutableValue=e},options:function(e){this.mutableOptions=e},isOpen:function(){this.isOpen?(this.onOpen(),this.$emit("open")):this.$emit("close")},query:function(){this.highlightedIndex=0}},components:{VSelectOption:B,VChip:f}},void 0,!1,void 0,void 0,void 0);L.install=function(e){e.component("VSelect",L)};var q=n({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"spinner",class:this.classes})},staticRenderFns:[]},void 0,{name:"VSpinner",props:{appearance:{type:String,default:"default"}},computed:{classes:function(){return["spinner--"+this.appearance]}}},void 0,!1,void 0,void 0,void 0);q.install=function(e){e.component("VSpinner",q)};var M=n({render:function(){var e=this.$createElement,t=this._self._c||e;return t("li",{staticClass:"step",class:this.classes,on:{click:this.onClick}},[t("button",{staticClass:"step__marker"},[this.hideLabel?this._e():t("span",{staticClass:"step__label"},[this._v(this._s(this.title))])])])},staticRenderFns:[]},void 0,{name:"VStep",props:{id:{type:Number,required:!0},title:{type:String,required:!0},hideLabel:{type:Boolean,default:!1}},data:function(){return{}},computed:{isActive:function(){return this.$parent.currentStep===this.id},isPrevious:function(){return this.$parent.currentStep>this.id},isNext:function(){return this.$parent.currentStepe&&!this.disablePrev&&this.onChange(this.currentStep-1)},onChange:function(e){e>8&255]+H[e>>16&255]+H[e>>24&255]+"-"+H[255&t]+H[t>>8&255]+"-"+H[t>>16&15|64]+H[t>>24&255]+"-"+H[63&i|128]+H[i>>8&255]+"-"+H[i>>16&255]+H[i>>24&255]+H[255&n]+H[n>>8&255]+H[n>>16&255]+H[n>>24&255]},U=function(e){return(e=e||"")+G().split("-")[0]},K=n({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"tab",class:{"tab--active":this.isActive,"tab--disabled":this.disabled},attrs:{role:"tabpanel",id:this.id,"aria-hidden":this.isActive?null:"true",tabindex:this.isActive?"0":null}},[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"VTab",props:{id:{type:String,default:function(){return U("tab-")}},title:String,selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isActive:!1}},created:function(){this.$parent.addTab(this)},beforeDestroy:function(){this.$parent.removeTab(this)},methods:{activate:function(){this.isActive=!0,this.$emit("select",this.id)},deactivate:function(){this.isActive=!1,this.$emit("deselect",this.id)}},watch:{disabled:function(){this.$parent.onTabDisabledChange(this)}}},void 0,!1,void 0,void 0,void 0);K.install=function(e){e.component("VTab",K)};var J=function(e,t,i){return d(e[i]).localeCompare(d(t[i]),void 0,{numeric:!0})},X=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"table-responsive"},[e._t("header",null,{items:e.items,selected:e.mutableSelected,handleSearchInput:function(t){return e.query=t},disabledSearch:0===e.items.length}),e._v(" "),e.ready?i("table",{staticClass:"table"},[i("thead",[0===e.items.length||e.items.length>0&&0===e.mutableItems.length?e._e():i("tr",[e.multiSelect?i("th",{staticClass:"table-select-td"},[i("input",{ref:"checkbox",attrs:{type:"checkbox"},domProps:{checked:e.mutableItems.length===e.mutableSelected.length},on:{change:e.handleSelectAll}})]):e._e(),e._v(" "),e._l(e.fields,function(t,n){return i("th",{key:n,class:[t.sortable?"table-sorting":null,e.sortBy===n?"table-sorting--"+(e.sortDesc?"desc":"asc"):"",t.class?t.class:null],on:{click:function(i){return e.onHeadClick(t,n)}}},[t.label?i("span",{staticClass:"table-sorting__label",domProps:{innerHTML:e._s(t.label)}}):e._e()])})],2)]),e._v(" "),i("tbody",[0===e.items.length?i("tr",{attrs:{colspan:Object.keys(e.fields).length}},[e._t("empty",[i("div",{staticClass:"table-empty",domProps:{innerHTML:e._s(e.emptyText)}})])],2):e._e(),e._v(" "),e._l(e.mutableItems,function(t,n){return i("tr",{key:n},[e.multiSelect?i("td",{staticClass:"table-select-td"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.selected[n],expression:"selected[index]"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected[n])?e._i(e.selected[n],null)>-1:e.selected[n]},on:{change:[function(t){var i=e.selected[n],s=t.target,a=!!s.checked;if(Array.isArray(i)){var o=e._i(i,null);s.checked?o<0&&e.$set(e.selected,n,i.concat([null])):o>-1&&e.$set(e.selected,n,i.slice(0,o).concat(i.slice(o+1)))}else e.$set(e.selected,n,a)},e.handleSelect]}})]):e._e(),e._v(" "),e._l(e.fields,function(s,a){return i("td",{key:a,class:"table-"+s.label.toLowerCase()},[e._t(a,[e._v("\n "+e._s(t[a])+"\n ")],{value:t[a],item:t,index:n})],2)})],2)}),e._v(" "),e.items.length>0&&0===e.mutableItems.length?i("tr",{attrs:{colspan:Object.keys(e.fields).length}},[e._t("emptyfiltered",[i("div",{staticClass:"table-empty",domProps:{innerHTML:e._s(e.emptyFilteredText)}})])],2):e._e()],2)]):i("div",{staticClass:"table-spinner"},[i("v-spinner")],1),e._v(" "),e.$scopedSlots.pagination?i("div",{staticClass:"table-pagination"},[e._t("pagination",null,{total:e.items.length,perPage:e.perPage})],2):e._e()],2)},staticRenderFns:[]},void 0,{name:"VTable",props:{ready:{type:Boolean,default:!0},value:{type:Array,default:function(){return[]}},fields:{type:Object,default:function(){}},items:{type:Array,default:function(){return[]}},multiSelect:{type:Boolean,default:!1},perPage:{type:Number,default:10},currentPage:{type:Number,default:1},sortCompare:{type:Function,default:null},emptyText:{type:String,default:"There is no records."},emptyFilteredText:{type:String,default:"There are no records matching your request."}},data:function(){return{query:"",selected:[],sortBy:null,sortDesc:!0}},computed:{mutableItems:function(){var e=this,i=this.items.slice();this.query&&(this.clearSelection(),i=i.filter(function(i){return t(e.query,d(i))}));var n=this.sortCompare||J;return this.sortBy&&(i=i.sort(function(t,i){var s=n(t,i,e.sortBy);return e.sortDesc?s:-1*s})),this.perPage&&(i=i.slice((this.currentPage-1)*this.perPage,this.currentPage*this.perPage)),i},mutableSelected:function(){var e=this;return this.mutableItems.map(function(t,i){if(e.selected[i])return t}).filter(function(e){return void 0!==e})}},methods:{onHeadClick:function(e,t){e.sortable?(t===this.sortBy&&(this.sortDesc=!this.sortDesc),this.sortBy=t):this.sortBy=null},handleSelect:function(){this.$emit("input",this.mutableSelected)},handleSelectAll:function(e){e.target.checked?this.selectAll():this.clearSelection(),this.handleSelect()},clearSelection:function(){this.selected=[]},selectAll:function(){this.selected=[].concat(this.mutableItems)}},components:{VSpinner:q}},void 0,!1,void 0,void 0,void 0);X.install=function(e){e.component("VTable",X)};var Q=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"table-header"},[e._t("title",[i("h2",{staticClass:"table-header__title"},[e._v(e._s(e.title))])]),e._v(" "),i("div",{staticClass:"table-header__actions"},[e.searchable?i("div",{staticClass:"table-header__search"},[i("v-textbox",{attrs:{floated:"",label:"Search",type:"text",placeholder:"Search",size:"3",wide:!1,disabled:e.disabledSearch},on:{input:e.handleSearchInput}})],1):e._e(),e._v(" "),e.$scopedSlots.action?i("div",{staticClass:"table-header__action"},[e._t("action")],2):e._e()])],2)},staticRenderFns:[]},void 0,{name:"VTableHeader",props:{title:{type:String,default:"Table title"},searchable:{type:Boolean,default:!0},handleSearchInput:{type:Function,default:function(){}},disabledSearch:{type:Boolean}}},void 0,!1,void 0,void 0,void 0);Q.install=function(e){e.component("VTableHeader",Q)};var W=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("li",{staticClass:"tabs__item",attrs:{role:"tab","aria-controls":e.id,"aria-selected":e.active?"true":null,tabindex:e.active?0:-1}},[i("a",{staticClass:"tabs__link",class:e.classes,attrs:{href:"#"},on:{click:e.onClick}},[i("div",{staticClass:"tabs__link-text"},[e._v(e._s(e.title))])])])},staticRenderFns:[]},void 0,{name:"VTabHeader",props:{id:{type:String,required:!0},title:{type:String,required:!0},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{classes:function(){return[{"tabs__link--active":this.active},{"tabs__link--disabled":this.disabled}]}},methods:{onClick:function(e){e.preventDefault(),this.$emit("click",e)}}},void 0,!1,void 0,void 0,void 0);W.install=function(e){e.component("VTabHeader",W)};var Y=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tabs",class:e.classes},[i("ul",{staticClass:"tabs__list",attrs:{role:"tablist"}},e._l(e.tabs,function(t){return i("v-tab-header",{key:t.id,ref:"tabHeaders",refInFor:!0,attrs:{active:e.activeTabId===t.id,disabled:t.disabled,id:t.id,title:t.title},on:{click:function(i){return e.selectTab(t)}},nativeOn:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])?null:"button"in t&&0!==t.button?null:e.selectPreviousTab(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])?null:"button"in t&&2!==t.button?null:e.selectNextTab(t)}]}})}),1),e._v(" "),i("div",{staticClass:"tabs__body"},[e._t("default")],2)])},staticRenderFns:[]},void 0,{name:"VTabs",props:{wide:{type:Boolean,default:!1}},data:function(){return{tabs:[],activeTabId:null,activeTabIndex:-1}},computed:{classes:function(){return[{"tabs--wide":this.wide}]}},methods:{addTab:function(e){this.tabs.push(e),(null===this.activeTabId||e.selected)&&(this.activeTabId=e.id)},removeTab:function(e){var t=this.tabs.indexOf(e);t>-1&&(this.tabs.splice(t,1),e.id===this.activeTabId&&this.selectTab(this.findNearestTab()))},onTabDisabledChange:function(e){e.disabled&&this.activeTabId===e.id&&this.selectTab(this.findNearestTab())},selectTab:function(e){null===e||e.disabled||e.id===this.activeTabId||(this.activeTabId=e.id,this.$emit("tab-change",e.id))},selectNextTab:function(){var e=this.findNextTab();e&&(this.selectTab(e),e.$el.focus())},selectPreviousTab:function(){var e=this.findPreviousTab();e&&(this.selectTab(e),e.$el.focus())},findNextTab:function(){for(var e=null,t=this.activeTabIndex+1;t=0;t--)if(this.$refs.tabHeaders[t]&&!this.$refs.tabHeaders[t].disabled){e=this.$refs.tabHeaders[t];break}return e},findNearestTab:function(){return this.findPreviousTab()||this.findNextTab()},findTabById:function(e){for(var t=0;t-1}},tabindex:[String,Number],multiline:{type:Boolean,default:!1},rows:{type:Number,default:2},min:Number,max:Number,step:{type:String,default:"any"},maxlength:Number,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},floated:{type:Boolean,default:!1},wide:{type:Boolean,default:!0},error:{type:Boolean,default:!1},errorText:{type:String},autocomplete:String,autofocus:{type:Boolean,default:!1}},computed:{minValue:function(){return"number"===this.type&&void 0!==this.min?this.min:null},maxValue:function(){return"number"===this.type&&void 0!==this.max?this.max:null},stepValue:function(){return"number"===this.type?this.step:null},classes:function(){return["textbox--size-"+this.size,{"textbox--floated":this.floated},{"textbox--floated-active":this.floated&&""!==this.value},{"textbox--wide":this.wide},{"textbox--error":this.error}]}},data:function(){return{isTouched:!1,initialValue:this.value}},created:function(){null===this.value&&(this.initialValue="",this.updateValue(""))},methods:{updateValue:function(e){this.$emit("input",e)},onChange:function(e){this.$emit("change",this.value,e)},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e),this.isTouched||(this.isTouched=!0,this.$emit("touch"))},onKeydown:function(e){this.$emit("keydown",e)},onKeydownEnter:function(e){this.$emit("keydown-enter",e)},reset:function(){document.activeElement!==this.$refs.input&&document.activeElement!==this.$refs.textarea||document.activeElement.blur(),this.updateValue(this.initialValue),this.resetTouched()},resetTouched:function(e){void 0===e&&(e={touched:!1}),this.isTouched=e.touched},focus:function(){(this.$refs.input||this.$refs.textarea).focus()}}},void 0,!1,void 0,void 0,void 0);ee.install=function(e){e.component("VTextbox",ee)};var te=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"toggle",class:e.classes,attrs:{for:e.id}},[i("input",{ref:"input",staticClass:"toggle__input",attrs:{id:e.id,name:e.name,disabled:e.disabled,tabindex:e.tabindex,type:"checkbox"},domProps:{checked:e.isChecked,value:e.submittedValue},on:{blur:e.onBlur,focus:e.onFocus,change:e.onChange}}),e._v(" "),i("span",{staticClass:"toggle__container"}),e._v(" "),i("span",{staticClass:"toggle__text"},[e._v(e._s(e.label))])])},staticRenderFns:[]},void 0,{name:"VToggle",props:{id:{type:[String,Number]},name:{type:String},label:{type:[String,Number]},value:{required:!0},submittedValue:{type:String,default:"on"},checked:{type:Boolean,default:!1},trueValue:{default:!0},falseValue:{default:!1},indeterminate:{type:Boolean,default:!1},tabindex:[String,Number],vertical:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isChecked:c(this.value,this.trueValue)||this.checked}},created:function(){this.$emit("input",this.isChecked?this.trueValue:this.falseValue)},computed:{classes:function(){return[{"toggle--vertical":this.vertical}]}},methods:{focus:function(){this.$refs.input.focus()},onChange:function(e){var t=this.isChecked,i=e.target.checked;this.$emit("input",i?this.trueValue:this.falseValue,e),t!==i&&this.$emit("change",i?this.trueValue:this.falseValue,e)},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},watch:{value:function(){this.isChecked=c(this.value,this.trueValue)}}},void 0,!1,void 0,void 0,void 0);te.install=function(e){e.component("VToggle",te)};var ie=Object.freeze({VAlert:s,VAvatar:a,VBadge:o,VButton:r,VCheckbox:h,VCheckboxGroup:p,VChip:f,VDropdown:g,VMenu:b,VMenuOption:m,VModal:V,VNotification:S,VNotificationContainer:$,VPagination:O,VPopover:v,VProgress:w,VRadio:P,VRadioGroup:T,VSelect:L,VSelectOption:B,VSpinner:q,VStepper:z,VTab:K,VTable:X,VTableHeader:Q,VTabs:Y,VTextbox:ee,VToggle:te}),ne=Object.freeze({Autofocus:Z,Clickoutside:R});var se={install:function e(t){e.installed||(e.installed=!0,Object.keys(ie).forEach(function(e){t.component(e,ie[e])}),Object.keys(ne).forEach(function(e){t.directive(e,ne[e])}))}},ae=null;"undefined"!=typeof window?ae=window.Vue:"undefined"!=typeof global&&(ae=global.Vue),ae&&ae.use(se);export default se;export{Z as Autofocus,R as Clickoutside,s as VAlert,a as VAvatar,o as VBadge,r as VButton,h as VCheckbox,p as VCheckboxGroup,f as VChip,g as VDropdown,b as VMenu,m as VMenuOption,V as VModal,S as VNotification,$ as VNotificationContainer,O as VPagination,v as VPopover,w as VProgress,P as VRadio,T as VRadioGroup,L as VSelect,B as VSelectOption,q as VSpinner,z as VStepper,K as VTab,X as VTable,Q as VTableHeader,Y as VTabs,ee as VTextbox,te as VToggle}; +import e from"popper.js";import t from"fuzzysearch";import i from"vue";var n=function(e,t,i,n,s,a,o,r,l,c){"boolean"!=typeof o&&(l=r,r=o,o=!1);var u,d="function"==typeof i?i.options:i;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),n&&(d._scopeId=n),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=u):t&&(u=o?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),u)if(d.functional){var h=d.render;d.render=function(e,t){return u.call(t),h(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,u):[u]}return i},s=n({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"alert",class:this.classes},[t("div",{staticClass:"alert__body"},[t("div",{staticClass:"alert__title"},[this._v(this._s(this.title))]),this._v(" "),t("div",{staticClass:"alert__text"},[this._t("default")],2)])])},staticRenderFns:[]},void 0,{name:"VAlert",props:{title:{type:String,default:"Default title"},type:{type:String,default:"info",validator:function(e){return["info","success","warn","error"].indexOf(e)>-1}},wide:{type:Boolean,default:!1}},computed:{classes:function(){return["alert--"+this.type,{"alert--wide":this.wide}]}}},void 0,!1,void 0,void 0,void 0);s.install=function(e){e.component("VAlert",s)};var a=n({render:function(){var e=this.$createElement;return(this._self._c||e)("img",{staticClass:"avatar",attrs:{src:this.src,alt:this.alt,width:this.size,height:this.size}})},staticRenderFns:[]},void 0,{name:"VAvatar",props:{src:{type:String,required:!0},size:{type:[String,Number],default:32},alt:{type:String,default:"Avatar"}}},void 0,!1,void 0,void 0,void 0);a.install=function(e){e.component("VAvatar",a)};var o=n({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"badge",class:this.classes,domProps:{textContent:this._s(this.text)}})},staticRenderFns:[]},void 0,{name:"VBadge",props:{type:{type:String,default:"default",validator:function(e){return["default","primary","alternative","warning","success","danger"].indexOf(e)>-1}},align:{type:String,default:"middle",validator:function(e){return["top","middle","bottom"].indexOf(e)>-1}},text:{type:[String,Number],required:!0}},computed:{classes:function(){return["badge--"+this.type,"badge--align-"+this.align]}}},void 0,!1,void 0,void 0,void 0);o.install=function(e){e.component("VBadge",o)};var r=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("button",e._g({staticClass:"button",class:e.classes,attrs:{disabled:e.disabled,type:e.type}},e.$listeners),[e._t("default"),e._v(" "),e.$slots.icon?i("div",{staticClass:"button__icon"},[e._t("icon")],2):e._e()],2)},staticRenderFns:[]},void 0,{name:"VButton",props:{type:{type:String,default:"button"},appearance:{type:String,default:"default",validator:function(e){return["default","primary","alternative","subtle","success","danger"].indexOf(e)>-1}},size:{type:String,default:"4",validator:function(e){return["0","1","2","3","4"].indexOf(e)>-1}},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},iconFirst:{type:Boolean,default:!1},wide:{type:Boolean,default:!1},inverted:{type:Boolean,default:!1}},computed:{classes:function(){return["button--"+this.appearance,"button--size-"+this.size,{"button--loading":this.loading},{"button--icon-only":!this.$slots.default},{"button--icon-first":this.iconFirst},{"button--wide":this.wide},{"button--inverted":this.inverted}]}}},void 0,!1,void 0,void 0,void 0);function l(e){return null!==e&&"object"==typeof e}function c(e,t){return e==t||!(!l(e)||!l(t))&&JSON.stringify(e)===JSON.stringify(t)}function u(e,t){for(var i=0;i0?[].concat(this.initialValue):[])},isOptionCheckedByDefault:function(e){return u(this.initialValue,e[this.keys.value]||e)>-1},onFocus:function(e){this.isActive=!0,this.$emit("focus",e)},onBlur:function(e){this.isActive=!1,this.$emit("blur",e)},onChange:function(e,t){if(!this.ignoreChange){var i=e[0],n=e[1],s=[],a=t[this.keys.value]||t,o=u(this.value,a);i&&o<0&&(s=this.value.concat(a)),!i&&o>-1&&(s=this.value.slice(0,o).concat(this.value.slice(o+1))),this.$emit("input",s),this.$emit("change",s,n)}}},components:{VCheckbox:h}},void 0,!1,void 0,void 0,void 0);p.install=function(e){e.component("VCheckboxGroup",p)};var f=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",e._g({ref:"chip",staticClass:"chip",class:e.classes,attrs:{tabindex:"0"}},e.$listeners),[i("div",{staticClass:"chip__text"},[e._v(e._s(e.title))]),e._v(" "),e.closable?i("div",{staticClass:"chip__close"},[i("button",{staticClass:"chip__delete",on:{click:function(t){return t.stopPropagation(),e.onDelete(t)}}},[i("svg",{attrs:{slot:"icon",height:"12",width:"12"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])]):e._e()])},staticRenderFns:[]},void 0,{name:"VChip",props:{title:String,appearance:{type:String},closable:Boolean},computed:{classes:function(){return["chip--"+this.appearance]}},methods:{onDelete:function(e){this.$emit("delete",e)}}},void 0,!1,void 0,void 0,void 0);f.install=function(e){e.component("VChip",f)};var v=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"popover",class:{"popover--has-max-height":e.hasMaxHeight},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.close(t)}}},[i("div",{ref:"trigger",staticClass:"popover__trigger"},[e._t("toggle")],2),e._v(" "),e.isActive?i("div",{ref:"content",staticClass:"popover__content",attrs:{role:"dialog","aria-haspopup":"true","aria-expanded":e.isActive?"true":"false",tabindex:"-1"}},[e._t("default"),e._v(" "),i("div",{staticClass:"popover__focus-redirector",attrs:{tabindex:"0"},on:{focus:e.restrictFocus}})],2):e._e()])},staticRenderFns:[]},void 0,{name:"VPopover",props:{trigger:{type:String,default:"click"},containFocus:{type:Boolean,default:!1},hasMaxHeight:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},offset:{type:[String,Number],default:"0"},manualOpen:{type:Boolean,default:!1},manualClose:{type:Boolean,default:!1},returnFocusOnClose:{type:Boolean,default:!0},focusRedirector:Function},data:function(){return{isActive:!1,popperInstance:null,focusedElBeforeOpen:null}},mounted:function(){this.addEventsListeners()},computed:{triggerEl:function(){return this.$refs.trigger},popperOptions:function(){return{placement:this.placement,modifiers:{offset:{offset:this.offset}}}}},methods:{addEventsListeners:function(){switch(this.trigger){case"click":this.manualClose||document.addEventListener("click",this.handleClickOutside,!0),this.manualOpen||this.triggerEl.addEventListener("click",this.toggle);break;case"hover":this.manualOpen||this.triggerEl.addEventListener("mouseenter",this.show),this.manualClose||document.addEventListener("mousemove",this.handleClickOutside,!0);break;default:throw new Error("[popover] "+this.trigger+" is not defined")}},removeEventsListeners:function(){switch(this.trigger){case"click":this.manualClose||document.removeEventListener("click",this.handleClickOutside,!0),this.triggerEl.removeEventListener("click",this.toggle);break;case"hover":this.manualOpen||this.triggerEl.removeEventListener("mouseenter",this.show),this.manualClose||document.removeEventListener("mousemove",this.handleClickOutside,!0);break;default:throw new Error("[popover] "+this.trigger+" is not defined")}},toggle:function(){this.isActive?this.close():this.show()},show:function(){var e=this;this.disabled||this.isActive||(this.focusedElBeforeOpen=document.activeElement,this.isActive=!0,this.initializePopper(),this.$nextTick(function(){e.$el.focus()}),this.$emit("open"))},close:function(){var e=this;this.isActive=!1,this.$nextTick(function(){e.destroyPopper()}),this.$emit("close"),this.returnFocusOnClose&&this.triggerEl.focus()},restrictFocus:function(e){this.containFocus?(e.stopPropagation(),this.focusRedirector?this.focusRedirector(e):this.$el.focus()):this.close()},initializePopper:function(){var t=this;this.$nextTick(function(){t.popperInstance=new e(t.triggerEl,t.$refs.content,t.popperOptions)})},destroyPopper:function(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)},handleClickOutside:function(e){this.$el.contains(e.target)||this.triggerEl.contains(e.target)||!this.isActive||this.close()}},beforeDestroy:function(){this.removeEventsListeners()}},void 0,!1,void 0,void 0,void 0);v.install=function(e){e.component("VPopover",v)};var m=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("li",e._g({ref:"menuOption",staticClass:"menu-option",class:e.classes,attrs:{role:"menu-item",tabindex:e.isDivider||e.disabled?null:"0"}},e.$listeners),[e.isDivider?e._e():e._t("default",[i("div",{staticClass:"menu-option__content"},[i("div",{staticClass:"menu-option__text"},[e._v(e._s(e.label))])])])],2)},staticRenderFns:[]},void 0,{name:"VMenuOption",props:{type:String,label:String,disabled:{type:Boolean,default:!1}},computed:{classes:function(){return{"menu-option--divider":this.isDivider,"menu-option--disabled":this.disabled}},isDivider:function(){return"divider"===this.type}}},void 0,!1,void 0,void 0,void 0);m.install=function(e){e.component("VMenuOption",m)};var b=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ul",{staticClass:"menu",attrs:{role:"menu"}},[e._l(e.options,function(t){return i("v-menu-option",{key:t.id,attrs:{disabled:t[e.keys.disabled],label:"divider"===t[e.keys.type]?null:t[e.keys.label]||t,type:t[e.keys.type]},on:{click:function(i){return e.selectOption(t)},keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),e.selectOption(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:(t.stopPropagation(),e.closeMenu(t))}]}},[e._t("option",null,{option:t})],2)}),e._v(" "),e.containFocus?i("div",{staticClass:"menu__focus-redirector",attrs:{tabindex:"0"},on:{focus:e.redirectFocus}}):e._e()],2)},staticRenderFns:[]},void 0,{name:"VMenu",props:{options:{type:Array,default:function(){return[]}},containFocus:{type:Boolean,default:!1},keys:{type:Object,default:function(){return{type:"type",label:"label",disabled:"disabled"}}}},methods:{selectOption:function(e){e.disabled||"divider"===e.type||(this.$emit("select",e),this.closeMenu())},closeMenu:function(){this.$emit("close")},redirectFocus:function(e){e.stopPropagation(),this.$el.querySelector(".menu-option").focus()}},components:{VMenuOption:m}},void 0,!1,void 0,void 0,void 0);b.install=function(e){e.component("VMenu",b)};var g=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dropdown"},[i("Popover",{ref:"popover",attrs:{"contain-focus":"",disabled:e.disabled,placement:e.placement},on:{open:e.onOpen,close:e.onClose}},[i("div",{staticClass:"dropdown__toggle",attrs:{slot:"toggle"},slot:"toggle"},[e._t("toggle")],2),e._v(" "),i("Menu",{attrs:{options:e.options,"contain-focus":e.containFocus},on:{select:e.onSelect,close:function(t){return e.$refs.popover.close()}}})],1)],1)},staticRenderFns:[]},void 0,{name:"VDropdown",props:{placement:{type:String,default:"bottom"},options:{type:Array,default:function(){return[]}},containFocus:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},methods:{onSelect:function(e){this.$emit("select",e)},onOpen:function(){this.$emit("open")},onClose:function(){this.$emit("close")}},components:{Popover:v,Menu:b}},void 0,!1,void 0,void 0,void 0);g.install=function(e){e.component("VDropdown",g)};var y={name:"VModal",props:{open:{type:Boolean,default:!1},role:{type:String,default:"dialog",validator:function(e){return["dialog","alertdialog"].indexOf(e)>-1}},title:{type:String,default:"Modal title"},size:{type:String,default:"2",validator:function(e){return["1","2","3"].indexOf(e)>-1}},dismissible:{type:Boolean,default:!0},dismissOn:{type:String,default:"backdrop esc close-button"}},computed:{dismissOnBackdrop:function(){return this.dismissOn.indexOf("backdrop")>-1},dismissOnCloseButton:function(){return this.dismissOn.indexOf("close-button")>-1},dismissOnEsc:function(){return this.dismissOn.indexOf("esc")>-1},classes:function(){return["modal--size-"+this.size]}},methods:{close:function(e){this.dismissible&&(e.currentTarget===this.$refs.backdrop&&e.target!==e.currentTarget||this.$emit("close"))},onOpen:function(){this.lastfocusedElement=document.activeElement,this.$refs.container.focus(),document.body.classList.add("modal--open"),document.addEventListener("focus",this.restrictFocus,!0),this.$emit("open")},onClose:function(){this.teardownModal(),this.$emit("close")},redirectFocus:function(){this.$refs.container.focus()},restrictFocus:function(e){this.$refs.container.contains(e.target)||(e.stopPropagation(),this.$refs.container.focus())},teardownModal:function(){document.body.classList.remove("modal--open"),document.removeEventListener("focus",this.restrictFocus,!0),this.lastfocusedElement&&this.lastfocusedElement.focus()},onEnter:function(){this.$emit("reveal")},onLeave:function(){this.$emit("hide"),document.body.classList.remove("modal--open")}},components:{VButton:r},watch:{open:function(){var e=this;this.$nextTick(function(){e[e.open?"onOpen":"onClose"]()})}},beforeDestroy:function(){this.open&&this.teardownModal()}},_="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var k=document.head||document.getElementsByTagName("head")[0],C={};var x=function(e){return function(e,t){return function(e,t){var i=_?t.media||"default":e,n=C[i]||(C[i]={ids:new Set,styles:[]});if(!n.ids.has(e)){n.ids.add(e);var s=t.source;if(t.map&&(s+="\n/*# sourceURL="+t.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",t.media&&n.element.setAttribute("media",t.media),k.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(s),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{var a=n.ids.size-1,o=document.createTextNode(s),r=n.element.childNodes;r[a]&&n.element.removeChild(r[a]),r.length?n.element.insertBefore(o,r[a]):n.element.appendChild(o)}}}(e,t)}},V=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("transition",{attrs:{name:"modal"},on:{"after-enter":e.onEnter,"after-leave":e.onLeave}},[e.open?i("div",{staticClass:"modal modal__mask",class:e.classes,attrs:{role:e.role}},[i("div",{ref:"backdrop",staticClass:"modal__wrapper",on:{click:function(t){e.dismissOnBackdrop&&e.close(t)}}},[i("div",{ref:"container",staticClass:"modal__container",attrs:{tabindex:"-1"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.dismissOnEsc&&e.close(t)}}},[i("div",{staticClass:"modal__header"},[i("h3",{staticClass:"modal__title"},[e._v(e._s(e.title))]),e._v(" "),i("v-button",{attrs:{appearance:"subtle",size:"1"},on:{click:e.close}},[i("svg",{attrs:{slot:"icon",width:"16",height:"16"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])],1),e._v(" "),i("div",{staticClass:"modal__body"},[e._t("default")],2),e._v(" "),i("div",{staticClass:"modal__footer"},[e._t("footer")],2),e._v(" "),i("div",{attrs:{tabindex:"0"},on:{focus:function(t){return t.stopPropagation(),e.redirectFocus(t)}}})])])]):e._e()])},staticRenderFns:[]},function(e){e&&e("data-v-5d25e129_0",{source:".modal-enter{opacity:0}.modal-leave-active{opacity:0}.modal-enter .modal__container,.modal-leave-active .modal__container{transform:scale(1.1)}",map:void 0,media:void 0})},y,void 0,!1,void 0,x,void 0);V.install=function(e){e.component("VModal",V)};var S=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"notification",class:e.classes},[i("div",{staticClass:"notification__icon"},["info"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"info-icon"}})]):e._e(),e._v(" "),"success"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"success-icon"}})]):e._e(),e._v(" "),"warning"===e.type?i("svg",{attrs:{width:"20",height:"16"}},[i("use",{attrs:{"xlink:href":"warning-icon"}})]):e._e(),e._v(" "),"error"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"error-icon"}})]):e._e()]),e._v(" "),i("div",{staticClass:"notification__content"},[i("div",{staticClass:"notification__title"},[e._v(e._s(e.computedTitle))]),e._v(" "),i("div",{staticClass:"notification__message"},[e._v(e._s(e.message))]),e._v(" "),e.actions.length>0?i("div",{staticClass:"notification__actions"},e._l(e.actions,function(t,n){return i("div",{key:n,staticClass:"notification__action"},[i("v-button",{attrs:{appearance:t.appearance,size:"2"},on:{click:function(i){return e.actionClickHandler(t.onClick)}}},[e._v("\n "+e._s(t.text)+"\n ")])],1)}),0):e._e()]),e._v(" "),e.dismissible?i("div",{staticClass:"notification__close"},[i("v-button",{attrs:{appearance:"subtle",size:"1"},on:{click:function(t){return t.stopPropagation(),e.onClose(t)}}},[i("svg",{attrs:{slot:"icon",width:"14",height:"14"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])],1):e._e()])},staticRenderFns:[]},void 0,{name:"VNotification",props:{id:{type:[Number,String],default:1},type:{type:String,default:"info"},title:{type:String},message:String,dismissible:{type:Boolean,default:!0},timeout:{type:Number,default:5e3,validator:function(e){return e>0}},actions:{type:Array,default:function(){return[]}}},computed:{computedTitle:function(){return this.title?this.title:(e=this.type).charAt(0).toUpperCase()+e.slice(1);var e},classes:function(){return["notification--"+this.type]}},mounted:function(){this.timeout&&this.dismissible&&setTimeout(this.onClose,this.timeout)},methods:{onClose:function(e){this.$emit("close",e)},actionClickHandler:function(e){e?(e(),this.onClose()):this.onClose()}},components:{VButton:r}},void 0,!1,void 0,void 0,void 0);S.install=function(e){e.component("VNotification",S)};var $=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"notification-container",class:e.classes},[i("transition-group",{attrs:{name:"list"}},e._l(e.queue,function(t,n){return i("v-notification",{key:t.timestamp.getTime(),attrs:{id:"notification-"+n,type:t.type,title:t.title,message:t.message,actions:t.actions,timestamp:t.timestamp},on:{close:function(i){return e.remove(t.timestamp)}}})}),1)],1)},staticRenderFns:[]},function(e){e&&e("data-v-8fb8f2f0_0",{source:".list-enter-active,.list-leave-active{transition:all .3s}.list-enter,.list-leave-to{opacity:0;transform:translateX(30px)}",map:void 0,media:void 0})},{name:"VNotificationContainer",props:{queue:{type:Array,default:function(){return[]}},position:{type:String,default:"top-right",validator:function(e){return["top-left","top-right","bottom-right","bottom-left"].indexOf(e)>-1}}},computed:{classes:function(){return["notification-container--"+this.position]}},methods:{create:function(e){var t=e;t.timestamp=new Date,t.timestamp.setMilliseconds(t.timestamp.getMilliseconds()+this.queue.length),this.queue.push(t)},remove:function(e){var t=this.queue.findIndex(function(t){return t.timestamp===e});-1!==t&&this.queue.splice(t,1)}},components:{VNotification:S}},void 0,!1,void 0,x,void 0);$.install=function(e){e.component("VNotificationContainer",$)};var O=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ul",{staticClass:"pagination"},[i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,"aria-label":"Go to first page",disabled:e.isInFirstPage},on:{click:e.onClickFirstPage}},[e._v("\n First\n ")])],1),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,"aria-label":"Go to previous page",disabled:e.isInFirstPage},on:{click:function(t){return t.preventDefault(),e.onClickPreviousPage(t)}}},[e._v("\n Previous\n ")])],1),e._v(" "),e._l(e.pages,function(t,n){return i("li",{key:n,staticClass:"pagination__item"},[i("v-button",{class:{active:e.isPageActive(t.name)},attrs:{size:e.size,appearance:e.isPageActive(t.name)?"primary":"default","aria-label":"Go to page number "+t.name},on:{click:function(i){return i.preventDefault(),e.onClickPage(t.name)}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,disabled:e.isInLastPage,"aria-label":"Go to next page"},on:{click:e.onClickNextPage}},[e._v("\n Next\n ")])],1),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,disabled:e.isInLastPage,"aria-label":"Go to last page"},on:{click:e.onClickLastPage}},[e._v("\n Last\n ")])],1)],2)},staticRenderFns:[]},void 0,{name:"VPagination",props:{value:{type:Number,default:1},maxVisibleButtons:{type:Number,default:3},total:{type:Number,required:!0},perPage:{type:Number,default:10},size:{type:String,default:"4"}},data:function(){return{currentPage:this.value}},computed:{startPage:function(){return 1===this.currentPage?1:this.currentPage===this.totalPages?this.totalPages-this.maxVisibleButtons+1:this.currentPage-1},endPage:function(){return Math.min(this.startPage+this.maxVisibleButtons-1,this.totalPages)},pages:function(){for(var e=[],t=this.startPage;t<=this.endPage;t+=1)e.push({name:t,isDisabled:t===this.currentPage});return e},isInFirstPage:function(){return 1===this.currentPage},isInLastPage:function(){return this.currentPage===this.totalPages},totalPages:function(){return Math.ceil(this.total/this.perPage)}},methods:{onClickFirstPage:function(){this.$emit("input",1)},onClickPreviousPage:function(){this.$emit("input",this.currentPage-1)},onClickPage:function(e){this.$emit("input",e)},onClickNextPage:function(){this.$emit("input",this.currentPage+1)},onClickLastPage:function(){this.$emit("input",this.totalPages)},isPageActive:function(e){return this.currentPage===e}},components:{VButton:r},watch:{value:function(e){this.currentPage=e}}},void 0,!1,void 0,void 0,void 0);O.install=function(e){e.component("VPagination",O)};var w=n({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"progress",class:this.classes},["determinate"===this.type?t("div",{staticClass:"progress__bar",style:{width:this.moderatedProgress+"%"},attrs:{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":this.moderatedProgress}}):t("div",{staticClass:"progress__bar",attrs:{role:"progressbar","aria-valuemax":100,"aria-valuemin":0}})])},staticRenderFns:[]},void 0,{name:"VProgress",props:{type:{type:String,default:"indeterminate",validator:function(e){return["indeterminate","determinate"].indexOf(e)>-1}},progress:{type:Number,default:0}},computed:{classes:function(){return["progress--"+this.type]},moderatedProgress:function(){return this.progress<0?0:this.progress>100?100:this.progress}}},void 0,!1,void 0,void 0,void 0);w.install=function(e){e.component("VProgress",w)};var P=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"radio",attrs:{for:e.id}},[i("input",{staticClass:"radio__input",attrs:{type:"radio",id:e.id,disabled:e.disabled,name:e.name,tabindex:e.tabindex},domProps:{checked:e.checked,value:e.trueValue},on:{blur:e.onBlur,change:e.onChange,focus:e.onFocus}}),e._v(" "),i("span",{staticClass:"radio__circle"}),e._v(" "),i("span",{staticClass:"radio__text"},[e._v(e._s(e.label))])])},staticRenderFns:[]},void 0,{name:"VRadio",props:{id:{type:[String,Number]},name:{type:String,required:!0},label:{type:String,required:!0},tabindex:{type:[String,Number]},value:{type:[Number,String],required:!0},trueValue:{type:[Number,String],required:!0},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},created:function(){this.checked&&this.$emit("input",this.trueValue)},computed:{isChecked:function(){return String(this.value).length>0&&this.value==this.trueValue}},methods:{onFocus:function(e){this.isActive=!0,this.$emit("focus",e)},onBlur:function(e){this.isActive=!1,this.$emit("blur",e)},onChange:function(e){this.disabled||this.$emit("input",this.trueValue),this.$emit("change",this.isChecked,e)},focus:function(){this.$refs.input.focus()}}},void 0,!1,void 0,void 0,void 0);P.install=function(e){e.component("VRadio",P)};var T=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"radio-group"},[i("div",{staticClass:"radio-group__label"},[e._v(e._s(e.label))]),e._v(" "),i("div",{staticClass:"radio-group__list"},e._l(e.options,function(t,n){return i("div",{key:t[e.keys.id]||e.name+"-"+n,staticClass:"radio-group__item"},[i("VRadio",{key:t[e.keys.id],attrs:{id:t[e.keys.id]||e.name+"-"+n,label:t[e.keys.label]||t,checked:e.isOptionCheckedByDefault(t),disabled:e.disabled||t[e.keys.disabled],name:e.name,tabindex:e.tabindex,"true-value":t[e.keys.value]||t},on:{blur:e.onBlur,focus:e.onFocus},model:{value:e.selectedOptionValue,callback:function(t){e.selectedOptionValue=t},expression:"selectedOptionValue"}})],1)}),0)])},staticRenderFns:[]},void 0,{name:"VRadioGroup",props:{name:{type:String,required:!0},tabindex:{type:[String,Number]},label:{type:String},options:{type:Array,required:!0},value:{type:[Number,String],required:!0},keys:{type:Object,default:function(){return{id:"id",label:"label",value:"value",checked:"checked",disabled:"disabled"}}},disabled:{type:Boolean,default:!1}},data:function(){return{initialValue:this.value,selectedOptionValue:this.value}},methods:{reset:function(){this.$emit("input",this.initialValue)},isOptionCheckedByDefault:function(e){return this.initialValue==e[this.keys.value]||this.initialValue==e||e[this.keys.checked]},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},watch:{selectedOptionValue:function(){this.$emit("input",this.selectedOptionValue),this.$emit("change",this.selectedOptionValue)},value:function(){this.selectedOptionValue=this.value}},components:{VRadio:P}},void 0,!1,void 0,void 0,void 0);T.install=function(e){e.component("VRadio",T)};var B=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"select-option",class:e.classes,attrs:{"data-value":e.option[e.keys.value]}},[e._t("default",[i("div",[e._v(e._s(e.option[e.keys.label]))])]),e._v(" "),e.multiple&&!e.disabled?i("div",{staticClass:"select-option__checkbox",class:{"select-option__checkbox--selected":e.selected}}):e._e()],2)},staticRenderFns:[]},void 0,{name:"VSelectOption",props:{option:{type:[String,Object]},selected:Boolean,highlighted:Boolean,disabled:Boolean,multiple:Boolean,keys:{type:Object,default:function(){return{label:"label",value:"value",image:"image",disabled:"disabled"}}}},computed:{classes:function(){return[{"select-option--selected":this.selected},{"select-option--highlighted":this.highlighted},{"select-option--disabled":this.disabled}]}}},void 0,!1,void 0,void 0,void 0);B.install=function(e){e.component("VSelectOption",B)};var E,F=!i.prototype.$isServer&&document.addEventListener?function(e,t,i){e&&t&&i&&e.addEventListener(t,i,!1)}:function(e,t,i){e&&t&&i&&e.attachEvent("on"+t,i)},N=[],A="@@clickoutsideContext",I=0;function D(e,t,i){return function(n,s){void 0===n&&(n={}),void 0===s&&(s={}),!(i&&i.context&&n.target&&s.target)||e.contains(n.target)||e.contains(s.target)||e===n.target||i.context.popperElm&&(i.context.popperElm.contains(n.target)||i.context.popperElm.contains(s.target))||(t.expression&&e[A].methodName&&i.context[e[A].methodName]?i.context[e[A].methodName]():e[A].bindingFn&&e[A].bindingFn())}}!i.prototype.$isServer&&F(document,"mousedown",function(e){return E=e}),!i.prototype.$isServer&&F(document,"mouseup",function(e){N.forEach(function(t){return t[A].documentHandler(e,E)})});var R={bind:function(e,t,i){N.push(e);var n=I++;e[A]={id:n,documentHandler:D(e,t,i),methodName:t.expression,bindingFn:t.value}},update:function(e,t,i){e[A].documentHandler=D(e,t,i),e[A].methodName=t.expression,e[A].bindingFn=t.value},unbind:function(e){for(var t=N.length,i=0;i0&&e.multiple?i("div",[i("v-chip",{staticClass:"select__selected-option",attrs:{title:e.mutableValue[0].label,closable:""},on:{click:function(e){e.stopPropagation()},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:(t.stopPropagation(),e.deleteSelectedOption(t,e.mutableValue[0]))},delete:function(t){return e.deleteSelectedOption(t,e.mutableValue[0])}}}),e._v(" "),e.mutableValue.length>1?i("v-chip",{attrs:{title:"+ "+(e.mutableValue.length-1)}}):e._e()],1):e._e(),e._v(" "),e.mutableValue&&!e.$scopedSlots.option?i("div",[e._v(e._s(e.mutableValue[e.keys.label]))]):e._e(),e._v(" "),e.isPlaceholderVisible?i("div",{staticClass:"select__placeholder"},[e._v(e._s(e.placeholder))]):e._e()],2),e._v(" "),e.isSlotDisplayed&&e.clearable?i("svg",{staticClass:"select__clear",attrs:{height:"16",width:"16"},on:{click:function(t){return t.stopPropagation(),e.clear(t)}}},[i("use",{attrs:{"xlink:href":"#cross-icon"}})]):i("svg",{staticClass:"select__chevron",attrs:{width:"18px",height:"18px"}},[i("use",{attrs:{"xlink:href":"#chevron-down-icon"}})])]),e._v(" "),i("div",{ref:"dropdown",staticClass:"select__dropdown",attrs:{tabindex:"-1"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:(t.preventDefault(),e.closeDropdown())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.highlightOption("next"))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.handleOnEnterSelectOption(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.onBlur(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.highlightOption("prev"))}]}},[e.filterable?i("div",{staticClass:"select__filter-wrapper"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"filter",staticClass:"select__filter",attrs:{tabindex:"0",type:"text",placeholder:"Search",autocomplete:"off"},domProps:{value:e.query},on:{input:function(t){t.target.composing||(e.query=t.target.value)}}})]):e._e(),e._v(" "),e._l(e.filteredOptions,function(t,n){return i("v-select-option",{key:n,ref:"options",refInFor:!0,attrs:{option:t,multiple:e.multiple,keys:e.keys,disabled:t[e.keys.disabled],selected:e.isOptionSelected(t),highlighted:e.highlightedIndex===n},nativeOn:{click:function(i){return i.stopPropagation(),e.select(t,n)}}},[e._t("option",null,{index:n,option:t})],2)})],2)])},staticRenderFns:[]},void 0,{name:"VSelect",directives:{clickoutside:R},props:{id:{type:[Number,String]},tabindex:{type:[Number,String],default:0},name:{type:String},label:{type:String,default:"Label"},value:{type:[Array,Object],required:!0},multiple:{type:Boolean},filterable:{type:Boolean},clearable:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},placeholder:{type:String,default:"Placeholder"},options:{type:Array,default:function(){return[]}},keys:{type:Object,default:function(){return{label:"label",value:"value",image:"image",disabled:"disabled"}}}},created:function(){this.mutableValue=this.multiple?[]:this.value,this.mutableOptions=this.options.slice(0)},data:function(){return{query:"",isOpen:!1,isActive:!1,mutableValue:null,mutableOptions:[],highlightedIndex:-1}},computed:{classes:function(){return[{"select--open":this.isOpen},{"select--disabled":this.disabled}]},isSlotDisplayed:function(){return this.multiple?this.mutableValue.length>0&&this.mutableValue.length<=1:""!==this.mutableValue&&(e=this.mutableValue,!(0===Object.keys(e).length));var e},isPlaceholderVisible:function(){return""===this.mutableValue||null===this.mutableValue||0===this.mutableValue.length||0===Object.keys(this.mutableValue).length},filteredOptions:function(){var e=this;return this.filterable?this.mutableOptions.filter(function(t,i){return e.defaultFilter(t,i)}):this.mutableOptions}},methods:{handleClickOutside:function(){this.isOpen?this.closeDropdown():this.isActive&&(this.isActive=!1)},handleOnEnterSelectOption:function(){var e=this.filteredOptions[this.highlightedIndex];this.select(e)},select:function(e){e.disabled||(this.multiple?this.isOptionSelected(e)?this.deselect(e):(this.mutableValue.push(e),this.setValue(this.mutableValue)):(this.setValue(e),this.closeDropdown()),this.$emit("select",e))},deselect:function(e){var t=this.mutableValue.indexOf(e);this.mutableValue.splice(t,1)},setValue:function(e){this.mutableValue=e,this.$emit("input",e),this.$emit("change",e)},toggleDropdown:function(){this[this.isOpen?"closeDropdown":"openDropdown"]()},onOpen:function(){var e=this;this.$nextTick(function(){e.$refs.dropdown.focus(),e.scrollOptionIntoView(e.$refs.dropdown.querySelector(".select-option--selected"))})},onBlur:function(){this.isActive=!1,this.$emit("blur"),this.isOpen&&this.closeDropdown()},onFocus:function(){this.isActive=!0,this.$emit("focus")},openDropdown:function(){this.disabled||(this.isOpen=!0,this.$refs.dropdown.focus())},closeDropdown:function(){var e=this;this.isOpen=!1,this.$refs.container.focus(),this.$nextTick(function(){e.query=""})},isOptionSelected:function(e){var t=this;return this.multiple?this.mutableValue.some(function(i){return i[t.keys.label]===e[t.keys.label]}):this.mutableValue[this.keys.label]===e[this.keys.label]},clear:function(){var e=this;this.multiple?this.setValue([]):this.setValue({}),this.highlightedIndex=-1,this.$emit("clear"),this.$nextTick(function(){var t;(t=e.$refs.dropdown)&&(t.scrollTop=0)})},reset:function(){this.clear()},deleteSelectedOption:function(e,t){var i=this.mutableValue.indexOf(t);i>-1&&this.mutableValue.splice(i,1),e.stopPropagation()},defaultFilter:function(e){var i=this.query.toLowerCase(),n=e[this.keys.label];return"string"==typeof n&&(n=n.toLowerCase()),t(i,n)},highlightOption:function(e){var t=this;this.$refs.options.length!==this.highlightedIndex&&("next"===e&&(this.highlightedIndex=this.highlightedIndex+1,this.highlightedIndex===this.$refs.options.length&&(this.highlightedIndex=0)),"prev"===e&&(this.highlightedIndex=this.highlightedIndex-1,this.highlightedIndex<0&&(this.highlightedIndex=this.$refs.options.length-1)),this.filteredOptions[this.highlightedIndex].disabled&&this.highlightOption(e),this.$nextTick(function(){t.scrollOptionIntoView(t.$refs.options[t.highlightedIndex].$el)}))},scrollOptionIntoView:function(e){var t,i;t=e,void 0===(i={container:this.$refs.dropdown,marginTop:8})&&(i={container:null,marginTop:0}),t&&(i.container=i.container||t.parentElement,function(e,t){if(e){t=t||e.parentElement;var i=e.offsetTop,n=t.scrollTop,s=i+e.offsetHeight,a=t.offsetHeight;return i>=n&&s<=a}}(t,i.container)||(i.container.scrollTop=t.offsetTop-i.marginTop))}},watch:{value:function(e){this.mutableValue=e},options:function(e){this.mutableOptions=e},isOpen:function(){this.isOpen?(this.onOpen(),this.$emit("open")):this.$emit("close")},query:function(){this.highlightedIndex=0}},components:{VSelectOption:B,VChip:f}},void 0,!1,void 0,void 0,void 0);L.install=function(e){e.component("VSelect",L)};var q=n({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"spinner",class:this.classes})},staticRenderFns:[]},void 0,{name:"VSpinner",props:{appearance:{type:String,default:"default"}},computed:{classes:function(){return["spinner--"+this.appearance]}}},void 0,!1,void 0,void 0,void 0);q.install=function(e){e.component("VSpinner",q)};var M=n({render:function(){var e=this.$createElement,t=this._self._c||e;return t("li",{staticClass:"step",class:this.classes,on:{click:this.onClick}},[t("button",{staticClass:"step__marker"},[this.hideLabel?this._e():t("span",{staticClass:"step__label"},[this._v(this._s(this.title))])])])},staticRenderFns:[]},void 0,{name:"VStep",props:{id:{type:Number,required:!0},title:{type:String,required:!0},hideLabel:{type:Boolean,default:!1}},data:function(){return{}},computed:{isActive:function(){return this.$parent.currentStep===this.id},isPrevious:function(){return this.$parent.currentStep>this.id},isNext:function(){return this.$parent.currentStepe&&!this.disablePrev&&this.onChange(this.currentStep-1)},onChange:function(e){e>8&255]+H[e>>16&255]+H[e>>24&255]+"-"+H[255&t]+H[t>>8&255]+"-"+H[t>>16&15|64]+H[t>>24&255]+"-"+H[63&i|128]+H[i>>8&255]+"-"+H[i>>16&255]+H[i>>24&255]+H[255&n]+H[n>>8&255]+H[n>>16&255]+H[n>>24&255]},U=function(e){return(e=e||"")+G().split("-")[0]},K=n({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"tab",class:{"tab--active":this.isActive,"tab--disabled":this.disabled},attrs:{role:"tabpanel",id:this.id,"aria-hidden":this.isActive?null:"true",tabindex:this.isActive?"0":null}},[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"VTab",props:{id:{type:String,default:function(){return U("tab-")}},title:String,selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isActive:!1}},created:function(){this.$parent.addTab(this)},beforeDestroy:function(){this.$parent.removeTab(this)},methods:{activate:function(){this.isActive=!0,this.$emit("select",this.id)},deactivate:function(){this.isActive=!1,this.$emit("deselect",this.id)}},watch:{disabled:function(){this.$parent.onTabDisabledChange(this)}}},void 0,!1,void 0,void 0,void 0);K.install=function(e){e.component("VTab",K)};var J=function(e,t,i){return d(e[i]).localeCompare(d(t[i]),void 0,{numeric:!0})},X=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"table-responsive"},[e._t("header",null,{items:e.items,selected:e.mutableSelected,handleSearchInput:function(t){return e.query=t},disabledSearch:0===e.items.length}),e._v(" "),e.ready?i("table",{staticClass:"table"},[i("thead",[0===e.items.length||e.items.length>0&&0===e.mutableItems.length?e._e():i("tr",[e.multiSelect?i("th",{staticClass:"table-select-td"},[i("input",{ref:"checkbox",attrs:{type:"checkbox"},domProps:{checked:e.mutableItems.length===e.mutableSelected.length},on:{change:e.handleSelectAll}})]):e._e(),e._v(" "),e._l(e.fields,function(t,n){return i("th",{key:n,class:[t.sortable?"table-sorting":null,e.sortBy===n?"table-sorting--"+(e.sortDesc?"desc":"asc"):"",t.class?t.class:null],on:{click:function(i){return e.onHeadClick(t,n)}}},[t.label?i("span",{staticClass:"table-sorting__label",domProps:{innerHTML:e._s(t.label)}}):e._e()])})],2)]),e._v(" "),i("tbody",[0===e.items.length?i("tr",{attrs:{colspan:Object.keys(e.fields).length}},[e._t("empty",[i("div",{staticClass:"table-empty",domProps:{innerHTML:e._s(e.emptyText)}})])],2):e._e(),e._v(" "),e._l(e.mutableItems,function(t,n){return i("tr",{key:n},[e.multiSelect?i("td",{staticClass:"table-select-td"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.selected[n],expression:"selected[index]"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected[n])?e._i(e.selected[n],null)>-1:e.selected[n]},on:{change:[function(t){var i=e.selected[n],s=t.target,a=!!s.checked;if(Array.isArray(i)){var o=e._i(i,null);s.checked?o<0&&e.$set(e.selected,n,i.concat([null])):o>-1&&e.$set(e.selected,n,i.slice(0,o).concat(i.slice(o+1)))}else e.$set(e.selected,n,a)},e.handleSelect]}})]):e._e(),e._v(" "),e._l(e.fields,function(s,a){return i("td",{key:a,class:"table-"+s.label.toLowerCase()},[e._t(a,[e._v("\n "+e._s(t[a])+"\n ")],{value:t[a],item:t,index:n})],2)})],2)}),e._v(" "),e.items.length>0&&0===e.mutableItems.length?i("tr",{attrs:{colspan:Object.keys(e.fields).length}},[e._t("emptyfiltered",[i("div",{staticClass:"table-empty",domProps:{innerHTML:e._s(e.emptyFilteredText)}})])],2):e._e()],2)]):i("div",{staticClass:"table-spinner"},[i("v-spinner")],1),e._v(" "),e.$scopedSlots.pagination?i("div",{staticClass:"table-pagination"},[e._t("pagination",null,{total:e.items.length,perPage:e.perPage})],2):e._e()],2)},staticRenderFns:[]},void 0,{name:"VTable",props:{ready:{type:Boolean,default:!0},value:{type:Array,default:function(){return[]}},fields:{type:Object,default:function(){}},items:{type:Array,default:function(){return[]}},multiSelect:{type:Boolean,default:!1},perPage:{type:Number,default:10},currentPage:{type:Number,default:1},sortCompare:{type:Function,default:null},emptyText:{type:String,default:"There is no records."},emptyFilteredText:{type:String,default:"There are no records matching your request."}},data:function(){return{query:"",selected:[],sortBy:null,sortDesc:!0}},computed:{mutableItems:function(){var e=this,i=this.items.slice();this.query&&(this.clearSelection(),i=i.filter(function(i){return t(e.query,d(i))}));var n=this.sortCompare||J;return this.sortBy&&(i=i.sort(function(t,i){var s=n(t,i,e.sortBy);return e.sortDesc?s:-1*s})),this.perPage&&(i=i.slice((this.currentPage-1)*this.perPage,this.currentPage*this.perPage)),i},mutableSelected:function(){var e=this;return this.mutableItems.map(function(t,i){if(e.selected[i])return t}).filter(function(e){return void 0!==e})}},methods:{onHeadClick:function(e,t){e.sortable?(t===this.sortBy&&(this.sortDesc=!this.sortDesc),this.sortBy=t):this.sortBy=null},handleSelect:function(){this.$emit("input",this.mutableSelected)},handleSelectAll:function(e){e.target.checked?this.selectAll():this.clearSelection(),this.handleSelect()},clearSelection:function(){this.selected=[]},selectAll:function(){this.selected=[].concat(this.mutableItems)}},components:{VSpinner:q}},void 0,!1,void 0,void 0,void 0);X.install=function(e){e.component("VTable",X)};var Q=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"table-header"},[e._t("title",[i("h2",{staticClass:"table-header__title"},[e._v(e._s(e.title))])]),e._v(" "),i("div",{staticClass:"table-header__actions"},[e.searchable?i("div",{staticClass:"table-header__search"},[i("v-textbox",{attrs:{floated:"",label:"Search",type:"text",placeholder:"Search",size:"3",wide:!1,disabled:e.disabledSearch},on:{input:e.handleSearchInput}})],1):e._e(),e._v(" "),e.$scopedSlots.action?i("div",{staticClass:"table-header__action"},[e._t("action")],2):e._e()])],2)},staticRenderFns:[]},void 0,{name:"VTableHeader",props:{title:{type:String,default:"Table title"},searchable:{type:Boolean,default:!0},handleSearchInput:{type:Function,default:function(){}},disabledSearch:{type:Boolean}}},void 0,!1,void 0,void 0,void 0);Q.install=function(e){e.component("VTableHeader",Q)};var W=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("li",{staticClass:"tabs__item",attrs:{role:"tab","aria-controls":e.id,"aria-selected":e.active?"true":null,tabindex:e.active?0:-1}},[i("a",{staticClass:"tabs__link",class:e.classes,attrs:{href:"#"},on:{click:e.onClick}},[i("div",{staticClass:"tabs__link-text"},[e._v(e._s(e.title))])])])},staticRenderFns:[]},void 0,{name:"VTabHeader",props:{id:{type:String,required:!0},title:{type:String,required:!0},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{classes:function(){return[{"tabs__link--active":this.active},{"tabs__link--disabled":this.disabled}]}},methods:{onClick:function(e){e.preventDefault(),this.$emit("click",e)}}},void 0,!1,void 0,void 0,void 0);W.install=function(e){e.component("VTabHeader",W)};var Y=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tabs",class:e.classes},[i("ul",{staticClass:"tabs__list",attrs:{role:"tablist"}},e._l(e.tabs,function(t){return i("v-tab-header",{key:t.id,ref:"tabHeaders",refInFor:!0,attrs:{active:e.activeTabId===t.id,disabled:t.disabled,id:t.id,title:t.title},on:{click:function(i){return e.selectTab(t)}},nativeOn:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])?null:"button"in t&&0!==t.button?null:e.selectPreviousTab(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])?null:"button"in t&&2!==t.button?null:e.selectNextTab(t)}]}})}),1),e._v(" "),i("div",{staticClass:"tabs__body"},[e._t("default")],2)])},staticRenderFns:[]},void 0,{name:"VTabs",props:{wide:{type:Boolean,default:!1}},data:function(){return{tabs:[],activeTabId:null,activeTabIndex:-1}},computed:{classes:function(){return[{"tabs--wide":this.wide}]}},methods:{addTab:function(e){this.tabs.push(e),(null===this.activeTabId||e.selected)&&(this.activeTabId=e.id)},removeTab:function(e){var t=this.tabs.indexOf(e);t>-1&&(this.tabs.splice(t,1),e.id===this.activeTabId&&this.selectTab(this.findNearestTab()))},onTabDisabledChange:function(e){e.disabled&&this.activeTabId===e.id&&this.selectTab(this.findNearestTab())},selectTab:function(e){null===e||e.disabled||e.id===this.activeTabId||(this.activeTabId=e.id,this.$emit("tab-change",e.id))},selectNextTab:function(){var e=this.findNextTab();e&&(this.selectTab(e),e.$el.focus())},selectPreviousTab:function(){var e=this.findPreviousTab();e&&(this.selectTab(e),e.$el.focus())},findNextTab:function(){for(var e=null,t=this.activeTabIndex+1;t=0;t--)if(this.$refs.tabHeaders[t]&&!this.$refs.tabHeaders[t].disabled){e=this.$refs.tabHeaders[t];break}return e},findNearestTab:function(){return this.findPreviousTab()||this.findNextTab()},findTabById:function(e){for(var t=0;t-1}},tabindex:[String,Number],multiline:{type:Boolean,default:!1},rows:{type:Number,default:2},min:Number,max:Number,step:{type:String,default:"any"},maxlength:Number,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},floated:{type:Boolean,default:!1},wide:{type:Boolean,default:!0},error:{type:Boolean,default:!1},errorText:{type:String},autocomplete:String,autofocus:{type:Boolean,default:!1}},computed:{minValue:function(){return"number"===this.type&&void 0!==this.min?this.min:null},maxValue:function(){return"number"===this.type&&void 0!==this.max?this.max:null},stepValue:function(){return"number"===this.type?this.step:null},classes:function(){return["textbox--size-"+this.size,{"textbox--floated":this.floated},{"textbox--floated-active":this.floated&&""!==this.value},{"textbox--wide":this.wide},{"textbox--error":this.error}]}},data:function(){return{isTouched:!1,initialValue:this.value}},created:function(){null===this.value&&(this.initialValue="",this.updateValue(""))},methods:{updateValue:function(e){this.$emit("input",e)},onChange:function(e){this.$emit("change",this.value,e)},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e),this.isTouched||(this.isTouched=!0,this.$emit("touch"))},onKeydown:function(e){this.$emit("keydown",e)},onKeydownEnter:function(e){this.$emit("keydown-enter",e)},reset:function(){document.activeElement!==this.$refs.input&&document.activeElement!==this.$refs.textarea||document.activeElement.blur(),this.updateValue(this.initialValue),this.resetTouched()},resetTouched:function(e){void 0===e&&(e={touched:!1}),this.isTouched=e.touched},focus:function(){(this.$refs.input||this.$refs.textarea).focus()}}},void 0,!1,void 0,void 0,void 0);ee.install=function(e){e.component("VTextbox",ee)};var te=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"toggle",class:e.classes,attrs:{for:e.id}},[i("input",{ref:"input",staticClass:"toggle__input",attrs:{id:e.id,name:e.name,disabled:e.disabled,tabindex:e.tabindex,type:"checkbox"},domProps:{checked:e.isChecked,value:e.submittedValue},on:{blur:e.onBlur,focus:e.onFocus,change:e.onChange}}),e._v(" "),i("span",{staticClass:"toggle__container"}),e._v(" "),i("span",{staticClass:"toggle__text"},[e._v(e._s(e.label))])])},staticRenderFns:[]},void 0,{name:"VToggle",props:{id:{type:[String,Number]},name:{type:String},label:{type:[String,Number]},value:{required:!0},submittedValue:{type:String,default:"on"},checked:{type:Boolean,default:!1},trueValue:{default:!0},falseValue:{default:!1},indeterminate:{type:Boolean,default:!1},tabindex:[String,Number],vertical:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isChecked:c(this.value,this.trueValue)||this.checked}},created:function(){this.$emit("input",this.isChecked?this.trueValue:this.falseValue)},computed:{classes:function(){return[{"toggle--vertical":this.vertical}]}},methods:{focus:function(){this.$refs.input.focus()},onChange:function(e){var t=this.isChecked,i=e.target.checked;this.$emit("input",i?this.trueValue:this.falseValue,e),t!==i&&this.$emit("change",i?this.trueValue:this.falseValue,e)},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},watch:{value:function(){this.isChecked=c(this.value,this.trueValue)}}},void 0,!1,void 0,void 0,void 0);te.install=function(e){e.component("VToggle",te)};var ie=Object.freeze({VAlert:s,VAvatar:a,VBadge:o,VButton:r,VCheckbox:h,VCheckboxGroup:p,VChip:f,VDropdown:g,VMenu:b,VMenuOption:m,VModal:V,VNotification:S,VNotificationContainer:$,VPagination:O,VPopover:v,VProgress:w,VRadio:P,VRadioGroup:T,VSelect:L,VSelectOption:B,VSpinner:q,VStepper:z,VTab:K,VTable:X,VTableHeader:Q,VTabs:Y,VTextbox:ee,VToggle:te}),ne=Object.freeze({Autofocus:Z,Clickoutside:R});var se={install:function e(t){e.installed||(e.installed=!0,Object.keys(ie).forEach(function(e){t.component(e,ie[e])}),Object.keys(ne).forEach(function(e){t.directive(e,ne[e])}))}},ae=null;"undefined"!=typeof window?ae=window.Vue:"undefined"!=typeof global&&(ae=global.Vue),ae&&ae.use(se);export default se;export{Z as Autofocus,R as Clickoutside,s as VAlert,a as VAvatar,o as VBadge,r as VButton,h as VCheckbox,p as VCheckboxGroup,f as VChip,g as VDropdown,b as VMenu,m as VMenuOption,V as VModal,S as VNotification,$ as VNotificationContainer,O as VPagination,v as VPopover,w as VProgress,P as VRadio,T as VRadioGroup,L as VSelect,B as VSelectOption,q as VSpinner,z as VStepper,K as VTab,X as VTable,Q as VTableHeader,Y as VTabs,ee as VTextbox,te as VToggle}; diff --git a/dist/modulist-vue.min.js b/dist/modulist-vue.min.js index 22fe423..6ee6ae7 100644 --- a/dist/modulist-vue.min.js +++ b/dist/modulist-vue.min.js @@ -1,6 +1,6 @@ /** - * Modulist Vue v1.0.0-alpha.11 + * Modulist Vue v1.0.0-alpha.12 * (c) 2019 SimplyStack * Released under the MIT License. */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("popper.js"),require("fuzzysearch"),require("vue")):"function"==typeof define&&define.amd?define(["exports","popper.js","fuzzysearch","vue"],t):t((e=e||self).ModulistVue={},e.Popper,e.fuzzysearch,e.Vue)}(this,function(e,t,i,n){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t,i=i&&i.hasOwnProperty("default")?i.default:i,n=n&&n.hasOwnProperty("default")?n.default:n;var s=function(e,t,i,n,s,a,o,r,l,c){"boolean"!=typeof o&&(l=r,r=o,o=!1);var u,d="function"==typeof i?i.options:i;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),n&&(d._scopeId=n),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=u):t&&(u=o?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),u)if(d.functional){var p=d.render;d.render=function(e,t){return u.call(t),p(e,t)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,u):[u]}return i},a=s({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"alert",class:this.classes},[t("div",{staticClass:"alert__body"},[t("div",{staticClass:"alert__title"},[this._v(this._s(this.title))]),this._v(" "),t("div",{staticClass:"alert__text"},[this._t("default")],2)])])},staticRenderFns:[]},void 0,{name:"VAlert",props:{title:{type:String,default:"Default title"},type:{type:String,default:"info",validator:function(e){return["info","success","warn","error"].indexOf(e)>-1}},wide:{type:Boolean,default:!1}},computed:{classes:function(){return["alert--"+this.type,{"alert--wide":this.wide}]}}},void 0,!1,void 0,void 0,void 0);a.install=function(e){e.component("VAlert",a)};var o=s({render:function(){var e=this.$createElement;return(this._self._c||e)("img",{staticClass:"avatar",attrs:{src:this.src,alt:this.alt,width:this.size,height:this.size}})},staticRenderFns:[]},void 0,{name:"VAvatar",props:{src:{type:String,required:!0},size:{type:[String,Number],default:32},alt:{type:String,default:"Avatar"}}},void 0,!1,void 0,void 0,void 0);o.install=function(e){e.component("VAvatar",o)};var r=s({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"badge",class:this.classes,domProps:{textContent:this._s(this.text)}})},staticRenderFns:[]},void 0,{name:"VBadge",props:{type:{type:String,default:"default",validator:function(e){return["default","primary","alternative","warning","success","danger"].indexOf(e)>-1}},align:{type:String,default:"middle",validator:function(e){return["top","middle","bottom"].indexOf(e)>-1}},text:{type:[String,Number],required:!0}},computed:{classes:function(){return["badge--"+this.type,"badge--align-"+this.align]}}},void 0,!1,void 0,void 0,void 0);r.install=function(e){e.component("VBadge",r)};var l=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("button",e._g({staticClass:"button",class:e.classes,attrs:{disabled:e.disabled,type:e.type}},e.$listeners),[e._t("default"),e._v(" "),e.$slots.icon?i("div",{staticClass:"button__icon"},[e._t("icon")],2):e._e()],2)},staticRenderFns:[]},void 0,{name:"VButton",props:{type:{type:String,default:"button"},appearance:{type:String,default:"default",validator:function(e){return["default","primary","alternative","subtle","success","danger"].indexOf(e)>-1}},size:{type:String,default:"4",validator:function(e){return["0","1","2","3","4"].indexOf(e)>-1}},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},iconFirst:{type:Boolean,default:!1},wide:{type:Boolean,default:!1}},computed:{classes:function(){return["button--"+this.appearance,"button--size-"+this.size,{"button--loading":this.loading},{"button--icon-only":!this.$slots.default},{"button--icon-first":this.iconFirst},{"button--wide":this.wide}]}}},void 0,!1,void 0,void 0,void 0);function c(e){return null!==e&&"object"==typeof e}function u(e,t){return e==t||!(!c(e)||!c(t))&&JSON.stringify(e)===JSON.stringify(t)}function d(e,t){for(var i=0;i0?[].concat(this.initialValue):[])},isOptionCheckedByDefault:function(e){return d(this.initialValue,e[this.keys.value]||e)>-1},onFocus:function(e){this.isActive=!0,this.$emit("focus",e)},onBlur:function(e){this.isActive=!1,this.$emit("blur",e)},onChange:function(e,t){if(!this.ignoreChange){var i=e[0],n=e[1],s=[],a=t[this.keys.value]||t,o=d(this.value,a);i&&o<0&&(s=this.value.concat(a)),!i&&o>-1&&(s=this.value.slice(0,o).concat(this.value.slice(o+1))),this.$emit("input",s),this.$emit("change",s,n)}}},components:{VCheckbox:h}},void 0,!1,void 0,void 0,void 0);f.install=function(e){e.component("VCheckboxGroup",f)};var v=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",e._g({ref:"chip",staticClass:"chip",class:e.classes,attrs:{tabindex:"0"}},e.$listeners),[i("div",{staticClass:"chip__text"},[e._v(e._s(e.title))]),e._v(" "),e.closable?i("div",{staticClass:"chip__close"},[i("button",{staticClass:"chip__delete",on:{click:function(t){return t.stopPropagation(),e.onDelete(t)}}},[i("svg",{attrs:{slot:"icon",height:"12",width:"12"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])]):e._e()])},staticRenderFns:[]},void 0,{name:"VChip",props:{title:String,appearance:{type:String},closable:Boolean},computed:{classes:function(){return["chip--"+this.appearance]}},methods:{onDelete:function(e){this.$emit("delete",e)}}},void 0,!1,void 0,void 0,void 0);v.install=function(e){e.component("VChip",v)};var m=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"popover",class:{"popover--has-max-height":e.hasMaxHeight},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.close(t)}}},[i("div",{ref:"trigger",staticClass:"popover__trigger"},[e._t("toggle")],2),e._v(" "),e.isActive?i("div",{ref:"content",staticClass:"popover__content",attrs:{role:"dialog","aria-haspopup":"true","aria-expanded":e.isActive?"true":"false",tabindex:"-1"}},[e._t("default"),e._v(" "),i("div",{staticClass:"popover__focus-redirector",attrs:{tabindex:"0"},on:{focus:e.restrictFocus}})],2):e._e()])},staticRenderFns:[]},void 0,{name:"VPopover",props:{trigger:{type:String,default:"click"},containFocus:{type:Boolean,default:!1},hasMaxHeight:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},offset:{type:[String,Number],default:"0"},manualOpen:{type:Boolean,default:!1},manualClose:{type:Boolean,default:!1},returnFocusOnClose:{type:Boolean,default:!0},focusRedirector:Function},data:function(){return{isActive:!1,popperInstance:null,focusedElBeforeOpen:null}},mounted:function(){this.addEventsListeners()},computed:{triggerEl:function(){return this.$refs.trigger},popperOptions:function(){return{placement:this.placement,modifiers:{offset:{offset:this.offset}}}}},methods:{addEventsListeners:function(){switch(this.trigger){case"click":this.manualClose||document.addEventListener("click",this.handleClickOutside,!0),this.manualOpen||this.triggerEl.addEventListener("click",this.toggle);break;case"hover":this.manualOpen||this.triggerEl.addEventListener("mouseenter",this.show),this.manualClose||document.addEventListener("mousemove",this.handleClickOutside,!0);break;default:throw new Error("[popover] "+this.trigger+" is not defined")}},removeEventsListeners:function(){switch(this.trigger){case"click":this.manualClose||document.removeEventListener("click",this.handleClickOutside,!0),this.triggerEl.removeEventListener("click",this.toggle);break;case"hover":this.manualOpen||this.triggerEl.removeEventListener("mouseenter",this.show),this.manualClose||document.removeEventListener("mousemove",this.handleClickOutside,!0);break;default:throw new Error("[popover] "+this.trigger+" is not defined")}},toggle:function(){this.isActive?this.close():this.show()},show:function(){var e=this;this.disabled||this.isActive||(this.focusedElBeforeOpen=document.activeElement,this.isActive=!0,this.initializePopper(),this.$nextTick(function(){e.$el.focus()}),this.$emit("open"))},close:function(){var e=this;this.isActive=!1,this.$nextTick(function(){e.destroyPopper()}),this.$emit("close"),this.returnFocusOnClose&&this.triggerEl.focus()},restrictFocus:function(e){this.containFocus?(e.stopPropagation(),this.focusRedirector?this.focusRedirector(e):this.$el.focus()):this.close()},initializePopper:function(){var e=this;this.$nextTick(function(){e.popperInstance=new t(e.triggerEl,e.$refs.content,e.popperOptions)})},destroyPopper:function(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)},handleClickOutside:function(e){this.$el.contains(e.target)||this.triggerEl.contains(e.target)||!this.isActive||this.close()}},beforeDestroy:function(){this.removeEventsListeners()}},void 0,!1,void 0,void 0,void 0);m.install=function(e){e.component("VPopover",m)};var b=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("li",e._g({ref:"menuOption",staticClass:"menu-option",class:e.classes,attrs:{role:"menu-item",tabindex:e.isDivider||e.disabled?null:"0"}},e.$listeners),[e.isDivider?e._e():e._t("default",[i("div",{staticClass:"menu-option__content"},[i("div",{staticClass:"menu-option__text"},[e._v(e._s(e.label))])])])],2)},staticRenderFns:[]},void 0,{name:"VMenuOption",props:{type:String,label:String,disabled:{type:Boolean,default:!1}},computed:{classes:function(){return{"menu-option--divider":this.isDivider,"menu-option--disabled":this.disabled}},isDivider:function(){return"divider"===this.type}}},void 0,!1,void 0,void 0,void 0);b.install=function(e){e.component("VMenuOption",b)};var g=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ul",{staticClass:"menu",attrs:{role:"menu"}},[e._l(e.options,function(t){return i("v-menu-option",{key:t.id,attrs:{disabled:t[e.keys.disabled],label:"divider"===t[e.keys.type]?null:t[e.keys.label]||t,type:t[e.keys.type]},on:{click:function(i){return e.selectOption(t)},keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),e.selectOption(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:(t.stopPropagation(),e.closeMenu(t))}]}},[e._t("option",null,{option:t})],2)}),e._v(" "),e.containFocus?i("div",{staticClass:"menu__focus-redirector",attrs:{tabindex:"0"},on:{focus:e.redirectFocus}}):e._e()],2)},staticRenderFns:[]},void 0,{name:"VMenu",props:{options:{type:Array,default:function(){return[]}},containFocus:{type:Boolean,default:!1},keys:{type:Object,default:function(){return{type:"type",label:"label",disabled:"disabled"}}}},methods:{selectOption:function(e){e.disabled||"divider"===e.type||(this.$emit("select",e),this.closeMenu())},closeMenu:function(){this.$emit("close")},redirectFocus:function(e){e.stopPropagation(),this.$el.querySelector(".menu-option").focus()}},components:{VMenuOption:b}},void 0,!1,void 0,void 0,void 0);g.install=function(e){e.component("VMenu",g)};var y=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dropdown"},[i("Popover",{ref:"popover",attrs:{"contain-focus":"",disabled:e.disabled,placement:e.placement},on:{open:e.onOpen,close:e.onClose}},[i("div",{staticClass:"dropdown__toggle",attrs:{slot:"toggle"},slot:"toggle"},[e._t("toggle")],2),e._v(" "),i("Menu",{attrs:{options:e.options,"contain-focus":e.containFocus},on:{select:e.onSelect,close:function(t){return e.$refs.popover.close()}}})],1)],1)},staticRenderFns:[]},void 0,{name:"VDropdown",props:{placement:{type:String,default:"bottom"},options:{type:Array,default:function(){return[]}},containFocus:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},methods:{onSelect:function(e){this.$emit("select",e)},onOpen:function(){this.$emit("open")},onClose:function(){this.$emit("close")}},components:{Popover:m,Menu:g}},void 0,!1,void 0,void 0,void 0);y.install=function(e){e.component("VDropdown",y)};var _={name:"VModal",props:{open:{type:Boolean,default:!1},role:{type:String,default:"dialog",validator:function(e){return["dialog","alertdialog"].indexOf(e)>-1}},title:{type:String,default:"Modal title"},size:{type:String,default:"2",validator:function(e){return["1","2","3"].indexOf(e)>-1}},dismissible:{type:Boolean,default:!0},dismissOn:{type:String,default:"backdrop esc close-button"}},computed:{dismissOnBackdrop:function(){return this.dismissOn.indexOf("backdrop")>-1},dismissOnCloseButton:function(){return this.dismissOn.indexOf("close-button")>-1},dismissOnEsc:function(){return this.dismissOn.indexOf("esc")>-1},classes:function(){return["modal--size-"+this.size]}},methods:{close:function(e){this.dismissible&&(e.currentTarget===this.$refs.backdrop&&e.target!==e.currentTarget||this.$emit("close"))},onOpen:function(){this.lastfocusedElement=document.activeElement,this.$refs.container.focus(),document.body.classList.add("modal--open"),document.addEventListener("focus",this.restrictFocus,!0),this.$emit("open")},onClose:function(){this.teardownModal(),this.$emit("close")},redirectFocus:function(){this.$refs.container.focus()},restrictFocus:function(e){this.$refs.container.contains(e.target)||(e.stopPropagation(),this.$refs.container.focus())},teardownModal:function(){document.body.classList.remove("modal--open"),document.removeEventListener("focus",this.restrictFocus,!0),this.lastfocusedElement&&this.lastfocusedElement.focus()},onEnter:function(){this.$emit("reveal")},onLeave:function(){this.$emit("hide"),document.body.classList.remove("modal--open")}},components:{VButton:l},watch:{open:function(){var e=this;this.$nextTick(function(){e[e.open?"onOpen":"onClose"]()})}},beforeDestroy:function(){this.open&&this.teardownModal()}},k="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var C=document.head||document.getElementsByTagName("head")[0],x={};var V=function(e){return function(e,t){return function(e,t){var i=k?t.media||"default":e,n=x[i]||(x[i]={ids:new Set,styles:[]});if(!n.ids.has(e)){n.ids.add(e);var s=t.source;if(t.map&&(s+="\n/*# sourceURL="+t.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",t.media&&n.element.setAttribute("media",t.media),C.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(s),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{var a=n.ids.size-1,o=document.createTextNode(s),r=n.element.childNodes;r[a]&&n.element.removeChild(r[a]),r.length?n.element.insertBefore(o,r[a]):n.element.appendChild(o)}}}(e,t)}},S=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("transition",{attrs:{name:"modal"},on:{"after-enter":e.onEnter,"after-leave":e.onLeave}},[e.open?i("div",{staticClass:"modal modal__mask",class:e.classes,attrs:{role:e.role}},[i("div",{ref:"backdrop",staticClass:"modal__wrapper",on:{click:function(t){e.dismissOnBackdrop&&e.close(t)}}},[i("div",{ref:"container",staticClass:"modal__container",attrs:{tabindex:"-1"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.dismissOnEsc&&e.close(t)}}},[i("div",{staticClass:"modal__header"},[i("h3",{staticClass:"modal__title"},[e._v(e._s(e.title))]),e._v(" "),i("v-button",{attrs:{appearance:"subtle",size:"1"},on:{click:e.close}},[i("svg",{attrs:{slot:"icon",width:"16",height:"16"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])],1),e._v(" "),i("div",{staticClass:"modal__body"},[e._t("default")],2),e._v(" "),i("div",{staticClass:"modal__footer"},[e._t("footer")],2),e._v(" "),i("div",{attrs:{tabindex:"0"},on:{focus:function(t){return t.stopPropagation(),e.redirectFocus(t)}}})])])]):e._e()])},staticRenderFns:[]},function(e){e&&e("data-v-5d25e129_0",{source:".modal-enter{opacity:0}.modal-leave-active{opacity:0}.modal-enter .modal__container,.modal-leave-active .modal__container{transform:scale(1.1)}",map:void 0,media:void 0})},_,void 0,!1,void 0,V,void 0);S.install=function(e){e.component("VModal",S)};var $=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"notification",class:e.classes},[i("div",{staticClass:"notification__icon"},["info"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"info-icon"}})]):e._e(),e._v(" "),"success"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"success-icon"}})]):e._e(),e._v(" "),"warning"===e.type?i("svg",{attrs:{width:"20",height:"16"}},[i("use",{attrs:{"xlink:href":"warning-icon"}})]):e._e(),e._v(" "),"error"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"error-icon"}})]):e._e()]),e._v(" "),i("div",{staticClass:"notification__content"},[i("div",{staticClass:"notification__title"},[e._v(e._s(e.computedTitle))]),e._v(" "),i("div",{staticClass:"notification__message"},[e._v(e._s(e.message))]),e._v(" "),e.actions.length>0?i("div",{staticClass:"notification__actions"},e._l(e.actions,function(t,n){return i("div",{key:n,staticClass:"notification__action"},[i("v-button",{attrs:{appearance:t.appearance,size:"2"},on:{click:function(i){return e.actionClickHandler(t.onClick)}}},[e._v("\n "+e._s(t.text)+"\n ")])],1)}),0):e._e()]),e._v(" "),e.dismissible?i("div",{staticClass:"notification__close"},[i("v-button",{attrs:{appearance:"subtle",size:"1"},on:{click:function(t){return t.stopPropagation(),e.onClose(t)}}},[i("svg",{attrs:{slot:"icon",width:"14",height:"14"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])],1):e._e()])},staticRenderFns:[]},void 0,{name:"VNotification",props:{id:{type:[Number,String],default:1},type:{type:String,default:"info"},title:{type:String},message:String,dismissible:{type:Boolean,default:!0},timeout:{type:Number,default:5e3,validator:function(e){return e>0}},actions:{type:Array,default:function(){return[]}}},computed:{computedTitle:function(){return this.title?this.title:(e=this.type).charAt(0).toUpperCase()+e.slice(1);var e},classes:function(){return["notification--"+this.type]}},mounted:function(){this.timeout&&this.dismissible&&setTimeout(this.onClose,this.timeout)},methods:{onClose:function(e){this.$emit("close",e)},actionClickHandler:function(e){e?(e(),this.onClose()):this.onClose()}},components:{VButton:l}},void 0,!1,void 0,void 0,void 0);$.install=function(e){e.component("VNotification",$)};var O=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"notification-container",class:e.classes},[i("transition-group",{attrs:{name:"list"}},e._l(e.queue,function(t,n){return i("v-notification",{key:t.timestamp.getTime(),attrs:{id:"notification-"+n,type:t.type,title:t.title,message:t.message,actions:t.actions,timestamp:t.timestamp},on:{close:function(i){return e.remove(t.timestamp)}}})}),1)],1)},staticRenderFns:[]},function(e){e&&e("data-v-8fb8f2f0_0",{source:".list-enter-active,.list-leave-active{transition:all .3s}.list-enter,.list-leave-to{opacity:0;transform:translateX(30px)}",map:void 0,media:void 0})},{name:"VNotificationContainer",props:{queue:{type:Array,default:function(){return[]}},position:{type:String,default:"top-right",validator:function(e){return["top-left","top-right","bottom-right","bottom-left"].indexOf(e)>-1}}},computed:{classes:function(){return["notification-container--"+this.position]}},methods:{create:function(e){var t=e;t.timestamp=new Date,t.timestamp.setMilliseconds(t.timestamp.getMilliseconds()+this.queue.length),this.queue.push(t)},remove:function(e){var t=this.queue.findIndex(function(t){return t.timestamp===e});-1!==t&&this.queue.splice(t,1)}},components:{VNotification:$}},void 0,!1,void 0,V,void 0);O.install=function(e){e.component("VNotificationContainer",O)};var w=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ul",{staticClass:"pagination"},[i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,"aria-label":"Go to first page",disabled:e.isInFirstPage},on:{click:e.onClickFirstPage}},[e._v("\n First\n ")])],1),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,"aria-label":"Go to previous page",disabled:e.isInFirstPage},on:{click:function(t){return t.preventDefault(),e.onClickPreviousPage(t)}}},[e._v("\n Previous\n ")])],1),e._v(" "),e._l(e.pages,function(t,n){return i("li",{key:n,staticClass:"pagination__item"},[i("v-button",{class:{active:e.isPageActive(t.name)},attrs:{size:e.size,appearance:e.isPageActive(t.name)?"primary":"default","aria-label":"Go to page number "+t.name},on:{click:function(i){return i.preventDefault(),e.onClickPage(t.name)}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,disabled:e.isInLastPage,"aria-label":"Go to next page"},on:{click:e.onClickNextPage}},[e._v("\n Next\n ")])],1),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,disabled:e.isInLastPage,"aria-label":"Go to last page"},on:{click:e.onClickLastPage}},[e._v("\n Last\n ")])],1)],2)},staticRenderFns:[]},void 0,{name:"VPagination",props:{value:{type:Number,default:1},maxVisibleButtons:{type:Number,default:3},total:{type:Number,required:!0},perPage:{type:Number,default:10},size:{type:String,default:"4"}},data:function(){return{currentPage:this.value}},computed:{startPage:function(){return 1===this.currentPage?1:this.currentPage===this.totalPages?this.totalPages-this.maxVisibleButtons+1:this.currentPage-1},endPage:function(){return Math.min(this.startPage+this.maxVisibleButtons-1,this.totalPages)},pages:function(){for(var e=[],t=this.startPage;t<=this.endPage;t+=1)e.push({name:t,isDisabled:t===this.currentPage});return e},isInFirstPage:function(){return 1===this.currentPage},isInLastPage:function(){return this.currentPage===this.totalPages},totalPages:function(){return Math.ceil(this.total/this.perPage)}},methods:{onClickFirstPage:function(){this.$emit("input",1)},onClickPreviousPage:function(){this.$emit("input",this.currentPage-1)},onClickPage:function(e){this.$emit("input",e)},onClickNextPage:function(){this.$emit("input",this.currentPage+1)},onClickLastPage:function(){this.$emit("input",this.totalPages)},isPageActive:function(e){return this.currentPage===e}},components:{VButton:l},watch:{value:function(e){this.currentPage=e}}},void 0,!1,void 0,void 0,void 0);w.install=function(e){e.component("VPagination",w)};var P=s({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"progress",class:this.classes},["determinate"===this.type?t("div",{staticClass:"progress__bar",style:{width:this.moderatedProgress+"%"},attrs:{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":this.moderatedProgress}}):t("div",{staticClass:"progress__bar",attrs:{role:"progressbar","aria-valuemax":100,"aria-valuemin":0}})])},staticRenderFns:[]},void 0,{name:"VProgress",props:{type:{type:String,default:"indeterminate",validator:function(e){return["indeterminate","determinate"].indexOf(e)>-1}},progress:{type:Number,default:0}},computed:{classes:function(){return["progress--"+this.type]},moderatedProgress:function(){return this.progress<0?0:this.progress>100?100:this.progress}}},void 0,!1,void 0,void 0,void 0);P.install=function(e){e.component("VProgress",P)};var T=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"radio",attrs:{for:e.id}},[i("input",{staticClass:"radio__input",attrs:{type:"radio",id:e.id,disabled:e.disabled,name:e.name,tabindex:e.tabindex},domProps:{checked:e.checked,value:e.trueValue},on:{blur:e.onBlur,change:e.onChange,focus:e.onFocus}}),e._v(" "),i("span",{staticClass:"radio__circle"}),e._v(" "),i("span",{staticClass:"radio__text"},[e._v(e._s(e.label))])])},staticRenderFns:[]},void 0,{name:"VRadio",props:{id:{type:[String,Number]},name:{type:String,required:!0},label:{type:String,required:!0},tabindex:{type:[String,Number]},value:{type:[Number,String],required:!0},trueValue:{type:[Number,String],required:!0},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},created:function(){this.checked&&this.$emit("input",this.trueValue)},computed:{isChecked:function(){return String(this.value).length>0&&this.value==this.trueValue}},methods:{onFocus:function(e){this.isActive=!0,this.$emit("focus",e)},onBlur:function(e){this.isActive=!1,this.$emit("blur",e)},onChange:function(e){this.disabled||this.$emit("input",this.trueValue),this.$emit("change",this.isChecked,e)},focus:function(){this.$refs.input.focus()}}},void 0,!1,void 0,void 0,void 0);T.install=function(e){e.component("VRadio",T)};var B=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"radio-group"},[i("div",{staticClass:"radio-group__label"},[e._v(e._s(e.label))]),e._v(" "),i("div",{staticClass:"radio-group__list"},e._l(e.options,function(t,n){return i("div",{key:t[e.keys.id]||e.name+"-"+n,staticClass:"radio-group__item"},[i("VRadio",{key:t[e.keys.id],attrs:{id:t[e.keys.id]||e.name+"-"+n,label:t[e.keys.label]||t,checked:e.isOptionCheckedByDefault(t),disabled:e.disabled||t[e.keys.disabled],name:e.name,tabindex:e.tabindex,"true-value":t[e.keys.value]||t},on:{blur:e.onBlur,focus:e.onFocus},model:{value:e.selectedOptionValue,callback:function(t){e.selectedOptionValue=t},expression:"selectedOptionValue"}})],1)}),0)])},staticRenderFns:[]},void 0,{name:"VRadioGroup",props:{name:{type:String,required:!0},tabindex:{type:[String,Number]},label:{type:String},options:{type:Array,required:!0},value:{type:[Number,String],required:!0},keys:{type:Object,default:function(){return{id:"id",label:"label",value:"value",checked:"checked",disabled:"disabled"}}},disabled:{type:Boolean,default:!1}},data:function(){return{initialValue:this.value,selectedOptionValue:this.value}},methods:{reset:function(){this.$emit("input",this.initialValue)},isOptionCheckedByDefault:function(e){return this.initialValue==e[this.keys.value]||this.initialValue==e||e[this.keys.checked]},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},watch:{selectedOptionValue:function(){this.$emit("input",this.selectedOptionValue),this.$emit("change",this.selectedOptionValue)},value:function(){this.selectedOptionValue=this.value}},components:{VRadio:T}},void 0,!1,void 0,void 0,void 0);B.install=function(e){e.component("VRadio",B)};var E=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"select-option",class:e.classes,attrs:{"data-value":e.option[e.keys.value]}},[e._t("default",[i("div",[e._v(e._s(e.option[e.keys.label]))])]),e._v(" "),e.multiple&&!e.disabled?i("div",{staticClass:"select-option__checkbox",class:{"select-option__checkbox--selected":e.selected}}):e._e()],2)},staticRenderFns:[]},void 0,{name:"VSelectOption",props:{option:{type:[String,Object]},selected:Boolean,highlighted:Boolean,disabled:Boolean,multiple:Boolean,keys:{type:Object,default:function(){return{label:"label",value:"value",image:"image",disabled:"disabled"}}}},computed:{classes:function(){return[{"select-option--selected":this.selected},{"select-option--highlighted":this.highlighted},{"select-option--disabled":this.disabled}]}}},void 0,!1,void 0,void 0,void 0);E.install=function(e){e.component("VSelectOption",E)};var F,N=!n.prototype.$isServer&&document.addEventListener?function(e,t,i){e&&t&&i&&e.addEventListener(t,i,!1)}:function(e,t,i){e&&t&&i&&e.attachEvent("on"+t,i)},A=[],I="@@clickoutsideContext",D=0;function R(e,t,i){return function(n,s){void 0===n&&(n={}),void 0===s&&(s={}),!(i&&i.context&&n.target&&s.target)||e.contains(n.target)||e.contains(s.target)||e===n.target||i.context.popperElm&&(i.context.popperElm.contains(n.target)||i.context.popperElm.contains(s.target))||(t.expression&&e[I].methodName&&i.context[e[I].methodName]?i.context[e[I].methodName]():e[I].bindingFn&&e[I].bindingFn())}}!n.prototype.$isServer&&N(document,"mousedown",function(e){return F=e}),!n.prototype.$isServer&&N(document,"mouseup",function(e){A.forEach(function(t){return t[I].documentHandler(e,F)})});var q={bind:function(e,t,i){A.push(e);var n=D++;e[I]={id:n,documentHandler:R(e,t,i),methodName:t.expression,bindingFn:t.value}},update:function(e,t,i){e[I].documentHandler=R(e,t,i),e[I].methodName=t.expression,e[I].bindingFn=t.value},unbind:function(e){for(var t=A.length,i=0;i0&&e.multiple?i("div",[i("v-chip",{staticClass:"select__selected-option",attrs:{title:e.mutableValue[0].label,closable:""},on:{click:function(e){e.stopPropagation()},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:(t.stopPropagation(),e.deleteSelectedOption(t,e.mutableValue[0]))},delete:function(t){return e.deleteSelectedOption(t,e.mutableValue[0])}}}),e._v(" "),e.mutableValue.length>1?i("v-chip",{attrs:{title:"+ "+(e.mutableValue.length-1)}}):e._e()],1):e._e(),e._v(" "),e.mutableValue&&!e.$scopedSlots.option?i("div",[e._v(e._s(e.mutableValue[e.keys.label]))]):e._e(),e._v(" "),e.isPlaceholderVisible?i("div",{staticClass:"select__placeholder"},[e._v(e._s(e.placeholder))]):e._e()],2),e._v(" "),e.isSlotDisplayed&&e.clearable?i("svg",{staticClass:"select__clear",attrs:{height:"16",width:"16"},on:{click:function(t){return t.stopPropagation(),e.clear(t)}}},[i("use",{attrs:{"xlink:href":"#cross-icon"}})]):i("svg",{staticClass:"select__chevron",attrs:{width:"18px",height:"18px"}},[i("use",{attrs:{"xlink:href":"#chevron-down-icon"}})])]),e._v(" "),i("div",{ref:"dropdown",staticClass:"select__dropdown",attrs:{tabindex:"-1"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:(t.preventDefault(),e.closeDropdown())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.highlightOption("next"))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.handleOnEnterSelectOption(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.onBlur(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.highlightOption("prev"))}]}},[e.filterable?i("div",{staticClass:"select__filter-wrapper"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"filter",staticClass:"select__filter",attrs:{tabindex:"0",type:"text",placeholder:"Search",autocomplete:"off"},domProps:{value:e.query},on:{input:function(t){t.target.composing||(e.query=t.target.value)}}})]):e._e(),e._v(" "),e._l(e.filteredOptions,function(t,n){return i("v-select-option",{key:n,ref:"options",refInFor:!0,attrs:{option:t,multiple:e.multiple,keys:e.keys,disabled:t[e.keys.disabled],selected:e.isOptionSelected(t),highlighted:e.highlightedIndex===n},nativeOn:{click:function(i){return i.stopPropagation(),e.select(t,n)}}},[e._t("option",null,{index:n,option:t})],2)})],2)])},staticRenderFns:[]},void 0,{name:"VSelect",directives:{clickoutside:q},props:{id:{type:[Number,String]},tabindex:{type:[Number,String],default:0},name:{type:String},label:{type:String,default:"Label"},value:{type:[Array,Object],required:!0},multiple:{type:Boolean},filterable:{type:Boolean},clearable:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},placeholder:{type:String,default:"Placeholder"},options:{type:Array,default:function(){return[]}},keys:{type:Object,default:function(){return{label:"label",value:"value",image:"image",disabled:"disabled"}}}},created:function(){this.mutableValue=this.multiple?[]:this.value,this.mutableOptions=this.options.slice(0)},data:function(){return{query:"",isOpen:!1,isActive:!1,mutableValue:null,mutableOptions:[],highlightedIndex:-1}},computed:{classes:function(){return[{"select--open":this.isOpen},{"select--disabled":this.disabled}]},isSlotDisplayed:function(){return this.multiple?this.mutableValue.length>0&&this.mutableValue.length<=1:""!==this.mutableValue&&(e=this.mutableValue,!(0===Object.keys(e).length));var e},isPlaceholderVisible:function(){return""===this.mutableValue||null===this.mutableValue||0===this.mutableValue.length||0===Object.keys(this.mutableValue).length},filteredOptions:function(){var e=this;return this.filterable?this.mutableOptions.filter(function(t,i){return e.defaultFilter(t,i)}):this.mutableOptions}},methods:{handleClickOutside:function(){this.isOpen?this.closeDropdown():this.isActive&&(this.isActive=!1)},handleOnEnterSelectOption:function(){var e=this.filteredOptions[this.highlightedIndex];this.select(e)},select:function(e){e.disabled||(this.multiple?this.isOptionSelected(e)?this.deselect(e):(this.mutableValue.push(e),this.setValue(this.mutableValue)):(this.setValue(e),this.closeDropdown()),this.$emit("select",e))},deselect:function(e){var t=this.mutableValue.indexOf(e);this.mutableValue.splice(t,1)},setValue:function(e){this.mutableValue=e,this.$emit("input",e),this.$emit("change",e)},toggleDropdown:function(){this[this.isOpen?"closeDropdown":"openDropdown"]()},onOpen:function(){var e=this;this.$nextTick(function(){e.$refs.dropdown.focus(),e.scrollOptionIntoView(e.$refs.dropdown.querySelector(".select-option--selected"))})},onBlur:function(){this.isActive=!1,this.$emit("blur"),this.isOpen&&this.closeDropdown()},onFocus:function(){this.isActive=!0,this.$emit("focus")},openDropdown:function(){this.disabled||(this.isOpen=!0,this.$refs.dropdown.focus())},closeDropdown:function(){var e=this;this.isOpen=!1,this.$refs.container.focus(),this.$nextTick(function(){e.query=""})},isOptionSelected:function(e){var t=this;return this.multiple?this.mutableValue.some(function(i){return i[t.keys.label]===e[t.keys.label]}):this.mutableValue[this.keys.label]===e[this.keys.label]},clear:function(){var e=this;this.multiple?this.setValue([]):this.setValue({}),this.highlightedIndex=-1,this.$emit("clear"),this.$nextTick(function(){var t;(t=e.$refs.dropdown)&&(t.scrollTop=0)})},reset:function(){this.clear()},deleteSelectedOption:function(e,t){var i=this.mutableValue.indexOf(t);i>-1&&this.mutableValue.splice(i,1),e.stopPropagation()},defaultFilter:function(e){var t=this.query.toLowerCase(),n=e[this.keys.label];return"string"==typeof n&&(n=n.toLowerCase()),i(t,n)},highlightOption:function(e){var t=this;this.$refs.options.length!==this.highlightedIndex&&("next"===e&&(this.highlightedIndex=this.highlightedIndex+1,this.highlightedIndex===this.$refs.options.length&&(this.highlightedIndex=0)),"prev"===e&&(this.highlightedIndex=this.highlightedIndex-1,this.highlightedIndex<0&&(this.highlightedIndex=this.$refs.options.length-1)),this.filteredOptions[this.highlightedIndex].disabled&&this.highlightOption(e),this.$nextTick(function(){t.scrollOptionIntoView(t.$refs.options[t.highlightedIndex].$el)}))},scrollOptionIntoView:function(e){var t,i;t=e,void 0===(i={container:this.$refs.dropdown,marginTop:8})&&(i={container:null,marginTop:0}),t&&(i.container=i.container||t.parentElement,function(e,t){if(e){t=t||e.parentElement;var i=e.offsetTop,n=t.scrollTop,s=i+e.offsetHeight,a=t.offsetHeight;return i>=n&&s<=a}}(t,i.container)||(i.container.scrollTop=t.offsetTop-i.marginTop))}},watch:{value:function(e){this.mutableValue=e},options:function(e){this.mutableOptions=e},isOpen:function(){this.isOpen?(this.onOpen(),this.$emit("open")):this.$emit("close")},query:function(){this.highlightedIndex=0}},components:{VSelectOption:E,VChip:v}},void 0,!1,void 0,void 0,void 0);L.install=function(e){e.component("VSelect",L)};var z=s({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"spinner",class:this.classes})},staticRenderFns:[]},void 0,{name:"VSpinner",props:{appearance:{type:String,default:"default"}},computed:{classes:function(){return["spinner--"+this.appearance]}}},void 0,!1,void 0,void 0,void 0);z.install=function(e){e.component("VSpinner",z)};var M=s({render:function(){var e=this.$createElement,t=this._self._c||e;return t("li",{staticClass:"step",class:this.classes,on:{click:this.onClick}},[t("button",{staticClass:"step__marker"},[this.hideLabel?this._e():t("span",{staticClass:"step__label"},[this._v(this._s(this.title))])])])},staticRenderFns:[]},void 0,{name:"VStep",props:{id:{type:Number,required:!0},title:{type:String,required:!0},hideLabel:{type:Boolean,default:!1}},data:function(){return{}},computed:{isActive:function(){return this.$parent.currentStep===this.id},isPrevious:function(){return this.$parent.currentStep>this.id},isNext:function(){return this.$parent.currentStepe&&!this.disablePrev&&this.onChange(this.currentStep-1)},onChange:function(e){e>8&255]+j[e>>16&255]+j[e>>24&255]+"-"+j[255&t]+j[t>>8&255]+"-"+j[t>>16&15|64]+j[t>>24&255]+"-"+j[63&i|128]+j[i>>8&255]+"-"+j[i>>16&255]+j[i>>24&255]+j[255&n]+j[n>>8&255]+j[n>>16&255]+j[n>>24&255]},K=function(e){return(e=e||"")+U().split("-")[0]},J=s({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"tab",class:{"tab--active":this.isActive,"tab--disabled":this.disabled},attrs:{role:"tabpanel",id:this.id,"aria-hidden":this.isActive?null:"true",tabindex:this.isActive?"0":null}},[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"VTab",props:{id:{type:String,default:function(){return K("tab-")}},title:String,selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isActive:!1}},created:function(){this.$parent.addTab(this)},beforeDestroy:function(){this.$parent.removeTab(this)},methods:{activate:function(){this.isActive=!0,this.$emit("select",this.id)},deactivate:function(){this.isActive=!1,this.$emit("deselect",this.id)}},watch:{disabled:function(){this.$parent.onTabDisabledChange(this)}}},void 0,!1,void 0,void 0,void 0);J.install=function(e){e.component("VTab",J)};var X=function(e,t,i){return p(e[i]).localeCompare(p(t[i]),void 0,{numeric:!0})},Q=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"table-responsive"},[e._t("header",null,{items:e.items,selected:e.mutableSelected,handleSearchInput:function(t){return e.query=t},disabledSearch:0===e.items.length}),e._v(" "),e.ready?i("table",{staticClass:"table"},[i("thead",[0===e.items.length||e.items.length>0&&0===e.mutableItems.length?e._e():i("tr",[e.multiSelect?i("th",{staticClass:"table-select-td"},[i("input",{ref:"checkbox",attrs:{type:"checkbox"},domProps:{checked:e.mutableItems.length===e.mutableSelected.length},on:{change:e.handleSelectAll}})]):e._e(),e._v(" "),e._l(e.fields,function(t,n){return i("th",{key:n,class:[t.sortable?"table-sorting":null,e.sortBy===n?"table-sorting--"+(e.sortDesc?"desc":"asc"):"",t.class?t.class:null],on:{click:function(i){return e.onHeadClick(t,n)}}},[t.label?i("span",{staticClass:"table-sorting__label",domProps:{innerHTML:e._s(t.label)}}):e._e()])})],2)]),e._v(" "),i("tbody",[0===e.items.length?i("tr",{attrs:{colspan:Object.keys(e.fields).length}},[e._t("empty",[i("div",{staticClass:"table-empty",domProps:{innerHTML:e._s(e.emptyText)}})])],2):e._e(),e._v(" "),e._l(e.mutableItems,function(t,n){return i("tr",{key:n},[e.multiSelect?i("td",{staticClass:"table-select-td"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.selected[n],expression:"selected[index]"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected[n])?e._i(e.selected[n],null)>-1:e.selected[n]},on:{change:[function(t){var i=e.selected[n],s=t.target,a=!!s.checked;if(Array.isArray(i)){var o=e._i(i,null);s.checked?o<0&&e.$set(e.selected,n,i.concat([null])):o>-1&&e.$set(e.selected,n,i.slice(0,o).concat(i.slice(o+1)))}else e.$set(e.selected,n,a)},e.handleSelect]}})]):e._e(),e._v(" "),e._l(e.fields,function(s,a){return i("td",{key:a,class:"table-"+s.label.toLowerCase()},[e._t(a,[e._v("\n "+e._s(t[a])+"\n ")],{value:t[a],item:t,index:n})],2)})],2)}),e._v(" "),e.items.length>0&&0===e.mutableItems.length?i("tr",{attrs:{colspan:Object.keys(e.fields).length}},[e._t("emptyfiltered",[i("div",{staticClass:"table-empty",domProps:{innerHTML:e._s(e.emptyFilteredText)}})])],2):e._e()],2)]):i("div",{staticClass:"table-spinner"},[i("v-spinner")],1),e._v(" "),e.$scopedSlots.pagination?i("div",{staticClass:"table-pagination"},[e._t("pagination",null,{total:e.items.length,perPage:e.perPage})],2):e._e()],2)},staticRenderFns:[]},void 0,{name:"VTable",props:{ready:{type:Boolean,default:!0},value:{type:Array,default:function(){return[]}},fields:{type:Object,default:function(){}},items:{type:Array,default:function(){return[]}},multiSelect:{type:Boolean,default:!1},perPage:{type:Number,default:10},currentPage:{type:Number,default:1},sortCompare:{type:Function,default:null},emptyText:{type:String,default:"There is no records."},emptyFilteredText:{type:String,default:"There are no records matching your request."}},data:function(){return{query:"",selected:[],sortBy:null,sortDesc:!0}},computed:{mutableItems:function(){var e=this,t=this.items.slice();this.query&&(this.clearSelection(),t=t.filter(function(t){return i(e.query,p(t))}));var n=this.sortCompare||X;return this.sortBy&&(t=t.sort(function(t,i){var s=n(t,i,e.sortBy);return e.sortDesc?s:-1*s})),this.perPage&&(t=t.slice((this.currentPage-1)*this.perPage,this.currentPage*this.perPage)),t},mutableSelected:function(){var e=this;return this.mutableItems.map(function(t,i){if(e.selected[i])return t}).filter(function(e){return void 0!==e})}},methods:{onHeadClick:function(e,t){e.sortable?(t===this.sortBy&&(this.sortDesc=!this.sortDesc),this.sortBy=t):this.sortBy=null},handleSelect:function(){this.$emit("input",this.mutableSelected)},handleSelectAll:function(e){e.target.checked?this.selectAll():this.clearSelection(),this.handleSelect()},clearSelection:function(){this.selected=[]},selectAll:function(){this.selected=[].concat(this.mutableItems)}},components:{VSpinner:z}},void 0,!1,void 0,void 0,void 0);Q.install=function(e){e.component("VTable",Q)};var W=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"table-header"},[e._t("title",[i("h2",{staticClass:"table-header__title"},[e._v(e._s(e.title))])]),e._v(" "),i("div",{staticClass:"table-header__actions"},[e.searchable?i("div",{staticClass:"table-header__search"},[i("v-textbox",{attrs:{floated:"",label:"Search",type:"text",placeholder:"Search",size:"3",wide:!1,disabled:e.disabledSearch},on:{input:e.handleSearchInput}})],1):e._e(),e._v(" "),e.$scopedSlots.action?i("div",{staticClass:"table-header__action"},[e._t("action")],2):e._e()])],2)},staticRenderFns:[]},void 0,{name:"VTableHeader",props:{title:{type:String,default:"Table title"},searchable:{type:Boolean,default:!0},handleSearchInput:{type:Function,default:function(){}},disabledSearch:{type:Boolean}}},void 0,!1,void 0,void 0,void 0);W.install=function(e){e.component("VTableHeader",W)};var Y=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("li",{staticClass:"tabs__item",attrs:{role:"tab","aria-controls":e.id,"aria-selected":e.active?"true":null,tabindex:e.active?0:-1}},[i("a",{staticClass:"tabs__link",class:e.classes,attrs:{href:"#"},on:{click:e.onClick}},[i("div",{staticClass:"tabs__link-text"},[e._v(e._s(e.title))])])])},staticRenderFns:[]},void 0,{name:"VTabHeader",props:{id:{type:String,required:!0},title:{type:String,required:!0},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{classes:function(){return[{"tabs__link--active":this.active},{"tabs__link--disabled":this.disabled}]}},methods:{onClick:function(e){e.preventDefault(),this.$emit("click",e)}}},void 0,!1,void 0,void 0,void 0);Y.install=function(e){e.component("VTabHeader",Y)};var Z=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tabs",class:e.classes},[i("ul",{staticClass:"tabs__list",attrs:{role:"tablist"}},e._l(e.tabs,function(t){return i("v-tab-header",{key:t.id,ref:"tabHeaders",refInFor:!0,attrs:{active:e.activeTabId===t.id,disabled:t.disabled,id:t.id,title:t.title},on:{click:function(i){return e.selectTab(t)}},nativeOn:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])?null:"button"in t&&0!==t.button?null:e.selectPreviousTab(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])?null:"button"in t&&2!==t.button?null:e.selectNextTab(t)}]}})}),1),e._v(" "),i("div",{staticClass:"tabs__body"},[e._t("default")],2)])},staticRenderFns:[]},void 0,{name:"VTabs",props:{wide:{type:Boolean,default:!1}},data:function(){return{tabs:[],activeTabId:null,activeTabIndex:-1}},computed:{classes:function(){return[{"tabs--wide":this.wide}]}},methods:{addTab:function(e){this.tabs.push(e),(null===this.activeTabId||e.selected)&&(this.activeTabId=e.id)},removeTab:function(e){var t=this.tabs.indexOf(e);t>-1&&(this.tabs.splice(t,1),e.id===this.activeTabId&&this.selectTab(this.findNearestTab()))},onTabDisabledChange:function(e){e.disabled&&this.activeTabId===e.id&&this.selectTab(this.findNearestTab())},selectTab:function(e){null===e||e.disabled||e.id===this.activeTabId||(this.activeTabId=e.id,this.$emit("tab-change",e.id))},selectNextTab:function(){var e=this.findNextTab();e&&(this.selectTab(e),e.$el.focus())},selectPreviousTab:function(){var e=this.findPreviousTab();e&&(this.selectTab(e),e.$el.focus())},findNextTab:function(){for(var e=null,t=this.activeTabIndex+1;t=0;t--)if(this.$refs.tabHeaders[t]&&!this.$refs.tabHeaders[t].disabled){e=this.$refs.tabHeaders[t];break}return e},findNearestTab:function(){return this.findPreviousTab()||this.findNextTab()},findTabById:function(e){for(var t=0;t-1}},tabindex:[String,Number],multiline:{type:Boolean,default:!1},rows:{type:Number,default:2},min:Number,max:Number,step:{type:String,default:"any"},maxlength:Number,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},floated:{type:Boolean,default:!1},wide:{type:Boolean,default:!0},error:{type:Boolean,default:!1},errorText:{type:String},autocomplete:String,autofocus:{type:Boolean,default:!1}},computed:{minValue:function(){return"number"===this.type&&void 0!==this.min?this.min:null},maxValue:function(){return"number"===this.type&&void 0!==this.max?this.max:null},stepValue:function(){return"number"===this.type?this.step:null},classes:function(){return["textbox--size-"+this.size,{"textbox--floated":this.floated},{"textbox--floated-active":this.floated&&""!==this.value},{"textbox--wide":this.wide},{"textbox--error":this.error}]}},data:function(){return{isTouched:!1,initialValue:this.value}},created:function(){null===this.value&&(this.initialValue="",this.updateValue(""))},methods:{updateValue:function(e){this.$emit("input",e)},onChange:function(e){this.$emit("change",this.value,e)},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e),this.isTouched||(this.isTouched=!0,this.$emit("touch"))},onKeydown:function(e){this.$emit("keydown",e)},onKeydownEnter:function(e){this.$emit("keydown-enter",e)},reset:function(){document.activeElement!==this.$refs.input&&document.activeElement!==this.$refs.textarea||document.activeElement.blur(),this.updateValue(this.initialValue),this.resetTouched()},resetTouched:function(e){void 0===e&&(e={touched:!1}),this.isTouched=e.touched},focus:function(){(this.$refs.input||this.$refs.textarea).focus()}}},void 0,!1,void 0,void 0,void 0);te.install=function(e){e.component("VTextbox",te)};var ie=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"toggle",class:e.classes,attrs:{for:e.id}},[i("input",{ref:"input",staticClass:"toggle__input",attrs:{id:e.id,name:e.name,disabled:e.disabled,tabindex:e.tabindex,type:"checkbox"},domProps:{checked:e.isChecked,value:e.submittedValue},on:{blur:e.onBlur,focus:e.onFocus,change:e.onChange}}),e._v(" "),i("span",{staticClass:"toggle__container"}),e._v(" "),i("span",{staticClass:"toggle__text"},[e._v(e._s(e.label))])])},staticRenderFns:[]},void 0,{name:"VToggle",props:{id:{type:[String,Number]},name:{type:String},label:{type:[String,Number]},value:{required:!0},submittedValue:{type:String,default:"on"},checked:{type:Boolean,default:!1},trueValue:{default:!0},falseValue:{default:!1},indeterminate:{type:Boolean,default:!1},tabindex:[String,Number],vertical:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isChecked:u(this.value,this.trueValue)||this.checked}},created:function(){this.$emit("input",this.isChecked?this.trueValue:this.falseValue)},computed:{classes:function(){return[{"toggle--vertical":this.vertical}]}},methods:{focus:function(){this.$refs.input.focus()},onChange:function(e){var t=this.isChecked,i=e.target.checked;this.$emit("input",i?this.trueValue:this.falseValue,e),t!==i&&this.$emit("change",i?this.trueValue:this.falseValue,e)},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},watch:{value:function(){this.isChecked=u(this.value,this.trueValue)}}},void 0,!1,void 0,void 0,void 0);ie.install=function(e){e.component("VToggle",ie)};var ne=Object.freeze({VAlert:a,VAvatar:o,VBadge:r,VButton:l,VCheckbox:h,VCheckboxGroup:f,VChip:v,VDropdown:y,VMenu:g,VMenuOption:b,VModal:S,VNotification:$,VNotificationContainer:O,VPagination:w,VPopover:m,VProgress:P,VRadio:T,VRadioGroup:B,VSelect:L,VSelectOption:E,VSpinner:z,VStepper:H,VTab:J,VTable:Q,VTableHeader:W,VTabs:Z,VTextbox:te,VToggle:ie}),se=Object.freeze({Autofocus:ee,Clickoutside:q});var ae={install:function e(t){e.installed||(e.installed=!0,Object.keys(ne).forEach(function(e){t.component(e,ne[e])}),Object.keys(se).forEach(function(e){t.directive(e,se[e])}))}},oe=null;"undefined"!=typeof window?oe=window.Vue:"undefined"!=typeof global&&(oe=global.Vue),oe&&oe.use(ae),e.Autofocus=ee,e.Clickoutside=q,e.VAlert=a,e.VAvatar=o,e.VBadge=r,e.VButton=l,e.VCheckbox=h,e.VCheckboxGroup=f,e.VChip=v,e.VDropdown=y,e.VMenu=g,e.VMenuOption=b,e.VModal=S,e.VNotification=$,e.VNotificationContainer=O,e.VPagination=w,e.VPopover=m,e.VProgress=P,e.VRadio=T,e.VRadioGroup=B,e.VSelect=L,e.VSelectOption=E,e.VSpinner=z,e.VStepper=H,e.VTab=J,e.VTable=Q,e.VTableHeader=W,e.VTabs=Z,e.VTextbox=te,e.VToggle=ie,e.default=ae,Object.defineProperty(e,"__esModule",{value:!0})}); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("popper.js"),require("fuzzysearch"),require("vue")):"function"==typeof define&&define.amd?define(["exports","popper.js","fuzzysearch","vue"],t):t((e=e||self).ModulistVue={},e.Popper,e.fuzzysearch,e.Vue)}(this,function(e,t,i,n){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t,i=i&&i.hasOwnProperty("default")?i.default:i,n=n&&n.hasOwnProperty("default")?n.default:n;var s=function(e,t,i,n,s,a,o,r,l,c){"boolean"!=typeof o&&(l=r,r=o,o=!1);var u,d="function"==typeof i?i.options:i;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),n&&(d._scopeId=n),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=u):t&&(u=o?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),u)if(d.functional){var p=d.render;d.render=function(e,t){return u.call(t),p(e,t)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,u):[u]}return i},a=s({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"alert",class:this.classes},[t("div",{staticClass:"alert__body"},[t("div",{staticClass:"alert__title"},[this._v(this._s(this.title))]),this._v(" "),t("div",{staticClass:"alert__text"},[this._t("default")],2)])])},staticRenderFns:[]},void 0,{name:"VAlert",props:{title:{type:String,default:"Default title"},type:{type:String,default:"info",validator:function(e){return["info","success","warn","error"].indexOf(e)>-1}},wide:{type:Boolean,default:!1}},computed:{classes:function(){return["alert--"+this.type,{"alert--wide":this.wide}]}}},void 0,!1,void 0,void 0,void 0);a.install=function(e){e.component("VAlert",a)};var o=s({render:function(){var e=this.$createElement;return(this._self._c||e)("img",{staticClass:"avatar",attrs:{src:this.src,alt:this.alt,width:this.size,height:this.size}})},staticRenderFns:[]},void 0,{name:"VAvatar",props:{src:{type:String,required:!0},size:{type:[String,Number],default:32},alt:{type:String,default:"Avatar"}}},void 0,!1,void 0,void 0,void 0);o.install=function(e){e.component("VAvatar",o)};var r=s({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"badge",class:this.classes,domProps:{textContent:this._s(this.text)}})},staticRenderFns:[]},void 0,{name:"VBadge",props:{type:{type:String,default:"default",validator:function(e){return["default","primary","alternative","warning","success","danger"].indexOf(e)>-1}},align:{type:String,default:"middle",validator:function(e){return["top","middle","bottom"].indexOf(e)>-1}},text:{type:[String,Number],required:!0}},computed:{classes:function(){return["badge--"+this.type,"badge--align-"+this.align]}}},void 0,!1,void 0,void 0,void 0);r.install=function(e){e.component("VBadge",r)};var l=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("button",e._g({staticClass:"button",class:e.classes,attrs:{disabled:e.disabled,type:e.type}},e.$listeners),[e._t("default"),e._v(" "),e.$slots.icon?i("div",{staticClass:"button__icon"},[e._t("icon")],2):e._e()],2)},staticRenderFns:[]},void 0,{name:"VButton",props:{type:{type:String,default:"button"},appearance:{type:String,default:"default",validator:function(e){return["default","primary","alternative","subtle","success","danger"].indexOf(e)>-1}},size:{type:String,default:"4",validator:function(e){return["0","1","2","3","4"].indexOf(e)>-1}},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},iconFirst:{type:Boolean,default:!1},wide:{type:Boolean,default:!1},inverted:{type:Boolean,default:!1}},computed:{classes:function(){return["button--"+this.appearance,"button--size-"+this.size,{"button--loading":this.loading},{"button--icon-only":!this.$slots.default},{"button--icon-first":this.iconFirst},{"button--wide":this.wide},{"button--inverted":this.inverted}]}}},void 0,!1,void 0,void 0,void 0);function c(e){return null!==e&&"object"==typeof e}function u(e,t){return e==t||!(!c(e)||!c(t))&&JSON.stringify(e)===JSON.stringify(t)}function d(e,t){for(var i=0;i0?[].concat(this.initialValue):[])},isOptionCheckedByDefault:function(e){return d(this.initialValue,e[this.keys.value]||e)>-1},onFocus:function(e){this.isActive=!0,this.$emit("focus",e)},onBlur:function(e){this.isActive=!1,this.$emit("blur",e)},onChange:function(e,t){if(!this.ignoreChange){var i=e[0],n=e[1],s=[],a=t[this.keys.value]||t,o=d(this.value,a);i&&o<0&&(s=this.value.concat(a)),!i&&o>-1&&(s=this.value.slice(0,o).concat(this.value.slice(o+1))),this.$emit("input",s),this.$emit("change",s,n)}}},components:{VCheckbox:h}},void 0,!1,void 0,void 0,void 0);f.install=function(e){e.component("VCheckboxGroup",f)};var v=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",e._g({ref:"chip",staticClass:"chip",class:e.classes,attrs:{tabindex:"0"}},e.$listeners),[i("div",{staticClass:"chip__text"},[e._v(e._s(e.title))]),e._v(" "),e.closable?i("div",{staticClass:"chip__close"},[i("button",{staticClass:"chip__delete",on:{click:function(t){return t.stopPropagation(),e.onDelete(t)}}},[i("svg",{attrs:{slot:"icon",height:"12",width:"12"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])]):e._e()])},staticRenderFns:[]},void 0,{name:"VChip",props:{title:String,appearance:{type:String},closable:Boolean},computed:{classes:function(){return["chip--"+this.appearance]}},methods:{onDelete:function(e){this.$emit("delete",e)}}},void 0,!1,void 0,void 0,void 0);v.install=function(e){e.component("VChip",v)};var m=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"popover",class:{"popover--has-max-height":e.hasMaxHeight},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.close(t)}}},[i("div",{ref:"trigger",staticClass:"popover__trigger"},[e._t("toggle")],2),e._v(" "),e.isActive?i("div",{ref:"content",staticClass:"popover__content",attrs:{role:"dialog","aria-haspopup":"true","aria-expanded":e.isActive?"true":"false",tabindex:"-1"}},[e._t("default"),e._v(" "),i("div",{staticClass:"popover__focus-redirector",attrs:{tabindex:"0"},on:{focus:e.restrictFocus}})],2):e._e()])},staticRenderFns:[]},void 0,{name:"VPopover",props:{trigger:{type:String,default:"click"},containFocus:{type:Boolean,default:!1},hasMaxHeight:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},offset:{type:[String,Number],default:"0"},manualOpen:{type:Boolean,default:!1},manualClose:{type:Boolean,default:!1},returnFocusOnClose:{type:Boolean,default:!0},focusRedirector:Function},data:function(){return{isActive:!1,popperInstance:null,focusedElBeforeOpen:null}},mounted:function(){this.addEventsListeners()},computed:{triggerEl:function(){return this.$refs.trigger},popperOptions:function(){return{placement:this.placement,modifiers:{offset:{offset:this.offset}}}}},methods:{addEventsListeners:function(){switch(this.trigger){case"click":this.manualClose||document.addEventListener("click",this.handleClickOutside,!0),this.manualOpen||this.triggerEl.addEventListener("click",this.toggle);break;case"hover":this.manualOpen||this.triggerEl.addEventListener("mouseenter",this.show),this.manualClose||document.addEventListener("mousemove",this.handleClickOutside,!0);break;default:throw new Error("[popover] "+this.trigger+" is not defined")}},removeEventsListeners:function(){switch(this.trigger){case"click":this.manualClose||document.removeEventListener("click",this.handleClickOutside,!0),this.triggerEl.removeEventListener("click",this.toggle);break;case"hover":this.manualOpen||this.triggerEl.removeEventListener("mouseenter",this.show),this.manualClose||document.removeEventListener("mousemove",this.handleClickOutside,!0);break;default:throw new Error("[popover] "+this.trigger+" is not defined")}},toggle:function(){this.isActive?this.close():this.show()},show:function(){var e=this;this.disabled||this.isActive||(this.focusedElBeforeOpen=document.activeElement,this.isActive=!0,this.initializePopper(),this.$nextTick(function(){e.$el.focus()}),this.$emit("open"))},close:function(){var e=this;this.isActive=!1,this.$nextTick(function(){e.destroyPopper()}),this.$emit("close"),this.returnFocusOnClose&&this.triggerEl.focus()},restrictFocus:function(e){this.containFocus?(e.stopPropagation(),this.focusRedirector?this.focusRedirector(e):this.$el.focus()):this.close()},initializePopper:function(){var e=this;this.$nextTick(function(){e.popperInstance=new t(e.triggerEl,e.$refs.content,e.popperOptions)})},destroyPopper:function(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)},handleClickOutside:function(e){this.$el.contains(e.target)||this.triggerEl.contains(e.target)||!this.isActive||this.close()}},beforeDestroy:function(){this.removeEventsListeners()}},void 0,!1,void 0,void 0,void 0);m.install=function(e){e.component("VPopover",m)};var b=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("li",e._g({ref:"menuOption",staticClass:"menu-option",class:e.classes,attrs:{role:"menu-item",tabindex:e.isDivider||e.disabled?null:"0"}},e.$listeners),[e.isDivider?e._e():e._t("default",[i("div",{staticClass:"menu-option__content"},[i("div",{staticClass:"menu-option__text"},[e._v(e._s(e.label))])])])],2)},staticRenderFns:[]},void 0,{name:"VMenuOption",props:{type:String,label:String,disabled:{type:Boolean,default:!1}},computed:{classes:function(){return{"menu-option--divider":this.isDivider,"menu-option--disabled":this.disabled}},isDivider:function(){return"divider"===this.type}}},void 0,!1,void 0,void 0,void 0);b.install=function(e){e.component("VMenuOption",b)};var g=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ul",{staticClass:"menu",attrs:{role:"menu"}},[e._l(e.options,function(t){return i("v-menu-option",{key:t.id,attrs:{disabled:t[e.keys.disabled],label:"divider"===t[e.keys.type]?null:t[e.keys.label]||t,type:t[e.keys.type]},on:{click:function(i){return e.selectOption(t)},keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),e.selectOption(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:(t.stopPropagation(),e.closeMenu(t))}]}},[e._t("option",null,{option:t})],2)}),e._v(" "),e.containFocus?i("div",{staticClass:"menu__focus-redirector",attrs:{tabindex:"0"},on:{focus:e.redirectFocus}}):e._e()],2)},staticRenderFns:[]},void 0,{name:"VMenu",props:{options:{type:Array,default:function(){return[]}},containFocus:{type:Boolean,default:!1},keys:{type:Object,default:function(){return{type:"type",label:"label",disabled:"disabled"}}}},methods:{selectOption:function(e){e.disabled||"divider"===e.type||(this.$emit("select",e),this.closeMenu())},closeMenu:function(){this.$emit("close")},redirectFocus:function(e){e.stopPropagation(),this.$el.querySelector(".menu-option").focus()}},components:{VMenuOption:b}},void 0,!1,void 0,void 0,void 0);g.install=function(e){e.component("VMenu",g)};var y=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dropdown"},[i("Popover",{ref:"popover",attrs:{"contain-focus":"",disabled:e.disabled,placement:e.placement},on:{open:e.onOpen,close:e.onClose}},[i("div",{staticClass:"dropdown__toggle",attrs:{slot:"toggle"},slot:"toggle"},[e._t("toggle")],2),e._v(" "),i("Menu",{attrs:{options:e.options,"contain-focus":e.containFocus},on:{select:e.onSelect,close:function(t){return e.$refs.popover.close()}}})],1)],1)},staticRenderFns:[]},void 0,{name:"VDropdown",props:{placement:{type:String,default:"bottom"},options:{type:Array,default:function(){return[]}},containFocus:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},methods:{onSelect:function(e){this.$emit("select",e)},onOpen:function(){this.$emit("open")},onClose:function(){this.$emit("close")}},components:{Popover:m,Menu:g}},void 0,!1,void 0,void 0,void 0);y.install=function(e){e.component("VDropdown",y)};var _={name:"VModal",props:{open:{type:Boolean,default:!1},role:{type:String,default:"dialog",validator:function(e){return["dialog","alertdialog"].indexOf(e)>-1}},title:{type:String,default:"Modal title"},size:{type:String,default:"2",validator:function(e){return["1","2","3"].indexOf(e)>-1}},dismissible:{type:Boolean,default:!0},dismissOn:{type:String,default:"backdrop esc close-button"}},computed:{dismissOnBackdrop:function(){return this.dismissOn.indexOf("backdrop")>-1},dismissOnCloseButton:function(){return this.dismissOn.indexOf("close-button")>-1},dismissOnEsc:function(){return this.dismissOn.indexOf("esc")>-1},classes:function(){return["modal--size-"+this.size]}},methods:{close:function(e){this.dismissible&&(e.currentTarget===this.$refs.backdrop&&e.target!==e.currentTarget||this.$emit("close"))},onOpen:function(){this.lastfocusedElement=document.activeElement,this.$refs.container.focus(),document.body.classList.add("modal--open"),document.addEventListener("focus",this.restrictFocus,!0),this.$emit("open")},onClose:function(){this.teardownModal(),this.$emit("close")},redirectFocus:function(){this.$refs.container.focus()},restrictFocus:function(e){this.$refs.container.contains(e.target)||(e.stopPropagation(),this.$refs.container.focus())},teardownModal:function(){document.body.classList.remove("modal--open"),document.removeEventListener("focus",this.restrictFocus,!0),this.lastfocusedElement&&this.lastfocusedElement.focus()},onEnter:function(){this.$emit("reveal")},onLeave:function(){this.$emit("hide"),document.body.classList.remove("modal--open")}},components:{VButton:l},watch:{open:function(){var e=this;this.$nextTick(function(){e[e.open?"onOpen":"onClose"]()})}},beforeDestroy:function(){this.open&&this.teardownModal()}},k="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var C=document.head||document.getElementsByTagName("head")[0],x={};var V=function(e){return function(e,t){return function(e,t){var i=k?t.media||"default":e,n=x[i]||(x[i]={ids:new Set,styles:[]});if(!n.ids.has(e)){n.ids.add(e);var s=t.source;if(t.map&&(s+="\n/*# sourceURL="+t.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",t.media&&n.element.setAttribute("media",t.media),C.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(s),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{var a=n.ids.size-1,o=document.createTextNode(s),r=n.element.childNodes;r[a]&&n.element.removeChild(r[a]),r.length?n.element.insertBefore(o,r[a]):n.element.appendChild(o)}}}(e,t)}},S=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("transition",{attrs:{name:"modal"},on:{"after-enter":e.onEnter,"after-leave":e.onLeave}},[e.open?i("div",{staticClass:"modal modal__mask",class:e.classes,attrs:{role:e.role}},[i("div",{ref:"backdrop",staticClass:"modal__wrapper",on:{click:function(t){e.dismissOnBackdrop&&e.close(t)}}},[i("div",{ref:"container",staticClass:"modal__container",attrs:{tabindex:"-1"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.dismissOnEsc&&e.close(t)}}},[i("div",{staticClass:"modal__header"},[i("h3",{staticClass:"modal__title"},[e._v(e._s(e.title))]),e._v(" "),i("v-button",{attrs:{appearance:"subtle",size:"1"},on:{click:e.close}},[i("svg",{attrs:{slot:"icon",width:"16",height:"16"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])],1),e._v(" "),i("div",{staticClass:"modal__body"},[e._t("default")],2),e._v(" "),i("div",{staticClass:"modal__footer"},[e._t("footer")],2),e._v(" "),i("div",{attrs:{tabindex:"0"},on:{focus:function(t){return t.stopPropagation(),e.redirectFocus(t)}}})])])]):e._e()])},staticRenderFns:[]},function(e){e&&e("data-v-5d25e129_0",{source:".modal-enter{opacity:0}.modal-leave-active{opacity:0}.modal-enter .modal__container,.modal-leave-active .modal__container{transform:scale(1.1)}",map:void 0,media:void 0})},_,void 0,!1,void 0,V,void 0);S.install=function(e){e.component("VModal",S)};var $=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"notification",class:e.classes},[i("div",{staticClass:"notification__icon"},["info"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"info-icon"}})]):e._e(),e._v(" "),"success"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"success-icon"}})]):e._e(),e._v(" "),"warning"===e.type?i("svg",{attrs:{width:"20",height:"16"}},[i("use",{attrs:{"xlink:href":"warning-icon"}})]):e._e(),e._v(" "),"error"===e.type?i("svg",{attrs:{width:"20",height:"20"}},[i("use",{attrs:{"xlink:href":"error-icon"}})]):e._e()]),e._v(" "),i("div",{staticClass:"notification__content"},[i("div",{staticClass:"notification__title"},[e._v(e._s(e.computedTitle))]),e._v(" "),i("div",{staticClass:"notification__message"},[e._v(e._s(e.message))]),e._v(" "),e.actions.length>0?i("div",{staticClass:"notification__actions"},e._l(e.actions,function(t,n){return i("div",{key:n,staticClass:"notification__action"},[i("v-button",{attrs:{appearance:t.appearance,size:"2"},on:{click:function(i){return e.actionClickHandler(t.onClick)}}},[e._v("\n "+e._s(t.text)+"\n ")])],1)}),0):e._e()]),e._v(" "),e.dismissible?i("div",{staticClass:"notification__close"},[i("v-button",{attrs:{appearance:"subtle",size:"1"},on:{click:function(t){return t.stopPropagation(),e.onClose(t)}}},[i("svg",{attrs:{slot:"icon",width:"14",height:"14"},slot:"icon"},[i("use",{attrs:{"xlink:href":"#cross-icon"}})])])],1):e._e()])},staticRenderFns:[]},void 0,{name:"VNotification",props:{id:{type:[Number,String],default:1},type:{type:String,default:"info"},title:{type:String},message:String,dismissible:{type:Boolean,default:!0},timeout:{type:Number,default:5e3,validator:function(e){return e>0}},actions:{type:Array,default:function(){return[]}}},computed:{computedTitle:function(){return this.title?this.title:(e=this.type).charAt(0).toUpperCase()+e.slice(1);var e},classes:function(){return["notification--"+this.type]}},mounted:function(){this.timeout&&this.dismissible&&setTimeout(this.onClose,this.timeout)},methods:{onClose:function(e){this.$emit("close",e)},actionClickHandler:function(e){e?(e(),this.onClose()):this.onClose()}},components:{VButton:l}},void 0,!1,void 0,void 0,void 0);$.install=function(e){e.component("VNotification",$)};var O=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"notification-container",class:e.classes},[i("transition-group",{attrs:{name:"list"}},e._l(e.queue,function(t,n){return i("v-notification",{key:t.timestamp.getTime(),attrs:{id:"notification-"+n,type:t.type,title:t.title,message:t.message,actions:t.actions,timestamp:t.timestamp},on:{close:function(i){return e.remove(t.timestamp)}}})}),1)],1)},staticRenderFns:[]},function(e){e&&e("data-v-8fb8f2f0_0",{source:".list-enter-active,.list-leave-active{transition:all .3s}.list-enter,.list-leave-to{opacity:0;transform:translateX(30px)}",map:void 0,media:void 0})},{name:"VNotificationContainer",props:{queue:{type:Array,default:function(){return[]}},position:{type:String,default:"top-right",validator:function(e){return["top-left","top-right","bottom-right","bottom-left"].indexOf(e)>-1}}},computed:{classes:function(){return["notification-container--"+this.position]}},methods:{create:function(e){var t=e;t.timestamp=new Date,t.timestamp.setMilliseconds(t.timestamp.getMilliseconds()+this.queue.length),this.queue.push(t)},remove:function(e){var t=this.queue.findIndex(function(t){return t.timestamp===e});-1!==t&&this.queue.splice(t,1)}},components:{VNotification:$}},void 0,!1,void 0,V,void 0);O.install=function(e){e.component("VNotificationContainer",O)};var w=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ul",{staticClass:"pagination"},[i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,"aria-label":"Go to first page",disabled:e.isInFirstPage},on:{click:e.onClickFirstPage}},[e._v("\n First\n ")])],1),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,"aria-label":"Go to previous page",disabled:e.isInFirstPage},on:{click:function(t){return t.preventDefault(),e.onClickPreviousPage(t)}}},[e._v("\n Previous\n ")])],1),e._v(" "),e._l(e.pages,function(t,n){return i("li",{key:n,staticClass:"pagination__item"},[i("v-button",{class:{active:e.isPageActive(t.name)},attrs:{size:e.size,appearance:e.isPageActive(t.name)?"primary":"default","aria-label":"Go to page number "+t.name},on:{click:function(i){return i.preventDefault(),e.onClickPage(t.name)}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,disabled:e.isInLastPage,"aria-label":"Go to next page"},on:{click:e.onClickNextPage}},[e._v("\n Next\n ")])],1),e._v(" "),i("li",{staticClass:"pagination__item"},[i("v-button",{attrs:{size:e.size,disabled:e.isInLastPage,"aria-label":"Go to last page"},on:{click:e.onClickLastPage}},[e._v("\n Last\n ")])],1)],2)},staticRenderFns:[]},void 0,{name:"VPagination",props:{value:{type:Number,default:1},maxVisibleButtons:{type:Number,default:3},total:{type:Number,required:!0},perPage:{type:Number,default:10},size:{type:String,default:"4"}},data:function(){return{currentPage:this.value}},computed:{startPage:function(){return 1===this.currentPage?1:this.currentPage===this.totalPages?this.totalPages-this.maxVisibleButtons+1:this.currentPage-1},endPage:function(){return Math.min(this.startPage+this.maxVisibleButtons-1,this.totalPages)},pages:function(){for(var e=[],t=this.startPage;t<=this.endPage;t+=1)e.push({name:t,isDisabled:t===this.currentPage});return e},isInFirstPage:function(){return 1===this.currentPage},isInLastPage:function(){return this.currentPage===this.totalPages},totalPages:function(){return Math.ceil(this.total/this.perPage)}},methods:{onClickFirstPage:function(){this.$emit("input",1)},onClickPreviousPage:function(){this.$emit("input",this.currentPage-1)},onClickPage:function(e){this.$emit("input",e)},onClickNextPage:function(){this.$emit("input",this.currentPage+1)},onClickLastPage:function(){this.$emit("input",this.totalPages)},isPageActive:function(e){return this.currentPage===e}},components:{VButton:l},watch:{value:function(e){this.currentPage=e}}},void 0,!1,void 0,void 0,void 0);w.install=function(e){e.component("VPagination",w)};var P=s({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"progress",class:this.classes},["determinate"===this.type?t("div",{staticClass:"progress__bar",style:{width:this.moderatedProgress+"%"},attrs:{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":this.moderatedProgress}}):t("div",{staticClass:"progress__bar",attrs:{role:"progressbar","aria-valuemax":100,"aria-valuemin":0}})])},staticRenderFns:[]},void 0,{name:"VProgress",props:{type:{type:String,default:"indeterminate",validator:function(e){return["indeterminate","determinate"].indexOf(e)>-1}},progress:{type:Number,default:0}},computed:{classes:function(){return["progress--"+this.type]},moderatedProgress:function(){return this.progress<0?0:this.progress>100?100:this.progress}}},void 0,!1,void 0,void 0,void 0);P.install=function(e){e.component("VProgress",P)};var T=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"radio",attrs:{for:e.id}},[i("input",{staticClass:"radio__input",attrs:{type:"radio",id:e.id,disabled:e.disabled,name:e.name,tabindex:e.tabindex},domProps:{checked:e.checked,value:e.trueValue},on:{blur:e.onBlur,change:e.onChange,focus:e.onFocus}}),e._v(" "),i("span",{staticClass:"radio__circle"}),e._v(" "),i("span",{staticClass:"radio__text"},[e._v(e._s(e.label))])])},staticRenderFns:[]},void 0,{name:"VRadio",props:{id:{type:[String,Number]},name:{type:String,required:!0},label:{type:String,required:!0},tabindex:{type:[String,Number]},value:{type:[Number,String],required:!0},trueValue:{type:[Number,String],required:!0},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},created:function(){this.checked&&this.$emit("input",this.trueValue)},computed:{isChecked:function(){return String(this.value).length>0&&this.value==this.trueValue}},methods:{onFocus:function(e){this.isActive=!0,this.$emit("focus",e)},onBlur:function(e){this.isActive=!1,this.$emit("blur",e)},onChange:function(e){this.disabled||this.$emit("input",this.trueValue),this.$emit("change",this.isChecked,e)},focus:function(){this.$refs.input.focus()}}},void 0,!1,void 0,void 0,void 0);T.install=function(e){e.component("VRadio",T)};var B=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"radio-group"},[i("div",{staticClass:"radio-group__label"},[e._v(e._s(e.label))]),e._v(" "),i("div",{staticClass:"radio-group__list"},e._l(e.options,function(t,n){return i("div",{key:t[e.keys.id]||e.name+"-"+n,staticClass:"radio-group__item"},[i("VRadio",{key:t[e.keys.id],attrs:{id:t[e.keys.id]||e.name+"-"+n,label:t[e.keys.label]||t,checked:e.isOptionCheckedByDefault(t),disabled:e.disabled||t[e.keys.disabled],name:e.name,tabindex:e.tabindex,"true-value":t[e.keys.value]||t},on:{blur:e.onBlur,focus:e.onFocus},model:{value:e.selectedOptionValue,callback:function(t){e.selectedOptionValue=t},expression:"selectedOptionValue"}})],1)}),0)])},staticRenderFns:[]},void 0,{name:"VRadioGroup",props:{name:{type:String,required:!0},tabindex:{type:[String,Number]},label:{type:String},options:{type:Array,required:!0},value:{type:[Number,String],required:!0},keys:{type:Object,default:function(){return{id:"id",label:"label",value:"value",checked:"checked",disabled:"disabled"}}},disabled:{type:Boolean,default:!1}},data:function(){return{initialValue:this.value,selectedOptionValue:this.value}},methods:{reset:function(){this.$emit("input",this.initialValue)},isOptionCheckedByDefault:function(e){return this.initialValue==e[this.keys.value]||this.initialValue==e||e[this.keys.checked]},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},watch:{selectedOptionValue:function(){this.$emit("input",this.selectedOptionValue),this.$emit("change",this.selectedOptionValue)},value:function(){this.selectedOptionValue=this.value}},components:{VRadio:T}},void 0,!1,void 0,void 0,void 0);B.install=function(e){e.component("VRadio",B)};var E=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"select-option",class:e.classes,attrs:{"data-value":e.option[e.keys.value]}},[e._t("default",[i("div",[e._v(e._s(e.option[e.keys.label]))])]),e._v(" "),e.multiple&&!e.disabled?i("div",{staticClass:"select-option__checkbox",class:{"select-option__checkbox--selected":e.selected}}):e._e()],2)},staticRenderFns:[]},void 0,{name:"VSelectOption",props:{option:{type:[String,Object]},selected:Boolean,highlighted:Boolean,disabled:Boolean,multiple:Boolean,keys:{type:Object,default:function(){return{label:"label",value:"value",image:"image",disabled:"disabled"}}}},computed:{classes:function(){return[{"select-option--selected":this.selected},{"select-option--highlighted":this.highlighted},{"select-option--disabled":this.disabled}]}}},void 0,!1,void 0,void 0,void 0);E.install=function(e){e.component("VSelectOption",E)};var F,N=!n.prototype.$isServer&&document.addEventListener?function(e,t,i){e&&t&&i&&e.addEventListener(t,i,!1)}:function(e,t,i){e&&t&&i&&e.attachEvent("on"+t,i)},A=[],I="@@clickoutsideContext",D=0;function R(e,t,i){return function(n,s){void 0===n&&(n={}),void 0===s&&(s={}),!(i&&i.context&&n.target&&s.target)||e.contains(n.target)||e.contains(s.target)||e===n.target||i.context.popperElm&&(i.context.popperElm.contains(n.target)||i.context.popperElm.contains(s.target))||(t.expression&&e[I].methodName&&i.context[e[I].methodName]?i.context[e[I].methodName]():e[I].bindingFn&&e[I].bindingFn())}}!n.prototype.$isServer&&N(document,"mousedown",function(e){return F=e}),!n.prototype.$isServer&&N(document,"mouseup",function(e){A.forEach(function(t){return t[I].documentHandler(e,F)})});var q={bind:function(e,t,i){A.push(e);var n=D++;e[I]={id:n,documentHandler:R(e,t,i),methodName:t.expression,bindingFn:t.value}},update:function(e,t,i){e[I].documentHandler=R(e,t,i),e[I].methodName=t.expression,e[I].bindingFn=t.value},unbind:function(e){for(var t=A.length,i=0;i0&&e.multiple?i("div",[i("v-chip",{staticClass:"select__selected-option",attrs:{title:e.mutableValue[0].label,closable:""},on:{click:function(e){e.stopPropagation()},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:(t.stopPropagation(),e.deleteSelectedOption(t,e.mutableValue[0]))},delete:function(t){return e.deleteSelectedOption(t,e.mutableValue[0])}}}),e._v(" "),e.mutableValue.length>1?i("v-chip",{attrs:{title:"+ "+(e.mutableValue.length-1)}}):e._e()],1):e._e(),e._v(" "),e.mutableValue&&!e.$scopedSlots.option?i("div",[e._v(e._s(e.mutableValue[e.keys.label]))]):e._e(),e._v(" "),e.isPlaceholderVisible?i("div",{staticClass:"select__placeholder"},[e._v(e._s(e.placeholder))]):e._e()],2),e._v(" "),e.isSlotDisplayed&&e.clearable?i("svg",{staticClass:"select__clear",attrs:{height:"16",width:"16"},on:{click:function(t){return t.stopPropagation(),e.clear(t)}}},[i("use",{attrs:{"xlink:href":"#cross-icon"}})]):i("svg",{staticClass:"select__chevron",attrs:{width:"18px",height:"18px"}},[i("use",{attrs:{"xlink:href":"#chevron-down-icon"}})])]),e._v(" "),i("div",{ref:"dropdown",staticClass:"select__dropdown",attrs:{tabindex:"-1"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:(t.preventDefault(),e.closeDropdown())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.highlightOption("next"))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.handleOnEnterSelectOption(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.onBlur(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.highlightOption("prev"))}]}},[e.filterable?i("div",{staticClass:"select__filter-wrapper"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"filter",staticClass:"select__filter",attrs:{tabindex:"0",type:"text",placeholder:"Search",autocomplete:"off"},domProps:{value:e.query},on:{input:function(t){t.target.composing||(e.query=t.target.value)}}})]):e._e(),e._v(" "),e._l(e.filteredOptions,function(t,n){return i("v-select-option",{key:n,ref:"options",refInFor:!0,attrs:{option:t,multiple:e.multiple,keys:e.keys,disabled:t[e.keys.disabled],selected:e.isOptionSelected(t),highlighted:e.highlightedIndex===n},nativeOn:{click:function(i){return i.stopPropagation(),e.select(t,n)}}},[e._t("option",null,{index:n,option:t})],2)})],2)])},staticRenderFns:[]},void 0,{name:"VSelect",directives:{clickoutside:q},props:{id:{type:[Number,String]},tabindex:{type:[Number,String],default:0},name:{type:String},label:{type:String,default:"Label"},value:{type:[Array,Object],required:!0},multiple:{type:Boolean},filterable:{type:Boolean},clearable:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},placeholder:{type:String,default:"Placeholder"},options:{type:Array,default:function(){return[]}},keys:{type:Object,default:function(){return{label:"label",value:"value",image:"image",disabled:"disabled"}}}},created:function(){this.mutableValue=this.multiple?[]:this.value,this.mutableOptions=this.options.slice(0)},data:function(){return{query:"",isOpen:!1,isActive:!1,mutableValue:null,mutableOptions:[],highlightedIndex:-1}},computed:{classes:function(){return[{"select--open":this.isOpen},{"select--disabled":this.disabled}]},isSlotDisplayed:function(){return this.multiple?this.mutableValue.length>0&&this.mutableValue.length<=1:""!==this.mutableValue&&(e=this.mutableValue,!(0===Object.keys(e).length));var e},isPlaceholderVisible:function(){return""===this.mutableValue||null===this.mutableValue||0===this.mutableValue.length||0===Object.keys(this.mutableValue).length},filteredOptions:function(){var e=this;return this.filterable?this.mutableOptions.filter(function(t,i){return e.defaultFilter(t,i)}):this.mutableOptions}},methods:{handleClickOutside:function(){this.isOpen?this.closeDropdown():this.isActive&&(this.isActive=!1)},handleOnEnterSelectOption:function(){var e=this.filteredOptions[this.highlightedIndex];this.select(e)},select:function(e){e.disabled||(this.multiple?this.isOptionSelected(e)?this.deselect(e):(this.mutableValue.push(e),this.setValue(this.mutableValue)):(this.setValue(e),this.closeDropdown()),this.$emit("select",e))},deselect:function(e){var t=this.mutableValue.indexOf(e);this.mutableValue.splice(t,1)},setValue:function(e){this.mutableValue=e,this.$emit("input",e),this.$emit("change",e)},toggleDropdown:function(){this[this.isOpen?"closeDropdown":"openDropdown"]()},onOpen:function(){var e=this;this.$nextTick(function(){e.$refs.dropdown.focus(),e.scrollOptionIntoView(e.$refs.dropdown.querySelector(".select-option--selected"))})},onBlur:function(){this.isActive=!1,this.$emit("blur"),this.isOpen&&this.closeDropdown()},onFocus:function(){this.isActive=!0,this.$emit("focus")},openDropdown:function(){this.disabled||(this.isOpen=!0,this.$refs.dropdown.focus())},closeDropdown:function(){var e=this;this.isOpen=!1,this.$refs.container.focus(),this.$nextTick(function(){e.query=""})},isOptionSelected:function(e){var t=this;return this.multiple?this.mutableValue.some(function(i){return i[t.keys.label]===e[t.keys.label]}):this.mutableValue[this.keys.label]===e[this.keys.label]},clear:function(){var e=this;this.multiple?this.setValue([]):this.setValue({}),this.highlightedIndex=-1,this.$emit("clear"),this.$nextTick(function(){var t;(t=e.$refs.dropdown)&&(t.scrollTop=0)})},reset:function(){this.clear()},deleteSelectedOption:function(e,t){var i=this.mutableValue.indexOf(t);i>-1&&this.mutableValue.splice(i,1),e.stopPropagation()},defaultFilter:function(e){var t=this.query.toLowerCase(),n=e[this.keys.label];return"string"==typeof n&&(n=n.toLowerCase()),i(t,n)},highlightOption:function(e){var t=this;this.$refs.options.length!==this.highlightedIndex&&("next"===e&&(this.highlightedIndex=this.highlightedIndex+1,this.highlightedIndex===this.$refs.options.length&&(this.highlightedIndex=0)),"prev"===e&&(this.highlightedIndex=this.highlightedIndex-1,this.highlightedIndex<0&&(this.highlightedIndex=this.$refs.options.length-1)),this.filteredOptions[this.highlightedIndex].disabled&&this.highlightOption(e),this.$nextTick(function(){t.scrollOptionIntoView(t.$refs.options[t.highlightedIndex].$el)}))},scrollOptionIntoView:function(e){var t,i;t=e,void 0===(i={container:this.$refs.dropdown,marginTop:8})&&(i={container:null,marginTop:0}),t&&(i.container=i.container||t.parentElement,function(e,t){if(e){t=t||e.parentElement;var i=e.offsetTop,n=t.scrollTop,s=i+e.offsetHeight,a=t.offsetHeight;return i>=n&&s<=a}}(t,i.container)||(i.container.scrollTop=t.offsetTop-i.marginTop))}},watch:{value:function(e){this.mutableValue=e},options:function(e){this.mutableOptions=e},isOpen:function(){this.isOpen?(this.onOpen(),this.$emit("open")):this.$emit("close")},query:function(){this.highlightedIndex=0}},components:{VSelectOption:E,VChip:v}},void 0,!1,void 0,void 0,void 0);L.install=function(e){e.component("VSelect",L)};var z=s({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"spinner",class:this.classes})},staticRenderFns:[]},void 0,{name:"VSpinner",props:{appearance:{type:String,default:"default"}},computed:{classes:function(){return["spinner--"+this.appearance]}}},void 0,!1,void 0,void 0,void 0);z.install=function(e){e.component("VSpinner",z)};var M=s({render:function(){var e=this.$createElement,t=this._self._c||e;return t("li",{staticClass:"step",class:this.classes,on:{click:this.onClick}},[t("button",{staticClass:"step__marker"},[this.hideLabel?this._e():t("span",{staticClass:"step__label"},[this._v(this._s(this.title))])])])},staticRenderFns:[]},void 0,{name:"VStep",props:{id:{type:Number,required:!0},title:{type:String,required:!0},hideLabel:{type:Boolean,default:!1}},data:function(){return{}},computed:{isActive:function(){return this.$parent.currentStep===this.id},isPrevious:function(){return this.$parent.currentStep>this.id},isNext:function(){return this.$parent.currentStepe&&!this.disablePrev&&this.onChange(this.currentStep-1)},onChange:function(e){e>8&255]+j[e>>16&255]+j[e>>24&255]+"-"+j[255&t]+j[t>>8&255]+"-"+j[t>>16&15|64]+j[t>>24&255]+"-"+j[63&i|128]+j[i>>8&255]+"-"+j[i>>16&255]+j[i>>24&255]+j[255&n]+j[n>>8&255]+j[n>>16&255]+j[n>>24&255]},K=function(e){return(e=e||"")+U().split("-")[0]},J=s({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"tab",class:{"tab--active":this.isActive,"tab--disabled":this.disabled},attrs:{role:"tabpanel",id:this.id,"aria-hidden":this.isActive?null:"true",tabindex:this.isActive?"0":null}},[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"VTab",props:{id:{type:String,default:function(){return K("tab-")}},title:String,selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isActive:!1}},created:function(){this.$parent.addTab(this)},beforeDestroy:function(){this.$parent.removeTab(this)},methods:{activate:function(){this.isActive=!0,this.$emit("select",this.id)},deactivate:function(){this.isActive=!1,this.$emit("deselect",this.id)}},watch:{disabled:function(){this.$parent.onTabDisabledChange(this)}}},void 0,!1,void 0,void 0,void 0);J.install=function(e){e.component("VTab",J)};var X=function(e,t,i){return p(e[i]).localeCompare(p(t[i]),void 0,{numeric:!0})},Q=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"table-responsive"},[e._t("header",null,{items:e.items,selected:e.mutableSelected,handleSearchInput:function(t){return e.query=t},disabledSearch:0===e.items.length}),e._v(" "),e.ready?i("table",{staticClass:"table"},[i("thead",[0===e.items.length||e.items.length>0&&0===e.mutableItems.length?e._e():i("tr",[e.multiSelect?i("th",{staticClass:"table-select-td"},[i("input",{ref:"checkbox",attrs:{type:"checkbox"},domProps:{checked:e.mutableItems.length===e.mutableSelected.length},on:{change:e.handleSelectAll}})]):e._e(),e._v(" "),e._l(e.fields,function(t,n){return i("th",{key:n,class:[t.sortable?"table-sorting":null,e.sortBy===n?"table-sorting--"+(e.sortDesc?"desc":"asc"):"",t.class?t.class:null],on:{click:function(i){return e.onHeadClick(t,n)}}},[t.label?i("span",{staticClass:"table-sorting__label",domProps:{innerHTML:e._s(t.label)}}):e._e()])})],2)]),e._v(" "),i("tbody",[0===e.items.length?i("tr",{attrs:{colspan:Object.keys(e.fields).length}},[e._t("empty",[i("div",{staticClass:"table-empty",domProps:{innerHTML:e._s(e.emptyText)}})])],2):e._e(),e._v(" "),e._l(e.mutableItems,function(t,n){return i("tr",{key:n},[e.multiSelect?i("td",{staticClass:"table-select-td"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.selected[n],expression:"selected[index]"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected[n])?e._i(e.selected[n],null)>-1:e.selected[n]},on:{change:[function(t){var i=e.selected[n],s=t.target,a=!!s.checked;if(Array.isArray(i)){var o=e._i(i,null);s.checked?o<0&&e.$set(e.selected,n,i.concat([null])):o>-1&&e.$set(e.selected,n,i.slice(0,o).concat(i.slice(o+1)))}else e.$set(e.selected,n,a)},e.handleSelect]}})]):e._e(),e._v(" "),e._l(e.fields,function(s,a){return i("td",{key:a,class:"table-"+s.label.toLowerCase()},[e._t(a,[e._v("\n "+e._s(t[a])+"\n ")],{value:t[a],item:t,index:n})],2)})],2)}),e._v(" "),e.items.length>0&&0===e.mutableItems.length?i("tr",{attrs:{colspan:Object.keys(e.fields).length}},[e._t("emptyfiltered",[i("div",{staticClass:"table-empty",domProps:{innerHTML:e._s(e.emptyFilteredText)}})])],2):e._e()],2)]):i("div",{staticClass:"table-spinner"},[i("v-spinner")],1),e._v(" "),e.$scopedSlots.pagination?i("div",{staticClass:"table-pagination"},[e._t("pagination",null,{total:e.items.length,perPage:e.perPage})],2):e._e()],2)},staticRenderFns:[]},void 0,{name:"VTable",props:{ready:{type:Boolean,default:!0},value:{type:Array,default:function(){return[]}},fields:{type:Object,default:function(){}},items:{type:Array,default:function(){return[]}},multiSelect:{type:Boolean,default:!1},perPage:{type:Number,default:10},currentPage:{type:Number,default:1},sortCompare:{type:Function,default:null},emptyText:{type:String,default:"There is no records."},emptyFilteredText:{type:String,default:"There are no records matching your request."}},data:function(){return{query:"",selected:[],sortBy:null,sortDesc:!0}},computed:{mutableItems:function(){var e=this,t=this.items.slice();this.query&&(this.clearSelection(),t=t.filter(function(t){return i(e.query,p(t))}));var n=this.sortCompare||X;return this.sortBy&&(t=t.sort(function(t,i){var s=n(t,i,e.sortBy);return e.sortDesc?s:-1*s})),this.perPage&&(t=t.slice((this.currentPage-1)*this.perPage,this.currentPage*this.perPage)),t},mutableSelected:function(){var e=this;return this.mutableItems.map(function(t,i){if(e.selected[i])return t}).filter(function(e){return void 0!==e})}},methods:{onHeadClick:function(e,t){e.sortable?(t===this.sortBy&&(this.sortDesc=!this.sortDesc),this.sortBy=t):this.sortBy=null},handleSelect:function(){this.$emit("input",this.mutableSelected)},handleSelectAll:function(e){e.target.checked?this.selectAll():this.clearSelection(),this.handleSelect()},clearSelection:function(){this.selected=[]},selectAll:function(){this.selected=[].concat(this.mutableItems)}},components:{VSpinner:z}},void 0,!1,void 0,void 0,void 0);Q.install=function(e){e.component("VTable",Q)};var W=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"table-header"},[e._t("title",[i("h2",{staticClass:"table-header__title"},[e._v(e._s(e.title))])]),e._v(" "),i("div",{staticClass:"table-header__actions"},[e.searchable?i("div",{staticClass:"table-header__search"},[i("v-textbox",{attrs:{floated:"",label:"Search",type:"text",placeholder:"Search",size:"3",wide:!1,disabled:e.disabledSearch},on:{input:e.handleSearchInput}})],1):e._e(),e._v(" "),e.$scopedSlots.action?i("div",{staticClass:"table-header__action"},[e._t("action")],2):e._e()])],2)},staticRenderFns:[]},void 0,{name:"VTableHeader",props:{title:{type:String,default:"Table title"},searchable:{type:Boolean,default:!0},handleSearchInput:{type:Function,default:function(){}},disabledSearch:{type:Boolean}}},void 0,!1,void 0,void 0,void 0);W.install=function(e){e.component("VTableHeader",W)};var Y=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("li",{staticClass:"tabs__item",attrs:{role:"tab","aria-controls":e.id,"aria-selected":e.active?"true":null,tabindex:e.active?0:-1}},[i("a",{staticClass:"tabs__link",class:e.classes,attrs:{href:"#"},on:{click:e.onClick}},[i("div",{staticClass:"tabs__link-text"},[e._v(e._s(e.title))])])])},staticRenderFns:[]},void 0,{name:"VTabHeader",props:{id:{type:String,required:!0},title:{type:String,required:!0},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{classes:function(){return[{"tabs__link--active":this.active},{"tabs__link--disabled":this.disabled}]}},methods:{onClick:function(e){e.preventDefault(),this.$emit("click",e)}}},void 0,!1,void 0,void 0,void 0);Y.install=function(e){e.component("VTabHeader",Y)};var Z=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tabs",class:e.classes},[i("ul",{staticClass:"tabs__list",attrs:{role:"tablist"}},e._l(e.tabs,function(t){return i("v-tab-header",{key:t.id,ref:"tabHeaders",refInFor:!0,attrs:{active:e.activeTabId===t.id,disabled:t.disabled,id:t.id,title:t.title},on:{click:function(i){return e.selectTab(t)}},nativeOn:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])?null:"button"in t&&0!==t.button?null:e.selectPreviousTab(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])?null:"button"in t&&2!==t.button?null:e.selectNextTab(t)}]}})}),1),e._v(" "),i("div",{staticClass:"tabs__body"},[e._t("default")],2)])},staticRenderFns:[]},void 0,{name:"VTabs",props:{wide:{type:Boolean,default:!1}},data:function(){return{tabs:[],activeTabId:null,activeTabIndex:-1}},computed:{classes:function(){return[{"tabs--wide":this.wide}]}},methods:{addTab:function(e){this.tabs.push(e),(null===this.activeTabId||e.selected)&&(this.activeTabId=e.id)},removeTab:function(e){var t=this.tabs.indexOf(e);t>-1&&(this.tabs.splice(t,1),e.id===this.activeTabId&&this.selectTab(this.findNearestTab()))},onTabDisabledChange:function(e){e.disabled&&this.activeTabId===e.id&&this.selectTab(this.findNearestTab())},selectTab:function(e){null===e||e.disabled||e.id===this.activeTabId||(this.activeTabId=e.id,this.$emit("tab-change",e.id))},selectNextTab:function(){var e=this.findNextTab();e&&(this.selectTab(e),e.$el.focus())},selectPreviousTab:function(){var e=this.findPreviousTab();e&&(this.selectTab(e),e.$el.focus())},findNextTab:function(){for(var e=null,t=this.activeTabIndex+1;t=0;t--)if(this.$refs.tabHeaders[t]&&!this.$refs.tabHeaders[t].disabled){e=this.$refs.tabHeaders[t];break}return e},findNearestTab:function(){return this.findPreviousTab()||this.findNextTab()},findTabById:function(e){for(var t=0;t-1}},tabindex:[String,Number],multiline:{type:Boolean,default:!1},rows:{type:Number,default:2},min:Number,max:Number,step:{type:String,default:"any"},maxlength:Number,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},floated:{type:Boolean,default:!1},wide:{type:Boolean,default:!0},error:{type:Boolean,default:!1},errorText:{type:String},autocomplete:String,autofocus:{type:Boolean,default:!1}},computed:{minValue:function(){return"number"===this.type&&void 0!==this.min?this.min:null},maxValue:function(){return"number"===this.type&&void 0!==this.max?this.max:null},stepValue:function(){return"number"===this.type?this.step:null},classes:function(){return["textbox--size-"+this.size,{"textbox--floated":this.floated},{"textbox--floated-active":this.floated&&""!==this.value},{"textbox--wide":this.wide},{"textbox--error":this.error}]}},data:function(){return{isTouched:!1,initialValue:this.value}},created:function(){null===this.value&&(this.initialValue="",this.updateValue(""))},methods:{updateValue:function(e){this.$emit("input",e)},onChange:function(e){this.$emit("change",this.value,e)},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e),this.isTouched||(this.isTouched=!0,this.$emit("touch"))},onKeydown:function(e){this.$emit("keydown",e)},onKeydownEnter:function(e){this.$emit("keydown-enter",e)},reset:function(){document.activeElement!==this.$refs.input&&document.activeElement!==this.$refs.textarea||document.activeElement.blur(),this.updateValue(this.initialValue),this.resetTouched()},resetTouched:function(e){void 0===e&&(e={touched:!1}),this.isTouched=e.touched},focus:function(){(this.$refs.input||this.$refs.textarea).focus()}}},void 0,!1,void 0,void 0,void 0);te.install=function(e){e.component("VTextbox",te)};var ie=s({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"toggle",class:e.classes,attrs:{for:e.id}},[i("input",{ref:"input",staticClass:"toggle__input",attrs:{id:e.id,name:e.name,disabled:e.disabled,tabindex:e.tabindex,type:"checkbox"},domProps:{checked:e.isChecked,value:e.submittedValue},on:{blur:e.onBlur,focus:e.onFocus,change:e.onChange}}),e._v(" "),i("span",{staticClass:"toggle__container"}),e._v(" "),i("span",{staticClass:"toggle__text"},[e._v(e._s(e.label))])])},staticRenderFns:[]},void 0,{name:"VToggle",props:{id:{type:[String,Number]},name:{type:String},label:{type:[String,Number]},value:{required:!0},submittedValue:{type:String,default:"on"},checked:{type:Boolean,default:!1},trueValue:{default:!0},falseValue:{default:!1},indeterminate:{type:Boolean,default:!1},tabindex:[String,Number],vertical:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isChecked:u(this.value,this.trueValue)||this.checked}},created:function(){this.$emit("input",this.isChecked?this.trueValue:this.falseValue)},computed:{classes:function(){return[{"toggle--vertical":this.vertical}]}},methods:{focus:function(){this.$refs.input.focus()},onChange:function(e){var t=this.isChecked,i=e.target.checked;this.$emit("input",i?this.trueValue:this.falseValue,e),t!==i&&this.$emit("change",i?this.trueValue:this.falseValue,e)},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},watch:{value:function(){this.isChecked=u(this.value,this.trueValue)}}},void 0,!1,void 0,void 0,void 0);ie.install=function(e){e.component("VToggle",ie)};var ne=Object.freeze({VAlert:a,VAvatar:o,VBadge:r,VButton:l,VCheckbox:h,VCheckboxGroup:f,VChip:v,VDropdown:y,VMenu:g,VMenuOption:b,VModal:S,VNotification:$,VNotificationContainer:O,VPagination:w,VPopover:m,VProgress:P,VRadio:T,VRadioGroup:B,VSelect:L,VSelectOption:E,VSpinner:z,VStepper:H,VTab:J,VTable:Q,VTableHeader:W,VTabs:Z,VTextbox:te,VToggle:ie}),se=Object.freeze({Autofocus:ee,Clickoutside:q});var ae={install:function e(t){e.installed||(e.installed=!0,Object.keys(ne).forEach(function(e){t.component(e,ne[e])}),Object.keys(se).forEach(function(e){t.directive(e,se[e])}))}},oe=null;"undefined"!=typeof window?oe=window.Vue:"undefined"!=typeof global&&(oe=global.Vue),oe&&oe.use(ae),e.Autofocus=ee,e.Clickoutside=q,e.VAlert=a,e.VAvatar=o,e.VBadge=r,e.VButton=l,e.VCheckbox=h,e.VCheckboxGroup=f,e.VChip=v,e.VDropdown=y,e.VMenu=g,e.VMenuOption=b,e.VModal=S,e.VNotification=$,e.VNotificationContainer=O,e.VPagination=w,e.VPopover=m,e.VProgress=P,e.VRadio=T,e.VRadioGroup=B,e.VSelect=L,e.VSelectOption=E,e.VSpinner=z,e.VStepper=H,e.VTab=J,e.VTable=Q,e.VTableHeader=W,e.VTabs=Z,e.VTextbox=te,e.VToggle=ie,e.default=ae,Object.defineProperty(e,"__esModule",{value:!0})}); \ No newline at end of file diff --git a/package.json b/package.json index 2d4bae7..d504fbc 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@modulist/vue", "description": "Vue components for the Modulist Design System", "author": "SimplyStack", - "version": "1.0.0-alpha.11", + "version": "1.0.0-alpha.12", "main": "dist/modulist-vue.common.js", "module": "src/entry.js", "unpkg": "dist/modulist-vue.min.js",