@quidgest/ui 0.16.44 → 0.16.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json/api.json +1 -1
- package/dist/ui.esm.js +3 -2
- package/dist/ui.js +2 -2
- package/dist/ui.min.js +2 -2
- package/dist/ui.scss +1 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +15 -14
- package/package.json +1 -1
package/dist/json/api.json
CHANGED
package/dist/ui.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ var So = (a, e, t) => e in a ? qo(a, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var we = (a, e, t) => So(a, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { getCurrentInstance as Cl, computed as k, ref as X, toValue as ma, provide as Al, inject as Za, unref as u, isRef as bn, watch as Ae, defineComponent as ce, mergeModels as Se, toRef as Pe, useModel as Ye, createElementBlock as _, openBlock as m, normalizeClass as ue, renderSlot as S, normalizeStyle as ze, withModifiers as dt, createCommentVNode as E, createElementVNode as ae, createVNode as ye, createTextVNode as Xe, toDisplayString as ke, useAttrs as Ml, createBlock as le, resolveDynamicComponent as aa, withCtx as z, Fragment as be, h as il, mergeProps as De, withKeys as wn, normalizeProps as Ie, guardReactiveProps as Qe, useSlots as Ut, onMounted as Ge, onUnmounted as kt, renderList as Le, nextTick as Ue, useTemplateRef as It, createSlots as We, withDirectives as Yt, vModelDynamic as Oo, vModelText as Pl, useId as Io, Comment as Eo, cloneVNode as Lo, reactive as ea, onBeforeUnmount as Xr, Teleport as Kr, Transition as zt, render as dr, getCurrentScope as Gr, onScopeDispose as Zr, onBeforeUpdate as Bo, vShow as yn, resolveComponent as Ro, vModelCheckbox as No, readonly as Vo, customRef as Fo, shallowRef as ul, toHandlers as Yo, watchEffect as zo, TransitionGroup as Qo } from "vue";
|
|
5
5
|
/*!
|
|
6
|
-
* Quidgest UI v0.16.
|
|
6
|
+
* Quidgest UI v0.16.45
|
|
7
7
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
8
8
|
* Released under the MIT License.
|
|
9
9
|
*/
|
|
@@ -1180,6 +1180,7 @@ const Li = /* @__PURE__ */ ce({
|
|
|
1180
1180
|
tabindex: "0",
|
|
1181
1181
|
color: t.color,
|
|
1182
1182
|
"aria-label": t.texts.removeText,
|
|
1183
|
+
title: t.texts.removeText,
|
|
1183
1184
|
disabled: t.disabled,
|
|
1184
1185
|
onClick: c
|
|
1185
1186
|
}, {
|
|
@@ -1187,7 +1188,7 @@ const Li = /* @__PURE__ */ ce({
|
|
|
1187
1188
|
ye(u(Fe), Ie(Qe(t.icons.remove)), null, 16)
|
|
1188
1189
|
]),
|
|
1189
1190
|
_: 1
|
|
1190
|
-
}, 8, ["color", "aria-label", "disabled"])) : E("", !0)
|
|
1191
|
+
}, 8, ["color", "aria-label", "title", "disabled"])) : E("", !0)
|
|
1191
1192
|
])
|
|
1192
1193
|
], 46, Wi));
|
|
1193
1194
|
}
|
package/dist/ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(qe,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(qe=typeof globalThis<"u"?globalThis:qe||self,e(qe["Quidgest UI"]={},qe.Vue))})(this,function(qe,e){"use strict";var hg=Object.defineProperty;var yg=(qe,e,yt)=>e in qe?hg(qe,e,{enumerable:!0,configurable:!0,writable:!0,value:yt}):qe[e]=yt;var se=(qe,e,yt)=>yg(qe,typeof e!="symbol"?e+"":e,yt);/*!
|
|
2
|
-
* Quidgest UI v0.16.
|
|
2
|
+
* Quidgest UI v0.16.45
|
|
3
3
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/const yt={primary:"#008ad2",primaryLight:"#cde5ff",primaryDark:"#006398",secondary:"#001d31",secondaryLight:"#e6eef3",secondaryDark:"#001425",highlight:"#ff8241",highlightLight:"#ffe4d6",highlightDark:"#cc4700",info:"#17a2b8",infoLight:"#bceff7",infoDark:"#11798a",success:"#28a745",successLight:"#c2f0cd",successDark:"#1e7d34",warning:"#ffa900",warningLight:"#ffeabf",warningDark:"#bf7f00",danger:"#b71c1c",dangerLight:"#f7cccc",dangerDark:"#891515",background:"#fff",container:"#fff",neutral:"#7c858d",neutralLight:"#c4c5ca",neutralDark:"#40474f",onPrimary:"#fff",onPrimaryLight:"#202428",onPrimaryDark:"#fff",onSecondary:"#fff",onSecondaryLight:"#202428",onSecondaryDark:"#fff",onHighlight:"#fff",onHighlightLight:"#202428",onHighlightDark:"#fff",onInfo:"#fff",onInfoLight:"#202428",onInfoDark:"#fff",onSuccess:"#fff",onSuccessLight:"#202428",onSuccessDark:"#fff",onWarning:"#fff",onWarningLight:"#202428",onWarningDark:"#fff",onDanger:"#fff",onDangerLight:"#202428",onDangerDark:"#fff",onBackground:"#202428",onContainer:"#202428",onNeutral:"#fff",onNeutralLight:"#202428",onNeutralDark:"#fff"},ea={primary:"#4da6e0",primaryLight:"#1a2832",primaryDark:"#87c5f0",secondary:"#b8d4e6",secondaryLight:"#1a2832",secondaryDark:"#e6f2ff",highlight:"#ff9966",highlightLight:"#2d1a0f",highlightDark:"#ffb899",info:"#4cb8d1",infoLight:"#1f2a2d",infoDark:"#7dcce0",success:"#5cb85c",successLight:"#1e2a20",successDark:"#85d085",warning:"#ffcc4d",warningLight:"#332a1a",warningDark:"#ffd966",danger:"#e74c3c",dangerLight:"#2d1a1a",dangerDark:"#f17066",background:"#121212",container:"#1e1e1e",neutral:"#9ca3ab",neutralLight:"#2a2d31",neutralDark:"#c8ced6",onPrimary:"#000",onPrimaryLight:"#e0e0e0",onPrimaryDark:"#000",onSecondary:"#000",onSecondaryLight:"#e0e0e0",onSecondaryDark:"#000",onHighlight:"#000",onHighlightLight:"#e0e0e0",onHighlightDark:"#000",onInfo:"#000",onInfoLight:"#e0e0e0",onInfoDark:"#000",onSuccess:"#000",onSuccessLight:"#e0e0e0",onSuccessDark:"#000",onWarning:"#000",onWarningLight:"#e0e0e0",onWarningDark:"#000",onDanger:"#000",onDangerLight:"#e0e0e0",onDangerDark:"#000",onBackground:"#e0e0e0",onContainer:"#e0e0e0",onNeutral:"#000",onNeutralLight:"#e0e0e0",onNeutralDark:"#000"},Oo=Object.freeze(Object.defineProperty({__proto__:null,defaultDarkColorScheme:ea,defaultLightColorScheme:yt},Symbol.toStringTag,{value:"Module"}));function ta(a){return a==null?!0:typeof a=="string"||Array.isArray(a)?a.length===0:typeof a=="object"?Object.keys(a).length===0:!1}function kr(a){return a!==null&&typeof a=="object"&&!Array.isArray(a)}function na(a={},t={}){const n={},r=new Set([...Object.keys(a),...Object.keys(t)]);for(const l of r){if(l==="__proto__"||l==="constructor"||l==="prototype")continue;const o=a[l],s=t[l];kr(o)&&kr(s)?n[l]=na(o,s):n[l]=s!==void 0?s:o}return n}const aa="q-defaults";function Io(){var o,s;const a=e.getCurrentInstance();if(!a)throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");const t=a.type.name??a.type.__name;if(!t)throw new Error("[Quidgest UI] Could not determine component name");const n=wr(),r=(o=n.value)==null?void 0:o.Global,l=(s=n.value)==null?void 0:s[t];return e.computed(()=>na(r,l))}function St(a){if(ta(a))return;const t=wr(),n=e.ref(e.toValue(a)),r=e.computed(()=>ta(n.value)?t.value:na(t.value,n.value));e.provide(aa,r)}function wr(){const a=e.inject(aa,void 0);if(!a)throw new Error("[Quidgest UI] Could not find defaults instance");return a}const _r=Symbol.for("q-group");function rn(a){const t={active:e.ref(Lo(a)),multiple:e.computed(()=>e.unref(a.multiple)||!1),required:e.computed(()=>e.unref(a.required)||!1)};return e.isRef(a.active)&&e.watch(a.active,n=>{t.active.value=n}),e.watch(()=>t.multiple.value,n=>{n?t.active.value?t.active.value=[t.active.value]:t.active.value=[]:Array.isArray(t.active.value)&&t.active.value.length===1?t.active.value=t.active.value[0]:t.active.value=void 0}),e.provide(_r,t),t}function En(a){const t=e.inject(_r,void 0);if(!t)return;const n=e.computed(()=>{var o;const l=e.unref(a);return Array.isArray(t.active.value)?(o=t.active.value)==null?void 0:o.includes(l):t.active.value===l});return{isActive:n,toggle:()=>{var o,s,i;const l=e.unref(a);Array.isArray(t.active.value)?n.value?(!((o=t.required)!=null&&o.value)||t.active.value.length>1)&&(t.active.value=(s=t.active.value)==null?void 0:s.filter(c=>c!==l)):t.active.value=[...t.active.value,l]:t.active.value!==l?t.active.value=l:(i=t.required)!=null&&i.value||(t.active.value=void 0)}}}function Lo(a){const t=e.unref(a.multiple),n=e.unref(a.active);return t?Array.isArray(n)?n:n!==void 0?[n]:[]:Array.isArray(n)?n.length===1?n[0]:void 0:n}const zo=["id"],Fo=e.defineComponent({__name:"QAccordion",props:e.mergeModels({id:{},class:{},variant:{},spacing:{},iconRight:{type:Boolean},multiple:{type:Boolean}},{modelValue:{type:[String,Number,Boolean,Symbol,Array]},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const t=a;St({QCollapsible:{iconRight:e.toRef(t,"iconRight"),spacing:e.toRef(t,"spacing"),variant:e.toRef(t,"variant"),width:"block"}});const n=e.useModel(a,"modelValue"),{active:r}=rn({active:n,multiple:e.toRef(t,"multiple")});return e.watch(r,l=>{n.value=l}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{id:t.id,class:e.normalizeClass(["q-accordion",t.class])},[e.renderSlot(l.$slots,"default")],10,zo))}}),Mn={chevron:{icon:"chevron-down"}},Yo={...Mn},Qo=["id"],Wo=e.defineComponent({__name:"QSpinnerLoader",props:{id:{},class:{},size:{default:48}},setup(a){const t=a,n=e.computed(()=>({"font-size":t.size!==48?`${t.size}px`:void 0}));return(r,l)=>(e.openBlock(),e.createElementBlock("div",{id:t.id,class:e.normalizeClass(["q-spinner-loader",t.class]),style:e.normalizeStyle(n.value)},null,14,Qo))}});function Uo(a){return a.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([0-9])([a-zA-Z])/g,"$1 $2").replace(/([a-zA-Z])([0-9])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").trim().split(/\s+/)}function ra(a){return Uo(a).join("-").toLowerCase()}function Ho(a,t){var r;const n=ra(t);return n?typeof((r=a.props)==null?void 0:r[n])<"u":!1}function ie(a){const t=a,n=t.setup;return n&&(t.setup=(r,l)=>{const o=Io();if(ta(o.value))return n(r,l);const s=e.getCurrentInstance();if(s===null)return n(r,l);const i=new Proxy(r,{get(d,c){var p;const m=Reflect.get(d,c),u=(p=o.value)==null?void 0:p[c];return typeof c=="string"&&!Ho(s.vnode,c)?u??m:m}});return n(i,l)}),a}const ln=ie(Wo);function on(a){const t=a.r/255,n=a.g/255,r=a.b/255,l=Math.max(t,n,r),o=Math.min(t,n,r);let s=0,i;const d=(l+o)/2;if(l===o)s=i=0;else{const c=l-o;switch(i=d>.5?c/(2-l-o):c/(l+o),l){case t:s=(n-r)/c+(n<r?6:0);break;case n:s=(r-t)/c+2;break;case r:s=(t-n)/c+4;break}s/=6}return{h:Math.round(s*360),s:Math.round(i*100),l:Math.round(d*100)}}function la(a){const t=a.h/360,n=a.s/100,r=a.l/100;let l,o,s;if(n===0)l=o=s=r;else{const i=r<.5?r*(1+n):r+n-r*n,d=2*r-i;l=Nn(d,i,t+1/3),o=Nn(d,i,t),s=Nn(d,i,t-1/3)}return{r:Math.round(l*255),g:Math.round(o*255),b:Math.round(s*255)}}function Nn(a,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?a+(t-a)*6*n:n<1/2?t:n<2/3?a+(t-a)*(2/3-n)*6:a}function Ot(a){const t=a.r.toString(16).padStart(2,"0"),n=a.g.toString(16).padStart(2,"0"),r=a.b.toString(16).padStart(2,"0");return`#${t}${n}${r}`}function oa(a){return`${a.r} ${a.g} ${a.b}`}function sa(a,t=!1){return t?/^#[a-fA-F0-9]{6}$/.test(a):/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(a)}function Cr(a){const t=a.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(t){const n=parseInt(t[1],10),r=parseInt(t[2],10),l=parseInt(t[3],10);return{r:n,g:r,b:l}}}function Tt(a){if(sa(a)){a.length===4&&(a="#"+a[1]+a[1]+a[2]+a[2]+a[3]+a[3]);const t=parseInt(a.slice(1,3),16),n=parseInt(a.slice(3,5),16),r=parseInt(a.slice(5,7),16);return{r:t,g:n,b:r}}else{const t=Cr(a);if(t)return t}throw new Error("Invalid color format")}function ia(a){return a>50?"#000":"#fff"}function Br(a){const t=Tt(a);return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,Ot(t)}function da(a,t){if(t<0||t>100)throw new Error("Amount must be in the range [0, 100]");if(t===0)return a;const n=on(a),r=t/100;return n.l=n.l+r*(100-n.l),la(n)}function ca(a,t){if(t<0||t>100)throw new Error("Amount must be in the range [0, 100]");if(t===0)return a;const n=on(a),r=t/100;return n.l=n.l-r*n.l,la(n)}function jo(a,t){const n={...a},r=(i,d)=>{const c=Tt(i),m=Ot(da(c,85)),u=Ot(ca(c,25)),p=d.toString().replace(/(Light|Dark)$/,"");return{[p]:i,[`${p}Light`]:m,[`${p}Dark`]:u}},l=i=>{const d=Tt(i),c=on(d);return ia(c.l)},o=["primary","secondary","highlight","info","success","warning","danger","neutral"];for(const i of o){const d=i,c=`${i}Light`,m=`${i}Dark`,u=`on${i.charAt(0).toUpperCase()+i.slice(1)}`,p=`on${i.charAt(0).toUpperCase()+i.slice(1)}Light`,h=`on${i.charAt(0).toUpperCase()+i.slice(1)}Dark`;if(t[d]){const _=r(t[d],d);Object.assign(n,_),n[u]=l(t[d]),n[p]=l(_[c]),n[h]=l(_[m])}t[d]||(t[c]&&(n[c]=t[c],t[p]||(n[p]=l(t[c]))),t[m]&&(n[m]=t[m],t[h]||(n[h]=l(t[m])))),t[u]&&(n[u]=t[u]),t[p]&&(n[p]=t[p]),t[h]&&(n[h]=t[h])}if(t.primary&&!t.highlight){const i=Br(t.primary),d=r(i,"highlight");Object.assign(n,d),n.onHighlight=l(i),n.onHighlightLight=l(d.highlightLight),n.onHighlightDark=l(d.highlightDark)}const s=["background","container"];for(const i of s)if(t[i]){n[i]=t[i];const d=`on${i.charAt(0).toUpperCase()+i.slice(1)}`;t[d]||(n[d]=l(t[i]))}return t.onBackground&&(n.onBackground=t.onBackground),t.onContainer&&(n.onContainer=t.onContainer),n}const xr="q-theme";function Ko(){let a=document.getElementById(xr);return a||(a=document.createElement("style"),a.id=xr,document.head.appendChild(a)),a}function $r(a){let t=`.${Tr(a.name)} {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
`;const o=Tt(l);t+=` ${Dr(r)}-rgb: ${o.r} ${o.g} ${o.b};
|
|
8
8
|
`}}return t+=`}
|
|
9
9
|
`,t}function Xo(a){const t=a.map($r).join(`
|
|
10
|
-
`),n=Ko();n.textContent=t}function Dr(a){return a?`--q-theme-${ra(a)}`:""}function Sr(a,t){const n=e.computed(()=>{const o=t.value.find(s=>s.name===a.value);if(!o)throw new Error(`[Quidgest UI] Theme "${a.value}" not found`);return o}),r=e.computed(()=>Tr(n.value.name)),l=e.computed(()=>$r(n.value));return{name:a,current:n,themes:t,class:r,css:l}}function Tr(a){return`q-theme--${ra(a)}`}const ua=Symbol.for("q-theme");function It(){const a=e.inject(ua);if(!a)throw new Error("[Quidgest UI] Could not find theme instance");return a}function Er(a){const{themes:t}=It(),n=e.computed(()=>e.toValue(a)),r=e.computed(()=>typeof n.value!="string"),l=e.computed(()=>r.value?n.value.name:n.value),o=e.computed(()=>r.value?[...t.value,n.value]:t.value),s=Sr(l,o);return e.provide(ua,s),s}function ct(a){const t=e.computed(()=>e.unref(a)),n=e.computed(()=>t.value?!Go(t.value):!1),r=e.computed(()=>{const l=t.value;if(!l)return;let o=l;const s=It();if(n.value){const p=l;o=s.current.value.scheme[p]??l}let i;try{if(i=Tt(o),!i)return}catch(p){console.error("Failed to parse color:",p);return}const d=on(i),c=ia(d.l),m=ca(i,25),u=Ot(m);return{mainColor:o,mainColorRgb:oa(i),onMainColor:c,hoverColor:u,hoverColorRgb:oa(m),onHoverColor:c}});return{isUtilityColor:n,style:r}}function Go(a){return a.startsWith("#")||a.startsWith("rgb")||a.startsWith("hsl")}const Zo=["id","disabled"],Jo={key:0,class:"q-button__spinner"},es={class:"q-button__content"},ze=ie(e.defineComponent({__name:"QButton",props:{id:{},class:{},label:{},variant:{default:"outlined"},color:{default:"primary"},borderless:{type:Boolean},elevated:{type:Boolean},block:{type:Boolean},size:{default:"regular"},iconPos:{default:"start"},pill:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(a,{emit:t}){const n=a,r=t,l=e.computed(()=>n.disabled||n.loading);function o(m){l.value||r("click",m)}const{isUtilityColor:s,style:i}=ct(e.toRef(n,"color")),d=e.computed(()=>{const m=s.value?`q-button--${n.color}`:void 0,u=n.size!=="regular"?`q-button--${n.size}`:void 0,p=n.iconPos!=="start"?`q-button--icon-${n.iconPos}`:void 0;return["q-button",`q-button--${n.variant}`,m,u,p,{"q-button--borderless":n.borderless,"q-button--elevated":n.elevated,"q-button--block":n.block,"q-button--loading":n.loading,"q-button--pill":n.pill},n.class]}),c=e.computed(()=>{var m,u,p,h,_,k;if(!s.value)return{"--q-button-main-color":(m=i.value)==null?void 0:m.mainColor,"--q-button-main-color-rgb":(u=i.value)==null?void 0:u.mainColorRgb,"--q-button-on-main-color":(p=i.value)==null?void 0:p.onMainColor,"--q-button-hover-color":(h=i.value)==null?void 0:h.hoverColor,"--q-button-hover-color-rgb":(_=i.value)==null?void 0:_.hoverColorRgb,"--q-button-on-hover-color":(k=i.value)==null?void 0:k.onHoverColor}});return(m,u)=>(e.openBlock(),e.createElementBlock("button",{id:n.id,type:"button",class:e.normalizeClass(d.value),disabled:l.value,style:e.normalizeStyle(c.value),onClick:e.withModifiers(o,["stop","prevent"])},[n.loading?(e.openBlock(),e.createElementBlock("div",Jo,[e.createVNode(e.unref(ln))])):e.createCommentVNode("",!0),e.createElementVNode("span",es,[e.renderSlot(m.$slots,"default"),e.createTextVNode(" "+e.toDisplayString(n.label),1)])],14,Zo))}})),ts={class:"q-card__header"},ns={key:0,class:"q-card__header-content"},as={class:"q-card__header-text"},rs={key:0,class:"q-card__title",role:"cell"},ls={key:1,class:"q-card__subtitle",role:"cell"},os={class:"q-card__content"},ss={key:0,class:"q-card__footer"},fa=ie(e.defineComponent({__name:"QCard",props:{id:{},class:{},title:{},subtitle:{},href:{},borderless:{type:Boolean},variant:{default:"default"},elevation:{default:"none"},width:{},disabled:{type:Boolean},loading:{type:Boolean}},setup(a){const t=a,n=e.computed(()=>{const i=t.width?`q-card--${t.width}`:void 0,d=t.variant&&t.variant!=="default"?`q-card--${t.variant}`:void 0,c=t.elevation&&t.elevation!=="none"?`q-card--elevation-${t.elevation}`:void 0;return["q-card",i,d,c,{"q-card--clickable":l.value,"q-card--loading":t.loading,"q-card--borderless":t.borderless,"q-card--disabled":t.disabled},t.class]}),r=e.useAttrs(),l=e.computed(()=>!!r.onClick||t.href),o=e.computed(()=>t.disabled||t.loading);function s(i){o.value&&i.stopImmediatePropagation()}return(i,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.href?"a":"div"),{id:t.id,class:e.normalizeClass(n.value),href:t.href&&!o.value?t.href:void 0,onClick:s},{default:e.withCtx(()=>[t.loading?(e.openBlock(),e.createBlock(e.unref(ln),{key:0,size:36})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",ts,[e.renderSlot(i.$slots,"header",{},()=>[e.renderSlot(i.$slots,"header.prepend"),i.$slots.title||t.title||i.$slots.subtitle||t.subtitle?(e.openBlock(),e.createElementBlock("div",ns,[e.renderSlot(i.$slots,"header.content.prepend"),e.createElementVNode("div",as,[i.$slots.title||t.title?(e.openBlock(),e.createElementBlock("p",rs,[i.$slots.title?e.renderSlot(i.$slots,"title",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(i.$props.title),1)],64))])):e.createCommentVNode("",!0),i.$slots.subtitle||t.subtitle?(e.openBlock(),e.createElementBlock("p",ls,[i.$slots.subtitle?e.renderSlot(i.$slots,"subtitle",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(i.$props.subtitle),1)],64))])):e.createCommentVNode("",!0)]),e.renderSlot(i.$slots,"header.content.append")])):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"header.append")])]),e.createElementVNode("div",os,[e.renderSlot(i.$slots,"default")]),i.$slots.footer?(e.openBlock(),e.createElementBlock("div",ss,[e.renderSlot(i.$slots,"footer")])):e.createCommentVNode("",!0)],64))]),_:3},8,["id","class","href"]))}})),is=e.defineComponent({__name:"QIcon",props:{id:{},class:{},icon:{},size:{},color:{},type:{default:"svg"}},setup(a){const t=a,n=e.computed(()=>{switch(t.type){case"svg":return Vr;case"font":return Mr;case"img":return Nr;default:return}}),{style:r}=ct(e.toRef(t,"color")),l=e.computed(()=>{var o;return{"font-size":t.size!==void 0?`${t.size}px`:void 0,color:t.color!==void 0&&t.color!=="primary"?(o=r.value)==null?void 0:o.mainColor:void 0}});return(o,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value),{id:t.id,class:e.normalizeClass(t.class),icon:t.icon,style:e.normalizeStyle(l.value)},null,8,["id","class","icon","style"]))}}),ds=["id"],cs=e.defineComponent({__name:"QIconFont",props:{id:{},class:{},icon:{},variant:{},library:{default:""}},setup(a){const t=a,n=e.computed(()=>t.variant?`${t.library}-${t.variant}`:t.library),r=e.computed(()=>t.library&&t.icon?`${t.library}-${t.icon}`:t.icon);return(l,o)=>(e.openBlock(),e.createElementBlock("i",{id:t.id,class:e.normalizeClass(["q-icon","q-icon__font",n.value,r.value,t.class])},null,10,ds))}}),us=["id","src"],fs=e.defineComponent({__name:"QIconImg",props:{id:{},class:{},icon:{}},setup(a){const t=a;return(n,r)=>(e.openBlock(),e.createElementBlock("img",{id:t.id,src:t.icon,class:e.normalizeClass(["q-icon","q-icon__img",t.class])},null,10,us))}}),sn={},ms=e.defineComponent({name:"InlineSvg",inheritAttrs:!1,props:{src:{type:String,required:!0},symbol:{type:String,default:""},title:{type:String,default:""},transformSource:{type:Function,default:void 0},keepDuringLoading:{type:Boolean,default:!0}},emits:{loaded:a=>typeof a=="object",unloaded:()=>!0,error:a=>typeof a=="object"},data(){return{svgElSource:null}},watch:{src(a){this.getSource(a)}},async mounted(){await this.getSource(this.src)},methods:{copySvgAttrs(a,t){const n=t.attributes;if(n)for(const r of n)a[r.name]=r.value},copyComponentAttrs(a,t){for(const[n,r]of Object.entries(t))r!==!1&&r!==null&&r!==void 0&&(a[n]=r)},getSvgContent(a){return this.symbol&&(a=a.getElementById(this.symbol),!a)?null:(this.transformSource&&(a=a.cloneNode(!0),a=this.transformSource(a)),this.title&&(this.transformSource||(a=a.cloneNode(!0)),ps(a,this.title)),a)},async getSource(a){try{sn[a]||(sn[a]=hs(this.download(a))),this.svgElSource&&sn[a].getIsPending()&&!this.keepDuringLoading&&(this.svgElSource=null,this.$emit("unloaded"));const t=await sn[a];this.svgElSource=t,await this.$nextTick(),this.$emit("loaded",this.$el)}catch(t){this.svgElSource&&(this.svgElSource=null,this.$emit("unloaded")),delete sn[a],this.$emit("error",t)}},async download(a){const t=await fetch(a);if(!t.ok)throw new Error("Error loading SVG");const n=await t.text(),o=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("svg")[0];if(!o)throw new Error("Loaded file is not a valid SVG");return o}},render(){if(!this.svgElSource)return null;const a=this.getSvgContent(this.svgElSource);if(!a)return e.h("div",this.$attrs);const t={};return this.copySvgAttrs(t,this.svgElSource),this.copySvgAttrs(t,a),this.copyComponentAttrs(t,this.$attrs),t.innerHTML=a.innerHTML,e.h("svg",t)},expose:[]});function ps(a,t){const n=a.getElementsByTagName("title");if(n.length)n[0].textContent=t;else{const r=document.createElementNS("http://www.w3.org/2000/svg","title");r.textContent=t,a.insertBefore(r,a.firstChild)}}function hs(a){if(a.getIsPending)return a;let t=!0;const n=a.then(r=>(t=!1,r),r=>{throw t=!1,r});return n.getIsPending=()=>t,n}const ys=e.defineComponent({__name:"QIconSvg",props:{id:{},class:{},icon:{},bundle:{default:""}},emits:["loaded","unloaded"],setup(a,{emit:t}){const n=a,r=t;function l(s){r("loaded",s)}function o(){r("unloaded")}return(s,i)=>(e.openBlock(),e.createBlock(e.unref(ms),{id:n.id,class:e.normalizeClass(["q-icon","q-icon__svg",n.class]),src:n.bundle,symbol:n.icon,onLoaded:l,onUnloaded:o},null,8,["id","class","src","symbol"]))}}),_e=ie(is),Mr=ie(cs),Nr=ie(fs),Vr=ie(ys),Vn=ie(e.defineComponent({__name:"QChevron",props:e.mergeModels({id:{},class:{},icons:{default:()=>Mn}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const t=a,n=e.useModel(a,"modelValue"),r=e.computed(()=>["q-chevron",{"q-chevron--expanded":n.value},t.class]);return(l,o)=>(e.openBlock(),e.createBlock(e.unref(_e),e.mergeProps({id:t.id,class:r.value},t.icons.chevron),null,16,["id","class"]))}})),gs={key:0,class:"q-collapsible__header"},bs={class:"q-collapsible__title"},ks={class:"q-collapsible__title-text"},ws={key:1,class:"q-collapsible--required"},_s={key:0,class:"q-collapsible__subtitle"},Cs={class:"q-collapsible__content-inner"},Bs={class:"q-collapsible__content"},vr=ie(e.defineComponent({__name:"QCollapsible",props:e.mergeModels({id:{},class:{},title:{},subtitle:{},variant:{},iconRight:{type:Boolean},spacing:{},width:{default:"fit-content"},required:{type:Boolean},icons:{default:()=>Yo}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const t=a,n=e.useModel(a,"modelValue"),r=e.computed(()=>t.width==="block"?"block":void 0),l=e.computed(()=>{const i=t.spacing&&t.spacing!=="comfortable"?`q-collapsible--${t.spacing}`:void 0,d=t.variant&&t.variant!=="default"?`q-collapsible--${t.variant}`:void 0;return["q-collapsible",i,d,{"q-collapsible--icon-right":t.iconRight},t.class]}),o=e.computed(()=>["q-collapsible__content-wrapper",{"q-collapsible__content-show":n.value}]);function s(){n.value=!n.value}return(i,d)=>(e.openBlock(),e.createBlock(e.unref(fa),{id:t.id,class:e.normalizeClass(l.value),width:r.value},{header:e.withCtx(()=>[i.title?(e.openBlock(),e.createElementBlock("div",gs,[e.createVNode(e.unref(ze),{variant:"text",block:"",class:"q-collapsible__btn","aria-expanded":n.value,onClick:s},{default:e.withCtx(()=>[e.createElementVNode("div",bs,[i.iconRight?e.createCommentVNode("",!0):e.renderSlot(i.$slots,"icon",{key:0},()=>[e.createVNode(e.unref(Vn),{"model-value":n.value,icons:t.icons},null,8,["model-value","icons"])]),e.renderSlot(i.$slots,"title.prepend"),e.createElementVNode("h4",ks,e.toDisplayString(i.title),1),t.required?(e.openBlock(),e.createElementBlock("span",ws," * ")):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"title.append"),i.iconRight?e.renderSlot(i.$slots,"icon",{key:2},()=>[e.createVNode(e.unref(Vn),{"model-value":n.value,class:"q-collapsible__chevron-right",icons:t.icons},null,8,["model-value","icons"])]):e.createCommentVNode("",!0)]),i.$slots.subtitle||i.subtitle?(e.openBlock(),e.createElementBlock("div",_s,[e.renderSlot(i.$slots,"subtitle",{},()=>[e.createTextVNode(e.toDisplayString(i.subtitle),1)])])):e.createCommentVNode("",!0)]),_:3},8,["aria-expanded"])])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(o.value)},[e.createElementVNode("div",Cs,[e.createElementVNode("div",Bs,[e.renderSlot(i.$slots,"default")])])],2)]),_:3},8,["id","class","width"]))}}));let xs=0;function Oe(a){const t=e.toValue(a);return e.ref(t||`uid-${++xs}`)}const $s=e.defineComponent({__name:"QAccordionItem",props:{id:{},class:{},title:{},subtitle:{},variant:{},iconRight:{type:Boolean},spacing:{},width:{},required:{type:Boolean},icons:{},value:{}},setup(a){const t=a,n=Oe(e.toRef(t,"value")),r=En(n);if(!r)throw new Error("QAccordionItem: Failed to retrieve group item. Ensure the component is used within a QAccordion context.");return(l,o)=>(e.openBlock(),e.createBlock(e.unref(vr),e.mergeProps(t,{"model-value":e.unref(r).isActive.value,"onUpdate:modelValue":e.unref(r).toggle}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16,["model-value","onUpdate:modelValue"]))}}),Ds=ie(Fo),Ss=ie($s),Ts=["src","alt"],Es={key:1,class:"q-avatar-initials"},Ms=ie(e.defineComponent({__name:"QAvatar",props:{src:{},initials:{},color:{},size:{default:"medium"},shape:{default:"circle"},alt:{default:"Avatar"}},setup(a){const t=a,n=e.computed(()=>["small","large"].includes(t.size)?`q-avatar--${t.size}`:""),r=e.computed(()=>t.shape==="circle"?void 0:"q-avatar--square"),{style:l}=ct(e.toRef(t,"color")),o=e.computed(()=>{var i,d;const s={};return["small","medium","large"].includes(t.size)||(s["--q-avatar-size"]=t.size),l.value&&(s["--q-avatar-color"]=(i=l.value)==null?void 0:i.mainColor,s["--q-avatar-text-color"]=(d=l.value)==null?void 0:d.onMainColor),s});return(s,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["q-avatar",n.value,r.value]),style:e.normalizeStyle(o.value)},[s.src?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.src,alt:s.alt,class:"q-avatar-img"},null,8,Ts)):s.initials?(e.openBlock(),e.createElementBlock("span",Es,e.toDisplayString(s.initials.slice(0,2).toUpperCase()),1)):e.renderSlot(s.$slots,"fallback",{key:2})],6))}})),Ns={remove:{icon:"close"}},Vs={removeText:"Remove"},vs=["id","role","tabindex","onKeydown"],Ps={key:0,class:"q-badge__underlay"},As={class:"q-badge__content"},Lt=ie(e.defineComponent({__name:"QBadge",props:{id:{},class:{},variant:{default:"tonal"},color:{default:"primary"},pill:{type:Boolean},size:{default:"default"},disabled:{type:Boolean},removable:{type:Boolean},icons:{default:()=>Ns},texts:{default:()=>Vs}},emits:["click:remove"],setup(a,{emit:t}){const n=a,r=t,l=e.useAttrs(),o=e.computed(()=>!!l.onClick),s=e.computed(()=>{const p=i.value?`q-badge--${n.color}`:void 0,h=n.size!=="default"?`q-badge--${n.size}`:void 0;return["q-badge",`q-badge--${n.variant}`,p,h,{"q-badge--pill":n.pill,"q-badge--disabled":n.disabled,"q-badge--clickable":o.value&&!n.disabled},n.class]}),{isUtilityColor:i,style:d}=ct(e.toRef(n,"color")),c=e.computed(()=>{var p,h,_,k;if(!i.value)return{"--q-badge-main-color":(p=d.value)==null?void 0:p.mainColor,"--q-badge-on-main-color":(h=d.value)==null?void 0:h.onMainColor,"--q-badge-hover-color":(_=d.value)==null?void 0:_.hoverColor,"--q-badge-on-hover-color":(k=d.value)==null?void 0:k.onHoverColor}});function m(p){p.stopImmediatePropagation()}function u(){r("click:remove")}return(p,h)=>(e.openBlock(),e.createElementBlock("span",{id:n.id,class:e.normalizeClass(s.value),role:o.value?"button":"presentation",style:e.normalizeStyle(c.value),tabindex:o.value?0:void 0,onKeydown:e.withKeys(e.withModifiers(m,["stop","prevent"]),["enter"])},[n.variant==="tonal"?(e.openBlock(),e.createElementBlock("div",Ps)):e.createCommentVNode("",!0),e.createElementVNode("div",As,[e.renderSlot(p.$slots,"default"),n.removable?(e.openBlock(),e.createBlock(e.unref(ze),{key:0,class:"q-badge__remove",pill:"",borderless:"",tabindex:"0",color:n.color,"aria-label":n.texts.removeText,disabled:n.disabled,onClick:u},{default:e.withCtx(()=>[e.createVNode(e.unref(_e),e.normalizeProps(e.guardReactiveProps(n.icons.remove)),null,16)]),_:1},8,["color","aria-label","disabled"])):e.createCommentVNode("",!0)])],46,vs))}})),qs=["id"],Rs=ie(e.defineComponent({__name:"QBadgeIndicator",props:{id:{},class:{},content:{},color:{default:"highlight"},placement:{default:"top-right"}},setup(a){const t=a,n=e.useSlots(),r=e.computed(()=>!t.content&&!n.content),l=e.computed(()=>["q-badge-indicator",`q-badge-indicator--${t.placement}`,{"q-badge-indicator--dot":r.value}]);return(o,s)=>(e.openBlock(),e.createElementBlock("div",{id:t.id,class:e.normalizeClass(["q-badge-indicator__wrapper",t.class])},[e.renderSlot(o.$slots,"default"),e.createVNode(e.unref(Lt),{pill:"",variant:"bold",class:e.normalizeClass(l.value),color:t.color},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(t.content),1)])]),_:3},8,["class","color"])],10,qs))}})),Os=["id"],Pr=ie(e.defineComponent({__name:"QButtonGroup",props:{id:{},class:{},block:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean},disabled:{type:Boolean}},setup(a){const t=a;return St({QButton:{disabled:e.toRef(t,"disabled"),borderless:e.toRef(t,"borderless")}}),(n,r)=>(e.openBlock(),e.createElementBlock("div",{id:t.id,class:e.normalizeClass(["q-button-group",{"q-button-group--elevated":t.elevated,"q-button-group--block":t.block},t.class]),role:"group"},[e.renderSlot(n.$slots,"default")],10,Os))}})),Is={back:{icon:"chevron-left"},forward:{icon:"chevron-right"}},Ls={previousText:"Previous",nextText:"Next",goToSlide:"Go to slide {0}"},zs=["id"],zt=ie(e.defineComponent({__name:"QSkeletonLoader",props:{id:{},class:{},width:{},height:{},type:{}},setup(a){const t=a,n=e.computed(()=>t.type?`q-skeleton-loader--${t.type}`:void 0),r=e.computed(()=>{const l=typeof t.width=="number"?`${t.width}px`:t.width,o=typeof t.height=="number"?`${t.height}px`:t.height;return{width:l,height:o}});return(l,o)=>(e.openBlock(),e.createElementBlock("div",{id:t.id,class:e.normalizeClass(["q-skeleton-loader",n.value,t.class]),style:e.normalizeStyle(r.value)},o[0]||(o[0]=[e.createElementVNode("div",{class:"q-skeleton-loader__bone"},null,-1)]),14,zs))}})),Fs=["id"],Ys={key:0,class:"q-carousel__skeleton"},Qs={class:"q-carousel__skeleton-caption"},Ws={key:0,class:"q-carousel__skeleton-controls"},Us=["onClick"],Hs=["src","alt"],js={key:1,class:"q-carousel__empty-container"},Ks={key:2,class:"q-carousel__caption-global"},Xs={key:0,class:"q-carousel__title"},Gs={key:1,class:"q-carousel__subtitle"},Zs={key:3,class:"q-carousel__indicators"},Js=["aria-label","aria-current","onClick"],ei={class:"q-carousel__sr-only"},ti={class:"q-carousel__sr-only"},ni=ie(e.defineComponent({__name:"QCarousel",props:e.mergeModels({id:{},class:{},slides:{default:()=>[]},showIndicators:{type:Boolean},showControls:{type:Boolean},autoCycleInterval:{default:5e3},autoCyclePause:{default:"hover"},ride:{default:"carousel"},swipeThreshold:{default:50},wrap:{type:Boolean,default:!0},animationDuration:{default:500},loading:{type:Boolean},icons:{default:()=>Is},texts:{default:()=>Ls}},{currentSlide:{default:0},currentSlideModifiers:{}}),emits:e.mergeModels(["slide:before-change","slide:after-change","slide:click"],["update:currentSlide"]),setup(a,{emit:t}){const n=a,r=t,l=e.useModel(a,"currentSlide"),o=e.ref(0);let s=!1,i=!1,d=0,c=0;const m=e.ref(0),u=e.ref(0);let p,h;const _=e.computed(()=>({transform:`translateX(-${o.value*100}%)`,transition:s?`transform ${n.animationDuration}ms cubic-bezier(0.4, 0, 0.2, 1)`:"none"})),k=e.computed(()=>({"--q-carousel-progress-duration":`${n.autoCycleInterval}ms`,"--q-carousel-progress-width":`${m.value}%`}));function D(C){if(C<0||C>=n.slides.length||C===o.value||s)return;const M=o.value,E=n.slides[M],W=n.slides[C];r("slide:before-change",W.id,E==null?void 0:E.id),o.value=C,l.value=C,n.animationDuration>0?(s=!0,setTimeout(()=>{s=!1,r("slide:after-change",W.id,E==null?void 0:E.id)},n.animationDuration)):e.nextTick(()=>{r("slide:after-change",W.id,E==null?void 0:E.id)})}function $(){const C=o.value+1;C>=n.slides.length?n.wrap&&D(0):D(C)}function S(){const C=o.value-1;C<0?n.wrap&&D(n.slides.length-1):D(C)}function x(C){const M=window.getSelection();if(M!=null&&M.toString().length)return;const E=n.slides[C];r("slide:click",E.id)}function v(C){const M={};return C!=null&&C.colorPlaceholder&&(M["background-color"]=C.colorPlaceholder),M}function I(){n.autoCycleInterval&&(h=window.setInterval(()=>{m.value=(Date.now()-u.value)/n.autoCycleInterval*100},50))}function A(){!n.autoCycleInterval||n.slides.length<=1||(O(),n.ride==="carousel"&&!i&&(u.value=Date.now(),I(),p=window.setTimeout($,n.autoCycleInterval)))}function O(){p&&window.clearTimeout(p),h&&window.clearInterval(h),p=void 0,h=void 0,u.value=0,m.value=0}function N(){O(),A()}function R(){n.autoCyclePause==="hover"&&(i=!0,O())}function L(){n.autoCyclePause==="hover"&&(i=!1,A())}function X(C){if(!s)switch(C.key){case"ArrowLeft":C.preventDefault(),S();break;case"ArrowRight":C.preventDefault(),$();break;case"Home":C.preventDefault(),D(0);break;case"End":C.preventDefault(),D(n.slides.length-1);break}}function J(C){s||(d=C.touches[0].clientX,O())}function q(C){s||(c=C.touches[0].clientX)}function g(){if(s)return;const C=d-c;Math.abs(C)>n.swipeThreshold&&(C>0?$():S()),d=0,c=0,A()}function y(C){return n.texts.goToSlide.replace("{0}",`${C+1}`)}function w(C){if(C.length===0){o.value=0,l.value=0,O();return}o.value>=C.length&&D(0)}return e.watch(()=>n.slides,w,{immediate:!0,deep:!0}),e.watch(o,N),e.watch(l,C=>{C!==o.value&&D(C)}),e.onMounted(A),e.onUnmounted(O),(C,M)=>{var E,W,V;return e.openBlock(),e.createElementBlock("div",{id:n.id,class:e.normalizeClass(["q-carousel",n.class]),tabindex:"0",onMouseenter:R,onMouseleave:L,onKeydown:X},[C.loading?(e.openBlock(),e.createElementBlock("div",Ys,[e.createVNode(e.unref(zt),{width:"100%",height:"100%"}),e.createElementVNode("div",Qs,[e.createVNode(e.unref(zt),{type:"text",width:"40%",height:"24px",class:"q-carousel__skeleton-title"}),e.createVNode(e.unref(zt),{type:"text",width:"60%",height:"16px",class:"q-carousel__skeleton-subtitle"})]),n.showControls?(e.openBlock(),e.createElementBlock("div",Ws,[e.createVNode(e.unref(zt),{type:"icon",width:"40px",height:"40px",class:"q-carousel__skeleton-control"}),e.createVNode(e.unref(zt),{type:"icon",width:"40px",height:"40px",class:"q-carousel__skeleton-control"})])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(E=C.slides)!=null&&E.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:"q-carousel__track",style:e.normalizeStyle(_.value),onTouchstart:J,onTouchmove:q,onTouchend:g},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.slides,(B,T)=>(e.openBlock(),e.createElementBlock("div",{key:B.id,class:e.normalizeClass(["q-carousel__slide",{"q-carousel__slide--active":T===o.value}]),style:e.normalizeStyle(v(B)),onClick:e.withModifiers(()=>x(T),["stop","prevent"])},[B.image?(e.openBlock(),e.createElementBlock("img",{key:0,src:B.image,alt:B.title||`Slide ${T+1}`,class:"q-carousel__image",decoding:"async",loading:"lazy"},null,8,Hs)):e.createCommentVNode("",!0)],14,Us))),128))],36)):(e.openBlock(),e.createElementBlock("div",js,[e.renderSlot(C.$slots,"empty")])),C.slides[o.value]?(e.openBlock(),e.createElementBlock("div",Ks,[(W=C.slides[o.value])!=null&&W.title?(e.openBlock(),e.createElementBlock("h2",Xs,e.toDisplayString(C.slides[o.value].title),1)):e.createCommentVNode("",!0),(V=C.slides[o.value])!=null&&V.subtitle?(e.openBlock(),e.createElementBlock("p",Gs,e.toDisplayString(C.slides[o.value].subtitle),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),C.showIndicators&&C.slides.length>1?(e.openBlock(),e.createElementBlock("ol",Zs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.slides,(B,T)=>(e.openBlock(),e.createElementBlock("li",{key:B.id,class:e.normalizeClass(["q-carousel__indicator",{"q-carousel__indicator--active":T===o.value}]),"data-testid":"carousel-indicator",style:e.normalizeStyle(T===o.value?k.value:{}),"aria-label":y(T),"aria-current":T===o.value,onClick:()=>D(T)},null,14,Js))),128))])):e.createCommentVNode("",!0),C.showControls&&C.slides.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(e.unref(ze),{class:"q-carousel__control q-carousel__control--prev","data-testid":"carousel-prev","aria-label":C.texts.previousText,onClick:S},{default:e.withCtx(()=>[e.createVNode(e.unref(_e),e.mergeProps({class:"q-carousel__control-icon q-carousel__control-icon--prev"},n.icons.back),null,16),e.createElementVNode("span",ei,e.toDisplayString(C.texts.previousText),1)]),_:1},8,["aria-label"]),e.createVNode(e.unref(ze),{class:"q-carousel__control q-carousel__control--next","data-testid":"carousel-next","aria-label":C.texts.nextText,onClick:$},{default:e.withCtx(()=>[e.createVNode(e.unref(_e),e.mergeProps({class:"q-carousel__control-icon q-carousel__control-icon--next"},n.icons.forward),null,16),e.createElementVNode("span",ti,e.toDisplayString(C.texts.nextText),1)]),_:1},8,["aria-label"])],64)):e.createCommentVNode("",!0)],64))],42,Fs)}}})),ai={checked:{icon:"check"},indeterminate:{icon:"minus"}},ri=["checked","disabled","required","aria-readonly"],li=["id","aria-checked","disabled","onKeydown"],oi=e.defineComponent({inheritAttrs:!1,__name:"QCheckbox",props:e.mergeModels({id:{},class:{},label:{},required:{type:Boolean},for:{},labelPlacement:{default:"right"},color:{default:"primary"},size:{default:"regular"},disabled:{type:Boolean},readonly:{type:Boolean},indeterminate:{type:Boolean},icons:{default:()=>ai}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const t=a,n=e.useModel(a,"modelValue"),r=Oe(e.toRef(t,"id")),l=e.useTemplateRef("inputEl"),o=e.computed(()=>["q-checkbox",`q-checkbox--${t.size}`,`q-checkbox--${t.color}`,{"q-checkbox--readonly":t.readonly,"q-checkbox--disabled":t.disabled,"q-checkbox--checked":n.value,"q-checkbox--indeterminate":t.indeterminate},t.class]);function s(){!t.disabled&&!t.readonly&&(n.value=!n.value)}return e.watch(n,i=>{l.value&&(l.value.checked=!!i)}),(i,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value)},[t.label&&t.labelPlacement!=="right"?(e.openBlock(),e.createBlock(e.unref(ma),{key:0,for:e.unref(r),label:t.label,required:t.required},e.createSlots({_:2},[i.$slots.extras?{name:"extras",fn:e.withCtx(()=>[e.renderSlot(i.$slots,"extras")]),key:"0"}:void 0]),1032,["for","label","required"])):e.createCommentVNode("",!0),e.createElementVNode("input",{ref:"inputEl",type:"checkbox",class:"q-checkbox__native-input",checked:n.value,disabled:t.disabled||t.readonly,required:t.required,"aria-readonly":t.readonly,tabindex:"-1","aria-hidden":"true"},null,8,ri),e.createElementVNode("button",e.mergeProps({id:e.unref(r),role:"checkbox",type:"button",class:"q-checkbox__input","data-testid":"checkbox-button","aria-checked":t.indeterminate?"mixed":n.value,disabled:t.disabled||t.readonly},i.$attrs,{onClick:e.withModifiers(s,["prevent"]),onKeydown:[e.withKeys(e.withModifiers(s,["prevent"]),["space"]),d[0]||(d[0]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["enter"]))]}),[n.value||i.indeterminate?(e.openBlock(),e.createBlock(e.unref(_e),e.mergeProps({key:0},n.value?t.icons.checked:t.icons.indeterminate,{class:"q-checkbox__input-icon"}),null,16)):e.createCommentVNode("",!0)],16,li),t.label&&t.labelPlacement==="right"?(e.openBlock(),e.createBlock(e.unref(ma),{key:1,for:e.unref(r),label:t.label,required:t.required},e.createSlots({_:2},[i.$slots.extras?{name:"extras",fn:e.withCtx(()=>[e.renderSlot(i.$slots,"extras")]),key:"0"}:void 0]),1032,["for","label","required"])):e.createCommentVNode("",!0)],2))}}),si=["id"],ii=["for"],ut=ie(e.defineComponent({inheritAttrs:!1,__name:"QLabel",props:{id:{},class:{},label:{},required:{type:Boolean},for:{}},setup(a){const t=a,n=e.computed(()=>["q-label",{"q-label--required":t.required},t.class]);return(r,l)=>(e.openBlock(),e.createElementBlock("div",{id:t.id,class:e.normalizeClass(n.value)},[e.renderSlot(r.$slots,"prepend"),e.createElementVNode("label",e.mergeProps({for:t.for},r.$attrs),[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],16,ii),e.renderSlot(r.$slots,"append")],10,si))}})),di={class:"q-checkbox__label-wrapper"},ci={key:0,class:"q-field__extras"},ui=e.defineComponent({__name:"QCheckboxLabel",props:{id:{},class:{},label:{},required:{type:Boolean},for:{}},setup(a){const t=a;return(n,r)=>(e.openBlock(),e.createElementBlock("div",di,[e.createVNode(e.unref(ut),{class:"q-checkbox__label",for:t.for,required:t.required},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1},8,["for","required"]),n.$slots.extras?(e.openBlock(),e.createElementBlock("div",ci,[e.renderSlot(n.$slots,"extras")])):e.createCommentVNode("",!0)]))}}),fi=ie(oi),ma=ie(ui),mi={selectColor:"Select a color"},pi=["id"],hi={key:0,class:"q-field__prepend"},yi={key:1,class:"q-field__append"},gi={key:1,class:"q-field__extras"},Et=ie(e.defineComponent({inheritAttrs:!1,__name:"QField",props:{id:{},class:{},label:{},required:{type:Boolean},for:{},size:{default:"medium"},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean}},setup(a,{expose:t}){const n=a,r=e.useTemplateRef("field"),l=e.computed(()=>n.required&&!n.readonly&&!n.disabled),o=e.computed(()=>["q-field",`q-field--${n.size}`,{"q-field--readonly":n.readonly,"q-field--disabled":n.disabled,"q-field--required":l.value,"q-field--invalid":n.invalid},n.class]);return t({fieldRef:r}),(s,i)=>(e.openBlock(),e.createElementBlock("div",{id:n.id,class:e.normalizeClass(o.value)},[n.label?(e.openBlock(),e.createBlock(e.unref(ut),{key:0,class:"q-field__label",label:n.label,for:n.for,required:n.required},{prepend:e.withCtx(()=>[e.renderSlot(s.$slots,"label.prepend")]),append:e.withCtx(()=>[e.renderSlot(s.$slots,"label.append")]),_:3},8,["label","for","required"])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"control",{},()=>[e.createElementVNode("div",e.mergeProps({ref:"field",class:"q-field__control"},s.$attrs),[s.$slots.prepend?(e.openBlock(),e.createElementBlock("div",hi,[e.renderSlot(s.$slots,"prepend")])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default"),s.$slots.append?(e.openBlock(),e.createElementBlock("div",yi,[e.renderSlot(s.$slots,"append")])):e.createCommentVNode("",!0)],16)]),s.$slots.extras?(e.openBlock(),e.createElementBlock("div",gi,[e.renderSlot(s.$slots,"extras")])):e.createCommentVNode("",!0)],10,pi))}})),dn={clearValue:"Clear value"},pa={clear:{icon:"close"}},vn=ie(e.defineComponent({__name:"QClearButton",props:{id:{},class:{},icons:{default:()=>pa},texts:{default:()=>dn}},emits:["click"],setup(a,{emit:t}){const n=a,r=t;function l(o){r("click",o)}return(o,s)=>(e.openBlock(),e.createBlock(e.unref(ze),{id:n.id,class:e.normalizeClass(["q-clear-btn",n.class]),"aria-label":n.texts.clearValue,variant:"ghost",color:"neutral",borderless:"",tabindex:"-1",onClick:l},{default:e.withCtx(()=>[e.createVNode(e.unref(_e),e.normalizeProps(e.guardReactiveProps(n.icons.clear)),null,16)]),_:1},8,["id","class","aria-label"]))}})),bi=["id","type","maxlength","required","placeholder","readonly","disabled"],ki=e.defineComponent({inheritAttrs:!1,__name:"QTextField",props:e.mergeModels({id:{},class:{},label:{},required:{type:Boolean},for:{},size:{},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},placeholder:{},maxLength:{},clearable:{type:Boolean},type:{default:"text"},texts:{}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["click:clear"],["update:modelValue"]),setup(a,{expose:t,emit:n}){const r=a,l=n,o=e.useModel(a,"modelValue"),s=e.computed({get:()=>o.value,set:_=>{const k=r.maxLength;o.value=k?_==null?void 0:_.slice(0,k):_}});e.watch(o,_=>s.value=_,{immediate:!0});const i=Oe(e.toRef(r,"id")),d=e.ref(null),c=e.ref(null),m=e.computed(()=>r.readonly||r.disabled?void 0:r.placeholder),u=e.computed(()=>r.clearable&&!r.readonly&&!r.disabled),p=e.computed(()=>u.value&&o.value);function h(_){u.value&&(o.value="",l("click:clear",_))}return t({fieldRef:e.computed(()=>{var _;return(_=d.value)==null?void 0:_.fieldRef}),inputRef:c}),(_,k)=>(e.openBlock(),e.createBlock(e.unref(Et),{ref_key:"fieldRef",ref:d,class:e.normalizeClass(["q-text-field",r.class]),for:e.unref(i),label:r.label,size:r.size,readonly:r.readonly,disabled:r.disabled,required:r.required,invalid:r.invalid},e.createSlots({"label.prepend":e.withCtx(()=>[e.renderSlot(_.$slots,"label.prepend")]),"label.append":e.withCtx(()=>[e.renderSlot(_.$slots,"label.append")]),default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(i),ref_key:"inputRef",ref:c,"onUpdate:modelValue":k[0]||(k[0]=D=>s.value=D),class:"q-text-field__input",type:r.type,maxlength:r.maxLength,required:r.required,placeholder:m.value,readonly:r.readonly,disabled:r.disabled},_.$attrs),null,16,bi),[[e.vModelDynamic,s.value]])]),_:2},[_.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"prepend")]),key:"0"}:void 0,_.$slots.append||p.value?{name:"append",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"append"),p.value?(e.openBlock(),e.createBlock(e.unref(vn),{key:0,"data-testid":"q-text-field__clear-button",texts:r.texts,onClick:h},null,8,["texts"])):e.createCommentVNode("",!0)]),key:"1"}:void 0,_.$slots.extras?{name:"extras",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"extras")]),key:"2"}:void 0]),1032,["class","for","label","size","readonly","disabled","required","invalid"]))}}),wi={...dn},cn=ie(ki),_i=["readonly","disabled","aria-label"],Ci=ie(e.defineComponent({inheritAttrs:!1,__name:"QColorPicker",props:e.mergeModels({id:{},class:{},placeholder:{},label:{},size:{default:"small"},readonly:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},texts:{default:()=>mi}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const t=a,n=e.useModel(a,"modelValue"),r=e.ref(""),l=e.ref(""),o=e.computed(()=>t.readonly||t.disabled);function s(u){return sa(u,!0)}function i(u){const p=u.target;n.value=s(p.value)?p.value:""}function d(){s(l.value)?n.value=l.value:(n.value="",l.value="")}function c(u){u&&s(u)?r.value=u:r.value="#000000"}e.watch(n,c,{immediate:!0});function m(u){u&&s(u)?l.value=u:l.value=""}return e.watch(n,m,{immediate:!0}),(u,p)=>(e.openBlock(),e.createBlock(e.unref(cn),{id:t.id,modelValue:l.value,"onUpdate:modelValue":p[2]||(p[2]=h=>l.value=h),"max-length":7,class:e.normalizeClass(["q-color-picker",t.class]),label:t.label,size:t.size,readonly:t.readonly,disabled:t.disabled,required:t.required,placeholder:t.placeholder,onChange:d},e.createSlots({"label.prepend":e.withCtx(()=>[e.renderSlot(u.$slots,"label.prepend")]),"label.append":e.withCtx(()=>[e.renderSlot(u.$slots,"label.append")]),prepend:e.withCtx(()=>[e.renderSlot(u.$slots,"prepend"),e.withDirectives(e.createElementVNode("input",e.mergeProps({"onUpdate:modelValue":p[0]||(p[0]=h=>r.value=h),type:"color",class:"q-color-picker__swatch",readonly:t.readonly,disabled:o.value,"aria-label":t.texts.selectColor},u.$attrs,{onChange:i,onClick:p[1]||(p[1]=e.withModifiers(()=>{},["stop"]))}),null,16,_i),[[e.vModelText,r.value]])]),_:2},[u.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(u.$slots,"append")]),key:"0"}:void 0,u.$slots.extras?{name:"extras",fn:e.withCtx(()=>[e.renderSlot(u.$slots,"extras")]),key:"1"}:void 0]),1032,["id","modelValue","class","label","size","readonly","disabled","required","placeholder"]))}})),Bi={...dn,noData:"No data available",showOptions:"Show options"},xi={...Mn,...pa},$i=e.defineComponent({__name:"QList",props:{id:{},class:{},modelValue:{},highlighted:{},items:{},groups:{default:()=>[]},selectable:{type:Boolean},multiple:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},itemValue:{default:"key"},itemLabel:{default:"label"}},emits:["update:modelValue","click","mouseenter:item"],setup(a,{expose:t,emit:n}){const r=a,l=n,o=e.ref(!1),s=e.computed(()=>i.value.length>1?"div":"ul"),i=e.computed(()=>r.groups.length?r.groups.filter(y=>{var w;return(w=r.items)==null?void 0:w.some(C=>C.group===y.id)}):[{id:"",title:""}]),{active:d}=rn({active:e.toRef(r,"modelValue"),required:e.toRef(r,"required"),multiple:e.toRef(r,"multiple")}),c=e.ref(null),m=e.ref(null);function u(y){l("click",y)}function p(y){l("mouseenter:item",y)}function h(){o.value=!0}function _(){o.value=!1}function k(y){var M,E;if(!r.items||(M=c.value)!=null&&M.contains(y.relatedTarget))return;let w=-1;r.multiple?((E=d.value)==null?void 0:E.length)>0&&(w=r.items.findIndex(W=>d.value.includes(W[r.itemValue]))):d.value&&(w=r.items.findIndex(W=>W[r.itemValue]===d.value)),w===-1&&(w=N());const C=o.value;v(w,C)}const D=e.ref("");let $;function S(y){var w;switch(window.clearTimeout($),["ArrowDown","ArrowUp","Home","End"].includes(y.key)&&y.preventDefault(),y.key){case"ArrowDown":x("next");break;case"ArrowUp":x("prev");break;case"Home":x("first");break;case"End":x("last");break}if(/^[a-z]$/i.test(y.key)){D.value+=y.key.toLowerCase();const C=((w=r.items)==null?void 0:w.length)||0;for(let M=0;M<C;M++)if(r.items[M][r.itemLabel].toLowerCase().startsWith(D.value)){v(M);break}y.preventDefault(),y.stopPropagation()}$=window.setTimeout(function(){D.value=""},500)}function x(y){switch(y){case"next":case"prev":v(X(y));break;case"first":v(N());break;case"last":v(R());break}}function v(y,w=!1){var M;(M=I()[y])==null||M.focus({preventScroll:w})}function I(){var w;const y=(w=c.value)==null?void 0:w.querySelectorAll("li");return y?Array.from(y):[]}function A(y){return I()[y]}function O(){return I().indexOf(document.activeElement)}function N(){const y=I(),w=y.find(C=>q(C));return w?y.indexOf(w):-1}function R(){const y=I(),w=[...y].reverse().find(C=>q(C));return w?y.indexOf(w):-1}function L(y,w,C){return w==="prev"&&y<=0||w==="next"&&y===C.length-1}function X(y){const w=O();return J(w,y)}function J(y,w){const C=I();if(L(y,w,C))return y;let M=y+(w==="next"?1:-1);for(;!q(C[M]);){if(L(M,w,C))return y;M+=w==="next"?1:-1}return M}function q(y){return y.tabIndex===-2}function g(y){var w;return y?(w=r.items)==null?void 0:w.filter(C=>C.group===y):r.items}return e.watch(d,y=>{l("update:modelValue",y)}),t({getItem:A,getActiveItemIndex:O,getAdjacentItemIndex:J,getFirstFocusableItemIndex:N,getLastFocusableItemIndex:R}),(y,w)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value),{id:r.id,ref_key:"listRef",ref:c,class:e.normalizeClass(["q-list",{"q-list--disabled":r.disabled},r.class]),role:"listbox",tabindex:r.disabled?-1:0,onFocus:k,onMousedown:h,onMouseup:_,onKeydown:S},{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(C,M)=>(e.openBlock(),e.createBlock(e.unref(qr),{id:C.id,key:C.id,title:i.value.length===1?void 0:C.title},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g(C.id),(E,W)=>(e.openBlock(),e.createBlock(e.unref(Ar),{key:E[r.itemValue],ref_for:!0,ref_key:"listItemsRef",ref:m,value:E[r.itemValue],label:E[r.itemLabel],description:E.description,icon:E.icon,disabled:r.disabled||C.disabled||E.disabled,highlighted:r.highlighted===E[r.itemValue],selectable:r.selectable||r.multiple||E.selectable,onClick:()=>u(E[r.itemValue]),onMouseenter:()=>p(E[r.itemValue])},{append:e.withCtx(()=>{var V,B;return[e.renderSlot(y.$slots,"item.append",{item:E,element:(B=(V=m.value)==null?void 0:V[W+M*i.value.length])==null?void 0:B.$el})]}),default:e.withCtx(()=>{var V,B;return[e.renderSlot(y.$slots,"item",{item:E,element:(B=(V=m.value)==null?void 0:V[W+M*i.value.length])==null?void 0:B.$el})]}),_:2},1032,["value","label","description","icon","disabled","highlighted","selectable","onClick","onMouseenter"]))),128))]),_:2},1032,["id","title"]))),128))])]),_:3},40,["id","class","tabindex"]))}}),Di={check:{icon:"check"},description:{icon:"information-outline"}},Si=["id","data-key","tabindex","aria-label","aria-selected"],Ti={class:"q-list-item__container"},Ei={class:"q-list-item__content"},Mi={key:0,class:"q-list-item__description"},Ni={key:0,class:"q-list-item__check-container"},Vi=e.defineComponent({__name:"QListItem",props:e.mergeModels({value:{},label:{},icon:{},description:{},selectable:{type:Boolean},highlighted:{type:Boolean},disabled:{type:Boolean},icons:{default:()=>Di}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["click"],["update:modelValue"]),setup(a,{emit:t}){const n=a,r=t,l=e.useModel(a,"modelValue"),o=Oe(),s=En(n.value);if(!s)throw new Error("QListItem: Failed to retrieve group item. Ensure the component is used within a QList context.");function i(){n.disabled||(r("click"),n.selectable&&(s==null||s.toggle()))}function d(c){c.key==="Tab"&&i(),(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),c.stopPropagation(),i())}return e.watch(s.isActive,c=>{l.value=c},{immediate:!0}),(c,m)=>(e.openBlock(),e.createElementBlock("li",{id:e.unref(o),"data-key":n.value,role:"option",tabindex:n.disabled?void 0:-2,class:e.normalizeClass(["q-list-item",{"q-list-item--selected":l.value,"q-list-item--selectable":n.selectable,"q-list-item--disabled":n.disabled,"q-list-item--highlighted":n.highlighted}]),"aria-label":n.label,"aria-selected":n.disabled?void 0:l.value,onKeydown:d,onClick:e.withModifiers(i,["stop","prevent"])},[e.renderSlot(c.$slots,"prepend"),e.createElementVNode("div",Ti,[e.createElementVNode("div",Ei,[e.renderSlot(c.$slots,"default",{},()=>[n.icon?(e.openBlock(),e.createBlock(e.unref(_e),e.normalizeProps(e.mergeProps({key:0},n.icon)),null,16)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.label),1)])]),n.description?(e.openBlock(),e.createElementBlock("div",Mi,[e.createVNode(e.unref(_e),e.normalizeProps(e.guardReactiveProps(n.icons.description)),null,16),e.createElementVNode("span",null,e.toDisplayString(n.description),1)])):e.createCommentVNode("",!0)]),e.renderSlot(c.$slots,"append"),n.selectable?(e.openBlock(),e.createElementBlock("div",Ni,[l.value?(e.openBlock(),e.createBlock(e.unref(_e),e.mergeProps({key:0},n.icons.check,{class:"q-list-item__check"}),null,16)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],42,Si))}}),vi=["data-key","aria-labelledby"],Pi=["id"],Ai=e.defineComponent({__name:"QListItemGroup",props:{id:{},title:{}},setup(a){const t=a,n=Oe();return(r,l)=>(e.openBlock(),e.createElementBlock("ul",{class:"q-list-item-group",role:"group","data-key":t.id,"aria-labelledby":t.title?e.unref(n):void 0},[t.title?(e.openBlock(),e.createElementBlock("li",{key:0,id:e.unref(n),class:"q-list-item-group__title",role:"presentation"},e.toDisplayString(t.title),9,Pi)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default")],8,vi))}}),Pn=ie($i),Ar=ie(Vi),qr=ie(Ai),Rr=Symbol("DismissibleLayer");function qi(){const a=e.ref([]);function t(l){a.value.push(l)}function n(l){const o=a.value.indexOf(l);o!==-1&&a.value.splice(o,1)}function r(l){return a.value[a.value.length-1]===l}return{layers:a,register:t,unregister:n,isTop:r}}function Ri(a){const t=e.inject(Rr);if(!t)throw new Error("useDismissibleLayerStackItem must be used within a dismissible layer stack context.");return{register:()=>t.register(a),unregister:()=>t.unregister(a),isTop:()=>t.isTop(a)}}const Oi={ref:"layer"},Or=ie(e.defineComponent({__name:"QDismissibleLayer",emits:["escape-key-down","pointer-down-outside","focus-outside","interact-outside","dismiss"],setup(a,{emit:t}){const n=t,r=e.useTemplateRef("layer"),l=e.useId(),o=Ri(l);let s=[];function i(u){u.key==="Escape"&&(o!=null&&o.isTop())&&(n("escape-key-down",u),u.defaultPrevented||n("dismiss",u))}function d(u){if(!r.value)return;const p=u.target;if(!r.value.contains(p)&&(o!=null&&o.isTop())){const h=new CustomEvent("focus-outside",{bubbles:!1,cancelable:!0,detail:{originalEvent:u}});n("focus-outside",h),n("interact-outside",h),h.defaultPrevented||n("dismiss",h)}}function c(u){if(!r.value||!(o!=null&&o.isTop()))return;const p=u.target;if(!r.value.contains(p)){const h=new CustomEvent("pointer-down-outside",{bubbles:!1,cancelable:!0,detail:{originalEvent:u}});n("pointer-down-outside",h),n("interact-outside",h),h.defaultPrevented||n("dismiss",h)}}function m(){["mousedown","touchstart"].forEach(p=>{document.addEventListener(p,c,{passive:!0,capture:!0}),s.push(()=>{document.removeEventListener(p,c,{capture:!0})})})}return e.onMounted(()=>{o==null||o.register(),document.addEventListener("keydown",i),s.push(()=>{document.removeEventListener("keydown",i)}),document.addEventListener("focusin",d),s.push(()=>{document.removeEventListener("focusin",d)}),m()}),e.onUnmounted(()=>{o==null||o.unregister(),s.forEach(u=>u()),s=[]}),(u,p)=>(e.openBlock(),e.createElementBlock("div",Oi,[e.renderSlot(u.$slots,"default")],512))}})),Ft="data-scroll-locked",ha="right-scroll-bar-position",ya="width-before-scroll-bar",Ii="with-scroll-bars-hidden",Li="--removed-body-scroll-bar-size",zi={left:0,top:0,right:0,gap:0},ga=a=>parseInt(a||"",10)||0,Fi=a=>{const t=window.getComputedStyle(document.body),n=t[a==="padding"?"paddingLeft":"marginLeft"],r=t[a==="padding"?"paddingTop":"marginTop"],l=t[a==="padding"?"paddingRight":"marginRight"];return[ga(n),ga(r),ga(l)]},Yi=(a="margin")=>{if(typeof window>"u")return zi;const t=Fi(a),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}};function Qi(){return document?document.createElement("style"):null}function Wi(a,t){a.appendChild(document.createTextNode(t))}function Ui(a){(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}const Hi=()=>{let a=0,t=null;return{add:n=>{a===0&&(t=Qi())&&(Wi(t,n),Ui(t)),a++},remove:()=>{var n;a--,!a&&t&&((n=t.parentNode)==null||n.removeChild(t),t=null)}}},ji=ie(e.defineComponent({__name:"QRemoveScrollBar",props:{gapMode:{default:"margin"},noRelative:{type:Boolean},noImportant:{type:Boolean}},setup(a){const t=a,n=Hi(),r=()=>{const o=parseInt(document.body.getAttribute(Ft)||"0",10);return isFinite(o)?o:0},l=({left:o,top:s,right:i,gap:d},c,m="margin",u)=>`
|
|
10
|
+
`),n=Ko();n.textContent=t}function Dr(a){return a?`--q-theme-${ra(a)}`:""}function Sr(a,t){const n=e.computed(()=>{const o=t.value.find(s=>s.name===a.value);if(!o)throw new Error(`[Quidgest UI] Theme "${a.value}" not found`);return o}),r=e.computed(()=>Tr(n.value.name)),l=e.computed(()=>$r(n.value));return{name:a,current:n,themes:t,class:r,css:l}}function Tr(a){return`q-theme--${ra(a)}`}const ua=Symbol.for("q-theme");function It(){const a=e.inject(ua);if(!a)throw new Error("[Quidgest UI] Could not find theme instance");return a}function Er(a){const{themes:t}=It(),n=e.computed(()=>e.toValue(a)),r=e.computed(()=>typeof n.value!="string"),l=e.computed(()=>r.value?n.value.name:n.value),o=e.computed(()=>r.value?[...t.value,n.value]:t.value),s=Sr(l,o);return e.provide(ua,s),s}function ct(a){const t=e.computed(()=>e.unref(a)),n=e.computed(()=>t.value?!Go(t.value):!1),r=e.computed(()=>{const l=t.value;if(!l)return;let o=l;const s=It();if(n.value){const p=l;o=s.current.value.scheme[p]??l}let i;try{if(i=Tt(o),!i)return}catch(p){console.error("Failed to parse color:",p);return}const d=on(i),c=ia(d.l),m=ca(i,25),u=Ot(m);return{mainColor:o,mainColorRgb:oa(i),onMainColor:c,hoverColor:u,hoverColorRgb:oa(m),onHoverColor:c}});return{isUtilityColor:n,style:r}}function Go(a){return a.startsWith("#")||a.startsWith("rgb")||a.startsWith("hsl")}const Zo=["id","disabled"],Jo={key:0,class:"q-button__spinner"},es={class:"q-button__content"},ze=ie(e.defineComponent({__name:"QButton",props:{id:{},class:{},label:{},variant:{default:"outlined"},color:{default:"primary"},borderless:{type:Boolean},elevated:{type:Boolean},block:{type:Boolean},size:{default:"regular"},iconPos:{default:"start"},pill:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(a,{emit:t}){const n=a,r=t,l=e.computed(()=>n.disabled||n.loading);function o(m){l.value||r("click",m)}const{isUtilityColor:s,style:i}=ct(e.toRef(n,"color")),d=e.computed(()=>{const m=s.value?`q-button--${n.color}`:void 0,u=n.size!=="regular"?`q-button--${n.size}`:void 0,p=n.iconPos!=="start"?`q-button--icon-${n.iconPos}`:void 0;return["q-button",`q-button--${n.variant}`,m,u,p,{"q-button--borderless":n.borderless,"q-button--elevated":n.elevated,"q-button--block":n.block,"q-button--loading":n.loading,"q-button--pill":n.pill},n.class]}),c=e.computed(()=>{var m,u,p,h,_,k;if(!s.value)return{"--q-button-main-color":(m=i.value)==null?void 0:m.mainColor,"--q-button-main-color-rgb":(u=i.value)==null?void 0:u.mainColorRgb,"--q-button-on-main-color":(p=i.value)==null?void 0:p.onMainColor,"--q-button-hover-color":(h=i.value)==null?void 0:h.hoverColor,"--q-button-hover-color-rgb":(_=i.value)==null?void 0:_.hoverColorRgb,"--q-button-on-hover-color":(k=i.value)==null?void 0:k.onHoverColor}});return(m,u)=>(e.openBlock(),e.createElementBlock("button",{id:n.id,type:"button",class:e.normalizeClass(d.value),disabled:l.value,style:e.normalizeStyle(c.value),onClick:e.withModifiers(o,["stop","prevent"])},[n.loading?(e.openBlock(),e.createElementBlock("div",Jo,[e.createVNode(e.unref(ln))])):e.createCommentVNode("",!0),e.createElementVNode("span",es,[e.renderSlot(m.$slots,"default"),e.createTextVNode(" "+e.toDisplayString(n.label),1)])],14,Zo))}})),ts={class:"q-card__header"},ns={key:0,class:"q-card__header-content"},as={class:"q-card__header-text"},rs={key:0,class:"q-card__title",role:"cell"},ls={key:1,class:"q-card__subtitle",role:"cell"},os={class:"q-card__content"},ss={key:0,class:"q-card__footer"},fa=ie(e.defineComponent({__name:"QCard",props:{id:{},class:{},title:{},subtitle:{},href:{},borderless:{type:Boolean},variant:{default:"default"},elevation:{default:"none"},width:{},disabled:{type:Boolean},loading:{type:Boolean}},setup(a){const t=a,n=e.computed(()=>{const i=t.width?`q-card--${t.width}`:void 0,d=t.variant&&t.variant!=="default"?`q-card--${t.variant}`:void 0,c=t.elevation&&t.elevation!=="none"?`q-card--elevation-${t.elevation}`:void 0;return["q-card",i,d,c,{"q-card--clickable":l.value,"q-card--loading":t.loading,"q-card--borderless":t.borderless,"q-card--disabled":t.disabled},t.class]}),r=e.useAttrs(),l=e.computed(()=>!!r.onClick||t.href),o=e.computed(()=>t.disabled||t.loading);function s(i){o.value&&i.stopImmediatePropagation()}return(i,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.href?"a":"div"),{id:t.id,class:e.normalizeClass(n.value),href:t.href&&!o.value?t.href:void 0,onClick:s},{default:e.withCtx(()=>[t.loading?(e.openBlock(),e.createBlock(e.unref(ln),{key:0,size:36})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",ts,[e.renderSlot(i.$slots,"header",{},()=>[e.renderSlot(i.$slots,"header.prepend"),i.$slots.title||t.title||i.$slots.subtitle||t.subtitle?(e.openBlock(),e.createElementBlock("div",ns,[e.renderSlot(i.$slots,"header.content.prepend"),e.createElementVNode("div",as,[i.$slots.title||t.title?(e.openBlock(),e.createElementBlock("p",rs,[i.$slots.title?e.renderSlot(i.$slots,"title",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(i.$props.title),1)],64))])):e.createCommentVNode("",!0),i.$slots.subtitle||t.subtitle?(e.openBlock(),e.createElementBlock("p",ls,[i.$slots.subtitle?e.renderSlot(i.$slots,"subtitle",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(i.$props.subtitle),1)],64))])):e.createCommentVNode("",!0)]),e.renderSlot(i.$slots,"header.content.append")])):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"header.append")])]),e.createElementVNode("div",os,[e.renderSlot(i.$slots,"default")]),i.$slots.footer?(e.openBlock(),e.createElementBlock("div",ss,[e.renderSlot(i.$slots,"footer")])):e.createCommentVNode("",!0)],64))]),_:3},8,["id","class","href"]))}})),is=e.defineComponent({__name:"QIcon",props:{id:{},class:{},icon:{},size:{},color:{},type:{default:"svg"}},setup(a){const t=a,n=e.computed(()=>{switch(t.type){case"svg":return Vr;case"font":return Mr;case"img":return Nr;default:return}}),{style:r}=ct(e.toRef(t,"color")),l=e.computed(()=>{var o;return{"font-size":t.size!==void 0?`${t.size}px`:void 0,color:t.color!==void 0&&t.color!=="primary"?(o=r.value)==null?void 0:o.mainColor:void 0}});return(o,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value),{id:t.id,class:e.normalizeClass(t.class),icon:t.icon,style:e.normalizeStyle(l.value)},null,8,["id","class","icon","style"]))}}),ds=["id"],cs=e.defineComponent({__name:"QIconFont",props:{id:{},class:{},icon:{},variant:{},library:{default:""}},setup(a){const t=a,n=e.computed(()=>t.variant?`${t.library}-${t.variant}`:t.library),r=e.computed(()=>t.library&&t.icon?`${t.library}-${t.icon}`:t.icon);return(l,o)=>(e.openBlock(),e.createElementBlock("i",{id:t.id,class:e.normalizeClass(["q-icon","q-icon__font",n.value,r.value,t.class])},null,10,ds))}}),us=["id","src"],fs=e.defineComponent({__name:"QIconImg",props:{id:{},class:{},icon:{}},setup(a){const t=a;return(n,r)=>(e.openBlock(),e.createElementBlock("img",{id:t.id,src:t.icon,class:e.normalizeClass(["q-icon","q-icon__img",t.class])},null,10,us))}}),sn={},ms=e.defineComponent({name:"InlineSvg",inheritAttrs:!1,props:{src:{type:String,required:!0},symbol:{type:String,default:""},title:{type:String,default:""},transformSource:{type:Function,default:void 0},keepDuringLoading:{type:Boolean,default:!0}},emits:{loaded:a=>typeof a=="object",unloaded:()=>!0,error:a=>typeof a=="object"},data(){return{svgElSource:null}},watch:{src(a){this.getSource(a)}},async mounted(){await this.getSource(this.src)},methods:{copySvgAttrs(a,t){const n=t.attributes;if(n)for(const r of n)a[r.name]=r.value},copyComponentAttrs(a,t){for(const[n,r]of Object.entries(t))r!==!1&&r!==null&&r!==void 0&&(a[n]=r)},getSvgContent(a){return this.symbol&&(a=a.getElementById(this.symbol),!a)?null:(this.transformSource&&(a=a.cloneNode(!0),a=this.transformSource(a)),this.title&&(this.transformSource||(a=a.cloneNode(!0)),ps(a,this.title)),a)},async getSource(a){try{sn[a]||(sn[a]=hs(this.download(a))),this.svgElSource&&sn[a].getIsPending()&&!this.keepDuringLoading&&(this.svgElSource=null,this.$emit("unloaded"));const t=await sn[a];this.svgElSource=t,await this.$nextTick(),this.$emit("loaded",this.$el)}catch(t){this.svgElSource&&(this.svgElSource=null,this.$emit("unloaded")),delete sn[a],this.$emit("error",t)}},async download(a){const t=await fetch(a);if(!t.ok)throw new Error("Error loading SVG");const n=await t.text(),o=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("svg")[0];if(!o)throw new Error("Loaded file is not a valid SVG");return o}},render(){if(!this.svgElSource)return null;const a=this.getSvgContent(this.svgElSource);if(!a)return e.h("div",this.$attrs);const t={};return this.copySvgAttrs(t,this.svgElSource),this.copySvgAttrs(t,a),this.copyComponentAttrs(t,this.$attrs),t.innerHTML=a.innerHTML,e.h("svg",t)},expose:[]});function ps(a,t){const n=a.getElementsByTagName("title");if(n.length)n[0].textContent=t;else{const r=document.createElementNS("http://www.w3.org/2000/svg","title");r.textContent=t,a.insertBefore(r,a.firstChild)}}function hs(a){if(a.getIsPending)return a;let t=!0;const n=a.then(r=>(t=!1,r),r=>{throw t=!1,r});return n.getIsPending=()=>t,n}const ys=e.defineComponent({__name:"QIconSvg",props:{id:{},class:{},icon:{},bundle:{default:""}},emits:["loaded","unloaded"],setup(a,{emit:t}){const n=a,r=t;function l(s){r("loaded",s)}function o(){r("unloaded")}return(s,i)=>(e.openBlock(),e.createBlock(e.unref(ms),{id:n.id,class:e.normalizeClass(["q-icon","q-icon__svg",n.class]),src:n.bundle,symbol:n.icon,onLoaded:l,onUnloaded:o},null,8,["id","class","src","symbol"]))}}),_e=ie(is),Mr=ie(cs),Nr=ie(fs),Vr=ie(ys),Vn=ie(e.defineComponent({__name:"QChevron",props:e.mergeModels({id:{},class:{},icons:{default:()=>Mn}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const t=a,n=e.useModel(a,"modelValue"),r=e.computed(()=>["q-chevron",{"q-chevron--expanded":n.value},t.class]);return(l,o)=>(e.openBlock(),e.createBlock(e.unref(_e),e.mergeProps({id:t.id,class:r.value},t.icons.chevron),null,16,["id","class"]))}})),gs={key:0,class:"q-collapsible__header"},bs={class:"q-collapsible__title"},ks={class:"q-collapsible__title-text"},ws={key:1,class:"q-collapsible--required"},_s={key:0,class:"q-collapsible__subtitle"},Cs={class:"q-collapsible__content-inner"},Bs={class:"q-collapsible__content"},vr=ie(e.defineComponent({__name:"QCollapsible",props:e.mergeModels({id:{},class:{},title:{},subtitle:{},variant:{},iconRight:{type:Boolean},spacing:{},width:{default:"fit-content"},required:{type:Boolean},icons:{default:()=>Yo}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const t=a,n=e.useModel(a,"modelValue"),r=e.computed(()=>t.width==="block"?"block":void 0),l=e.computed(()=>{const i=t.spacing&&t.spacing!=="comfortable"?`q-collapsible--${t.spacing}`:void 0,d=t.variant&&t.variant!=="default"?`q-collapsible--${t.variant}`:void 0;return["q-collapsible",i,d,{"q-collapsible--icon-right":t.iconRight},t.class]}),o=e.computed(()=>["q-collapsible__content-wrapper",{"q-collapsible__content-show":n.value}]);function s(){n.value=!n.value}return(i,d)=>(e.openBlock(),e.createBlock(e.unref(fa),{id:t.id,class:e.normalizeClass(l.value),width:r.value},{header:e.withCtx(()=>[i.title?(e.openBlock(),e.createElementBlock("div",gs,[e.createVNode(e.unref(ze),{variant:"text",block:"",class:"q-collapsible__btn","aria-expanded":n.value,onClick:s},{default:e.withCtx(()=>[e.createElementVNode("div",bs,[i.iconRight?e.createCommentVNode("",!0):e.renderSlot(i.$slots,"icon",{key:0},()=>[e.createVNode(e.unref(Vn),{"model-value":n.value,icons:t.icons},null,8,["model-value","icons"])]),e.renderSlot(i.$slots,"title.prepend"),e.createElementVNode("h4",ks,e.toDisplayString(i.title),1),t.required?(e.openBlock(),e.createElementBlock("span",ws," * ")):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"title.append"),i.iconRight?e.renderSlot(i.$slots,"icon",{key:2},()=>[e.createVNode(e.unref(Vn),{"model-value":n.value,class:"q-collapsible__chevron-right",icons:t.icons},null,8,["model-value","icons"])]):e.createCommentVNode("",!0)]),i.$slots.subtitle||i.subtitle?(e.openBlock(),e.createElementBlock("div",_s,[e.renderSlot(i.$slots,"subtitle",{},()=>[e.createTextVNode(e.toDisplayString(i.subtitle),1)])])):e.createCommentVNode("",!0)]),_:3},8,["aria-expanded"])])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(o.value)},[e.createElementVNode("div",Cs,[e.createElementVNode("div",Bs,[e.renderSlot(i.$slots,"default")])])],2)]),_:3},8,["id","class","width"]))}}));let xs=0;function Oe(a){const t=e.toValue(a);return e.ref(t||`uid-${++xs}`)}const $s=e.defineComponent({__name:"QAccordionItem",props:{id:{},class:{},title:{},subtitle:{},variant:{},iconRight:{type:Boolean},spacing:{},width:{},required:{type:Boolean},icons:{},value:{}},setup(a){const t=a,n=Oe(e.toRef(t,"value")),r=En(n);if(!r)throw new Error("QAccordionItem: Failed to retrieve group item. Ensure the component is used within a QAccordion context.");return(l,o)=>(e.openBlock(),e.createBlock(e.unref(vr),e.mergeProps(t,{"model-value":e.unref(r).isActive.value,"onUpdate:modelValue":e.unref(r).toggle}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16,["model-value","onUpdate:modelValue"]))}}),Ds=ie(Fo),Ss=ie($s),Ts=["src","alt"],Es={key:1,class:"q-avatar-initials"},Ms=ie(e.defineComponent({__name:"QAvatar",props:{src:{},initials:{},color:{},size:{default:"medium"},shape:{default:"circle"},alt:{default:"Avatar"}},setup(a){const t=a,n=e.computed(()=>["small","large"].includes(t.size)?`q-avatar--${t.size}`:""),r=e.computed(()=>t.shape==="circle"?void 0:"q-avatar--square"),{style:l}=ct(e.toRef(t,"color")),o=e.computed(()=>{var i,d;const s={};return["small","medium","large"].includes(t.size)||(s["--q-avatar-size"]=t.size),l.value&&(s["--q-avatar-color"]=(i=l.value)==null?void 0:i.mainColor,s["--q-avatar-text-color"]=(d=l.value)==null?void 0:d.onMainColor),s});return(s,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["q-avatar",n.value,r.value]),style:e.normalizeStyle(o.value)},[s.src?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.src,alt:s.alt,class:"q-avatar-img"},null,8,Ts)):s.initials?(e.openBlock(),e.createElementBlock("span",Es,e.toDisplayString(s.initials.slice(0,2).toUpperCase()),1)):e.renderSlot(s.$slots,"fallback",{key:2})],6))}})),Ns={remove:{icon:"close"}},Vs={removeText:"Remove"},vs=["id","role","tabindex","onKeydown"],Ps={key:0,class:"q-badge__underlay"},As={class:"q-badge__content"},Lt=ie(e.defineComponent({__name:"QBadge",props:{id:{},class:{},variant:{default:"tonal"},color:{default:"primary"},pill:{type:Boolean},size:{default:"default"},disabled:{type:Boolean},removable:{type:Boolean},icons:{default:()=>Ns},texts:{default:()=>Vs}},emits:["click:remove"],setup(a,{emit:t}){const n=a,r=t,l=e.useAttrs(),o=e.computed(()=>!!l.onClick),s=e.computed(()=>{const p=i.value?`q-badge--${n.color}`:void 0,h=n.size!=="default"?`q-badge--${n.size}`:void 0;return["q-badge",`q-badge--${n.variant}`,p,h,{"q-badge--pill":n.pill,"q-badge--disabled":n.disabled,"q-badge--clickable":o.value&&!n.disabled},n.class]}),{isUtilityColor:i,style:d}=ct(e.toRef(n,"color")),c=e.computed(()=>{var p,h,_,k;if(!i.value)return{"--q-badge-main-color":(p=d.value)==null?void 0:p.mainColor,"--q-badge-on-main-color":(h=d.value)==null?void 0:h.onMainColor,"--q-badge-hover-color":(_=d.value)==null?void 0:_.hoverColor,"--q-badge-on-hover-color":(k=d.value)==null?void 0:k.onHoverColor}});function m(p){p.stopImmediatePropagation()}function u(){r("click:remove")}return(p,h)=>(e.openBlock(),e.createElementBlock("span",{id:n.id,class:e.normalizeClass(s.value),role:o.value?"button":"presentation",style:e.normalizeStyle(c.value),tabindex:o.value?0:void 0,onKeydown:e.withKeys(e.withModifiers(m,["stop","prevent"]),["enter"])},[n.variant==="tonal"?(e.openBlock(),e.createElementBlock("div",Ps)):e.createCommentVNode("",!0),e.createElementVNode("div",As,[e.renderSlot(p.$slots,"default"),n.removable?(e.openBlock(),e.createBlock(e.unref(ze),{key:0,class:"q-badge__remove",pill:"",borderless:"",tabindex:"0",color:n.color,"aria-label":n.texts.removeText,title:n.texts.removeText,disabled:n.disabled,onClick:u},{default:e.withCtx(()=>[e.createVNode(e.unref(_e),e.normalizeProps(e.guardReactiveProps(n.icons.remove)),null,16)]),_:1},8,["color","aria-label","title","disabled"])):e.createCommentVNode("",!0)])],46,vs))}})),qs=["id"],Rs=ie(e.defineComponent({__name:"QBadgeIndicator",props:{id:{},class:{},content:{},color:{default:"highlight"},placement:{default:"top-right"}},setup(a){const t=a,n=e.useSlots(),r=e.computed(()=>!t.content&&!n.content),l=e.computed(()=>["q-badge-indicator",`q-badge-indicator--${t.placement}`,{"q-badge-indicator--dot":r.value}]);return(o,s)=>(e.openBlock(),e.createElementBlock("div",{id:t.id,class:e.normalizeClass(["q-badge-indicator__wrapper",t.class])},[e.renderSlot(o.$slots,"default"),e.createVNode(e.unref(Lt),{pill:"",variant:"bold",class:e.normalizeClass(l.value),color:t.color},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(t.content),1)])]),_:3},8,["class","color"])],10,qs))}})),Os=["id"],Pr=ie(e.defineComponent({__name:"QButtonGroup",props:{id:{},class:{},block:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean},disabled:{type:Boolean}},setup(a){const t=a;return St({QButton:{disabled:e.toRef(t,"disabled"),borderless:e.toRef(t,"borderless")}}),(n,r)=>(e.openBlock(),e.createElementBlock("div",{id:t.id,class:e.normalizeClass(["q-button-group",{"q-button-group--elevated":t.elevated,"q-button-group--block":t.block},t.class]),role:"group"},[e.renderSlot(n.$slots,"default")],10,Os))}})),Is={back:{icon:"chevron-left"},forward:{icon:"chevron-right"}},Ls={previousText:"Previous",nextText:"Next",goToSlide:"Go to slide {0}"},zs=["id"],zt=ie(e.defineComponent({__name:"QSkeletonLoader",props:{id:{},class:{},width:{},height:{},type:{}},setup(a){const t=a,n=e.computed(()=>t.type?`q-skeleton-loader--${t.type}`:void 0),r=e.computed(()=>{const l=typeof t.width=="number"?`${t.width}px`:t.width,o=typeof t.height=="number"?`${t.height}px`:t.height;return{width:l,height:o}});return(l,o)=>(e.openBlock(),e.createElementBlock("div",{id:t.id,class:e.normalizeClass(["q-skeleton-loader",n.value,t.class]),style:e.normalizeStyle(r.value)},o[0]||(o[0]=[e.createElementVNode("div",{class:"q-skeleton-loader__bone"},null,-1)]),14,zs))}})),Fs=["id"],Ys={key:0,class:"q-carousel__skeleton"},Qs={class:"q-carousel__skeleton-caption"},Ws={key:0,class:"q-carousel__skeleton-controls"},Us=["onClick"],Hs=["src","alt"],js={key:1,class:"q-carousel__empty-container"},Ks={key:2,class:"q-carousel__caption-global"},Xs={key:0,class:"q-carousel__title"},Gs={key:1,class:"q-carousel__subtitle"},Zs={key:3,class:"q-carousel__indicators"},Js=["aria-label","aria-current","onClick"],ei={class:"q-carousel__sr-only"},ti={class:"q-carousel__sr-only"},ni=ie(e.defineComponent({__name:"QCarousel",props:e.mergeModels({id:{},class:{},slides:{default:()=>[]},showIndicators:{type:Boolean},showControls:{type:Boolean},autoCycleInterval:{default:5e3},autoCyclePause:{default:"hover"},ride:{default:"carousel"},swipeThreshold:{default:50},wrap:{type:Boolean,default:!0},animationDuration:{default:500},loading:{type:Boolean},icons:{default:()=>Is},texts:{default:()=>Ls}},{currentSlide:{default:0},currentSlideModifiers:{}}),emits:e.mergeModels(["slide:before-change","slide:after-change","slide:click"],["update:currentSlide"]),setup(a,{emit:t}){const n=a,r=t,l=e.useModel(a,"currentSlide"),o=e.ref(0);let s=!1,i=!1,d=0,c=0;const m=e.ref(0),u=e.ref(0);let p,h;const _=e.computed(()=>({transform:`translateX(-${o.value*100}%)`,transition:s?`transform ${n.animationDuration}ms cubic-bezier(0.4, 0, 0.2, 1)`:"none"})),k=e.computed(()=>({"--q-carousel-progress-duration":`${n.autoCycleInterval}ms`,"--q-carousel-progress-width":`${m.value}%`}));function D(C){if(C<0||C>=n.slides.length||C===o.value||s)return;const M=o.value,E=n.slides[M],W=n.slides[C];r("slide:before-change",W.id,E==null?void 0:E.id),o.value=C,l.value=C,n.animationDuration>0?(s=!0,setTimeout(()=>{s=!1,r("slide:after-change",W.id,E==null?void 0:E.id)},n.animationDuration)):e.nextTick(()=>{r("slide:after-change",W.id,E==null?void 0:E.id)})}function $(){const C=o.value+1;C>=n.slides.length?n.wrap&&D(0):D(C)}function S(){const C=o.value-1;C<0?n.wrap&&D(n.slides.length-1):D(C)}function x(C){const M=window.getSelection();if(M!=null&&M.toString().length)return;const E=n.slides[C];r("slide:click",E.id)}function v(C){const M={};return C!=null&&C.colorPlaceholder&&(M["background-color"]=C.colorPlaceholder),M}function I(){n.autoCycleInterval&&(h=window.setInterval(()=>{m.value=(Date.now()-u.value)/n.autoCycleInterval*100},50))}function A(){!n.autoCycleInterval||n.slides.length<=1||(O(),n.ride==="carousel"&&!i&&(u.value=Date.now(),I(),p=window.setTimeout($,n.autoCycleInterval)))}function O(){p&&window.clearTimeout(p),h&&window.clearInterval(h),p=void 0,h=void 0,u.value=0,m.value=0}function N(){O(),A()}function R(){n.autoCyclePause==="hover"&&(i=!0,O())}function L(){n.autoCyclePause==="hover"&&(i=!1,A())}function X(C){if(!s)switch(C.key){case"ArrowLeft":C.preventDefault(),S();break;case"ArrowRight":C.preventDefault(),$();break;case"Home":C.preventDefault(),D(0);break;case"End":C.preventDefault(),D(n.slides.length-1);break}}function J(C){s||(d=C.touches[0].clientX,O())}function q(C){s||(c=C.touches[0].clientX)}function g(){if(s)return;const C=d-c;Math.abs(C)>n.swipeThreshold&&(C>0?$():S()),d=0,c=0,A()}function y(C){return n.texts.goToSlide.replace("{0}",`${C+1}`)}function w(C){if(C.length===0){o.value=0,l.value=0,O();return}o.value>=C.length&&D(0)}return e.watch(()=>n.slides,w,{immediate:!0,deep:!0}),e.watch(o,N),e.watch(l,C=>{C!==o.value&&D(C)}),e.onMounted(A),e.onUnmounted(O),(C,M)=>{var E,W,V;return e.openBlock(),e.createElementBlock("div",{id:n.id,class:e.normalizeClass(["q-carousel",n.class]),tabindex:"0",onMouseenter:R,onMouseleave:L,onKeydown:X},[C.loading?(e.openBlock(),e.createElementBlock("div",Ys,[e.createVNode(e.unref(zt),{width:"100%",height:"100%"}),e.createElementVNode("div",Qs,[e.createVNode(e.unref(zt),{type:"text",width:"40%",height:"24px",class:"q-carousel__skeleton-title"}),e.createVNode(e.unref(zt),{type:"text",width:"60%",height:"16px",class:"q-carousel__skeleton-subtitle"})]),n.showControls?(e.openBlock(),e.createElementBlock("div",Ws,[e.createVNode(e.unref(zt),{type:"icon",width:"40px",height:"40px",class:"q-carousel__skeleton-control"}),e.createVNode(e.unref(zt),{type:"icon",width:"40px",height:"40px",class:"q-carousel__skeleton-control"})])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(E=C.slides)!=null&&E.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:"q-carousel__track",style:e.normalizeStyle(_.value),onTouchstart:J,onTouchmove:q,onTouchend:g},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.slides,(B,T)=>(e.openBlock(),e.createElementBlock("div",{key:B.id,class:e.normalizeClass(["q-carousel__slide",{"q-carousel__slide--active":T===o.value}]),style:e.normalizeStyle(v(B)),onClick:e.withModifiers(()=>x(T),["stop","prevent"])},[B.image?(e.openBlock(),e.createElementBlock("img",{key:0,src:B.image,alt:B.title||`Slide ${T+1}`,class:"q-carousel__image",decoding:"async",loading:"lazy"},null,8,Hs)):e.createCommentVNode("",!0)],14,Us))),128))],36)):(e.openBlock(),e.createElementBlock("div",js,[e.renderSlot(C.$slots,"empty")])),C.slides[o.value]?(e.openBlock(),e.createElementBlock("div",Ks,[(W=C.slides[o.value])!=null&&W.title?(e.openBlock(),e.createElementBlock("h2",Xs,e.toDisplayString(C.slides[o.value].title),1)):e.createCommentVNode("",!0),(V=C.slides[o.value])!=null&&V.subtitle?(e.openBlock(),e.createElementBlock("p",Gs,e.toDisplayString(C.slides[o.value].subtitle),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),C.showIndicators&&C.slides.length>1?(e.openBlock(),e.createElementBlock("ol",Zs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.slides,(B,T)=>(e.openBlock(),e.createElementBlock("li",{key:B.id,class:e.normalizeClass(["q-carousel__indicator",{"q-carousel__indicator--active":T===o.value}]),"data-testid":"carousel-indicator",style:e.normalizeStyle(T===o.value?k.value:{}),"aria-label":y(T),"aria-current":T===o.value,onClick:()=>D(T)},null,14,Js))),128))])):e.createCommentVNode("",!0),C.showControls&&C.slides.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(e.unref(ze),{class:"q-carousel__control q-carousel__control--prev","data-testid":"carousel-prev","aria-label":C.texts.previousText,onClick:S},{default:e.withCtx(()=>[e.createVNode(e.unref(_e),e.mergeProps({class:"q-carousel__control-icon q-carousel__control-icon--prev"},n.icons.back),null,16),e.createElementVNode("span",ei,e.toDisplayString(C.texts.previousText),1)]),_:1},8,["aria-label"]),e.createVNode(e.unref(ze),{class:"q-carousel__control q-carousel__control--next","data-testid":"carousel-next","aria-label":C.texts.nextText,onClick:$},{default:e.withCtx(()=>[e.createVNode(e.unref(_e),e.mergeProps({class:"q-carousel__control-icon q-carousel__control-icon--next"},n.icons.forward),null,16),e.createElementVNode("span",ti,e.toDisplayString(C.texts.nextText),1)]),_:1},8,["aria-label"])],64)):e.createCommentVNode("",!0)],64))],42,Fs)}}})),ai={checked:{icon:"check"},indeterminate:{icon:"minus"}},ri=["checked","disabled","required","aria-readonly"],li=["id","aria-checked","disabled","onKeydown"],oi=e.defineComponent({inheritAttrs:!1,__name:"QCheckbox",props:e.mergeModels({id:{},class:{},label:{},required:{type:Boolean},for:{},labelPlacement:{default:"right"},color:{default:"primary"},size:{default:"regular"},disabled:{type:Boolean},readonly:{type:Boolean},indeterminate:{type:Boolean},icons:{default:()=>ai}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const t=a,n=e.useModel(a,"modelValue"),r=Oe(e.toRef(t,"id")),l=e.useTemplateRef("inputEl"),o=e.computed(()=>["q-checkbox",`q-checkbox--${t.size}`,`q-checkbox--${t.color}`,{"q-checkbox--readonly":t.readonly,"q-checkbox--disabled":t.disabled,"q-checkbox--checked":n.value,"q-checkbox--indeterminate":t.indeterminate},t.class]);function s(){!t.disabled&&!t.readonly&&(n.value=!n.value)}return e.watch(n,i=>{l.value&&(l.value.checked=!!i)}),(i,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value)},[t.label&&t.labelPlacement!=="right"?(e.openBlock(),e.createBlock(e.unref(ma),{key:0,for:e.unref(r),label:t.label,required:t.required},e.createSlots({_:2},[i.$slots.extras?{name:"extras",fn:e.withCtx(()=>[e.renderSlot(i.$slots,"extras")]),key:"0"}:void 0]),1032,["for","label","required"])):e.createCommentVNode("",!0),e.createElementVNode("input",{ref:"inputEl",type:"checkbox",class:"q-checkbox__native-input",checked:n.value,disabled:t.disabled||t.readonly,required:t.required,"aria-readonly":t.readonly,tabindex:"-1","aria-hidden":"true"},null,8,ri),e.createElementVNode("button",e.mergeProps({id:e.unref(r),role:"checkbox",type:"button",class:"q-checkbox__input","data-testid":"checkbox-button","aria-checked":t.indeterminate?"mixed":n.value,disabled:t.disabled||t.readonly},i.$attrs,{onClick:e.withModifiers(s,["prevent"]),onKeydown:[e.withKeys(e.withModifiers(s,["prevent"]),["space"]),d[0]||(d[0]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["enter"]))]}),[n.value||i.indeterminate?(e.openBlock(),e.createBlock(e.unref(_e),e.mergeProps({key:0},n.value?t.icons.checked:t.icons.indeterminate,{class:"q-checkbox__input-icon"}),null,16)):e.createCommentVNode("",!0)],16,li),t.label&&t.labelPlacement==="right"?(e.openBlock(),e.createBlock(e.unref(ma),{key:1,for:e.unref(r),label:t.label,required:t.required},e.createSlots({_:2},[i.$slots.extras?{name:"extras",fn:e.withCtx(()=>[e.renderSlot(i.$slots,"extras")]),key:"0"}:void 0]),1032,["for","label","required"])):e.createCommentVNode("",!0)],2))}}),si=["id"],ii=["for"],ut=ie(e.defineComponent({inheritAttrs:!1,__name:"QLabel",props:{id:{},class:{},label:{},required:{type:Boolean},for:{}},setup(a){const t=a,n=e.computed(()=>["q-label",{"q-label--required":t.required},t.class]);return(r,l)=>(e.openBlock(),e.createElementBlock("div",{id:t.id,class:e.normalizeClass(n.value)},[e.renderSlot(r.$slots,"prepend"),e.createElementVNode("label",e.mergeProps({for:t.for},r.$attrs),[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],16,ii),e.renderSlot(r.$slots,"append")],10,si))}})),di={class:"q-checkbox__label-wrapper"},ci={key:0,class:"q-field__extras"},ui=e.defineComponent({__name:"QCheckboxLabel",props:{id:{},class:{},label:{},required:{type:Boolean},for:{}},setup(a){const t=a;return(n,r)=>(e.openBlock(),e.createElementBlock("div",di,[e.createVNode(e.unref(ut),{class:"q-checkbox__label",for:t.for,required:t.required},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1},8,["for","required"]),n.$slots.extras?(e.openBlock(),e.createElementBlock("div",ci,[e.renderSlot(n.$slots,"extras")])):e.createCommentVNode("",!0)]))}}),fi=ie(oi),ma=ie(ui),mi={selectColor:"Select a color"},pi=["id"],hi={key:0,class:"q-field__prepend"},yi={key:1,class:"q-field__append"},gi={key:1,class:"q-field__extras"},Et=ie(e.defineComponent({inheritAttrs:!1,__name:"QField",props:{id:{},class:{},label:{},required:{type:Boolean},for:{},size:{default:"medium"},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean}},setup(a,{expose:t}){const n=a,r=e.useTemplateRef("field"),l=e.computed(()=>n.required&&!n.readonly&&!n.disabled),o=e.computed(()=>["q-field",`q-field--${n.size}`,{"q-field--readonly":n.readonly,"q-field--disabled":n.disabled,"q-field--required":l.value,"q-field--invalid":n.invalid},n.class]);return t({fieldRef:r}),(s,i)=>(e.openBlock(),e.createElementBlock("div",{id:n.id,class:e.normalizeClass(o.value)},[n.label?(e.openBlock(),e.createBlock(e.unref(ut),{key:0,class:"q-field__label",label:n.label,for:n.for,required:n.required},{prepend:e.withCtx(()=>[e.renderSlot(s.$slots,"label.prepend")]),append:e.withCtx(()=>[e.renderSlot(s.$slots,"label.append")]),_:3},8,["label","for","required"])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"control",{},()=>[e.createElementVNode("div",e.mergeProps({ref:"field",class:"q-field__control"},s.$attrs),[s.$slots.prepend?(e.openBlock(),e.createElementBlock("div",hi,[e.renderSlot(s.$slots,"prepend")])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default"),s.$slots.append?(e.openBlock(),e.createElementBlock("div",yi,[e.renderSlot(s.$slots,"append")])):e.createCommentVNode("",!0)],16)]),s.$slots.extras?(e.openBlock(),e.createElementBlock("div",gi,[e.renderSlot(s.$slots,"extras")])):e.createCommentVNode("",!0)],10,pi))}})),dn={clearValue:"Clear value"},pa={clear:{icon:"close"}},vn=ie(e.defineComponent({__name:"QClearButton",props:{id:{},class:{},icons:{default:()=>pa},texts:{default:()=>dn}},emits:["click"],setup(a,{emit:t}){const n=a,r=t;function l(o){r("click",o)}return(o,s)=>(e.openBlock(),e.createBlock(e.unref(ze),{id:n.id,class:e.normalizeClass(["q-clear-btn",n.class]),"aria-label":n.texts.clearValue,variant:"ghost",color:"neutral",borderless:"",tabindex:"-1",onClick:l},{default:e.withCtx(()=>[e.createVNode(e.unref(_e),e.normalizeProps(e.guardReactiveProps(n.icons.clear)),null,16)]),_:1},8,["id","class","aria-label"]))}})),bi=["id","type","maxlength","required","placeholder","readonly","disabled"],ki=e.defineComponent({inheritAttrs:!1,__name:"QTextField",props:e.mergeModels({id:{},class:{},label:{},required:{type:Boolean},for:{},size:{},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},placeholder:{},maxLength:{},clearable:{type:Boolean},type:{default:"text"},texts:{}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["click:clear"],["update:modelValue"]),setup(a,{expose:t,emit:n}){const r=a,l=n,o=e.useModel(a,"modelValue"),s=e.computed({get:()=>o.value,set:_=>{const k=r.maxLength;o.value=k?_==null?void 0:_.slice(0,k):_}});e.watch(o,_=>s.value=_,{immediate:!0});const i=Oe(e.toRef(r,"id")),d=e.ref(null),c=e.ref(null),m=e.computed(()=>r.readonly||r.disabled?void 0:r.placeholder),u=e.computed(()=>r.clearable&&!r.readonly&&!r.disabled),p=e.computed(()=>u.value&&o.value);function h(_){u.value&&(o.value="",l("click:clear",_))}return t({fieldRef:e.computed(()=>{var _;return(_=d.value)==null?void 0:_.fieldRef}),inputRef:c}),(_,k)=>(e.openBlock(),e.createBlock(e.unref(Et),{ref_key:"fieldRef",ref:d,class:e.normalizeClass(["q-text-field",r.class]),for:e.unref(i),label:r.label,size:r.size,readonly:r.readonly,disabled:r.disabled,required:r.required,invalid:r.invalid},e.createSlots({"label.prepend":e.withCtx(()=>[e.renderSlot(_.$slots,"label.prepend")]),"label.append":e.withCtx(()=>[e.renderSlot(_.$slots,"label.append")]),default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(i),ref_key:"inputRef",ref:c,"onUpdate:modelValue":k[0]||(k[0]=D=>s.value=D),class:"q-text-field__input",type:r.type,maxlength:r.maxLength,required:r.required,placeholder:m.value,readonly:r.readonly,disabled:r.disabled},_.$attrs),null,16,bi),[[e.vModelDynamic,s.value]])]),_:2},[_.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"prepend")]),key:"0"}:void 0,_.$slots.append||p.value?{name:"append",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"append"),p.value?(e.openBlock(),e.createBlock(e.unref(vn),{key:0,"data-testid":"q-text-field__clear-button",texts:r.texts,onClick:h},null,8,["texts"])):e.createCommentVNode("",!0)]),key:"1"}:void 0,_.$slots.extras?{name:"extras",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"extras")]),key:"2"}:void 0]),1032,["class","for","label","size","readonly","disabled","required","invalid"]))}}),wi={...dn},cn=ie(ki),_i=["readonly","disabled","aria-label"],Ci=ie(e.defineComponent({inheritAttrs:!1,__name:"QColorPicker",props:e.mergeModels({id:{},class:{},placeholder:{},label:{},size:{default:"small"},readonly:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},texts:{default:()=>mi}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const t=a,n=e.useModel(a,"modelValue"),r=e.ref(""),l=e.ref(""),o=e.computed(()=>t.readonly||t.disabled);function s(u){return sa(u,!0)}function i(u){const p=u.target;n.value=s(p.value)?p.value:""}function d(){s(l.value)?n.value=l.value:(n.value="",l.value="")}function c(u){u&&s(u)?r.value=u:r.value="#000000"}e.watch(n,c,{immediate:!0});function m(u){u&&s(u)?l.value=u:l.value=""}return e.watch(n,m,{immediate:!0}),(u,p)=>(e.openBlock(),e.createBlock(e.unref(cn),{id:t.id,modelValue:l.value,"onUpdate:modelValue":p[2]||(p[2]=h=>l.value=h),"max-length":7,class:e.normalizeClass(["q-color-picker",t.class]),label:t.label,size:t.size,readonly:t.readonly,disabled:t.disabled,required:t.required,placeholder:t.placeholder,onChange:d},e.createSlots({"label.prepend":e.withCtx(()=>[e.renderSlot(u.$slots,"label.prepend")]),"label.append":e.withCtx(()=>[e.renderSlot(u.$slots,"label.append")]),prepend:e.withCtx(()=>[e.renderSlot(u.$slots,"prepend"),e.withDirectives(e.createElementVNode("input",e.mergeProps({"onUpdate:modelValue":p[0]||(p[0]=h=>r.value=h),type:"color",class:"q-color-picker__swatch",readonly:t.readonly,disabled:o.value,"aria-label":t.texts.selectColor},u.$attrs,{onChange:i,onClick:p[1]||(p[1]=e.withModifiers(()=>{},["stop"]))}),null,16,_i),[[e.vModelText,r.value]])]),_:2},[u.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(u.$slots,"append")]),key:"0"}:void 0,u.$slots.extras?{name:"extras",fn:e.withCtx(()=>[e.renderSlot(u.$slots,"extras")]),key:"1"}:void 0]),1032,["id","modelValue","class","label","size","readonly","disabled","required","placeholder"]))}})),Bi={...dn,noData:"No data available",showOptions:"Show options"},xi={...Mn,...pa},$i=e.defineComponent({__name:"QList",props:{id:{},class:{},modelValue:{},highlighted:{},items:{},groups:{default:()=>[]},selectable:{type:Boolean},multiple:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},itemValue:{default:"key"},itemLabel:{default:"label"}},emits:["update:modelValue","click","mouseenter:item"],setup(a,{expose:t,emit:n}){const r=a,l=n,o=e.ref(!1),s=e.computed(()=>i.value.length>1?"div":"ul"),i=e.computed(()=>r.groups.length?r.groups.filter(y=>{var w;return(w=r.items)==null?void 0:w.some(C=>C.group===y.id)}):[{id:"",title:""}]),{active:d}=rn({active:e.toRef(r,"modelValue"),required:e.toRef(r,"required"),multiple:e.toRef(r,"multiple")}),c=e.ref(null),m=e.ref(null);function u(y){l("click",y)}function p(y){l("mouseenter:item",y)}function h(){o.value=!0}function _(){o.value=!1}function k(y){var M,E;if(!r.items||(M=c.value)!=null&&M.contains(y.relatedTarget))return;let w=-1;r.multiple?((E=d.value)==null?void 0:E.length)>0&&(w=r.items.findIndex(W=>d.value.includes(W[r.itemValue]))):d.value&&(w=r.items.findIndex(W=>W[r.itemValue]===d.value)),w===-1&&(w=N());const C=o.value;v(w,C)}const D=e.ref("");let $;function S(y){var w;switch(window.clearTimeout($),["ArrowDown","ArrowUp","Home","End"].includes(y.key)&&y.preventDefault(),y.key){case"ArrowDown":x("next");break;case"ArrowUp":x("prev");break;case"Home":x("first");break;case"End":x("last");break}if(/^[a-z]$/i.test(y.key)){D.value+=y.key.toLowerCase();const C=((w=r.items)==null?void 0:w.length)||0;for(let M=0;M<C;M++)if(r.items[M][r.itemLabel].toLowerCase().startsWith(D.value)){v(M);break}y.preventDefault(),y.stopPropagation()}$=window.setTimeout(function(){D.value=""},500)}function x(y){switch(y){case"next":case"prev":v(X(y));break;case"first":v(N());break;case"last":v(R());break}}function v(y,w=!1){var M;(M=I()[y])==null||M.focus({preventScroll:w})}function I(){var w;const y=(w=c.value)==null?void 0:w.querySelectorAll("li");return y?Array.from(y):[]}function A(y){return I()[y]}function O(){return I().indexOf(document.activeElement)}function N(){const y=I(),w=y.find(C=>q(C));return w?y.indexOf(w):-1}function R(){const y=I(),w=[...y].reverse().find(C=>q(C));return w?y.indexOf(w):-1}function L(y,w,C){return w==="prev"&&y<=0||w==="next"&&y===C.length-1}function X(y){const w=O();return J(w,y)}function J(y,w){const C=I();if(L(y,w,C))return y;let M=y+(w==="next"?1:-1);for(;!q(C[M]);){if(L(M,w,C))return y;M+=w==="next"?1:-1}return M}function q(y){return y.tabIndex===-2}function g(y){var w;return y?(w=r.items)==null?void 0:w.filter(C=>C.group===y):r.items}return e.watch(d,y=>{l("update:modelValue",y)}),t({getItem:A,getActiveItemIndex:O,getAdjacentItemIndex:J,getFirstFocusableItemIndex:N,getLastFocusableItemIndex:R}),(y,w)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value),{id:r.id,ref_key:"listRef",ref:c,class:e.normalizeClass(["q-list",{"q-list--disabled":r.disabled},r.class]),role:"listbox",tabindex:r.disabled?-1:0,onFocus:k,onMousedown:h,onMouseup:_,onKeydown:S},{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(C,M)=>(e.openBlock(),e.createBlock(e.unref(qr),{id:C.id,key:C.id,title:i.value.length===1?void 0:C.title},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g(C.id),(E,W)=>(e.openBlock(),e.createBlock(e.unref(Ar),{key:E[r.itemValue],ref_for:!0,ref_key:"listItemsRef",ref:m,value:E[r.itemValue],label:E[r.itemLabel],description:E.description,icon:E.icon,disabled:r.disabled||C.disabled||E.disabled,highlighted:r.highlighted===E[r.itemValue],selectable:r.selectable||r.multiple||E.selectable,onClick:()=>u(E[r.itemValue]),onMouseenter:()=>p(E[r.itemValue])},{append:e.withCtx(()=>{var V,B;return[e.renderSlot(y.$slots,"item.append",{item:E,element:(B=(V=m.value)==null?void 0:V[W+M*i.value.length])==null?void 0:B.$el})]}),default:e.withCtx(()=>{var V,B;return[e.renderSlot(y.$slots,"item",{item:E,element:(B=(V=m.value)==null?void 0:V[W+M*i.value.length])==null?void 0:B.$el})]}),_:2},1032,["value","label","description","icon","disabled","highlighted","selectable","onClick","onMouseenter"]))),128))]),_:2},1032,["id","title"]))),128))])]),_:3},40,["id","class","tabindex"]))}}),Di={check:{icon:"check"},description:{icon:"information-outline"}},Si=["id","data-key","tabindex","aria-label","aria-selected"],Ti={class:"q-list-item__container"},Ei={class:"q-list-item__content"},Mi={key:0,class:"q-list-item__description"},Ni={key:0,class:"q-list-item__check-container"},Vi=e.defineComponent({__name:"QListItem",props:e.mergeModels({value:{},label:{},icon:{},description:{},selectable:{type:Boolean},highlighted:{type:Boolean},disabled:{type:Boolean},icons:{default:()=>Di}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["click"],["update:modelValue"]),setup(a,{emit:t}){const n=a,r=t,l=e.useModel(a,"modelValue"),o=Oe(),s=En(n.value);if(!s)throw new Error("QListItem: Failed to retrieve group item. Ensure the component is used within a QList context.");function i(){n.disabled||(r("click"),n.selectable&&(s==null||s.toggle()))}function d(c){c.key==="Tab"&&i(),(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),c.stopPropagation(),i())}return e.watch(s.isActive,c=>{l.value=c},{immediate:!0}),(c,m)=>(e.openBlock(),e.createElementBlock("li",{id:e.unref(o),"data-key":n.value,role:"option",tabindex:n.disabled?void 0:-2,class:e.normalizeClass(["q-list-item",{"q-list-item--selected":l.value,"q-list-item--selectable":n.selectable,"q-list-item--disabled":n.disabled,"q-list-item--highlighted":n.highlighted}]),"aria-label":n.label,"aria-selected":n.disabled?void 0:l.value,onKeydown:d,onClick:e.withModifiers(i,["stop","prevent"])},[e.renderSlot(c.$slots,"prepend"),e.createElementVNode("div",Ti,[e.createElementVNode("div",Ei,[e.renderSlot(c.$slots,"default",{},()=>[n.icon?(e.openBlock(),e.createBlock(e.unref(_e),e.normalizeProps(e.mergeProps({key:0},n.icon)),null,16)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.label),1)])]),n.description?(e.openBlock(),e.createElementBlock("div",Mi,[e.createVNode(e.unref(_e),e.normalizeProps(e.guardReactiveProps(n.icons.description)),null,16),e.createElementVNode("span",null,e.toDisplayString(n.description),1)])):e.createCommentVNode("",!0)]),e.renderSlot(c.$slots,"append"),n.selectable?(e.openBlock(),e.createElementBlock("div",Ni,[l.value?(e.openBlock(),e.createBlock(e.unref(_e),e.mergeProps({key:0},n.icons.check,{class:"q-list-item__check"}),null,16)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],42,Si))}}),vi=["data-key","aria-labelledby"],Pi=["id"],Ai=e.defineComponent({__name:"QListItemGroup",props:{id:{},title:{}},setup(a){const t=a,n=Oe();return(r,l)=>(e.openBlock(),e.createElementBlock("ul",{class:"q-list-item-group",role:"group","data-key":t.id,"aria-labelledby":t.title?e.unref(n):void 0},[t.title?(e.openBlock(),e.createElementBlock("li",{key:0,id:e.unref(n),class:"q-list-item-group__title",role:"presentation"},e.toDisplayString(t.title),9,Pi)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default")],8,vi))}}),Pn=ie($i),Ar=ie(Vi),qr=ie(Ai),Rr=Symbol("DismissibleLayer");function qi(){const a=e.ref([]);function t(l){a.value.push(l)}function n(l){const o=a.value.indexOf(l);o!==-1&&a.value.splice(o,1)}function r(l){return a.value[a.value.length-1]===l}return{layers:a,register:t,unregister:n,isTop:r}}function Ri(a){const t=e.inject(Rr);if(!t)throw new Error("useDismissibleLayerStackItem must be used within a dismissible layer stack context.");return{register:()=>t.register(a),unregister:()=>t.unregister(a),isTop:()=>t.isTop(a)}}const Oi={ref:"layer"},Or=ie(e.defineComponent({__name:"QDismissibleLayer",emits:["escape-key-down","pointer-down-outside","focus-outside","interact-outside","dismiss"],setup(a,{emit:t}){const n=t,r=e.useTemplateRef("layer"),l=e.useId(),o=Ri(l);let s=[];function i(u){u.key==="Escape"&&(o!=null&&o.isTop())&&(n("escape-key-down",u),u.defaultPrevented||n("dismiss",u))}function d(u){if(!r.value)return;const p=u.target;if(!r.value.contains(p)&&(o!=null&&o.isTop())){const h=new CustomEvent("focus-outside",{bubbles:!1,cancelable:!0,detail:{originalEvent:u}});n("focus-outside",h),n("interact-outside",h),h.defaultPrevented||n("dismiss",h)}}function c(u){if(!r.value||!(o!=null&&o.isTop()))return;const p=u.target;if(!r.value.contains(p)){const h=new CustomEvent("pointer-down-outside",{bubbles:!1,cancelable:!0,detail:{originalEvent:u}});n("pointer-down-outside",h),n("interact-outside",h),h.defaultPrevented||n("dismiss",h)}}function m(){["mousedown","touchstart"].forEach(p=>{document.addEventListener(p,c,{passive:!0,capture:!0}),s.push(()=>{document.removeEventListener(p,c,{capture:!0})})})}return e.onMounted(()=>{o==null||o.register(),document.addEventListener("keydown",i),s.push(()=>{document.removeEventListener("keydown",i)}),document.addEventListener("focusin",d),s.push(()=>{document.removeEventListener("focusin",d)}),m()}),e.onUnmounted(()=>{o==null||o.unregister(),s.forEach(u=>u()),s=[]}),(u,p)=>(e.openBlock(),e.createElementBlock("div",Oi,[e.renderSlot(u.$slots,"default")],512))}})),Ft="data-scroll-locked",ha="right-scroll-bar-position",ya="width-before-scroll-bar",Ii="with-scroll-bars-hidden",Li="--removed-body-scroll-bar-size",zi={left:0,top:0,right:0,gap:0},ga=a=>parseInt(a||"",10)||0,Fi=a=>{const t=window.getComputedStyle(document.body),n=t[a==="padding"?"paddingLeft":"marginLeft"],r=t[a==="padding"?"paddingTop":"marginTop"],l=t[a==="padding"?"paddingRight":"marginRight"];return[ga(n),ga(r),ga(l)]},Yi=(a="margin")=>{if(typeof window>"u")return zi;const t=Fi(a),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}};function Qi(){return document?document.createElement("style"):null}function Wi(a,t){a.appendChild(document.createTextNode(t))}function Ui(a){(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}const Hi=()=>{let a=0,t=null;return{add:n=>{a===0&&(t=Qi())&&(Wi(t,n),Ui(t)),a++},remove:()=>{var n;a--,!a&&t&&((n=t.parentNode)==null||n.removeChild(t),t=null)}}},ji=ie(e.defineComponent({__name:"QRemoveScrollBar",props:{gapMode:{default:"margin"},noRelative:{type:Boolean},noImportant:{type:Boolean}},setup(a){const t=a,n=Hi(),r=()=>{const o=parseInt(document.body.getAttribute(Ft)||"0",10);return isFinite(o)?o:0},l=({left:o,top:s,right:i,gap:d},c,m="margin",u)=>`
|
|
11
11
|
.${Ii} {
|
|
12
12
|
overflow: hidden ${u};
|
|
13
13
|
padding-right: ${d}px ${u};
|
package/dist/ui.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
!function(e,t){"object"==typeof exports&&typeof module<"u"?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=typeof globalThis<"u"?globalThis:e||self)["Quidgest UI"]={},e.Vue)}(this,(function(e,t){"use strict"
|
|
2
2
|
var a=Object.defineProperty,n=(e,t,n)=>((e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n)
|
|
3
3
|
/*!
|
|
4
|
-
* Quidgest UI v0.16.
|
|
4
|
+
* Quidgest UI v0.16.45
|
|
5
5
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
6
6
|
* Released under the MIT License.
|
|
7
7
|
*/
|
|
@@ -137,7 +137,7 @@ return["small","medium","large"].includes(a.size)||(n["--q-avatar-size"]=a.size)
|
|
|
137
137
|
return(e,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["q-avatar",n.value,o.value]),style:t.normalizeStyle(r.value)},[e.src?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.src,alt:e.alt,class:"q-avatar-img"},null,8,Ne)):e.initials?(t.openBlock(),t.createElementBlock("span",Te,t.toDisplayString(e.initials.slice(0,2).toUpperCase()),1)):t.renderSlot(e.$slots,"fallback",{key:2})],6))}})),qe={remove:{icon:"close"}},Ae={removeText:"Remove"},Re=["id","role","tabindex","onKeydown"],ze={key:0,class:"q-badge__underlay"},Le={class:"q-badge__content"},Oe=B(t.defineComponent({__name:"QBadge",props:{id:{},class:{},variant:{default:"tonal"},color:{default:"primary"},pill:{type:Boolean},size:{default:"default"},disabled:{type:Boolean},removable:{type:Boolean},icons:{default:()=>qe},texts:{default:()=>Ae}},emits:["click:remove"],setup(e,{emit:a}){const n=e,o=a,l=t.useAttrs(),r=t.computed((()=>!!l.onClick)),i=t.computed((()=>{const e=s.value?`q-badge--${n.color}`:void 0,t="default"!==n.size?`q-badge--${n.size}`:void 0
|
|
138
138
|
return["q-badge",`q-badge--${n.variant}`,e,t,{"q-badge--pill":n.pill,"q-badge--disabled":n.disabled,"q-badge--clickable":r.value&&!n.disabled},n.class]})),{isUtilityColor:s,style:u}=j(t.toRef(n,"color")),d=t.computed((()=>{var e,t,a,n
|
|
139
139
|
if(!s.value)return{"--q-badge-main-color":null==(e=u.value)?void 0:e.mainColor,"--q-badge-on-main-color":null==(t=u.value)?void 0:t.onMainColor,"--q-badge-hover-color":null==(a=u.value)?void 0:a.hoverColor,"--q-badge-on-hover-color":null==(n=u.value)?void 0:n.onHoverColor}}))
|
|
140
|
-
function c(e){e.stopImmediatePropagation()}function p(){o("click:remove")}return(e,a)=>(t.openBlock(),t.createElementBlock("span",{id:n.id,class:t.normalizeClass(i.value),role:r.value?"button":"presentation",style:t.normalizeStyle(d.value),tabindex:r.value?0:void 0,onKeydown:t.withKeys(t.withModifiers(c,["stop","prevent"]),["enter"])},["tonal"===n.variant?(t.openBlock(),t.createElementBlock("div",ze)):t.createCommentVNode("",!0),t.createElementVNode("div",Le,[t.renderSlot(e.$slots,"default"),n.removable?(t.openBlock(),t.createBlock(t.unref(X),{key:0,class:"q-badge__remove",pill:"",borderless:"",tabindex:"0",color:n.color,"aria-label":n.texts.removeText,disabled:n.disabled,onClick:p},{default:t.withCtx((()=>[t.createVNode(t.unref(ve),t.normalizeProps(t.guardReactiveProps(n.icons.remove)),null,16)])),_:1},8,["color","aria-label","disabled"])):t.createCommentVNode("",!0)])],46,Re))}})),Ie=["id"],Fe=B(t.defineComponent({__name:"QBadgeIndicator",props:{id:{},class:{},content:{},color:{default:"highlight"},placement:{default:"top-right"}},setup(e){const a=e,n=t.useSlots(),o=t.computed((()=>!a.content&&!n.content)),l=t.computed((()=>["q-badge-indicator",`q-badge-indicator--${a.placement}`,{"q-badge-indicator--dot":o.value}]))
|
|
140
|
+
function c(e){e.stopImmediatePropagation()}function p(){o("click:remove")}return(e,a)=>(t.openBlock(),t.createElementBlock("span",{id:n.id,class:t.normalizeClass(i.value),role:r.value?"button":"presentation",style:t.normalizeStyle(d.value),tabindex:r.value?0:void 0,onKeydown:t.withKeys(t.withModifiers(c,["stop","prevent"]),["enter"])},["tonal"===n.variant?(t.openBlock(),t.createElementBlock("div",ze)):t.createCommentVNode("",!0),t.createElementVNode("div",Le,[t.renderSlot(e.$slots,"default"),n.removable?(t.openBlock(),t.createBlock(t.unref(X),{key:0,class:"q-badge__remove",pill:"",borderless:"",tabindex:"0",color:n.color,"aria-label":n.texts.removeText,title:n.texts.removeText,disabled:n.disabled,onClick:p},{default:t.withCtx((()=>[t.createVNode(t.unref(ve),t.normalizeProps(t.guardReactiveProps(n.icons.remove)),null,16)])),_:1},8,["color","aria-label","title","disabled"])):t.createCommentVNode("",!0)])],46,Re))}})),Ie=["id"],Fe=B(t.defineComponent({__name:"QBadgeIndicator",props:{id:{},class:{},content:{},color:{default:"highlight"},placement:{default:"top-right"}},setup(e){const a=e,n=t.useSlots(),o=t.computed((()=>!a.content&&!n.content)),l=t.computed((()=>["q-badge-indicator",`q-badge-indicator--${a.placement}`,{"q-badge-indicator--dot":o.value}]))
|
|
141
141
|
return(e,n)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(["q-badge-indicator__wrapper",a.class])},[t.renderSlot(e.$slots,"default"),t.createVNode(t.unref(Oe),{pill:"",variant:"bold",class:t.normalizeClass(l.value),color:a.color},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"content",{},(()=>[t.createTextVNode(t.toDisplayString(a.content),1)]))])),_:3},8,["class","color"])],10,Ie))}})),Ye=["id"],Qe=B(t.defineComponent({__name:"QButtonGroup",props:{id:{},class:{},block:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean},disabled:{type:Boolean}},setup(e){const a=e
|
|
142
142
|
return c({QButton:{disabled:t.toRef(a,"disabled"),borderless:t.toRef(a,"borderless")}}),(e,n)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(["q-button-group",{"q-button-group--elevated":a.elevated,"q-button-group--block":a.block},a.class]),role:"group"},[t.renderSlot(e.$slots,"default")],10,Ye))}})),He={back:{icon:"chevron-left"},forward:{icon:"chevron-right"}},Ue={previousText:"Previous",nextText:"Next",goToSlide:"Go to slide {0}"},je=["id"],We=B(t.defineComponent({__name:"QSkeletonLoader",props:{id:{},class:{},width:{},height:{},type:{}},setup(e){const a=e,n=t.computed((()=>a.type?`q-skeleton-loader--${a.type}`:void 0)),o=t.computed((()=>({width:"number"==typeof a.width?`${a.width}px`:a.width,height:"number"==typeof a.height?`${a.height}px`:a.height})))
|
|
143
143
|
return(e,l)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(["q-skeleton-loader",n.value,a.class]),style:t.normalizeStyle(o.value)},l[0]||(l[0]=[t.createElementVNode("div",{class:"q-skeleton-loader__bone"},null,-1)]),14,je))}})),Ge=["id"],Ke={key:0,class:"q-carousel__skeleton"},Xe={class:"q-carousel__skeleton-caption"},Ze={key:0,class:"q-carousel__skeleton-controls"},Je=["onClick"],et=["src","alt"],tt={key:1,class:"q-carousel__empty-container"},at={key:2,class:"q-carousel__caption-global"},nt={key:0,class:"q-carousel__title"},ot={key:1,class:"q-carousel__subtitle"},lt={key:3,class:"q-carousel__indicators"},rt=["aria-label","aria-current","onClick"],it={class:"q-carousel__sr-only"},st={class:"q-carousel__sr-only"},ut=B(t.defineComponent({__name:"QCarousel",props:t.mergeModels({id:{},class:{},slides:{default:()=>[]},showIndicators:{type:Boolean},showControls:{type:Boolean},autoCycleInterval:{default:5e3},autoCyclePause:{default:"hover"},ride:{default:"carousel"},swipeThreshold:{default:50},wrap:{type:Boolean,default:!0},animationDuration:{default:500},loading:{type:Boolean},icons:{default:()=>He},texts:{default:()=>Ue}},{currentSlide:{default:0},currentSlideModifiers:{}}),emits:t.mergeModels(["slide:before-change","slide:after-change","slide:click"],["update:currentSlide"]),setup(e,{emit:a}){const n=e,o=a,l=t.useModel(e,"currentSlide"),r=t.ref(0)
|
package/dist/ui.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"AA6BA;AAmHC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAU1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAiF3C,iBAAS,cAAc;WAgFT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;yFASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, useAttrs as k, computed as r, toRef as h, createElementBlock as c, openBlock as n, withKeys as x, normalizeStyle as B, normalizeClass as z, withModifiers as
|
|
1
|
+
import { defineComponent as y, useAttrs as k, computed as r, toRef as h, createElementBlock as c, openBlock as n, withKeys as x, normalizeStyle as B, normalizeClass as z, withModifiers as T, createCommentVNode as u, createElementVNode as w, renderSlot as E, createBlock as N, unref as m, withCtx as S, createVNode as V, normalizeProps as $, guardReactiveProps as A } from "vue";
|
|
2
2
|
import { DEFAULT_TEXTS as I, DEFAULT_ICONS as K } from "./constants.js";
|
|
3
3
|
import { QButton as P } from "../QButton/index.js";
|
|
4
4
|
import { QIcon as Q } from "../QIcon/index.js";
|
|
@@ -22,26 +22,26 @@ const U = ["id", "role", "tabindex", "onKeydown"], D = {
|
|
|
22
22
|
},
|
|
23
23
|
emits: ["click:remove"],
|
|
24
24
|
setup(b, { emit: v }) {
|
|
25
|
-
const e = b, p = v, f = k(),
|
|
26
|
-
const o = i.value ? `q-badge--${e.color}` : void 0,
|
|
25
|
+
const e = b, p = v, f = k(), a = r(() => !!f.onClick), _ = r(() => {
|
|
26
|
+
const o = i.value ? `q-badge--${e.color}` : void 0, t = e.size !== "default" ? `q-badge--${e.size}` : void 0;
|
|
27
27
|
return [
|
|
28
28
|
"q-badge",
|
|
29
29
|
`q-badge--${e.variant}`,
|
|
30
30
|
o,
|
|
31
|
-
|
|
31
|
+
t,
|
|
32
32
|
{
|
|
33
33
|
"q-badge--pill": e.pill,
|
|
34
34
|
"q-badge--disabled": e.disabled,
|
|
35
|
-
"q-badge--clickable":
|
|
35
|
+
"q-badge--clickable": a.value && !e.disabled
|
|
36
36
|
},
|
|
37
37
|
e.class
|
|
38
38
|
];
|
|
39
39
|
}), { isUtilityColor: i, style: l } = R(h(e, "color")), C = r(() => {
|
|
40
|
-
var o,
|
|
40
|
+
var o, t, s, d;
|
|
41
41
|
if (!i.value)
|
|
42
42
|
return {
|
|
43
43
|
"--q-badge-main-color": (o = l.value) == null ? void 0 : o.mainColor,
|
|
44
|
-
"--q-badge-on-main-color": (
|
|
44
|
+
"--q-badge-on-main-color": (t = l.value) == null ? void 0 : t.onMainColor,
|
|
45
45
|
"--q-badge-hover-color": (s = l.value) == null ? void 0 : s.hoverColor,
|
|
46
46
|
"--q-badge-on-hover-color": (d = l.value) == null ? void 0 : d.onHoverColor
|
|
47
47
|
};
|
|
@@ -52,17 +52,17 @@ const U = ["id", "role", "tabindex", "onKeydown"], D = {
|
|
|
52
52
|
function q() {
|
|
53
53
|
p("click:remove");
|
|
54
54
|
}
|
|
55
|
-
return (o,
|
|
55
|
+
return (o, t) => (n(), c("span", {
|
|
56
56
|
id: e.id,
|
|
57
57
|
class: z(_.value),
|
|
58
|
-
role:
|
|
58
|
+
role: a.value ? "button" : "presentation",
|
|
59
59
|
style: B(C.value),
|
|
60
|
-
tabindex:
|
|
61
|
-
onKeydown: x(
|
|
60
|
+
tabindex: a.value ? 0 : void 0,
|
|
61
|
+
onKeydown: x(T(g, ["stop", "prevent"]), ["enter"])
|
|
62
62
|
}, [
|
|
63
63
|
e.variant === "tonal" ? (n(), c("div", D)) : u("v-if", !0),
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
w("div", F, [
|
|
65
|
+
E(o.$slots, "default"),
|
|
66
66
|
e.removable ? (n(), N(m(P), {
|
|
67
67
|
key: 0,
|
|
68
68
|
class: "q-badge__remove",
|
|
@@ -71,6 +71,7 @@ const U = ["id", "role", "tabindex", "onKeydown"], D = {
|
|
|
71
71
|
tabindex: "0",
|
|
72
72
|
color: e.color,
|
|
73
73
|
"aria-label": e.texts.removeText,
|
|
74
|
+
title: e.texts.removeText,
|
|
74
75
|
disabled: e.disabled,
|
|
75
76
|
onClick: q
|
|
76
77
|
}, {
|
|
@@ -85,7 +86,7 @@ const U = ["id", "role", "tabindex", "onKeydown"], D = {
|
|
|
85
86
|
]),
|
|
86
87
|
_: 1
|
|
87
88
|
/* STABLE */
|
|
88
|
-
}, 8, ["color", "aria-label", "disabled"])) : u("v-if", !0)
|
|
89
|
+
}, 8, ["color", "aria-label", "title", "disabled"])) : u("v-if", !0)
|
|
89
90
|
])
|
|
90
91
|
], 46, U));
|
|
91
92
|
}
|