@validol4ik/uikit 0.4.3 → 0.4.5

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),u=require("./focusout-DzWGke-4.cjs"),l=require("./index-DxgUi3sN.cjs");function d(e){const t=document.createElement("textarea");t.value=e,t.contentEditable="true",t.style.position="fixed";const n=()=>{};u.addFocusout(n),document.body.appendChild(t),t.focus(),t.select();const r=document.execCommand("copy");return t.remove(),u.removeFocusout(n),r}function s(e){return navigator.clipboard!==void 0?navigator.clipboard.writeText(e):new Promise((t,n)=>{const r=d(e);r?t(!0):n(r)})}function p(){const e=o.ref(!u.isRuntimeSsrPreHydration.value);return e.value===!1&&o.onMounted(()=>{e.value=!0}),{isHydrated:e}}const f=l.createComponent({name:"QNoSsr",props:{tag:{type:String,default:"div"},placeholder:String},setup(e,{slots:t}){const{isHydrated:n}=p();return()=>{if(n.value===!0){const a=l.hSlot(t.default);return a===void 0?a:a.length>1?o.h(e.tag,{},a):a[0]}const r={class:"q-no-ssr-placeholder"},c=l.hSlot(t.placeholder);if(c!==void 0)return c.length>1?o.h(e.tag,r,c):c[0];if(e.placeholder!==void 0)return o.h(e.tag,r,e.placeholder)}}}),i={COPY:"copy_o",COPIED:"copied_o"},h=o.defineComponent({__name:"AppButtonCopy",props:{text:{},size:{},transparent:{type:Boolean,default:!0},flat:{type:Boolean},rounded:{type:Boolean},color:{default:l.COLORS.INFO},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{},download:{}},setup(e){const t=e,n=o.ref(i.COPY),r=()=>{n.value=i.COPIED,setTimeout(()=>{n.value=i.COPY},2e3)},c=()=>{s(t.text).then(r).catch(a=>{console.log(a)})};return(a,m)=>(o.openBlock(),o.createBlock(o.unref(f),null,{default:o.withCtx(()=>[o.createVNode(l.AppButton,o.mergeProps(t,{"icon-middle":n.value,onClick:o.withModifiers(c,["prevent"])}),null,16,["icon-middle"])]),_:1}))}});exports.default=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),u=require("./focusout-DzWGke-4.cjs"),l=require("./index-TqkCOfYg.cjs");function d(e){const t=document.createElement("textarea");t.value=e,t.contentEditable="true",t.style.position="fixed";const n=()=>{};u.addFocusout(n),document.body.appendChild(t),t.focus(),t.select();const r=document.execCommand("copy");return t.remove(),u.removeFocusout(n),r}function s(e){return navigator.clipboard!==void 0?navigator.clipboard.writeText(e):new Promise((t,n)=>{const r=d(e);r?t(!0):n(r)})}function p(){const e=o.ref(!u.isRuntimeSsrPreHydration.value);return e.value===!1&&o.onMounted(()=>{e.value=!0}),{isHydrated:e}}const f=l.createComponent({name:"QNoSsr",props:{tag:{type:String,default:"div"},placeholder:String},setup(e,{slots:t}){const{isHydrated:n}=p();return()=>{if(n.value===!0){const a=l.hSlot(t.default);return a===void 0?a:a.length>1?o.h(e.tag,{},a):a[0]}const r={class:"q-no-ssr-placeholder"},c=l.hSlot(t.placeholder);if(c!==void 0)return c.length>1?o.h(e.tag,r,c):c[0];if(e.placeholder!==void 0)return o.h(e.tag,r,e.placeholder)}}}),i={COPY:"copy_o",COPIED:"copied_o"},h=o.defineComponent({__name:"AppButtonCopy",props:{text:{},size:{},transparent:{type:Boolean,default:!0},flat:{type:Boolean},rounded:{type:Boolean},color:{default:l.COLORS.INFO},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{},download:{}},setup(e){const t=e,n=o.ref(i.COPY),r=()=>{n.value=i.COPIED,setTimeout(()=>{n.value=i.COPY},2e3)},c=()=>{s(t.text).then(r).catch(a=>{console.log(a)})};return(a,m)=>(o.openBlock(),o.createBlock(o.unref(f),null,{default:o.withCtx(()=>[o.createVNode(l.AppButton,o.mergeProps(t,{"icon-middle":n.value,onClick:o.withModifiers(c,["prevent"])}),null,16,["icon-middle"])]),_:1}))}});exports.default=h;
@@ -1,6 +1,6 @@
1
1
  import { ref as d, onMounted as s, h as c, defineComponent as u, openBlock as p, createBlock as f, unref as m, withCtx as h, createVNode as y, mergeProps as v, withModifiers as C } from "vue";
2
2
  import { r as g, a as b, i as B } from "./focusout-DjvPXP_b.js";
