@validol4ik/uikit 0.7.3 → 0.7.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-DgJr5_Pb.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-Ik1k1L31.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, createBlock as p, openBlock 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, C as S, A as _ } from "./index-DLgdVg4z.js";
3
+ import { c as O, h as i, C as S, A as _ } from "./index-DgY0kstn.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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),s=require("./index-DgJr5_Pb.cjs"),U=require("./QMenu-BMHBzPuP.cjs"),le=require("./focusout-DzWGke-4.cjs"),vt=e=>e?!0:"Обовʼязкове поле",mt=/^on[A-Z]/;function Xt(){const{attrs:e,vnode:l}=t.getCurrentInstance(),n={listeners:t.ref({}),attributes:t.ref({})};function u(){const f={},i={};for(const r in e)r!=="class"&&r!=="style"&&mt.test(r)===!1&&(f[r]=e[r]);for(const r in l.props)mt.test(r)===!0&&(i[r]=l.props[r]);n.attributes.value=f,n.listeners.value=i}return t.onBeforeUpdate(u),u(),n}const Yt="_q_fo_";function Zt({validate:e,resetValidation:l,requiresQForm:n}){const u=t.inject(Yt,!1);if(u!==!1){const{props:f,proxy:i}=t.getCurrentInstance();Object.assign(i,{validate:e,resetValidation:l}),t.watch(()=>f.disable,r=>{r===!0?(typeof l=="function"&&l(),u.unbindComponent(i)):u.bindComponent(i)}),t.onMounted(()=>{f.disable!==!0&&u.bindComponent(i)}),t.onBeforeUnmount(()=>{f.disable!==!0&&u.unbindComponent(i)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const pt=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,ht=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,gt=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Oe=/^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])\)$/,Me=/^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)\)$/,Ke={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=>pt.test(e),hexaColor:e=>ht.test(e),hexOrHexaColor:e=>gt.test(e),rgbColor:e=>Oe.test(e),rgbaColor:e=>Me.test(e),rgbOrRgbaColor:e=>Oe.test(e)||Me.test(e),hexOrRgbColor:e=>pt.test(e)||Oe.test(e),hexaOrRgbaColor:e=>ht.test(e)||Me.test(e),anyColor:e=>gt.test(e)||Oe.test(e)||Me.test(e)};function Bt(e,l=250,n){let u=null;function f(){const i=arguments,r=()=>{u=null,e.apply(this,i)};u!==null?clearTimeout(u):n===!0&&e.apply(this,i),u=setTimeout(r,l)}return f.cancel=()=>{u!==null&&clearTimeout(u)},f}const Jt=[!0,!1,"ondemand"],Gt={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Jt.includes(e)}};function el(e,l){const{props:n,proxy:u}=t.getCurrentInstance(),f=t.ref(!1),i=t.ref(null),r=t.ref(!1);Zt({validate:h,resetValidation:R});let b=0,S;const _=t.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),v=t.computed(()=>n.disable!==!0&&_.value===!0&&l.value===!1),w=t.computed(()=>n.error===!0||f.value===!0),q=t.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:i.value);t.watch(()=>n.modelValue,()=>{r.value=!0,v.value===!0&&n.lazyRules===!1&&p()});function C(){n.lazyRules!=="ondemand"&&v.value===!0&&r.value===!0&&p()}t.watch(()=>n.reactiveRules,k=>{k===!0?S===void 0&&(S=t.watch(()=>n.rules,C,{immediate:!0,deep:!0})):S!==void 0&&(S(),S=void 0)},{immediate:!0}),t.watch(()=>n.lazyRules,C),t.watch(e,k=>{k===!0?r.value=!0:v.value===!0&&n.lazyRules!=="ondemand"&&p()});function R(){b++,l.value=!1,r.value=!1,f.value=!1,i.value=null,p.cancel()}function h(k=n.modelValue){if(n.disable===!0||_.value===!1)return!0;const D=++b,A=l.value!==!0?()=>{r.value=!0}:()=>{},O=(I,P)=>{I===!0&&A(),f.value=I,i.value=P||null,l.value=!1},Y=[];for(let I=0;I<n.rules.length;I++){const P=n.rules[I];let H;if(typeof P=="function"?H=P(k,Ke):typeof P=="string"&&Ke[P]!==void 0&&(H=Ke[P](k)),H===!1||typeof H=="string")return O(!0,H),!1;H!==!0&&H!==void 0&&Y.push(H)}return Y.length===0?(O(!1),!0):(l.value=!0,Promise.all(Y).then(I=>{if(I===void 0||Array.isArray(I)===!1||I.length===0)return D===b&&O(!1),!0;const P=I.find(H=>H===!1||typeof H=="string");return D===b&&O(P!==void 0,P),P===void 0},I=>(D===b&&(console.error(I),O(!0)),!1)))}const p=Bt(h,0);return t.onBeforeUnmount(()=>{S==null||S(),p.cancel()}),Object.assign(u,{resetValidation:R,validate:h}),le.injectProp(u,"hasError",()=>w.value),{isDirtyModel:r,hasRules:_,hasError:w,errorMessage:q,validate:h,resetValidation:R}}function Ze(e){return e!=null&&(""+e).length!==0}const tl={...s.useDarkProps,...Gt,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},Je={...tl,maxlength:[Number,String]},At=["update:modelValue","clear","focus","blur"];function Et({requiredForAttr:e=!0,tagProp:l,changeEvent:n=!1}={}){const{props:u,proxy:f}=t.getCurrentInstance(),i=s.useDark(u,f.$q),r=U.useId({required:e,getValue:()=>u.for});return{requiredForAttr:e,changeEvent:n,tag:l===!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:Xt(),targetUid:r,rootRef:t.ref(null),targetRef:t.ref(null),controlRef:t.ref(null)}}function zt(e){const{props:l,emit:n,slots:u,attrs:f,proxy:i}=t.getCurrentInstance(),{$q:r}=i;let b=null;e.hasValue===void 0&&(e.hasValue=t.computed(()=>Ze(l.modelValue))),e.emitValue===void 0&&(e.emitValue=g=>{n("update:modelValue",g)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:oe,onFocusout:X}),Object.assign(e,{clearValue:ne,onControlFocusin:oe,onControlFocusout:X,focus:P}),e.computedCounter===void 0&&(e.computedCounter=t.computed(()=>{if(l.counter!==!1){const g=typeof l.modelValue=="string"||typeof l.modelValue=="number"?(""+l.modelValue).length:Array.isArray(l.modelValue)===!0?l.modelValue.length:0,V=l.maxlength!==void 0?l.maxlength:l.maxValues;return g+(V!==void 0?" / "+V:"")}}));const{isDirtyModel:S,hasRules:_,hasError:v,errorMessage:w,resetValidation:q}=el(e.focused,e.innerLoading),C=e.floatingLabel!==void 0?t.computed(()=>l.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):t.computed(()=>l.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),R=t.computed(()=>l.bottomSlots===!0||l.hint!==void 0||_.value===!0||l.counter===!0||l.error!==null),h=t.computed(()=>l.filled===!0?"filled":l.outlined===!0?"outlined":l.borderless===!0?"borderless":l.standout?"standout":"standard"),p=t.computed(()=>`q-field row no-wrap items-start q-field--${h.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(l.rounded===!0?" q-field--rounded":"")+(l.square===!0?" q-field--square":"")+(C.value===!0?" q-field--float":"")+(D.value===!0?" q-field--labeled":"")+(l.dense===!0?" q-field--dense":"")+(l.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":"")+(v.value===!0?" q-field--error":"")+(v.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&R.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),k=t.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(v.value===!0?" text-negative":typeof l.standout=="string"&&l.standout.length!==0&&e.focused.value===!0?` ${l.standout}`:l.color!==void 0?` text-${l.color}`:"")),D=t.computed(()=>l.labelSlot===!0||l.label!==void 0),A=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&v.value!==!0?` text-${l.labelColor}`:"")),O=t.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:C.value,modelValue:l.modelValue,emitValue:e.emitValue})),Y=t.computed(()=>{const g={};return e.targetUid.value&&(g.for=e.targetUid.value),l.disable===!0&&(g["aria-disabled"]="true"),g});function I(){var W;const g=document.activeElement;let V=(W=e.targetRef)==null?void 0:W.value;V&&(g===null||g.id!==e.targetUid.value)&&(V.hasAttribute("tabindex")===!0||(V=V.querySelector("[tabindex]")),V!==g&&(V==null||V.focus({preventScroll:!0})))}function P(){U.addFocusFn(I)}function H(){U.removeFocusFn(I);const g=document.activeElement;g!==null&&e.rootRef.value.contains(g)&&g.blur()}function oe(g){b!==null&&(clearTimeout(b),b=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",g))}function X(g,V){b!==null&&clearTimeout(b),b=setTimeout(()=>{b=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,n("blur",g)),V==null||V())})}function ne(g){var V;s.stopAndPrevent(g),r.platform.is.mobile!==!0?(((V=e.targetRef)==null?void 0:V.value)||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),l.type==="file"&&(e.inputRef.value.value=null),n("update:modelValue",null),e.changeEvent===!0&&n("change",null),n("clear",l.modelValue),t.nextTick(()=>{const W=S.value;q(),S.value=W})}function Q(g){[13,32].includes(g.keyCode)&&ne(g)}function ae(){const g=[];return u.prepend!==void 0&&g.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:s.prevent},u.prepend())),g.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},re())),v.value===!0&&l.noErrorIcon===!1&&g.push(K("error",[t.h(s.QIcon,{name:r.iconSet.field.error,color:"negative"})])),l.loading===!0||e.innerLoading.value===!0?g.push(K("inner-loading-append",u.loading!==void 0?u.loading():[t.h(s.QSpinner,{color:l.color})])):l.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&g.push(K("inner-clearable-append",[t.h(s.QIcon,{class:"q-field__focusable-action",name:l.clearIcon||r.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":r.lang.label.clear,onKeyup:Q,onClick:ne})])),u.append!==void 0&&g.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&&g.push(K("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&g.push(e.getControlChild()),g}function re(){const g=[];return l.prefix!==void 0&&l.prefix!==null&&g.push(t.h("div",{class:"q-field__prefix no-pointer-events row items-center"},l.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&g.push(e.getShadowControl()),D.value===!0&&g.push(t.h("div",{class:A.value},s.hSlot(u.label,l.label))),e.getControl!==void 0?g.push(e.getControl()):u.rawControl!==void 0?g.push(u.rawControl()):u.control!==void 0&&g.push(t.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0},u.control(O.value))),l.suffix!==void 0&&l.suffix!==null&&g.push(t.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),g.concat(s.hSlot(u.default))}function Z(){let g,V;v.value===!0?w.value!==null?(g=[t.h("div",{role:"alert"},w.value)],V=`q--slot-error-${w.value}`):(g=s.hSlot(u.error),V="q--slot-error"):(l.hideHint!==!0||e.focused.value===!0)&&(l.hint!==void 0?(g=[t.h("div",l.hint)],V=`q--slot-hint-${l.hint}`):(g=s.hSlot(u.hint),V="q--slot-hint"));const W=l.counter===!0||u.counter!==void 0;if(l.hideBottomSpace===!0&&W===!1&&g===void 0)return;const a=t.h("div",{key:V,class:"q-field__messages col"},g);return t.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:s.prevent},[l.hideBottomSpace===!0?a:t.h(t.Transition,{name:"q-transition--field-message"},()=>a),W===!0?t.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():e.computedCounter.value):null])}function K(g,V){return V===null?null:t.h("div",{key:g,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},V)}let ue=!1;return t.onDeactivated(()=>{ue=!0}),t.onActivated(()=>{ue===!0&&l.autofocus===!0&&i.focus()}),l.autofocus===!0&&t.onMounted(()=>{i.focus()}),t.onBeforeUnmount(()=>{b!==null&&clearTimeout(b)}),Object.assign(i,{focus:P,blur:H}),function(){const V=e.getControl===void 0&&u.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...Y.value}:Y.value;return t.h(e.tag.value,{ref:e.rootRef,class:[p.value,f.class],style:f.style,...V},[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:k.value,tabindex:-1,...e.controlEvents},ae()),R.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 ll=s.createComponent({name:"QField",inheritAttrs:!1,props:{...Je,tag:{type:String,default:"label"}},emits:At,setup(){return zt(Et({tagProp:!0}))}}),ol={xs:8,sm:10,md:14,lg:20,xl:24},nl=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:l,emit:n}){const{proxy:{$q:u}}=t.getCurrentInstance(),f=s.useDark(e,u),i=s.useSize(e,ol),r=t.computed(()=>e.selected===!0||e.icon!==void 0),b=t.computed(()=>e.selected===!0?e.iconSelected||u.iconSet.chip.selected:e.icon),S=t.computed(()=>e.iconRemove||u.iconSet.chip.remove),_=t.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),v=t.computed(()=>{const p=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}`:"")+(p?` text-${p} 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":"")+(_.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(f.value===!0?" q-chip--dark q-dark":"")}),w=t.computed(()=>{const p=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},k={...p,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||u.lang.label.remove};return{chip:p,remove:k}});function q(p){p.keyCode===13&&C(p)}function C(p){e.disable||(n("update:selected",!e.selected),n("click",p))}function R(p){(p.keyCode===void 0||p.keyCode===13)&&(s.stopAndPrevent(p),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function h(){const p=[];_.value===!0&&p.push(t.h("div",{class:"q-focus-helper"})),r.value===!0&&p.push(t.h(s.QIcon,{class:"q-chip__icon q-chip__icon--left",name:b.value}));const k=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return p.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},s.hMergeSlotSafely(l.default,k))),e.iconRight&&p.push(t.h(s.QIcon,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&p.push(t.h(s.QIcon,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:S.value,...w.value.remove,onClick:R,onKeyup:R})),p}return()=>{if(e.modelValue===!1)return;const p={class:v.value,style:i.value};return _.value===!0&&Object.assign(p,w.value.chip,{onClick:C,onKeyup:q}),s.hDir("div",p,h(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[s.Ripple,e.ripple]])}}}),ul=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:l,emit:n}){const{proxy:{$q:u}}=t.getCurrentInstance(),f=s.useDark(e,u),{hasLink:i,linkAttrs:r,linkClass:b,linkTag:S,navigateOnClick:_}=s.useRouterLink(),v=t.ref(null),w=t.ref(null),q=t.computed(()=>e.clickable===!0||i.value===!0||e.tag==="label"),C=t.computed(()=>e.disable!==!0&&q.value===!0),R=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(f.value===!0?" q-item--dark":"")+(i.value===!0&&e.active===null?b.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":""):"")),h=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function p(A){C.value===!0&&(w.value!==null&&A.qAvoidFocus!==!0&&(A.qKeyEvent!==!0&&document.activeElement===v.value?w.value.focus():document.activeElement===w.value&&v.value.focus()),_(A))}function k(A){if(C.value===!0&&s.isKeyCode(A,[13,32])===!0){s.stopAndPrevent(A),A.qKeyEvent=!0;const O=new MouseEvent("click",A);O.qKeyEvent=!0,v.value.dispatchEvent(O)}n("keyup",A)}function D(){const A=s.hUniqueSlot(l.default,[]);return C.value===!0&&A.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:w})),A}return()=>{const A={ref:v,class:R.value,style:h.value,role:"listitem",onClick:p,onKeyup:k};return C.value===!0?(A.tabindex=e.tabindex||"0",Object.assign(A,r.value)):q.value===!0&&(A["aria-disabled"]="true"),t.h(S.value,A,D())}}}),il=s.createComponent({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:l}){const n=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:n.value},s.hSlot(l.default))}}),al=s.createComponent({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:l}){const n=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":"")+(n.value===1?" ellipsis":"")),f=t.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>t.h("div",{style:f.value,class:u.value},s.hSlot(l.default))}});function rl(e,l,n){function u(){}return t.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let _e=0,Ue,Qe,Ae,We=!1,bt,St,yt,pe=null;function sl(e){cl(e)&&s.stopAndPrevent(e)}function cl(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const l=s.getEventPath(e),n=e.shiftKey&&!e.deltaX,u=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),f=n||u?e.deltaY:e.deltaX;for(let i=0;i<l.length;i++){const r=l[i];if(U.hasScrollbar(r,u))return u?f<0&&r.scrollTop===0?!0:f>0&&r.scrollTop+r.clientHeight===r.scrollHeight:f<0&&r.scrollLeft===0?!0:f>0&&r.scrollLeft+r.clientWidth===r.scrollWidth}return!0}function wt(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Le(e){We!==!0&&(We=!0,requestAnimationFrame(()=>{We=!1;const{height:l}=e.target,{clientHeight:n,scrollTop:u}=document.scrollingElement;(Ae===void 0||l!==window.innerHeight)&&(Ae=n-l,document.scrollingElement.scrollTop=u),u>Ae&&(document.scrollingElement.scrollTop-=Math.ceil((u-Ae)/8))}))}function Ct(e){const l=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:u,overflowX:f}=window.getComputedStyle(l);Ue=U.getHorizontalScrollPosition(window),Qe=U.getVerticalScrollPosition(window),bt=l.style.left,St=l.style.top,yt=window.location.href,l.style.left=`-${Ue}px`,l.style.top=`-${Qe}px`,f!=="hidden"&&(f==="scroll"||l.scrollWidth>window.innerWidth)&&l.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||l.scrollHeight>window.innerHeight)&&l.classList.add("q-body--force-scrollbar-y"),l.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,le.client.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Le,s.listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",Le,s.listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",wt,s.listenOpts.passiveCapture))}le.client.is.desktop===!0&&le.client.is.mac===!0&&window[`${e}EventListener`]("wheel",sl,s.listenOpts.notPassive),e==="remove"&&(le.client.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",Le,s.listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",Le,s.listenOpts.passiveCapture)):window.removeEventListener("scroll",wt,s.listenOpts.passiveCapture)),l.classList.remove("q-body--prevent-scroll"),l.classList.remove("q-body--force-scrollbar-x"),l.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,l.style.left=bt,l.style.top=St,window.location.href===yt&&window.scrollTo(Ue,Qe),Ae=void 0)}function dl(e){let l="add";if(e===!0){if(_e++,pe!==null){clearTimeout(pe),pe=null;return}if(_e>1)return}else{if(_e===0||(_e--,_e>0))return;if(l="remove",le.client.is.ios===!0&&le.client.is.nativeMobile===!0){pe!==null&&clearTimeout(pe),pe=setTimeout(()=>{Ct(l),pe=null},100);return}}Ct(l)}function fl(){let e;return{preventBodyScroll(l){l!==e&&(e!==void 0||l===!0)&&(e=l,dl(l))}}}let Pe=0;const vl={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"},kt={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},ml=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:l,emit:n,attrs:u}){const f=t.getCurrentInstance(),i=t.ref(null),r=t.ref(!1),b=t.ref(!1);let S=null,_=null,v,w;const q=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:C}=fl(),{registerTimeout:R}=U.useTimeout(),{registerTick:h,removeTick:p}=U.useTick(),{transitionProps:k,transitionStyle:D}=U.useTransition(e,()=>kt[e.position][0],()=>kt[e.position][1]),A=t.computed(()=>D.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:O,hidePortal:Y,portalIsAccessible:I,renderPortal:P}=U.usePortal(f,i,E,"dialog"),{hide:H}=U.useModelToggle({showing:r,hideOnRouteChange:q,handleShow:ae,handleHide:re,processOnMount:!0});rl(r);const oe=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${vl[e.position]}`+(b.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":"")),X=t.computed(()=>r.value===!0&&e.seamless!==!0),ne=t.computed(()=>e.autoClose===!0?{onClick:W}:{}),Q=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${X.value===!0?"modal":"seamless"}`,u.class]);t.watch(()=>e.maximized,y=>{r.value===!0&&V(y)}),t.watch(X,y=>{C(y),y===!0?(le.addFocusout(d),U.addEscapeKey(ue)):(le.removeFocusout(d),U.removeEscapeKey(ue))});function ae(y){var z;_=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,V(e.maximized),O(),b.value=!0,e.noFocus!==!0?((z=document.activeElement)==null||z.blur(),h(Z)):p(),R(()=>{if(f.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:T,bottom:B}=document.activeElement.getBoundingClientRect(),{innerHeight:$}=window,x=window.visualViewport!==void 0?window.visualViewport.height:$;T>0&&B>x/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-x,B>=$?1/0:Math.ceil(document.scrollingElement.scrollTop+B-x/2))),document.activeElement.scrollIntoView()}w=!0,i.value.click(),w=!1}O(!0),b.value=!1,n("show",y)},e.transitionDuration)}function re(y){p(),g(!0),b.value=!0,Y(),_!==null&&((((y==null?void 0:y.type.indexOf("key"))===0?_.closest('[tabindex]:not([tabindex^="-"])'):void 0)||_).focus(),_=null),R(()=>{Y(!0),b.value=!1,n("hide",y)},e.transitionDuration)}function Z(y){U.addFocusFn(()=>{let z=i.value;if(z!==null){if(y!==void 0){const T=z.querySelector(y);if(T!==null){T.focus({preventScroll:!0});return}}z.contains(document.activeElement)!==!0&&(z=z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||z.querySelector("[autofocus], [data-autofocus]")||z,z.focus({preventScroll:!0}))}})}function K(y){y&&typeof y.focus=="function"?y.focus({preventScroll:!0}):Z(),n("shake");const z=i.value;z!==null&&(z.classList.remove("q-animate--scale"),z.classList.add("q-animate--scale"),S!==null&&clearTimeout(S),S=setTimeout(()=>{S=null,i.value!==null&&(z.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():(n("escapeKey"),H()))}function g(y){S!==null&&(clearTimeout(S),S=null),(y===!0||r.value===!0)&&(V(!1),e.seamless!==!0&&(C(!1),le.removeFocusout(d),U.removeEscapeKey(ue))),y!==!0&&(_=null)}function V(y){y===!0?v!==!0&&(Pe<1&&document.body.classList.add("q-body--dialog"),Pe++,v=!0):v===!0&&(Pe<2&&document.body.classList.remove("q-body--dialog"),Pe--,v=!1)}function W(y){w!==!0&&(H(y),n("click",y))}function a(y){e.persistent!==!0&&e.noBackdropDismiss!==!0?H(y):e.noShake!==!0&&K()}function d(y){e.allowFocusOutside!==!0&&I.value===!0&&s.childHasFocus(i.value,y.target)!==!0&&Z('[tabindex]:not([tabindex="-1"])')}Object.assign(f.proxy,{focus:Z,shake:K,__updateRefocusTarget(y){_=y||null}}),t.onBeforeUnmount(g);function E(){return t.h("div",{role:"dialog","aria-modal":X.value===!0?"true":"false",...u,class:Q.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>X.value===!0?t.h("div",{class:"q-dialog__backdrop fixed-full",style:A.value,"aria-hidden":"true",tabindex:-1,onClick:a}):null),t.h(t.Transition,k.value,()=>r.value===!0?t.h("div",{ref:i,class:oe.value,style:D.value,tabindex:-1,...ne.value},s.hSlot(l.default)):null)])}return P}});let He=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const l=document.createElement("div");Object.assign(l.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(l),e.scrollLeft=-1e3,He=e.scrollLeft>=0,e.remove()}const te=1e3,pl=["start","center","end","start-force","center-force","end-force"],Tt=Array.prototype.filter,hl=window.getComputedStyle(document.body).overflowAnchor===void 0?s.noop:function(e,l){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];Tt.call(n,f=>f.dataset&&f.dataset.qVsAnchor!==void 0).forEach(f=>{delete f.dataset.qVsAnchor});const u=n[l];u!=null&&u.dataset&&(u.dataset.qVsAnchor="")}))};function ke(e,l){return e+l}function Xe(e,l,n,u,f,i,r,b){const S=e===window?document.scrollingElement||document.documentElement:e,_=f===!0?"offsetWidth":"offsetHeight",v={scrollStart:0,scrollViewSize:-r-b,scrollMaxSize:0,offsetStart:-r,offsetEnd:-b};if(f===!0?(e===window?(v.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,v.scrollViewSize+=document.documentElement.clientWidth):(v.scrollStart=S.scrollLeft,v.scrollViewSize+=S.clientWidth),v.scrollMaxSize=S.scrollWidth,i===!0&&(v.scrollStart=(He===!0?v.scrollMaxSize-v.scrollViewSize:0)-v.scrollStart)):(e===window?(v.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,v.scrollViewSize+=document.documentElement.clientHeight):(v.scrollStart=S.scrollTop,v.scrollViewSize+=S.clientHeight),v.scrollMaxSize=S.scrollHeight),n!==null)for(let w=n.previousElementSibling;w!==null;w=w.previousElementSibling)w.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=w[_]);if(u!==null)for(let w=u.nextElementSibling;w!==null;w=w.nextElementSibling)w.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=w[_]);if(l!==e){const w=S.getBoundingClientRect(),q=l.getBoundingClientRect();f===!0?(v.offsetStart+=q.left-w.left,v.offsetEnd-=q.width):(v.offsetStart+=q.top-w.top,v.offsetEnd-=q.height),e!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function qt(e,l,n,u){l==="end"&&(l=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(u===!0&&(l=(He===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-l),window.scrollTo(l,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,l):n===!0?(u===!0&&(l=(He===!0?e.scrollWidth-e.offsetWidth:0)-l),e.scrollLeft=l):e.scrollTop=l}function Be(e,l,n,u){if(n>=u)return 0;const f=l.length,i=Math.floor(n/te),r=Math.floor((u-1)/te)+1;let b=e.slice(i,r).reduce(ke,0);return n%te!==0&&(b-=l.slice(i*te,n).reduce(ke,0)),u%te!==0&&u!==f&&(b-=l.slice(u,r*te).reduce(ke,0)),b}const gl={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,...gl};function bl({virtualScrollLength:e,getVirtualScrollTarget:l,getVirtualScrollEl:n,virtualScrollItemSizeComputed:u}){const f=t.getCurrentInstance(),{props:i,emit:r,proxy:b}=f,{$q:S}=b;let _,v,w,q=[],C;const R=t.ref(0),h=t.ref(0),p=t.ref({}),k=t.ref(null),D=t.ref(null),A=t.ref(null),O=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 I=t.computed(()=>u.value+";"+i.virtualScrollHorizontal),P=t.computed(()=>I.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);t.watch(P,()=>{K()}),t.watch(I,H);function H(){Z(v,!0)}function oe(a){Z(a===void 0?v:a)}function X(a,d){const E=l();if(E==null||E.nodeType===8)return;const y=Xe(E,n(),k.value,D.value,i.virtualScrollHorizontal,S.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);w!==y.scrollViewSize&&K(y.scrollViewSize),Q(E,y,Math.min(e.value-1,Math.max(0,parseInt(a,10)||0)),0,pl.indexOf(d)!==-1?d:v!==-1&&a>v?"end":"start")}function ne(){const a=l();if(a==null||a.nodeType===8)return;const d=Xe(a,n(),k.value,D.value,i.virtualScrollHorizontal,S.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),E=e.value-1,y=d.scrollMaxSize-d.offsetStart-d.offsetEnd-h.value;if(_===d.scrollStart)return;if(d.scrollMaxSize<=0){Q(a,d,0,0);return}w!==d.scrollViewSize&&K(d.scrollViewSize),ae(O.value.from);const z=Math.floor(d.scrollMaxSize-Math.max(d.scrollViewSize,d.offsetEnd)-Math.min(C[E],d.scrollViewSize/2));if(z>0&&Math.ceil(d.scrollStart)>=z){Q(a,d,E,d.scrollMaxSize-d.offsetEnd-q.reduce(ke,0));return}let T=0,B=d.scrollStart-d.offsetStart,$=B;if(B<=y&&B+d.scrollViewSize>=R.value)B-=R.value,T=O.value.from,$=B;else for(let x=0;B>=q[x]&&T<E;x++)B-=q[x],T+=te;for(;B>0&&T<E;)B-=C[T],B>-d.scrollViewSize?(T++,$=B):$=C[T]+B;Q(a,d,T,$)}function Q(a,d,E,y,z){const T=typeof z=="string"&&z.indexOf("-force")!==-1,B=T===!0?z.replace("-force",""):z,$=B!==void 0?B:"start";let x=Math.max(0,E-p.value[$]),J=x+p.value.total;J>e.value&&(J=e.value,x=Math.max(0,J-p.value.total)),_=d.scrollStart;const se=x!==O.value.from||J!==O.value.to;if(se===!1&&B===void 0){g(E);return}const{activeElement:Ee}=document,ee=A.value;se===!0&&ee!==null&&ee!==Ee&&ee.contains(Ee)===!0&&(ee.addEventListener("focusout",re),setTimeout(()=>{ee==null||ee.removeEventListener("focusout",re)})),hl(ee,E-x);const ze=B!==void 0?C.slice(x,E).reduce(ke,0):0;if(se===!0){const de=J>=O.value.from&&x<=O.value.to?O.value.to:J;O.value={from:x,to:de},R.value=Be(q,C,0,x),h.value=Be(q,C,J,e.value),requestAnimationFrame(()=>{O.value.to!==J&&_===d.scrollStart&&(O.value={from:O.value.from,to:J},h.value=Be(q,C,J,e.value))})}requestAnimationFrame(()=>{if(_!==d.scrollStart)return;se===!0&&ae(x);const de=C.slice(x,E).reduce(ke,0),fe=de+d.offsetStart+R.value,Te=fe+C[E];let qe=fe+y;if(B!==void 0){const De=de-ze,Ve=d.scrollStart+De;qe=T!==!0&&Ve<fe&&Te<Ve+d.scrollViewSize?Ve:B==="end"?Te-d.scrollViewSize:fe-(B==="start"?0:Math.round((d.scrollViewSize-C[E])/2))}_=qe,qt(a,qe,i.virtualScrollHorizontal,S.lang.rtl),g(E)})}function ae(a){const d=A.value;if(d){const E=Tt.call(d.children,x=>x.classList&&x.classList.contains("q-virtual-scroll--skip")===!1),y=E.length,z=i.virtualScrollHorizontal===!0?x=>x.getBoundingClientRect().width:x=>x.offsetHeight;let T=a,B,$;for(let x=0;x<y;){for(B=z(E[x]),x++;x<y&&E[x].classList.contains("q-virtual-scroll--with-prev")===!0;)B+=z(E[x]),x++;$=B-C[T],$!==0&&(C[T]+=$,q[Math.floor(T/te)]+=$),T++}}}function re(){var a;(a=A.value)==null||a.focus()}function Z(a,d){const E=1*u.value;(d===!0||Array.isArray(C)===!1)&&(C=[]);const y=C.length;C.length=e.value;for(let T=e.value-1;T>=y;T--)C[T]=E;const z=Math.floor((e.value-1)/te);q=[];for(let T=0;T<=z;T++){let B=0;const $=Math.min((T+1)*te,e.value);for(let x=T*te;x<$;x++)B+=C[x];q.push(B)}v=-1,_=void 0,R.value=Be(q,C,0,O.value.from),h.value=Be(q,C,O.value.to,e.value),a>=0?(ae(O.value.from),t.nextTick(()=>{X(a)})):V()}function K(a){if(a===void 0&&typeof window<"u"){const B=l();B!=null&&B.nodeType!==8&&(a=Xe(B,n(),k.value,D.value,i.virtualScrollHorizontal,S.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}w=a;const d=parseFloat(i.virtualScrollSliceRatioBefore)||0,E=parseFloat(i.virtualScrollSliceRatioAfter)||0,y=1+d+E,z=a===void 0||a<=0?1:Math.ceil(a/u.value),T=Math.max(1,z,Math.ceil((i.virtualScrollSliceSize>0?i.virtualScrollSliceSize:10)/y));p.value={total:Math.ceil(T*y),start:Math.ceil(T*d),center:Math.ceil(T*(.5+d)),end:Math.ceil(T*(1+d)),view:z}}function ue(a,d){const E=i.virtualScrollHorizontal===!0?"width":"height",y={["--q-virtual-scroll-item-"+E]:u.value+"px"};return[a==="tbody"?t.h(a,{class:"q-virtual-scroll__padding",key:"before",ref:k},[t.h("tr",[t.h("td",{style:{[E]:`${R.value}px`,...y},colspan:Y.value})])]):t.h(a,{class:"q-virtual-scroll__padding",key:"before",ref:k,style:{[E]:`${R.value}px`,...y}}),t.h(a,{class:"q-virtual-scroll__content",key:"content",ref:A,tabindex:-1},d.flat()),a==="tbody"?t.h(a,{class:"q-virtual-scroll__padding",key:"after",ref:D},[t.h("tr",[t.h("td",{style:{[E]:`${h.value}px`,...y},colspan:Y.value})])]):t.h(a,{class:"q-virtual-scroll__padding",key:"after",ref:D,style:{[E]:`${h.value}px`,...y}})]}function g(a){v!==a&&(i.onVirtualScroll!==void 0&&r("virtualScroll",{index:a,from:O.value.from,to:O.value.to-1,direction:a<v?"decrease":"increase",ref:b}),v=a)}K();const V=Bt(ne,S.platform.is.ios===!0?120:35);t.onBeforeMount(()=>{K()});let W=!1;return t.onDeactivated(()=>{W=!0}),t.onActivated(()=>{if(W!==!0)return;const a=l();_!==void 0&&a!==void 0&&a!==null&&a.nodeType!==8?qt(a,_,i.virtualScrollHorizontal,S.lang.rtl):X(v)}),t.onBeforeUnmount(()=>{V.cancel()}),Object.assign(b,{scrollTo:X,reset:H,refresh:oe}),{virtualScrollSliceRange:O,virtualScrollSliceSizeComputed:p,setVirtualScrollSize:K,onVirtualScrollEvt:V,localResetVirtualScroll:Z,padVirtualScroll:ue,scrollTo:X,reset:H,refresh:oe}}const Sl=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,yl=/[\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,wl=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Cl=/[a-z0-9_ -]$/i;function kl(e){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,e(n)}else n.type==="compositionupdate"&&n.target.qComposing!==!0&&typeof n.data=="string"&&(le.client.is.firefox===!0?Cl.test(n.data)===!1:Sl.test(n.data)===!0||yl.test(n.data)===!0||wl.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}function ce(e,l){if(e===l)return!0;if(e!==null&&l!==null&&typeof e=="object"&&typeof l=="object"){if(e.constructor!==l.constructor)return!1;let n,u;if(e.constructor===Array){if(n=e.length,n!==l.length)return!1;for(u=n;u--!==0;)if(ce(e[u],l[u])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==l.size)return!1;let i=e.entries();for(u=i.next();u.done!==!0;){if(l.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],l.get(u.value[0]))!==!0)return!1;u=i.next()}return!0}if(e.constructor===Set){if(e.size!==l.size)return!1;const i=e.entries();for(u=i.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=i.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==l.length)return!1;for(u=n;u--!==0;)if(e[u]!==l[u])return!1;return!0}if(e.constructor===RegExp)return e.source===l.source&&e.flags===l.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===l.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===l.toString();const f=Object.keys(e).filter(i=>e[i]!==void 0);if(n=f.length,n!==Object.keys(l).filter(i=>l[i]!==void 0).length)return!1;for(u=n;u--!==0;){const i=f[u];if(ce(e[i],l[i])!==!0)return!1}return!0}return e!==e&&l!==l}function xt(e,l,n){if(n<=l)return l;const u=n-l+1;let f=l+(e-l)%u;return f<l&&(f=u+f),f===0?0:f}const _t=e=>["add","add-unique","toggle"].includes(e),ql=".*+?^${}()|[]\\",Vl=Object.keys(Je);function Ye(e,l){if(typeof e=="function")return e;const n=e!==void 0?e:l;return u=>u!==null&&typeof u=="object"&&n in u?u[n]:u}const xl=s.createComponent({name:"QSelect",inheritAttrs:!1,props:{...Vt,...s.useFormProps,...Je,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:_t},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:[...At,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:l,emit:n}){const{proxy:u}=t.getCurrentInstance(),{$q:f}=u,i=t.ref(!1),r=t.ref(!1),b=t.ref(-1),S=t.ref(""),_=t.ref(!1),v=t.ref(!1);let w=null,q=null,C,R,h,p=null,k,D,A,O;const Y=t.ref(null),I=t.ref(null),P=t.ref(null),H=t.ref(null),oe=t.ref(null),X=s.useFormInputNameAttr(e),ne=kl(rt),Q=t.computed(()=>Array.isArray(e.options)?e.options.length:0),ae=t.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:re,virtualScrollSliceSizeComputed:Z,localResetVirtualScroll:K,padVirtualScroll:ue,onVirtualScrollEvt:g,scrollTo:V,setVirtualScrollSize:W}=bl({virtualScrollLength:Q,getVirtualScrollTarget:Ot,getVirtualScrollEl:it,virtualScrollItemSizeComputed:ae}),a=Et(),d=t.computed(()=>{const o=e.mapOptions===!0&&e.multiple!==!0,c=e.modelValue!==void 0&&(e.modelValue!==null||o===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const m=e.mapOptions===!0&&C!==void 0?C:[],F=c.map(M=>It(M,m));return e.modelValue===null&&o===!0?F.filter(M=>M!==null):F}return c}),E=t.computed(()=>{const o={};return Vl.forEach(c=>{const m=e[c];m!==void 0&&(o[c]=m)}),o}),y=t.computed(()=>e.optionsDark===null?a.isDark.value:e.optionsDark),z=t.computed(()=>Ze(d.value)),T=t.computed(()=>{let o="q-field__input q-placeholder col";return e.hideSelected===!0||d.value.length===0?[o,e.inputClass]:(o+=" q-field__input--padding",e.inputClass===void 0?o:[o,e.inputClass])}),B=t.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),$=t.computed(()=>Q.value===0),x=t.computed(()=>d.value.map(o=>G.value(o)).join(", ")),J=t.computed(()=>e.displayValue!==void 0?e.displayValue:x.value),se=t.computed(()=>e.optionsHtml===!0?()=>!0:o=>(o==null?void 0:o.html)===!0),Ee=t.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||d.value.some(se.value))),ee=t.computed(()=>a.focused.value===!0?e.tabindex:-1),ze=t.computed(()=>{const o={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 b.value>=0&&(o["aria-activedescendant"]=`${a.targetUid.value}_${b.value}`),o}),de=t.computed(()=>({id:`${a.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),fe=t.computed(()=>d.value.map((o,c)=>({index:c,opt:o,html:se.value(o),selected:!0,removeAtIndex:Rt,toggleOption:ve,tabindex:ee.value}))),Te=t.computed(()=>{if(Q.value===0)return[];const{from:o,to:c}=re.value;return e.options.slice(o,c).map((m,F)=>{const M=he.value(m)===!0,j=je(m)===!0,L=o+F,N={clickable:!0,active:j,activeClass:Ve.value,manualFocus:!0,focused:!1,disable:M,tabindex:-1,dense:e.optionsDense,dark:y.value,role:"option","aria-selected":j===!0?"true":"false",id:`${a.targetUid.value}_${L}`,onClick:()=>{ve(m)}};return M!==!0&&(b.value===L&&(N.focused=!0),f.platform.is.desktop===!0&&(N.onMousemove=()=>{i.value===!0&&ge(L)})),{index:L,opt:m,html:se.value(m),label:G.value(m),selected:N.active,focused:N.focused,toggleOption:ve,setOptionIndex:ge,itemProps:N}})}),qe=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:f.iconSet.arrow.dropdown),De=t.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),Ve=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),ie=t.computed(()=>Ye(e.optionValue,"value")),G=t.computed(()=>Ye(e.optionLabel,"label")),he=t.computed(()=>Ye(e.optionDisable,"disable")),Fe=t.computed(()=>d.value.map(ie.value)),Ft=t.computed(()=>{const o={onInput:rt,onChange:ne,onKeydown:ut,onKeyup:ot,onKeypress:nt,onFocus:tt,onClick(c){R===!0&&s.stop(c)}};return o.onCompositionstart=o.onCompositionupdate=o.onCompositionend=ne,o});t.watch(d,o=>{C=o,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&a.innerLoading.value!==!0&&(r.value!==!0&&i.value!==!0||z.value!==!0)&&(h!==!0&&we(),(r.value===!0||i.value===!0)&&be(""))},{immediate:!0}),t.watch(()=>e.fillInput,we),t.watch(i,Ne),t.watch(Q,Wt);function Ge(o){return e.emitValue===!0?ie.value(o):o}function $e(o){if(o!==-1&&o<d.value.length)if(e.multiple===!0){const c=e.modelValue.slice();n("remove",{index:o,value:c.splice(o,1)[0]}),n("update:modelValue",c)}else n("update:modelValue",null)}function Rt(o){$e(o),a.focus()}function et(o,c){const m=Ge(o);if(e.multiple!==!0){e.fillInput===!0&&xe(G.value(o),!0,!0),n("update:modelValue",m);return}if(d.value.length===0){n("add",{index:0,value:m}),n("update:modelValue",e.multiple===!0?[m]:m);return}if(c===!0&&je(o)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const F=e.modelValue.slice();n("add",{index:F.length,value:m}),F.push(m),n("update:modelValue",F)}function ve(o,c){var j;if(a.editable.value!==!0||o===void 0||he.value(o)===!0)return;const m=ie.value(o);if(e.multiple!==!0){c!==!0&&(xe(e.fillInput===!0?G.value(o):"",!0,!0),me()),(j=I.value)==null||j.focus(),(d.value.length===0||ce(ie.value(d.value[0]),m)!==!0)&&n("update:modelValue",e.emitValue===!0?m:o);return}if((R!==!0||_.value===!0)&&a.focus(),tt(),d.value.length===0){const L=e.emitValue===!0?m:o;n("add",{index:0,value:L}),n("update:modelValue",e.multiple===!0?[L]:L);return}const F=e.modelValue.slice(),M=Fe.value.findIndex(L=>ce(L,m));if(M!==-1)n("remove",{index:M,value:F.splice(M,1)[0]});else{if(e.maxValues!==void 0&&F.length>=e.maxValues)return;const L=e.emitValue===!0?m:o;n("add",{index:F.length,value:L}),F.push(L)}n("update:modelValue",F)}function ge(o){if(f.platform.is.desktop!==!0)return;const c=o!==-1&&o<Q.value?o:-1;b.value!==c&&(b.value=c)}function Re(o=1,c){if(i.value===!0){let m=b.value;do m=xt(m+o,-1,Q.value-1);while(m!==-1&&m!==b.value&&he.value(e.options[m])===!0);b.value!==m&&(ge(m),V(m),c!==!0&&e.useInput===!0&&e.fillInput===!0&&Ie(m>=0?G.value(e.options[m]):k,!0))}}function It(o,c){const m=F=>ce(ie.value(F),o);return e.options.find(m)||c.find(m)||o}function je(o){const c=ie.value(o);return Fe.value.find(m=>ce(m,c))!==void 0}function tt(o){e.useInput===!0&&I.value!==null&&(o===void 0||I.value===o.target&&o.target.value===x.value)&&I.value.select()}function lt(o){s.isKeyCode(o,27)===!0&&i.value===!0&&(s.stop(o),me(),we()),n("keyup",o)}function ot(o){const{value:c}=o.target;if(o.keyCode!==void 0){lt(o);return}if(o.target.value="",w!==null&&(clearTimeout(w),w=null),q!==null&&(clearTimeout(q),q=null),we(),typeof c=="string"&&c.length!==0){const m=c.toLocaleLowerCase(),F=j=>{const L=e.options.find(N=>String(j.value(N)).toLocaleLowerCase()===m);return L===void 0?!1:(d.value.indexOf(L)===-1?ve(L):me(),!0)},M=j=>{F(ie)!==!0&&j!==!0&&F(G)!==!0&&be(c,!0,()=>M(!0))};M()}else a.clearValue(o)}function nt(o){n("keypress",o)}function ut(o){if(n("keydown",o),s.shouldIgnoreKey(o)===!0)return;const c=S.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),m=o.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(b.value!==-1||c===!0);if(o.keyCode===27){s.prevent(o);return}if(o.keyCode===9&&m===!1){Se();return}if(o.target===void 0||o.target.id!==a.targetUid.value||a.editable.value!==!0)return;if(o.keyCode===40&&a.innerLoading.value!==!0&&i.value===!1){s.stopAndPrevent(o),ye();return}if(o.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&S.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?$e(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(o.keyCode===35||o.keyCode===36)&&(typeof S.value!="string"||S.value.length===0)&&(s.stopAndPrevent(o),b.value=-1,Re(o.keyCode===36?1:-1,e.multiple)),(o.keyCode===33||o.keyCode===34)&&Z.value!==void 0&&(s.stopAndPrevent(o),b.value=Math.max(-1,Math.min(Q.value,b.value+(o.keyCode===33?-1:1)*Z.value.view)),Re(o.keyCode===33?1:-1,e.multiple)),(o.keyCode===38||o.keyCode===40)&&(s.stopAndPrevent(o),Re(o.keyCode===38?-1:1,e.multiple));const F=Q.value;if((A===void 0||O<Date.now())&&(A=""),F>0&&e.useInput!==!0&&o.key!==void 0&&o.key.length===1&&o.altKey===!1&&o.ctrlKey===!1&&o.metaKey===!1&&(o.keyCode!==32||A.length!==0)){i.value!==!0&&ye(o);const M=o.key.toLocaleLowerCase(),j=A.length===1&&A[0]===M;O=Date.now()+1500,j===!1&&(s.stopAndPrevent(o),A+=M);const L=new RegExp("^"+A.split("").map(Ce=>ql.indexOf(Ce)!==-1?"\\"+Ce:Ce).join(".*"),"i");let N=b.value;if(j===!0||N<0||L.test(G.value(e.options[N]))!==!0)do N=xt(N+1,-1,F-1);while(N!==b.value&&(he.value(e.options[N])===!0||L.test(G.value(e.options[N]))!==!0));b.value!==N&&t.nextTick(()=>{ge(N),V(N),N>=0&&e.useInput===!0&&e.fillInput===!0&&Ie(G.value(e.options[N]),!0)});return}if(!(o.keyCode!==13&&(o.keyCode!==32||e.useInput===!0||A!=="")&&(o.keyCode!==9||m===!1))){if(o.keyCode!==9&&s.stopAndPrevent(o),b.value!==-1&&b.value<F){ve(e.options[b.value]);return}if(c===!0){const M=(j,L)=>{var Ce;if(L){if(_t(L)!==!0)return}else L=e.newValueMode;if(xe("",e.multiple!==!0,!0),j==null)return;(L==="toggle"?ve:et)(j,L==="add-unique"),e.multiple!==!0&&((Ce=I.value)==null||Ce.focus(),me())};if(e.onNewValue!==void 0?n("newValue",S.value,M):M(S.value),e.multiple!==!0)return}i.value===!0?Se():a.innerLoading.value!==!0&&ye()}}function it(){return R===!0?oe.value:P.value!==null&&P.value.contentEl!==null?P.value.contentEl:void 0}function Ot(){return it()}function Mt(){return e.hideSelected===!0?[]:l["selected-item"]!==void 0?fe.value.map(o=>l["selected-item"](o)).slice():l.selected!==void 0?[].concat(l.selected()):e.useChips===!0?fe.value.map((o,c)=>t.h(nl,{key:"option-"+c,removable:a.editable.value===!0&&he.value(o.opt)!==!0,dense:!0,textColor:e.color,tabindex:ee.value,onRemove(){o.removeAtIndex(c)}},()=>t.h("span",{class:"ellipsis",[o.html===!0?"innerHTML":"textContent"]:G.value(o.opt)}))):[t.h("span",{class:"ellipsis",[Ee.value===!0?"innerHTML":"textContent"]:J.value})]}function at(){if($.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:S.value}):void 0;const o=l.option!==void 0?l.option:m=>t.h(ul,{key:m.index,...m.itemProps},()=>t.h(il,()=>t.h(al,()=>t.h("span",{[m.html===!0?"innerHTML":"textContent"]:m.label}))));let c=ue("div",Te.value.map(o));return l["before-options"]!==void 0&&(c=l["before-options"]().concat(c)),s.hMergeSlot(l["after-options"],c)}function Lt(o,c){const m=c===!0?{...ze.value,...a.splitAttrs.attributes.value}:void 0,F={ref:c===!0?I:void 0,key:"i_t",class:T.value,style:e.inputStyle,value:S.value!==void 0?S.value:"",type:"search",...m,id:c===!0?a.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":o===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...Ft.value};return o!==!0&&R===!0&&(Array.isArray(F.class)===!0?F.class=[...F.class,"no-pointer-events"]:F.class+=" no-pointer-events"),t.h("input",F)}function rt(o){w!==null&&(clearTimeout(w),w=null),q!==null&&(clearTimeout(q),q=null),!(o&&o.target&&o.target.qComposing===!0)&&(Ie(o.target.value||""),h=!0,k=S.value,a.focused.value!==!0&&(R!==!0||_.value===!0)&&a.focus(),e.onFilter!==void 0&&(w=setTimeout(()=>{w=null,be(S.value)},e.inputDebounce)))}function Ie(o,c){S.value!==o&&(S.value=o,c===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",o):q=setTimeout(()=>{q=null,n("inputValue",o)},e.inputDebounce))}function xe(o,c,m){h=m!==!0,e.useInput===!0&&(Ie(o,!0),(c===!0||m!==!0)&&(k=o),c!==!0&&be(o))}function be(o,c,m){if(e.onFilter===void 0||c!==!0&&a.focused.value!==!0)return;a.innerLoading.value===!0?n("filterAbort"):(a.innerLoading.value=!0,v.value=!0),o!==""&&e.multiple!==!0&&d.value.length!==0&&h!==!0&&o===G.value(d.value[0])&&(o="");const F=setTimeout(()=>{i.value===!0&&(i.value=!1)},10);p!==null&&clearTimeout(p),p=F,n("filter",o,(M,j)=>{(c===!0||a.focused.value===!0)&&p===F&&(clearTimeout(p),typeof M=="function"&&M(),v.value=!1,t.nextTick(()=>{a.innerLoading.value=!1,a.editable.value===!0&&(c===!0?i.value===!0&&me():i.value===!0?Ne(!0):i.value=!0),typeof j=="function"&&t.nextTick(()=>{j(u)}),typeof m=="function"&&t.nextTick(()=>{m(u)})}))},()=>{a.focused.value===!0&&p===F&&(clearTimeout(p),a.innerLoading.value=!1,v.value=!1),i.value===!0&&(i.value=!1)})}function Pt(){return t.h(U.QMenu,{ref:P,class:B.value,style:e.popupContentStyle,modelValue:i.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&$.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:y.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:g,onBeforeShow:ct,onBeforeHide:Ht,onShow:Dt},at)}function Ht(o){dt(o),Se()}function Dt(){W()}function $t(o){var c;s.stop(o),(c=I.value)==null||c.focus(),_.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function jt(o){s.stop(o),t.nextTick(()=>{_.value=!1})}function Nt(){const o=[t.h(ll,{class:`col-auto ${a.fieldClass.value}`,...E.value,for:a.targetUid.value,dark:y.value,square:!0,loading:v.value,itemAligned:!1,filled:!0,stackLabel:S.value.length!==0,...a.splitAttrs.listeners.value,onFocus:$t,onBlur:jt},{...l,rawControl:()=>a.getControl(!0),before:void 0,after:void 0})];return i.value===!0&&o.push(t.h("div",{ref:oe,class:B.value+" scroll",style:e.popupContentStyle,...de.value,onClick:s.prevent,onScrollPassive:g},at())),t.h(ml,{ref:H,modelValue:r.value,position:e.useInput===!0?"top":void 0,transitionShow:D,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:ct,onBeforeHide:Kt,onHide:Ut,onShow:Qt},()=>t.h("div",{class:"q-select__dialog"+(y.value===!0?" q-select__dialog--dark q-dark":"")+(_.value===!0?" q-select__dialog--focused":"")},o))}function Kt(o){dt(o),H.value!==null&&H.value.__updateRefocusTarget(a.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),a.focused.value=!1}function Ut(o){me(),a.focused.value===!1&&n("blur",o),we()}function Qt(){const o=document.activeElement;(o===null||o.id!==a.targetUid.value)&&I.value!==null&&I.value!==o&&I.value.focus(),W()}function Se(){r.value!==!0&&(b.value=-1,i.value===!0&&(i.value=!1),a.focused.value===!1&&(p!==null&&(clearTimeout(p),p=null),a.innerLoading.value===!0&&(n("filterAbort"),a.innerLoading.value=!1,v.value=!1)))}function ye(o){a.editable.value===!0&&(R===!0?(a.onControlFocusin(o),r.value=!0,t.nextTick(()=>{a.focus()})):a.focus(),e.onFilter!==void 0?be(S.value):($.value!==!0||l["no-option"]!==void 0)&&(i.value=!0))}function me(){r.value=!1,Se()}function we(){e.useInput===!0&&xe(e.multiple!==!0&&e.fillInput===!0&&d.value.length!==0&&G.value(d.value[0])||"",!0,!0)}function Ne(o){let c=-1;if(o===!0){if(d.value.length!==0){const m=ie.value(d.value[0]);c=e.options.findIndex(F=>ce(ie.value(F),m))}K(c)}ge(c)}function Wt(o,c){i.value===!0&&a.innerLoading.value===!1&&(K(-1,!0),t.nextTick(()=>{i.value===!0&&a.innerLoading.value===!1&&(o>c?K():Ne(!0))}))}function st(){r.value===!1&&P.value!==null&&P.value.updatePosition()}function ct(o){o!==void 0&&s.stop(o),n("popupShow",o),a.hasPopupOpen=!0,a.onControlFocusin(o)}function dt(o){o!==void 0&&s.stop(o),n("popupHide",o),a.hasPopupOpen=!1,a.onControlFocusout(o)}function ft(){R=f.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?l["no-option"]!==void 0||e.onFilter!==void 0||$.value===!1:!0),D=f.platform.is.ios===!0&&R===!0&&e.useInput===!0?"fade":e.transitionShow}return t.onBeforeUpdate(ft),t.onUpdated(st),ft(),t.onBeforeUnmount(()=>{w!==null&&clearTimeout(w),q!==null&&clearTimeout(q)}),Object.assign(u,{showPopup:ye,hidePopup:me,removeAtIndex:$e,add:et,toggleOption:ve,getOptionIndex:()=>b.value,setOptionIndex:ge,moveOptionSelection:Re,filter:be,updateMenuPosition:st,updateInputValue:xe,isOptionSelected:je,getEmittingOptionValue:Ge,isOptionDisabled:(...o)=>he.value.apply(null,o)===!0,getOptionValue:(...o)=>ie.value.apply(null,o),getOptionLabel:(...o)=>G.value.apply(null,o)}),Object.assign(a,{innerValue:d,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:I,hasValue:z,showPopup:ye,floatingLabel:t.computed(()=>e.hideSelected!==!0&&z.value===!0||typeof S.value=="number"||S.value.length!==0||Ze(e.displayValue)),getControlChild:()=>{if(a.editable.value!==!1&&(r.value===!0||$.value!==!0||l["no-option"]!==void 0))return R===!0?Nt():Pt();a.hasPopupOpen===!0&&(a.hasPopupOpen=!1)},controlEvents:{onFocusin(o){a.onControlFocusin(o)},onFocusout(o){a.onControlFocusout(o,()=>{we(),Se()})},onClick(o){var c;if(s.prevent(o),R!==!0&&i.value===!0){Se(),(c=I.value)==null||c.focus();return}ye(o)}},getControl:o=>{const c=Mt(),m=o===!0||r.value!==!0||R!==!0;if(e.useInput===!0)c.push(Lt(o,m));else if(a.editable.value===!0){const M=m===!0?ze.value:void 0;c.push(t.h("input",{ref:m===!0?I:void 0,key:"d_t",class:"q-select__focus-target",id:m===!0?a.targetUid.value:void 0,value:J.value,readonly:!0,"data-autofocus":o===!0||e.autofocus===!0||void 0,...M,onKeydown:ut,onKeyup:lt,onKeypress:nt})),m===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&c.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:ot}))}if(X.value!==void 0&&e.disable!==!0&&Fe.value.length!==0){const M=Fe.value.map(j=>t.h("option",{value:j,selected:!0}));c.push(t.h("select",{class:"hidden",name:X.value,multiple:e.multiple},M))}const F=e.useInput===!0||m!==!0?void 0:a.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...F,...a.splitAttrs.listeners.value},c)},getInnerAppend:()=>e.loading!==!0&&v.value!==!0&&e.hideDropdownIcon!==!0?[t.h(s.QIcon,{class:"q-select__dropdown-icon"+(i.value===!0?" rotate-180":""),name:qe.value})]:null}),zt(a)}}),_l={class:"app-select__amount"},Bl=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:{},isMobile:{type:Boolean}},emits:["update:modelValue","popupShow","popupHide"],setup(e,{emit:l}){const n=e,u=l,f=t.ref(!1),i=t.ref(""),r=t.computed({get(){if(n.modelValue){if(n.multiple&&Array.isArray(n.modelValue))return n.options.filter(h=>n.modelValue.includes(h.value));if(!Array.isArray(n.modelValue))return n.options.find(h=>h.value===n.modelValue)}},set(h){if(!h){u("update:modelValue",void 0);return}if(n.multiple&&Array.isArray(h)){const p=h.map(k=>k.value);u("update:modelValue",p)}else Array.isArray(h)||u("update:modelValue",h.value)}}),b=t.computed(()=>{var h;if(Array.isArray(r.value)){if(n.multiple&&r.value.length==0)return n.placeholder}else return((h=r.value)==null?void 0:h.label)||n.placeholder||"";return""}),S=t.computed(()=>!(!n.clearable||!n.modelValue||n.modelValue&&Array.isArray(n.modelValue)&&!n.modelValue.length)),_=t.computed(()=>i.value?n.options.filter(h=>h.label.toLowerCase().includes(i.value.toLowerCase())):n.options),v=t.computed(()=>{if(n.rules)return n.required?[...n.rules,vt]:n.rules;if(n.required)return[vt]}),w=()=>{f.value=!0,u("popupShow")},q=()=>{f.value=!1,u("popupHide")},C=()=>{r.value=void 0},R=(h,p)=>{p(()=>{i.value=h})};return(h,p)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["app-select",[{"app-select_opened":f.value},`app-select_${h.size}`]])},[h.label?(t.openBlock(),t.createElementBlock("label",{key:0,class:t.normalizeClass(["app-select__label",{"app-select__label_bold":h.required}])},t.toDisplayString(h.required?`${h.label} *`:h.label),3)):t.createCommentVNode("",!0),t.createVNode(t.unref(xl),{standout:"","hide-bottom-space":"","hide-dropdown-icon":"","no-error-icon":"",behavior:"menu","popup-no-route-dismiss":"","popup-content-class":`glass-menu app-select-menu app-select-menu_${h.size} ${h.menuClass}`,placeholder:h.filtering&&"Почніть вводити","input-debounce":"50",modelValue:r.value,"onUpdate:modelValue":p[0]||(p[0]=k=>r.value=k),options:_.value,multiple:h.multiple,"use-input":h.filtering&&(Array.isArray(r.value)||!r.value),rules:v.value,"lazy-rules":h.lazyRules,autofocus:h.autofocus,disable:h.disabled,loading:h.loading,onFilter:R,onPopupShow:w,onPopupHide:q},{append:t.withCtx(()=>[S.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),p[1]||(p[1]=t.createElementVNode("i",{class:"icon-kl icon-kl-arrow-down app-select__drop-icon"},null,-1))]),selected:t.withCtx(()=>{var k,D;return[Array.isArray(r.value)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[!h.filtering||r.value.length?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["app-select__selected",{"app-select__placeholder":!((k=r.value)!=null&&k.length)&&h.placeholder}])},[(D=r.value)!=null&&D.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p[2]||(p[2]=t.createTextVNode(" Вибрано ",-1)),t.createElementVNode("span",_l,t.toDisplayString(r.value.length),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.placeholder),1)],64))],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[!h.filtering||r.value?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["app-select__selected",{"app-select__placeholder":!r.value&&h.placeholder}])},t.toDisplayString(b.value),3)):t.createCommentVNode("",!0)],64))]}),option:t.withCtx(k=>[t.createVNode(s.PopupItem,t.mergeProps({"no-arrow":"",label:k.opt.label,checked:k.opt.done,active:k.selected,"is-mobile":h.isMobile,checkbox:n.multiple,"model-value":k.selected},k.itemProps,{"onUpdate:modelValue":()=>k.toggleOption(k.opt)}),null,16,["label","checked","active","is-mobile","checkbox","model-value","onUpdate:modelValue"])]),_:1},8,["popup-content-class","placeholder","modelValue","options","multiple","use-input","rules","lazy-rules","autofocus","disable","loading"])],2))}}),Al=s._export_sfc(Bl,[["__scopeId","data-v-500837e5"]]);exports.default=Al;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),s=require("./index-Ik1k1L31.cjs"),U=require("./QMenu-uB6Zqa0Q.cjs"),le=require("./focusout-DzWGke-4.cjs"),vt=e=>e?!0:"Обовʼязкове поле",mt=/^on[A-Z]/;function Xt(){const{attrs:e,vnode:l}=t.getCurrentInstance(),n={listeners:t.ref({}),attributes:t.ref({})};function u(){const f={},i={};for(const r in e)r!=="class"&&r!=="style"&&mt.test(r)===!1&&(f[r]=e[r]);for(const r in l.props)mt.test(r)===!0&&(i[r]=l.props[r]);n.attributes.value=f,n.listeners.value=i}return t.onBeforeUpdate(u),u(),n}const Yt="_q_fo_";function Zt({validate:e,resetValidation:l,requiresQForm:n}){const u=t.inject(Yt,!1);if(u!==!1){const{props:f,proxy:i}=t.getCurrentInstance();Object.assign(i,{validate:e,resetValidation:l}),t.watch(()=>f.disable,r=>{r===!0?(typeof l=="function"&&l(),u.unbindComponent(i)):u.bindComponent(i)}),t.onMounted(()=>{f.disable!==!0&&u.bindComponent(i)}),t.onBeforeUnmount(()=>{f.disable!==!0&&u.unbindComponent(i)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const pt=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,ht=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,gt=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Oe=/^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])\)$/,Me=/^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)\)$/,Ke={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=>pt.test(e),hexaColor:e=>ht.test(e),hexOrHexaColor:e=>gt.test(e),rgbColor:e=>Oe.test(e),rgbaColor:e=>Me.test(e),rgbOrRgbaColor:e=>Oe.test(e)||Me.test(e),hexOrRgbColor:e=>pt.test(e)||Oe.test(e),hexaOrRgbaColor:e=>ht.test(e)||Me.test(e),anyColor:e=>gt.test(e)||Oe.test(e)||Me.test(e)};function Bt(e,l=250,n){let u=null;function f(){const i=arguments,r=()=>{u=null,e.apply(this,i)};u!==null?clearTimeout(u):n===!0&&e.apply(this,i),u=setTimeout(r,l)}return f.cancel=()=>{u!==null&&clearTimeout(u)},f}const Jt=[!0,!1,"ondemand"],Gt={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Jt.includes(e)}};function el(e,l){const{props:n,proxy:u}=t.getCurrentInstance(),f=t.ref(!1),i=t.ref(null),r=t.ref(!1);Zt({validate:h,resetValidation:R});let b=0,S;const _=t.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),v=t.computed(()=>n.disable!==!0&&_.value===!0&&l.value===!1),w=t.computed(()=>n.error===!0||f.value===!0),q=t.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:i.value);t.watch(()=>n.modelValue,()=>{r.value=!0,v.value===!0&&n.lazyRules===!1&&p()});function C(){n.lazyRules!=="ondemand"&&v.value===!0&&r.value===!0&&p()}t.watch(()=>n.reactiveRules,k=>{k===!0?S===void 0&&(S=t.watch(()=>n.rules,C,{immediate:!0,deep:!0})):S!==void 0&&(S(),S=void 0)},{immediate:!0}),t.watch(()=>n.lazyRules,C),t.watch(e,k=>{k===!0?r.value=!0:v.value===!0&&n.lazyRules!=="ondemand"&&p()});function R(){b++,l.value=!1,r.value=!1,f.value=!1,i.value=null,p.cancel()}function h(k=n.modelValue){if(n.disable===!0||_.value===!1)return!0;const D=++b,A=l.value!==!0?()=>{r.value=!0}:()=>{},O=(I,P)=>{I===!0&&A(),f.value=I,i.value=P||null,l.value=!1},Y=[];for(let I=0;I<n.rules.length;I++){const P=n.rules[I];let H;if(typeof P=="function"?H=P(k,Ke):typeof P=="string"&&Ke[P]!==void 0&&(H=Ke[P](k)),H===!1||typeof H=="string")return O(!0,H),!1;H!==!0&&H!==void 0&&Y.push(H)}return Y.length===0?(O(!1),!0):(l.value=!0,Promise.all(Y).then(I=>{if(I===void 0||Array.isArray(I)===!1||I.length===0)return D===b&&O(!1),!0;const P=I.find(H=>H===!1||typeof H=="string");return D===b&&O(P!==void 0,P),P===void 0},I=>(D===b&&(console.error(I),O(!0)),!1)))}const p=Bt(h,0);return t.onBeforeUnmount(()=>{S==null||S(),p.cancel()}),Object.assign(u,{resetValidation:R,validate:h}),le.injectProp(u,"hasError",()=>w.value),{isDirtyModel:r,hasRules:_,hasError:w,errorMessage:q,validate:h,resetValidation:R}}function Ze(e){return e!=null&&(""+e).length!==0}const tl={...s.useDarkProps,...Gt,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},Je={...tl,maxlength:[Number,String]},At=["update:modelValue","clear","focus","blur"];function Et({requiredForAttr:e=!0,tagProp:l,changeEvent:n=!1}={}){const{props:u,proxy:f}=t.getCurrentInstance(),i=s.useDark(u,f.$q),r=U.useId({required:e,getValue:()=>u.for});return{requiredForAttr:e,changeEvent:n,tag:l===!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:Xt(),targetUid:r,rootRef:t.ref(null),targetRef:t.ref(null),controlRef:t.ref(null)}}function zt(e){const{props:l,emit:n,slots:u,attrs:f,proxy:i}=t.getCurrentInstance(),{$q:r}=i;let b=null;e.hasValue===void 0&&(e.hasValue=t.computed(()=>Ze(l.modelValue))),e.emitValue===void 0&&(e.emitValue=g=>{n("update:modelValue",g)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:oe,onFocusout:X}),Object.assign(e,{clearValue:ne,onControlFocusin:oe,onControlFocusout:X,focus:P}),e.computedCounter===void 0&&(e.computedCounter=t.computed(()=>{if(l.counter!==!1){const g=typeof l.modelValue=="string"||typeof l.modelValue=="number"?(""+l.modelValue).length:Array.isArray(l.modelValue)===!0?l.modelValue.length:0,V=l.maxlength!==void 0?l.maxlength:l.maxValues;return g+(V!==void 0?" / "+V:"")}}));const{isDirtyModel:S,hasRules:_,hasError:v,errorMessage:w,resetValidation:q}=el(e.focused,e.innerLoading),C=e.floatingLabel!==void 0?t.computed(()=>l.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):t.computed(()=>l.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),R=t.computed(()=>l.bottomSlots===!0||l.hint!==void 0||_.value===!0||l.counter===!0||l.error!==null),h=t.computed(()=>l.filled===!0?"filled":l.outlined===!0?"outlined":l.borderless===!0?"borderless":l.standout?"standout":"standard"),p=t.computed(()=>`q-field row no-wrap items-start q-field--${h.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(l.rounded===!0?" q-field--rounded":"")+(l.square===!0?" q-field--square":"")+(C.value===!0?" q-field--float":"")+(D.value===!0?" q-field--labeled":"")+(l.dense===!0?" q-field--dense":"")+(l.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":"")+(v.value===!0?" q-field--error":"")+(v.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&R.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),k=t.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(v.value===!0?" text-negative":typeof l.standout=="string"&&l.standout.length!==0&&e.focused.value===!0?` ${l.standout}`:l.color!==void 0?` text-${l.color}`:"")),D=t.computed(()=>l.labelSlot===!0||l.label!==void 0),A=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&v.value!==!0?` text-${l.labelColor}`:"")),O=t.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:C.value,modelValue:l.modelValue,emitValue:e.emitValue})),Y=t.computed(()=>{const g={};return e.targetUid.value&&(g.for=e.targetUid.value),l.disable===!0&&(g["aria-disabled"]="true"),g});function I(){var W;const g=document.activeElement;let V=(W=e.targetRef)==null?void 0:W.value;V&&(g===null||g.id!==e.targetUid.value)&&(V.hasAttribute("tabindex")===!0||(V=V.querySelector("[tabindex]")),V!==g&&(V==null||V.focus({preventScroll:!0})))}function P(){U.addFocusFn(I)}function H(){U.removeFocusFn(I);const g=document.activeElement;g!==null&&e.rootRef.value.contains(g)&&g.blur()}function oe(g){b!==null&&(clearTimeout(b),b=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",g))}function X(g,V){b!==null&&clearTimeout(b),b=setTimeout(()=>{b=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,n("blur",g)),V==null||V())})}function ne(g){var V;s.stopAndPrevent(g),r.platform.is.mobile!==!0?(((V=e.targetRef)==null?void 0:V.value)||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),l.type==="file"&&(e.inputRef.value.value=null),n("update:modelValue",null),e.changeEvent===!0&&n("change",null),n("clear",l.modelValue),t.nextTick(()=>{const W=S.value;q(),S.value=W})}function Q(g){[13,32].includes(g.keyCode)&&ne(g)}function ae(){const g=[];return u.prepend!==void 0&&g.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:s.prevent},u.prepend())),g.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},re())),v.value===!0&&l.noErrorIcon===!1&&g.push(K("error",[t.h(s.QIcon,{name:r.iconSet.field.error,color:"negative"})])),l.loading===!0||e.innerLoading.value===!0?g.push(K("inner-loading-append",u.loading!==void 0?u.loading():[t.h(s.QSpinner,{color:l.color})])):l.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&g.push(K("inner-clearable-append",[t.h(s.QIcon,{class:"q-field__focusable-action",name:l.clearIcon||r.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":r.lang.label.clear,onKeyup:Q,onClick:ne})])),u.append!==void 0&&g.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&&g.push(K("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&g.push(e.getControlChild()),g}function re(){const g=[];return l.prefix!==void 0&&l.prefix!==null&&g.push(t.h("div",{class:"q-field__prefix no-pointer-events row items-center"},l.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&g.push(e.getShadowControl()),D.value===!0&&g.push(t.h("div",{class:A.value},s.hSlot(u.label,l.label))),e.getControl!==void 0?g.push(e.getControl()):u.rawControl!==void 0?g.push(u.rawControl()):u.control!==void 0&&g.push(t.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0},u.control(O.value))),l.suffix!==void 0&&l.suffix!==null&&g.push(t.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),g.concat(s.hSlot(u.default))}function Z(){let g,V;v.value===!0?w.value!==null?(g=[t.h("div",{role:"alert"},w.value)],V=`q--slot-error-${w.value}`):(g=s.hSlot(u.error),V="q--slot-error"):(l.hideHint!==!0||e.focused.value===!0)&&(l.hint!==void 0?(g=[t.h("div",l.hint)],V=`q--slot-hint-${l.hint}`):(g=s.hSlot(u.hint),V="q--slot-hint"));const W=l.counter===!0||u.counter!==void 0;if(l.hideBottomSpace===!0&&W===!1&&g===void 0)return;const a=t.h("div",{key:V,class:"q-field__messages col"},g);return t.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:s.prevent},[l.hideBottomSpace===!0?a:t.h(t.Transition,{name:"q-transition--field-message"},()=>a),W===!0?t.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():e.computedCounter.value):null])}function K(g,V){return V===null?null:t.h("div",{key:g,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},V)}let ue=!1;return t.onDeactivated(()=>{ue=!0}),t.onActivated(()=>{ue===!0&&l.autofocus===!0&&i.focus()}),l.autofocus===!0&&t.onMounted(()=>{i.focus()}),t.onBeforeUnmount(()=>{b!==null&&clearTimeout(b)}),Object.assign(i,{focus:P,blur:H}),function(){const V=e.getControl===void 0&&u.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...Y.value}:Y.value;return t.h(e.tag.value,{ref:e.rootRef,class:[p.value,f.class],style:f.style,...V},[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:k.value,tabindex:-1,...e.controlEvents},ae()),R.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 ll=s.createComponent({name:"QField",inheritAttrs:!1,props:{...Je,tag:{type:String,default:"label"}},emits:At,setup(){return zt(Et({tagProp:!0}))}}),ol={xs:8,sm:10,md:14,lg:20,xl:24},nl=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:l,emit:n}){const{proxy:{$q:u}}=t.getCurrentInstance(),f=s.useDark(e,u),i=s.useSize(e,ol),r=t.computed(()=>e.selected===!0||e.icon!==void 0),b=t.computed(()=>e.selected===!0?e.iconSelected||u.iconSet.chip.selected:e.icon),S=t.computed(()=>e.iconRemove||u.iconSet.chip.remove),_=t.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),v=t.computed(()=>{const p=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}`:"")+(p?` text-${p} 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":"")+(_.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(f.value===!0?" q-chip--dark q-dark":"")}),w=t.computed(()=>{const p=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},k={...p,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||u.lang.label.remove};return{chip:p,remove:k}});function q(p){p.keyCode===13&&C(p)}function C(p){e.disable||(n("update:selected",!e.selected),n("click",p))}function R(p){(p.keyCode===void 0||p.keyCode===13)&&(s.stopAndPrevent(p),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function h(){const p=[];_.value===!0&&p.push(t.h("div",{class:"q-focus-helper"})),r.value===!0&&p.push(t.h(s.QIcon,{class:"q-chip__icon q-chip__icon--left",name:b.value}));const k=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return p.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},s.hMergeSlotSafely(l.default,k))),e.iconRight&&p.push(t.h(s.QIcon,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&p.push(t.h(s.QIcon,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:S.value,...w.value.remove,onClick:R,onKeyup:R})),p}return()=>{if(e.modelValue===!1)return;const p={class:v.value,style:i.value};return _.value===!0&&Object.assign(p,w.value.chip,{onClick:C,onKeyup:q}),s.hDir("div",p,h(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[s.Ripple,e.ripple]])}}}),ul=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:l,emit:n}){const{proxy:{$q:u}}=t.getCurrentInstance(),f=s.useDark(e,u),{hasLink:i,linkAttrs:r,linkClass:b,linkTag:S,navigateOnClick:_}=s.useRouterLink(),v=t.ref(null),w=t.ref(null),q=t.computed(()=>e.clickable===!0||i.value===!0||e.tag==="label"),C=t.computed(()=>e.disable!==!0&&q.value===!0),R=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(f.value===!0?" q-item--dark":"")+(i.value===!0&&e.active===null?b.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":""):"")),h=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function p(A){C.value===!0&&(w.value!==null&&A.qAvoidFocus!==!0&&(A.qKeyEvent!==!0&&document.activeElement===v.value?w.value.focus():document.activeElement===w.value&&v.value.focus()),_(A))}function k(A){if(C.value===!0&&s.isKeyCode(A,[13,32])===!0){s.stopAndPrevent(A),A.qKeyEvent=!0;const O=new MouseEvent("click",A);O.qKeyEvent=!0,v.value.dispatchEvent(O)}n("keyup",A)}function D(){const A=s.hUniqueSlot(l.default,[]);return C.value===!0&&A.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:w})),A}return()=>{const A={ref:v,class:R.value,style:h.value,role:"listitem",onClick:p,onKeyup:k};return C.value===!0?(A.tabindex=e.tabindex||"0",Object.assign(A,r.value)):q.value===!0&&(A["aria-disabled"]="true"),t.h(S.value,A,D())}}}),il=s.createComponent({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:l}){const n=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:n.value},s.hSlot(l.default))}}),al=s.createComponent({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:l}){const n=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":"")+(n.value===1?" ellipsis":"")),f=t.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>t.h("div",{style:f.value,class:u.value},s.hSlot(l.default))}});function rl(e,l,n){function u(){}return t.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let _e=0,Ue,Qe,Ae,We=!1,bt,St,yt,pe=null;function sl(e){cl(e)&&s.stopAndPrevent(e)}function cl(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const l=s.getEventPath(e),n=e.shiftKey&&!e.deltaX,u=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),f=n||u?e.deltaY:e.deltaX;for(let i=0;i<l.length;i++){const r=l[i];if(U.hasScrollbar(r,u))return u?f<0&&r.scrollTop===0?!0:f>0&&r.scrollTop+r.clientHeight===r.scrollHeight:f<0&&r.scrollLeft===0?!0:f>0&&r.scrollLeft+r.clientWidth===r.scrollWidth}return!0}function wt(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Le(e){We!==!0&&(We=!0,requestAnimationFrame(()=>{We=!1;const{height:l}=e.target,{clientHeight:n,scrollTop:u}=document.scrollingElement;(Ae===void 0||l!==window.innerHeight)&&(Ae=n-l,document.scrollingElement.scrollTop=u),u>Ae&&(document.scrollingElement.scrollTop-=Math.ceil((u-Ae)/8))}))}function Ct(e){const l=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:u,overflowX:f}=window.getComputedStyle(l);Ue=U.getHorizontalScrollPosition(window),Qe=U.getVerticalScrollPosition(window),bt=l.style.left,St=l.style.top,yt=window.location.href,l.style.left=`-${Ue}px`,l.style.top=`-${Qe}px`,f!=="hidden"&&(f==="scroll"||l.scrollWidth>window.innerWidth)&&l.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||l.scrollHeight>window.innerHeight)&&l.classList.add("q-body--force-scrollbar-y"),l.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,le.client.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Le,s.listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",Le,s.listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",wt,s.listenOpts.passiveCapture))}le.client.is.desktop===!0&&le.client.is.mac===!0&&window[`${e}EventListener`]("wheel",sl,s.listenOpts.notPassive),e==="remove"&&(le.client.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",Le,s.listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",Le,s.listenOpts.passiveCapture)):window.removeEventListener("scroll",wt,s.listenOpts.passiveCapture)),l.classList.remove("q-body--prevent-scroll"),l.classList.remove("q-body--force-scrollbar-x"),l.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,l.style.left=bt,l.style.top=St,window.location.href===yt&&window.scrollTo(Ue,Qe),Ae=void 0)}function dl(e){let l="add";if(e===!0){if(_e++,pe!==null){clearTimeout(pe),pe=null;return}if(_e>1)return}else{if(_e===0||(_e--,_e>0))return;if(l="remove",le.client.is.ios===!0&&le.client.is.nativeMobile===!0){pe!==null&&clearTimeout(pe),pe=setTimeout(()=>{Ct(l),pe=null},100);return}}Ct(l)}function fl(){let e;return{preventBodyScroll(l){l!==e&&(e!==void 0||l===!0)&&(e=l,dl(l))}}}let Pe=0;const vl={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"},kt={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},ml=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:l,emit:n,attrs:u}){const f=t.getCurrentInstance(),i=t.ref(null),r=t.ref(!1),b=t.ref(!1);let S=null,_=null,v,w;const q=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:C}=fl(),{registerTimeout:R}=U.useTimeout(),{registerTick:h,removeTick:p}=U.useTick(),{transitionProps:k,transitionStyle:D}=U.useTransition(e,()=>kt[e.position][0],()=>kt[e.position][1]),A=t.computed(()=>D.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:O,hidePortal:Y,portalIsAccessible:I,renderPortal:P}=U.usePortal(f,i,E,"dialog"),{hide:H}=U.useModelToggle({showing:r,hideOnRouteChange:q,handleShow:ae,handleHide:re,processOnMount:!0});rl(r);const oe=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${vl[e.position]}`+(b.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":"")),X=t.computed(()=>r.value===!0&&e.seamless!==!0),ne=t.computed(()=>e.autoClose===!0?{onClick:W}:{}),Q=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${X.value===!0?"modal":"seamless"}`,u.class]);t.watch(()=>e.maximized,y=>{r.value===!0&&V(y)}),t.watch(X,y=>{C(y),y===!0?(le.addFocusout(d),U.addEscapeKey(ue)):(le.removeFocusout(d),U.removeEscapeKey(ue))});function ae(y){var z;_=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,V(e.maximized),O(),b.value=!0,e.noFocus!==!0?((z=document.activeElement)==null||z.blur(),h(Z)):p(),R(()=>{if(f.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:T,bottom:B}=document.activeElement.getBoundingClientRect(),{innerHeight:$}=window,x=window.visualViewport!==void 0?window.visualViewport.height:$;T>0&&B>x/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-x,B>=$?1/0:Math.ceil(document.scrollingElement.scrollTop+B-x/2))),document.activeElement.scrollIntoView()}w=!0,i.value.click(),w=!1}O(!0),b.value=!1,n("show",y)},e.transitionDuration)}function re(y){p(),g(!0),b.value=!0,Y(),_!==null&&((((y==null?void 0:y.type.indexOf("key"))===0?_.closest('[tabindex]:not([tabindex^="-"])'):void 0)||_).focus(),_=null),R(()=>{Y(!0),b.value=!1,n("hide",y)},e.transitionDuration)}function Z(y){U.addFocusFn(()=>{let z=i.value;if(z!==null){if(y!==void 0){const T=z.querySelector(y);if(T!==null){T.focus({preventScroll:!0});return}}z.contains(document.activeElement)!==!0&&(z=z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||z.querySelector("[autofocus], [data-autofocus]")||z,z.focus({preventScroll:!0}))}})}function K(y){y&&typeof y.focus=="function"?y.focus({preventScroll:!0}):Z(),n("shake");const z=i.value;z!==null&&(z.classList.remove("q-animate--scale"),z.classList.add("q-animate--scale"),S!==null&&clearTimeout(S),S=setTimeout(()=>{S=null,i.value!==null&&(z.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():(n("escapeKey"),H()))}function g(y){S!==null&&(clearTimeout(S),S=null),(y===!0||r.value===!0)&&(V(!1),e.seamless!==!0&&(C(!1),le.removeFocusout(d),U.removeEscapeKey(ue))),y!==!0&&(_=null)}function V(y){y===!0?v!==!0&&(Pe<1&&document.body.classList.add("q-body--dialog"),Pe++,v=!0):v===!0&&(Pe<2&&document.body.classList.remove("q-body--dialog"),Pe--,v=!1)}function W(y){w!==!0&&(H(y),n("click",y))}function a(y){e.persistent!==!0&&e.noBackdropDismiss!==!0?H(y):e.noShake!==!0&&K()}function d(y){e.allowFocusOutside!==!0&&I.value===!0&&s.childHasFocus(i.value,y.target)!==!0&&Z('[tabindex]:not([tabindex="-1"])')}Object.assign(f.proxy,{focus:Z,shake:K,__updateRefocusTarget(y){_=y||null}}),t.onBeforeUnmount(g);function E(){return t.h("div",{role:"dialog","aria-modal":X.value===!0?"true":"false",...u,class:Q.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>X.value===!0?t.h("div",{class:"q-dialog__backdrop fixed-full",style:A.value,"aria-hidden":"true",tabindex:-1,onClick:a}):null),t.h(t.Transition,k.value,()=>r.value===!0?t.h("div",{ref:i,class:oe.value,style:D.value,tabindex:-1,...ne.value},s.hSlot(l.default)):null)])}return P}});let He=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const l=document.createElement("div");Object.assign(l.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(l),e.scrollLeft=-1e3,He=e.scrollLeft>=0,e.remove()}const te=1e3,pl=["start","center","end","start-force","center-force","end-force"],Tt=Array.prototype.filter,hl=window.getComputedStyle(document.body).overflowAnchor===void 0?s.noop:function(e,l){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];Tt.call(n,f=>f.dataset&&f.dataset.qVsAnchor!==void 0).forEach(f=>{delete f.dataset.qVsAnchor});const u=n[l];u!=null&&u.dataset&&(u.dataset.qVsAnchor="")}))};function ke(e,l){return e+l}function Xe(e,l,n,u,f,i,r,b){const S=e===window?document.scrollingElement||document.documentElement:e,_=f===!0?"offsetWidth":"offsetHeight",v={scrollStart:0,scrollViewSize:-r-b,scrollMaxSize:0,offsetStart:-r,offsetEnd:-b};if(f===!0?(e===window?(v.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,v.scrollViewSize+=document.documentElement.clientWidth):(v.scrollStart=S.scrollLeft,v.scrollViewSize+=S.clientWidth),v.scrollMaxSize=S.scrollWidth,i===!0&&(v.scrollStart=(He===!0?v.scrollMaxSize-v.scrollViewSize:0)-v.scrollStart)):(e===window?(v.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,v.scrollViewSize+=document.documentElement.clientHeight):(v.scrollStart=S.scrollTop,v.scrollViewSize+=S.clientHeight),v.scrollMaxSize=S.scrollHeight),n!==null)for(let w=n.previousElementSibling;w!==null;w=w.previousElementSibling)w.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=w[_]);if(u!==null)for(let w=u.nextElementSibling;w!==null;w=w.nextElementSibling)w.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=w[_]);if(l!==e){const w=S.getBoundingClientRect(),q=l.getBoundingClientRect();f===!0?(v.offsetStart+=q.left-w.left,v.offsetEnd-=q.width):(v.offsetStart+=q.top-w.top,v.offsetEnd-=q.height),e!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function qt(e,l,n,u){l==="end"&&(l=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(u===!0&&(l=(He===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-l),window.scrollTo(l,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,l):n===!0?(u===!0&&(l=(He===!0?e.scrollWidth-e.offsetWidth:0)-l),e.scrollLeft=l):e.scrollTop=l}function Be(e,l,n,u){if(n>=u)return 0;const f=l.length,i=Math.floor(n/te),r=Math.floor((u-1)/te)+1;let b=e.slice(i,r).reduce(ke,0);return n%te!==0&&(b-=l.slice(i*te,n).reduce(ke,0)),u%te!==0&&u!==f&&(b-=l.slice(u,r*te).reduce(ke,0)),b}const gl={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,...gl};function bl({virtualScrollLength:e,getVirtualScrollTarget:l,getVirtualScrollEl:n,virtualScrollItemSizeComputed:u}){const f=t.getCurrentInstance(),{props:i,emit:r,proxy:b}=f,{$q:S}=b;let _,v,w,q=[],C;const R=t.ref(0),h=t.ref(0),p=t.ref({}),k=t.ref(null),D=t.ref(null),A=t.ref(null),O=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 I=t.computed(()=>u.value+";"+i.virtualScrollHorizontal),P=t.computed(()=>I.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);t.watch(P,()=>{K()}),t.watch(I,H);function H(){Z(v,!0)}function oe(a){Z(a===void 0?v:a)}function X(a,d){const E=l();if(E==null||E.nodeType===8)return;const y=Xe(E,n(),k.value,D.value,i.virtualScrollHorizontal,S.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);w!==y.scrollViewSize&&K(y.scrollViewSize),Q(E,y,Math.min(e.value-1,Math.max(0,parseInt(a,10)||0)),0,pl.indexOf(d)!==-1?d:v!==-1&&a>v?"end":"start")}function ne(){const a=l();if(a==null||a.nodeType===8)return;const d=Xe(a,n(),k.value,D.value,i.virtualScrollHorizontal,S.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),E=e.value-1,y=d.scrollMaxSize-d.offsetStart-d.offsetEnd-h.value;if(_===d.scrollStart)return;if(d.scrollMaxSize<=0){Q(a,d,0,0);return}w!==d.scrollViewSize&&K(d.scrollViewSize),ae(O.value.from);const z=Math.floor(d.scrollMaxSize-Math.max(d.scrollViewSize,d.offsetEnd)-Math.min(C[E],d.scrollViewSize/2));if(z>0&&Math.ceil(d.scrollStart)>=z){Q(a,d,E,d.scrollMaxSize-d.offsetEnd-q.reduce(ke,0));return}let T=0,B=d.scrollStart-d.offsetStart,$=B;if(B<=y&&B+d.scrollViewSize>=R.value)B-=R.value,T=O.value.from,$=B;else for(let x=0;B>=q[x]&&T<E;x++)B-=q[x],T+=te;for(;B>0&&T<E;)B-=C[T],B>-d.scrollViewSize?(T++,$=B):$=C[T]+B;Q(a,d,T,$)}function Q(a,d,E,y,z){const T=typeof z=="string"&&z.indexOf("-force")!==-1,B=T===!0?z.replace("-force",""):z,$=B!==void 0?B:"start";let x=Math.max(0,E-p.value[$]),J=x+p.value.total;J>e.value&&(J=e.value,x=Math.max(0,J-p.value.total)),_=d.scrollStart;const se=x!==O.value.from||J!==O.value.to;if(se===!1&&B===void 0){g(E);return}const{activeElement:Ee}=document,ee=A.value;se===!0&&ee!==null&&ee!==Ee&&ee.contains(Ee)===!0&&(ee.addEventListener("focusout",re),setTimeout(()=>{ee==null||ee.removeEventListener("focusout",re)})),hl(ee,E-x);const ze=B!==void 0?C.slice(x,E).reduce(ke,0):0;if(se===!0){const de=J>=O.value.from&&x<=O.value.to?O.value.to:J;O.value={from:x,to:de},R.value=Be(q,C,0,x),h.value=Be(q,C,J,e.value),requestAnimationFrame(()=>{O.value.to!==J&&_===d.scrollStart&&(O.value={from:O.value.from,to:J},h.value=Be(q,C,J,e.value))})}requestAnimationFrame(()=>{if(_!==d.scrollStart)return;se===!0&&ae(x);const de=C.slice(x,E).reduce(ke,0),fe=de+d.offsetStart+R.value,Te=fe+C[E];let qe=fe+y;if(B!==void 0){const De=de-ze,Ve=d.scrollStart+De;qe=T!==!0&&Ve<fe&&Te<Ve+d.scrollViewSize?Ve:B==="end"?Te-d.scrollViewSize:fe-(B==="start"?0:Math.round((d.scrollViewSize-C[E])/2))}_=qe,qt(a,qe,i.virtualScrollHorizontal,S.lang.rtl),g(E)})}function ae(a){const d=A.value;if(d){const E=Tt.call(d.children,x=>x.classList&&x.classList.contains("q-virtual-scroll--skip")===!1),y=E.length,z=i.virtualScrollHorizontal===!0?x=>x.getBoundingClientRect().width:x=>x.offsetHeight;let T=a,B,$;for(let x=0;x<y;){for(B=z(E[x]),x++;x<y&&E[x].classList.contains("q-virtual-scroll--with-prev")===!0;)B+=z(E[x]),x++;$=B-C[T],$!==0&&(C[T]+=$,q[Math.floor(T/te)]+=$),T++}}}function re(){var a;(a=A.value)==null||a.focus()}function Z(a,d){const E=1*u.value;(d===!0||Array.isArray(C)===!1)&&(C=[]);const y=C.length;C.length=e.value;for(let T=e.value-1;T>=y;T--)C[T]=E;const z=Math.floor((e.value-1)/te);q=[];for(let T=0;T<=z;T++){let B=0;const $=Math.min((T+1)*te,e.value);for(let x=T*te;x<$;x++)B+=C[x];q.push(B)}v=-1,_=void 0,R.value=Be(q,C,0,O.value.from),h.value=Be(q,C,O.value.to,e.value),a>=0?(ae(O.value.from),t.nextTick(()=>{X(a)})):V()}function K(a){if(a===void 0&&typeof window<"u"){const B=l();B!=null&&B.nodeType!==8&&(a=Xe(B,n(),k.value,D.value,i.virtualScrollHorizontal,S.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}w=a;const d=parseFloat(i.virtualScrollSliceRatioBefore)||0,E=parseFloat(i.virtualScrollSliceRatioAfter)||0,y=1+d+E,z=a===void 0||a<=0?1:Math.ceil(a/u.value),T=Math.max(1,z,Math.ceil((i.virtualScrollSliceSize>0?i.virtualScrollSliceSize:10)/y));p.value={total:Math.ceil(T*y),start:Math.ceil(T*d),center:Math.ceil(T*(.5+d)),end:Math.ceil(T*(1+d)),view:z}}function ue(a,d){const E=i.virtualScrollHorizontal===!0?"width":"height",y={["--q-virtual-scroll-item-"+E]:u.value+"px"};return[a==="tbody"?t.h(a,{class:"q-virtual-scroll__padding",key:"before",ref:k},[t.h("tr",[t.h("td",{style:{[E]:`${R.value}px`,...y},colspan:Y.value})])]):t.h(a,{class:"q-virtual-scroll__padding",key:"before",ref:k,style:{[E]:`${R.value}px`,...y}}),t.h(a,{class:"q-virtual-scroll__content",key:"content",ref:A,tabindex:-1},d.flat()),a==="tbody"?t.h(a,{class:"q-virtual-scroll__padding",key:"after",ref:D},[t.h("tr",[t.h("td",{style:{[E]:`${h.value}px`,...y},colspan:Y.value})])]):t.h(a,{class:"q-virtual-scroll__padding",key:"after",ref:D,style:{[E]:`${h.value}px`,...y}})]}function g(a){v!==a&&(i.onVirtualScroll!==void 0&&r("virtualScroll",{index:a,from:O.value.from,to:O.value.to-1,direction:a<v?"decrease":"increase",ref:b}),v=a)}K();const V=Bt(ne,S.platform.is.ios===!0?120:35);t.onBeforeMount(()=>{K()});let W=!1;return t.onDeactivated(()=>{W=!0}),t.onActivated(()=>{if(W!==!0)return;const a=l();_!==void 0&&a!==void 0&&a!==null&&a.nodeType!==8?qt(a,_,i.virtualScrollHorizontal,S.lang.rtl):X(v)}),t.onBeforeUnmount(()=>{V.cancel()}),Object.assign(b,{scrollTo:X,reset:H,refresh:oe}),{virtualScrollSliceRange:O,virtualScrollSliceSizeComputed:p,setVirtualScrollSize:K,onVirtualScrollEvt:V,localResetVirtualScroll:Z,padVirtualScroll:ue,scrollTo:X,reset:H,refresh:oe}}const Sl=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,yl=/[\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,wl=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Cl=/[a-z0-9_ -]$/i;function kl(e){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,e(n)}else n.type==="compositionupdate"&&n.target.qComposing!==!0&&typeof n.data=="string"&&(le.client.is.firefox===!0?Cl.test(n.data)===!1:Sl.test(n.data)===!0||yl.test(n.data)===!0||wl.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}function ce(e,l){if(e===l)return!0;if(e!==null&&l!==null&&typeof e=="object"&&typeof l=="object"){if(e.constructor!==l.constructor)return!1;let n,u;if(e.constructor===Array){if(n=e.length,n!==l.length)return!1;for(u=n;u--!==0;)if(ce(e[u],l[u])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==l.size)return!1;let i=e.entries();for(u=i.next();u.done!==!0;){if(l.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],l.get(u.value[0]))!==!0)return!1;u=i.next()}return!0}if(e.constructor===Set){if(e.size!==l.size)return!1;const i=e.entries();for(u=i.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=i.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==l.length)return!1;for(u=n;u--!==0;)if(e[u]!==l[u])return!1;return!0}if(e.constructor===RegExp)return e.source===l.source&&e.flags===l.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===l.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===l.toString();const f=Object.keys(e).filter(i=>e[i]!==void 0);if(n=f.length,n!==Object.keys(l).filter(i=>l[i]!==void 0).length)return!1;for(u=n;u--!==0;){const i=f[u];if(ce(e[i],l[i])!==!0)return!1}return!0}return e!==e&&l!==l}function xt(e,l,n){if(n<=l)return l;const u=n-l+1;let f=l+(e-l)%u;return f<l&&(f=u+f),f===0?0:f}const _t=e=>["add","add-unique","toggle"].includes(e),ql=".*+?^${}()|[]\\",Vl=Object.keys(Je);function Ye(e,l){if(typeof e=="function")return e;const n=e!==void 0?e:l;return u=>u!==null&&typeof u=="object"&&n in u?u[n]:u}const xl=s.createComponent({name:"QSelect",inheritAttrs:!1,props:{...Vt,...s.useFormProps,...Je,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:_t},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:[...At,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:l,emit:n}){const{proxy:u}=t.getCurrentInstance(),{$q:f}=u,i=t.ref(!1),r=t.ref(!1),b=t.ref(-1),S=t.ref(""),_=t.ref(!1),v=t.ref(!1);let w=null,q=null,C,R,h,p=null,k,D,A,O;const Y=t.ref(null),I=t.ref(null),P=t.ref(null),H=t.ref(null),oe=t.ref(null),X=s.useFormInputNameAttr(e),ne=kl(rt),Q=t.computed(()=>Array.isArray(e.options)?e.options.length:0),ae=t.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:re,virtualScrollSliceSizeComputed:Z,localResetVirtualScroll:K,padVirtualScroll:ue,onVirtualScrollEvt:g,scrollTo:V,setVirtualScrollSize:W}=bl({virtualScrollLength:Q,getVirtualScrollTarget:Ot,getVirtualScrollEl:it,virtualScrollItemSizeComputed:ae}),a=Et(),d=t.computed(()=>{const o=e.mapOptions===!0&&e.multiple!==!0,c=e.modelValue!==void 0&&(e.modelValue!==null||o===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const m=e.mapOptions===!0&&C!==void 0?C:[],F=c.map(M=>It(M,m));return e.modelValue===null&&o===!0?F.filter(M=>M!==null):F}return c}),E=t.computed(()=>{const o={};return Vl.forEach(c=>{const m=e[c];m!==void 0&&(o[c]=m)}),o}),y=t.computed(()=>e.optionsDark===null?a.isDark.value:e.optionsDark),z=t.computed(()=>Ze(d.value)),T=t.computed(()=>{let o="q-field__input q-placeholder col";return e.hideSelected===!0||d.value.length===0?[o,e.inputClass]:(o+=" q-field__input--padding",e.inputClass===void 0?o:[o,e.inputClass])}),B=t.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),$=t.computed(()=>Q.value===0),x=t.computed(()=>d.value.map(o=>G.value(o)).join(", ")),J=t.computed(()=>e.displayValue!==void 0?e.displayValue:x.value),se=t.computed(()=>e.optionsHtml===!0?()=>!0:o=>(o==null?void 0:o.html)===!0),Ee=t.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||d.value.some(se.value))),ee=t.computed(()=>a.focused.value===!0?e.tabindex:-1),ze=t.computed(()=>{const o={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 b.value>=0&&(o["aria-activedescendant"]=`${a.targetUid.value}_${b.value}`),o}),de=t.computed(()=>({id:`${a.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),fe=t.computed(()=>d.value.map((o,c)=>({index:c,opt:o,html:se.value(o),selected:!0,removeAtIndex:Rt,toggleOption:ve,tabindex:ee.value}))),Te=t.computed(()=>{if(Q.value===0)return[];const{from:o,to:c}=re.value;return e.options.slice(o,c).map((m,F)=>{const M=he.value(m)===!0,j=je(m)===!0,L=o+F,N={clickable:!0,active:j,activeClass:Ve.value,manualFocus:!0,focused:!1,disable:M,tabindex:-1,dense:e.optionsDense,dark:y.value,role:"option","aria-selected":j===!0?"true":"false",id:`${a.targetUid.value}_${L}`,onClick:()=>{ve(m)}};return M!==!0&&(b.value===L&&(N.focused=!0),f.platform.is.desktop===!0&&(N.onMousemove=()=>{i.value===!0&&ge(L)})),{index:L,opt:m,html:se.value(m),label:G.value(m),selected:N.active,focused:N.focused,toggleOption:ve,setOptionIndex:ge,itemProps:N}})}),qe=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:f.iconSet.arrow.dropdown),De=t.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),Ve=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),ie=t.computed(()=>Ye(e.optionValue,"value")),G=t.computed(()=>Ye(e.optionLabel,"label")),he=t.computed(()=>Ye(e.optionDisable,"disable")),Fe=t.computed(()=>d.value.map(ie.value)),Ft=t.computed(()=>{const o={onInput:rt,onChange:ne,onKeydown:ut,onKeyup:ot,onKeypress:nt,onFocus:tt,onClick(c){R===!0&&s.stop(c)}};return o.onCompositionstart=o.onCompositionupdate=o.onCompositionend=ne,o});t.watch(d,o=>{C=o,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&a.innerLoading.value!==!0&&(r.value!==!0&&i.value!==!0||z.value!==!0)&&(h!==!0&&we(),(r.value===!0||i.value===!0)&&be(""))},{immediate:!0}),t.watch(()=>e.fillInput,we),t.watch(i,Ne),t.watch(Q,Wt);function Ge(o){return e.emitValue===!0?ie.value(o):o}function $e(o){if(o!==-1&&o<d.value.length)if(e.multiple===!0){const c=e.modelValue.slice();n("remove",{index:o,value:c.splice(o,1)[0]}),n("update:modelValue",c)}else n("update:modelValue",null)}function Rt(o){$e(o),a.focus()}function et(o,c){const m=Ge(o);if(e.multiple!==!0){e.fillInput===!0&&xe(G.value(o),!0,!0),n("update:modelValue",m);return}if(d.value.length===0){n("add",{index:0,value:m}),n("update:modelValue",e.multiple===!0?[m]:m);return}if(c===!0&&je(o)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const F=e.modelValue.slice();n("add",{index:F.length,value:m}),F.push(m),n("update:modelValue",F)}function ve(o,c){var j;if(a.editable.value!==!0||o===void 0||he.value(o)===!0)return;const m=ie.value(o);if(e.multiple!==!0){c!==!0&&(xe(e.fillInput===!0?G.value(o):"",!0,!0),me()),(j=I.value)==null||j.focus(),(d.value.length===0||ce(ie.value(d.value[0]),m)!==!0)&&n("update:modelValue",e.emitValue===!0?m:o);return}if((R!==!0||_.value===!0)&&a.focus(),tt(),d.value.length===0){const L=e.emitValue===!0?m:o;n("add",{index:0,value:L}),n("update:modelValue",e.multiple===!0?[L]:L);return}const F=e.modelValue.slice(),M=Fe.value.findIndex(L=>ce(L,m));if(M!==-1)n("remove",{index:M,value:F.splice(M,1)[0]});else{if(e.maxValues!==void 0&&F.length>=e.maxValues)return;const L=e.emitValue===!0?m:o;n("add",{index:F.length,value:L}),F.push(L)}n("update:modelValue",F)}function ge(o){if(f.platform.is.desktop!==!0)return;const c=o!==-1&&o<Q.value?o:-1;b.value!==c&&(b.value=c)}function Re(o=1,c){if(i.value===!0){let m=b.value;do m=xt(m+o,-1,Q.value-1);while(m!==-1&&m!==b.value&&he.value(e.options[m])===!0);b.value!==m&&(ge(m),V(m),c!==!0&&e.useInput===!0&&e.fillInput===!0&&Ie(m>=0?G.value(e.options[m]):k,!0))}}function It(o,c){const m=F=>ce(ie.value(F),o);return e.options.find(m)||c.find(m)||o}function je(o){const c=ie.value(o);return Fe.value.find(m=>ce(m,c))!==void 0}function tt(o){e.useInput===!0&&I.value!==null&&(o===void 0||I.value===o.target&&o.target.value===x.value)&&I.value.select()}function lt(o){s.isKeyCode(o,27)===!0&&i.value===!0&&(s.stop(o),me(),we()),n("keyup",o)}function ot(o){const{value:c}=o.target;if(o.keyCode!==void 0){lt(o);return}if(o.target.value="",w!==null&&(clearTimeout(w),w=null),q!==null&&(clearTimeout(q),q=null),we(),typeof c=="string"&&c.length!==0){const m=c.toLocaleLowerCase(),F=j=>{const L=e.options.find(N=>String(j.value(N)).toLocaleLowerCase()===m);return L===void 0?!1:(d.value.indexOf(L)===-1?ve(L):me(),!0)},M=j=>{F(ie)!==!0&&j!==!0&&F(G)!==!0&&be(c,!0,()=>M(!0))};M()}else a.clearValue(o)}function nt(o){n("keypress",o)}function ut(o){if(n("keydown",o),s.shouldIgnoreKey(o)===!0)return;const c=S.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),m=o.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(b.value!==-1||c===!0);if(o.keyCode===27){s.prevent(o);return}if(o.keyCode===9&&m===!1){Se();return}if(o.target===void 0||o.target.id!==a.targetUid.value||a.editable.value!==!0)return;if(o.keyCode===40&&a.innerLoading.value!==!0&&i.value===!1){s.stopAndPrevent(o),ye();return}if(o.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&S.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?$e(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(o.keyCode===35||o.keyCode===36)&&(typeof S.value!="string"||S.value.length===0)&&(s.stopAndPrevent(o),b.value=-1,Re(o.keyCode===36?1:-1,e.multiple)),(o.keyCode===33||o.keyCode===34)&&Z.value!==void 0&&(s.stopAndPrevent(o),b.value=Math.max(-1,Math.min(Q.value,b.value+(o.keyCode===33?-1:1)*Z.value.view)),Re(o.keyCode===33?1:-1,e.multiple)),(o.keyCode===38||o.keyCode===40)&&(s.stopAndPrevent(o),Re(o.keyCode===38?-1:1,e.multiple));const F=Q.value;if((A===void 0||O<Date.now())&&(A=""),F>0&&e.useInput!==!0&&o.key!==void 0&&o.key.length===1&&o.altKey===!1&&o.ctrlKey===!1&&o.metaKey===!1&&(o.keyCode!==32||A.length!==0)){i.value!==!0&&ye(o);const M=o.key.toLocaleLowerCase(),j=A.length===1&&A[0]===M;O=Date.now()+1500,j===!1&&(s.stopAndPrevent(o),A+=M);const L=new RegExp("^"+A.split("").map(Ce=>ql.indexOf(Ce)!==-1?"\\"+Ce:Ce).join(".*"),"i");let N=b.value;if(j===!0||N<0||L.test(G.value(e.options[N]))!==!0)do N=xt(N+1,-1,F-1);while(N!==b.value&&(he.value(e.options[N])===!0||L.test(G.value(e.options[N]))!==!0));b.value!==N&&t.nextTick(()=>{ge(N),V(N),N>=0&&e.useInput===!0&&e.fillInput===!0&&Ie(G.value(e.options[N]),!0)});return}if(!(o.keyCode!==13&&(o.keyCode!==32||e.useInput===!0||A!=="")&&(o.keyCode!==9||m===!1))){if(o.keyCode!==9&&s.stopAndPrevent(o),b.value!==-1&&b.value<F){ve(e.options[b.value]);return}if(c===!0){const M=(j,L)=>{var Ce;if(L){if(_t(L)!==!0)return}else L=e.newValueMode;if(xe("",e.multiple!==!0,!0),j==null)return;(L==="toggle"?ve:et)(j,L==="add-unique"),e.multiple!==!0&&((Ce=I.value)==null||Ce.focus(),me())};if(e.onNewValue!==void 0?n("newValue",S.value,M):M(S.value),e.multiple!==!0)return}i.value===!0?Se():a.innerLoading.value!==!0&&ye()}}function it(){return R===!0?oe.value:P.value!==null&&P.value.contentEl!==null?P.value.contentEl:void 0}function Ot(){return it()}function Mt(){return e.hideSelected===!0?[]:l["selected-item"]!==void 0?fe.value.map(o=>l["selected-item"](o)).slice():l.selected!==void 0?[].concat(l.selected()):e.useChips===!0?fe.value.map((o,c)=>t.h(nl,{key:"option-"+c,removable:a.editable.value===!0&&he.value(o.opt)!==!0,dense:!0,textColor:e.color,tabindex:ee.value,onRemove(){o.removeAtIndex(c)}},()=>t.h("span",{class:"ellipsis",[o.html===!0?"innerHTML":"textContent"]:G.value(o.opt)}))):[t.h("span",{class:"ellipsis",[Ee.value===!0?"innerHTML":"textContent"]:J.value})]}function at(){if($.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:S.value}):void 0;const o=l.option!==void 0?l.option:m=>t.h(ul,{key:m.index,...m.itemProps},()=>t.h(il,()=>t.h(al,()=>t.h("span",{[m.html===!0?"innerHTML":"textContent"]:m.label}))));let c=ue("div",Te.value.map(o));return l["before-options"]!==void 0&&(c=l["before-options"]().concat(c)),s.hMergeSlot(l["after-options"],c)}function Lt(o,c){const m=c===!0?{...ze.value,...a.splitAttrs.attributes.value}:void 0,F={ref:c===!0?I:void 0,key:"i_t",class:T.value,style:e.inputStyle,value:S.value!==void 0?S.value:"",type:"search",...m,id:c===!0?a.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":o===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...Ft.value};return o!==!0&&R===!0&&(Array.isArray(F.class)===!0?F.class=[...F.class,"no-pointer-events"]:F.class+=" no-pointer-events"),t.h("input",F)}function rt(o){w!==null&&(clearTimeout(w),w=null),q!==null&&(clearTimeout(q),q=null),!(o&&o.target&&o.target.qComposing===!0)&&(Ie(o.target.value||""),h=!0,k=S.value,a.focused.value!==!0&&(R!==!0||_.value===!0)&&a.focus(),e.onFilter!==void 0&&(w=setTimeout(()=>{w=null,be(S.value)},e.inputDebounce)))}function Ie(o,c){S.value!==o&&(S.value=o,c===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",o):q=setTimeout(()=>{q=null,n("inputValue",o)},e.inputDebounce))}function xe(o,c,m){h=m!==!0,e.useInput===!0&&(Ie(o,!0),(c===!0||m!==!0)&&(k=o),c!==!0&&be(o))}function be(o,c,m){if(e.onFilter===void 0||c!==!0&&a.focused.value!==!0)return;a.innerLoading.value===!0?n("filterAbort"):(a.innerLoading.value=!0,v.value=!0),o!==""&&e.multiple!==!0&&d.value.length!==0&&h!==!0&&o===G.value(d.value[0])&&(o="");const F=setTimeout(()=>{i.value===!0&&(i.value=!1)},10);p!==null&&clearTimeout(p),p=F,n("filter",o,(M,j)=>{(c===!0||a.focused.value===!0)&&p===F&&(clearTimeout(p),typeof M=="function"&&M(),v.value=!1,t.nextTick(()=>{a.innerLoading.value=!1,a.editable.value===!0&&(c===!0?i.value===!0&&me():i.value===!0?Ne(!0):i.value=!0),typeof j=="function"&&t.nextTick(()=>{j(u)}),typeof m=="function"&&t.nextTick(()=>{m(u)})}))},()=>{a.focused.value===!0&&p===F&&(clearTimeout(p),a.innerLoading.value=!1,v.value=!1),i.value===!0&&(i.value=!1)})}function Pt(){return t.h(U.QMenu,{ref:P,class:B.value,style:e.popupContentStyle,modelValue:i.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&$.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:y.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:g,onBeforeShow:ct,onBeforeHide:Ht,onShow:Dt},at)}function Ht(o){dt(o),Se()}function Dt(){W()}function $t(o){var c;s.stop(o),(c=I.value)==null||c.focus(),_.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function jt(o){s.stop(o),t.nextTick(()=>{_.value=!1})}function Nt(){const o=[t.h(ll,{class:`col-auto ${a.fieldClass.value}`,...E.value,for:a.targetUid.value,dark:y.value,square:!0,loading:v.value,itemAligned:!1,filled:!0,stackLabel:S.value.length!==0,...a.splitAttrs.listeners.value,onFocus:$t,onBlur:jt},{...l,rawControl:()=>a.getControl(!0),before:void 0,after:void 0})];return i.value===!0&&o.push(t.h("div",{ref:oe,class:B.value+" scroll",style:e.popupContentStyle,...de.value,onClick:s.prevent,onScrollPassive:g},at())),t.h(ml,{ref:H,modelValue:r.value,position:e.useInput===!0?"top":void 0,transitionShow:D,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:ct,onBeforeHide:Kt,onHide:Ut,onShow:Qt},()=>t.h("div",{class:"q-select__dialog"+(y.value===!0?" q-select__dialog--dark q-dark":"")+(_.value===!0?" q-select__dialog--focused":"")},o))}function Kt(o){dt(o),H.value!==null&&H.value.__updateRefocusTarget(a.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),a.focused.value=!1}function Ut(o){me(),a.focused.value===!1&&n("blur",o),we()}function Qt(){const o=document.activeElement;(o===null||o.id!==a.targetUid.value)&&I.value!==null&&I.value!==o&&I.value.focus(),W()}function Se(){r.value!==!0&&(b.value=-1,i.value===!0&&(i.value=!1),a.focused.value===!1&&(p!==null&&(clearTimeout(p),p=null),a.innerLoading.value===!0&&(n("filterAbort"),a.innerLoading.value=!1,v.value=!1)))}function ye(o){a.editable.value===!0&&(R===!0?(a.onControlFocusin(o),r.value=!0,t.nextTick(()=>{a.focus()})):a.focus(),e.onFilter!==void 0?be(S.value):($.value!==!0||l["no-option"]!==void 0)&&(i.value=!0))}function me(){r.value=!1,Se()}function we(){e.useInput===!0&&xe(e.multiple!==!0&&e.fillInput===!0&&d.value.length!==0&&G.value(d.value[0])||"",!0,!0)}function Ne(o){let c=-1;if(o===!0){if(d.value.length!==0){const m=ie.value(d.value[0]);c=e.options.findIndex(F=>ce(ie.value(F),m))}K(c)}ge(c)}function Wt(o,c){i.value===!0&&a.innerLoading.value===!1&&(K(-1,!0),t.nextTick(()=>{i.value===!0&&a.innerLoading.value===!1&&(o>c?K():Ne(!0))}))}function st(){r.value===!1&&P.value!==null&&P.value.updatePosition()}function ct(o){o!==void 0&&s.stop(o),n("popupShow",o),a.hasPopupOpen=!0,a.onControlFocusin(o)}function dt(o){o!==void 0&&s.stop(o),n("popupHide",o),a.hasPopupOpen=!1,a.onControlFocusout(o)}function ft(){R=f.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?l["no-option"]!==void 0||e.onFilter!==void 0||$.value===!1:!0),D=f.platform.is.ios===!0&&R===!0&&e.useInput===!0?"fade":e.transitionShow}return t.onBeforeUpdate(ft),t.onUpdated(st),ft(),t.onBeforeUnmount(()=>{w!==null&&clearTimeout(w),q!==null&&clearTimeout(q)}),Object.assign(u,{showPopup:ye,hidePopup:me,removeAtIndex:$e,add:et,toggleOption:ve,getOptionIndex:()=>b.value,setOptionIndex:ge,moveOptionSelection:Re,filter:be,updateMenuPosition:st,updateInputValue:xe,isOptionSelected:je,getEmittingOptionValue:Ge,isOptionDisabled:(...o)=>he.value.apply(null,o)===!0,getOptionValue:(...o)=>ie.value.apply(null,o),getOptionLabel:(...o)=>G.value.apply(null,o)}),Object.assign(a,{innerValue:d,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:I,hasValue:z,showPopup:ye,floatingLabel:t.computed(()=>e.hideSelected!==!0&&z.value===!0||typeof S.value=="number"||S.value.length!==0||Ze(e.displayValue)),getControlChild:()=>{if(a.editable.value!==!1&&(r.value===!0||$.value!==!0||l["no-option"]!==void 0))return R===!0?Nt():Pt();a.hasPopupOpen===!0&&(a.hasPopupOpen=!1)},controlEvents:{onFocusin(o){a.onControlFocusin(o)},onFocusout(o){a.onControlFocusout(o,()=>{we(),Se()})},onClick(o){var c;if(s.prevent(o),R!==!0&&i.value===!0){Se(),(c=I.value)==null||c.focus();return}ye(o)}},getControl:o=>{const c=Mt(),m=o===!0||r.value!==!0||R!==!0;if(e.useInput===!0)c.push(Lt(o,m));else if(a.editable.value===!0){const M=m===!0?ze.value:void 0;c.push(t.h("input",{ref:m===!0?I:void 0,key:"d_t",class:"q-select__focus-target",id:m===!0?a.targetUid.value:void 0,value:J.value,readonly:!0,"data-autofocus":o===!0||e.autofocus===!0||void 0,...M,onKeydown:ut,onKeyup:lt,onKeypress:nt})),m===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&c.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:ot}))}if(X.value!==void 0&&e.disable!==!0&&Fe.value.length!==0){const M=Fe.value.map(j=>t.h("option",{value:j,selected:!0}));c.push(t.h("select",{class:"hidden",name:X.value,multiple:e.multiple},M))}const F=e.useInput===!0||m!==!0?void 0:a.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...F,...a.splitAttrs.listeners.value},c)},getInnerAppend:()=>e.loading!==!0&&v.value!==!0&&e.hideDropdownIcon!==!0?[t.h(s.QIcon,{class:"q-select__dropdown-icon"+(i.value===!0?" rotate-180":""),name:qe.value})]:null}),zt(a)}}),_l={class:"app-select__amount"},Bl=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:{},isMobile:{type:Boolean}},emits:["update:modelValue","popupShow","popupHide"],setup(e,{emit:l}){const n=e,u=l,f=t.ref(!1),i=t.ref(""),r=t.computed({get(){if(n.modelValue){if(n.multiple&&Array.isArray(n.modelValue))return n.options.filter(h=>n.modelValue.includes(h.value));if(!Array.isArray(n.modelValue))return n.options.find(h=>h.value===n.modelValue)}},set(h){if(!h){u("update:modelValue",void 0);return}if(n.multiple&&Array.isArray(h)){const p=h.map(k=>k.value);u("update:modelValue",p)}else Array.isArray(h)||u("update:modelValue",h.value)}}),b=t.computed(()=>{var h;if(Array.isArray(r.value)){if(n.multiple&&r.value.length==0)return n.placeholder}else return((h=r.value)==null?void 0:h.label)||n.placeholder||"";return""}),S=t.computed(()=>!(!n.clearable||!n.modelValue||n.modelValue&&Array.isArray(n.modelValue)&&!n.modelValue.length)),_=t.computed(()=>i.value?n.options.filter(h=>h.label.toLowerCase().includes(i.value.toLowerCase())):n.options),v=t.computed(()=>{if(n.rules)return n.required?[...n.rules,vt]:n.rules;if(n.required)return[vt]}),w=()=>{f.value=!0,u("popupShow")},q=()=>{f.value=!1,u("popupHide")},C=()=>{r.value=void 0},R=(h,p)=>{p(()=>{i.value=h})};return(h,p)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["app-select",[{"app-select_opened":f.value},`app-select_${h.size}`]])},[h.label?(t.openBlock(),t.createElementBlock("label",{key:0,class:t.normalizeClass(["app-select__label",{"app-select__label_bold":h.required}])},t.toDisplayString(h.required?`${h.label} *`:h.label),3)):t.createCommentVNode("",!0),t.createVNode(t.unref(xl),{standout:"","hide-bottom-space":"","hide-dropdown-icon":"","no-error-icon":"",behavior:"menu","popup-no-route-dismiss":"","popup-content-class":`glass-menu app-select-menu app-select-menu_${h.size} ${h.menuClass}`,placeholder:h.filtering&&"Почніть вводити","input-debounce":"50",modelValue:r.value,"onUpdate:modelValue":p[0]||(p[0]=k=>r.value=k),options:_.value,multiple:h.multiple,"use-input":h.filtering&&(Array.isArray(r.value)||!r.value),rules:v.value,"lazy-rules":h.lazyRules,autofocus:h.autofocus,disable:h.disabled,loading:h.loading,"menu-offset":[0,2],onFilter:R,onPopupShow:w,onPopupHide:q},{append:t.withCtx(()=>[S.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),p[1]||(p[1]=t.createElementVNode("i",{class:"icon-kl icon-kl-arrow-down app-select__drop-icon"},null,-1))]),selected:t.withCtx(()=>{var k,D;return[Array.isArray(r.value)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[!h.filtering||r.value.length?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["app-select__selected",{"app-select__placeholder":!((k=r.value)!=null&&k.length)&&h.placeholder}])},[(D=r.value)!=null&&D.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p[2]||(p[2]=t.createTextVNode(" Вибрано ",-1)),t.createElementVNode("span",_l,t.toDisplayString(r.value.length),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.placeholder),1)],64))],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[!h.filtering||r.value?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["app-select__selected",{"app-select__placeholder":!r.value&&h.placeholder}])},t.toDisplayString(b.value),3)):t.createCommentVNode("",!0)],64))]}),option:t.withCtx(k=>[t.createVNode(s.PopupItem,t.mergeProps({"no-arrow":"",label:k.opt.label,checked:k.opt.done,active:k.selected,"is-mobile":h.isMobile,checkbox:n.multiple,"model-value":k.selected},k.itemProps,{"onUpdate:modelValue":()=>k.toggleOption(k.opt)}),null,16,["label","checked","active","is-mobile","checkbox","model-value","onUpdate:modelValue"])]),_:1},8,["popup-content-class","placeholder","modelValue","options","multiple","use-input","rules","lazy-rules","autofocus","disable","loading"])],2))}}),Al=s._export_sfc(Bl,[["__scopeId","data-v-07ac2130"]]);exports.default=Al;
@@ -1,6 +1,6 @@
1
1
  import { getCurrentInstance as re, ref as M, onBeforeUpdate as el, inject as _l, watch as J, onMounted as tl, onBeforeUnmount as Ve, computed as r, nextTick as fe, onDeactivated as ll, onActivated as ol, h as g, Transition as gt, onBeforeMount as Al, onUpdated as Bl, defineComponent as zl, createElementBlock as ce, openBlock as de, normalizeClass as Xe, createCommentVNode as Ye, createVNode as Tt, toDisplayString as Ze, unref as El, withCtx as rt, mergeProps as Rl, Fragment as Je, createTextVNode as Ot, createElementVNode as Mt, withModifiers as Fl } from "vue";
2
- import { u as pt, s as ae, p as ge, a as bt, Q as Oe, b as Tl, h as qe, c as xe, d as Ol, e as Ml, f as Il, g as Ll, R as Hl, i as Pl, j as $l, k as nl, l as Dl, m as we, n as jl, o as Kl, q as Nl, r as Ul, t as Ql, v as Wl, w as Te, x as Xl, S as Yl, P as Zl, _ as Jl } from "./index-DLgdVg4z.js";
3
- import { a as ul, u as Gl, r as eo, g as to, b as lo, h as oo, c as no, d as uo, e as io, f as ao, i as ro, j as so, k as co, l as fo, m as It, n as vo, Q as mo } from "./QMenu-CHfaaKhO.js";
2
+ import { u as pt, s as ae, p as ge, a as bt, Q as Oe, b as Tl, h as qe, c as xe, d as Ol, e as Ml, f as Il, g as Ll, R as Hl, i as Pl, j as $l, k as nl, l as Dl, m as we, n as jl, o as Kl, q as Nl, r as Ul, t as Ql, v as Wl, w as Te, x as Xl, S as Yl, P as Zl, _ as Jl } from "./index-DgY0kstn.js";
3
+ import { a as ul, u as Gl, r as eo, g as to, b as lo, h as oo, c as no, d as uo, e as io, f as ao, i as ro, j as so, k as co, l as fo, m as It, n as vo, Q as mo } from "./QMenu-6BFoPggJ.js";
4
4
  import { b as go, c as ke, r as Lt, a as ho } from "./focusout-DjvPXP_b.js";
5
5
  const Ht = (e) => e ? !0 : "Обовʼязкове поле", Pt = /^on[A-Z]/;
6
6
  function po() {
@@ -2236,6 +2236,7 @@ const Wo = xe({
2236
2236
  autofocus: h.autofocus,
2237
2237
  disable: h.disabled,
2238
2238
  loading: h.loading,
2239
+ "menu-offset": [0, 2],
2239
2240
  onFilter: T,
2240
2241
  onPopupShow: w,
2241
2242
  onPopupHide: k
@@ -2296,7 +2297,7 @@ const Wo = xe({
2296
2297
  }, 8, ["popup-content-class", "placeholder", "modelValue", "options", "multiple", "use-input", "rules", "lazy-rules", "autofocus", "disable", "loading"])
2297
2298
  ], 2));
2298
2299
  }
2299
- }), tn = /* @__PURE__ */ Jl(Yo, [["__scopeId", "data-v-500837e5"]]);
2300
+ }), tn = /* @__PURE__ */ Jl(Yo, [["__scopeId", "data-v-07ac2130"]]);
2300
2301
  export {
2301
2302
  tn as default
2302
2303
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),l=require("./index-DgJr5_Pb.cjs"),w=require("./QMenu-BMHBzPuP.cjs"),D={[l.SIZES.SM]:"3px 9px",[l.SIZES.MD]:"5px 12px",[l.SIZES.LG]:"6px 15px",[l.SIZES.XL]:"9px 20px"},q=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:d}){const a=n.computed(()=>{const u=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(r=>e[r]===!0).map(r=>`q-btn-group--${r}`).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:a.value},l.hSlot(d.default))}}),M=Object.keys(l.nonRoundBtnProps);function I(e){return M.reduce((d,a)=>{const u=e[a];return u!==void 0&&(d[a]=u),d},{})}const A=l.createComponent({name:"QBtnDropdown",props:{...l.nonRoundBtnProps,...w.useTransitionProps,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,noRefocus:Boolean,noFocus: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:d,emit:a}){const{proxy:u}=n.getCurrentInstance(),r=n.ref(e.modelValue),s=n.ref(null),c=w.useId(),f=n.computed(()=>{const o={"aria-expanded":r.value===!0?"true":"false","aria-haspopup":"true","aria-controls":c.value,"aria-label":e.toggleAriaLabel||u.$q.lang.label[r.value===!0?"collapse":"expand"](e.label)};return(e.disable===!0||e.split===!1&&e.disableMainBtn===!0||e.disableDropdown===!0)&&(o["aria-disabled"]="true"),o}),t=n.computed(()=>"q-btn-dropdown__arrow"+(r.value===!0&&e.noIconAnimation===!1?" rotate-180":"")+(e.split===!1?" q-btn-dropdown__arrow-container":"")),m=n.computed(()=>l.getBtnDesignAttr(e)),B=n.computed(()=>I(e));n.watch(()=>e.modelValue,o=>{var i;(i=s.value)==null||i[o?"show":"hide"]()}),n.watch(()=>e.split,b);function g(o){r.value=!0,a("beforeShow",o)}function S(o){a("show",o),a("update:modelValue",!0)}function p(o){r.value=!1,a("beforeHide",o)}function v(o){a("hide",o),a("update:modelValue",!1)}function C(o){a("click",o)}function y(o){l.stop(o),b(),a("click",o)}function k(o){var i;(i=s.value)==null||i.toggle(o)}function h(o){var i;(i=s.value)==null||i.show(o)}function b(o){var i;(i=s.value)==null||i.hide(o)}return Object.assign(u,{show:h,hide:b,toggle:k}),n.onMounted(()=>{e.modelValue===!0&&h()}),()=>{const o=[n.h(l.QIcon,{class:t.value,name:e.dropdownIcon||u.$q.iconSet.arrow.dropdown})];return e.disableDropdown!==!0&&o.push(n.h(w.QMenu,{ref:s,id:c.value,class:e.contentClass,style:e.contentStyle,cover:e.cover,fit:!0,persistent:e.persistent,noEscDismiss:e.noEscDismiss,noRouteDismiss:e.noRouteDismiss,autoClose:e.autoClose,noFocus:e.noFocus,noRefocus:e.noRefocus,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,separateClosePopup:!0,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:g,onShow:S,onBeforeHide:p,onHide:v},d.default)),e.split===!1?n.h(l.QBtn,{class:"q-btn-dropdown q-btn-dropdown--simple",...B.value,...f.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:C},{default:()=>l.hSlot(d.label,[]).concat(o),loading:d.loading}):n.h(q,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",rounded:e.rounded,square:e.square,...m.value,glossy:e.glossy,stretch:e.stretch},()=>[n.h(l.QBtn,{class:"q-btn-dropdown--current",...B.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:y},{default:d.label,loading:d.loading}),n.h(l.QBtn,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...f.value,...m.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},()=>o)])}}}),L=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:{},menuOffset:{},menuAnchor:{},menuSelf:{},menuClass:{}},emits:["menuShown","menuHidden"],setup(e,{emit:d}){const a=e,u=d,r=n.ref(!1),s=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_icon-left":a.iconLeft,"dropdown-btn_icon-middle":a.iconMiddle},`dropdown-btn_${a.size}`,`dropdown-btn_${a.color}`]),c=()=>{r.value=!0,u("menuShown")},f=()=>{r.value=!1,u("menuHidden")};return(t,m)=>(n.openBlock(),n.createBlock(n.unref(A),{"no-caps":"",unelevated:"",class:n.normalizeClass(s.value),padding:n.unref(D)[t.size||n.unref(l.SIZES).MD],loading:t.loading,disable:t.disabled||void 0,"aria-label":t.ariaLabel,"menu-offset":t.menuOffset,"menu-anchor":t.menuAnchor,"menu-self":t.menuSelf,"content-class":["glass-menu dropdown-menu",t.menuClass],onBeforeShow:c,onBeforeHide:f},{label:n.withCtx(()=>[t.iconLeft||t.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",t.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${t.iconLeft||t.iconMiddle}`,t.transparent||t.flat?`text-${t.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),t.label?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(t.label),1)],64)):n.createCommentVNode("",!0),t.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},t.transparent?`text-${t.color}`:"text-secondary"])},null,2))]),default:n.withCtx(()=>[n.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["class","padding","loading","disable","aria-label","menu-offset","menu-anchor","menu-self","content-class"]))}}),E=l._export_sfc(L,[["__scopeId","data-v-f70155d0"]]);exports.default=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),l=require("./index-Ik1k1L31.cjs"),w=require("./QMenu-uB6Zqa0Q.cjs"),D={[l.SIZES.SM]:"3px 9px",[l.SIZES.MD]:"5px 12px",[l.SIZES.LG]:"6px 15px",[l.SIZES.XL]:"9px 20px"},q=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:d}){const a=n.computed(()=>{const u=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(r=>e[r]===!0).map(r=>`q-btn-group--${r}`).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:a.value},l.hSlot(d.default))}}),M=Object.keys(l.nonRoundBtnProps);function I(e){return M.reduce((d,a)=>{const u=e[a];return u!==void 0&&(d[a]=u),d},{})}const A=l.createComponent({name:"QBtnDropdown",props:{...l.nonRoundBtnProps,...w.useTransitionProps,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,noRefocus:Boolean,noFocus: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:d,emit:a}){const{proxy:u}=n.getCurrentInstance(),r=n.ref(e.modelValue),s=n.ref(null),c=w.useId(),f=n.computed(()=>{const o={"aria-expanded":r.value===!0?"true":"false","aria-haspopup":"true","aria-controls":c.value,"aria-label":e.toggleAriaLabel||u.$q.lang.label[r.value===!0?"collapse":"expand"](e.label)};return(e.disable===!0||e.split===!1&&e.disableMainBtn===!0||e.disableDropdown===!0)&&(o["aria-disabled"]="true"),o}),t=n.computed(()=>"q-btn-dropdown__arrow"+(r.value===!0&&e.noIconAnimation===!1?" rotate-180":"")+(e.split===!1?" q-btn-dropdown__arrow-container":"")),m=n.computed(()=>l.getBtnDesignAttr(e)),B=n.computed(()=>I(e));n.watch(()=>e.modelValue,o=>{var i;(i=s.value)==null||i[o?"show":"hide"]()}),n.watch(()=>e.split,b);function g(o){r.value=!0,a("beforeShow",o)}function S(o){a("show",o),a("update:modelValue",!0)}function p(o){r.value=!1,a("beforeHide",o)}function v(o){a("hide",o),a("update:modelValue",!1)}function C(o){a("click",o)}function y(o){l.stop(o),b(),a("click",o)}function k(o){var i;(i=s.value)==null||i.toggle(o)}function h(o){var i;(i=s.value)==null||i.show(o)}function b(o){var i;(i=s.value)==null||i.hide(o)}return Object.assign(u,{show:h,hide:b,toggle:k}),n.onMounted(()=>{e.modelValue===!0&&h()}),()=>{const o=[n.h(l.QIcon,{class:t.value,name:e.dropdownIcon||u.$q.iconSet.arrow.dropdown})];return e.disableDropdown!==!0&&o.push(n.h(w.QMenu,{ref:s,id:c.value,class:e.contentClass,style:e.contentStyle,cover:e.cover,fit:!0,persistent:e.persistent,noEscDismiss:e.noEscDismiss,noRouteDismiss:e.noRouteDismiss,autoClose:e.autoClose,noFocus:e.noFocus,noRefocus:e.noRefocus,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,separateClosePopup:!0,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:g,onShow:S,onBeforeHide:p,onHide:v},d.default)),e.split===!1?n.h(l.QBtn,{class:"q-btn-dropdown q-btn-dropdown--simple",...B.value,...f.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:C},{default:()=>l.hSlot(d.label,[]).concat(o),loading:d.loading}):n.h(q,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",rounded:e.rounded,square:e.square,...m.value,glossy:e.glossy,stretch:e.stretch},()=>[n.h(l.QBtn,{class:"q-btn-dropdown--current",...B.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:y},{default:d.label,loading:d.loading}),n.h(l.QBtn,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...f.value,...m.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},()=>o)])}}}),L=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:{},menuOffset:{},menuAnchor:{},menuSelf:{},menuClass:{}},emits:["menuShown","menuHidden"],setup(e,{emit:d}){const a=e,u=d,r=n.ref(!1),s=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_icon-left":a.iconLeft,"dropdown-btn_icon-middle":a.iconMiddle},`dropdown-btn_${a.size}`,`dropdown-btn_${a.color}`]),c=()=>{r.value=!0,u("menuShown")},f=()=>{r.value=!1,u("menuHidden")};return(t,m)=>(n.openBlock(),n.createBlock(n.unref(A),{"no-caps":"",unelevated:"",class:n.normalizeClass(s.value),padding:n.unref(D)[t.size||n.unref(l.SIZES).MD],loading:t.loading,disable:t.disabled||void 0,"aria-label":t.ariaLabel,"menu-offset":t.menuOffset,"menu-anchor":t.menuAnchor,"menu-self":t.menuSelf,"content-class":["glass-menu dropdown-menu",t.menuClass],onBeforeShow:c,onBeforeHide:f},{label:n.withCtx(()=>[t.iconLeft||t.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",t.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${t.iconLeft||t.iconMiddle}`,t.transparent||t.flat?`text-${t.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),t.label?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(t.label),1)],64)):n.createCommentVNode("",!0),t.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},t.transparent?`text-${t.color}`:"text-secondary"])},null,2))]),default:n.withCtx(()=>[n.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["class","padding","loading","disable","aria-label","menu-offset","menu-anchor","menu-self","content-class"]))}}),E=l._export_sfc(L,[["__scopeId","data-v-f70155d0"]]);exports.default=E;
@@ -1,6 +1,6 @@
1
1
  import { computed as u, h as i, getCurrentInstance as P, ref as y, watch as k, onMounted as z, defineComponent as _, createBlock as j, openBlock as m, unref as h, normalizeClass as g, withCtx as q, renderSlot as E, createElementBlock as v, createCommentVNode as p, Fragment as F, createTextVNode as G, toDisplayString as N } from "vue";
2
- import { S as c, c as M, h as A, y as L, z as T, Q as W, B as S, w as U, C as X, _ as Y } from "./index-DLgdVg4z.js";
3
- import { d as Z, u as x, Q as J } from "./QMenu-CHfaaKhO.js";
2
+ import { S as c, c as M, h as A, y as L, z as T, Q as W, B as S, w as U, C as X, _ as Y } from "./index-DgY0kstn.js";
3
+ import { d as Z, u as x, Q as J } from "./QMenu-6BFoPggJ.js";
4
4
  const K = {
5
5
  [c.SM]: "3px 9px",
6
6
  [c.MD]: "5px 12px",