agnostic-vue
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports[Symbol.toStringTag]="Module";var e=require("vue");const H="_alert_17o8u_2";var U={"alert-base":"_alert-base_17o8u_2",alert:H,"alert-end":"_alert-end_17o8u_10","alert-skin":"_alert-skin_17o8u_14","alert-icon":"_alert-icon_17o8u_20","alert-border-top":"_alert-border-top_17o8u_28","alert-border-left":"_alert-border-left_17o8u_32","alert-border-bottom":"_alert-border-bottom_17o8u_36","alert-border-right":"_alert-border-right_17o8u_40","alert-border-all":"_alert-border-all_17o8u_44","alert-rounded":"_alert-rounded_17o8u_48","alert-warning":"_alert-warning_17o8u_52","alert-warning-icon":"_alert-warning-icon_17o8u_57","alert-info":"_alert-info_17o8u_85","alert-info-icon":"_alert-info-icon_17o8u_90","alert-error":"_alert-error_17o8u_118","alert-error-icon":"_alert-error-icon_17o8u_123","alert-success":"_alert-success_17o8u_151","alert-success-icon":"_alert-success-icon_17o8u_156"},u=(t,r)=>{for(const[s,i]of r)t[s]=i;return t};const G={name:"AgAlert",props:{type:{type:String,required:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)},isBorderAll:{type:Boolean,required:!1,default:!1},isBorderTop:{type:Boolean,required:!1,default:!1},isBorderBottom:{type:Boolean,required:!1,default:!1},isBorderLeft:{type:Boolean,required:!1,default:!1},isBorderRight:{type:Boolean,required:!1,default:!1},isRounded:{type:Boolean,required:!1,default:!1},isBlockEnd:{type:Boolean,required:!1,default:!1}},computed:{svgClasses(){return this.type?[this.$style[`alert-${this.type}-icon`],this.$style["alert-icon"]].join(" "):this.$style["alert-icon"]},alertClasses(){let t;switch(this.type){case"warning":t="alert-warning";break;case"error":t="alert-error";break;case"info":t="alert-info";break;case"success":t="alert-success";break;default:t=""}return{[this.$style.alert]:!0,[this.$style[t]]:t.length,[this.$style["alert-rounded"]]:this.isRounded,[this.$style["alert-border-all"]]:this.isBorderAll,[this.$style["alert-border-left"]]:this.isBorderLeft,[this.$style["alert-border-right"]]:this.isBorderRight,[this.$style["alert-border-top"]]:this.isBorderTop,[this.$style["alert-border-bottom"]]:this.isBorderBottom,[this.$style["alert-end"]]:this.isBlockEnd}}}},K=e.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),W=e.createElementVNode("path",{fill:"currentColor",d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},null,-1),Y=[K,W];function Z(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.alertClasses),role:"alert"},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(a.svgClasses),xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24"},Y,2)),e.renderSlot(t.$slots,"default")],2)}const k={};k.$style=U;var J=u(G,[["render",Z],["__cssModules",k]]);const Q="_avatar_1bk0m_2";var X={avatar:Q,"avatar-base":"_avatar-base_1bk0m_3","avatar-skin":"_avatar-skin_1bk0m_12","avatar-square":"_avatar-square_1bk0m_20","avatar-rounded":"_avatar-rounded_1bk0m_24","avatar-small":"_avatar-small_1bk0m_28","avatar-large":"_avatar-large_1bk0m_34","avatar-xlarge":"_avatar-xlarge_1bk0m_39","avatar-image":"_avatar-image_1bk0m_49","avatar-info":"_avatar-info_1bk0m_55","avatar-warning":"_avatar-warning_1bk0m_60","avatar-success":"_avatar-success_1bk0m_65","avatar-error":"_avatar-error_1bk0m_70","avatar-transparent":"_avatar-transparent_1bk0m_76","avatar-group":"_avatar-group_1bk0m_80"};const ee={name:"AgAvatar",props:{isSkinned:{type:Boolean,default:!0,required:!1},isRounded:{type:Boolean,default:!1,required:!1},isSquare:{type:Boolean,default:!1,required:!1},isTransparent:{type:Boolean,default:!1,required:!1},imgUrl:{type:String,required:!1,default:""},text:{type:String,required:!1,default:""},size:{type:String,required:!1,default:"",validator:t=>["small","large","xlarge",""].includes(t)},type:{type:String,required:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)}},computed:{avatarImage(){return{[this.$style["avatar-image"]]:!0}},avatarClasses(){return{[this.$style.avatar]:!!this.isSkinned,[this.$style["avatar-base"]]:!this.isSkinned,[this.$style["avatar-square"]]:!!this.isSquare,[this.$style["avatar-rounded"]]:!!this.isRounded,[this.$style["avatar-transparent"]]:!!this.isTransparent,[this.$style[`avatar-${this.type}`]]:!!this.type,[this.$style[`avatar-${this.size}`]]:!!this.size}}}},te=["data-text"],se=["src"];function ae(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(a.avatarClasses),"data-text":s.text||null},[s.imgUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.imgUrl,class:e.normalizeClass(a.avatarImage),alt:""},null,10,se)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")],10,te)}const v={};v.$style=X;var le=u(ee,[["render",ae],["__cssModules",v]]);const re="_avatar_1bk0m_2";var ie={avatar:re,"avatar-base":"_avatar-base_1bk0m_3","avatar-skin":"_avatar-skin_1bk0m_12","avatar-square":"_avatar-square_1bk0m_20","avatar-rounded":"_avatar-rounded_1bk0m_24","avatar-small":"_avatar-small_1bk0m_28","avatar-large":"_avatar-large_1bk0m_34","avatar-xlarge":"_avatar-xlarge_1bk0m_39","avatar-image":"_avatar-image_1bk0m_49","avatar-info":"_avatar-info_1bk0m_55","avatar-warning":"_avatar-warning_1bk0m_60","avatar-success":"_avatar-success_1bk0m_65","avatar-error":"_avatar-error_1bk0m_70","avatar-transparent":"_avatar-transparent_1bk0m_76","avatar-group":"_avatar-group_1bk0m_80"};const ne={name:"AgAvatarGroup"};function oe(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style["avatar-group"])},[e.renderSlot(t.$slots,"default")],2)}const $={};$.$style=ie;var de=u(ne,[["render",oe],["__cssModules",$]]);const ce="_breadcrumb_dor2y_2",ue="_active_dor2y_20";var _e={breadcrumb:ce,"breadcrumb-item":"_breadcrumb-item_dor2y_10",active:ue,"breadcrumb-slash":"_breadcrumb-slash_dor2y_24","breadcrumb-arrow":"_breadcrumb-arrow_dor2y_28","breadcrumb-bullet":"_breadcrumb-bullet_dor2y_32"};const he={name:"AgBreadcrumb",props:{routes:{type:Array,required:!0,validator:t=>{let r=!0;return t.forEach(s=>r=Object.keys(s).every(i=>["label","url"].includes(i))),r||console.warn("routes argument must be an array of objects with shape: {label:..., url:...}"),r}},type:{type:String,default:"",required:!1,validator:t=>["arrow","slash","bullet",""].includes(t)}},computed:{breadcrumbClasses(){return{[this.$style.breadcrumb]:!0,[this.$style[`breadcrumb-${this.type}`]]:!!this.type}}},methods:{isLast(t,r){return r===t.length-1},crumbClasses(t){const r=this.isLast(this.routes,t);return{[this.$style["breadcrumb-item"]]:!0,[this.$style.active]:r}}}},be={"aria-label":"breadcrumbs"},pe={key:0,href:"{route.url}"},fe={key:1};function me(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("nav",be,[e.createElementVNode("ol",{class:e.normalizeClass(a.breadcrumbClasses)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.routes,(l,o)=>(e.openBlock(),e.createElementBlock("li",{key:o,class:e.normalizeClass(a.crumbClasses(o))},[o!==s.routes.length-1&&l.url?(e.openBlock(),e.createElementBlock("a",pe,e.toDisplayString(l.label),1)):(e.openBlock(),e.createElementBlock("span",fe,e.toDisplayString(l.label),1))],2))),128))],2)])}const B={};B.$style=_e;var ge=u(he,[["render",me],["__cssModules",B]]);const ye="_btn_5ln7f_6",ke="_disabled_5ln7f_81",ve="_active_5ln7f_171";var $e={"btn-base":"_btn-base_5ln7f_7",btn:ye,"btn-skin":"_btn-skin_5ln7f_28",disabled:ke,"btn-primary":"_btn-primary_5ln7f_102","btn-bordered":"_btn-bordered_5ln7f_109","btn-secondary":"_btn-secondary_5ln7f_123","btn-raised":"_btn-raised_5ln7f_150",active:ve,"btn-large":"_btn-large_5ln7f_286","btn-small":"_btn-small_5ln7f_293","btn-rounded":"_btn-rounded_5ln7f_303","btn-pill":"_btn-pill_5ln7f_307","btn-circle":"_btn-circle_5ln7f_316","btn-circle-large":"_btn-circle-large_5ln7f_323","btn-circle-small":"_btn-circle-small_5ln7f_329","btn-block":"_btn-block_5ln7f_338","btn-block-following":"_btn-block-following_5ln7f_344","btn-link":"_btn-link_5ln7f_352","btn-blank":"_btn-blank_5ln7f_353"};const Be={name:"AgButton",props:{mode:{type:String,default:""},isDisabled:{type:Boolean,default:!1},isBlank:{type:Boolean,default:!1},isLink:{type:Boolean,default:!1},isBlock:{type:Boolean,default:!1},isBordered:{type:Boolean,default:!1},isRaised:{type:Boolean,default:!1},isCircle:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},type:{type:String,default:"button",validator:t=>["button","submit","reset","faux"].includes(t)},size:{type:String,default:""},css:{type:String,default:""}},emits:["click"],computed:{currentComponentType(){return this.type==="faux"?"div":"button"},isButtonDisabled(){return this.isDisabled?!0:void 0},classes(){return{[this.$style.btn]:this.isSkinned,[this.$style["btn-base"]]:!this.isSkinned,[this.$style.disabled]:this.isDisabled,[this.$style["btn-bordered"]]:this.isBordered,[this.$style["btn-blank"]]:this.isBlank,[this.$style["btn-link"]]:this.isLink,[this.$style["btn-block"]]:this.isBlock,[this.$style["btn-rounded"]]:this.isRounded,[this.$style["btn-circle"]]:this.isCircle,[this.$style["btn-raised"]]:this.isRaised,[this.$style["btn-primary"]]:this.mode==="primary",[this.$style["btn-secondary"]]:this.mode==="secondary",[`${this.css}`]:!!this.css,[this.$style[`btn-${this.size}`]]:this.size}}}};function Ce(t,r,s,i,n,a){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.currentComponentType),{type:s.type==="faux"?!1:s.type,class:e.normalizeClass(a.classes),disabled:a.isButtonDisabled,onClick:r[0]||(r[0]=l=>t.$emit("click"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["type","class","disabled"])}const C={};C.$style=$e;var Se=u(Be,[["render",Ce],["__cssModules",C]]),we={"btn-group":"_btn-group_nuvva_5"};const ze={name:"AgButtonGroup",props:{ariaLabel:{type:String,default:"",required:!0},css:{type:String,default:""}},computed:{classes(){return{[this.$style["btn-group"]]:!0,[`${this.css}`]:this.css}}}},Ee=["aria-label"];function xe(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes),role:"group","aria-label":s.ariaLabel},[e.renderSlot(t.$slots,"default")],10,Ee)}const S={};S.$style=we;var qe=u(ze,[["render",xe],["__cssModules",S]]);const Le="_card_1v11v_8";var De={card:Le,"card-base":"_card-base_1v11v_9","card-border":"_card-border_1v11v_18","card-rounded":"_card-rounded_1v11v_22","card-shadow":"_card-shadow_1v11v_26","card-animated":"_card-animated_1v11v_53","card-stacked":"_card-stacked_1v11v_85","card-success":"_card-success_1v11v_89","card-info":"_card-info_1v11v_94","card-error":"_card-error_1v11v_99","card-warning":"_card-warning_1v11v_104"};const Ae={name:"AgCard",props:{css:{type:String,default:""},type:{type:String,default:"",validator:t=>["success","info","warning","error",""].includes(t)},isAnimated:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},isStacked:{type:Boolean,default:!1},isShadow:{type:Boolean,default:!1},isBorder:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!1}},computed:{classes(){return{[this.$style.card]:this.isSkinned,[this.$style["card-base"]]:!this.isSkinned,[this.$style["card-animated"]]:this.isAnimated,[this.$style["card-rounded"]]:this.isRounded,[this.$style["card-border"]]:this.isBorder,[this.$style["card-shadow"]]:this.isShadow,[this.$style["card-stacked"]]:this.isStacked,[this.$style[`card-${this.type}`]]:!!this.type,[`${this.css}`]:!!this.css}}}};function Me(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)}const w={};w.$style=De;var Ne=u(Ae,[["render",Me],["__cssModules",w]]);const je="_checkbox_1h7x4_9",Te="_radio_1h7x4_10",Ie="_disabled_1h7x4_213";var Ve={"checkbox-group":"_checkbox-group_1h7x4_9","radio-group":"_radio-group_1h7x4_10","checkbox-group-large":"_checkbox-group-large_1h7x4_19","radio-group-large":"_radio-group-large_1h7x4_20","checkbox-legend":"_checkbox-legend_1h7x4_25","radio-legend":"_radio-legend_1h7x4_26",checkbox:je,radio:Te,"checkbox-small":"_checkbox-small_1h7x4_41","radio-small":"_radio-small_1h7x4_42","checkbox-large":"_checkbox-large_1h7x4_47","radio-large":"_radio-large_1h7x4_48","checkbox-label-wrap":"_checkbox-label-wrap_1h7x4_53","radio-label-wrap":"_radio-label-wrap_1h7x4_54","checkbox-label-wrap-inline":"_checkbox-label-wrap-inline_1h7x4_62","radio-label-wrap-inline":"_radio-label-wrap-inline_1h7x4_63","checkbox-label":"_checkbox-label_1h7x4_53","radio-label":"_radio-label_1h7x4_54","checkbox-label-small":"_checkbox-label-small_1h7x4_132","radio-label-small":"_radio-label-small_1h7x4_141","checkbox-label-large":"_checkbox-label-large_1h7x4_146","radio-label-large":"_radio-label-large_1h7x4_155","checkbox-group-hidden":"_checkbox-group-hidden_1h7x4_195","radio-group-hidden":"_radio-group-hidden_1h7x4_196",disabled:Ie};const z=["checkbox","radio"],Pe={name:"AgChoiceInput",props:{isFieldset:{type:Boolean,default:!0},isDisabled:{type:Boolean,default:!1},isInline:{type:Boolean,default:!1},disabledOptions:{type:Array,required:!1,default(){return[]}},checkedOptions:{type:Array,default(){return[]},required:!1},options:{type:Array,required:!0},css:{type:String,required:!1,default:""},legendLabel:{type:String,required:!0},isSkinned:{type:Boolean,default:!0},type:{type:String,default:"checkbox",validator:t=>{const r=z.includes(t);return r||console.warn(`Allowed types for ChoiceInput are: ${z}`),r}},size:{type:String,default:null,validator:t=>["large","small"].includes(t)}},emits:["change"],data:function(){return{mutableCheckedOptions:Array.from(this.checkedOptions)}},computed:{choiceType(){return this.type},inputClasses(){return{[this.$style[`${this.type}`]]:this.type,[this.$style[`${this.type}-${this.size}`]]:!!this.size}},fieldsetClasses(){const t=this.css,r=this.isSkinned?this.$style[`${this.type}-group`]:"",s=this.isSkinned&&this.size==="large"?this.$style[`${this.type}-group-${this.size}`]:"";return{[r]:!0,[s]:!0,[t]:t,[this.$style[`${this.type}-group-hidden`]]:this.isFieldset===!1}},labelSpanClasses(){return{[this.$style[`${this.type}-label`]]:this.type,[this.$style[`${this.type}-label-${this.size}`]]:!!this.size}},legendClasses(){return{[this.isSkinned?this.$style[`${this.type}-legend`]:""]:!0,["screenreader-only"]:this.isFieldset===!1}}},methods:{isChoiceInputPrechecked(t){return!!(this.mutableCheckedOptions.length&&this.mutableCheckedOptions.includes(t))},labelClasses(t){return{[this.$style[`${this.type}-label-wrap`]]:this.type,[this.$style[`${this.type}-label-wrap-inline`]]:!!this.isInline,[this.$style.disabled]:this.isChoiceInputDisabled(t)}},isChoiceInputDisabled(t){if(this.isDisabled||this.disabledOptions&&this.disabledOptions.includes(t))return!0},triggerChange(t){const r=t.target.checked,s=t.target.value;if(r)this.mutableCheckedOptions.includes(s)||this.mutableCheckedOptions.push(s);else{const i=this.mutableCheckedOptions.filter(n=>n!==s);this.mutableCheckedOptions=i}this.$emit("change",this.mutableCheckedOptions)}}},Fe=["id","type","name","value","disabled","checked"];function Oe(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(a.fieldsetClasses)},[e.createElementVNode("legend",{class:e.normalizeClass(a.legendClasses)},e.toDisplayString(s.legendLabel),3),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,(l,o)=>(e.openBlock(),e.createElementBlock("label",{key:o,class:e.normalizeClass(a.labelClasses(l.value))},[e.createElementVNode("input",{id:`${l.name}-${o}`,class:e.normalizeClass(a.inputClasses),type:a.choiceType,name:l.name,value:l.value,disabled:a.isChoiceInputDisabled(l.value),checked:a.isChoiceInputPrechecked(l.value),onChange:r[0]||(r[0]=(...d)=>a.triggerChange&&a.triggerChange(...d))},null,42,Fe),e.createElementVNode("span",{class:e.normalizeClass(a.labelSpanClasses)},e.toDisplayString(l.label),3)],2))),128))],2)}const E={};E.$style=Ve;var Re=u(Pe,[["render",Oe],["__cssModules",E]]);const He="_close_1wx3m_2";var Ue={"close-button":"_close-button_1wx3m_2",close:He,"close-button-small":"_close-button-small_1wx3m_49","close-button-large":"_close-button-large_1wx3m_54","close-button-xlarge":"_close-button-xlarge_1wx3m_59"};const Ge={name:"AgClose",props:{size:{type:String,required:!1,default:"",validator:t=>["small","large","xlarge",""].includes(t)}},computed:{closeClasses(){return{[this.$style.close]:!0}},closeButtonClasses(){return{[this.$style["close-button"]]:!0,[this.$style[`close-button-${this.size}`]]:!!this.size}}}},Ke=e.createElementVNode("path",{fill:"currentColor",d:"M.439 21.44a1.5 1.5 0 0 0 2.122 2.121l9.262-9.261a.25.25 0 0 1 .354 0l9.262 9.263a1.5 1.5 0 1 0 2.122-2.121L14.3 12.177a.25.25 0 0 1 0-.354l9.263-9.262A1.5 1.5 0 0 0 21.439.44L12.177 9.7a.25.25 0 0 1-.354 0L2.561.44A1.5 1.5 0 0 0 .439 2.561L9.7 11.823a.25.25 0 0 1 0 .354Z"},null,-1),We=[Ke];function Ye(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(a.closeButtonClasses),"aria-label":"Close"},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(a.closeClasses),viewBox:"0 0 24 24","aria-hidden":"true"},We,2))],2)}const x={};x.$style=Ue;var Ze=u(Ge,[["render",Ye],["__cssModules",x]]);const Je="_disclose_gzcq8_2";var Qe={disclose:Je,"disclose-title":"_disclose-title_gzcq8_6","disclose-panel":"_disclose-panel_gzcq8_18","disclose-bg":"_disclose-bg_gzcq8_33"};const Xe={name:"AgDisclose",props:{title:{type:String,required:!0,default:""},isOpen:{type:Boolean,required:!1,default:!1},isBackground:{type:Boolean,required:!1,default:!1}},computed:{discloseClasses(){return{[this.$style.disclose]:!0,[this.$style["disclose-bg"]]:!!this.isBackground}}}},et=["open"];function tt(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("details",{class:e.normalizeClass(a.discloseClasses),open:s.isOpen},[e.createElementVNode("summary",{class:e.normalizeClass(t.$style["disclose-title"])},e.toDisplayString(s.title),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style["disclose-panel"])},[e.renderSlot(t.$slots,"default")],2)],10,et)}const q={};q.$style=Qe;var st=u(Xe,[["render",tt],["__cssModules",q]]);const at="_header_1k0hl_2";var lt={header:at,"header-base":"_header-base_1k0hl_3","header-skin":"_header-skin_1k0hl_14","header-content":"_header-content_1k0hl_28","header-sticky":"_header-sticky_1k0hl_54","header-content-start":"_header-content-start_1k0hl_70","header-content-end":"_header-content-end_1k0hl_74"};const rt={name:"AgHeader",props:{css:{type:String,default:""},isSticky:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},isHeaderContentStart:{type:Boolean,default:!1},isHeaderContentEnd:{type:Boolean,default:!1}},computed:{classes(){return{[this.$style.header]:this.isSkinned,[this.$style["header-base"]]:!this.isSkinned,[this.$style["header-sticky"]]:this.isSticky,[`${this.css}`]:!!this.css}},headerContentClasses(){return{[this.$style["header-content"]]:!0,[this.$style["header-content-start"]]:this.isHeaderContentStart,[this.$style["header-content-end"]]:this.isHeaderContentEnd}}}};function it(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes)},[e.createElementVNode("div",{class:e.normalizeClass(a.headerContentClasses)},[e.renderSlot(t.$slots,"logoleft"),e.renderSlot(t.$slots,"headernav"),e.renderSlot(t.$slots,"logoright")],2)],2)}const L={};L.$style=lt;var nt=u(rt,[["render",it],["__cssModules",L]]),ot={"header-nav":"_header-nav_yf3gw_3"};const dt={name:"AgHeaderNav",props:{css:{type:String,default:""}},computed:{classes(){return{[this.$style["header-nav"]]:!0,[`${this.css}`]:!!this.css}}}};function ct(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([s.css?s.css:""])},[e.createElementVNode("ul",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)],2)}const D={};D.$style=ot;var ut=u(dt,[["render",ct],["__cssModules",D]]),_t={"header-nav-item":"_header-nav-item_1k5ky_2"};const ht={name:"AgHeaderNavItem",props:{css:{type:String,default:""}},computed:{classes(){return{[this.$style["header-nav-item"]]:!0,[`${this.css}`]:!!this.css}}}};function bt(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)}const A={};A.$style=_t;var pt=u(ht,[["render",bt],["__cssModules",A]]);const ft={name:"AgIcon",props:{isSkinned:{type:Boolean,required:!1,default:!0},size:{type:Number,required:!1,default:18,validator:t=>[14,16,18,20,24,32,36,40,48,56,64].includes(t)},type:{type:String,required:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)}},computed:{iconClasses(){return{["icon-base"]:!this.isSkinned,icon:!!this.isSkinned,[`icon-${this.type}`]:!!this.type,[`icon-${this.size}`]:!!this.size}}}};function mt(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(a.iconClasses)},[e.renderSlot(t.$slots,"default")],2)}var gt=u(ft,[["render",mt]]);const yt="_input_8f99j_2",kt="_label_8f99j_15",vt="_disabled_8f99j_245";var $t={"input-base":"_input-base_8f99j_2",input:yt,label:kt,"label-base":"_label-base_8f99j_16","field-help":"_field-help_8f99j_24","field-help-large":"_field-help-large_8f99j_25","field-help-small":"_field-help-small_8f99j_26","field-error":"_field-error_8f99j_27","field-error-large":"_field-error-large_8f99j_28","field-error-small":"_field-error-small_8f99j_29","label-skin":"_label-skin_8f99j_30","input-addon-container":"_input-addon-container_8f99j_32","input-small":"_input-small_8f99j_33","input-large":"_input-large_8f99j_34","input-skin":"_input-skin_8f99j_35","input-underlined":"_input-underlined_8f99j_36","input-underlined-bg":"_input-underlined-bg_8f99j_37","label-inline":"_label-inline_8f99j_90","input-inline":"_input-inline_8f99j_91","input-rounded":"_input-rounded_8f99j_153","label-error":"_label-error_8f99j_168","input-error":"_input-error_8f99j_172","label-large":"_label-large_8f99j_210","label-small":"_label-small_8f99j_222",disabled:vt,"input-has-left-addon":"_input-has-left-addon_8f99j_284","input-has-right-addon":"_input-has-right-addon_8f99j_285"};const M=["text","password","email","number","url","tel","search","textarea"],Bt={name:"AgInput",inheritAttrs:!1,props:{label:{type:String,default:"",required:!0},id:{type:String,required:!0},labelCss:{type:String,default:""},css:{type:String,default:""},helpText:{type:String,default:""},invalidText:{type:String,default:""},hasLeftAddon:{type:Boolean,default:!1},hasRightAddon:{type:Boolean,default:!1},isInline:{type:Boolean,default:!1},isInvalid:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},isRounded:{type:Boolean,default:!1},isUnderlinedWithBackground:{type:Boolean,default:!1},isUnderlined:{type:Boolean,default:!1},size:{type:String,default:""},value:{type:[String,Number],default:""},type:{type:String,default:"text",validator:t=>{const r=M.includes(t);return r||console.warn(`Allowed types for Input: are ${M}`),r}}},emits:["input"],computed:{isInputDisabled(){return this.isDisabled?!0:void 0},helpClasses(){return{[this.$style["field-help"]]:!this.size,[this.$style[`field-help-${this.size}`]]:this.size}},invalidClasses(){return{[this.$style["field-error"]]:!this.size,[this.$style[`field-error-${this.size}`]]:this.size}},addonContainerClasses(){return{[this.$style["input-addon-container"]]:!0}},inputClasses(){return{[this.$style.input]:this.isSkinned,[this.$style["input-base"]]:!this.isSkinned,[this.$style["input-rounded"]]:this.isRounded,[this.$style["input-underlined"]]:this.isUnderlined,[this.$style["input-has-left-addon"]]:this.hasLeftAddon,[this.$style["input-has-right-addon"]]:this.hasRightAddon,[this.$style["input-error"]]:this.isInvalid,[this.$style["input-inline"]]:this.isInline,[this.$style["input-underlined-bg"]]:this.isUnderlinedWithBackground,[`${this.css}`]:!!this.css,[this.$style[`input-${this.size}`]]:this.size}},labelClasses(){return{[this.$style.label]:!0,[this.$style["label-error"]]:this.isInvalid,[this.$style["label-inline"]]:this.isInline,[this.$style[`label-${this.size}`]]:this.size,[`${this.labelCss}`]:!!this.labelCss}}}},Ct={class:"w-100"},St=["for"],wt=["id","value","disabled"],zt=["id","type","value","disabled"],Et=["id","type","value","disabled"];function xt(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",Ct,[e.createElementVNode("label",{class:e.normalizeClass(a.labelClasses),for:s.id},e.toDisplayString(s.label),11,St),s.type=="textarea"?(e.openBlock(),e.createElementBlock("textarea",e.mergeProps({key:0,id:s.id,class:a.inputClasses},t.$attrs,{value:s.value,disabled:a.isInputDisabled},e.toHandlers({input:l=>t.$emit("input",l.target.value)})),null,16,wt)):s.hasLeftAddon||s.hasRightAddon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(a.addonContainerClasses)},[e.renderSlot(t.$slots,"addonLeft"),e.createElementVNode("input",e.mergeProps({id:s.id,class:a.inputClasses},t.$attrs,{type:s.type,value:s.value,disabled:a.isInputDisabled},e.toHandlers({input:l=>t.$emit("input",l.target.value)})),null,16,zt),e.renderSlot(t.$slots,"addonRight")],2)):(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:2,id:s.id,class:a.inputClasses},t.$attrs,{type:s.type,value:s.value,disabled:a.isInputDisabled},e.toHandlers({input:l=>t.$emit("input",l.target.value)})),null,16,Et)),s.isInvalid?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(a.invalidClasses),role:"status","aria-live":"polite"},e.toDisplayString(s.invalidText),3)):s.helpText?(e.openBlock(),e.createElementBlock("span",{key:4,class:e.normalizeClass(a.helpClasses)},e.toDisplayString(s.helpText),3)):e.createCommentVNode("",!0)])}const N={};N.$style=$t;var qt=u(Bt,[["render",xt],["__cssModules",N]]),Lt={"input-addon-right":"_input-addon-right_1b61h_5","input-addon-left":"_input-addon-left_1b61h_6"};const Dt={name:"AgInputAddonItem",props:{css:{type:String,default:""},addonLeft:{type:Boolean,default:!1},addonRight:{type:Boolean,default:!1}},computed:{classes(){return{[this.$style["input-addon-left"]]:!!this.addonLeft,[this.$style["input-addon-right"]]:!!this.addonRight,[`${this.css}`]:!!this.css}}}};function At(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)}const j={};j.$style=Lt;var Mt=u(Dt,[["render",At],["__cssModules",j]]);const Nt="_pagination_1n3nc_2";var jt={"pagination-container":"_pagination-container_1n3nc_2",pagination:Nt,"pagination-item":"_pagination-item_1n3nc_11","pagination-button":"_pagination-button_1n3nc_16","pagination-item-disabled":"_pagination-item-disabled_1n3nc_49","pagination-item-active":"_pagination-item-active_1n3nc_60","pagination-bordered":"_pagination-bordered_1n3nc_65","pagination-item-gap":"_pagination-item-gap_1n3nc_80","pagination-center":"_pagination-center_1n3nc_84","pagination-start":"_pagination-start_1n3nc_88","pagination-end":"_pagination-end_1n3nc_92"};const Tt={first:"First",last:"Last",previous:"Previous",next:"Next"},It={name:"AgPagination",props:{justify:{type:String,required:!1,default:"",validator:t=>["start","center","end",""].includes(t)},ariaLabel:{type:String,required:!1,default:"pagination"},current:{type:Number,required:!0},pages:{type:Array,required:!0},isBordered:{type:Boolean,required:!1,default:!1},isFirstLast:{type:Boolean,required:!1,default:!0},navigationLabels:{type:Object,default:()=>Tt}},emits:["update-page"],setup(t,{emit:r}){const s=()=>t.current===1,i=()=>t.pages[t.pages.length-1],n=()=>t.current===i(),a=c=>{r("update-page",c)},l=e.useCssModule(),o=e.computed(()=>l["pagination-button"]),d=e.computed(()=>l["pagination-item"]),_=e.computed(()=>({[l["pagination-container"]]:!0,[l[`pagination-${t.justify}`]]:!!t.justify})),m=e.computed(()=>({[l.pagination]:!0,[l["pagination-bordered"]]:!!t.isBordered})),f=e.computed(()=>({[d]:!0,[l["pagination-item-disabled"]]:s()})),h=e.computed(()=>({[d]:!0,[l["pagination-item-disabled"]]:n()}));return{handleClick:a,getLastPageNumber:i,isOnFirst:s,isOnLast:n,paginationButtonClass:o,paginationContainerClasses:_,paginationClasses:m,paginationItemFirstClasses:f,paginationItemLastClasses:h,paginationItemClassesForPage:c=>({[d]:!0,[l["pagination-item-active"]]:c===t.current,[l["pagination-item-gap"]]:c==="..."})}}},Vt=["aria-label"],Pt=["disabled","aria-disabled"],Ft=["disabled","aria-disabled"],Ot=["onClick","aria-label"],Rt={key:1},Ht=["onClick","aria-label"],Ut=["disabled","aria-disabled"],Gt=["disabled","aria-disabled"];function Kt(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(i.paginationContainerClasses),"aria-label":s.ariaLabel},[e.createElementVNode("ul",{class:e.normalizeClass(i.paginationClasses)},[s.isFirstLast?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass(i.paginationItemFirstClasses)},[e.createElementVNode("button",{class:e.normalizeClass(i.paginationButtonClass),onClick:r[0]||(r[0]=e.withModifiers(l=>i.handleClick(1),["prevent"])),disabled:i.isOnFirst(),"aria-disabled":i.isOnFirst(),"aria-label":"Goto page 1"},e.toDisplayString(String.fromCharCode(171))+" "+e.toDisplayString(s.navigationLabels.first),11,Pt)],2)):e.createCommentVNode("",!0),e.createElementVNode("li",{class:e.normalizeClass(i.paginationItemFirstClasses)},[e.createElementVNode("button",{class:e.normalizeClass(i.paginationButtonClass),onClick:r[1]||(r[1]=e.withModifiers(l=>i.handleClick(s.current-1),["prevent"])),disabled:i.isOnFirst(),"aria-disabled":i.isOnFirst(),"aria-label":"Goto previous page"},e.toDisplayString(String.fromCharCode(8249))+" "+e.toDisplayString(s.navigationLabels.previous),11,Ft)],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.pages,l=>(e.openBlock(),e.createElementBlock("li",{key:`page-${l}`,class:e.normalizeClass(i.paginationItemClassesForPage(l))},[l===s.current?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:e.withModifiers(o=>i.handleClick(l),["prevent"]),class:e.normalizeClass(i.paginationButtonClass),type:"button","aria-current":"page","aria-label":`Page ${l}, current page`},e.toDisplayString(l),11,Ot)):l==="..."?(e.openBlock(),e.createElementBlock("span",Rt,e.toDisplayString(l),1)):(e.openBlock(),e.createElementBlock("button",{key:2,onClick:e.withModifiers(o=>i.handleClick(l),["prevent"]),class:e.normalizeClass(i.paginationButtonClass),type:"button","aria-label":`Goto page ${l}`},e.toDisplayString(l),11,Ht))],2))),128)),e.createElementVNode("li",{class:e.normalizeClass(i.paginationItemLastClasses)},[e.createElementVNode("button",{class:e.normalizeClass(i.paginationButtonClass),onClick:r[2]||(r[2]=e.withModifiers(l=>i.handleClick(s.current+1),["prevent"])),disabled:i.isOnLast(),"aria-disabled":i.isOnLast(),"aria-label":"Goto next page"},e.toDisplayString(s.navigationLabels.next)+" "+e.toDisplayString(String.fromCharCode(8250)),11,Ut)],2),s.isFirstLast?(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(i.paginationItemLastClasses)},[e.createElementVNode("button",{class:e.normalizeClass(i.paginationButtonClass),onClick:r[3]||(r[3]=e.withModifiers(l=>i.handleClick(i.getLastPageNumber()),["prevent"])),disabled:i.isOnLast(),"aria-disabled":i.isOnLast(),"aria-label":"Goto last page"},e.toDisplayString(s.navigationLabels.last)+" "+e.toDisplayString(String.fromCharCode(187)),11,Gt)],2)):e.createCommentVNode("",!0)],2)],10,Vt)}const T={};T.$style=jt;var Wt=u(It,[["render",Kt],["__cssModules",T]]);const Yt=({offset:t=2})=>{const r=(a,l,o,d)=>(l&&a.unshift("..."),o&&a.push("..."),d<=1?[1]:[1,...a,d]),s=(a,l)=>{const d=[a-1,a,a+1].filter(f=>f>1&&f<l),_=a>3,m=a<l-2;return r(d,_,m,l)},i=(a,l)=>{const d=[a-2,a-1,a,a+1,a+2].filter(b=>b>1&&b<l),_=a===5,m=a===l-4,f=a>5,h=a<l-4;return _&&d.unshift(2),m&&d.push(l-1),r(d,f,h,l)};return{generate:(a,l)=>t===1?s(a,l):i(a,l)}};function Zt(t,r,s){const i=Yt({offset:r||1});let n=e.ref(t||1),a=e.ref([]);const l=()=>{a.value=i.generate(n.value,s)};return e.onMounted(l),e.watch(n,l),{currentPaginationPage:n,paginationPages:a,handlePaginationUpdate:d=>{n.value=d}}}const Jt="_progress_f0u9q_8";var Qt={progress:Jt};const Xt={name:"AgProgress",props:{value:{type:Number,default:0},max:{type:Number,required:!0},css:{type:String,default:""}},computed:{classes(){return{[this.$style.progress]:!0,[`${this.css}`]:!!this.css}}}},es=["value","max"];function ts(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("progress",{class:e.normalizeClass(a.classes),value:s.value,max:s.max},null,10,es)}const I={};I.$style=Qt;var ss=u(Xt,[["render",ts],["__cssModules",I]]);const as="_select_19fej_2";var ls={select:as,"select-base":"_select-base_19fej_3","select-skin":"_select-skin_19fej_14","select-small":"_select-small_19fej_63","select-large":"_select-large_19fej_70"};const rs={name:"AgSelect",props:{uniqueId:{type:String,required:!0},name:{type:String,required:!0},labelCopy:{type:String,required:!0},options:{type:Array,required:!0},size:{type:String,required:!1,default:"",validator:t=>["small","large",""].includes(t)},multipleSize:{type:Number,required:!1,default:1},isMultiple:{type:Boolean,required:!1,default:!1},defaultOptionLabel:{type:String,required:!1,default:"Please select an option"},isDisabled:{type:Boolean,required:!1,default:!1}},emits:["input"],data(){return{value:""}},computed:{showDefaultOption(){return!this.isMultiple},selectClasses(){return{[this.$style.select]:!0,[this.$style[`select-${this.size}`]]:!!this.size}}}},is=["for"],ns=["id","name","value","disabled","multiple","size"],os={key:0,disabled:"",value:""},ds=["value"];function cs(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("label",{class:e.normalizeClass([t.$style.select,"screenreader-only"]),for:s.uniqueId},e.toDisplayString(s.labelCopy),11,is),e.createElementVNode("select",{id:s.uniqueId,name:s.name,value:n.value,class:e.normalizeClass(a.selectClasses),disabled:s.isDisabled,multiple:s.isMultiple,size:s.isMultiple&&s.multipleSize,onInput:r[0]||(r[0]=l=>t.$emit("input",l.target.value))},[a.showDefaultOption?(e.openBlock(),e.createElementBlock("option",os,e.toDisplayString(s.defaultOptionLabel),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,(l,o)=>(e.openBlock(),e.createElementBlock("option",{key:o,value:l.value},e.toDisplayString(l.label),9,ds))),128))],42,ns)],64)}const V={};V.$style=ls;var us=u(rs,[["render",cs],["__cssModules",V]]);const _s="_disabled_5iflo_183";var hs={"switch-container":"_switch-container_5iflo_8",switch:"_switch_5iflo_8","switch-small":"_switch-small_5iflo_54","switch-large":"_switch-large_5iflo_65","switch-border":"_switch-border_5iflo_76","switch-action":"_switch-action_5iflo_80","switch-right":"_switch-right_5iflo_87","switch-input":"_switch-input_5iflo_111","switch-label":"_switch-label_5iflo_119",disabled:_s};const bs={name:"AgSwitch",props:{id:{type:String,required:!0},label:{type:String,required:!0},css:{type:String,required:!1,default:""},labelPosition:{type:String,default:"left",validator:t=>["left","right"].includes(t)},size:{type:String,default:null,validator:t=>["large","small"].includes(t)},isChecked:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isBordered:{type:Boolean,default:!1},isAction:{type:Boolean,default:!1}},emits:["change"],computed:{switchSpan(){return{[this.$style.switch]:!0,[this.$style["switch-border"]]:!!this.isBordered,[this.$style["switch-action"]]:!!this.isAction,[this.$style[`switch-${this.size}`]]:!!this.size}},switchInput(){return[this.$style["switch-input"]]},switchLabel(){return[this.$style["switch-label"]]},switchContainer(){return{[this.$style["switch-container"]]:!0,[this.css]:!!this.css,[this.$style["switch-right"]]:this.labelPosition==="right",[this.$style.disabled]:!!this.isDisabled}}},methods:{handleClick(t){const r=t.target;r.getAttribute("aria-checked")=="true"?r.setAttribute("aria-checked","false"):r.setAttribute("aria-checked","true")},handleKeypress(t){switch(t.keyCode||t.which){case 13:t.preventDefault(),t.target.click();break}},triggerChange(t){this.$emit("change",t.target.checked)}}},ps=["for"],fs=["id","checked","disabled"];function ms(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(a.switchContainer),for:s.id},[s.labelPosition==="left"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(a.switchLabel)},e.toDisplayString(s.label),3)):e.createCommentVNode("",!0),e.createElementVNode("input",{id:s.id,type:"checkbox",class:e.normalizeClass(a.switchInput),checked:s.isChecked,disabled:s.isDisabled,role:"switch",onChange:r[0]||(r[0]=(...l)=>a.triggerChange&&a.triggerChange(...l)),onClick:r[1]||(r[1]=(...l)=>a.handleClick&&a.handleClick(...l)),onKeypress:r[2]||(r[2]=(...l)=>a.handleKeypress&&a.handleKeypress(...l))},null,42,fs),e.createElementVNode("span",{class:e.normalizeClass(a.switchSpan),"aria-hidden":"true"},null,2),s.labelPosition==="right"?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(a.switchLabel)},e.toDisplayString(s.label),3)):e.createCommentVNode("",!0)],10,ps)}const P={};P.$style=hs;var gs=u(bs,[["render",ms],["__cssModules",P]]);const ys="_tabs_ralmj_3",ks="_active_ralmj_117";var vs={tabs:ys,"tabs-vertical":"_tabs-vertical_ralmj_8","tab-list":"_tab-list_ralmj_12","tab-list-base":"_tab-list-base_ralmj_13","tab-skinned":"_tab-skinned_ralmj_20","tab-base":"_tab-base_ralmj_32","tab-button":"_tab-button_ralmj_37","tab-button-base":"_tab-button-base_ralmj_37","tab-button-skin":"_tab-button-skin_ralmj_63","tab-borderless":"_tab-borderless_ralmj_91","tab-button-large":"_tab-button-large_ralmj_95","tab-button-xlarge":"_tab-button-xlarge_ralmj_102","tab-item":"_tab-item_ralmj_109",active:ks,"tab-panel":"_tab-panel_ralmj_151"};const $s={name:"AgTabs",props:{activatedTab:{type:Number,default:0},tabType:{type:String,required:!1,default:"tab",validator:t=>["tab","custom"].includes(t)},isVertical:{type:Boolean,requiredd:!1,default:!1},isSkinned:{type:Boolean,required:!1,default:!0},isDisabled:{type:Boolean,default:!1},disabledOptions:{type:Array,requiredd:!1,default:()=>[]},isBorderless:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1,default:""}},emits:["selected"],setup(t,{emit:r,slots:s}){const i=Object.keys(s).filter(_=>_.startsWith("tab-")),n=Object.keys(s).filter(_=>_.startsWith("panel-"));let a=[];const l=_=>{_&&a.push(_)};let o=e.ref(i[0]);return{activeTab:o,selectTab:_=>{o.value=_,r("selected",_)},setTabButtonRefs:l,tabButtonRefs:a,tabsList:i,panelsList:n}},computed:{tabsClasses(){return{[this.$style.tabs]:!0,[this.$style["tabs-vertical"]]:!!this.isVertical}},tablistClasses(){return{[this.$style["tab-list-base"]]:!this.isSkinned,[this.$style["tab-list"]]:!!this.isSkinned,[this.$style["tab-borderless"]]:this.isBorderless}}},methods:{focusTab(t,r){let s=t;r==="asc"?s+=1:r==="desc"&&(s-=1),s<0?s=this.tabsList.length-1:s>=this.tabsList.length&&(s=0);const i=this.tabButtonRefs[s];i&&(i.disabled&&r?this.focusTab(s,r):i.focus())},onKeyDown(t,r){switch(t.key){case"Up":case"ArrowUp":this.isVertical&&this.focusTab(r,"desc");break;case"Down":case"ArrowDown":this.isVertical&&this.focusTab(r,"asc");break;case"Left":case"ArrowLeft":this.isVertical||this.focusTab(r,"desc");break;case"Right":case"ArrowRight":this.isVertical||this.focusTab(r,"asc");break;case"Home":case"ArrowHome":this.focusTab(0);break;case"End":case"ArrowEnd":this.focusTab(this.tabsList.length-1);break;case"Enter":case"Space":this.focusTab(r),this.selectTab(this.tabsList[r]);break;default:return}t.preventDefault()},isTabDisabled(t){if(this.isDisabled||this.disabledOptions&&this.disabledOptions.includes(t))return!0},tabButtonClasses(t){return this.tabType==="tab"?{[this.$style["tab-item"]]:!0,[this.$style["tab-button"]]:!0,[this.$style.active]:t===this.activeTab,[this.$style["tab-button-large"]]:this.size==="large",[this.$style["tab-button-xlarge"]]:this.size==="xlarge"}:{[this.$style["tab-button-base"]]:!0,[this.$style.active]:t===this.activeTab}}}},Bs=["aria-orientation"],Cs=["id","aria-controls","disabled","tabindex","aria-selected","onClick","onKeydown"],Ss=["id","aria-labelledby","hidden"];function ws(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.tabsClasses)},[e.createElementVNode("div",{role:"tablist",class:e.normalizeClass(a.tablistClasses),"aria-orientation":s.isVertical?"vertical":"horizontal"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tabsList,(l,o)=>(e.openBlock(),e.createElementBlock("button",{id:l,key:l,ref:i.setTabButtonRefs,role:"tab","aria-controls":`${l.replace("tab","panel")}`,disabled:a.isTabDisabled(l),tabindex:l===i.activeTab?"0":"-1","aria-selected":l===i.activeTab,class:e.normalizeClass(a.tabButtonClasses(l)),onClick:e.withModifiers(d=>i.selectTab(l),["prevent"]),onKeydown:d=>a.onKeyDown(d,o)},[e.renderSlot(t.$slots,l)],42,Cs))),128))],10,Bs),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.panelsList,l=>(e.openBlock(),e.createElementBlock("div",{id:l,key:l,"aria-labelledby":`${l.replace("panel","tab")}`,hidden:i.activeTab!==l.replace("panel","tab"),class:e.normalizeClass(t.$style["tab-panel"]),tabindex:"0",role:"tabpanel"},[e.renderSlot(t.$slots,i.activeTab.replace("tab","panel"))],10,Ss))),128))],2)}const F={};F.$style=vs;var zs=u($s,[["render",ws],["__cssModules",F]]);const Es="_table_cmss1_2";var xs={table:Es,"table-caps":"_table-caps_cmss1_40","caption-top":"_caption-top_cmss1_54","caption-bottom":"_caption-bottom_cmss1_58","caption-end":"_caption-end_cmss1_72","table-small":"_table-small_cmss1_76","table-large":"_table-large_cmss1_80","table-xlarge":"_table-xlarge_cmss1_84","table-bordered":"_table-bordered_cmss1_88","table-borderless":"_table-borderless_cmss1_96","table-striped":"_table-striped_cmss1_104","table-active":"_table-active_cmss1_110","table-hoverable":"_table-hoverable_cmss1_116","table-stacked":"_table-stacked_cmss1_123","table-responsive":"_table-responsive_cmss1_178","table-responsive-small":"_table-responsive-small_cmss1_185","table-responsive-medium":"_table-responsive-medium_cmss1_192","table-responsive-large":"_table-responsive-large_cmss1_199","table-responsive-xlarge":"_table-responsive-xlarge_cmss1_206","table-header-container":"_table-header-container_cmss1_212","table-sort-label":"_table-sort-label_cmss1_217","table-sort":"_table-sort_cmss1_217","icon-sort":"_icon-sort_cmss1_235","icon-sort-ascending":"_icon-sort-ascending_cmss1_241","icon-sort-descending":"_icon-sort-descending_cmss1_245"};const qs={name:"AgTable",props:{headers:{type:Array,default:()=>[]},rows:{type:Array,default:()=>[]},caption:{type:String,required:!0},captionPosition:{type:String,required:!1,default:"hidden",validator:t=>["top","bottom","end","hidden"].includes(t)},tableSize:{type:String,required:!1,default:"",validator:t=>["","small","large","xlarge"].includes(t)},responsiveSize:{type:String,required:!1,default:"",validator:t=>["","small","medium","large","xlarge"].includes(t)},isUppercasedHeaders:{type:Boolean,default:!1},isBordered:{type:Boolean,default:!1},isBorderless:{type:Boolean,default:!1},isStriped:{type:Boolean,default:!1},isHoverable:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1}},setup(t){const r=e.useCssModule();let s=e.ref("none"),i=e.ref("");const n=[...t.rows];let a=e.ref([...n]);const l=(h,b)=>{const c=h[i.value]===null||h[i.value]===void 0?-1/0:h[i.value],p=b[i.value]===null||b[i.value]===void 0?-1/0:b[i.value];return{colLeft:c,colRight:p}},o=(h,b)=>{let{colLeft:c,colRight:p}=l(h,b);const g=t.headers.find(y=>y.key===i.value&&!!y.sortFn);return g&&g.sortFn?g.sortFn(c,p):(c=typeof c=="string"?c.toLowerCase().replace(/(^\$|,)/g,""):c,p=typeof p=="string"?p.toLowerCase().replace(/(^\$|,)/g,""):p,c=Number.isNaN(Number(c))?c:Number(c),p=Number.isNaN(Number(p))?p:Number(p),c>p?1:c<p?-1:0)},d=(h,b)=>o(h,b)*-1;return e.watch([s,i],h=>{const b=h[0];let c=t.rows;b==="ascending"?c.sort(o):b==="descending"?c.sort(d):c=[...n],a.value=c}),{direction:s,getSortDirectionFor:h=>i.value!==h?"none":s.value,getSortingClassesFor:h=>i.value===h?{[r[`icon-sort-${s.value}`]]:s&&s.value!=="none",[r["icon-sort"]]:!0}:{[r["icon-sort"]]:!0},handleSortClicked:h=>{switch(i.value!==h&&(s.value="none",i.value=h),s.value){case"ascending":s.value="descending";break;case"descending":s.value="none";break;case"none":s.value="ascending";break;default:console.warn("Table sorting only supports directions: ascending | descending | none")}},sortingKey:i,sortableItems:a}},computed:{captionClasses(){return{["screenreader-only"]:this.captionPosition==="hidden",[this.$style[`caption-${this.captionPosition}`]]:this.captionPosition!=="hidden"}},tableResponsiveClasses(){return{[this.$style["table-responsive"]]:!this.responsiveSize,[this.$style[`table-responsive-${this.responsiveSize}`]]:!!this.responsiveSize}},tableClasses(){return{[this.$style.table]:!0,[this.$style[`table-${this.tableSize}`]]:this.tableSize,[this.$style["table-caps"]]:this.isUppercasedHeaders,[this.$style["table-bordered"]]:this.isBordered,[this.$style["table-borderless"]]:this.isBorderless,[this.$style["table-striped"]]:this.isStriped,[this.$style["table-hoverable"]]:this.isHoverable,[this.$style["table-stacked"]]:this.isStacked}}}},Ls=["aria-sort"],Ds=["onClick"],As={class:e.normalizeClass("screenreader-only")},Ms={key:1},Ns=["innerHTML"],js={key:1};function Ts(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.tableResponsiveClasses)},[e.createElementVNode("table",{class:e.normalizeClass(a.tableClasses)},[e.createElementVNode("caption",{class:e.normalizeClass(a.captionClasses)},e.toDisplayString(s.caption),3),e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.headers,l=>(e.openBlock(),e.createElementBlock("th",{key:l.key,"aria-sort":i.getSortDirectionFor(l.key),scope:"col",style:e.normalizeStyle({width:l.width?l.width:"auto"})},[l.sortable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([t.$style["table-header-container"]])},[e.createElementVNode("span",{class:e.normalizeClass([t.$style["table-sort-label"]])},e.toDisplayString(l.label),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass([t.$style["table-sort"]]),onClick:o=>i.handleSortClicked(l.key)},[e.createElementVNode("span",As,e.toDisplayString(l.label),1),e.createElementVNode("span",{class:e.normalizeClass(i.getSortingClassesFor(l.key))},null,2)],10,Ds)],2)):(e.openBlock(),e.createElementBlock("span",Ms,e.toDisplayString(l.label),1))],12,Ls))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.sortableItems,(l,o)=>(e.openBlock(),e.createElementBlock("tr",{key:o},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(l),(d,_)=>(e.openBlock(),e.createElementBlock("td",{key:_},[s.headers[_].renderFn?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:s.headers[_].renderFn(l[d])},null,8,Ns)):(e.openBlock(),e.createElementBlock("div",js,e.toDisplayString(l[d]),1))]))),128))]))),128))])],2)],2)}const O={};O.$style=xs;var Is=u(qs,[["render",Ts],["__cssModules",O]]);const Vs="_tag_2luww_2";var Ps={"tag-base":"_tag-base_2luww_2",tag:Vs,"tag-skin":"_tag-skin_2luww_9","tag-info":"_tag-info_2luww_21","tag-warning":"_tag-warning_2luww_26","tag-error":"_tag-error_2luww_31","tag-success":"_tag-success_2luww_36","tag-upper":"_tag-upper_2luww_41","tag-circle":"_tag-circle_2luww_46","tag-round":"_tag-round_2luww_50","tag-pill":"_tag-pill_2luww_54"};const Fs={name:"AgTag",props:{isSkinned:{type:Boolean,required:!1,default:!0},isUppercase:{type:Boolean,required:!1,default:!1},type:{type:String,required:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)},shape:{type:String,required:!1,default:"",validator:t=>["pill","circle","round","square",""].includes(t)}},computed:{tagClasses(){return{[this.$style.tag]:!!this.isSkinned,[this.$style["tag-base"]]:!this.isSkinned,[this.$style[`tag-${this.type}`]]:!!this.type,[this.$style[`tag-${this.shape}`]]:!!this.shape,[this.$style["tag-upper"]]:!!this.isUppercase}}}};function Os(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(a.tagClasses)},[e.renderSlot(t.$slots,"default")],2)}const R={};R.$style=Ps;var Rs=u(Fs,[["render",Os],["__cssModules",R]]);exports.Alert=J;exports.Avatar=le;exports.AvatarGroup=de;exports.Breadcrumb=ge;exports.Button=Se;exports.ButtonGroup=qe;exports.Card=Ne;exports.ChoiceInput=Re;exports.Close=Ze;exports.Disclose=st;exports.Header=nt;exports.HeaderNav=ut;exports.HeaderNavItem=pt;exports.Icon=gt;exports.Input=qt;exports.InputAddonItem=Mt;exports.Pagination=Wt;exports.Progress=ss;exports.Select=us;exports.Switch=gs;exports.Table=Is;exports.Tabs=zs;exports.Tag=Rs;exports.usePagingGenerator=Zt; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports[Symbol.toStringTag]="Module";var e=require("vue");const U="_alert_17o8u_2";var G={"alert-base":"_alert-base_17o8u_2",alert:U,"alert-end":"_alert-end_17o8u_10","alert-skin":"_alert-skin_17o8u_14","alert-icon":"_alert-icon_17o8u_20","alert-border-top":"_alert-border-top_17o8u_28","alert-border-left":"_alert-border-left_17o8u_32","alert-border-bottom":"_alert-border-bottom_17o8u_36","alert-border-right":"_alert-border-right_17o8u_40","alert-border-all":"_alert-border-all_17o8u_44","alert-rounded":"_alert-rounded_17o8u_48","alert-warning":"_alert-warning_17o8u_52","alert-warning-icon":"_alert-warning-icon_17o8u_57","alert-info":"_alert-info_17o8u_85","alert-info-icon":"_alert-info-icon_17o8u_90","alert-error":"_alert-error_17o8u_118","alert-error-icon":"_alert-error-icon_17o8u_123","alert-success":"_alert-success_17o8u_151","alert-success-icon":"_alert-success-icon_17o8u_156"},c=(t,r)=>{for(const[s,i]of r)t[s]=i;return t};const K={name:"AgAlert",props:{type:{type:String,required:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)},isBorderAll:{type:Boolean,required:!1,default:!1},isBorderTop:{type:Boolean,required:!1,default:!1},isBorderBottom:{type:Boolean,required:!1,default:!1},isBorderLeft:{type:Boolean,required:!1,default:!1},isBorderRight:{type:Boolean,required:!1,default:!1},isRounded:{type:Boolean,required:!1,default:!1},isBlockEnd:{type:Boolean,required:!1,default:!1}},computed:{svgClasses(){return this.type?[this.$style[`alert-${this.type}-icon`],this.$style["alert-icon"]].join(" "):this.$style["alert-icon"]},alertClasses(){let t;switch(this.type){case"warning":t="alert-warning";break;case"error":t="alert-error";break;case"info":t="alert-info";break;case"success":t="alert-success";break;default:t=""}return{[this.$style.alert]:!0,[this.$style[t]]:t.length,[this.$style["alert-rounded"]]:this.isRounded,[this.$style["alert-border-all"]]:this.isBorderAll,[this.$style["alert-border-left"]]:this.isBorderLeft,[this.$style["alert-border-right"]]:this.isBorderRight,[this.$style["alert-border-top"]]:this.isBorderTop,[this.$style["alert-border-bottom"]]:this.isBorderBottom,[this.$style["alert-end"]]:this.isBlockEnd}}}},W=e.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),Y=e.createElementVNode("path",{fill:"currentColor",d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},null,-1),Z=[W,Y];function J(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.alertClasses),role:"alert"},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(a.svgClasses),xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24"},Z,2)),e.renderSlot(t.$slots,"default")],2)}const k={};k.$style=G;var Q=c(K,[["render",J],["__cssModules",k]]);const X="_avatar_1bk0m_2";var ee={avatar:X,"avatar-base":"_avatar-base_1bk0m_3","avatar-skin":"_avatar-skin_1bk0m_12","avatar-square":"_avatar-square_1bk0m_20","avatar-rounded":"_avatar-rounded_1bk0m_24","avatar-small":"_avatar-small_1bk0m_28","avatar-large":"_avatar-large_1bk0m_34","avatar-xlarge":"_avatar-xlarge_1bk0m_39","avatar-image":"_avatar-image_1bk0m_49","avatar-info":"_avatar-info_1bk0m_55","avatar-warning":"_avatar-warning_1bk0m_60","avatar-success":"_avatar-success_1bk0m_65","avatar-error":"_avatar-error_1bk0m_70","avatar-transparent":"_avatar-transparent_1bk0m_76","avatar-group":"_avatar-group_1bk0m_80"};const te={name:"AgAvatar",props:{isSkinned:{type:Boolean,default:!0,required:!1},isRounded:{type:Boolean,default:!1,required:!1},isSquare:{type:Boolean,default:!1,required:!1},isTransparent:{type:Boolean,default:!1,required:!1},imgUrl:{type:String,required:!1,default:""},text:{type:String,required:!1,default:""},size:{type:String,required:!1,default:"",validator:t=>["small","large","xlarge",""].includes(t)},type:{type:String,required:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)}},computed:{avatarImage(){return{[this.$style["avatar-image"]]:!0}},avatarClasses(){return{[this.$style.avatar]:!!this.isSkinned,[this.$style["avatar-base"]]:!this.isSkinned,[this.$style["avatar-square"]]:!!this.isSquare,[this.$style["avatar-rounded"]]:!!this.isRounded,[this.$style["avatar-transparent"]]:!!this.isTransparent,[this.$style[`avatar-${this.type}`]]:!!this.type,[this.$style[`avatar-${this.size}`]]:!!this.size}}}},se=["data-text"],ae=["src"];function le(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(a.avatarClasses),"data-text":s.text||null},[s.imgUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.imgUrl,class:e.normalizeClass(a.avatarImage),alt:""},null,10,ae)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")],10,se)}const v={};v.$style=ee;var re=c(te,[["render",le],["__cssModules",v]]);const ie="_avatar_1bk0m_2";var ne={avatar:ie,"avatar-base":"_avatar-base_1bk0m_3","avatar-skin":"_avatar-skin_1bk0m_12","avatar-square":"_avatar-square_1bk0m_20","avatar-rounded":"_avatar-rounded_1bk0m_24","avatar-small":"_avatar-small_1bk0m_28","avatar-large":"_avatar-large_1bk0m_34","avatar-xlarge":"_avatar-xlarge_1bk0m_39","avatar-image":"_avatar-image_1bk0m_49","avatar-info":"_avatar-info_1bk0m_55","avatar-warning":"_avatar-warning_1bk0m_60","avatar-success":"_avatar-success_1bk0m_65","avatar-error":"_avatar-error_1bk0m_70","avatar-transparent":"_avatar-transparent_1bk0m_76","avatar-group":"_avatar-group_1bk0m_80"};const oe={name:"AgAvatarGroup"};function de(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style["avatar-group"])},[e.renderSlot(t.$slots,"default")],2)}const $={};$.$style=ne;var ce=c(oe,[["render",de],["__cssModules",$]]);const ue="_breadcrumb_dor2y_2",_e="_active_dor2y_20";var he={breadcrumb:ue,"breadcrumb-item":"_breadcrumb-item_dor2y_10",active:_e,"breadcrumb-slash":"_breadcrumb-slash_dor2y_24","breadcrumb-arrow":"_breadcrumb-arrow_dor2y_28","breadcrumb-bullet":"_breadcrumb-bullet_dor2y_32"};const be={name:"AgBreadcrumb",props:{routes:{type:Array,required:!0,validator:t=>{let r=!0;return t.forEach(s=>r=Object.keys(s).every(i=>["label","url"].includes(i))),r||console.warn("routes argument must be an array of objects with shape: {label:..., url:...}"),r}},type:{type:String,default:"",required:!1,validator:t=>["arrow","slash","bullet",""].includes(t)}},computed:{breadcrumbClasses(){return{[this.$style.breadcrumb]:!0,[this.$style[`breadcrumb-${this.type}`]]:!!this.type}}},methods:{isLast(t,r){return r===t.length-1},crumbClasses(t){const r=this.isLast(this.routes,t);return{[this.$style["breadcrumb-item"]]:!0,[this.$style.active]:r}}}},pe={"aria-label":"breadcrumbs"},me={key:0,href:"{route.url}"},fe={key:1};function ye(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("nav",pe,[e.createElementVNode("ol",{class:e.normalizeClass(a.breadcrumbClasses)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.routes,(l,o)=>(e.openBlock(),e.createElementBlock("li",{key:o,class:e.normalizeClass(a.crumbClasses(o))},[o!==s.routes.length-1&&l.url?(e.openBlock(),e.createElementBlock("a",me,e.toDisplayString(l.label),1)):(e.openBlock(),e.createElementBlock("span",fe,e.toDisplayString(l.label),1))],2))),128))],2)])}const B={};B.$style=he;var ge=c(be,[["render",ye],["__cssModules",B]]);const ke="_btn_5ln7f_6",ve="_disabled_5ln7f_81",$e="_active_5ln7f_171";var Be={"btn-base":"_btn-base_5ln7f_7",btn:ke,"btn-skin":"_btn-skin_5ln7f_28",disabled:ve,"btn-primary":"_btn-primary_5ln7f_102","btn-bordered":"_btn-bordered_5ln7f_109","btn-secondary":"_btn-secondary_5ln7f_123","btn-raised":"_btn-raised_5ln7f_150",active:$e,"btn-large":"_btn-large_5ln7f_286","btn-small":"_btn-small_5ln7f_293","btn-rounded":"_btn-rounded_5ln7f_303","btn-pill":"_btn-pill_5ln7f_307","btn-circle":"_btn-circle_5ln7f_316","btn-circle-large":"_btn-circle-large_5ln7f_323","btn-circle-small":"_btn-circle-small_5ln7f_329","btn-block":"_btn-block_5ln7f_338","btn-block-following":"_btn-block-following_5ln7f_344","btn-link":"_btn-link_5ln7f_352","btn-blank":"_btn-blank_5ln7f_353"};const Ce={name:"AgButton",props:{mode:{type:String,default:""},isDisabled:{type:Boolean,default:!1},isBlank:{type:Boolean,default:!1},isLink:{type:Boolean,default:!1},isBlock:{type:Boolean,default:!1},isBordered:{type:Boolean,default:!1},isRaised:{type:Boolean,default:!1},isCircle:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},type:{type:String,default:"button",validator:t=>["button","submit","reset","faux"].includes(t)},size:{type:String,default:""},css:{type:String,default:""}},emits:["click"],computed:{currentComponentType(){return this.type==="faux"?"div":"button"},isButtonDisabled(){return this.isDisabled?!0:void 0},classes(){return{[this.$style.btn]:this.isSkinned,[this.$style["btn-base"]]:!this.isSkinned,[this.$style.disabled]:this.isDisabled,[this.$style["btn-bordered"]]:this.isBordered,[this.$style["btn-blank"]]:this.isBlank,[this.$style["btn-link"]]:this.isLink,[this.$style["btn-block"]]:this.isBlock,[this.$style["btn-rounded"]]:this.isRounded,[this.$style["btn-circle"]]:this.isCircle,[this.$style["btn-raised"]]:this.isRaised,[this.$style["btn-primary"]]:this.mode==="primary",[this.$style["btn-secondary"]]:this.mode==="secondary",[`${this.css}`]:!!this.css,[this.$style[`btn-${this.size}`]]:this.size}}}};function Se(t,r,s,i,n,a){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.currentComponentType),{type:s.type==="faux"?!1:s.type,class:e.normalizeClass(a.classes),disabled:a.isButtonDisabled,onClick:r[0]||(r[0]=l=>t.$emit("click"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["type","class","disabled"])}const C={};C.$style=Be;var we=c(Ce,[["render",Se],["__cssModules",C]]),ze={"btn-group":"_btn-group_nuvva_5"};const Ee={name:"AgButtonGroup",props:{ariaLabel:{type:String,default:"",required:!0},css:{type:String,default:""}},computed:{classes(){return{[this.$style["btn-group"]]:!0,[`${this.css}`]:this.css}}}},xe=["aria-label"];function qe(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes),role:"group","aria-label":s.ariaLabel},[e.renderSlot(t.$slots,"default")],10,xe)}const S={};S.$style=ze;var Ae=c(Ee,[["render",qe],["__cssModules",S]]);const Le="_card_1v11v_8";var De={card:Le,"card-base":"_card-base_1v11v_9","card-border":"_card-border_1v11v_18","card-rounded":"_card-rounded_1v11v_22","card-shadow":"_card-shadow_1v11v_26","card-animated":"_card-animated_1v11v_53","card-stacked":"_card-stacked_1v11v_85","card-success":"_card-success_1v11v_89","card-info":"_card-info_1v11v_94","card-error":"_card-error_1v11v_99","card-warning":"_card-warning_1v11v_104"};const Me={name:"AgCard",props:{css:{type:String,default:""},type:{type:String,default:"",validator:t=>["success","info","warning","error",""].includes(t)},isAnimated:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},isStacked:{type:Boolean,default:!1},isShadow:{type:Boolean,default:!1},isBorder:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!1}},computed:{classes(){return{[this.$style.card]:this.isSkinned,[this.$style["card-base"]]:!this.isSkinned,[this.$style["card-animated"]]:this.isAnimated,[this.$style["card-rounded"]]:this.isRounded,[this.$style["card-border"]]:this.isBorder,[this.$style["card-shadow"]]:this.isShadow,[this.$style["card-stacked"]]:this.isStacked,[this.$style[`card-${this.type}`]]:!!this.type,[`${this.css}`]:!!this.css}}}};function Ne(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)}const w={};w.$style=De;var je=c(Me,[["render",Ne],["__cssModules",w]]);const Te="_checkbox_1h7x4_9",Ie="_radio_1h7x4_10",Ve="_disabled_1h7x4_213";var Pe={"checkbox-group":"_checkbox-group_1h7x4_9","radio-group":"_radio-group_1h7x4_10","checkbox-group-large":"_checkbox-group-large_1h7x4_19","radio-group-large":"_radio-group-large_1h7x4_20","checkbox-legend":"_checkbox-legend_1h7x4_25","radio-legend":"_radio-legend_1h7x4_26",checkbox:Te,radio:Ie,"checkbox-small":"_checkbox-small_1h7x4_41","radio-small":"_radio-small_1h7x4_42","checkbox-large":"_checkbox-large_1h7x4_47","radio-large":"_radio-large_1h7x4_48","checkbox-label-wrap":"_checkbox-label-wrap_1h7x4_53","radio-label-wrap":"_radio-label-wrap_1h7x4_54","checkbox-label-wrap-inline":"_checkbox-label-wrap-inline_1h7x4_62","radio-label-wrap-inline":"_radio-label-wrap-inline_1h7x4_63","checkbox-label":"_checkbox-label_1h7x4_53","radio-label":"_radio-label_1h7x4_54","checkbox-label-small":"_checkbox-label-small_1h7x4_132","radio-label-small":"_radio-label-small_1h7x4_141","checkbox-label-large":"_checkbox-label-large_1h7x4_146","radio-label-large":"_radio-label-large_1h7x4_155","checkbox-group-hidden":"_checkbox-group-hidden_1h7x4_195","radio-group-hidden":"_radio-group-hidden_1h7x4_196",disabled:Ve};const z=["checkbox","radio"],Fe={name:"AgChoiceInput",props:{isFieldset:{type:Boolean,default:!0},isDisabled:{type:Boolean,default:!1},isInline:{type:Boolean,default:!1},disabledOptions:{type:Array,required:!1,default(){return[]}},checkedOptions:{type:Array,default(){return[]},required:!1},options:{type:Array,required:!0},css:{type:String,required:!1,default:""},legendLabel:{type:String,required:!0},isSkinned:{type:Boolean,default:!0},type:{type:String,default:"checkbox",validator:t=>{const r=z.includes(t);return r||console.warn(`Allowed types for ChoiceInput are: ${z}`),r}},size:{type:String,default:null,validator:t=>["large","small"].includes(t)}},emits:["change"],data:function(){return{mutableCheckedOptions:Array.from(this.checkedOptions)}},computed:{choiceType(){return this.type},inputClasses(){return{[this.$style[`${this.type}`]]:this.type,[this.$style[`${this.type}-${this.size}`]]:!!this.size}},fieldsetClasses(){const t=this.css,r=this.isSkinned?this.$style[`${this.type}-group`]:"",s=this.isSkinned&&this.size==="large"?this.$style[`${this.type}-group-${this.size}`]:"";return{[r]:!0,[s]:!0,[t]:t,[this.$style[`${this.type}-group-hidden`]]:this.isFieldset===!1}},labelSpanClasses(){return{[this.$style[`${this.type}-label`]]:this.type,[this.$style[`${this.type}-label-${this.size}`]]:!!this.size}},legendClasses(){return{[this.isSkinned?this.$style[`${this.type}-legend`]:""]:!0,["screenreader-only"]:this.isFieldset===!1}}},methods:{isChoiceInputPrechecked(t){return!!(this.mutableCheckedOptions.length&&this.mutableCheckedOptions.includes(t))},labelClasses(t){return{[this.$style[`${this.type}-label-wrap`]]:this.type,[this.$style[`${this.type}-label-wrap-inline`]]:!!this.isInline,[this.$style.disabled]:this.isChoiceInputDisabled(t)}},isChoiceInputDisabled(t){if(this.isDisabled||this.disabledOptions&&this.disabledOptions.includes(t))return!0},triggerChange(t){const r=t.target.checked,s=t.target.value;if(r)this.mutableCheckedOptions.includes(s)||this.mutableCheckedOptions.push(s);else{const i=this.mutableCheckedOptions.filter(n=>n!==s);this.mutableCheckedOptions=i}this.$emit("change",this.mutableCheckedOptions)}}},Oe=["id","type","name","value","disabled","checked"];function Re(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(a.fieldsetClasses)},[e.createElementVNode("legend",{class:e.normalizeClass(a.legendClasses)},e.toDisplayString(s.legendLabel),3),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,(l,o)=>(e.openBlock(),e.createElementBlock("label",{key:o,class:e.normalizeClass(a.labelClasses(l.value))},[e.createElementVNode("input",{id:`${l.name}-${o}`,class:e.normalizeClass(a.inputClasses),type:a.choiceType,name:l.name,value:l.value,disabled:a.isChoiceInputDisabled(l.value),checked:a.isChoiceInputPrechecked(l.value),onChange:r[0]||(r[0]=(...d)=>a.triggerChange&&a.triggerChange(...d))},null,42,Oe),e.createElementVNode("span",{class:e.normalizeClass(a.labelSpanClasses)},e.toDisplayString(l.label),3)],2))),128))],2)}const E={};E.$style=Pe;var He=c(Fe,[["render",Re],["__cssModules",E]]);const Ue="_close_1wx3m_2";var Ge={"close-button":"_close-button_1wx3m_2",close:Ue,"close-button-small":"_close-button-small_1wx3m_49","close-button-large":"_close-button-large_1wx3m_54","close-button-xlarge":"_close-button-xlarge_1wx3m_59"};const Ke={name:"AgClose",props:{size:{type:String,required:!1,default:"",validator:t=>["small","large","xlarge",""].includes(t)}},computed:{closeClasses(){return{[this.$style.close]:!0}},closeButtonClasses(){return{[this.$style["close-button"]]:!0,[this.$style[`close-button-${this.size}`]]:!!this.size}}}},We=e.createElementVNode("path",{fill:"currentColor",d:"M.439 21.44a1.5 1.5 0 0 0 2.122 2.121l9.262-9.261a.25.25 0 0 1 .354 0l9.262 9.263a1.5 1.5 0 1 0 2.122-2.121L14.3 12.177a.25.25 0 0 1 0-.354l9.263-9.262A1.5 1.5 0 0 0 21.439.44L12.177 9.7a.25.25 0 0 1-.354 0L2.561.44A1.5 1.5 0 0 0 .439 2.561L9.7 11.823a.25.25 0 0 1 0 .354Z"},null,-1),Ye=[We];function Ze(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(a.closeButtonClasses),"aria-label":"Close"},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(a.closeClasses),viewBox:"0 0 24 24","aria-hidden":"true"},Ye,2))],2)}const x={};x.$style=Ge;var Je=c(Ke,[["render",Ze],["__cssModules",x]]);const Qe="_disclose_gzcq8_2";var Xe={disclose:Qe,"disclose-title":"_disclose-title_gzcq8_6","disclose-panel":"_disclose-panel_gzcq8_18","disclose-bg":"_disclose-bg_gzcq8_33"};const et={name:"AgDisclose",props:{title:{type:String,required:!0,default:""},isOpen:{type:Boolean,required:!1,default:!1},isBackground:{type:Boolean,required:!1,default:!1}},computed:{discloseClasses(){return{[this.$style.disclose]:!0,[this.$style["disclose-bg"]]:!!this.isBackground}}}},tt=["open"];function st(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("details",{class:e.normalizeClass(a.discloseClasses),open:s.isOpen},[e.createElementVNode("summary",{class:e.normalizeClass(t.$style["disclose-title"])},e.toDisplayString(s.title),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style["disclose-panel"])},[e.renderSlot(t.$slots,"default")],2)],10,tt)}const q={};q.$style=Xe;var at=c(et,[["render",st],["__cssModules",q]]);const lt="_empty_aem89_2";var rt={"empty-base":"_empty-base_aem89_2",empty:lt,"empty-bordered":"_empty-bordered_aem89_16","empty-rounded":"_empty-rounded_aem89_21","empty-actions":"_empty-actions_aem89_25"};const it={name:"AgEmptyState",props:{isBordered:{type:Boolean,default:!1,required:!1},isRounded:{type:Boolean,default:!1,required:!1}},setup(t){const r=e.useCssModule(),s=e.computed(()=>({[r["empty-actions"]]:!0}));return{emptyClasses:e.computed(()=>({[r.empty]:!0,[r["empty-rounded"]]:!!t.isRounded,[r["empty-bordered"]]:!!t.isBordered})),emptyActionsClasses:s}}};function nt(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(i.emptyClasses)},[e.renderSlot(t.$slots,"header"),e.renderSlot(t.$slots,"body"),e.createElementVNode("div",{class:e.normalizeClass(i.emptyActionsClasses)},[e.renderSlot(t.$slots,"footer")],2)],2)}const A={};A.$style=rt;var ot=c(it,[["render",nt],["__cssModules",A]]);const dt="_header_1k0hl_2";var ct={header:dt,"header-base":"_header-base_1k0hl_3","header-skin":"_header-skin_1k0hl_14","header-content":"_header-content_1k0hl_28","header-sticky":"_header-sticky_1k0hl_54","header-content-start":"_header-content-start_1k0hl_70","header-content-end":"_header-content-end_1k0hl_74"};const ut={name:"AgHeader",props:{css:{type:String,default:""},isSticky:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},isHeaderContentStart:{type:Boolean,default:!1},isHeaderContentEnd:{type:Boolean,default:!1}},computed:{classes(){return{[this.$style.header]:this.isSkinned,[this.$style["header-base"]]:!this.isSkinned,[this.$style["header-sticky"]]:this.isSticky,[`${this.css}`]:!!this.css}},headerContentClasses(){return{[this.$style["header-content"]]:!0,[this.$style["header-content-start"]]:this.isHeaderContentStart,[this.$style["header-content-end"]]:this.isHeaderContentEnd}}}};function _t(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes)},[e.createElementVNode("div",{class:e.normalizeClass(a.headerContentClasses)},[e.renderSlot(t.$slots,"logoleft"),e.renderSlot(t.$slots,"headernav"),e.renderSlot(t.$slots,"logoright")],2)],2)}const L={};L.$style=ct;var ht=c(ut,[["render",_t],["__cssModules",L]]),bt={"header-nav":"_header-nav_yf3gw_3"};const pt={name:"AgHeaderNav",props:{css:{type:String,default:""}},computed:{classes(){return{[this.$style["header-nav"]]:!0,[`${this.css}`]:!!this.css}}}};function mt(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([s.css?s.css:""])},[e.createElementVNode("ul",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)],2)}const D={};D.$style=bt;var ft=c(pt,[["render",mt],["__cssModules",D]]),yt={"header-nav-item":"_header-nav-item_1k5ky_2"};const gt={name:"AgHeaderNavItem",props:{css:{type:String,default:""}},computed:{classes(){return{[this.$style["header-nav-item"]]:!0,[`${this.css}`]:!!this.css}}}};function kt(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)}const M={};M.$style=yt;var vt=c(gt,[["render",kt],["__cssModules",M]]);const $t={name:"AgIcon",props:{isSkinned:{type:Boolean,required:!1,default:!0},size:{type:Number,required:!1,default:18,validator:t=>[14,16,18,20,24,32,36,40,48,56,64].includes(t)},type:{type:String,required:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)}},computed:{iconClasses(){return{["icon-base"]:!this.isSkinned,icon:!!this.isSkinned,[`icon-${this.type}`]:!!this.type,[`icon-${this.size}`]:!!this.size}}}};function Bt(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(a.iconClasses)},[e.renderSlot(t.$slots,"default")],2)}var Ct=c($t,[["render",Bt]]);const St="_input_8f99j_2",wt="_label_8f99j_15",zt="_disabled_8f99j_245";var Et={"input-base":"_input-base_8f99j_2",input:St,label:wt,"label-base":"_label-base_8f99j_16","field-help":"_field-help_8f99j_24","field-help-large":"_field-help-large_8f99j_25","field-help-small":"_field-help-small_8f99j_26","field-error":"_field-error_8f99j_27","field-error-large":"_field-error-large_8f99j_28","field-error-small":"_field-error-small_8f99j_29","label-skin":"_label-skin_8f99j_30","input-addon-container":"_input-addon-container_8f99j_32","input-small":"_input-small_8f99j_33","input-large":"_input-large_8f99j_34","input-skin":"_input-skin_8f99j_35","input-underlined":"_input-underlined_8f99j_36","input-underlined-bg":"_input-underlined-bg_8f99j_37","label-inline":"_label-inline_8f99j_90","input-inline":"_input-inline_8f99j_91","input-rounded":"_input-rounded_8f99j_153","label-error":"_label-error_8f99j_168","input-error":"_input-error_8f99j_172","label-large":"_label-large_8f99j_210","label-small":"_label-small_8f99j_222",disabled:zt,"input-has-left-addon":"_input-has-left-addon_8f99j_284","input-has-right-addon":"_input-has-right-addon_8f99j_285"};const N=["text","password","email","number","url","tel","search","textarea"],xt={name:"AgInput",inheritAttrs:!1,props:{label:{type:String,default:"",required:!0},id:{type:String,required:!0},labelCss:{type:String,default:""},css:{type:String,default:""},helpText:{type:String,default:""},invalidText:{type:String,default:""},hasLeftAddon:{type:Boolean,default:!1},hasRightAddon:{type:Boolean,default:!1},isInline:{type:Boolean,default:!1},isInvalid:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},isRounded:{type:Boolean,default:!1},isUnderlinedWithBackground:{type:Boolean,default:!1},isUnderlined:{type:Boolean,default:!1},size:{type:String,default:""},value:{type:[String,Number],default:""},type:{type:String,default:"text",validator:t=>{const r=N.includes(t);return r||console.warn(`Allowed types for Input: are ${N}`),r}}},emits:["input"],computed:{isInputDisabled(){return this.isDisabled?!0:void 0},helpClasses(){return{[this.$style["field-help"]]:!this.size,[this.$style[`field-help-${this.size}`]]:this.size}},invalidClasses(){return{[this.$style["field-error"]]:!this.size,[this.$style[`field-error-${this.size}`]]:this.size}},addonContainerClasses(){return{[this.$style["input-addon-container"]]:!0}},inputClasses(){return{[this.$style.input]:this.isSkinned,[this.$style["input-base"]]:!this.isSkinned,[this.$style["input-rounded"]]:this.isRounded,[this.$style["input-underlined"]]:this.isUnderlined,[this.$style["input-has-left-addon"]]:this.hasLeftAddon,[this.$style["input-has-right-addon"]]:this.hasRightAddon,[this.$style["input-error"]]:this.isInvalid,[this.$style["input-inline"]]:this.isInline,[this.$style["input-underlined-bg"]]:this.isUnderlinedWithBackground,[`${this.css}`]:!!this.css,[this.$style[`input-${this.size}`]]:this.size}},labelClasses(){return{[this.$style.label]:!0,[this.$style["label-error"]]:this.isInvalid,[this.$style["label-inline"]]:this.isInline,[this.$style[`label-${this.size}`]]:this.size,[`${this.labelCss}`]:!!this.labelCss}}}},qt={class:"w-100"},At=["for"],Lt=["id","value","disabled"],Dt=["id","type","value","disabled"],Mt=["id","type","value","disabled"];function Nt(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",qt,[e.createElementVNode("label",{class:e.normalizeClass(a.labelClasses),for:s.id},e.toDisplayString(s.label),11,At),s.type=="textarea"?(e.openBlock(),e.createElementBlock("textarea",e.mergeProps({key:0,id:s.id,class:a.inputClasses},t.$attrs,{value:s.value,disabled:a.isInputDisabled},e.toHandlers({input:l=>t.$emit("input",l.target.value)})),null,16,Lt)):s.hasLeftAddon||s.hasRightAddon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(a.addonContainerClasses)},[e.renderSlot(t.$slots,"addonLeft"),e.createElementVNode("input",e.mergeProps({id:s.id,class:a.inputClasses},t.$attrs,{type:s.type,value:s.value,disabled:a.isInputDisabled},e.toHandlers({input:l=>t.$emit("input",l.target.value)})),null,16,Dt),e.renderSlot(t.$slots,"addonRight")],2)):(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:2,id:s.id,class:a.inputClasses},t.$attrs,{type:s.type,value:s.value,disabled:a.isInputDisabled},e.toHandlers({input:l=>t.$emit("input",l.target.value)})),null,16,Mt)),s.isInvalid?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(a.invalidClasses),role:"status","aria-live":"polite"},e.toDisplayString(s.invalidText),3)):s.helpText?(e.openBlock(),e.createElementBlock("span",{key:4,class:e.normalizeClass(a.helpClasses)},e.toDisplayString(s.helpText),3)):e.createCommentVNode("",!0)])}const j={};j.$style=Et;var jt=c(xt,[["render",Nt],["__cssModules",j]]),Tt={"input-addon-right":"_input-addon-right_1b61h_5","input-addon-left":"_input-addon-left_1b61h_6"};const It={name:"AgInputAddonItem",props:{css:{type:String,default:""},addonLeft:{type:Boolean,default:!1},addonRight:{type:Boolean,default:!1}},computed:{classes(){return{[this.$style["input-addon-left"]]:!!this.addonLeft,[this.$style["input-addon-right"]]:!!this.addonRight,[`${this.css}`]:!!this.css}}}};function Vt(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)}const T={};T.$style=Tt;var Pt=c(It,[["render",Vt],["__cssModules",T]]);const Ft="_pagination_1n3nc_2";var Ot={"pagination-container":"_pagination-container_1n3nc_2",pagination:Ft,"pagination-item":"_pagination-item_1n3nc_11","pagination-button":"_pagination-button_1n3nc_16","pagination-item-disabled":"_pagination-item-disabled_1n3nc_49","pagination-item-active":"_pagination-item-active_1n3nc_60","pagination-bordered":"_pagination-bordered_1n3nc_65","pagination-item-gap":"_pagination-item-gap_1n3nc_80","pagination-center":"_pagination-center_1n3nc_84","pagination-start":"_pagination-start_1n3nc_88","pagination-end":"_pagination-end_1n3nc_92"};const Rt={first:"First",last:"Last",previous:"Previous",next:"Next"},Ht={name:"AgPagination",props:{justify:{type:String,required:!1,default:"",validator:t=>["start","center","end",""].includes(t)},ariaLabel:{type:String,required:!1,default:"pagination"},current:{type:Number,required:!0},pages:{type:Array,required:!0},isBordered:{type:Boolean,required:!1,default:!1},isFirstLast:{type:Boolean,required:!1,default:!0},navigationLabels:{type:Object,default:()=>Rt}},emits:["update-page"],setup(t,{emit:r}){const s=()=>t.current===1,i=()=>t.pages[t.pages.length-1],n=()=>t.current===i(),a=u=>{r("update-page",u)},l=e.useCssModule(),o=e.computed(()=>l["pagination-button"]),d=e.computed(()=>l["pagination-item"]),_=e.computed(()=>({[l["pagination-container"]]:!0,[l[`pagination-${t.justify}`]]:!!t.justify})),f=e.computed(()=>({[l.pagination]:!0,[l["pagination-bordered"]]:!!t.isBordered})),m=e.computed(()=>({[d]:!0,[l["pagination-item-disabled"]]:s()})),h=e.computed(()=>({[d]:!0,[l["pagination-item-disabled"]]:n()}));return{handleClick:a,getLastPageNumber:i,isOnFirst:s,isOnLast:n,paginationButtonClass:o,paginationContainerClasses:_,paginationClasses:f,paginationItemFirstClasses:m,paginationItemLastClasses:h,paginationItemClassesForPage:u=>({[d]:!0,[l["pagination-item-active"]]:u===t.current,[l["pagination-item-gap"]]:u==="..."})}}},Ut=["aria-label"],Gt=["disabled","aria-disabled"],Kt=["disabled","aria-disabled"],Wt=["onClick","aria-label"],Yt={key:1},Zt=["onClick","aria-label"],Jt=["disabled","aria-disabled"],Qt=["disabled","aria-disabled"];function Xt(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(i.paginationContainerClasses),"aria-label":s.ariaLabel},[e.createElementVNode("ul",{class:e.normalizeClass(i.paginationClasses)},[s.isFirstLast?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass(i.paginationItemFirstClasses)},[e.createElementVNode("button",{class:e.normalizeClass(i.paginationButtonClass),onClick:r[0]||(r[0]=e.withModifiers(l=>i.handleClick(1),["prevent"])),disabled:i.isOnFirst(),"aria-disabled":i.isOnFirst(),"aria-label":"Goto page 1"},e.toDisplayString(String.fromCharCode(171))+" "+e.toDisplayString(s.navigationLabels.first),11,Gt)],2)):e.createCommentVNode("",!0),e.createElementVNode("li",{class:e.normalizeClass(i.paginationItemFirstClasses)},[e.createElementVNode("button",{class:e.normalizeClass(i.paginationButtonClass),onClick:r[1]||(r[1]=e.withModifiers(l=>i.handleClick(s.current-1),["prevent"])),disabled:i.isOnFirst(),"aria-disabled":i.isOnFirst(),"aria-label":"Goto previous page"},e.toDisplayString(String.fromCharCode(8249))+" "+e.toDisplayString(s.navigationLabels.previous),11,Kt)],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.pages,l=>(e.openBlock(),e.createElementBlock("li",{key:`page-${l}`,class:e.normalizeClass(i.paginationItemClassesForPage(l))},[l===s.current?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:e.withModifiers(o=>i.handleClick(l),["prevent"]),class:e.normalizeClass(i.paginationButtonClass),type:"button","aria-current":"page","aria-label":`Page ${l}, current page`},e.toDisplayString(l),11,Wt)):l==="..."?(e.openBlock(),e.createElementBlock("span",Yt,e.toDisplayString(l),1)):(e.openBlock(),e.createElementBlock("button",{key:2,onClick:e.withModifiers(o=>i.handleClick(l),["prevent"]),class:e.normalizeClass(i.paginationButtonClass),type:"button","aria-label":`Goto page ${l}`},e.toDisplayString(l),11,Zt))],2))),128)),e.createElementVNode("li",{class:e.normalizeClass(i.paginationItemLastClasses)},[e.createElementVNode("button",{class:e.normalizeClass(i.paginationButtonClass),onClick:r[2]||(r[2]=e.withModifiers(l=>i.handleClick(s.current+1),["prevent"])),disabled:i.isOnLast(),"aria-disabled":i.isOnLast(),"aria-label":"Goto next page"},e.toDisplayString(s.navigationLabels.next)+" "+e.toDisplayString(String.fromCharCode(8250)),11,Jt)],2),s.isFirstLast?(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(i.paginationItemLastClasses)},[e.createElementVNode("button",{class:e.normalizeClass(i.paginationButtonClass),onClick:r[3]||(r[3]=e.withModifiers(l=>i.handleClick(i.getLastPageNumber()),["prevent"])),disabled:i.isOnLast(),"aria-disabled":i.isOnLast(),"aria-label":"Goto last page"},e.toDisplayString(s.navigationLabels.last)+" "+e.toDisplayString(String.fromCharCode(187)),11,Qt)],2)):e.createCommentVNode("",!0)],2)],10,Ut)}const I={};I.$style=Ot;var es=c(Ht,[["render",Xt],["__cssModules",I]]);const ts=({offset:t=2})=>{const r=(a,l,o,d)=>(l&&a.unshift("..."),o&&a.push("..."),d<=1?[1]:[1,...a,d]),s=(a,l)=>{const d=[a-1,a,a+1].filter(m=>m>1&&m<l),_=a>3,f=a<l-2;return r(d,_,f,l)},i=(a,l)=>{const d=[a-2,a-1,a,a+1,a+2].filter(b=>b>1&&b<l),_=a===5,f=a===l-4,m=a>5,h=a<l-4;return _&&d.unshift(2),f&&d.push(l-1),r(d,m,h,l)};return{generate:(a,l)=>t===1?s(a,l):i(a,l)}};function ss(t,r,s){const i=ts({offset:r||1});let n=e.ref(t||1),a=e.ref([]);const l=()=>{a.value=i.generate(n.value,s)};return e.onMounted(l),e.watch(n,l),{currentPaginationPage:n,paginationPages:a,handlePaginationUpdate:d=>{n.value=d}}}const as="_progress_f0u9q_8";var ls={progress:as};const rs={name:"AgProgress",props:{value:{type:Number,default:0},max:{type:Number,required:!0},css:{type:String,default:""}},computed:{classes(){return{[this.$style.progress]:!0,[`${this.css}`]:!!this.css}}}},is=["value","max"];function ns(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("progress",{class:e.normalizeClass(a.classes),value:s.value,max:s.max},null,10,is)}const V={};V.$style=ls;var os=c(rs,[["render",ns],["__cssModules",V]]);const ds="_select_19fej_2";var cs={select:ds,"select-base":"_select-base_19fej_3","select-skin":"_select-skin_19fej_14","select-small":"_select-small_19fej_63","select-large":"_select-large_19fej_70"};const us={name:"AgSelect",props:{uniqueId:{type:String,required:!0},name:{type:String,required:!0},labelCopy:{type:String,required:!0},options:{type:Array,required:!0},size:{type:String,required:!1,default:"",validator:t=>["small","large",""].includes(t)},multipleSize:{type:Number,required:!1,default:1},isMultiple:{type:Boolean,required:!1,default:!1},defaultOptionLabel:{type:String,required:!1,default:"Please select an option"},isDisabled:{type:Boolean,required:!1,default:!1}},emits:["input"],data(){return{value:""}},computed:{showDefaultOption(){return!this.isMultiple},selectClasses(){return{[this.$style.select]:!0,[this.$style[`select-${this.size}`]]:!!this.size}}}},_s=["for"],hs=["id","name","value","disabled","multiple","size"],bs={key:0,disabled:"",value:""},ps=["value"];function ms(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("label",{class:e.normalizeClass([t.$style.select,"screenreader-only"]),for:s.uniqueId},e.toDisplayString(s.labelCopy),11,_s),e.createElementVNode("select",{id:s.uniqueId,name:s.name,value:n.value,class:e.normalizeClass(a.selectClasses),disabled:s.isDisabled,multiple:s.isMultiple,size:s.isMultiple&&s.multipleSize,onInput:r[0]||(r[0]=l=>t.$emit("input",l.target.value))},[a.showDefaultOption?(e.openBlock(),e.createElementBlock("option",bs,e.toDisplayString(s.defaultOptionLabel),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,(l,o)=>(e.openBlock(),e.createElementBlock("option",{key:o,value:l.value},e.toDisplayString(l.label),9,ps))),128))],42,hs)],64)}const P={};P.$style=cs;var fs=c(us,[["render",ms],["__cssModules",P]]);const ys="_disabled_5iflo_183";var gs={"switch-container":"_switch-container_5iflo_8",switch:"_switch_5iflo_8","switch-small":"_switch-small_5iflo_54","switch-large":"_switch-large_5iflo_65","switch-border":"_switch-border_5iflo_76","switch-action":"_switch-action_5iflo_80","switch-right":"_switch-right_5iflo_87","switch-input":"_switch-input_5iflo_111","switch-label":"_switch-label_5iflo_119",disabled:ys};const ks={name:"AgSwitch",props:{id:{type:String,required:!0},label:{type:String,required:!0},css:{type:String,required:!1,default:""},labelPosition:{type:String,default:"left",validator:t=>["left","right"].includes(t)},size:{type:String,default:null,validator:t=>["large","small"].includes(t)},isChecked:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isBordered:{type:Boolean,default:!1},isAction:{type:Boolean,default:!1}},emits:["change"],computed:{switchSpan(){return{[this.$style.switch]:!0,[this.$style["switch-border"]]:!!this.isBordered,[this.$style["switch-action"]]:!!this.isAction,[this.$style[`switch-${this.size}`]]:!!this.size}},switchInput(){return[this.$style["switch-input"]]},switchLabel(){return[this.$style["switch-label"]]},switchContainer(){return{[this.$style["switch-container"]]:!0,[this.css]:!!this.css,[this.$style["switch-right"]]:this.labelPosition==="right",[this.$style.disabled]:!!this.isDisabled}}},methods:{handleClick(t){const r=t.target;r.getAttribute("aria-checked")=="true"?r.setAttribute("aria-checked","false"):r.setAttribute("aria-checked","true")},handleKeypress(t){switch(t.keyCode||t.which){case 13:t.preventDefault(),t.target.click();break}},triggerChange(t){this.$emit("change",t.target.checked)}}},vs=["for"],$s=["id","checked","disabled"];function Bs(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(a.switchContainer),for:s.id},[s.labelPosition==="left"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(a.switchLabel)},e.toDisplayString(s.label),3)):e.createCommentVNode("",!0),e.createElementVNode("input",{id:s.id,type:"checkbox",class:e.normalizeClass(a.switchInput),checked:s.isChecked,disabled:s.isDisabled,role:"switch",onChange:r[0]||(r[0]=(...l)=>a.triggerChange&&a.triggerChange(...l)),onClick:r[1]||(r[1]=(...l)=>a.handleClick&&a.handleClick(...l)),onKeypress:r[2]||(r[2]=(...l)=>a.handleKeypress&&a.handleKeypress(...l))},null,42,$s),e.createElementVNode("span",{class:e.normalizeClass(a.switchSpan),"aria-hidden":"true"},null,2),s.labelPosition==="right"?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(a.switchLabel)},e.toDisplayString(s.label),3)):e.createCommentVNode("",!0)],10,vs)}const F={};F.$style=gs;var Cs=c(ks,[["render",Bs],["__cssModules",F]]);const Ss="_tabs_ralmj_3",ws="_active_ralmj_117";var zs={tabs:Ss,"tabs-vertical":"_tabs-vertical_ralmj_8","tab-list":"_tab-list_ralmj_12","tab-list-base":"_tab-list-base_ralmj_13","tab-skinned":"_tab-skinned_ralmj_20","tab-base":"_tab-base_ralmj_32","tab-button":"_tab-button_ralmj_37","tab-button-base":"_tab-button-base_ralmj_37","tab-button-skin":"_tab-button-skin_ralmj_63","tab-borderless":"_tab-borderless_ralmj_91","tab-button-large":"_tab-button-large_ralmj_95","tab-button-xlarge":"_tab-button-xlarge_ralmj_102","tab-item":"_tab-item_ralmj_109",active:ws,"tab-panel":"_tab-panel_ralmj_151"};const Es={name:"AgTabs",props:{activatedTab:{type:Number,default:0},tabType:{type:String,required:!1,default:"tab",validator:t=>["tab","custom"].includes(t)},isVertical:{type:Boolean,requiredd:!1,default:!1},isSkinned:{type:Boolean,required:!1,default:!0},isDisabled:{type:Boolean,default:!1},disabledOptions:{type:Array,requiredd:!1,default:()=>[]},isBorderless:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1,default:""}},emits:["selected"],setup(t,{emit:r,slots:s}){const i=Object.keys(s).filter(_=>_.startsWith("tab-")),n=Object.keys(s).filter(_=>_.startsWith("panel-"));let a=[];const l=_=>{_&&a.push(_)};let o=e.ref(i[0]);return{activeTab:o,selectTab:_=>{o.value=_,r("selected",_)},setTabButtonRefs:l,tabButtonRefs:a,tabsList:i,panelsList:n}},computed:{tabsClasses(){return{[this.$style.tabs]:!0,[this.$style["tabs-vertical"]]:!!this.isVertical}},tablistClasses(){return{[this.$style["tab-list-base"]]:!this.isSkinned,[this.$style["tab-list"]]:!!this.isSkinned,[this.$style["tab-borderless"]]:this.isBorderless}}},methods:{focusTab(t,r){let s=t;r==="asc"?s+=1:r==="desc"&&(s-=1),s<0?s=this.tabsList.length-1:s>=this.tabsList.length&&(s=0);const i=this.tabButtonRefs[s];i&&(i.disabled&&r?this.focusTab(s,r):i.focus())},onKeyDown(t,r){switch(t.key){case"Up":case"ArrowUp":this.isVertical&&this.focusTab(r,"desc");break;case"Down":case"ArrowDown":this.isVertical&&this.focusTab(r,"asc");break;case"Left":case"ArrowLeft":this.isVertical||this.focusTab(r,"desc");break;case"Right":case"ArrowRight":this.isVertical||this.focusTab(r,"asc");break;case"Home":case"ArrowHome":this.focusTab(0);break;case"End":case"ArrowEnd":this.focusTab(this.tabsList.length-1);break;case"Enter":case"Space":this.focusTab(r),this.selectTab(this.tabsList[r]);break;default:return}t.preventDefault()},isTabDisabled(t){if(this.isDisabled||this.disabledOptions&&this.disabledOptions.includes(t))return!0},tabButtonClasses(t){return this.tabType==="tab"?{[this.$style["tab-item"]]:!0,[this.$style["tab-button"]]:!0,[this.$style.active]:t===this.activeTab,[this.$style["tab-button-large"]]:this.size==="large",[this.$style["tab-button-xlarge"]]:this.size==="xlarge"}:{[this.$style["tab-button-base"]]:!0,[this.$style.active]:t===this.activeTab}}}},xs=["aria-orientation"],qs=["id","aria-controls","disabled","tabindex","aria-selected","onClick","onKeydown"],As=["id","aria-labelledby","hidden"];function Ls(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.tabsClasses)},[e.createElementVNode("div",{role:"tablist",class:e.normalizeClass(a.tablistClasses),"aria-orientation":s.isVertical?"vertical":"horizontal"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tabsList,(l,o)=>(e.openBlock(),e.createElementBlock("button",{id:l,key:l,ref:i.setTabButtonRefs,role:"tab","aria-controls":`${l.replace("tab","panel")}`,disabled:a.isTabDisabled(l),tabindex:l===i.activeTab?"0":"-1","aria-selected":l===i.activeTab,class:e.normalizeClass(a.tabButtonClasses(l)),onClick:e.withModifiers(d=>i.selectTab(l),["prevent"]),onKeydown:d=>a.onKeyDown(d,o)},[e.renderSlot(t.$slots,l)],42,qs))),128))],10,xs),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.panelsList,l=>(e.openBlock(),e.createElementBlock("div",{id:l,key:l,"aria-labelledby":`${l.replace("panel","tab")}`,hidden:i.activeTab!==l.replace("panel","tab"),class:e.normalizeClass(t.$style["tab-panel"]),tabindex:"0",role:"tabpanel"},[e.renderSlot(t.$slots,i.activeTab.replace("tab","panel"))],10,As))),128))],2)}const O={};O.$style=zs;var Ds=c(Es,[["render",Ls],["__cssModules",O]]);const Ms="_table_cmss1_2";var Ns={table:Ms,"table-caps":"_table-caps_cmss1_40","caption-top":"_caption-top_cmss1_54","caption-bottom":"_caption-bottom_cmss1_58","caption-end":"_caption-end_cmss1_72","table-small":"_table-small_cmss1_76","table-large":"_table-large_cmss1_80","table-xlarge":"_table-xlarge_cmss1_84","table-bordered":"_table-bordered_cmss1_88","table-borderless":"_table-borderless_cmss1_96","table-striped":"_table-striped_cmss1_104","table-active":"_table-active_cmss1_110","table-hoverable":"_table-hoverable_cmss1_116","table-stacked":"_table-stacked_cmss1_123","table-responsive":"_table-responsive_cmss1_178","table-responsive-small":"_table-responsive-small_cmss1_185","table-responsive-medium":"_table-responsive-medium_cmss1_192","table-responsive-large":"_table-responsive-large_cmss1_199","table-responsive-xlarge":"_table-responsive-xlarge_cmss1_206","table-header-container":"_table-header-container_cmss1_212","table-sort-label":"_table-sort-label_cmss1_217","table-sort":"_table-sort_cmss1_217","icon-sort":"_icon-sort_cmss1_235","icon-sort-ascending":"_icon-sort-ascending_cmss1_241","icon-sort-descending":"_icon-sort-descending_cmss1_245"};const js={name:"AgTable",props:{headers:{type:Array,default:()=>[]},rows:{type:Array,default:()=>[]},caption:{type:String,required:!0},captionPosition:{type:String,required:!1,default:"hidden",validator:t=>["top","bottom","end","hidden"].includes(t)},tableSize:{type:String,required:!1,default:"",validator:t=>["","small","large","xlarge"].includes(t)},responsiveSize:{type:String,required:!1,default:"",validator:t=>["","small","medium","large","xlarge"].includes(t)},isUppercasedHeaders:{type:Boolean,default:!1},isBordered:{type:Boolean,default:!1},isBorderless:{type:Boolean,default:!1},isStriped:{type:Boolean,default:!1},isHoverable:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1}},setup(t){const r=e.useCssModule();let s=e.ref("none"),i=e.ref("");const n=[...t.rows];let a=e.ref([...n]);const l=(h,b)=>{const u=h[i.value]===null||h[i.value]===void 0?-1/0:h[i.value],p=b[i.value]===null||b[i.value]===void 0?-1/0:b[i.value];return{colLeft:u,colRight:p}},o=(h,b)=>{let{colLeft:u,colRight:p}=l(h,b);const y=t.headers.find(g=>g.key===i.value&&!!g.sortFn);return y&&y.sortFn?y.sortFn(u,p):(u=typeof u=="string"?u.toLowerCase().replace(/(^\$|,)/g,""):u,p=typeof p=="string"?p.toLowerCase().replace(/(^\$|,)/g,""):p,u=Number.isNaN(Number(u))?u:Number(u),p=Number.isNaN(Number(p))?p:Number(p),u>p?1:u<p?-1:0)},d=(h,b)=>o(h,b)*-1;return e.watch([s,i],h=>{const b=h[0];let u=t.rows;b==="ascending"?u.sort(o):b==="descending"?u.sort(d):u=[...n],a.value=u}),{direction:s,getSortDirectionFor:h=>i.value!==h?"none":s.value,getSortingClassesFor:h=>i.value===h?{[r[`icon-sort-${s.value}`]]:s&&s.value!=="none",[r["icon-sort"]]:!0}:{[r["icon-sort"]]:!0},handleSortClicked:h=>{switch(i.value!==h&&(s.value="none",i.value=h),s.value){case"ascending":s.value="descending";break;case"descending":s.value="none";break;case"none":s.value="ascending";break;default:console.warn("Table sorting only supports directions: ascending | descending | none")}},sortingKey:i,sortableItems:a}},computed:{captionClasses(){return{["screenreader-only"]:this.captionPosition==="hidden",[this.$style[`caption-${this.captionPosition}`]]:this.captionPosition!=="hidden"}},tableResponsiveClasses(){return{[this.$style["table-responsive"]]:!this.responsiveSize,[this.$style[`table-responsive-${this.responsiveSize}`]]:!!this.responsiveSize}},tableClasses(){return{[this.$style.table]:!0,[this.$style[`table-${this.tableSize}`]]:this.tableSize,[this.$style["table-caps"]]:this.isUppercasedHeaders,[this.$style["table-bordered"]]:this.isBordered,[this.$style["table-borderless"]]:this.isBorderless,[this.$style["table-striped"]]:this.isStriped,[this.$style["table-hoverable"]]:this.isHoverable,[this.$style["table-stacked"]]:this.isStacked}}}},Ts=["aria-sort"],Is=["onClick"],Vs={class:e.normalizeClass("screenreader-only")},Ps={key:1},Fs=["innerHTML"],Os={key:1};function Rs(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.tableResponsiveClasses)},[e.createElementVNode("table",{class:e.normalizeClass(a.tableClasses)},[e.createElementVNode("caption",{class:e.normalizeClass(a.captionClasses)},e.toDisplayString(s.caption),3),e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.headers,l=>(e.openBlock(),e.createElementBlock("th",{key:l.key,"aria-sort":i.getSortDirectionFor(l.key),scope:"col",style:e.normalizeStyle({width:l.width?l.width:"auto"})},[l.sortable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([t.$style["table-header-container"]])},[e.createElementVNode("span",{class:e.normalizeClass([t.$style["table-sort-label"]])},e.toDisplayString(l.label),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass([t.$style["table-sort"]]),onClick:o=>i.handleSortClicked(l.key)},[e.createElementVNode("span",Vs,e.toDisplayString(l.label),1),e.createElementVNode("span",{class:e.normalizeClass(i.getSortingClassesFor(l.key))},null,2)],10,Is)],2)):(e.openBlock(),e.createElementBlock("span",Ps,e.toDisplayString(l.label),1))],12,Ts))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.sortableItems,(l,o)=>(e.openBlock(),e.createElementBlock("tr",{key:o},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(l),(d,_)=>(e.openBlock(),e.createElementBlock("td",{key:_},[s.headers[_].renderFn?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:s.headers[_].renderFn(l[d])},null,8,Fs)):(e.openBlock(),e.createElementBlock("div",Os,e.toDisplayString(l[d]),1))]))),128))]))),128))])],2)],2)}const R={};R.$style=Ns;var Hs=c(js,[["render",Rs],["__cssModules",R]]);const Us="_tag_2luww_2";var Gs={"tag-base":"_tag-base_2luww_2",tag:Us,"tag-skin":"_tag-skin_2luww_9","tag-info":"_tag-info_2luww_21","tag-warning":"_tag-warning_2luww_26","tag-error":"_tag-error_2luww_31","tag-success":"_tag-success_2luww_36","tag-upper":"_tag-upper_2luww_41","tag-circle":"_tag-circle_2luww_46","tag-round":"_tag-round_2luww_50","tag-pill":"_tag-pill_2luww_54"};const Ks={name:"AgTag",props:{isSkinned:{type:Boolean,required:!1,default:!0},isUppercase:{type:Boolean,required:!1,default:!1},type:{type:String,required:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)},shape:{type:String,required:!1,default:"",validator:t=>["pill","circle","round","square",""].includes(t)}},computed:{tagClasses(){return{[this.$style.tag]:!!this.isSkinned,[this.$style["tag-base"]]:!this.isSkinned,[this.$style[`tag-${this.type}`]]:!!this.type,[this.$style[`tag-${this.shape}`]]:!!this.shape,[this.$style["tag-upper"]]:!!this.isUppercase}}}};function Ws(t,r,s,i,n,a){return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(a.tagClasses)},[e.renderSlot(t.$slots,"default")],2)}const H={};H.$style=Gs;var Ys=c(Ks,[["render",Ws],["__cssModules",H]]);exports.Alert=Q;exports.Avatar=re;exports.AvatarGroup=ce;exports.Breadcrumb=ge;exports.Button=we;exports.ButtonGroup=Ae;exports.Card=je;exports.ChoiceInput=He;exports.Close=Je;exports.Disclose=at;exports.EmptyState=ot;exports.Header=ht;exports.HeaderNav=ft;exports.HeaderNavItem=vt;exports.Icon=Ct;exports.Input=jt;exports.InputAddonItem=Pt;exports.Pagination=es;exports.Progress=os;exports.Select=fs;exports.Switch=Cs;exports.Table=Hs;exports.Tabs=Ds;exports.Tag=Ys;exports.usePagingGenerator=ss; |
{ | ||
"name": "agnostic-vue", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "AgnosticUI (Vue)", | ||
@@ -5,0 +5,0 @@ "author": "Rob Levin <roblevinillustration@gmail.com>", |
@@ -11,2 +11,3 @@ export { default as Alert } from './Alert.vue'; | ||
export { default as Disclose } from './Disclose.vue'; | ||
export { default as EmptyState } from './EmptyState.vue'; | ||
export { default as Header } from './Header.vue'; | ||
@@ -13,0 +14,0 @@ export { default as HeaderNav } from './HeaderNav.vue'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
587749
73
5655