3
- import { c as O, h as i, A as S, C as _ } from "./index-BMsh_Kya.js";
3
+ import { c as O, h as i, A as S, C as _ } from "./index-DYNR39SC.js";
4
4
  function x(e) {
5
5
  const t = document.createElement("textarea");
6
6
  t.value = e, t.contentEditable = "true", t.style.position = "fixed";
@@ -1,6 +1,6 @@
1
1
  import { ref as I, computed as r, h as c, getCurrentInstance as ae, toRaw as Te, onBeforeUpdate as ol, inject as Ol, watch as J, onMounted as nl, onBeforeUnmount as Be, nextTick as ve, onDeactivated as ul, onActivated as il, Transition as Ct, onBeforeMount as Ml, onUpdated as Ll, defineComponent as $l, openBlock as ue, createElementBlock as fe, normalizeClass as Ge, toDisplayString as De, createCommentVNode as Oe, createVNode as je, unref as Hl, withCtx as ge, mergeProps as Pl, createBlock as $t, createElementVNode as mt, createTextVNode as gt, Fragment as et, withModifiers as Dl } from "vue";
2
- import { u as al, s as oe, a as rl, h as be, b as sl, c as ye, Q as _e, d as jl, i as cl, e as Kl, f as Nl, p as he, g as Ql, j as Ul, R as Wl, k as Xl, l as qe, m as Yl, n as Zl, o as Jl, q as Me, r as Gl, S as eo, _ as to } from "./index-BMsh_Kya.js";
3
- import { u as at, a as rt, b as lo, c as dl, r as oo, g as no, d as uo, h as io, e as ao, f as ro, i as so, j as co, k as fo, l as Ht, m as vo, n as mo, o as go, p as ho, Q as po } from "./QMenu-CLtUMjkJ.js";
2
+ import { u as at, a as al, s as oe, b as rl, h as be, d as sl, e as rt, c as ye, Q as _e, f as jl, i as cl, g as Kl, j as Nl, p as he, k as Ql, l as Ul, R as Wl, m as Xl, n as qe, o as Yl, q as Zl, r as Jl, t as Me, v as Gl, S as eo, _ as to } from "./index-DYNR39SC.js";
3
+ import { u as lo, a as dl, r as oo, g as no, b as uo, h as io, c as ao, d as ro, e as so, f as co, i as fo, j as Ht, k as vo, l as mo, m as go, n as ho, Q as po } from "./QMenu-4YcWS85F.js";
4
4
  import { b as bo, c as xe, r as Pt, a as yo } from "./focusout-DjvPXP_b.js";
5
5
  function So(e, l) {
6
6
  const t = I(null), n = r(() => e.disable === !0 ? null : c("span", {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-DxgUi3sN.cjs"),D=require("./QMenu-CwSwXENo.cjs"),ne=require("./focusout-DzWGke-4.cjs");function Gt(e,o){const l=t.ref(null),u=t.computed(()=>e.disable===!0?null:t.h("span",{ref:l,class:"no-outline",tabindex:-1}));function d(i){const r=o.value;i!==void 0&&i.type.indexOf("key")===0?r!==null&&document.activeElement!==r&&r.contains(document.activeElement)===!0&&r.focus():l.value!==null&&(i===void 0||r!==null&&r.contains(i.target)===!0)&&l.value.focus()}return{refocusTargetEl:u,refocusTarget:d}}const At={name:String};function el(e={}){return(o,l,u)=>{o[l](t.h("input",{class:"hidden"+(u||""),...e.value}))}}function tl(e){return t.computed(()=>e.name||e.for)}const ll={xs:30,sm:35,md:40,lg:50,xl:60},ol={...D.useDarkProps,...c.useSizeProps,...At,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},nl=["update:modelValue"];function ul(e,o){const{props:l,slots:u,emit:d,proxy:i}=t.getCurrentInstance(),{$q:r}=i,g=D.useDark(l,r),b=t.ref(null),{refocusTargetEl:V,refocusTarget:f}=Gt(l,b),C=c.useSize(l,ll),k=t.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),s=t.computed(()=>{const x=t.toRaw(l.val);return k.value===!0?l.modelValue.findIndex(W=>t.toRaw(W)===x):-1}),y=t.computed(()=>k.value===!0?s.value!==-1:t.toRaw(l.modelValue)===t.toRaw(l.trueValue)),q=t.computed(()=>k.value===!0?s.value===-1:t.toRaw(l.modelValue)===t.toRaw(l.falseValue)),S=t.computed(()=>y.value===!1&&q.value===!1),L=t.computed(()=>l.disable===!0?-1:l.tabindex||0),j=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(g.value===!0?` q-${e}--dark`:"")+(l.dense===!0?` q-${e}--dense`:"")+(l.leftLabel===!0?" reverse":"")),_=t.computed(()=>{const x=y.value===!0?"truthy":q.value===!0?"falsy":"indet",W=l.color!==void 0&&(l.keepColor===!0||q.value!==!0)?` text-${l.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${x}${W}`}),T=t.computed(()=>{const x={type:"checkbox"};return l.name!==void 0&&Object.assign(x,{".checked":y.value,"^checked":y.value===!0?"checked":void 0,name:l.name,value:k.value===!0?l.val:l.trueValue}),x}),Y=el(T),B=t.computed(()=>{const x={tabindex:L.value,role:"checkbox","aria-label":l.label,"aria-checked":S.value===!0?"mixed":y.value===!0?"true":"false"};return l.disable===!0&&(x["aria-disabled"]="true"),x});function M(x){x!==void 0&&(c.stopAndPrevent(x),f(x)),l.disable!==!0&&d("update:modelValue",P(),x)}function P(){if(k.value===!0){if(y.value===!0){const x=l.modelValue.slice();return x.splice(s.value,1),x}return l.modelValue.concat([l.val])}if(y.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(q.value===!0){if(l.toggleOrder==="ft"||l.toggleIndeterminate===!1)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function ee(x){(x.keyCode===13||x.keyCode===32)&&c.stopAndPrevent(x)}function Q(x){(x.keyCode===13||x.keyCode===32)&&M(x)}const te=o(y,S);return Object.assign(i,{toggle:M}),()=>{const x=te();l.disable!==!0&&Y(x,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const W=[t.h("div",{class:_.value,style:C.value,"aria-hidden":"true"},x)];V.value!==null&&W.push(V.value);const le=l.label!==void 0?c.hMergeSlot(u.default,[l.label]):c.hSlot(u.default);return le!==void 0&&W.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},le)),t.h("div",{ref:b,class:j.value,...B.value,onClick:M,onKeydown:ee,onKeyup:Q},W)}}const il=()=>t.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[t.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[t.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),t.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),al=c.createComponent({name:"QCheckbox",props:ol,emits:nl,setup(e){const o=il();function l(u,d){const i=t.computed(()=>(u.value===!0?e.checkedIcon:d.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>i.value!==null?[t.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t.h(c.QIcon,{class:"q-checkbox__icon",name:i.value})])]:[o]}return ul("checkbox",l)}}),Pe=c.createComponent({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:o}){const l=t.computed(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>t.h("div",{class:l.value},c.hSlot(o.default))}}),Et=c.createComponent({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:o}){const l=t.computed(()=>parseInt(e.lines,10)),u=t.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(l.value===1?" ellipsis":"")),d=t.computed(()=>e.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>t.h("div",{style:d.value,class:u.value},c.hSlot(o.default))}}),It=c.createComponent({name:"QItem",props:{...D.useDarkProps,...c.useRouterLinkProps,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:o,emit:l}){const{proxy:{$q:u}}=t.getCurrentInstance(),d=D.useDark(e,u),{hasLink:i,linkAttrs:r,linkClass:g,linkTag:b,navigateOnClick:V}=c.useRouterLink(),f=t.ref(null),C=t.ref(null),k=t.computed(()=>e.clickable===!0||i.value===!0||e.tag==="label"),s=t.computed(()=>e.disable!==!0&&k.value===!0),y=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(d.value===!0?" q-item--dark":"")+(i.value===!0&&e.active===null?g.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(s.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),q=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function S(_){s.value===!0&&(C.value!==null&&(_.qKeyEvent!==!0&&document.activeElement===f.value?C.value.focus():document.activeElement===C.value&&f.value.focus()),V(_))}function L(_){if(s.value===!0&&c.isKeyCode(_,[13,32])===!0){c.stopAndPrevent(_),_.qKeyEvent=!0;const T=new MouseEvent("click",_);T.qKeyEvent=!0,f.value.dispatchEvent(T)}l("keyup",_)}function j(){const _=c.hUniqueSlot(o.default,[]);return s.value===!0&&_.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:C})),_}return()=>{const _={ref:f,class:y.value,style:q.value,role:"listitem",onClick:S,onKeyup:L};return s.value===!0?(_.tabindex=e.tabindex||"0",Object.assign(_,r.value)):k.value===!0&&(_["aria-disabled"]="true"),t.h(b.value,_,j())}}}),mt=e=>e?!0:"Обовʼязкове поле",pt=/^on[A-Z]/;function rl(){const{attrs:e,vnode:o}=t.getCurrentInstance(),l={listeners:t.ref({}),attributes:t.ref({})};function u(){const d={},i={};for(const r in e)r!=="class"&&r!=="style"&&pt.test(r)===!1&&(d[r]=e[r]);for(const r in o.props)pt.test(r)===!0&&(i[r]=o.props[r]);l.attributes.value=d,l.listeners.value=i}return t.onBeforeUpdate(u),u(),l}const sl="_q_fo_";function cl({validate:e,resetValidation:o,requiresQForm:l}){const u=t.inject(sl,!1);if(u!==!1){const{props:d,proxy:i}=t.getCurrentInstance();Object.assign(i,{validate:e,resetValidation:o}),t.watch(()=>d.disable,r=>{r===!0?(typeof o=="function"&&o(),u.unbindComponent(i)):u.bindComponent(i)}),t.onMounted(()=>{d.disable!==!0&&u.bindComponent(i)}),t.onBeforeUnmount(()=>{d.disable!==!0&&u.unbindComponent(i)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const ht=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,gt=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,bt=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Fe=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,Oe=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,Ue={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>ht.test(e),hexaColor:e=>gt.test(e),hexOrHexaColor:e=>bt.test(e),rgbColor:e=>Fe.test(e),rgbaColor:e=>Oe.test(e),rgbOrRgbaColor:e=>Fe.test(e)||Oe.test(e),hexOrRgbColor:e=>ht.test(e)||Fe.test(e),hexaOrRgbaColor:e=>gt.test(e)||Oe.test(e),anyColor:e=>bt.test(e)||Fe.test(e)||Oe.test(e)};function zt(e,o=250,l){let u=null;function d(){const i=arguments,r=()=>{u=null,l!==!0&&e.apply(this,i)};u!==null?clearTimeout(u):l===!0&&e.apply(this,i),u=setTimeout(r,o)}return d.cancel=()=>{u!==null&&clearTimeout(u)},d}const dl=[!0,!1,"ondemand"],fl={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>dl.includes(e)}};function vl(e,o){const{props:l,proxy:u}=t.getCurrentInstance(),d=t.ref(!1),i=t.ref(null),r=t.ref(!1);cl({validate:q,resetValidation:y});let g=0,b;const V=t.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),f=t.computed(()=>l.disable!==!0&&V.value===!0&&o.value===!1),C=t.computed(()=>l.error===!0||d.value===!0),k=t.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:i.value);t.watch(()=>l.modelValue,()=>{r.value=!0,f.value===!0&&l.lazyRules===!1&&S()});function s(){l.lazyRules!=="ondemand"&&f.value===!0&&r.value===!0&&S()}t.watch(()=>l.reactiveRules,L=>{L===!0?b===void 0&&(b=t.watch(()=>l.rules,s,{immediate:!0,deep:!0})):b!==void 0&&(b(),b=void 0)},{immediate:!0}),t.watch(()=>l.lazyRules,s),t.watch(e,L=>{L===!0?r.value=!0:f.value===!0&&l.lazyRules!=="ondemand"&&S()});function y(){g++,o.value=!1,r.value=!1,d.value=!1,i.value=null,S.cancel()}function q(L=l.modelValue){if(l.disable===!0||V.value===!1)return!0;const j=++g,_=o.value!==!0?()=>{r.value=!0}:()=>{},T=(B,M)=>{B===!0&&_(),d.value=B,i.value=M||null,o.value=!1},Y=[];for(let B=0;B<l.rules.length;B++){const M=l.rules[B];let P;if(typeof M=="function"?P=M(L,Ue):typeof M=="string"&&Ue[M]!==void 0&&(P=Ue[M](L)),P===!1||typeof P=="string")return T(!0,P),!1;P!==!0&&P!==void 0&&Y.push(P)}return Y.length===0?(T(!1),!0):(o.value=!0,Promise.all(Y).then(B=>{if(B===void 0||Array.isArray(B)===!1||B.length===0)return j===g&&T(!1),!0;const M=B.find(P=>P===!1||typeof P=="string");return j===g&&T(M!==void 0,M),M===void 0},B=>(j===g&&(console.error(B),T(!0)),!1)))}const S=zt(q,0);return t.onBeforeUnmount(()=>{b!==void 0&&b(),S.cancel()}),Object.assign(u,{resetValidation:y,validate:q}),ne.injectProp(u,"hasError",()=>C.value),{isDirtyModel:r,hasRules:V,hasError:C,errorMessage:k,validate:q,resetValidation:y}}function Je(e){return e!=null&&(""+e).length!==0}const ml={...D.useDarkProps,...fl,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},Ge={...ml,maxlength:[Number,String]},Rt=["update:modelValue","clear","focus","blur"];function Tt({requiredForAttr:e=!0,tagProp:o,changeEvent:l=!1}={}){const{props:u,proxy:d}=t.getCurrentInstance(),i=D.useDark(u,d.$q),r=D.useId({required:e,getValue:()=>u.for});return{requiredForAttr:e,changeEvent:l,tag:o===!0?t.computed(()=>u.tag):{value:"label"},isDark:i,editable:t.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:t.ref(!1),focused:t.ref(!1),hasPopupOpen:!1,splitAttrs:rl(),targetUid:r,rootRef:t.ref(null),targetRef:t.ref(null),controlRef:t.ref(null)}}function Ft(e){const{props:o,emit:l,slots:u,attrs:d,proxy:i}=t.getCurrentInstance(),{$q:r}=i;let g=null;e.hasValue===void 0&&(e.hasValue=t.computed(()=>Je(o.modelValue))),e.emitValue===void 0&&(e.emitValue=h=>{l("update:modelValue",h)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:ee,onFocusout:Q}),Object.assign(e,{clearValue:te,onControlFocusin:ee,onControlFocusout:Q,focus:M}),e.computedCounter===void 0&&(e.computedCounter=t.computed(()=>{if(o.counter!==!1){const h=typeof o.modelValue=="string"||typeof o.modelValue=="number"?(""+o.modelValue).length:Array.isArray(o.modelValue)===!0?o.modelValue.length:0,E=o.maxlength!==void 0?o.maxlength:o.maxValues;return h+(E!==void 0?" / "+E:"")}}));const{isDirtyModel:b,hasRules:V,hasError:f,errorMessage:C,resetValidation:k}=vl(e.focused,e.innerLoading),s=e.floatingLabel!==void 0?t.computed(()=>o.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):t.computed(()=>o.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),y=t.computed(()=>o.bottomSlots===!0||o.hint!==void 0||V.value===!0||o.counter===!0||o.error!==null),q=t.computed(()=>o.filled===!0?"filled":o.outlined===!0?"outlined":o.borderless===!0?"borderless":o.standout?"standout":"standard"),S=t.computed(()=>`q-field row no-wrap items-start q-field--${q.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(o.rounded===!0?" q-field--rounded":"")+(o.square===!0?" q-field--square":"")+(s.value===!0?" q-field--float":"")+(j.value===!0?" q-field--labeled":"")+(o.dense===!0?" q-field--dense":"")+(o.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(e.isDark.value===!0?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value===!0?" q-field--focused":"")+(f.value===!0?" q-field--error":"")+(f.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(o.hideBottomSpace!==!0&&y.value===!0?" q-field--with-bottom":"")+(o.disable===!0?" q-field--disabled":o.readonly===!0?" q-field--readonly":"")),L=t.computed(()=>"q-field__control relative-position row no-wrap"+(o.bgColor!==void 0?` bg-${o.bgColor}`:"")+(f.value===!0?" text-negative":typeof o.standout=="string"&&o.standout.length!==0&&e.focused.value===!0?` ${o.standout}`:o.color!==void 0?` text-${o.color}`:"")),j=t.computed(()=>o.labelSlot===!0||o.label!==void 0),_=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(o.labelColor!==void 0&&f.value!==!0?` text-${o.labelColor}`:"")),T=t.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:s.value,modelValue:o.modelValue,emitValue:e.emitValue})),Y=t.computed(()=>{const h={};return e.targetUid.value&&(h.for=e.targetUid.value),o.disable===!0&&(h["aria-disabled"]="true"),h});function B(){const h=document.activeElement;let E=e.targetRef!==void 0&&e.targetRef.value;E&&(h===null||h.id!==e.targetUid.value)&&(E.hasAttribute("tabindex")===!0||(E=E.querySelector("[tabindex]")),E&&E!==h&&E.focus({preventScroll:!0}))}function M(){D.addFocusFn(B)}function P(){D.removeFocusFn(B);const h=document.activeElement;h!==null&&e.rootRef.value.contains(h)&&h.blur()}function ee(h){g!==null&&(clearTimeout(g),g=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,l("focus",h))}function Q(h,E){g!==null&&clearTimeout(g),g=setTimeout(()=>{g=null,!(document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1))&&(e.focused.value===!0&&(e.focused.value=!1,l("blur",h)),E!==void 0&&E())})}function te(h){c.stopAndPrevent(h),r.platform.is.mobile!==!0?(e.targetRef!==void 0&&e.targetRef.value||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),o.type==="file"&&(e.inputRef.value.value=null),l("update:modelValue",null),e.changeEvent===!0&&l("change",null),l("clear",o.modelValue),t.nextTick(()=>{const E=b.value;k(),b.value=E})}function x(h){[13,32].includes(h.keyCode)&&te(h)}function W(){const h=[];return u.prepend!==void 0&&h.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:c.prevent},u.prepend())),h.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},le())),f.value===!0&&o.noErrorIcon===!1&&h.push(U("error",[t.h(c.QIcon,{name:r.iconSet.field.error,color:"negative"})])),o.loading===!0||e.innerLoading.value===!0?h.push(U("inner-loading-append",u.loading!==void 0?u.loading():[t.h(c.QSpinner,{color:o.color})])):o.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&h.push(U("inner-clearable-append",[t.h(c.QIcon,{class:"q-field__focusable-action",name:o.clearIcon||r.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":r.lang.label.clear,onKeyup:x,onClick:te})])),u.append!==void 0&&h.push(t.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:c.prevent},u.append())),e.getInnerAppend!==void 0&&h.push(U("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&h.push(e.getControlChild()),h}function le(){const h=[];return o.prefix!==void 0&&o.prefix!==null&&h.push(t.h("div",{class:"q-field__prefix no-pointer-events row items-center"},o.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&h.push(e.getShadowControl()),e.getControl!==void 0?h.push(e.getControl()):u.rawControl!==void 0?h.push(u.rawControl()):u.control!==void 0&&h.push(t.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0},u.control(T.value))),j.value===!0&&h.push(t.h("div",{class:_.value},c.hSlot(u.label,o.label))),o.suffix!==void 0&&o.suffix!==null&&h.push(t.h("div",{class:"q-field__suffix no-pointer-events row items-center"},o.suffix)),h.concat(c.hSlot(u.default))}function Z(){let h,E;f.value===!0?C.value!==null?(h=[t.h("div",{role:"alert"},C.value)],E=`q--slot-error-${C.value}`):(h=c.hSlot(u.error),E="q--slot-error"):(o.hideHint!==!0||e.focused.value===!0)&&(o.hint!==void 0?(h=[t.h("div",o.hint)],E=`q--slot-hint-${o.hint}`):(h=c.hSlot(u.hint),E="q--slot-hint"));const ie=o.counter===!0||u.counter!==void 0;if(o.hideBottomSpace===!0&&ie===!1&&h===void 0)return;const a=t.h("div",{key:E,class:"q-field__messages col"},h);return t.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(o.hideBottomSpace!==!0?"animated":"stale"),onClick:c.prevent},[o.hideBottomSpace===!0?a:t.h(t.Transition,{name:"q-transition--field-message"},()=>a),ie===!0?t.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():e.computedCounter.value):null])}function U(h,E){return E===null?null:t.h("div",{key:h,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},E)}let ue=!1;return t.onDeactivated(()=>{ue=!0}),t.onActivated(()=>{ue===!0&&o.autofocus===!0&&i.focus()}),o.autofocus===!0&&t.onMounted(()=>{i.focus()}),t.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(i,{focus:M,blur:P}),function(){const E=e.getControl===void 0&&u.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0,...Y.value}:Y.value;return t.h(e.tag.value,{ref:e.rootRef,class:[S.value,d.class],style:d.style,...E},[u.before!==void 0?t.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:c.prevent},u.before()):null,t.h("div",{class:"q-field__inner relative-position col self-stretch"},[t.h("div",{ref:e.controlRef,class:L.value,tabindex:-1,...e.controlEvents},W()),y.value===!0?Z():null]),u.after!==void 0?t.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:c.prevent},u.after()):null])}}const pl=c.createComponent({name:"QField",inheritAttrs:!1,props:{...Ge,tag:{type:String,default:"label"}},emits:Rt,setup(){return Ft(Tt({tagProp:!0}))}}),hl={xs:8,sm:10,md:14,lg:20,xl:24},gl=c.createComponent({name:"QChip",props:{...D.useDarkProps,...c.useSizeProps,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:o,emit:l}){const{proxy:{$q:u}}=t.getCurrentInstance(),d=D.useDark(e,u),i=c.useSize(e,hl),r=t.computed(()=>e.selected===!0||e.icon!==void 0),g=t.computed(()=>e.selected===!0?e.iconSelected||u.iconSet.chip.selected:e.icon),b=t.computed(()=>e.iconRemove||u.iconSet.chip.remove),V=t.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),f=t.computed(()=>{const S=e.outline===!0&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(e.outline===!1&&e.color!==void 0?` bg-${e.color}`:"")+(S?` text-${S} q-chip--colored`:"")+(e.disable===!0?" disabled":"")+(e.dense===!0?" q-chip--dense":"")+(e.outline===!0?" q-chip--outline":"")+(e.selected===!0?" q-chip--selected":"")+(V.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(d.value===!0?" q-chip--dark q-dark":"")}),C=t.computed(()=>{const S=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},L={...S,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||u.lang.label.remove};return{chip:S,remove:L}});function k(S){S.keyCode===13&&s(S)}function s(S){e.disable||(l("update:selected",!e.selected),l("click",S))}function y(S){(S.keyCode===void 0||S.keyCode===13)&&(c.stopAndPrevent(S),e.disable===!1&&(l("update:modelValue",!1),l("remove")))}function q(){const S=[];V.value===!0&&S.push(t.h("div",{class:"q-focus-helper"})),r.value===!0&&S.push(t.h(c.QIcon,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const L=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return S.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},c.hMergeSlotSafely(o.default,L))),e.iconRight&&S.push(t.h(c.QIcon,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&S.push(t.h(c.QIcon,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:b.value,...C.value.remove,onClick:y,onKeyup:y})),S}return()=>{if(e.modelValue===!1)return;const S={class:f.value,style:i.value};return V.value===!0&&Object.assign(S,C.value.chip,{onClick:s,onKeyup:k}),c.hDir("div",S,q(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[c.Ripple,e.ripple]])}}});function bl(e,o,l){function u(){}return t.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Ve=0,Qe,We,Be,Xe=!1,yt,St,wt,pe=null;function yl(e){Sl(e)&&c.stopAndPrevent(e)}function Sl(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const o=c.getEventPath(e),l=e.shiftKey&&!e.deltaX,u=!l&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),d=l||u?e.deltaY:e.deltaX;for(let i=0;i<o.length;i++){const r=o[i];if(D.hasScrollbar(r,u))return u?d<0&&r.scrollTop===0?!0:d>0&&r.scrollTop+r.clientHeight===r.scrollHeight:d<0&&r.scrollLeft===0?!0:d>0&&r.scrollLeft+r.clientWidth===r.scrollWidth}return!0}function Ct(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Me(e){Xe!==!0&&(Xe=!0,requestAnimationFrame(()=>{Xe=!1;const{height:o}=e.target,{clientHeight:l,scrollTop:u}=document.scrollingElement;(Be===void 0||o!==window.innerHeight)&&(Be=l-o,document.scrollingElement.scrollTop=u),u>Be&&(document.scrollingElement.scrollTop-=Math.ceil((u-Be)/8))}))}function kt(e){const o=document.body,l=window.visualViewport!==void 0;if(e==="add"){const{overflowY:u,overflowX:d}=window.getComputedStyle(o);Qe=D.getHorizontalScrollPosition(window),We=D.getVerticalScrollPosition(window),yt=o.style.left,St=o.style.top,wt=window.location.href,o.style.left=`-${Qe}px`,o.style.top=`-${We}px`,d!=="hidden"&&(d==="scroll"||o.scrollWidth>window.innerWidth)&&o.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||o.scrollHeight>window.innerHeight)&&o.classList.add("q-body--force-scrollbar-y"),o.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,ne.client.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Me,c.listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",Me,c.listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Ct,c.listenOpts.passiveCapture))}ne.client.is.desktop===!0&&ne.client.is.mac===!0&&window[`${e}EventListener`]("wheel",yl,c.listenOpts.notPassive),e==="remove"&&(ne.client.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",Me,c.listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",Me,c.listenOpts.passiveCapture)):window.removeEventListener("scroll",Ct,c.listenOpts.passiveCapture)),o.classList.remove("q-body--prevent-scroll"),o.classList.remove("q-body--force-scrollbar-x"),o.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,o.style.left=yt,o.style.top=St,window.location.href===wt&&window.scrollTo(Qe,We),Be=void 0)}function wl(e){let o="add";if(e===!0){if(Ve++,pe!==null){clearTimeout(pe),pe=null;return}if(Ve>1)return}else{if(Ve===0||(Ve--,Ve>0))return;if(o="remove",ne.client.is.ios===!0&&ne.client.is.nativeMobile===!0){pe!==null&&clearTimeout(pe),pe=setTimeout(()=>{kt(o),pe=null},100);return}}kt(o)}function Cl(){let e;return{preventBodyScroll(o){o!==e&&(e!==void 0||o===!0)&&(e=o,wl(o))}}}let Le=0;const kl={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},qt={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},ql=c.createComponent({name:"QDialog",inheritAttrs:!1,props:{...D.useModelToggleProps,...D.useTransitionProps,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...D.useModelToggleEmits,"shake","click","escapeKey"],setup(e,{slots:o,emit:l,attrs:u}){const d=t.getCurrentInstance(),i=t.ref(null),r=t.ref(!1),g=t.ref(!1);let b=null,V=null,f,C;const k=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:s}=Cl(),{registerTimeout:y}=D.useTimeout(),{registerTick:q,removeTick:S}=D.useTick(),{transitionProps:L,transitionStyle:j}=D.useTransition(e,()=>qt[e.position][0],()=>qt[e.position][1]),_=t.computed(()=>j.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:T,hidePortal:Y,portalIsAccessible:B,renderPortal:M}=D.usePortal(d,i,I,"dialog"),{hide:P}=D.useModelToggle({showing:r,hideOnRouteChange:k,handleShow:W,handleHide:le,processOnMount:!0});bl(r);const ee=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${kl[e.position]}`+(g.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),Q=t.computed(()=>r.value===!0&&e.seamless!==!0),te=t.computed(()=>e.autoClose===!0?{onClick:ie}:{}),x=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${Q.value===!0?"modal":"seamless"}`,u.class]);t.watch(()=>e.maximized,w=>{r.value===!0&&E(w)}),t.watch(Q,w=>{s(w),w===!0?(ne.addFocusout(v),D.addEscapeKey(ue)):(ne.removeFocusout(v),D.removeEscapeKey(ue))});function W(w){V=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,E(e.maximized),T(),g.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),q(Z)):S(),y(()=>{if(d.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:F,bottom:A}=document.activeElement.getBoundingClientRect(),{innerHeight:z}=window,N=window.visualViewport!==void 0?window.visualViewport.height:z;F>0&&A>N/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-N,A>=z?1/0:Math.ceil(document.scrollingElement.scrollTop+A-N/2))),document.activeElement.scrollIntoView()}C=!0,i.value.click(),C=!1}T(!0),g.value=!1,l("show",w)},e.transitionDuration)}function le(w){S(),h(!0),g.value=!0,Y(),V!==null&&(((w&&w.type.indexOf("key")===0?V.closest('[tabindex]:not([tabindex^="-"])'):void 0)||V).focus(),V=null),y(()=>{Y(!0),g.value=!1,l("hide",w)},e.transitionDuration)}function Z(w){D.addFocusFn(()=>{let F=i.value;if(F!==null){if(w!==void 0){const A=F.querySelector(w);if(A!==null){A.focus({preventScroll:!0});return}}F.contains(document.activeElement)!==!0&&(F=F.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||F.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||F.querySelector("[autofocus], [data-autofocus]")||F,F.focus({preventScroll:!0}))}})}function U(w){w&&typeof w.focus=="function"?w.focus({preventScroll:!0}):Z(),l("shake");const F=i.value;F!==null&&(F.classList.remove("q-animate--scale"),F.classList.add("q-animate--scale"),b!==null&&clearTimeout(b),b=setTimeout(()=>{b=null,i.value!==null&&(F.classList.remove("q-animate--scale"),Z())},170))}function ue(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&U():(l("escapeKey"),P()))}function h(w){b!==null&&(clearTimeout(b),b=null),(w===!0||r.value===!0)&&(E(!1),e.seamless!==!0&&(s(!1),ne.removeFocusout(v),D.removeEscapeKey(ue))),w!==!0&&(V=null)}function E(w){w===!0?f!==!0&&(Le<1&&document.body.classList.add("q-body--dialog"),Le++,f=!0):f===!0&&(Le<2&&document.body.classList.remove("q-body--dialog"),Le--,f=!1)}function ie(w){C!==!0&&(P(w),l("click",w))}function a(w){e.persistent!==!0&&e.noBackdropDismiss!==!0?P(w):e.noShake!==!0&&U()}function v(w){e.allowFocusOutside!==!0&&B.value===!0&&c.childHasFocus(i.value,w.target)!==!0&&Z('[tabindex]:not([tabindex="-1"])')}Object.assign(d.proxy,{focus:Z,shake:U,__updateRefocusTarget(w){V=w||null}}),t.onBeforeUnmount(h);function I(){return t.h("div",{role:"dialog","aria-modal":Q.value===!0?"true":"false",...u,class:x.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>Q.value===!0?t.h("div",{class:"q-dialog__backdrop fixed-full",style:_.value,"aria-hidden":"true",tabindex:-1,onClick:a}):null),t.h(t.Transition,L.value,()=>r.value===!0?t.h("div",{ref:i,class:ee.value,style:j.value,tabindex:-1,...te.value},c.hSlot(o.default)):null)])}return M}});let $e=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const o=document.createElement("div");Object.assign(o.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(o),e.scrollLeft=-1e3,$e=e.scrollLeft>=0,e.remove()}const oe=1e3,xl=["start","center","end","start-force","center-force","end-force"],Ot=Array.prototype.filter,Vl=window.getComputedStyle(document.body).overflowAnchor===void 0?c.noop:function(e,o){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const l=e.children||[];Ot.call(l,d=>d.dataset&&d.dataset.qVsAnchor!==void 0).forEach(d=>{delete d.dataset.qVsAnchor});const u=l[o];u&&u.dataset&&(u.dataset.qVsAnchor="")}))};function Ce(e,o){return e+o}function Ye(e,o,l,u,d,i,r,g){const b=e===window?document.scrollingElement||document.documentElement:e,V=d===!0?"offsetWidth":"offsetHeight",f={scrollStart:0,scrollViewSize:-r-g,scrollMaxSize:0,offsetStart:-r,offsetEnd:-g};if(d===!0?(e===window?(f.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,f.scrollViewSize+=document.documentElement.clientWidth):(f.scrollStart=b.scrollLeft,f.scrollViewSize+=b.clientWidth),f.scrollMaxSize=b.scrollWidth,i===!0&&(f.scrollStart=($e===!0?f.scrollMaxSize-f.scrollViewSize:0)-f.scrollStart)):(e===window?(f.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,f.scrollViewSize+=document.documentElement.clientHeight):(f.scrollStart=b.scrollTop,f.scrollViewSize+=b.clientHeight),f.scrollMaxSize=b.scrollHeight),l!==null)for(let C=l.previousElementSibling;C!==null;C=C.previousElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(f.offsetStart+=C[V]);if(u!==null)for(let C=u.nextElementSibling;C!==null;C=C.nextElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(f.offsetEnd+=C[V]);if(o!==e){const C=b.getBoundingClientRect(),k=o.getBoundingClientRect();d===!0?(f.offsetStart+=k.left-C.left,f.offsetEnd-=k.width):(f.offsetStart+=k.top-C.top,f.offsetEnd-=k.height),e!==window&&(f.offsetStart+=f.scrollStart),f.offsetEnd+=f.scrollMaxSize-f.offsetStart}return f}function xt(e,o,l,u){o==="end"&&(o=(e===window?document.body:e)[l===!0?"scrollWidth":"scrollHeight"]),e===window?l===!0?(u===!0&&(o=($e===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-o),window.scrollTo(o,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,o):l===!0?(u===!0&&(o=($e===!0?e.scrollWidth-e.offsetWidth:0)-o),e.scrollLeft=o):e.scrollTop=o}function _e(e,o,l,u){if(l>=u)return 0;const d=o.length,i=Math.floor(l/oe),r=Math.floor((u-1)/oe)+1;let g=e.slice(i,r).reduce(Ce,0);return l%oe!==0&&(g-=o.slice(i*oe,l).reduce(Ce,0)),u%oe!==0&&u!==d&&(g-=o.slice(u,r*oe).reduce(Ce,0)),g}const _l={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},Vt={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,..._l};function Bl({virtualScrollLength:e,getVirtualScrollTarget:o,getVirtualScrollEl:l,virtualScrollItemSizeComputed:u}){const d=t.getCurrentInstance(),{props:i,emit:r,proxy:g}=d,{$q:b}=g;let V,f,C,k=[],s;const y=t.ref(0),q=t.ref(0),S=t.ref({}),L=t.ref(null),j=t.ref(null),_=t.ref(null),T=t.ref({from:0,to:0}),Y=t.computed(()=>i.tableColspan!==void 0?i.tableColspan:100);u===void 0&&(u=t.computed(()=>i.virtualScrollItemSize));const B=t.computed(()=>u.value+";"+i.virtualScrollHorizontal),M=t.computed(()=>B.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);t.watch(M,()=>{U()}),t.watch(B,P);function P(){Z(f,!0)}function ee(a){Z(a===void 0?f:a)}function Q(a,v){const I=o();if(I==null||I.nodeType===8)return;const w=Ye(I,l(),L.value,j.value,i.virtualScrollHorizontal,b.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);C!==w.scrollViewSize&&U(w.scrollViewSize),x(I,w,Math.min(e.value-1,Math.max(0,parseInt(a,10)||0)),0,xl.indexOf(v)!==-1?v:f!==-1&&a>f?"end":"start")}function te(){const a=o();if(a==null||a.nodeType===8)return;const v=Ye(a,l(),L.value,j.value,i.virtualScrollHorizontal,b.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),I=e.value-1,w=v.scrollMaxSize-v.offsetStart-v.offsetEnd-q.value;if(V===v.scrollStart)return;if(v.scrollMaxSize<=0){x(a,v,0,0);return}C!==v.scrollViewSize&&U(v.scrollViewSize),W(T.value.from);const F=Math.floor(v.scrollMaxSize-Math.max(v.scrollViewSize,v.offsetEnd)-Math.min(s[I],v.scrollViewSize/2));if(F>0&&Math.ceil(v.scrollStart)>=F){x(a,v,I,v.scrollMaxSize-v.offsetEnd-k.reduce(Ce,0));return}let A=0,z=v.scrollStart-v.offsetStart,N=z;if(z<=w&&z+v.scrollViewSize>=y.value)z-=y.value,A=T.value.from,N=z;else for(let O=0;z>=k[O]&&A<I;O++)z-=k[O],A+=oe;for(;z>0&&A<I;)z-=s[A],z>-v.scrollViewSize?(A++,N=z):N=s[A]+z;x(a,v,A,N)}function x(a,v,I,w,F){const A=typeof F=="string"&&F.indexOf("-force")!==-1,z=A===!0?F.replace("-force",""):F,N=z!==void 0?z:"start";let O=Math.max(0,I-S.value[N]),J=O+S.value.total;J>e.value&&(J=e.value,O=Math.max(0,J-S.value.total)),V=v.scrollStart;const se=O!==T.value.from||J!==T.value.to;if(se===!1&&z===void 0){h(I);return}const{activeElement:Ae}=document,ae=_.value;se===!0&&ae!==null&&ae!==Ae&&ae.contains(Ae)===!0&&(ae.addEventListener("focusout",le),setTimeout(()=>{ae!==null&&ae.removeEventListener("focusout",le)})),Vl(ae,I-O);const Ee=z!==void 0?s.slice(O,I).reduce(Ce,0):0;if(se===!0){const de=J>=T.value.from&&O<=T.value.to?T.value.to:J;T.value={from:O,to:de},y.value=_e(k,s,0,O),q.value=_e(k,s,J,e.value),requestAnimationFrame(()=>{T.value.to!==J&&V===v.scrollStart&&(T.value={from:T.value.from,to:J},q.value=_e(k,s,J,e.value))})}requestAnimationFrame(()=>{if(V!==v.scrollStart)return;se===!0&&W(O);const de=s.slice(O,I).reduce(Ce,0),fe=de+v.offsetStart+y.value,Ie=fe+s[I];let ke=fe+w;if(z!==void 0){const De=de-Ee,qe=v.scrollStart+De;ke=A!==!0&&qe<fe&&Ie<qe+v.scrollViewSize?qe:z==="end"?Ie-v.scrollViewSize:fe-(z==="start"?0:Math.round((v.scrollViewSize-s[I])/2))}V=ke,xt(a,ke,i.virtualScrollHorizontal,b.lang.rtl),h(I)})}function W(a){const v=_.value;if(v){const I=Ot.call(v.children,O=>O.classList&&O.classList.contains("q-virtual-scroll--skip")===!1),w=I.length,F=i.virtualScrollHorizontal===!0?O=>O.getBoundingClientRect().width:O=>O.offsetHeight;let A=a,z,N;for(let O=0;O<w;){for(z=F(I[O]),O++;O<w&&I[O].classList.contains("q-virtual-scroll--with-prev")===!0;)z+=F(I[O]),O++;N=z-s[A],N!==0&&(s[A]+=N,k[Math.floor(A/oe)]+=N),A++}}}function le(){_.value!==null&&_.value!==void 0&&_.value.focus()}function Z(a,v){const I=1*u.value;(v===!0||Array.isArray(s)===!1)&&(s=[]);const w=s.length;s.length=e.value;for(let A=e.value-1;A>=w;A--)s[A]=I;const F=Math.floor((e.value-1)/oe);k=[];for(let A=0;A<=F;A++){let z=0;const N=Math.min((A+1)*oe,e.value);for(let O=A*oe;O<N;O++)z+=s[O];k.push(z)}f=-1,V=void 0,y.value=_e(k,s,0,T.value.from),q.value=_e(k,s,T.value.to,e.value),a>=0?(W(T.value.from),t.nextTick(()=>{Q(a)})):E()}function U(a){if(a===void 0&&typeof window<"u"){const z=o();z!=null&&z.nodeType!==8&&(a=Ye(z,l(),L.value,j.value,i.virtualScrollHorizontal,b.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}C=a;const v=parseFloat(i.virtualScrollSliceRatioBefore)||0,I=parseFloat(i.virtualScrollSliceRatioAfter)||0,w=1+v+I,F=a===void 0||a<=0?1:Math.ceil(a/u.value),A=Math.max(1,F,Math.ceil((i.virtualScrollSliceSize>0?i.virtualScrollSliceSize:10)/w));S.value={total:Math.ceil(A*w),start:Math.ceil(A*v),center:Math.ceil(A*(.5+v)),end:Math.ceil(A*(1+v)),view:F}}function ue(a,v){const I=i.virtualScrollHorizontal===!0?"width":"height",w={["--q-virtual-scroll-item-"+I]:u.value+"px"};return[a==="tbody"?t.h(a,{class:"q-virtual-scroll__padding",key:"before",ref:L},[t.h("tr",[t.h("td",{style:{[I]:`${y.value}px`,...w},colspan:Y.value})])]):t.h(a,{class:"q-virtual-scroll__padding",key:"before",ref:L,style:{[I]:`${y.value}px`,...w}}),t.h(a,{class:"q-virtual-scroll__content",key:"content",ref:_,tabindex:-1},v.flat()),a==="tbody"?t.h(a,{class:"q-virtual-scroll__padding",key:"after",ref:j},[t.h("tr",[t.h("td",{style:{[I]:`${q.value}px`,...w},colspan:Y.value})])]):t.h(a,{class:"q-virtual-scroll__padding",key:"after",ref:j,style:{[I]:`${q.value}px`,...w}})]}function h(a){f!==a&&(i.onVirtualScroll!==void 0&&r("virtualScroll",{index:a,from:T.value.from,to:T.value.to-1,direction:a<f?"decrease":"increase",ref:g}),f=a)}U();const E=zt(te,b.platform.is.ios===!0?120:35);t.onBeforeMount(()=>{U()});let ie=!1;return t.onDeactivated(()=>{ie=!0}),t.onActivated(()=>{if(ie!==!0)return;const a=o();V!==void 0&&a!==void 0&&a!==null&&a.nodeType!==8?xt(a,V,i.virtualScrollHorizontal,b.lang.rtl):Q(f)}),t.onBeforeUnmount(()=>{E.cancel()}),Object.assign(g,{scrollTo:Q,reset:P,refresh:ee}),{virtualScrollSliceRange:T,virtualScrollSliceSizeComputed:S,setVirtualScrollSize:U,onVirtualScrollEvt:E,localResetVirtualScroll:Z,padVirtualScroll:ue,scrollTo:Q,reset:P,refresh:ee}}const Al=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,El=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,Il=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,zl=/[a-z0-9_ -]$/i;function Rl(e){return function(l){if(l.type==="compositionend"||l.type==="change"){if(l.target.qComposing!==!0)return;l.target.qComposing=!1,e(l)}else l.type==="compositionupdate"&&l.target.qComposing!==!0&&typeof l.data=="string"&&(ne.client.is.firefox===!0?zl.test(l.data)===!1:Al.test(l.data)===!0||El.test(l.data)===!0||Il.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}function ce(e,o){if(e===o)return!0;if(e!==null&&o!==null&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;let l,u;if(e.constructor===Array){if(l=e.length,l!==o.length)return!1;for(u=l;u--!==0;)if(ce(e[u],o[u])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==o.size)return!1;let i=e.entries();for(u=i.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=i.next()}for(i=e.entries(),u=i.next();u.done!==!0;){if(ce(u.value[1],o.get(u.value[0]))!==!0)return!1;u=i.next()}return!0}if(e.constructor===Set){if(e.size!==o.size)return!1;const i=e.entries();for(u=i.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=i.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(l=e.length,l!==o.length)return!1;for(u=l;u--!==0;)if(e[u]!==o[u])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===o.toString();const d=Object.keys(e).filter(i=>e[i]!==void 0);if(l=d.length,l!==Object.keys(o).filter(i=>o[i]!==void 0).length)return!1;for(u=l;u--!==0;){const i=d[u];if(ce(e[i],o[i])!==!0)return!1}return!0}return e!==e&&o!==o}function _t(e,o,l){if(l<=o)return o;const u=l-o+1;let d=o+(e-o)%u;return d<o&&(d=u+d),d===0?0:d}const Bt=e=>["add","add-unique","toggle"].includes(e),Tl=".*+?^${}()|[]\\",Fl=Object.keys(Ge);function Ze(e,o){if(typeof e=="function")return e;const l=e!==void 0?e:o;return u=>u!==null&&typeof u=="object"&&l in u?u[l]:u}const Ol=c.createComponent({name:"QSelect",inheritAttrs:!1,props:{...Vt,...At,...Ge,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Bt},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:Vt.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Rt,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:o,emit:l}){const{proxy:u}=t.getCurrentInstance(),{$q:d}=u,i=t.ref(!1),r=t.ref(!1),g=t.ref(-1),b=t.ref(""),V=t.ref(!1),f=t.ref(!1);let C=null,k=null,s,y,q,S=null,L,j,_,T;const Y=t.ref(null),B=t.ref(null),M=t.ref(null),P=t.ref(null),ee=t.ref(null),Q=tl(e),te=Rl(st),x=t.computed(()=>Array.isArray(e.options)?e.options.length:0),W=t.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:le,virtualScrollSliceSizeComputed:Z,localResetVirtualScroll:U,padVirtualScroll:ue,onVirtualScrollEvt:h,scrollTo:E,setVirtualScrollSize:ie}=Bl({virtualScrollLength:x,getVirtualScrollTarget:$t,getVirtualScrollEl:at,virtualScrollItemSizeComputed:W}),a=Tt(),v=t.computed(()=>{const n=e.mapOptions===!0&&e.multiple!==!0,m=e.modelValue!==void 0&&(e.modelValue!==null||n===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const p=e.mapOptions===!0&&s!==void 0?s:[],R=m.map(H=>Pt(H,p));return e.modelValue===null&&n===!0?R.filter(H=>H!==null):R}return m}),I=t.computed(()=>{const n={};return Fl.forEach(m=>{const p=e[m];p!==void 0&&(n[m]=p)}),n}),w=t.computed(()=>e.optionsDark===null?a.isDark.value:e.optionsDark),F=t.computed(()=>Je(v.value)),A=t.computed(()=>{let n="q-field__input q-placeholder col";return e.hideSelected===!0||v.value.length===0?[n,e.inputClass]:(n+=" q-field__input--padding",e.inputClass===void 0?n:[n,e.inputClass])}),z=t.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),N=t.computed(()=>x.value===0),O=t.computed(()=>v.value.map(n=>G.value(n)).join(", ")),J=t.computed(()=>e.displayValue!==void 0?e.displayValue:O.value),se=t.computed(()=>e.optionsHtml===!0?()=>!0:n=>n!=null&&n.html===!0),Ae=t.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||v.value.some(se.value))),ae=t.computed(()=>a.focused.value===!0?e.tabindex:-1),Ee=t.computed(()=>{const n={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly===!0?"true":"false","aria-autocomplete":e.useInput===!0?"list":"none","aria-expanded":i.value===!0?"true":"false","aria-controls":`${a.targetUid.value}_lb`};return g.value>=0&&(n["aria-activedescendant"]=`${a.targetUid.value}_${g.value}`),n}),de=t.computed(()=>({id:`${a.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),fe=t.computed(()=>v.value.map((n,m)=>({index:m,opt:n,html:se.value(n),selected:!0,removeAtIndex:Lt,toggleOption:ve,tabindex:ae.value}))),Ie=t.computed(()=>{if(x.value===0)return[];const{from:n,to:m}=le.value;return e.options.slice(n,m).map((p,R)=>{const H=he.value(p)===!0,$=Ne(p)===!0,X=n+R,K={clickable:!0,active:$,activeClass:qe.value,manualFocus:!0,focused:!1,disable:H,tabindex:-1,dense:e.optionsDense,dark:w.value,role:"option","aria-selected":$===!0?"true":"false",id:`${a.targetUid.value}_${X}`,onClick:()=>{ve(p)}};return H!==!0&&(g.value===X&&(K.focused=!0),d.platform.is.desktop===!0&&(K.onMousemove=()=>{i.value===!0&&ge(X)})),{index:X,opt:p,html:se.value(p),label:G.value(p),selected:K.active,focused:K.focused,toggleOption:ve,setOptionIndex:ge,itemProps:K}})}),ke=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:d.iconSet.arrow.dropdown),De=t.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),qe=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),re=t.computed(()=>Ze(e.optionValue,"value")),G=t.computed(()=>Ze(e.optionLabel,"label")),he=t.computed(()=>Ze(e.optionDisable,"disable")),ze=t.computed(()=>v.value.map(re.value)),Mt=t.computed(()=>{const n={onInput:st,onChange:te,onKeydown:it,onKeyup:nt,onKeypress:ut,onFocus:lt,onClick(m){y===!0&&c.stop(m)}};return n.onCompositionstart=n.onCompositionupdate=n.onCompositionend=te,n});t.watch(v,n=>{s=n,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&a.innerLoading.value!==!0&&(r.value!==!0&&i.value!==!0||F.value!==!0)&&(q!==!0&&we(),(r.value===!0||i.value===!0)&&be(""))},{immediate:!0}),t.watch(()=>e.fillInput,we),t.watch(i,je),t.watch(x,Jt);function et(n){return e.emitValue===!0?re.value(n):n}function He(n){if(n!==-1&&n<v.value.length)if(e.multiple===!0){const m=e.modelValue.slice();l("remove",{index:n,value:m.splice(n,1)[0]}),l("update:modelValue",m)}else l("update:modelValue",null)}function Lt(n){He(n),a.focus()}function tt(n,m){const p=et(n);if(e.multiple!==!0){e.fillInput===!0&&xe(G.value(n),!0,!0),l("update:modelValue",p);return}if(v.value.length===0){l("add",{index:0,value:p}),l("update:modelValue",e.multiple===!0?[p]:p);return}if(m===!0&&Ne(n)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const R=e.modelValue.slice();l("add",{index:R.length,value:p}),R.push(p),l("update:modelValue",R)}function ve(n,m){if(a.editable.value!==!0||n===void 0||he.value(n)===!0)return;const p=re.value(n);if(e.multiple!==!0){m!==!0&&(xe(e.fillInput===!0?G.value(n):"",!0,!0),me()),B.value!==null&&B.value.focus(),(v.value.length===0||ce(re.value(v.value[0]),p)!==!0)&&l("update:modelValue",e.emitValue===!0?p:n);return}if((y!==!0||V.value===!0)&&a.focus(),lt(),v.value.length===0){const $=e.emitValue===!0?p:n;l("add",{index:0,value:$}),l("update:modelValue",e.multiple===!0?[$]:$);return}const R=e.modelValue.slice(),H=ze.value.findIndex($=>ce($,p));if(H!==-1)l("remove",{index:H,value:R.splice(H,1)[0]});else{if(e.maxValues!==void 0&&R.length>=e.maxValues)return;const $=e.emitValue===!0?p:n;l("add",{index:R.length,value:$}),R.push($)}l("update:modelValue",R)}function ge(n){if(d.platform.is.desktop!==!0)return;const m=n!==-1&&n<x.value?n:-1;g.value!==m&&(g.value=m)}function Re(n=1,m){if(i.value===!0){let p=g.value;do p=_t(p+n,-1,x.value-1);while(p!==-1&&p!==g.value&&he.value(e.options[p])===!0);g.value!==p&&(ge(p),E(p),m!==!0&&e.useInput===!0&&e.fillInput===!0&&Te(p>=0?G.value(e.options[p]):L,!0))}}function Pt(n,m){const p=R=>ce(re.value(R),n);return e.options.find(p)||m.find(p)||n}function Ne(n){const m=re.value(n);return ze.value.find(p=>ce(p,m))!==void 0}function lt(n){e.useInput===!0&&B.value!==null&&(n===void 0||B.value===n.target&&n.target.value===O.value)&&B.value.select()}function ot(n){c.isKeyCode(n,27)===!0&&i.value===!0&&(c.stop(n),me(),we()),l("keyup",n)}function nt(n){const{value:m}=n.target;if(n.keyCode!==void 0){ot(n);return}if(n.target.value="",C!==null&&(clearTimeout(C),C=null),k!==null&&(clearTimeout(k),k=null),we(),typeof m=="string"&&m.length!==0){const p=m.toLocaleLowerCase(),R=$=>{const X=e.options.find(K=>String($.value(K)).toLocaleLowerCase()===p);return X===void 0?!1:(v.value.indexOf(X)===-1?ve(X):me(),!0)},H=$=>{R(re)!==!0&&$!==!0&&R(G)!==!0&&be(m,!0,()=>H(!0))};H()}else a.clearValue(n)}function ut(n){l("keypress",n)}function it(n){if(l("keydown",n),c.shouldIgnoreKey(n)===!0)return;const m=b.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),p=n.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(g.value!==-1||m===!0);if(n.keyCode===27){c.prevent(n);return}if(n.keyCode===9&&p===!1){ye();return}if(n.target===void 0||n.target.id!==a.targetUid.value||a.editable.value!==!0)return;if(n.keyCode===40&&a.innerLoading.value!==!0&&i.value===!1){c.stopAndPrevent(n),Se();return}if(n.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&b.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?He(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&l("update:modelValue",null);return}(n.keyCode===35||n.keyCode===36)&&(typeof b.value!="string"||b.value.length===0)&&(c.stopAndPrevent(n),g.value=-1,Re(n.keyCode===36?1:-1,e.multiple)),(n.keyCode===33||n.keyCode===34)&&Z.value!==void 0&&(c.stopAndPrevent(n),g.value=Math.max(-1,Math.min(x.value,g.value+(n.keyCode===33?-1:1)*Z.value.view)),Re(n.keyCode===33?1:-1,e.multiple)),(n.keyCode===38||n.keyCode===40)&&(c.stopAndPrevent(n),Re(n.keyCode===38?-1:1,e.multiple));const R=x.value;if((_===void 0||T<Date.now())&&(_=""),R>0&&e.useInput!==!0&&n.key!==void 0&&n.key.length===1&&n.altKey===!1&&n.ctrlKey===!1&&n.metaKey===!1&&(n.keyCode!==32||_.length!==0)){i.value!==!0&&Se(n);const H=n.key.toLocaleLowerCase(),$=_.length===1&&_[0]===H;T=Date.now()+1500,$===!1&&(c.stopAndPrevent(n),_+=H);const X=new RegExp("^"+_.split("").map(Ke=>Tl.indexOf(Ke)!==-1?"\\"+Ke:Ke).join(".*"),"i");let K=g.value;if($===!0||K<0||X.test(G.value(e.options[K]))!==!0)do K=_t(K+1,-1,R-1);while(K!==g.value&&(he.value(e.options[K])===!0||X.test(G.value(e.options[K]))!==!0));g.value!==K&&t.nextTick(()=>{ge(K),E(K),K>=0&&e.useInput===!0&&e.fillInput===!0&&Te(G.value(e.options[K]),!0)});return}if(!(n.keyCode!==13&&(n.keyCode!==32||e.useInput===!0||_!=="")&&(n.keyCode!==9||p===!1))){if(n.keyCode!==9&&c.stopAndPrevent(n),g.value!==-1&&g.value<R){ve(e.options[g.value]);return}if(m===!0){const H=($,X)=>{if(X){if(Bt(X)!==!0)return}else X=e.newValueMode;if(xe("",e.multiple!==!0,!0),$==null)return;(X==="toggle"?ve:tt)($,X==="add-unique"),e.multiple!==!0&&(B.value!==null&&B.value.focus(),me())};if(e.onNewValue!==void 0?l("newValue",b.value,H):H(b.value),e.multiple!==!0)return}i.value===!0?ye():a.innerLoading.value!==!0&&Se()}}function at(){return y===!0?ee.value:M.value!==null&&M.value.contentEl!==null?M.value.contentEl:void 0}function $t(){return at()}function Dt(){return e.hideSelected===!0?[]:o["selected-item"]!==void 0?fe.value.map(n=>o["selected-item"](n)).slice():o.selected!==void 0?[].concat(o.selected()):e.useChips===!0?fe.value.map((n,m)=>t.h(gl,{key:"option-"+m,removable:a.editable.value===!0&&he.value(n.opt)!==!0,dense:!0,textColor:e.color,tabindex:ae.value,onRemove(){n.removeAtIndex(m)}},()=>t.h("span",{class:"ellipsis",[n.html===!0?"innerHTML":"textContent"]:G.value(n.opt)}))):[t.h("span",{[Ae.value===!0?"innerHTML":"textContent"]:J.value})]}function rt(){if(N.value===!0)return o["no-option"]!==void 0?o["no-option"]({inputValue:b.value}):void 0;const n=o.option!==void 0?o.option:p=>t.h(It,{key:p.index,...p.itemProps},()=>t.h(Pe,()=>t.h(Et,()=>t.h("span",{[p.html===!0?"innerHTML":"textContent"]:p.label}))));let m=ue("div",Ie.value.map(n));return o["before-options"]!==void 0&&(m=o["before-options"]().concat(m)),c.hMergeSlot(o["after-options"],m)}function Ht(n,m){const p=m===!0?{...Ee.value,...a.splitAttrs.attributes.value}:void 0,R={ref:m===!0?B:void 0,key:"i_t",class:A.value,style:e.inputStyle,value:b.value!==void 0?b.value:"",type:"search",...p,id:m===!0?a.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":n===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...Mt.value};return n!==!0&&y===!0&&(Array.isArray(R.class)===!0?R.class=[...R.class,"no-pointer-events"]:R.class+=" no-pointer-events"),t.h("input",R)}function st(n){C!==null&&(clearTimeout(C),C=null),k!==null&&(clearTimeout(k),k=null),!(n&&n.target&&n.target.qComposing===!0)&&(Te(n.target.value||""),q=!0,L=b.value,a.focused.value!==!0&&(y!==!0||V.value===!0)&&a.focus(),e.onFilter!==void 0&&(C=setTimeout(()=>{C=null,be(b.value)},e.inputDebounce)))}function Te(n,m){b.value!==n&&(b.value=n,m===!0||e.inputDebounce===0||e.inputDebounce==="0"?l("inputValue",n):k=setTimeout(()=>{k=null,l("inputValue",n)},e.inputDebounce))}function xe(n,m,p){q=p!==!0,e.useInput===!0&&(Te(n,!0),(m===!0||p!==!0)&&(L=n),m!==!0&&be(n))}function be(n,m,p){if(e.onFilter===void 0||m!==!0&&a.focused.value!==!0)return;a.innerLoading.value===!0?l("filterAbort"):(a.innerLoading.value=!0,f.value=!0),n!==""&&e.multiple!==!0&&v.value.length!==0&&q!==!0&&n===G.value(v.value[0])&&(n="");const R=setTimeout(()=>{i.value===!0&&(i.value=!1)},10);S!==null&&clearTimeout(S),S=R,l("filter",n,(H,$)=>{(m===!0||a.focused.value===!0)&&S===R&&(clearTimeout(S),typeof H=="function"&&H(),f.value=!1,t.nextTick(()=>{a.innerLoading.value=!1,a.editable.value===!0&&(m===!0?i.value===!0&&me():i.value===!0?je(!0):i.value=!0),typeof $=="function"&&t.nextTick(()=>{$(u)}),typeof p=="function"&&t.nextTick(()=>{p(u)})}))},()=>{a.focused.value===!0&&S===R&&(clearTimeout(S),a.innerLoading.value=!1,f.value=!1),i.value===!0&&(i.value=!1)})}function Nt(){return t.h(D.QMenu,{ref:M,class:z.value,style:e.popupContentStyle,modelValue:i.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&N.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:w.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:De.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...de.value,onScrollPassive:h,onBeforeShow:dt,onBeforeHide:jt,onShow:Kt},rt)}function jt(n){ft(n),ye()}function Kt(){ie()}function Ut(n){c.stop(n),B.value!==null&&B.value.focus(),V.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Qt(n){c.stop(n),t.nextTick(()=>{V.value=!1})}function Wt(){const n=[t.h(pl,{class:`col-auto ${a.fieldClass.value}`,...I.value,for:a.targetUid.value,dark:w.value,square:!0,loading:f.value,itemAligned:!1,filled:!0,stackLabel:b.value.length!==0,...a.splitAttrs.listeners.value,onFocus:Ut,onBlur:Qt},{...o,rawControl:()=>a.getControl(!0),before:void 0,after:void 0})];return i.value===!0&&n.push(t.h("div",{ref:ee,class:z.value+" scroll",style:e.popupContentStyle,...de.value,onClick:c.prevent,onScrollPassive:h},rt())),t.h(ql,{ref:P,modelValue:r.value,position:e.useInput===!0?"top":void 0,transitionShow:j,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:dt,onBeforeHide:Xt,onHide:Yt,onShow:Zt},()=>t.h("div",{class:"q-select__dialog"+(w.value===!0?" q-select__dialog--dark q-dark":"")+(V.value===!0?" q-select__dialog--focused":"")},n))}function Xt(n){ft(n),P.value!==null&&P.value.__updateRefocusTarget(a.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),a.focused.value=!1}function Yt(n){me(),a.focused.value===!1&&l("blur",n),we()}function Zt(){const n=document.activeElement;(n===null||n.id!==a.targetUid.value)&&B.value!==null&&B.value!==n&&B.value.focus(),ie()}function ye(){r.value!==!0&&(g.value=-1,i.value===!0&&(i.value=!1),a.focused.value===!1&&(S!==null&&(clearTimeout(S),S=null),a.innerLoading.value===!0&&(l("filterAbort"),a.innerLoading.value=!1,f.value=!1)))}function Se(n){a.editable.value===!0&&(y===!0?(a.onControlFocusin(n),r.value=!0,t.nextTick(()=>{a.focus()})):a.focus(),e.onFilter!==void 0?be(b.value):(N.value!==!0||o["no-option"]!==void 0)&&(i.value=!0))}function me(){r.value=!1,ye()}function we(){e.useInput===!0&&xe(e.multiple!==!0&&e.fillInput===!0&&v.value.length!==0&&G.value(v.value[0])||"",!0,!0)}function je(n){let m=-1;if(n===!0){if(v.value.length!==0){const p=re.value(v.value[0]);m=e.options.findIndex(R=>ce(re.value(R),p))}U(m)}ge(m)}function Jt(n,m){i.value===!0&&a.innerLoading.value===!1&&(U(-1,!0),t.nextTick(()=>{i.value===!0&&a.innerLoading.value===!1&&(n>m?U():je(!0))}))}function ct(){r.value===!1&&M.value!==null&&M.value.updatePosition()}function dt(n){n!==void 0&&c.stop(n),l("popupShow",n),a.hasPopupOpen=!0,a.onControlFocusin(n)}function ft(n){n!==void 0&&c.stop(n),l("popupHide",n),a.hasPopupOpen=!1,a.onControlFocusout(n)}function vt(){y=d.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?o["no-option"]!==void 0||e.onFilter!==void 0||N.value===!1:!0),j=d.platform.is.ios===!0&&y===!0&&e.useInput===!0?"fade":e.transitionShow}return t.onBeforeUpdate(vt),t.onUpdated(ct),vt(),t.onBeforeUnmount(()=>{C!==null&&clearTimeout(C),k!==null&&clearTimeout(k)}),Object.assign(u,{showPopup:Se,hidePopup:me,removeAtIndex:He,add:tt,toggleOption:ve,getOptionIndex:()=>g.value,setOptionIndex:ge,moveOptionSelection:Re,filter:be,updateMenuPosition:ct,updateInputValue:xe,isOptionSelected:Ne,getEmittingOptionValue:et,isOptionDisabled:(...n)=>he.value.apply(null,n)===!0,getOptionValue:(...n)=>re.value.apply(null,n),getOptionLabel:(...n)=>G.value.apply(null,n)}),Object.assign(a,{innerValue:v,fieldClass:t.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:Y,targetRef:B,hasValue:F,showPopup:Se,floatingLabel:t.computed(()=>e.hideSelected!==!0&&F.value===!0||typeof b.value=="number"||b.value.length!==0||Je(e.displayValue)),getControlChild:()=>{if(a.editable.value!==!1&&(r.value===!0||N.value!==!0||o["no-option"]!==void 0))return y===!0?Wt():Nt();a.hasPopupOpen===!0&&(a.hasPopupOpen=!1)},controlEvents:{onFocusin(n){a.onControlFocusin(n)},onFocusout(n){a.onControlFocusout(n,()=>{we(),ye()})},onClick(n){if(c.prevent(n),y!==!0&&i.value===!0){ye(),B.value!==null&&B.value.focus();return}Se(n)}},getControl:n=>{const m=Dt(),p=n===!0||r.value!==!0||y!==!0;if(e.useInput===!0)m.push(Ht(n,p));else if(a.editable.value===!0){const H=p===!0?Ee.value:void 0;m.push(t.h("input",{ref:p===!0?B:void 0,key:"d_t",class:"q-select__focus-target",id:p===!0?a.targetUid.value:void 0,value:J.value,readonly:!0,"data-autofocus":n===!0||e.autofocus===!0||void 0,...H,onKeydown:it,onKeyup:ot,onKeypress:ut})),p===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&m.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:nt}))}if(Q.value!==void 0&&e.disable!==!0&&ze.value.length!==0){const H=ze.value.map($=>t.h("option",{value:$,selected:!0}));m.push(t.h("select",{class:"hidden",name:Q.value,multiple:e.multiple},H))}const R=e.useInput===!0||p!==!0?void 0:a.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...R,...a.splitAttrs.listeners.value},m)},getInnerAppend:()=>e.loading!==!0&&f.value!==!0&&e.hideDropdownIcon!==!0?[t.h(c.QIcon,{class:"q-select__dropdown-icon"+(i.value===!0?" rotate-180":""),name:ke.value})]:null}),Ft(a)}}),Ml={class:"app-select__amount"},Ll=t.defineComponent({__name:"AppSelect",props:{modelValue:{},size:{default:c.SIZES.MD},options:{},multiple:{type:Boolean},label:{},placeholder:{},required:{type:Boolean},clearable:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},filtering:{type:Boolean},autofocus:{type:Boolean},rules:{},lazyRules:{type:[Boolean,String]},menuClass:{}},emits:["update:modelValue"],setup(e,{emit:o}){const l=e,u=o,d=t.ref(!1),i=t.ref(""),r=t.computed({get(){if(l.modelValue){if(l.multiple&&Array.isArray(l.modelValue))return l.options.filter(s=>l.modelValue.includes(s.value));if(!Array.isArray(l.modelValue))return l.options.find(s=>s.value===l.modelValue)}},set(s){if(!s){u("update:modelValue",void 0);return}if(l.multiple&&Array.isArray(s)){const y=s.map(q=>q.value);u("update:modelValue",y)}else Array.isArray(s)||u("update:modelValue",s.value)}}),g=t.computed(()=>{var s;if(Array.isArray(r.value)){if(l.multiple&&r.value.length==0)return l.placeholder}else return((s=r.value)==null?void 0:s.label)||l.placeholder||"";return""}),b=t.computed(()=>!(!l.clearable||!l.modelValue||l.modelValue&&Array.isArray(l.modelValue)&&!l.modelValue.length)),V=t.computed(()=>i.value?l.options.filter(s=>s.label.toLowerCase().includes(i.value.toLowerCase())):l.options),f=t.computed(()=>{if(l.rules)return l.required?[...l.rules,mt]:l.rules;if(l.required)return[mt]}),C=()=>{r.value=void 0},k=(s,y)=>{y(()=>{i.value=s})};return(s,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["app-select",[{"app-select_opened":d.value},`app-select_${s.size}`]])},[s.label?(t.openBlock(),t.createElementBlock("label",{key:0,class:t.normalizeClass(["app-select__label",{"app-select__label_bold":s.required}])},t.toDisplayString(s.required?`${s.label} *`:s.label),3)):t.createCommentVNode("",!0),t.createVNode(t.unref(Ol),{standout:"","hide-bottom-space":"","hide-dropdown-icon":"","no-error-icon":"",behavior:"menu","popup-no-route-dismiss":"","popup-content-class":`app-select-menu app-select-menu_${s.size} ${s.menuClass}`,placeholder:s.filtering&&"Почніть вводити","input-debounce":"50",modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=q=>r.value=q),options:V.value,multiple:s.multiple,"use-input":s.filtering&&(Array.isArray(r.value)||!r.value),rules:f.value,"lazy-rules":s.lazyRules,autofocus:s.autofocus,disable:s.disabled,loading:s.loading,onFilter:k,onPopupShow:y[1]||(y[1]=q=>d.value=!0),onPopupHide:y[2]||(y[2]=q=>d.value=!1)},{append:t.withCtx(()=>[b.value?(t.openBlock(),t.createElementBlock("i",{key:0,class:"icon-kl icon-kl-circle-close app-select__clear",onClick:t.withModifiers(C,["stop","prevent"])})):t.createCommentVNode("",!0),y[3]||(y[3]=t.createElementVNode("i",{class:"icon-kl icon-kl-arrow-down app-select__drop-icon"},null,-1))]),selected:t.withCtx(()=>{var q,S;return[Array.isArray(r.value)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[!s.filtering||r.value.length?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["app-select__selected",{"app-select__placeholder":!((q=r.value)!=null&&q.length)&&s.placeholder}])},[(S=r.value)!=null&&S.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y[4]||(y[4]=t.createTextVNode(" Вибрано ")),t.createElementVNode("span",Ml,t.toDisplayString(r.value.length),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(l.placeholder),1)],64))],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[!s.filtering||r.value?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["app-select__selected",{"app-select__placeholder":!r.value&&s.placeholder}])},t.toDisplayString(g.value),3)):t.createCommentVNode("",!0)],64))]}),option:t.withCtx(q=>[t.createVNode(It,t.mergeProps({class:["app-select__option",{"app-select__option_selected":q.selected}]},q.itemProps),{default:t.withCtx(()=>[l.multiple?(t.openBlock(),t.createBlock(Pe,{key:0,class:"option-multiple",avatar:""},{default:t.withCtx(()=>[t.createVNode(al,{size:"30px","model-value":q.selected,"onUpdate:modelValue":()=>q.toggleOption(q.opt)},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)):t.createCommentVNode("",!0),q.opt.done?(t.openBlock(),t.createBlock(Pe,{key:1,class:"option-done",avatar:""},{default:t.withCtx(()=>y[5]||(y[5]=[t.createElementVNode("i",{class:"icon-kl icon-kl-check option-done__icon"},null,-1)])),_:1})):t.createCommentVNode("",!0),t.createVNode(Pe,null,{default:t.withCtx(()=>[t.createVNode(Et,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(q.opt.label),1)]),_:2},1024)]),_:2},1024)]),_:2},1040,["class"])]),_:1},8,["popup-content-class","placeholder","modelValue","options","multiple","use-input","rules","lazy-rules","autofocus","disable","loading"])],2))}}),Pl=c._export_sfc(Ll,[["__scopeId","data-v-3977036d"]]);exports.default=Pl;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),s=require("./index-TqkCOfYg.cjs"),U=require("./QMenu-CpgYKR_O.cjs"),ne=require("./focusout-DzWGke-4.cjs");function Gt(e,o){const l=t.ref(null),u=t.computed(()=>e.disable===!0?null:t.h("span",{ref:l,class:"no-outline",tabindex:-1}));function d(i){const r=o.value;i!==void 0&&i.type.indexOf("key")===0?r!==null&&document.activeElement!==r&&r.contains(document.activeElement)===!0&&r.focus():l.value!==null&&(i===void 0||r!==null&&r.contains(i.target)===!0)&&l.value.focus()}return{refocusTargetEl:u,refocusTarget:d}}const At={name:String};function el(e={}){return(o,l,u)=>{o[l](t.h("input",{class:"hidden"+(u||""),...e.value}))}}function tl(e){return t.computed(()=>e.name||e.for)}const ll={xs:30,sm:35,md:40,lg:50,xl:60},ol={...s.useDarkProps,...s.useSizeProps,...At,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},nl=["update:modelValue"];function ul(e,o){const{props:l,slots:u,emit:d,proxy:i}=t.getCurrentInstance(),{$q:r}=i,g=s.useDark(l,r),b=t.ref(null),{refocusTargetEl:V,refocusTarget:f}=Gt(l,b),C=s.useSize(l,ll),k=t.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),c=t.computed(()=>{const x=t.toRaw(l.val);return k.value===!0?l.modelValue.findIndex(W=>t.toRaw(W)===x):-1}),y=t.computed(()=>k.value===!0?c.value!==-1:t.toRaw(l.modelValue)===t.toRaw(l.trueValue)),q=t.computed(()=>k.value===!0?c.value===-1:t.toRaw(l.modelValue)===t.toRaw(l.falseValue)),S=t.computed(()=>y.value===!1&&q.value===!1),L=t.computed(()=>l.disable===!0?-1:l.tabindex||0),N=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(g.value===!0?` q-${e}--dark`:"")+(l.dense===!0?` q-${e}--dense`:"")+(l.leftLabel===!0?" reverse":"")),_=t.computed(()=>{const x=y.value===!0?"truthy":q.value===!0?"falsy":"indet",W=l.color!==void 0&&(l.keepColor===!0||q.value!==!0)?` text-${l.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${x}${W}`}),T=t.computed(()=>{const x={type:"checkbox"};return l.name!==void 0&&Object.assign(x,{".checked":y.value,"^checked":y.value===!0?"checked":void 0,name:l.name,value:k.value===!0?l.val:l.trueValue}),x}),Y=el(T),B=t.computed(()=>{const x={tabindex:L.value,role:"checkbox","aria-label":l.label,"aria-checked":S.value===!0?"mixed":y.value===!0?"true":"false"};return l.disable===!0&&(x["aria-disabled"]="true"),x});function M(x){x!==void 0&&(s.stopAndPrevent(x),f(x)),l.disable!==!0&&d("update:modelValue",P(),x)}function P(){if(k.value===!0){if(y.value===!0){const x=l.modelValue.slice();return x.splice(c.value,1),x}return l.modelValue.concat([l.val])}if(y.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(q.value===!0){if(l.toggleOrder==="ft"||l.toggleIndeterminate===!1)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function ee(x){(x.keyCode===13||x.keyCode===32)&&s.stopAndPrevent(x)}function Q(x){(x.keyCode===13||x.keyCode===32)&&M(x)}const te=o(y,S);return Object.assign(i,{toggle:M}),()=>{const x=te();l.disable!==!0&&Y(x,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const W=[t.h("div",{class:_.value,style:C.value,"aria-hidden":"true"},x)];V.value!==null&&W.push(V.value);const le=l.label!==void 0?s.hMergeSlot(u.default,[l.label]):s.hSlot(u.default);return le!==void 0&&W.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},le)),t.h("div",{ref:b,class:N.value,...B.value,onClick:M,onKeydown:ee,onKeyup:Q},W)}}const il=()=>t.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[t.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[t.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),t.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),al=s.createComponent({name:"QCheckbox",props:ol,emits:nl,setup(e){const o=il();function l(u,d){const i=t.computed(()=>(u.value===!0?e.checkedIcon:d.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>i.value!==null?[t.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t.h(s.QIcon,{class:"q-checkbox__icon",name:i.value})])]:[o]}return ul("checkbox",l)}}),Pe=s.createComponent({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:o}){const l=t.computed(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>t.h("div",{class:l.value},s.hSlot(o.default))}}),Et=s.createComponent({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:o}){const l=t.computed(()=>parseInt(e.lines,10)),u=t.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(l.value===1?" ellipsis":"")),d=t.computed(()=>e.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>t.h("div",{style:d.value,class:u.value},s.hSlot(o.default))}}),It=s.createComponent({name:"QItem",props:{...s.useDarkProps,...s.useRouterLinkProps,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:o,emit:l}){const{proxy:{$q:u}}=t.getCurrentInstance(),d=s.useDark(e,u),{hasLink:i,linkAttrs:r,linkClass:g,linkTag:b,navigateOnClick:V}=s.useRouterLink(),f=t.ref(null),C=t.ref(null),k=t.computed(()=>e.clickable===!0||i.value===!0||e.tag==="label"),c=t.computed(()=>e.disable!==!0&&k.value===!0),y=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(d.value===!0?" q-item--dark":"")+(i.value===!0&&e.active===null?g.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(c.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),q=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function S(_){c.value===!0&&(C.value!==null&&(_.qKeyEvent!==!0&&document.activeElement===f.value?C.value.focus():document.activeElement===C.value&&f.value.focus()),V(_))}function L(_){if(c.value===!0&&s.isKeyCode(_,[13,32])===!0){s.stopAndPrevent(_),_.qKeyEvent=!0;const T=new MouseEvent("click",_);T.qKeyEvent=!0,f.value.dispatchEvent(T)}l("keyup",_)}function N(){const _=s.hUniqueSlot(o.default,[]);return c.value===!0&&_.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:C})),_}return()=>{const _={ref:f,class:y.value,style:q.value,role:"listitem",onClick:S,onKeyup:L};return c.value===!0?(_.tabindex=e.tabindex||"0",Object.assign(_,r.value)):k.value===!0&&(_["aria-disabled"]="true"),t.h(b.value,_,N())}}}),mt=e=>e?!0:"Обовʼязкове поле",pt=/^on[A-Z]/;function rl(){const{attrs:e,vnode:o}=t.getCurrentInstance(),l={listeners:t.ref({}),attributes:t.ref({})};function u(){const d={},i={};for(const r in e)r!=="class"&&r!=="style"&&pt.test(r)===!1&&(d[r]=e[r]);for(const r in o.props)pt.test(r)===!0&&(i[r]=o.props[r]);l.attributes.value=d,l.listeners.value=i}return t.onBeforeUpdate(u),u(),l}const sl="_q_fo_";function cl({validate:e,resetValidation:o,requiresQForm:l}){const u=t.inject(sl,!1);if(u!==!1){const{props:d,proxy:i}=t.getCurrentInstance();Object.assign(i,{validate:e,resetValidation:o}),t.watch(()=>d.disable,r=>{r===!0?(typeof o=="function"&&o(),u.unbindComponent(i)):u.bindComponent(i)}),t.onMounted(()=>{d.disable!==!0&&u.bindComponent(i)}),t.onBeforeUnmount(()=>{d.disable!==!0&&u.unbindComponent(i)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const ht=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,gt=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,bt=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Fe=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,Oe=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,Ue={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>ht.test(e),hexaColor:e=>gt.test(e),hexOrHexaColor:e=>bt.test(e),rgbColor:e=>Fe.test(e),rgbaColor:e=>Oe.test(e),rgbOrRgbaColor:e=>Fe.test(e)||Oe.test(e),hexOrRgbColor:e=>ht.test(e)||Fe.test(e),hexaOrRgbaColor:e=>gt.test(e)||Oe.test(e),anyColor:e=>bt.test(e)||Fe.test(e)||Oe.test(e)};function zt(e,o=250,l){let u=null;function d(){const i=arguments,r=()=>{u=null,l!==!0&&e.apply(this,i)};u!==null?clearTimeout(u):l===!0&&e.apply(this,i),u=setTimeout(r,o)}return d.cancel=()=>{u!==null&&clearTimeout(u)},d}const dl=[!0,!1,"ondemand"],fl={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>dl.includes(e)}};function vl(e,o){const{props:l,proxy:u}=t.getCurrentInstance(),d=t.ref(!1),i=t.ref(null),r=t.ref(!1);cl({validate:q,resetValidation:y});let g=0,b;const V=t.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),f=t.computed(()=>l.disable!==!0&&V.value===!0&&o.value===!1),C=t.computed(()=>l.error===!0||d.value===!0),k=t.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:i.value);t.watch(()=>l.modelValue,()=>{r.value=!0,f.value===!0&&l.lazyRules===!1&&S()});function c(){l.lazyRules!=="ondemand"&&f.value===!0&&r.value===!0&&S()}t.watch(()=>l.reactiveRules,L=>{L===!0?b===void 0&&(b=t.watch(()=>l.rules,c,{immediate:!0,deep:!0})):b!==void 0&&(b(),b=void 0)},{immediate:!0}),t.watch(()=>l.lazyRules,c),t.watch(e,L=>{L===!0?r.value=!0:f.value===!0&&l.lazyRules!=="ondemand"&&S()});function y(){g++,o.value=!1,r.value=!1,d.value=!1,i.value=null,S.cancel()}function q(L=l.modelValue){if(l.disable===!0||V.value===!1)return!0;const N=++g,_=o.value!==!0?()=>{r.value=!0}:()=>{},T=(B,M)=>{B===!0&&_(),d.value=B,i.value=M||null,o.value=!1},Y=[];for(let B=0;B<l.rules.length;B++){const M=l.rules[B];let P;if(typeof M=="function"?P=M(L,Ue):typeof M=="string"&&Ue[M]!==void 0&&(P=Ue[M](L)),P===!1||typeof P=="string")return T(!0,P),!1;P!==!0&&P!==void 0&&Y.push(P)}return Y.length===0?(T(!1),!0):(o.value=!0,Promise.all(Y).then(B=>{if(B===void 0||Array.isArray(B)===!1||B.length===0)return N===g&&T(!1),!0;const M=B.find(P=>P===!1||typeof P=="string");return N===g&&T(M!==void 0,M),M===void 0},B=>(N===g&&(console.error(B),T(!0)),!1)))}const S=zt(q,0);return t.onBeforeUnmount(()=>{b!==void 0&&b(),S.cancel()}),Object.assign(u,{resetValidation:y,validate:q}),ne.injectProp(u,"hasError",()=>C.value),{isDirtyModel:r,hasRules:V,hasError:C,errorMessage:k,validate:q,resetValidation:y}}function Je(e){return e!=null&&(""+e).length!==0}const ml={...s.useDarkProps,...fl,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},Ge={...ml,maxlength:[Number,String]},Rt=["update:modelValue","clear","focus","blur"];function Tt({requiredForAttr:e=!0,tagProp:o,changeEvent:l=!1}={}){const{props:u,proxy:d}=t.getCurrentInstance(),i=s.useDark(u,d.$q),r=U.useId({required:e,getValue:()=>u.for});return{requiredForAttr:e,changeEvent:l,tag:o===!0?t.computed(()=>u.tag):{value:"label"},isDark:i,editable:t.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:t.ref(!1),focused:t.ref(!1),hasPopupOpen:!1,splitAttrs:rl(),targetUid:r,rootRef:t.ref(null),targetRef:t.ref(null),controlRef:t.ref(null)}}function Ft(e){const{props:o,emit:l,slots:u,attrs:d,proxy:i}=t.getCurrentInstance(),{$q:r}=i;let g=null;e.hasValue===void 0&&(e.hasValue=t.computed(()=>Je(o.modelValue))),e.emitValue===void 0&&(e.emitValue=h=>{l("update:modelValue",h)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:ee,onFocusout:Q}),Object.assign(e,{clearValue:te,onControlFocusin:ee,onControlFocusout:Q,focus:M}),e.computedCounter===void 0&&(e.computedCounter=t.computed(()=>{if(o.counter!==!1){const h=typeof o.modelValue=="string"||typeof o.modelValue=="number"?(""+o.modelValue).length:Array.isArray(o.modelValue)===!0?o.modelValue.length:0,E=o.maxlength!==void 0?o.maxlength:o.maxValues;return h+(E!==void 0?" / "+E:"")}}));const{isDirtyModel:b,hasRules:V,hasError:f,errorMessage:C,resetValidation:k}=vl(e.focused,e.innerLoading),c=e.floatingLabel!==void 0?t.computed(()=>o.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):t.computed(()=>o.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),y=t.computed(()=>o.bottomSlots===!0||o.hint!==void 0||V.value===!0||o.counter===!0||o.error!==null),q=t.computed(()=>o.filled===!0?"filled":o.outlined===!0?"outlined":o.borderless===!0?"borderless":o.standout?"standout":"standard"),S=t.computed(()=>`q-field row no-wrap items-start q-field--${q.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(o.rounded===!0?" q-field--rounded":"")+(o.square===!0?" q-field--square":"")+(c.value===!0?" q-field--float":"")+(N.value===!0?" q-field--labeled":"")+(o.dense===!0?" q-field--dense":"")+(o.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(e.isDark.value===!0?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value===!0?" q-field--focused":"")+(f.value===!0?" q-field--error":"")+(f.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(o.hideBottomSpace!==!0&&y.value===!0?" q-field--with-bottom":"")+(o.disable===!0?" q-field--disabled":o.readonly===!0?" q-field--readonly":"")),L=t.computed(()=>"q-field__control relative-position row no-wrap"+(o.bgColor!==void 0?` bg-${o.bgColor}`:"")+(f.value===!0?" text-negative":typeof o.standout=="string"&&o.standout.length!==0&&e.focused.value===!0?` ${o.standout}`:o.color!==void 0?` text-${o.color}`:"")),N=t.computed(()=>o.labelSlot===!0||o.label!==void 0),_=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(o.labelColor!==void 0&&f.value!==!0?` text-${o.labelColor}`:"")),T=t.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:c.value,modelValue:o.modelValue,emitValue:e.emitValue})),Y=t.computed(()=>{const h={};return e.targetUid.value&&(h.for=e.targetUid.value),o.disable===!0&&(h["aria-disabled"]="true"),h});function B(){const h=document.activeElement;let E=e.targetRef!==void 0&&e.targetRef.value;E&&(h===null||h.id!==e.targetUid.value)&&(E.hasAttribute("tabindex")===!0||(E=E.querySelector("[tabindex]")),E&&E!==h&&E.focus({preventScroll:!0}))}function M(){U.addFocusFn(B)}function P(){U.removeFocusFn(B);const h=document.activeElement;h!==null&&e.rootRef.value.contains(h)&&h.blur()}function ee(h){g!==null&&(clearTimeout(g),g=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,l("focus",h))}function Q(h,E){g!==null&&clearTimeout(g),g=setTimeout(()=>{g=null,!(document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1))&&(e.focused.value===!0&&(e.focused.value=!1,l("blur",h)),E!==void 0&&E())})}function te(h){s.stopAndPrevent(h),r.platform.is.mobile!==!0?(e.targetRef!==void 0&&e.targetRef.value||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),o.type==="file"&&(e.inputRef.value.value=null),l("update:modelValue",null),e.changeEvent===!0&&l("change",null),l("clear",o.modelValue),t.nextTick(()=>{const E=b.value;k(),b.value=E})}function x(h){[13,32].includes(h.keyCode)&&te(h)}function W(){const h=[];return u.prepend!==void 0&&h.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:s.prevent},u.prepend())),h.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},le())),f.value===!0&&o.noErrorIcon===!1&&h.push(K("error",[t.h(s.QIcon,{name:r.iconSet.field.error,color:"negative"})])),o.loading===!0||e.innerLoading.value===!0?h.push(K("inner-loading-append",u.loading!==void 0?u.loading():[t.h(s.QSpinner,{color:o.color})])):o.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&h.push(K("inner-clearable-append",[t.h(s.QIcon,{class:"q-field__focusable-action",name:o.clearIcon||r.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":r.lang.label.clear,onKeyup:x,onClick:te})])),u.append!==void 0&&h.push(t.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:s.prevent},u.append())),e.getInnerAppend!==void 0&&h.push(K("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&h.push(e.getControlChild()),h}function le(){const h=[];return o.prefix!==void 0&&o.prefix!==null&&h.push(t.h("div",{class:"q-field__prefix no-pointer-events row items-center"},o.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&h.push(e.getShadowControl()),e.getControl!==void 0?h.push(e.getControl()):u.rawControl!==void 0?h.push(u.rawControl()):u.control!==void 0&&h.push(t.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0},u.control(T.value))),N.value===!0&&h.push(t.h("div",{class:_.value},s.hSlot(u.label,o.label))),o.suffix!==void 0&&o.suffix!==null&&h.push(t.h("div",{class:"q-field__suffix no-pointer-events row items-center"},o.suffix)),h.concat(s.hSlot(u.default))}function Z(){let h,E;f.value===!0?C.value!==null?(h=[t.h("div",{role:"alert"},C.value)],E=`q--slot-error-${C.value}`):(h=s.hSlot(u.error),E="q--slot-error"):(o.hideHint!==!0||e.focused.value===!0)&&(o.hint!==void 0?(h=[t.h("div",o.hint)],E=`q--slot-hint-${o.hint}`):(h=s.hSlot(u.hint),E="q--slot-hint"));const ie=o.counter===!0||u.counter!==void 0;if(o.hideBottomSpace===!0&&ie===!1&&h===void 0)return;const a=t.h("div",{key:E,class:"q-field__messages col"},h);return t.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(o.hideBottomSpace!==!0?"animated":"stale"),onClick:s.prevent},[o.hideBottomSpace===!0?a:t.h(t.Transition,{name:"q-transition--field-message"},()=>a),ie===!0?t.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():e.computedCounter.value):null])}function K(h,E){return E===null?null:t.h("div",{key:h,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},E)}let ue=!1;return t.onDeactivated(()=>{ue=!0}),t.onActivated(()=>{ue===!0&&o.autofocus===!0&&i.focus()}),o.autofocus===!0&&t.onMounted(()=>{i.focus()}),t.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(i,{focus:M,blur:P}),function(){const E=e.getControl===void 0&&u.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0,...Y.value}:Y.value;return t.h(e.tag.value,{ref:e.rootRef,class:[S.value,d.class],style:d.style,...E},[u.before!==void 0?t.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:s.prevent},u.before()):null,t.h("div",{class:"q-field__inner relative-position col self-stretch"},[t.h("div",{ref:e.controlRef,class:L.value,tabindex:-1,...e.controlEvents},W()),y.value===!0?Z():null]),u.after!==void 0?t.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:s.prevent},u.after()):null])}}const pl=s.createComponent({name:"QField",inheritAttrs:!1,props:{...Ge,tag:{type:String,default:"label"}},emits:Rt,setup(){return Ft(Tt({tagProp:!0}))}}),hl={xs:8,sm:10,md:14,lg:20,xl:24},gl=s.createComponent({name:"QChip",props:{...s.useDarkProps,...s.useSizeProps,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:o,emit:l}){const{proxy:{$q:u}}=t.getCurrentInstance(),d=s.useDark(e,u),i=s.useSize(e,hl),r=t.computed(()=>e.selected===!0||e.icon!==void 0),g=t.computed(()=>e.selected===!0?e.iconSelected||u.iconSet.chip.selected:e.icon),b=t.computed(()=>e.iconRemove||u.iconSet.chip.remove),V=t.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),f=t.computed(()=>{const S=e.outline===!0&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(e.outline===!1&&e.color!==void 0?` bg-${e.color}`:"")+(S?` text-${S} q-chip--colored`:"")+(e.disable===!0?" disabled":"")+(e.dense===!0?" q-chip--dense":"")+(e.outline===!0?" q-chip--outline":"")+(e.selected===!0?" q-chip--selected":"")+(V.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(d.value===!0?" q-chip--dark q-dark":"")}),C=t.computed(()=>{const S=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},L={...S,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||u.lang.label.remove};return{chip:S,remove:L}});function k(S){S.keyCode===13&&c(S)}function c(S){e.disable||(l("update:selected",!e.selected),l("click",S))}function y(S){(S.keyCode===void 0||S.keyCode===13)&&(s.stopAndPrevent(S),e.disable===!1&&(l("update:modelValue",!1),l("remove")))}function q(){const S=[];V.value===!0&&S.push(t.h("div",{class:"q-focus-helper"})),r.value===!0&&S.push(t.h(s.QIcon,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const L=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return S.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},s.hMergeSlotSafely(o.default,L))),e.iconRight&&S.push(t.h(s.QIcon,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&S.push(t.h(s.QIcon,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:b.value,...C.value.remove,onClick:y,onKeyup:y})),S}return()=>{if(e.modelValue===!1)return;const S={class:f.value,style:i.value};return V.value===!0&&Object.assign(S,C.value.chip,{onClick:c,onKeyup:k}),s.hDir("div",S,q(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[s.Ripple,e.ripple]])}}});function bl(e,o,l){function u(){}return t.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Ve=0,Qe,We,Be,Xe=!1,yt,St,wt,pe=null;function yl(e){Sl(e)&&s.stopAndPrevent(e)}function Sl(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const o=s.getEventPath(e),l=e.shiftKey&&!e.deltaX,u=!l&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),d=l||u?e.deltaY:e.deltaX;for(let i=0;i<o.length;i++){const r=o[i];if(U.hasScrollbar(r,u))return u?d<0&&r.scrollTop===0?!0:d>0&&r.scrollTop+r.clientHeight===r.scrollHeight:d<0&&r.scrollLeft===0?!0:d>0&&r.scrollLeft+r.clientWidth===r.scrollWidth}return!0}function Ct(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Me(e){Xe!==!0&&(Xe=!0,requestAnimationFrame(()=>{Xe=!1;const{height:o}=e.target,{clientHeight:l,scrollTop:u}=document.scrollingElement;(Be===void 0||o!==window.innerHeight)&&(Be=l-o,document.scrollingElement.scrollTop=u),u>Be&&(document.scrollingElement.scrollTop-=Math.ceil((u-Be)/8))}))}function kt(e){const o=document.body,l=window.visualViewport!==void 0;if(e==="add"){const{overflowY:u,overflowX:d}=window.getComputedStyle(o);Qe=U.getHorizontalScrollPosition(window),We=U.getVerticalScrollPosition(window),yt=o.style.left,St=o.style.top,wt=window.location.href,o.style.left=`-${Qe}px`,o.style.top=`-${We}px`,d!=="hidden"&&(d==="scroll"||o.scrollWidth>window.innerWidth)&&o.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||o.scrollHeight>window.innerHeight)&&o.classList.add("q-body--force-scrollbar-y"),o.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,ne.client.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Me,s.listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",Me,s.listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Ct,s.listenOpts.passiveCapture))}ne.client.is.desktop===!0&&ne.client.is.mac===!0&&window[`${e}EventListener`]("wheel",yl,s.listenOpts.notPassive),e==="remove"&&(ne.client.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",Me,s.listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",Me,s.listenOpts.passiveCapture)):window.removeEventListener("scroll",Ct,s.listenOpts.passiveCapture)),o.classList.remove("q-body--prevent-scroll"),o.classList.remove("q-body--force-scrollbar-x"),o.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,o.style.left=yt,o.style.top=St,window.location.href===wt&&window.scrollTo(Qe,We),Be=void 0)}function wl(e){let o="add";if(e===!0){if(Ve++,pe!==null){clearTimeout(pe),pe=null;return}if(Ve>1)return}else{if(Ve===0||(Ve--,Ve>0))return;if(o="remove",ne.client.is.ios===!0&&ne.client.is.nativeMobile===!0){pe!==null&&clearTimeout(pe),pe=setTimeout(()=>{kt(o),pe=null},100);return}}kt(o)}function Cl(){let e;return{preventBodyScroll(o){o!==e&&(e!==void 0||o===!0)&&(e=o,wl(o))}}}let Le=0;const kl={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},qt={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},ql=s.createComponent({name:"QDialog",inheritAttrs:!1,props:{...U.useModelToggleProps,...U.useTransitionProps,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...U.useModelToggleEmits,"shake","click","escapeKey"],setup(e,{slots:o,emit:l,attrs:u}){const d=t.getCurrentInstance(),i=t.ref(null),r=t.ref(!1),g=t.ref(!1);let b=null,V=null,f,C;const k=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:c}=Cl(),{registerTimeout:y}=U.useTimeout(),{registerTick:q,removeTick:S}=U.useTick(),{transitionProps:L,transitionStyle:N}=U.useTransition(e,()=>qt[e.position][0],()=>qt[e.position][1]),_=t.computed(()=>N.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:T,hidePortal:Y,portalIsAccessible:B,renderPortal:M}=U.usePortal(d,i,I,"dialog"),{hide:P}=U.useModelToggle({showing:r,hideOnRouteChange:k,handleShow:W,handleHide:le,processOnMount:!0});bl(r);const ee=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${kl[e.position]}`+(g.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),Q=t.computed(()=>r.value===!0&&e.seamless!==!0),te=t.computed(()=>e.autoClose===!0?{onClick:ie}:{}),x=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${Q.value===!0?"modal":"seamless"}`,u.class]);t.watch(()=>e.maximized,w=>{r.value===!0&&E(w)}),t.watch(Q,w=>{c(w),w===!0?(ne.addFocusout(v),U.addEscapeKey(ue)):(ne.removeFocusout(v),U.removeEscapeKey(ue))});function W(w){V=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,E(e.maximized),T(),g.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),q(Z)):S(),y(()=>{if(d.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:F,bottom:A}=document.activeElement.getBoundingClientRect(),{innerHeight:z}=window,H=window.visualViewport!==void 0?window.visualViewport.height:z;F>0&&A>H/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-H,A>=z?1/0:Math.ceil(document.scrollingElement.scrollTop+A-H/2))),document.activeElement.scrollIntoView()}C=!0,i.value.click(),C=!1}T(!0),g.value=!1,l("show",w)},e.transitionDuration)}function le(w){S(),h(!0),g.value=!0,Y(),V!==null&&(((w&&w.type.indexOf("key")===0?V.closest('[tabindex]:not([tabindex^="-"])'):void 0)||V).focus(),V=null),y(()=>{Y(!0),g.value=!1,l("hide",w)},e.transitionDuration)}function Z(w){U.addFocusFn(()=>{let F=i.value;if(F!==null){if(w!==void 0){const A=F.querySelector(w);if(A!==null){A.focus({preventScroll:!0});return}}F.contains(document.activeElement)!==!0&&(F=F.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||F.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||F.querySelector("[autofocus], [data-autofocus]")||F,F.focus({preventScroll:!0}))}})}function K(w){w&&typeof w.focus=="function"?w.focus({preventScroll:!0}):Z(),l("shake");const F=i.value;F!==null&&(F.classList.remove("q-animate--scale"),F.classList.add("q-animate--scale"),b!==null&&clearTimeout(b),b=setTimeout(()=>{b=null,i.value!==null&&(F.classList.remove("q-animate--scale"),Z())},170))}function ue(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&K():(l("escapeKey"),P()))}function h(w){b!==null&&(clearTimeout(b),b=null),(w===!0||r.value===!0)&&(E(!1),e.seamless!==!0&&(c(!1),ne.removeFocusout(v),U.removeEscapeKey(ue))),w!==!0&&(V=null)}function E(w){w===!0?f!==!0&&(Le<1&&document.body.classList.add("q-body--dialog"),Le++,f=!0):f===!0&&(Le<2&&document.body.classList.remove("q-body--dialog"),Le--,f=!1)}function ie(w){C!==!0&&(P(w),l("click",w))}function a(w){e.persistent!==!0&&e.noBackdropDismiss!==!0?P(w):e.noShake!==!0&&K()}function v(w){e.allowFocusOutside!==!0&&B.value===!0&&s.childHasFocus(i.value,w.target)!==!0&&Z('[tabindex]:not([tabindex="-1"])')}Object.assign(d.proxy,{focus:Z,shake:K,__updateRefocusTarget(w){V=w||null}}),t.onBeforeUnmount(h);function I(){return t.h("div",{role:"dialog","aria-modal":Q.value===!0?"true":"false",...u,class:x.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>Q.value===!0?t.h("div",{class:"q-dialog__backdrop fixed-full",style:_.value,"aria-hidden":"true",tabindex:-1,onClick:a}):null),t.h(t.Transition,L.value,()=>r.value===!0?t.h("div",{ref:i,class:ee.value,style:N.value,tabindex:-1,...te.value},s.hSlot(o.default)):null)])}return M}});let $e=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const o=document.createElement("div");Object.assign(o.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(o),e.scrollLeft=-1e3,$e=e.scrollLeft>=0,e.remove()}const oe=1e3,xl=["start","center","end","start-force","center-force","end-force"],Ot=Array.prototype.filter,Vl=window.getComputedStyle(document.body).overflowAnchor===void 0?s.noop:function(e,o){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const l=e.children||[];Ot.call(l,d=>d.dataset&&d.dataset.qVsAnchor!==void 0).forEach(d=>{delete d.dataset.qVsAnchor});const u=l[o];u&&u.dataset&&(u.dataset.qVsAnchor="")}))};function Ce(e,o){return e+o}function Ye(e,o,l,u,d,i,r,g){const b=e===window?document.scrollingElement||document.documentElement:e,V=d===!0?"offsetWidth":"offsetHeight",f={scrollStart:0,scrollViewSize:-r-g,scrollMaxSize:0,offsetStart:-r,offsetEnd:-g};if(d===!0?(e===window?(f.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,f.scrollViewSize+=document.documentElement.clientWidth):(f.scrollStart=b.scrollLeft,f.scrollViewSize+=b.clientWidth),f.scrollMaxSize=b.scrollWidth,i===!0&&(f.scrollStart=($e===!0?f.scrollMaxSize-f.scrollViewSize:0)-f.scrollStart)):(e===window?(f.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,f.scrollViewSize+=document.documentElement.clientHeight):(f.scrollStart=b.scrollTop,f.scrollViewSize+=b.clientHeight),f.scrollMaxSize=b.scrollHeight),l!==null)for(let C=l.previousElementSibling;C!==null;C=C.previousElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(f.offsetStart+=C[V]);if(u!==null)for(let C=u.nextElementSibling;C!==null;C=C.nextElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(f.offsetEnd+=C[V]);if(o!==e){const C=b.getBoundingClientRect(),k=o.getBoundingClientRect();d===!0?(f.offsetStart+=k.left-C.left,f.offsetEnd-=k.width):(f.offsetStart+=k.top-C.top,f.offsetEnd-=k.height),e!==window&&(f.offsetStart+=f.scrollStart),f.offsetEnd+=f.scrollMaxSize-f.offsetStart}return f}function xt(e,o,l,u){o==="end"&&(o=(e===window?document.body:e)[l===!0?"scrollWidth":"scrollHeight"]),e===window?l===!0?(u===!0&&(o=($e===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-o),window.scrollTo(o,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,o):l===!0?(u===!0&&(o=($e===!0?e.scrollWidth-e.offsetWidth:0)-o),e.scrollLeft=o):e.scrollTop=o}function _e(e,o,l,u){if(l>=u)return 0;const d=o.length,i=Math.floor(l/oe),r=Math.floor((u-1)/oe)+1;let g=e.slice(i,r).reduce(Ce,0);return l%oe!==0&&(g-=o.slice(i*oe,l).reduce(Ce,0)),u%oe!==0&&u!==d&&(g-=o.slice(u,r*oe).reduce(Ce,0)),g}const _l={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},Vt={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,..._l};function Bl({virtualScrollLength:e,getVirtualScrollTarget:o,getVirtualScrollEl:l,virtualScrollItemSizeComputed:u}){const d=t.getCurrentInstance(),{props:i,emit:r,proxy:g}=d,{$q:b}=g;let V,f,C,k=[],c;const y=t.ref(0),q=t.ref(0),S=t.ref({}),L=t.ref(null),N=t.ref(null),_=t.ref(null),T=t.ref({from:0,to:0}),Y=t.computed(()=>i.tableColspan!==void 0?i.tableColspan:100);u===void 0&&(u=t.computed(()=>i.virtualScrollItemSize));const B=t.computed(()=>u.value+";"+i.virtualScrollHorizontal),M=t.computed(()=>B.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);t.watch(M,()=>{K()}),t.watch(B,P);function P(){Z(f,!0)}function ee(a){Z(a===void 0?f:a)}function Q(a,v){const I=o();if(I==null||I.nodeType===8)return;const w=Ye(I,l(),L.value,N.value,i.virtualScrollHorizontal,b.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);C!==w.scrollViewSize&&K(w.scrollViewSize),x(I,w,Math.min(e.value-1,Math.max(0,parseInt(a,10)||0)),0,xl.indexOf(v)!==-1?v:f!==-1&&a>f?"end":"start")}function te(){const a=o();if(a==null||a.nodeType===8)return;const v=Ye(a,l(),L.value,N.value,i.virtualScrollHorizontal,b.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),I=e.value-1,w=v.scrollMaxSize-v.offsetStart-v.offsetEnd-q.value;if(V===v.scrollStart)return;if(v.scrollMaxSize<=0){x(a,v,0,0);return}C!==v.scrollViewSize&&K(v.scrollViewSize),W(T.value.from);const F=Math.floor(v.scrollMaxSize-Math.max(v.scrollViewSize,v.offsetEnd)-Math.min(c[I],v.scrollViewSize/2));if(F>0&&Math.ceil(v.scrollStart)>=F){x(a,v,I,v.scrollMaxSize-v.offsetEnd-k.reduce(Ce,0));return}let A=0,z=v.scrollStart-v.offsetStart,H=z;if(z<=w&&z+v.scrollViewSize>=y.value)z-=y.value,A=T.value.from,H=z;else for(let O=0;z>=k[O]&&A<I;O++)z-=k[O],A+=oe;for(;z>0&&A<I;)z-=c[A],z>-v.scrollViewSize?(A++,H=z):H=c[A]+z;x(a,v,A,H)}function x(a,v,I,w,F){const A=typeof F=="string"&&F.indexOf("-force")!==-1,z=A===!0?F.replace("-force",""):F,H=z!==void 0?z:"start";let O=Math.max(0,I-S.value[H]),J=O+S.value.total;J>e.value&&(J=e.value,O=Math.max(0,J-S.value.total)),V=v.scrollStart;const se=O!==T.value.from||J!==T.value.to;if(se===!1&&z===void 0){h(I);return}const{activeElement:Ae}=document,ae=_.value;se===!0&&ae!==null&&ae!==Ae&&ae.contains(Ae)===!0&&(ae.addEventListener("focusout",le),setTimeout(()=>{ae!==null&&ae.removeEventListener("focusout",le)})),Vl(ae,I-O);const Ee=z!==void 0?c.slice(O,I).reduce(Ce,0):0;if(se===!0){const de=J>=T.value.from&&O<=T.value.to?T.value.to:J;T.value={from:O,to:de},y.value=_e(k,c,0,O),q.value=_e(k,c,J,e.value),requestAnimationFrame(()=>{T.value.to!==J&&V===v.scrollStart&&(T.value={from:T.value.from,to:J},q.value=_e(k,c,J,e.value))})}requestAnimationFrame(()=>{if(V!==v.scrollStart)return;se===!0&&W(O);const de=c.slice(O,I).reduce(Ce,0),fe=de+v.offsetStart+y.value,Ie=fe+c[I];let ke=fe+w;if(z!==void 0){const De=de-Ee,qe=v.scrollStart+De;ke=A!==!0&&qe<fe&&Ie<qe+v.scrollViewSize?qe:z==="end"?Ie-v.scrollViewSize:fe-(z==="start"?0:Math.round((v.scrollViewSize-c[I])/2))}V=ke,xt(a,ke,i.virtualScrollHorizontal,b.lang.rtl),h(I)})}function W(a){const v=_.value;if(v){const I=Ot.call(v.children,O=>O.classList&&O.classList.contains("q-virtual-scroll--skip")===!1),w=I.length,F=i.virtualScrollHorizontal===!0?O=>O.getBoundingClientRect().width:O=>O.offsetHeight;let A=a,z,H;for(let O=0;O<w;){for(z=F(I[O]),O++;O<w&&I[O].classList.contains("q-virtual-scroll--with-prev")===!0;)z+=F(I[O]),O++;H=z-c[A],H!==0&&(c[A]+=H,k[Math.floor(A/oe)]+=H),A++}}}function le(){_.value!==null&&_.value!==void 0&&_.value.focus()}function Z(a,v){const I=1*u.value;(v===!0||Array.isArray(c)===!1)&&(c=[]);const w=c.length;c.length=e.value;for(let A=e.value-1;A>=w;A--)c[A]=I;const F=Math.floor((e.value-1)/oe);k=[];for(let A=0;A<=F;A++){let z=0;const H=Math.min((A+1)*oe,e.value);for(let O=A*oe;O<H;O++)z+=c[O];k.push(z)}f=-1,V=void 0,y.value=_e(k,c,0,T.value.from),q.value=_e(k,c,T.value.to,e.value),a>=0?(W(T.value.from),t.nextTick(()=>{Q(a)})):E()}function K(a){if(a===void 0&&typeof window<"u"){const z=o();z!=null&&z.nodeType!==8&&(a=Ye(z,l(),L.value,N.value,i.virtualScrollHorizontal,b.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}C=a;const v=parseFloat(i.virtualScrollSliceRatioBefore)||0,I=parseFloat(i.virtualScrollSliceRatioAfter)||0,w=1+v+I,F=a===void 0||a<=0?1:Math.ceil(a/u.value),A=Math.max(1,F,Math.ceil((i.virtualScrollSliceSize>0?i.virtualScrollSliceSize:10)/w));S.value={total:Math.ceil(A*w),start:Math.ceil(A*v),center:Math.ceil(A*(.5+v)),end:Math.ceil(A*(1+v)),view:F}}function ue(a,v){const I=i.virtualScrollHorizontal===!0?"width":"height",w={["--q-virtual-scroll-item-"+I]:u.value+"px"};return[a==="tbody"?t.h(a,{class:"q-virtual-scroll__padding",key:"before",ref:L},[t.h("tr",[t.h("td",{style:{[I]:`${y.value}px`,...w},colspan:Y.value})])]):t.h(a,{class:"q-virtual-scroll__padding",key:"before",ref:L,style:{[I]:`${y.value}px`,...w}}),t.h(a,{class:"q-virtual-scroll__content",key:"content",ref:_,tabindex:-1},v.flat()),a==="tbody"?t.h(a,{class:"q-virtual-scroll__padding",key:"after",ref:N},[t.h("tr",[t.h("td",{style:{[I]:`${q.value}px`,...w},colspan:Y.value})])]):t.h(a,{class:"q-virtual-scroll__padding",key:"after",ref:N,style:{[I]:`${q.value}px`,...w}})]}function h(a){f!==a&&(i.onVirtualScroll!==void 0&&r("virtualScroll",{index:a,from:T.value.from,to:T.value.to-1,direction:a<f?"decrease":"increase",ref:g}),f=a)}K();const E=zt(te,b.platform.is.ios===!0?120:35);t.onBeforeMount(()=>{K()});let ie=!1;return t.onDeactivated(()=>{ie=!0}),t.onActivated(()=>{if(ie!==!0)return;const a=o();V!==void 0&&a!==void 0&&a!==null&&a.nodeType!==8?xt(a,V,i.virtualScrollHorizontal,b.lang.rtl):Q(f)}),t.onBeforeUnmount(()=>{E.cancel()}),Object.assign(g,{scrollTo:Q,reset:P,refresh:ee}),{virtualScrollSliceRange:T,virtualScrollSliceSizeComputed:S,setVirtualScrollSize:K,onVirtualScrollEvt:E,localResetVirtualScroll:Z,padVirtualScroll:ue,scrollTo:Q,reset:P,refresh:ee}}const Al=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,El=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,Il=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,zl=/[a-z0-9_ -]$/i;function Rl(e){return function(l){if(l.type==="compositionend"||l.type==="change"){if(l.target.qComposing!==!0)return;l.target.qComposing=!1,e(l)}else l.type==="compositionupdate"&&l.target.qComposing!==!0&&typeof l.data=="string"&&(ne.client.is.firefox===!0?zl.test(l.data)===!1:Al.test(l.data)===!0||El.test(l.data)===!0||Il.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}function ce(e,o){if(e===o)return!0;if(e!==null&&o!==null&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;let l,u;if(e.constructor===Array){if(l=e.length,l!==o.length)return!1;for(u=l;u--!==0;)if(ce(e[u],o[u])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==o.size)return!1;let i=e.entries();for(u=i.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=i.next()}for(i=e.entries(),u=i.next();u.done!==!0;){if(ce(u.value[1],o.get(u.value[0]))!==!0)return!1;u=i.next()}return!0}if(e.constructor===Set){if(e.size!==o.size)return!1;const i=e.entries();for(u=i.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=i.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(l=e.length,l!==o.length)return!1;for(u=l;u--!==0;)if(e[u]!==o[u])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===o.toString();const d=Object.keys(e).filter(i=>e[i]!==void 0);if(l=d.length,l!==Object.keys(o).filter(i=>o[i]!==void 0).length)return!1;for(u=l;u--!==0;){const i=d[u];if(ce(e[i],o[i])!==!0)return!1}return!0}return e!==e&&o!==o}function _t(e,o,l){if(l<=o)return o;const u=l-o+1;let d=o+(e-o)%u;return d<o&&(d=u+d),d===0?0:d}const Bt=e=>["add","add-unique","toggle"].includes(e),Tl=".*+?^${}()|[]\\",Fl=Object.keys(Ge);function Ze(e,o){if(typeof e=="function")return e;const l=e!==void 0?e:o;return u=>u!==null&&typeof u=="object"&&l in u?u[l]:u}const Ol=s.createComponent({name:"QSelect",inheritAttrs:!1,props:{...Vt,...At,...Ge,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Bt},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:Vt.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Rt,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:o,emit:l}){const{proxy:u}=t.getCurrentInstance(),{$q:d}=u,i=t.ref(!1),r=t.ref(!1),g=t.ref(-1),b=t.ref(""),V=t.ref(!1),f=t.ref(!1);let C=null,k=null,c,y,q,S=null,L,N,_,T;const Y=t.ref(null),B=t.ref(null),M=t.ref(null),P=t.ref(null),ee=t.ref(null),Q=tl(e),te=Rl(st),x=t.computed(()=>Array.isArray(e.options)?e.options.length:0),W=t.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:le,virtualScrollSliceSizeComputed:Z,localResetVirtualScroll:K,padVirtualScroll:ue,onVirtualScrollEvt:h,scrollTo:E,setVirtualScrollSize:ie}=Bl({virtualScrollLength:x,getVirtualScrollTarget:$t,getVirtualScrollEl:at,virtualScrollItemSizeComputed:W}),a=Tt(),v=t.computed(()=>{const n=e.mapOptions===!0&&e.multiple!==!0,m=e.modelValue!==void 0&&(e.modelValue!==null||n===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const p=e.mapOptions===!0&&c!==void 0?c:[],R=m.map(D=>Pt(D,p));return e.modelValue===null&&n===!0?R.filter(D=>D!==null):R}return m}),I=t.computed(()=>{const n={};return Fl.forEach(m=>{const p=e[m];p!==void 0&&(n[m]=p)}),n}),w=t.computed(()=>e.optionsDark===null?a.isDark.value:e.optionsDark),F=t.computed(()=>Je(v.value)),A=t.computed(()=>{let n="q-field__input q-placeholder col";return e.hideSelected===!0||v.value.length===0?[n,e.inputClass]:(n+=" q-field__input--padding",e.inputClass===void 0?n:[n,e.inputClass])}),z=t.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),H=t.computed(()=>x.value===0),O=t.computed(()=>v.value.map(n=>G.value(n)).join(", ")),J=t.computed(()=>e.displayValue!==void 0?e.displayValue:O.value),se=t.computed(()=>e.optionsHtml===!0?()=>!0:n=>n!=null&&n.html===!0),Ae=t.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||v.value.some(se.value))),ae=t.computed(()=>a.focused.value===!0?e.tabindex:-1),Ee=t.computed(()=>{const n={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly===!0?"true":"false","aria-autocomplete":e.useInput===!0?"list":"none","aria-expanded":i.value===!0?"true":"false","aria-controls":`${a.targetUid.value}_lb`};return g.value>=0&&(n["aria-activedescendant"]=`${a.targetUid.value}_${g.value}`),n}),de=t.computed(()=>({id:`${a.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),fe=t.computed(()=>v.value.map((n,m)=>({index:m,opt:n,html:se.value(n),selected:!0,removeAtIndex:Lt,toggleOption:ve,tabindex:ae.value}))),Ie=t.computed(()=>{if(x.value===0)return[];const{from:n,to:m}=le.value;return e.options.slice(n,m).map((p,R)=>{const D=he.value(p)===!0,$=Ne(p)===!0,X=n+R,j={clickable:!0,active:$,activeClass:qe.value,manualFocus:!0,focused:!1,disable:D,tabindex:-1,dense:e.optionsDense,dark:w.value,role:"option","aria-selected":$===!0?"true":"false",id:`${a.targetUid.value}_${X}`,onClick:()=>{ve(p)}};return D!==!0&&(g.value===X&&(j.focused=!0),d.platform.is.desktop===!0&&(j.onMousemove=()=>{i.value===!0&&ge(X)})),{index:X,opt:p,html:se.value(p),label:G.value(p),selected:j.active,focused:j.focused,toggleOption:ve,setOptionIndex:ge,itemProps:j}})}),ke=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:d.iconSet.arrow.dropdown),De=t.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),qe=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),re=t.computed(()=>Ze(e.optionValue,"value")),G=t.computed(()=>Ze(e.optionLabel,"label")),he=t.computed(()=>Ze(e.optionDisable,"disable")),ze=t.computed(()=>v.value.map(re.value)),Mt=t.computed(()=>{const n={onInput:st,onChange:te,onKeydown:it,onKeyup:nt,onKeypress:ut,onFocus:lt,onClick(m){y===!0&&s.stop(m)}};return n.onCompositionstart=n.onCompositionupdate=n.onCompositionend=te,n});t.watch(v,n=>{c=n,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&a.innerLoading.value!==!0&&(r.value!==!0&&i.value!==!0||F.value!==!0)&&(q!==!0&&we(),(r.value===!0||i.value===!0)&&be(""))},{immediate:!0}),t.watch(()=>e.fillInput,we),t.watch(i,je),t.watch(x,Jt);function et(n){return e.emitValue===!0?re.value(n):n}function He(n){if(n!==-1&&n<v.value.length)if(e.multiple===!0){const m=e.modelValue.slice();l("remove",{index:n,value:m.splice(n,1)[0]}),l("update:modelValue",m)}else l("update:modelValue",null)}function Lt(n){He(n),a.focus()}function tt(n,m){const p=et(n);if(e.multiple!==!0){e.fillInput===!0&&xe(G.value(n),!0,!0),l("update:modelValue",p);return}if(v.value.length===0){l("add",{index:0,value:p}),l("update:modelValue",e.multiple===!0?[p]:p);return}if(m===!0&&Ne(n)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const R=e.modelValue.slice();l("add",{index:R.length,value:p}),R.push(p),l("update:modelValue",R)}function ve(n,m){if(a.editable.value!==!0||n===void 0||he.value(n)===!0)return;const p=re.value(n);if(e.multiple!==!0){m!==!0&&(xe(e.fillInput===!0?G.value(n):"",!0,!0),me()),B.value!==null&&B.value.focus(),(v.value.length===0||ce(re.value(v.value[0]),p)!==!0)&&l("update:modelValue",e.emitValue===!0?p:n);return}if((y!==!0||V.value===!0)&&a.focus(),lt(),v.value.length===0){const $=e.emitValue===!0?p:n;l("add",{index:0,value:$}),l("update:modelValue",e.multiple===!0?[$]:$);return}const R=e.modelValue.slice(),D=ze.value.findIndex($=>ce($,p));if(D!==-1)l("remove",{index:D,value:R.splice(D,1)[0]});else{if(e.maxValues!==void 0&&R.length>=e.maxValues)return;const $=e.emitValue===!0?p:n;l("add",{index:R.length,value:$}),R.push($)}l("update:modelValue",R)}function ge(n){if(d.platform.is.desktop!==!0)return;const m=n!==-1&&n<x.value?n:-1;g.value!==m&&(g.value=m)}function Re(n=1,m){if(i.value===!0){let p=g.value;do p=_t(p+n,-1,x.value-1);while(p!==-1&&p!==g.value&&he.value(e.options[p])===!0);g.value!==p&&(ge(p),E(p),m!==!0&&e.useInput===!0&&e.fillInput===!0&&Te(p>=0?G.value(e.options[p]):L,!0))}}function Pt(n,m){const p=R=>ce(re.value(R),n);return e.options.find(p)||m.find(p)||n}function Ne(n){const m=re.value(n);return ze.value.find(p=>ce(p,m))!==void 0}function lt(n){e.useInput===!0&&B.value!==null&&(n===void 0||B.value===n.target&&n.target.value===O.value)&&B.value.select()}function ot(n){s.isKeyCode(n,27)===!0&&i.value===!0&&(s.stop(n),me(),we()),l("keyup",n)}function nt(n){const{value:m}=n.target;if(n.keyCode!==void 0){ot(n);return}if(n.target.value="",C!==null&&(clearTimeout(C),C=null),k!==null&&(clearTimeout(k),k=null),we(),typeof m=="string"&&m.length!==0){const p=m.toLocaleLowerCase(),R=$=>{const X=e.options.find(j=>String($.value(j)).toLocaleLowerCase()===p);return X===void 0?!1:(v.value.indexOf(X)===-1?ve(X):me(),!0)},D=$=>{R(re)!==!0&&$!==!0&&R(G)!==!0&&be(m,!0,()=>D(!0))};D()}else a.clearValue(n)}function ut(n){l("keypress",n)}function it(n){if(l("keydown",n),s.shouldIgnoreKey(n)===!0)return;const m=b.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),p=n.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(g.value!==-1||m===!0);if(n.keyCode===27){s.prevent(n);return}if(n.keyCode===9&&p===!1){ye();return}if(n.target===void 0||n.target.id!==a.targetUid.value||a.editable.value!==!0)return;if(n.keyCode===40&&a.innerLoading.value!==!0&&i.value===!1){s.stopAndPrevent(n),Se();return}if(n.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&b.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?He(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&l("update:modelValue",null);return}(n.keyCode===35||n.keyCode===36)&&(typeof b.value!="string"||b.value.length===0)&&(s.stopAndPrevent(n),g.value=-1,Re(n.keyCode===36?1:-1,e.multiple)),(n.keyCode===33||n.keyCode===34)&&Z.value!==void 0&&(s.stopAndPrevent(n),g.value=Math.max(-1,Math.min(x.value,g.value+(n.keyCode===33?-1:1)*Z.value.view)),Re(n.keyCode===33?1:-1,e.multiple)),(n.keyCode===38||n.keyCode===40)&&(s.stopAndPrevent(n),Re(n.keyCode===38?-1:1,e.multiple));const R=x.value;if((_===void 0||T<Date.now())&&(_=""),R>0&&e.useInput!==!0&&n.key!==void 0&&n.key.length===1&&n.altKey===!1&&n.ctrlKey===!1&&n.metaKey===!1&&(n.keyCode!==32||_.length!==0)){i.value!==!0&&Se(n);const D=n.key.toLocaleLowerCase(),$=_.length===1&&_[0]===D;T=Date.now()+1500,$===!1&&(s.stopAndPrevent(n),_+=D);const X=new RegExp("^"+_.split("").map(Ke=>Tl.indexOf(Ke)!==-1?"\\"+Ke:Ke).join(".*"),"i");let j=g.value;if($===!0||j<0||X.test(G.value(e.options[j]))!==!0)do j=_t(j+1,-1,R-1);while(j!==g.value&&(he.value(e.options[j])===!0||X.test(G.value(e.options[j]))!==!0));g.value!==j&&t.nextTick(()=>{ge(j),E(j),j>=0&&e.useInput===!0&&e.fillInput===!0&&Te(G.value(e.options[j]),!0)});return}if(!(n.keyCode!==13&&(n.keyCode!==32||e.useInput===!0||_!=="")&&(n.keyCode!==9||p===!1))){if(n.keyCode!==9&&s.stopAndPrevent(n),g.value!==-1&&g.value<R){ve(e.options[g.value]);return}if(m===!0){const D=($,X)=>{if(X){if(Bt(X)!==!0)return}else X=e.newValueMode;if(xe("",e.multiple!==!0,!0),$==null)return;(X==="toggle"?ve:tt)($,X==="add-unique"),e.multiple!==!0&&(B.value!==null&&B.value.focus(),me())};if(e.onNewValue!==void 0?l("newValue",b.value,D):D(b.value),e.multiple!==!0)return}i.value===!0?ye():a.innerLoading.value!==!0&&Se()}}function at(){return y===!0?ee.value:M.value!==null&&M.value.contentEl!==null?M.value.contentEl:void 0}function $t(){return at()}function Dt(){return e.hideSelected===!0?[]:o["selected-item"]!==void 0?fe.value.map(n=>o["selected-item"](n)).slice():o.selected!==void 0?[].concat(o.selected()):e.useChips===!0?fe.value.map((n,m)=>t.h(gl,{key:"option-"+m,removable:a.editable.value===!0&&he.value(n.opt)!==!0,dense:!0,textColor:e.color,tabindex:ae.value,onRemove(){n.removeAtIndex(m)}},()=>t.h("span",{class:"ellipsis",[n.html===!0?"innerHTML":"textContent"]:G.value(n.opt)}))):[t.h("span",{[Ae.value===!0?"innerHTML":"textContent"]:J.value})]}function rt(){if(H.value===!0)return o["no-option"]!==void 0?o["no-option"]({inputValue:b.value}):void 0;const n=o.option!==void 0?o.option:p=>t.h(It,{key:p.index,...p.itemProps},()=>t.h(Pe,()=>t.h(Et,()=>t.h("span",{[p.html===!0?"innerHTML":"textContent"]:p.label}))));let m=ue("div",Ie.value.map(n));return o["before-options"]!==void 0&&(m=o["before-options"]().concat(m)),s.hMergeSlot(o["after-options"],m)}function Ht(n,m){const p=m===!0?{...Ee.value,...a.splitAttrs.attributes.value}:void 0,R={ref:m===!0?B:void 0,key:"i_t",class:A.value,style:e.inputStyle,value:b.value!==void 0?b.value:"",type:"search",...p,id:m===!0?a.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":n===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...Mt.value};return n!==!0&&y===!0&&(Array.isArray(R.class)===!0?R.class=[...R.class,"no-pointer-events"]:R.class+=" no-pointer-events"),t.h("input",R)}function st(n){C!==null&&(clearTimeout(C),C=null),k!==null&&(clearTimeout(k),k=null),!(n&&n.target&&n.target.qComposing===!0)&&(Te(n.target.value||""),q=!0,L=b.value,a.focused.value!==!0&&(y!==!0||V.value===!0)&&a.focus(),e.onFilter!==void 0&&(C=setTimeout(()=>{C=null,be(b.value)},e.inputDebounce)))}function Te(n,m){b.value!==n&&(b.value=n,m===!0||e.inputDebounce===0||e.inputDebounce==="0"?l("inputValue",n):k=setTimeout(()=>{k=null,l("inputValue",n)},e.inputDebounce))}function xe(n,m,p){q=p!==!0,e.useInput===!0&&(Te(n,!0),(m===!0||p!==!0)&&(L=n),m!==!0&&be(n))}function be(n,m,p){if(e.onFilter===void 0||m!==!0&&a.focused.value!==!0)return;a.innerLoading.value===!0?l("filterAbort"):(a.innerLoading.value=!0,f.value=!0),n!==""&&e.multiple!==!0&&v.value.length!==0&&q!==!0&&n===G.value(v.value[0])&&(n="");const R=setTimeout(()=>{i.value===!0&&(i.value=!1)},10);S!==null&&clearTimeout(S),S=R,l("filter",n,(D,$)=>{(m===!0||a.focused.value===!0)&&S===R&&(clearTimeout(S),typeof D=="function"&&D(),f.value=!1,t.nextTick(()=>{a.innerLoading.value=!1,a.editable.value===!0&&(m===!0?i.value===!0&&me():i.value===!0?je(!0):i.value=!0),typeof $=="function"&&t.nextTick(()=>{$(u)}),typeof p=="function"&&t.nextTick(()=>{p(u)})}))},()=>{a.focused.value===!0&&S===R&&(clearTimeout(S),a.innerLoading.value=!1,f.value=!1),i.value===!0&&(i.value=!1)})}function Nt(){return t.h(U.QMenu,{ref:M,class:z.value,style:e.popupContentStyle,modelValue:i.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&H.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:w.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:De.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...de.value,onScrollPassive:h,onBeforeShow:dt,onBeforeHide:jt,onShow:Kt},rt)}function jt(n){ft(n),ye()}function Kt(){ie()}function Ut(n){s.stop(n),B.value!==null&&B.value.focus(),V.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Qt(n){s.stop(n),t.nextTick(()=>{V.value=!1})}function Wt(){const n=[t.h(pl,{class:`col-auto ${a.fieldClass.value}`,...I.value,for:a.targetUid.value,dark:w.value,square:!0,loading:f.value,itemAligned:!1,filled:!0,stackLabel:b.value.length!==0,...a.splitAttrs.listeners.value,onFocus:Ut,onBlur:Qt},{...o,rawControl:()=>a.getControl(!0),before:void 0,after:void 0})];return i.value===!0&&n.push(t.h("div",{ref:ee,class:z.value+" scroll",style:e.popupContentStyle,...de.value,onClick:s.prevent,onScrollPassive:h},rt())),t.h(ql,{ref:P,modelValue:r.value,position:e.useInput===!0?"top":void 0,transitionShow:N,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:dt,onBeforeHide:Xt,onHide:Yt,onShow:Zt},()=>t.h("div",{class:"q-select__dialog"+(w.value===!0?" q-select__dialog--dark q-dark":"")+(V.value===!0?" q-select__dialog--focused":"")},n))}function Xt(n){ft(n),P.value!==null&&P.value.__updateRefocusTarget(a.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),a.focused.value=!1}function Yt(n){me(),a.focused.value===!1&&l("blur",n),we()}function Zt(){const n=document.activeElement;(n===null||n.id!==a.targetUid.value)&&B.value!==null&&B.value!==n&&B.value.focus(),ie()}function ye(){r.value!==!0&&(g.value=-1,i.value===!0&&(i.value=!1),a.focused.value===!1&&(S!==null&&(clearTimeout(S),S=null),a.innerLoading.value===!0&&(l("filterAbort"),a.innerLoading.value=!1,f.value=!1)))}function Se(n){a.editable.value===!0&&(y===!0?(a.onControlFocusin(n),r.value=!0,t.nextTick(()=>{a.focus()})):a.focus(),e.onFilter!==void 0?be(b.value):(H.value!==!0||o["no-option"]!==void 0)&&(i.value=!0))}function me(){r.value=!1,ye()}function we(){e.useInput===!0&&xe(e.multiple!==!0&&e.fillInput===!0&&v.value.length!==0&&G.value(v.value[0])||"",!0,!0)}function je(n){let m=-1;if(n===!0){if(v.value.length!==0){const p=re.value(v.value[0]);m=e.options.findIndex(R=>ce(re.value(R),p))}K(m)}ge(m)}function Jt(n,m){i.value===!0&&a.innerLoading.value===!1&&(K(-1,!0),t.nextTick(()=>{i.value===!0&&a.innerLoading.value===!1&&(n>m?K():je(!0))}))}function ct(){r.value===!1&&M.value!==null&&M.value.updatePosition()}function dt(n){n!==void 0&&s.stop(n),l("popupShow",n),a.hasPopupOpen=!0,a.onControlFocusin(n)}function ft(n){n!==void 0&&s.stop(n),l("popupHide",n),a.hasPopupOpen=!1,a.onControlFocusout(n)}function vt(){y=d.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?o["no-option"]!==void 0||e.onFilter!==void 0||H.value===!1:!0),N=d.platform.is.ios===!0&&y===!0&&e.useInput===!0?"fade":e.transitionShow}return t.onBeforeUpdate(vt),t.onUpdated(ct),vt(),t.onBeforeUnmount(()=>{C!==null&&clearTimeout(C),k!==null&&clearTimeout(k)}),Object.assign(u,{showPopup:Se,hidePopup:me,removeAtIndex:He,add:tt,toggleOption:ve,getOptionIndex:()=>g.value,setOptionIndex:ge,moveOptionSelection:Re,filter:be,updateMenuPosition:ct,updateInputValue:xe,isOptionSelected:Ne,getEmittingOptionValue:et,isOptionDisabled:(...n)=>he.value.apply(null,n)===!0,getOptionValue:(...n)=>re.value.apply(null,n),getOptionLabel:(...n)=>G.value.apply(null,n)}),Object.assign(a,{innerValue:v,fieldClass:t.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:Y,targetRef:B,hasValue:F,showPopup:Se,floatingLabel:t.computed(()=>e.hideSelected!==!0&&F.value===!0||typeof b.value=="number"||b.value.length!==0||Je(e.displayValue)),getControlChild:()=>{if(a.editable.value!==!1&&(r.value===!0||H.value!==!0||o["no-option"]!==void 0))return y===!0?Wt():Nt();a.hasPopupOpen===!0&&(a.hasPopupOpen=!1)},controlEvents:{onFocusin(n){a.onControlFocusin(n)},onFocusout(n){a.onControlFocusout(n,()=>{we(),ye()})},onClick(n){if(s.prevent(n),y!==!0&&i.value===!0){ye(),B.value!==null&&B.value.focus();return}Se(n)}},getControl:n=>{const m=Dt(),p=n===!0||r.value!==!0||y!==!0;if(e.useInput===!0)m.push(Ht(n,p));else if(a.editable.value===!0){const D=p===!0?Ee.value:void 0;m.push(t.h("input",{ref:p===!0?B:void 0,key:"d_t",class:"q-select__focus-target",id:p===!0?a.targetUid.value:void 0,value:J.value,readonly:!0,"data-autofocus":n===!0||e.autofocus===!0||void 0,...D,onKeydown:it,onKeyup:ot,onKeypress:ut})),p===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&m.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:nt}))}if(Q.value!==void 0&&e.disable!==!0&&ze.value.length!==0){const D=ze.value.map($=>t.h("option",{value:$,selected:!0}));m.push(t.h("select",{class:"hidden",name:Q.value,multiple:e.multiple},D))}const R=e.useInput===!0||p!==!0?void 0:a.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...R,...a.splitAttrs.listeners.value},m)},getInnerAppend:()=>e.loading!==!0&&f.value!==!0&&e.hideDropdownIcon!==!0?[t.h(s.QIcon,{class:"q-select__dropdown-icon"+(i.value===!0?" rotate-180":""),name:ke.value})]:null}),Ft(a)}}),Ml={class:"app-select__amount"},Ll=t.defineComponent({__name:"AppSelect",props:{modelValue:{},size:{default:s.SIZES.MD},options:{},multiple:{type:Boolean},label:{},placeholder:{},required:{type:Boolean},clearable:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},filtering:{type:Boolean},autofocus:{type:Boolean},rules:{},lazyRules:{type:[Boolean,String]},menuClass:{}},emits:["update:modelValue"],setup(e,{emit:o}){const l=e,u=o,d=t.ref(!1),i=t.ref(""),r=t.computed({get(){if(l.modelValue){if(l.multiple&&Array.isArray(l.modelValue))return l.options.filter(c=>l.modelValue.includes(c.value));if(!Array.isArray(l.modelValue))return l.options.find(c=>c.value===l.modelValue)}},set(c){if(!c){u("update:modelValue",void 0);return}if(l.multiple&&Array.isArray(c)){const y=c.map(q=>q.value);u("update:modelValue",y)}else Array.isArray(c)||u("update:modelValue",c.value)}}),g=t.computed(()=>{var c;if(Array.isArray(r.value)){if(l.multiple&&r.value.length==0)return l.placeholder}else return((c=r.value)==null?void 0:c.label)||l.placeholder||"";return""}),b=t.computed(()=>!(!l.clearable||!l.modelValue||l.modelValue&&Array.isArray(l.modelValue)&&!l.modelValue.length)),V=t.computed(()=>i.value?l.options.filter(c=>c.label.toLowerCase().includes(i.value.toLowerCase())):l.options),f=t.computed(()=>{if(l.rules)return l.required?[...l.rules,mt]:l.rules;if(l.required)return[mt]}),C=()=>{r.value=void 0},k=(c,y)=>{y(()=>{i.value=c})};return(c,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["app-select",[{"app-select_opened":d.value},`app-select_${c.size}`]])},[c.label?(t.openBlock(),t.createElementBlock("label",{key:0,class:t.normalizeClass(["app-select__label",{"app-select__label_bold":c.required}])},t.toDisplayString(c.required?`${c.label} *`:c.label),3)):t.createCommentVNode("",!0),t.createVNode(t.unref(Ol),{standout:"","hide-bottom-space":"","hide-dropdown-icon":"","no-error-icon":"",behavior:"menu","popup-no-route-dismiss":"","popup-content-class":`app-select-menu app-select-menu_${c.size} ${c.menuClass}`,placeholder:c.filtering&&"Почніть вводити","input-debounce":"50",modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=q=>r.value=q),options:V.value,multiple:c.multiple,"use-input":c.filtering&&(Array.isArray(r.value)||!r.value),rules:f.value,"lazy-rules":c.lazyRules,autofocus:c.autofocus,disable:c.disabled,loading:c.loading,onFilter:k,onPopupShow:y[1]||(y[1]=q=>d.value=!0),onPopupHide:y[2]||(y[2]=q=>d.value=!1)},{append:t.withCtx(()=>[b.value?(t.openBlock(),t.createElementBlock("i",{key:0,class:"icon-kl icon-kl-circle-close app-select__clear",onClick:t.withModifiers(C,["stop","prevent"])})):t.createCommentVNode("",!0),y[3]||(y[3]=t.createElementVNode("i",{class:"icon-kl icon-kl-arrow-down app-select__drop-icon"},null,-1))]),selected:t.withCtx(()=>{var q,S;return[Array.isArray(r.value)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[!c.filtering||r.value.length?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["app-select__selected",{"app-select__placeholder":!((q=r.value)!=null&&q.length)&&c.placeholder}])},[(S=r.value)!=null&&S.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y[4]||(y[4]=t.createTextVNode(" Вибрано ")),t.createElementVNode("span",Ml,t.toDisplayString(r.value.length),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(l.placeholder),1)],64))],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[!c.filtering||r.value?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["app-select__selected",{"app-select__placeholder":!r.value&&c.placeholder}])},t.toDisplayString(g.value),3)):t.createCommentVNode("",!0)],64))]}),option:t.withCtx(q=>[t.createVNode(It,t.mergeProps({class:["app-select__option",{"app-select__option_selected":q.selected}]},q.itemProps),{default:t.withCtx(()=>[l.multiple?(t.openBlock(),t.createBlock(Pe,{key:0,class:"option-multiple",avatar:""},{default:t.withCtx(()=>[t.createVNode(al,{size:"30px","model-value":q.selected,"onUpdate:modelValue":()=>q.toggleOption(q.opt)},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)):t.createCommentVNode("",!0),q.opt.done?(t.openBlock(),t.createBlock(Pe,{key:1,class:"option-done",avatar:""},{default:t.withCtx(()=>y[5]||(y[5]=[t.createElementVNode("i",{class:"icon-kl icon-kl-check option-done__icon"},null,-1)])),_:1})):t.createCommentVNode("",!0),t.createVNode(Pe,null,{default:t.withCtx(()=>[t.createVNode(Et,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(q.opt.label),1)]),_:2},1024)]),_:2},1024)]),_:2},1040,["class"])]),_:1},8,["popup-content-class","placeholder","modelValue","options","multiple","use-input","rules","lazy-rules","autofocus","disable","loading"])],2))}}),Pl=s._export_sfc(Ll,[["__scopeId","data-v-3977036d"]]);exports.default=Pl;
@@ -1,10 +1,10 @@
1
1
  import { getCurrentInstance as A, computed as u, h as d, ref as p, watch as C, onMounted as H, defineComponent as R, openBlock as c, createBlock as j, unref as m, normalizeClass as f, withCtx as w, createVNode as _, renderSlot as G, createElementBlock as g, createCommentVNode as B, Fragment as E, createTextVNode as N, toDisplayString as T } from "vue";
2
- import { c as h, h as S, S as s, t as W, v as M, Q as F, w as v, q as U, C as Y, _ as Z } from "./index-BMsh_Kya.js";
3
- import { u as J, a as K, b as X, Q as x, n as ee } from "./QMenu-CLtUMjkJ.js";
2
+ import { c as h, u as W, h as S, e as F, S as s, w as U, x as M, Q as Y, y as v, t as Z, C as J, _ as K } from "./index-DYNR39SC.js";
3
+ import { u as X, Q as x, l as ee } from "./QMenu-4YcWS85F.js";
4
4
  const ne = ["ul", "ol"], oe = h({
5
5
  name: "QList",
6
6
  props: {
7
- ...K,
7
+ ...F,
8
8
  bordered: Boolean,
9
9
  dense: Boolean,
10
10
  separator: Boolean,
@@ -15,7 +15,7 @@ const ne = ["ul", "ol"], oe = h({
15
15
  }
16
16
  },
17
17
  setup(e, { slots: t }) {
18
- const a = A(), r = J(e, a.proxy.$q), n = u(
18
+ const a = A(), r = W(e, a.proxy.$q), n = u(
19
19
  () => ne.includes(e.tag) ? null : "list"
20
20
  ), l = u(
21
21
  () => "q-list" + (e.bordered === !0 ? " q-list--bordered" : "") + (e.dense === !0 ? " q-list--dense" : "") + (e.separator === !0 ? " q-list--separator" : "") + (r.value === !0 ? " q-list--dark" : "") + (e.padding === !0 ? " q-list--padding" : "")
@@ -83,7 +83,7 @@ const de = h({
83
83
  },
84
84
  emits: ["update:modelValue", "click", "beforeShow", "show", "beforeHide", "hide"],
85
85
  setup(e, { slots: t, emit: a }) {
86
- const { proxy: r } = A(), n = p(e.modelValue), l = p(null), i = X(), q = u(() => {
86
+ const { proxy: r } = A(), n = p(e.modelValue), l = p(null), i = X(), y = u(() => {
87
87
  const o = {
88
88
  "aria-expanded": n.value === !0 ? "true" : "false",
89
89
  "aria-haspopup": "true",
@@ -93,7 +93,7 @@ const de = h({
93
93
  return (e.disable === !0 || e.split === !1 && e.disableMainBtn === !0 || e.disableDropdown === !0) && (o["aria-disabled"] = "true"), o;
94
94
  }), L = u(
95
95
  () => "q-btn-dropdown__arrow" + (n.value === !0 && e.noIconAnimation === !1 ? " rotate-180" : "") + (e.split === !1 ? " q-btn-dropdown__arrow-container" : "")
96
- ), y = u(() => W(e)), D = u(() => re(e));
96
+ ), q = u(() => U(e)), D = u(() => re(e));
97
97
  C(() => e.modelValue, (o) => {
98
98
  l.value !== null && l.value[o ? "show" : "hide"]();
99
99
  }), C(() => e.split, b);
@@ -113,7 +113,7 @@ const de = h({
113
113
  a("click", o);
114
114
  }
115
115
  function z(o) {
116
- U(o), b(), a("click", o);
116
+ Z(o), b(), a("click", o);
117
117
  }
118
118
  function P(o) {
119
119
  l.value !== null && l.value.toggle(o);
@@ -132,7 +132,7 @@ const de = h({
132
132
  e.modelValue === !0 && k();
133
133
  }), () => {
134
134
  const o = [
135
- d(F, {
135
+ d(Y, {
136
136
  class: L.value,
137
137
  name: e.dropdownIcon || r.$q.iconSet.arrow.dropdown
138
138
  })
@@ -163,7 +163,7 @@ const de = h({
163
163
  ), e.split === !1 ? d(v, {
164
164
  class: "q-btn-dropdown q-btn-dropdown--simple",
165
165
  ...D.value,
166
- ...q.value,
166
+ ...y.value,
167
167
  disable: e.disable === !0 || e.disableMainBtn === !0,
168
168
  noWrap: !0,
169
169
  round: !1,
@@ -175,7 +175,7 @@ const de = h({
175
175
  class: "q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",
176
176
  rounded: e.rounded,
177
177
  square: e.square,
178
- ...y.value,
178
+ ...q.value,
179
179
  glossy: e.glossy,
180
180
  stretch: e.stretch
181
181
  }, () => [
@@ -192,8 +192,8 @@ const de = h({
192
192
  }),
193
193
  d(v, {
194
194
  class: "q-btn-dropdown__arrow-container q-anchor--skip",
195
- ...q.value,
196
195
  ...y.value,
196
+ ...q.value,
197
197
  disable: e.disable === !0 || e.disableDropdown === !0,
198
198
  rounded: e.rounded,
199
199
  color: e.color,
@@ -213,7 +213,7 @@ const de = h({
213
213
  transparent: { type: Boolean },
214
214
  flat: { type: Boolean },
215
215
  rounded: { type: Boolean },
216
- color: { default: Y.PRIMARY },
216
+ color: { default: J.PRIMARY },
217
217
  iconLeft: {},
218
218
  iconMiddle: {},
219
219
  hideDropIcon: { type: Boolean },
@@ -292,7 +292,7 @@ const de = h({
292
292
  _: 3
293
293
  }, 8, ["class", "padding", "loading", "disable", "aria-label", "menu-offset", "menu-anchor", "menu-self"]));
294
294
  }
295
- }), fe = /* @__PURE__ */ Z(se, [["__scopeId", "data-v-25a6ff66"]]);
295
+ }), fe = /* @__PURE__ */ K(se, [["__scopeId", "data-v-25a6ff66"]]);
296
296
  export {
297
297
  fe as default
298
298
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),l=require("./index-DxgUi3sN.cjs"),s=require("./QMenu-CwSwXENo.cjs"),q=["ul","ol"],y=l.createComponent({name:"QList",props:{...s.useDarkProps,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:a}){const r=n.getCurrentInstance(),u=s.useDark(e,r.proxy.$q),o=n.computed(()=>q.includes(e.tag)?null:"list"),d=n.computed(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(u.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>n.h(e.tag,{class:d.value,role:o.value},l.hSlot(a.default))}}),D={[l.SIZES.SM]:"3px 9px",[l.SIZES.MD]:"5px 12px",[l.SIZES.LG]:"9px 20px"},I=l.createComponent({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(e,{slots:a}){const r=n.computed(()=>{const u=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(o=>e[o]===!0).map(o=>`q-btn-group--${o}`).join(" ");return`q-btn-group row no-wrap${u.length!==0?" "+u:""}`+(e.spread===!0?" q-btn-group--spread":" inline")});return()=>n.h("div",{class:r.value},l.hSlot(a.default))}}),M=Object.keys(l.nonRoundBtnProps);function A(e){return M.reduce((a,r)=>{const u=e[r];return u!==void 0&&(a[r]=u),a},{})}const L=l.createComponent({name:"QBtnDropdown",props:{...l.nonRoundBtnProps,...s.useTransitionProps,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean,toggleAriaLabel:String},emits:["update:modelValue","click","beforeShow","show","beforeHide","hide"],setup(e,{slots:a,emit:r}){const{proxy:u}=n.getCurrentInstance(),o=n.ref(e.modelValue),d=n.ref(null),i=s.useId(),f=n.computed(()=>{const t={"aria-expanded":o.value===!0?"true":"false","aria-haspopup":"true","aria-controls":i.value,"aria-label":e.toggleAriaLabel||u.$q.lang.label[o.value===!0?"collapse":"expand"](e.label)};return(e.disable===!0||e.split===!1&&e.disableMainBtn===!0||e.disableDropdown===!0)&&(t["aria-disabled"]="true"),t}),B=n.computed(()=>"q-btn-dropdown__arrow"+(o.value===!0&&e.noIconAnimation===!1?" rotate-180":"")+(e.split===!1?" q-btn-dropdown__arrow-container":"")),b=n.computed(()=>l.getBtnDesignAttr(e)),m=n.computed(()=>A(e));n.watch(()=>e.modelValue,t=>{d.value!==null&&d.value[t?"show":"hide"]()}),n.watch(()=>e.split,c);function g(t){o.value=!0,r("beforeShow",t)}function p(t){r("show",t),r("update:modelValue",!0)}function h(t){o.value=!1,r("beforeHide",t)}function v(t){r("hide",t),r("update:modelValue",!1)}function S(t){r("click",t)}function C(t){l.stop(t),c(),r("click",t)}function k(t){d.value!==null&&d.value.toggle(t)}function w(t){d.value!==null&&d.value.show(t)}function c(t){d.value!==null&&d.value.hide(t)}return Object.assign(u,{show:w,hide:c,toggle:k}),n.onMounted(()=>{e.modelValue===!0&&w()}),()=>{const t=[n.h(l.QIcon,{class:B.value,name:e.dropdownIcon||u.$q.iconSet.arrow.dropdown})];return e.disableDropdown!==!0&&t.push(n.h(s.QMenu,{ref:d,id:i.value,class:e.contentClass,style:e.contentStyle,cover:e.cover,fit:!0,persistent:e.persistent,noRouteDismiss:e.noRouteDismiss,autoClose:e.autoClose,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,separateClosePopup:!0,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:g,onShow:p,onBeforeHide:h,onHide:v},a.default)),e.split===!1?n.h(l.QBtn,{class:"q-btn-dropdown q-btn-dropdown--simple",...m.value,...f.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:S},{default:()=>l.hSlot(a.label,[]).concat(t),loading:a.loading}):n.h(I,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",rounded:e.rounded,square:e.square,...b.value,glossy:e.glossy,stretch:e.stretch},()=>[n.h(l.QBtn,{class:"q-btn-dropdown--current",...m.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:C},{default:a.label,loading:a.loading}),n.h(l.QBtn,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...f.value,...b.value,disable:e.disable===!0||e.disableDropdown===!0,rounded:e.rounded,color:e.color,textColor:e.textColor,dense:e.dense,size:e.size,padding:e.padding,ripple:e.ripple},()=>t)])}}}),$=n.defineComponent({__name:"DropdownButton",props:{size:{default:l.SIZES.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:l.COLORS.PRIMARY},iconLeft:{},iconMiddle:{},hideDropIcon:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},ariaLabel:{},label:{},menuClass:{},menuOffset:{},menuAnchor:{},menuSelf:{}},setup(e){const a=e,r=n.ref(!1),u=n.computed(()=>["dropdown-btn",{"dropdown-btn_default":!a.transparent&&!a.flat,"dropdown-btn_trans":a.transparent,"dropdown-btn_flat":a.flat,"dropdown-btn_rounded":a.rounded,"dropdown-btn_sm":a.size===l.SIZES.SM,"dropdown-btn_md":a.size===l.SIZES.MD,"dropdown-btn_lg":a.size===l.SIZES.LG,"dropdown-btn_icon-left":a.iconLeft,"dropdown-btn_icon-middle":a.iconMiddle},`dropdown-btn_${a.color}`]);return(o,d)=>(n.openBlock(),n.createBlock(n.unref(L),{"no-caps":"",unelevated:"",class:n.normalizeClass(u.value),padding:n.unref(D)[o.size||n.unref(l.SIZES).MD],loading:o.loading,disable:o.disabled||void 0,"aria-label":o.ariaLabel,"menu-offset":o.menuOffset,"menu-anchor":o.menuAnchor,"menu-self":o.menuSelf,onBeforeShow:d[0]||(d[0]=i=>r.value=!0),onBeforeHide:d[1]||(d[1]=i=>r.value=!1)},{label:n.withCtx(()=>[o.iconLeft||o.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",o.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${o.iconLeft||o.iconMiddle}`,o.transparent||o.flat?`text-${o.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),o.label?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(o.label),1)],64)):n.createCommentVNode("",!0),o.hideDropIcon?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["icon-kl","icon-kl-arrow-down",{"icon-kl-arrow-down_rotated":r.value},o.transparent?`text-${o.color}`:"text-secondary"])},null,2))]),default:n.withCtx(()=>[n.createVNode(y,{class:n.normalizeClass(["dropdown-btn-menu",`dropdown-btn-menu_${o.size} ${o.menuClass?o.menuClass:""}`])},{default:n.withCtx(()=>[n.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3},8,["class"])]),_:3},8,["class","padding","loading","disable","aria-label","menu-offset","menu-anchor","menu-self"]))}}),z=l._export_sfc($,[["__scopeId","data-v-25a6ff66"]]);exports.default=z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),a=require("./index-TqkCOfYg.cjs"),c=require("./QMenu-CpgYKR_O.cjs"),q=["ul","ol"],y=a.createComponent({name:"QList",props:{...a.useDarkProps,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:l}){const r=n.getCurrentInstance(),u=a.useDark(e,r.proxy.$q),o=n.computed(()=>q.includes(e.tag)?null:"list"),d=n.computed(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(u.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>n.h(e.tag,{class:d.value,role:o.value},a.hSlot(l.default))}}),D={[a.SIZES.SM]:"3px 9px",[a.SIZES.MD]:"5px 12px",[a.SIZES.LG]:"9px 20px"},I=a.createComponent({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(e,{slots:l}){const r=n.computed(()=>{const u=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(o=>e[o]===!0).map(o=>`q-btn-group--${o}`).join(" ");return`q-btn-group row no-wrap${u.length!==0?" "+u:""}`+(e.spread===!0?" q-btn-group--spread":" inline")});return()=>n.h("div",{class:r.value},a.hSlot(l.default))}}),M=Object.keys(a.nonRoundBtnProps);function A(e){return M.reduce((l,r)=>{const u=e[r];return u!==void 0&&(l[r]=u),l},{})}const L=a.createComponent({name:"QBtnDropdown",props:{...a.nonRoundBtnProps,...c.useTransitionProps,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean,toggleAriaLabel:String},emits:["update:modelValue","click","beforeShow","show","beforeHide","hide"],setup(e,{slots:l,emit:r}){const{proxy:u}=n.getCurrentInstance(),o=n.ref(e.modelValue),d=n.ref(null),s=c.useId(),f=n.computed(()=>{const t={"aria-expanded":o.value===!0?"true":"false","aria-haspopup":"true","aria-controls":s.value,"aria-label":e.toggleAriaLabel||u.$q.lang.label[o.value===!0?"collapse":"expand"](e.label)};return(e.disable===!0||e.split===!1&&e.disableMainBtn===!0||e.disableDropdown===!0)&&(t["aria-disabled"]="true"),t}),B=n.computed(()=>"q-btn-dropdown__arrow"+(o.value===!0&&e.noIconAnimation===!1?" rotate-180":"")+(e.split===!1?" q-btn-dropdown__arrow-container":"")),b=n.computed(()=>a.getBtnDesignAttr(e)),m=n.computed(()=>A(e));n.watch(()=>e.modelValue,t=>{d.value!==null&&d.value[t?"show":"hide"]()}),n.watch(()=>e.split,i);function g(t){o.value=!0,r("beforeShow",t)}function p(t){r("show",t),r("update:modelValue",!0)}function h(t){o.value=!1,r("beforeHide",t)}function v(t){r("hide",t),r("update:modelValue",!1)}function S(t){r("click",t)}function C(t){a.stop(t),i(),r("click",t)}function k(t){d.value!==null&&d.value.toggle(t)}function w(t){d.value!==null&&d.value.show(t)}function i(t){d.value!==null&&d.value.hide(t)}return Object.assign(u,{show:w,hide:i,toggle:k}),n.onMounted(()=>{e.modelValue===!0&&w()}),()=>{const t=[n.h(a.QIcon,{class:B.value,name:e.dropdownIcon||u.$q.iconSet.arrow.dropdown})];return e.disableDropdown!==!0&&t.push(n.h(c.QMenu,{ref:d,id:s.value,class:e.contentClass,style:e.contentStyle,cover:e.cover,fit:!0,persistent:e.persistent,noRouteDismiss:e.noRouteDismiss,autoClose:e.autoClose,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,separateClosePopup:!0,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:g,onShow:p,onBeforeHide:h,onHide:v},l.default)),e.split===!1?n.h(a.QBtn,{class:"q-btn-dropdown q-btn-dropdown--simple",...m.value,...f.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:S},{default:()=>a.hSlot(l.label,[]).concat(t),loading:l.loading}):n.h(I,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",rounded:e.rounded,square:e.square,...b.value,glossy:e.glossy,stretch:e.stretch},()=>[n.h(a.QBtn,{class:"q-btn-dropdown--current",...m.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:C},{default:l.label,loading:l.loading}),n.h(a.QBtn,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...f.value,...b.value,disable:e.disable===!0||e.disableDropdown===!0,rounded:e.rounded,color:e.color,textColor:e.textColor,dense:e.dense,size:e.size,padding:e.padding,ripple:e.ripple},()=>t)])}}}),$=n.defineComponent({__name:"DropdownButton",props:{size:{default:a.SIZES.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:a.COLORS.PRIMARY},iconLeft:{},iconMiddle:{},hideDropIcon:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},ariaLabel:{},label:{},menuClass:{},menuOffset:{},menuAnchor:{},menuSelf:{}},setup(e){const l=e,r=n.ref(!1),u=n.computed(()=>["dropdown-btn",{"dropdown-btn_default":!l.transparent&&!l.flat,"dropdown-btn_trans":l.transparent,"dropdown-btn_flat":l.flat,"dropdown-btn_rounded":l.rounded,"dropdown-btn_sm":l.size===a.SIZES.SM,"dropdown-btn_md":l.size===a.SIZES.MD,"dropdown-btn_lg":l.size===a.SIZES.LG,"dropdown-btn_icon-left":l.iconLeft,"dropdown-btn_icon-middle":l.iconMiddle},`dropdown-btn_${l.color}`]);return(o,d)=>(n.openBlock(),n.createBlock(n.unref(L),{"no-caps":"",unelevated:"",class:n.normalizeClass(u.value),padding:n.unref(D)[o.size||n.unref(a.SIZES).MD],loading:o.loading,disable:o.disabled||void 0,"aria-label":o.ariaLabel,"menu-offset":o.menuOffset,"menu-anchor":o.menuAnchor,"menu-self":o.menuSelf,onBeforeShow:d[0]||(d[0]=s=>r.value=!0),onBeforeHide:d[1]||(d[1]=s=>r.value=!1)},{label:n.withCtx(()=>[o.iconLeft||o.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",o.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${o.iconLeft||o.iconMiddle}`,o.transparent||o.flat?`text-${o.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),o.label?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(o.label),1)],64)):n.createCommentVNode("",!0),o.hideDropIcon?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["icon-kl","icon-kl-arrow-down",{"icon-kl-arrow-down_rotated":r.value},o.transparent?`text-${o.color}`:"text-secondary"])},null,2))]),default:n.withCtx(()=>[n.createVNode(y,{class:n.normalizeClass(["dropdown-btn-menu",`dropdown-btn-menu_${o.size} ${o.menuClass?o.menuClass:""}`])},{default:n.withCtx(()=>[n.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3},8,["class"])]),_:3},8,["class","padding","loading","disable","aria-label","menu-offset","menu-anchor","menu-self"]))}}),z=a._export_sfc($,[["__scopeId","data-v-25a6ff66"]]);exports.default=z;