urit-qf-ui 0.0.2 → 0.0.3

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
- (function(Z,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(Z=typeof globalThis<"u"?globalThis:Z||self,n(Z.YourOrgUI={},Z.Vue))})(this,function(Z,n){"use strict";const ve={xs:18,sm:24,md:32,lg:38,xl:46},pe={size:String};function be(e,t=ve){return n.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function se(e,t,o,l){return Object.defineProperty(e,t,{get:o,set:l,enumerable:!0}),e}function G(e){return n.markRaw(n.defineComponent(e))}function ct(e){return n.markRaw(e)}function Q(e,t){return e!==void 0&&e()||t}function J(e,t){return e!==void 0?t.concat(e()):t}const Me="0 0 24 24",ke=e=>e,ye=e=>`ionicons ${e}`,_e={"mdi-":e=>`mdi ${e}`,"icon-":ke,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":ye,"ion-ios":ye,"ion-logo":ye,"iconfont ":ke,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":ke},Fe={o_:"-outlined",r_:"-round",s_:"-sharp"},Ve={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},dt=new RegExp("^("+Object.keys(_e).join("|")+")"),ft=new RegExp("^("+Object.keys(Fe).join("|")+")"),Be=new RegExp("^("+Object.keys(Ve).join("|")+")"),mt=/^[Mm]\s?[-+]?\.?\d/,gt=/^img:/,ht=/^svguse:/,vt=/^ion-/,pt=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,ee=G({name:"QIcon",props:{...pe,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:o}}=n.getCurrentInstance(),l=be(e),a=n.computed(()=>"q-icon"+(e.left?" on-left":"")+(e.right?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),r=n.computed(()=>{let s,d=e.name;if(d==="none"||!d)return{none:!0};if(o.iconMapFn!==null){const p=o.iconMapFn(d);if(p!==void 0)if(p.icon!==void 0){if(d=p.icon,d==="none"||!d)return{none:!0}}else return{cls:p.cls,content:p.content!==void 0?p.content:" "}}if(mt.test(d)){const[p,w=Me]=d.split("|");return{svg:!0,viewBox:w,nodes:p.split("&&").map(v=>{const[b,x,F]=v.split("@@");return n.h("path",{style:x,d:b,transform:F})})}}if(gt.test(d))return{img:!0,src:d.slice(4)};if(ht.test(d)){const[p,w=Me]=d.split("|");return{svguse:!0,src:p.slice(7),viewBox:w}}let R=" ";const C=d.match(dt);if(C!==null)s=_e[C[1]](d);else if(pt.test(d))s=d;else if(vt.test(d))s=`ionicons ion-${o.platform.is.ios?"ios":"md"}${d.slice(3)}`;else if(Be.test(d)){s="notranslate material-symbols";const p=d.match(Be);p!==null&&(d=d.slice(6),s+=Ve[p[1]]),R=d}else{s="notranslate material-icons";const p=d.match(ft);p!==null&&(d=d.slice(2),s+=Fe[p[1]]),R=d}return{cls:s,content:R}});return()=>{const s={class:a.value,style:l.value,"aria-hidden":"true"};return r.value.none?n.h(e.tag,s,Q(t.default)):r.value.img?n.h(e.tag,s,J(t.default,[n.h("img",{src:r.value.src})])):r.value.svg?n.h(e.tag,s,J(t.default,[n.h("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):r.value.svguse?n.h(e.tag,s,J(t.default,[n.h("svg",{viewBox:r.value.viewBox},[n.h("use",{"xlink:href":r.value.src})])])):(r.value.cls!==void 0&&(s.class+=" "+r.value.cls),n.h(e.tag,s,J(t.default,[r.value.content])))}}}),bt={size:{type:[String,Number],default:"1em"},color:String};function kt(e){return{cSize:n.computed(()=>e.size in ve?`${ve[e.size]}px`:e.size),classes:n.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const $e=G({name:"QSpinner",props:{...bt,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:o}=kt(e);return()=>n.h("svg",{class:o.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[n.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function yt(){if(typeof crypto>"u")return()=>{throw new Error("[Quasar uid()] Secure RNG not available. Cannot generate collision-resistant UUID.")};if(crypto.randomUUID)return()=>crypto.randomUUID();const e=Array.from({length:256},(l,a)=>(a+256).toString(16).slice(1));let t,o;return()=>{(t===void 0||o+16>4096)&&(o=0,t=new Uint8Array(4096),crypto.getRandomValues(t));const l=o;return o+=16,t[l+6]=t[l+6]&15|64,t[l+8]=t[l+8]&63|128,e[t[l]]+e[t[l+1]]+e[t[l+2]]+e[t[l+3]]+"-"+e[t[l+4]]+e[t[l+5]]+"-"+e[t[l+6]]+e[t[l+7]]+"-"+e[t[l+8]]+e[t[l+9]]+"-"+e[t[l+10]]+e[t[l+11]]+e[t[l+12]]+e[t[l+13]]+e[t[l+14]]+e[t[l+15]]}}const we=yt(),ae=n.ref(!1);let xe;const wt=512;function xt(e){return typeof e=="string"?e.slice(0,wt).toLowerCase():""}const Ct=/(?:^|\s)version\/([\w.]+)/,Et=/(?:^|\s)applewebkit\/[\w.]+/,Rt=/(?:^|\s)safari\/[\w.]+/;function St(e){const t=Ct.exec(e);return t!==null&&Et.test(e)&&Rt.test(e)?{browser:"safari",version:t[1]}:null}const qt=/(?:^|\s)opera\/([\w.]+)/,Mt=/(?:^|\s)version\/([\w.]+)/;function _t(e){const t=qt.exec(e);if(t===null)return null;const o=Mt.exec(e);return{browser:"opera",version:(o==null?void 0:o[1])||t[1]}}const Ft=/(edg|edge|edga|edgios)\/([\w.]+)/,Vt=/(opr)[\/]([\w.]+)/,Bt=/(vivaldi)[\/]([\w.]+)/,$t=/(chrome|crios)[\/]([\w.]+)/,Tt=/(firefox|fxios)[\/]([\w.]+)/,At=/(webkit)[\/]([\w.]+)/;function Pt(e,t){let o=Ft.exec(e)||Vt.exec(e)||Bt.exec(e)||$t.exec(e);if(o===null){const l=St(e);if(l!==null)return{...l,platform:t[0]||""};if(o=Tt.exec(e)||At.exec(e),o===null){const a=_t(e);if(a!==null)return{...a,platform:t[0]||""};o=[]}}return{browser:o[5]||o[3]||o[1]||"",version:o[4]||o[2]||"0",platform:t[0]||""}}const Ot=/(ipad)/,Lt=/(ipod)/,It=/(iphone)/,jt=/(windows phone)/,Nt=/(kindle)/,Dt=/(silk)/,zt=/(android)/,Kt=/(win)/,Ut=/(mac)/,Ht=/(linux)/,Zt=/(cros)/;function Qt(e){return Ot.exec(e)||Lt.exec(e)||jt.exec(e)||It.exec(e)||Nt.exec(e)||Dt.exec(e)||zt.exec(e)||Kt.exec(e)||Ut.exec(e)||Ht.exec(e)||Zt.exec(e)||[]}const Te="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Wt(e){const t=xt(e),o=Qt(t),l=Pt(t,o),a={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,silk:!1};l.browser&&(a[l.browser]=!0,a.version=l.version,a.versionNumber=Number.parseInt(l.version,10)),l.platform&&(a[l.platform]=!0),a["windows phone"]&&(a.winphone=!0,delete a["windows phone"]);const r=a.android||a.ios||a.ipad||a.iphone||a.ipod||a.kindle||a.silk||a.winphone;if(r===!0||t.includes("mobile")?a.mobile=!0:a.desktop=!0,a.edga||a.edgios||a.edg?(a.edge=!0,l.browser="edge"):a.crios?(a.chrome=!0,l.browser="chrome"):a.fxios&&(a.firefox=!0,l.browser="firefox"),(a.ipod||a.ipad||a.iphone)&&(a.ios=!0),a.vivaldi&&(l.browser="vivaldi",a.vivaldi=!0),(a.chrome||a.opr||a.safari||a.vivaldi||a.mobile&&!a.ios&&!r)&&(a.webkit=!0),a.opr&&(l.browser="opera",a.opera=!0),a.safari&&(a.android?(l.browser="android",a.android=!0):a.kindle?(l.browser="kindle",a.kindle=!0):a.silk&&(l.browser="silk",a.silk=!0)),a.name=l.browser,a.platform=l.platform,t.includes("electron"))a.electron=!0;else if(document.location.href.includes("-extension://"))a.bex=!0;else{if(window.Capacitor!==void 0?(a.capacitor=!0,a.nativeMobile=!0,a.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(a.cordova=!0,a.nativeMobile=!0,a.nativeMobileWrapper="cordova"),ae.value&&(xe={is:{...a}}),Te&&a.mac&&(a.desktop&&a.safari||a.nativeMobile&&!a.android&&!a.ios&&!a.ipad)){delete a.mac,delete a.desktop;const s=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(a,{mobile:!0,ios:!0,platform:s,[s]:!0})}!a.mobile&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete a.desktop,a.mobile=!0)}return a}const Ae=navigator.userAgent||navigator.vendor||window.opera,Yt={has:{touch:!1,webStorage:!1},within:{iframe:!1}},ue={userAgent:Ae,is:Wt(Ae),has:{touch:Te},within:{iframe:window.self!==window.top}},Pe={install(e){const{$q:t}=e;ae.value?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,ue),ae.value=!1}),t.platform=n.reactive(this)):t.platform=this}};{let e;se(ue.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(Pe,ue),ae.value&&(Object.assign(Pe,xe,Yt),xe=null)}function Xt(e){return e??null}function Oe(e,t){return e??(t?`f_${we()}`:null)}function Gt({getValue:e,required:t=!0}={}){if(ae.value){const o=e!==void 0?n.ref(Xt(e())):n.ref(null);return t&&o.value===null&&n.onMounted(()=>{o.value=`f_${we()}`}),e!==void 0&&n.watch(e,l=>{o.value=Oe(l,t)}),o}return e!==void 0?n.computed(()=>Oe(e(),t)):n.ref(`f_${we()}`)}const Le=/^on[A-Z]/;function Jt(){const e=n.getCurrentInstance(),{attrs:t}=e,o={listeners:n.ref({}),attributes:n.ref({})};function l(){const a={},r={};for(const s in t)s!=="class"&&s!=="style"&&!Le.test(s)&&(a[s]=t[s]);for(const s in e.vnode.props)Le.test(s)&&(r[s]=e.vnode.props[s]);o.attributes.value=a,o.listeners.value=r}return n.onBeforeUpdate(l),l(),o}const Ie={dark:{type:Boolean,default:null}};function je(e,t){return n.computed(()=>e.dark===null?t.dark.isActive:e.dark)}const Ne="_q_fo_";function en({validate:e,resetValidation:t,requiresQForm:o}){const l=n.inject(Ne,!1);if(l!==!1){const{props:a,proxy:r}=n.getCurrentInstance();Object.assign(r,{validate:e,resetValidation:t}),n.watch(()=>a.disable,s=>{s?(typeof t=="function"&&t(),l.unbindComponent(r)):l.bindComponent(r)}),n.onMounted(()=>{a.disable||l.bindComponent(r)}),n.onBeforeUnmount(()=>{a.disable||l.unbindComponent(r)})}else o&&console.error("Parent QForm not found on useFormChild()!")}const De=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,ze=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Ke=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,ce=/^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])\)$/,de=/^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(\.[\d]+)?|1(\.0+)?)\)$/,tn=/^-?[\d]+\/(0[1-9]|1[0-2])\/(0[1-9]|[12]\d|3[01])$/,nn=/^([0-1]?\d|2[0-3]):[0-5]\d$/,on=/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/,ln=/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/,an=/^(([^<>()[\]\\.,;:\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,}))$/,Ce={date:e=>tn.test(e),time:e=>nn.test(e),fulltime:e=>on.test(e),timeOrFulltime:e=>ln.test(e),email:e=>an.test(e),hexColor:e=>De.test(e),hexaColor:e=>ze.test(e),hexOrHexaColor:e=>Ke.test(e),rgbColor:e=>ce.test(e),rgbaColor:e=>de.test(e),rgbOrRgbaColor:e=>ce.test(e)||de.test(e),hexOrRgbColor:e=>De.test(e)||ce.test(e),hexaOrRgbaColor:e=>ze.test(e)||de.test(e),anyColor:e=>Ke.test(e)||ce.test(e)||de.test(e)};function rn(e,t=250,o){let l=null;function a(...r){const s=()=>{l=null,e.apply(this,r)};l!==null&&clearTimeout(l),l=setTimeout(s,t)}return a.cancel=()=>{l!==null&&(clearTimeout(l),l=null)},a}const sn=[!0,!1,"ondemand"],un={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>sn.includes(e)}};function cn(e,t){const{props:o,proxy:l}=n.getCurrentInstance(),a=n.ref(!1),r=n.ref(null),s=n.ref(!1);en({validate:F,resetValidation:x});let d=0,R;const C=n.computed(()=>o.rules!==void 0&&o.rules!==null&&o.rules.length!==0),p=n.computed(()=>!o.disable&&C.value&&!t.value),w=n.computed(()=>o.error===!0||a.value),v=n.computed(()=>typeof o.errorMessage=="string"&&o.errorMessage.length!==0?o.errorMessage:r.value);n.watch(()=>o.modelValue,()=>{s.value=!0,p.value&&o.lazyRules===!1&&E()});function b(){o.lazyRules!=="ondemand"&&p.value&&s.value&&E()}n.watch(()=>o.reactiveRules,V=>{V?R===void 0&&(R=n.watch(()=>o.rules,b,{immediate:!0,deep:!0})):R!==void 0&&(R(),R=void 0)},{immediate:!0}),n.watch(()=>o.lazyRules,b),n.watch(e,V=>{V?s.value=!0:p.value&&o.lazyRules!=="ondemand"&&E()});function x(){d++,t.value=!1,s.value=!1,a.value=!1,r.value=null,E.cancel()}function F(V=o.modelValue){if(o.disable||!C.value)return!0;const $=++d,B=t.value?()=>{}:()=>{s.value=!0},A=(S,q)=>{S&&B(),a.value=S,r.value=q||null,t.value=!1},M=[];for(let S=0;S<o.rules.length;S++){const q=o.rules[S];let _;if(typeof q=="function"?_=q(V,Ce):typeof q=="string"&&(Ce[q]===void 0?(console.error(`Unknown validation pattern rule: "${q}"`),_=!1):_=Ce[q](V)),_===!1||typeof _=="string")return A(!0,_),!1;_!==!0&&_!==void 0&&M.push(_)}return M.length===0?(A(!1),!0):(t.value=!0,Promise.all(M).then(S=>{if(S===void 0||!Array.isArray(S)||S.length===0)return $===d&&A(!1),!0;const q=S.find(_=>_===!1||typeof _=="string");return $===d&&A(q!==void 0,q),q===void 0},S=>($===d&&(console.error(S),A(!0)),!1)))}const E=rn(F,0);return n.onBeforeUnmount(()=>{R==null||R(),E.cancel()}),Object.assign(l,{resetValidation:x,validate:F}),se(l,"hasError",()=>w.value),{isDirtyModel:s,hasRules:C,hasError:w,errorMessage:v,validate:F,resetValidation:x}}const fe={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(fe,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function dn(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function me(e){e.stopPropagation()}function te(e){e.cancelable!==!1&&e.preventDefault()}function U(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function fn(e,t,o){const l=`__q_${t}_evt`;e[l]=[...e[l]??[],...o],o.forEach(a=>{a[0].addEventListener(a[1],e[a[2]],fe[a[3]])})}function mn(e,t){const o=`__q_${t}_evt`;e[o]!==void 0&&(e[o].forEach(l=>{l[0].removeEventListener(l[1],e[l[2]],fe[l[3]])}),e[o]=void 0)}let Ee=[],gn=[];function Re(e){gn.length===0?e():Ee.push(e)}function Ue(e){Ee=Ee.filter(t=>t!==e)}function Se(e){return e!=null&&String(e).length!==0}const hn={...{...Ie,...un,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},maxlength:[Number,String]},vn=["update:modelValue","clear","focus","blur"];function pn({requiredForAttr:e=!0,tagProp:t,changeEvent:o=!1}={}){const{props:l,proxy:a}=n.getCurrentInstance(),r=je(l,a.$q),s=Gt({required:e,getValue:()=>l.for});return{requiredForAttr:e,changeEvent:o,tag:t?n.computed(()=>l.tag):{value:"label"},isDark:r,editable:n.computed(()=>!l.disable&&!l.readonly),innerLoading:n.ref(!1),focused:n.ref(!1),hasPopupOpen:!1,splitAttrs:Jt(),targetUid:s,rootRef:n.ref(null),targetRef:n.ref(null),controlRef:n.ref(null)}}function ge(e,t){return t===null?null:n.h("div",{key:e,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},t)}function bn(e){const{props:t,emit:o,slots:l,attrs:a,proxy:r}=n.getCurrentInstance(),{$q:s}=r;let d=null;e.hasValue===void 0&&(e.hasValue=n.computed(()=>Se(t.modelValue))),e.emitValue===void 0&&(e.emitValue=c=>{o("update:modelValue",c)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:j,onFocusout:m}),Object.assign(e,{clearValue:i,onControlFocusin:j,onControlFocusout:m,focus:q}),e.computedCounter===void 0&&(e.computedCounter=n.computed(()=>{if(t.counter){const c=typeof t.modelValue=="string"||typeof t.modelValue=="number"?String(t.modelValue).length:Array.isArray(t.modelValue)?t.modelValue.length:0,k=t.maxlength!==void 0?t.maxlength:t.maxValues;return c+(k!==void 0?" / "+k:"")}}));const{isDirtyModel:R,hasRules:C,hasError:p,errorMessage:w,resetValidation:v}=cn(e.focused,e.innerLoading),b=e.floatingLabel!==void 0?n.computed(()=>t.stackLabel||e.focused.value||e.floatingLabel.value):n.computed(()=>t.stackLabel||e.focused.value||e.hasValue.value),x=n.computed(()=>t.bottomSlots||t.hint!==void 0||C.value||t.counter||t.error!==null),F=n.computed(()=>t.filled?"filled":t.outlined?"outlined":t.borderless?"borderless":t.standout?"standout":"standard"),E=n.computed(()=>`q-field row no-wrap items-start q-field--${F.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded?" q-field--rounded":"")+(t.square?" q-field--square":"")+(b.value?" q-field--float":"")+($.value?" q-field--labeled":"")+(t.dense?" q-field--dense":"")+(t.itemAligned?" q-field--item-aligned q-item-type":"")+(e.isDark.value?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value?" q-field--focused":"")+(p.value?" q-field--error":"")+(p.value||e.focused.value?" q-field--highlighted":"")+(!t.hideBottomSpace&&x.value?" q-field--with-bottom":"")+(t.disable?" q-field--disabled":t.readonly?" q-field--readonly":"")),V=n.computed(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(p.value?" text-negative":typeof t.standout=="string"&&t.standout.length!==0&&e.focused.value?` ${t.standout}`:t.color!==void 0?` text-${t.color}`:"")),$=n.computed(()=>t.labelSlot||t.label!==void 0),B=n.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&!p.value?` text-${t.labelColor}`:"")),A=n.computed(()=>se({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:b.value,modelValue:t.modelValue,emitValue:e.emitValue},"field",()=>e.rootRef.value)),M=n.computed(()=>{const c={};return e.targetUid.value&&(c.for=e.targetUid.value),t.disable&&(c["aria-disabled"]="true"),c});function S(){var N;const c=document.activeElement;let k=(N=e.targetRef)==null?void 0:N.value;k&&(c===null||c.id!==e.targetUid.value)&&(k.hasAttribute("tabindex")||(k=k.querySelector("[tabindex]")),k!==c&&(k==null||k.focus({preventScroll:!0})))}function q(){Re(S)}function _(){Ue(S);const c=document.activeElement;c!==null&&e.rootRef.value.contains(c)&&c.blur()}function j(c){d!==null&&(clearTimeout(d),d=null),e.editable.value&&!e.focused.value&&(e.focused.value=!0,o("focus",c))}function m(c,k){d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,!(document.hasFocus()&&(e.hasPopupOpen||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)))&&(e.focused.value&&(e.focused.value=!1,o("blur",c)),k==null||k())},0)}function i(c){var k,N;U(c),s.platform.is.mobile?e.rootRef.value.contains(document.activeElement)&&document.activeElement.blur():(((k=e.targetRef)==null?void 0:k.value)||e.rootRef.value).focus(),t.type==="file"&&(e.inputRef.value.value=null),(N=e.onClear)==null||N.call(e),o("update:modelValue",null),e.changeEvent&&o("change",null),o("clear",t.modelValue),n.nextTick(()=>{const z=R.value;v(),R.value=z})}function h(c){[13,32].includes(c.keyCode)&&i(c)}function g(){const c=[];return l.prepend!==void 0&&c.push(n.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:te},l.prepend())),c.push(n.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},f())),p.value&&!t.noErrorIcon&&c.push(ge("error",[n.h(ee,{name:s.iconSet.field.error,color:"negative"})])),t.loading||e.innerLoading.value?c.push(ge("inner-loading-append",l.loading!==void 0?l.loading():[n.h($e,{color:t.color})])):t.clearable&&e.hasValue.value&&e.editable.value&&c.push(ge("inner-clearable-append",[n.h(ee,{class:"q-field__focusable-action",name:t.clearIcon||s.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":s.lang.label.clear,onKeyup:h,onClick:i})])),l.append!==void 0&&c.push(n.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:te},l.append())),e.getInnerAppend!==void 0&&c.push(ge("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&c.push(e.getControlChild()),c}function f(){const c=[];return t.prefix!==void 0&&t.prefix!==null&&c.push(n.h("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value&&c.push(e.getShadowControl()),$.value&&c.push(n.h("div",{class:B.value},Q(l.label,t.label))),e.getControl!==void 0?c.push(e.getControl()):l.rawControl!==void 0?c.push(l.rawControl()):l.control!==void 0&&c.push(n.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus||void 0},l.control(A.value))),t.suffix!==void 0&&t.suffix!==null&&c.push(n.h("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),c.concat(Q(l.default))}function y(){let c,k;p.value?w.value!==null?(c=[n.h("div",{role:"alert"},w.value)],k=`q--slot-error-${w.value}`):(c=Q(l.error),k="q--slot-error"):(!t.hideHint||e.focused.value)&&(t.hint!==void 0?(c=[n.h("div",t.hint)],k=`q--slot-hint-${t.hint}`):(c=Q(l.hint),k="q--slot-hint"));const N=t.counter||l.counter!==void 0;if(t.hideBottomSpace&&!N&&c===void 0)return;const z=n.h("div",{key:k,class:"q-field__messages col"},c);return n.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace?"stale":"animated"),onClick:te},[t.hideBottomSpace?z:n.h(n.Transition,{name:"q-transition--field-message"},()=>z),N?n.h("div",{class:"q-field__counter"},l.counter!==void 0?l.counter():e.computedCounter.value):null])}let T=!1;return n.onDeactivated(()=>{T=!0}),n.onActivated(()=>{T&&t.autofocus&&r.focus()}),t.autofocus&&n.onMounted(()=>{r.focus()}),n.onBeforeUnmount(()=>{d!==null&&clearTimeout(d)}),Object.assign(r,{focus:q,blur:_}),function(){const k=e.getControl===void 0&&l.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus||void 0,...M.value}:M.value;return n.h(e.tag.value,{ref:e.rootRef,class:[E.value,a.class],style:a.style,...k},[l.before!==void 0?n.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:te},l.before()):null,n.h("div",{class:"q-field__inner relative-position col self-stretch"},[n.h("div",{ref:e.controlRef,class:V.value,tabindex:-1,...e.controlEvents},g()),x.value?y():null]),l.after!==void 0?n.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:te},l.after()):null])}}function He(e){return e!==Object(e)||e.isComposing||e.qKeyEvent}function qe(e,t){return!He(e)&&[t].flat().includes(e.keyCode)}const Ze={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},{tokenMap:Qe,tokenKeys:kn}=We({"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}});function We(e){const t=Object.keys(e),o={};return t.forEach(l=>{const a=e[l];o[l]={...a,regex:new RegExp(a.pattern)}}),{tokenMap:o,tokenKeys:t}}function Ye(e){return new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+e.join("")+"])|(.)","g")}const Xe=/[.*+?^${}()|[\]\\]/g,yn=Ye(kn),I=String.fromCodePoint(1),wn={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean,maskTokens:Object};function xn(e,t,o,l){let a,r,s,d,R,C;const p=n.computed(()=>{if(e.maskTokens===void 0||e.maskTokens===null)return{tokenMap:Qe,tokenRegexMask:yn};const{tokenMap:m}=We(e.maskTokens),i={...Qe,...m};return{tokenMap:i,tokenRegexMask:Ye(Object.keys(i))}}),w=n.ref(null),v=n.ref(x());function b(){return e.autogrow||["textarea","text","search","url","tel","password"].includes(e.type)}n.watch(()=>e.type+e.autogrow,E),n.watch(()=>e.mask,m=>{if(m!==void 0)V(v.value,!0);else{const i=_(v.value);E(),e.modelValue!==i&&t("update:modelValue",i)}}),n.watch(()=>e.fillMask+e.reverseFillMask,()=>{w.value&&V(v.value,!0)}),n.watch(()=>e.unmaskedValue,()=>{w.value&&V(v.value)}),n.watch(()=>e.maskTokens,()=>{w.value&&V(v.value,!0)},{deep:!0});function x(){if(E(),w.value){const m=S(_(e.modelValue));return e.fillMask!==!1?j(m):m}return e.modelValue}function F(m){if(m<a.length)return a.slice(-m);let i="",h=a;const g=h.indexOf(I);if(g!==-1){for(let f=m-h.length;f>0;f--)i+=I;h=h.slice(0,g)+i+h.slice(g)}return h}function E(){if(w.value=e.mask!==void 0&&e.mask.length!==0&&b(),!w.value){d=void 0,a="",r="";return}const m=Ze[e.mask]===void 0?e.mask:Ze[e.mask],i=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",h=i.replace(Xe,String.raw`\$&`),g=[],f=[],y=[];let T=e.reverseFillMask,c="",k="";m.replace(p.value.tokenRegexMask,(O,D,H,W,Y)=>{if(W!==void 0){const u=p.value.tokenMap[W];y.push(u),k=u.negate,T&&(f.push("(?:"+k+"+)?("+u.pattern+"+)?(?:"+k+"+)?("+u.pattern+"+)?"),T=!1),f.push("(?:"+k+"+)?("+u.pattern+")?");return}if(H!==void 0)c="\\"+(H==="\\"?"":H),y.push(H);else{const u=D!==void 0?D:Y;c=u==="\\"?String.raw`\\\\`:u.replace(Xe,String.raw`\\$&`),y.push(u)}g.push("([^"+c+"]+)?"+c+"?")});const N=new RegExp("^"+g.join("")+"("+(c===""?".":"[^"+c+"]")+"+)?"+(c===""?"":"["+c+"]*")+"$"),z=f.length-1,P=f.map((O,D)=>D===0&&e.reverseFillMask?new RegExp("^"+h+"*"+O):D===z?new RegExp("^"+O+"("+(k===""?".":k)+"+)?"+(e.reverseFillMask?"$":h+"*")):new RegExp("^"+O));s=y,d=O=>{const D=N.exec(e.reverseFillMask?O:O.slice(0,y.length+1));D!==null&&(O=D.slice(1).join(""));const H=[],W=P.length;for(let Y=0,u=O;Y<W;Y++){const L=P[Y].exec(u);if(L===null)break;u=u.slice(L.shift().length),H.push(...L)}return H.length!==0?H.join(""):O},a=y.map(O=>typeof O=="string"?O:I).join(""),r=a.split(I).join(i)}function V(m,i,h){const g=l.value,f=(g==null?void 0:g.selectionEnd)??0,y=g===null?0:g.value.length-f,T=_(m);i===!0&&E();const c=S(T,i),k=e.fillMask!==!1?j(c):c,N=v.value!==k;g!==null&&g.value!==k&&(g.value=k),N&&(v.value=k),g!==null&&document.activeElement===g&&n.nextTick(()=>{if(k===r){const P=e.reverseFillMask?r.length:0;g.setSelectionRange(P,P,"forward");return}if(h==="insertFromPaste"&&!e.reverseFillMask){const P=g.selectionEnd;let O=f-1;for(let D=R;D<=O&&D<P;D++)a[D]!==I&&O++;B.right(g,O);return}if(["deleteContentBackward","deleteContentForward"].includes(h)){const P=e.reverseFillMask?f===0?k.length>c.length?1:0:Math.max(0,k.length-(k===r?0:Math.min(c.length,y)+1))+1:f;g.setSelectionRange(P,P,"forward");return}if(e.reverseFillMask)if(N){const P=Math.max(0,k.length-(k===r?0:Math.min(c.length,y+1)));P===1&&f===1?g.setSelectionRange(P,P,"forward"):B.rightReverse(g,P)}else{const P=k.length-y;g.setSelectionRange(P,P,"backward")}else if(N){const P=Math.max(0,a.indexOf(I),Math.min(c.length,f)-1);B.right(g,P)}else{const P=f-1;B.right(g,P)}});const z=e.unmaskedValue?_(k):k;String(e.modelValue)!==z&&(e.modelValue!==null||z!=="")&&o(z,!0)}function $(m,i,h){const g=S(_(m.value));i=Math.max(0,a.indexOf(I),Math.min(g.length,i)),R=i,m.setSelectionRange(i,h,"forward")}const B={left(m,i){const h=!a.slice(i-1).includes(I);let g=Math.max(0,i-1);for(;g>=0;g--)if(a[g]===I){i=g,h&&i++;break}if(g<0&&a[i]!==void 0&&a[i]!==I)return B.right(m,0);i>=0&&m.setSelectionRange(i,i,"backward")},right(m,i){const h=m.value.length;let g=Math.min(h,i+1);for(;g<=h;g++)if(a[g]===I){i=g;break}else a[g-1]===I&&(i=g);if(g>h&&a[i-1]!==void 0&&a[i-1]!==I)return B.left(m,h);m.setSelectionRange(i,i,"forward")},leftReverse(m,i){const h=F(m.value.length);let g=Math.max(0,i-1);for(;g>=0;g--)if(h[g-1]===I){i=g;break}else if(h[g]===I&&(i=g,g===0))break;if(g<0&&h[i]!==void 0&&h[i]!==I)return B.rightReverse(m,0);i>=0&&m.setSelectionRange(i,i,"backward")},rightReverse(m,i){const h=m.value.length,g=F(h),f=!g.slice(0,i+1).includes(I);let y=Math.min(h,i+1);for(;y<=h;y++)if(g[y-1]===I){i=y,i>0&&f&&i--;break}if(y>h&&g[i-1]!==void 0&&g[i-1]!==I)return B.leftReverse(m,h);m.setSelectionRange(i,i,"forward")}};function A(m){t("click",m),C=void 0}function M(m){if(t("keydown",m),He(m)||m.altKey)return;const i=l.value,h=i.selectionStart,g=i.selectionEnd;if(m.shiftKey||(C=void 0),m.keyCode===37||m.keyCode===39){m.shiftKey&&C===void 0&&(C=i.selectionDirection==="forward"?h:g);const f=B[(m.keyCode===39?"right":"left")+(e.reverseFillMask?"Reverse":"")];if(m.preventDefault(),f(i,C===h?g:h),m.shiftKey){const y=i.selectionStart;i.setSelectionRange(Math.min(C,y),Math.max(C,y),"forward")}}else m.keyCode===8&&!e.reverseFillMask&&h===g?(B.left(i,h),i.setSelectionRange(i.selectionStart,g,"backward")):m.keyCode===46&&e.reverseFillMask&&h===g&&(B.rightReverse(i,g),i.setSelectionRange(h,i.selectionEnd,"forward"))}function S(m,i){if(m==null||m==="")return"";if(e.reverseFillMask)return q(m,i);const h=s;let g=0,f="";for(let y=0;y<h.length;y++){const T=m[g],c=h[y];if(typeof c=="string")f+=c,i===!0&&T===c&&g++;else if(T!==void 0&&c.regex.test(T))f+=c.transform!==void 0?c.transform(T):T,g++;else return f}return f}function q(m,i){const h=s,g=a.indexOf(I);let f=m.length-1,y="";for(let T=h.length-1;T>=0&&f!==-1;T--){const c=h[T];let k=m[f];if(typeof c=="string")y=c+y,i===!0&&k===c&&f--;else if(k!==void 0&&c.regex.test(k))do y=(c.transform!==void 0?c.transform(k):k)+y,f--,k=m[f];while(g===T&&k!==void 0&&c.regex.test(k));else return y}return y}function _(m){return typeof m!="string"||d===void 0?typeof m=="number"?d(String(m)):m:d(m)}function j(m){return r.length-m.length<=0?m:e.reverseFillMask&&m.length!==0?r.slice(0,-m.length)+m:m+r.slice(m.length)}return{innerValue:v,hasMask:w,moveCursorForPaste:$,updateMaskValue:V,onMaskedKeydown:M,onMaskedClick:A}}const Ge={name:String};function Cn(e={}){return(t,o,l)=>{t[o](n.h("input",{class:"hidden"+(l||""),...e.value}))}}function En(e){return n.computed(()=>e.name||e.for)}function Rn(e,t){function o(){const l=e.modelValue;try{const a="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(l)===l&&("length"in l?[...l]:[l]).forEach(r=>{a.items.add(r)}),{files:a.files}}catch{return{files:void 0}}}return n.computed(()=>{if(e.type==="file")return o()})}const Sn=/[\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFF9F\u4E00-\u9FAF\u3400-\u4DBF]/,qn=/[\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,Mn=/[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]/,_n=/[a-z0-9_ -]$/i;function Fn(e){return function(o){if(o.type==="compositionend"||o.type==="change"){if(!o.target.qComposing)return;o.target.qComposing=!1,e(o)}else o.type==="compositionupdate"&&!o.target.qComposing&&typeof o.data=="string"&&(ue.is.firefox?!_n.test(o.data):Sn.test(o.data)||qn.test(o.data)||Mn.test(o.data))&&(o.target.qComposing=!0)}}const Je=G({name:"QInput",inheritAttrs:!1,props:{...hn,...wn,...Ge,modelValue:[String,Number,FileList],modelModifiers:Object,shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...vn,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:o}){const{proxy:l}=n.getCurrentInstance(),{$q:a}=l,r={};let s=Number.NaN,d=!1,R=!1,C=null,p;const w=n.ref(null),v=En(e),{innerValue:b,hasMask:x,moveCursorForPaste:F,updateMaskValue:E,onMaskedKeydown:V,onMaskedClick:$}=xn(e,t,N,w),B=Rn(e),A=n.computed(()=>Se(b.value)),M=Fn(c);function S(u){if(x.value&&u.type==="compositionstart"){u.target.qComposing=!0;return}M(u)}const q=pn({changeEvent:!0}),_=n.computed(()=>e.type==="textarea"||e.autogrow),j=n.computed(()=>_.value||["text","search","url","tel","password"].includes(e.type)),m=n.computed(()=>{const u={...q.splitAttrs.listeners.value,onInput:c,onPaste:T,onChange:D,onBlur:H,onFocus:me};return u.onCompositionstart=u.onCompositionupdate=u.onCompositionend=S,x.value&&(u.onKeydown=V,u.onClick=$),e.autogrow&&(u.onAnimationend=k),u}),i=n.computed(()=>{const u={tabindex:0,"data-autofocus":e.autofocus||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:v.value,...q.splitAttrs.attributes.value,id:q.targetUid.value,maxlength:e.maxlength,disabled:e.disable,readonly:e.readonly};return _.value||(u.type=e.type),e.autogrow&&(u.rows=1),u});n.watch(()=>e.type,()=>{w.value&&(w.value.value=e.modelValue)}),n.watch(()=>e.modelValue,u=>{var L;if(C!==null&&(z(),d=!1,R=!1,delete r.value),x.value){if(R&&(R=!1,String(u)===s))return;E(u)}else b.value!==u&&(b.value=u,e.type==="number"&&Object.hasOwn(r,"value")&&(d?d=!1:delete r.value),((L=e.modelModifiers)==null?void 0:L.trim)===!0&&Object.hasOwn(r,"value")&&(typeof r.value!="string"||r.value.trim()!==u)&&delete r.value);e.autogrow&&n.nextTick(O)}),n.watch(()=>e.autogrow,u=>{u?n.nextTick(O):w.value!==null&&o.rows>0&&(w.value.style.height="auto")}),n.watch(()=>e.dense,()=>{e.autogrow&&n.nextTick(O)});function h(){const u=document.activeElement;w.value!==null&&w.value!==u&&(u===null||u.id!==q.targetUid.value)&&w.value.focus({preventScroll:!0})}function g(){Re(h)}function f(){Ue(h);const u=document.activeElement;u!==null&&q.rootRef.value.contains(u)&&u.blur()}function y(){var u;(u=w.value)==null||u.select()}function T(u){if(x.value&&e.reverseFillMask!==!0){const L=u.target;F(L,L.selectionStart,L.selectionEnd)}t("paste",u)}function c(u){var X;if(!u||!u.target)return;if(e.type==="file"){t("update:modelValue",u.target.files);return}const L=u.target.value;if(u.target.qComposing){r.value=L;return}if(x.value)E(L,!1,u.inputType);else if(((X=e.modelModifiers)==null?void 0:X.trim)===!0&&(r.value=L),N(L),j.value&&u.target===document.activeElement){const{selectionStart:re,selectionEnd:he}=u.target;re!==void 0&&he!==void 0&&n.nextTick(()=>{u.target===document.activeElement&&L.indexOf(u.target.value)===0&&u.target.setSelectionRange(re,he)})}e.autogrow&&O()}function k(u){t("animationend",u),O()}function N(u,L){p=()=>{var X;C=null,e.type!=="number"&&(((X=e.modelModifiers)==null?void 0:X.trim)!==!0||x.value)&&Object.hasOwn(r,"value")&&delete r.value,e.modelValue!==u&&s!==u&&(s=u,L===!0&&(R=!0),t("update:modelValue",u),n.nextTick(()=>{s===u&&(s=Number.NaN)})),p=void 0},e.type==="number"&&(d=!0,r.value=u),e.debounce!==void 0?(C!==null&&clearTimeout(C),r.value=u,C=setTimeout(p,e.debounce)):p()}function z(){C!==null&&(clearTimeout(C),C=null),p=void 0}function P(){z(),d=!1,R=!1,delete r.value}function O(){requestAnimationFrame(()=>{const u=w.value;if(u!==null){const L=u.parentNode.style,{scrollTop:X}=u,{overflowY:re,maxHeight:he}=a.platform.is.firefox?{}:window.getComputedStyle(u),ut=re!==void 0&&re!=="scroll";ut&&(u.style.overflowY="hidden"),L.marginBottom=u.scrollHeight-1+"px",u.style.height="1px",u.style.height=u.scrollHeight+"px",ut&&(u.style.overflowY=Number.parseInt(he,10)<u.scrollHeight?"auto":"hidden"),L.marginBottom="",u.scrollTop=X}})}function D(u){S(u),C!==null&&(clearTimeout(C),C=null),p==null||p(),t("change",u.target.value)}function H(u){u!==void 0&&me(u),C!==null&&(clearTimeout(C),C=null),p==null||p(),d=!1,R=!1,delete r.value,e.type!=="file"&&setTimeout(()=>{w.value!==null&&(w.value.value=b.value!==void 0?b.value:"")},0)}function W(){return Object.hasOwn(r,"value")?r.value:b.value!==void 0?b.value:""}n.onBeforeUnmount(()=>{H()}),n.onMounted(()=>{e.autogrow&&O()}),Object.assign(q,{innerValue:b,fieldClass:n.computed(()=>`q-${_.value?"textarea":"input"}`+(e.autogrow?" q-textarea--autogrow":"")),hasShadow:n.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:w,emitValue:N,onClear:P,hasValue:A,floatingLabel:n.computed(()=>A.value&&(e.type!=="number"||Number.isFinite(Number(b.value)))||Se(e.displayValue)),getControl:()=>n.h(_.value?"textarea":"input",{ref:w,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...i.value,...m.value,...e.type!=="file"?{value:W()}:B.value}),getShadowControl:()=>n.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(_.value?"":" text-no-wrap")},[n.h("span",{class:"invisible"},W()),n.h("span",e.shadowText)])});const Y=bn(q);return Object.assign(l,{focus:g,blur:f,select:y,getNativeElement:()=>w.value}),se(l,"nativeEl",()=>w.value),Y}});function Vn(e,t){const o=n.ref(null),l=n.computed(()=>e.disable?null:n.h("span",{ref:o,class:"no-outline",tabindex:-1}));function a(r){const s=t.value;(r==null?void 0:r.qAvoidFocus)!==!0&&((r==null?void 0:r.type.indexOf("key"))===0?document.activeElement!==s&&(s==null?void 0:s.contains(document.activeElement))===!0&&s.focus({preventScroll:!0}):o.value!==null&&(r===void 0||(s==null?void 0:s.contains(r.target))===!0)&&o.value.focus({preventScroll:!0}))}return{refocusTargetEl:l,refocusTarget:a}}const Bn={xs:30,sm:35,md:40,lg:50,xl:60},$n={...Ie,...pe,...Ge,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},Tn=["update:modelValue"];function An(e){(e.keyCode===13||e.keyCode===32)&&U(e)}function Pn(e,t){const{props:o,slots:l,emit:a,proxy:r}=n.getCurrentInstance(),{$q:s}=r,d=je(o,s),R=n.ref(null),{refocusTargetEl:C,refocusTarget:p}=Vn(o,R),w=be(o,Bn),v=n.computed(()=>o.val!==void 0&&Array.isArray(o.modelValue)),b=n.computed(()=>{const i=n.toRaw(o.val);return v.value?o.modelValue.findIndex(h=>n.toRaw(h)===i):-1}),x=n.computed(()=>v.value?b.value!==-1:n.toRaw(o.modelValue)===n.toRaw(o.trueValue)),F=n.computed(()=>v.value?b.value===-1:n.toRaw(o.modelValue)===n.toRaw(o.falseValue)),E=n.computed(()=>!x.value&&!F.value),V=n.computed(()=>o.disable?-1:o.tabindex||0),$=n.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(o.disable?" disabled":"")+(d.value?` q-${e}--dark`:"")+(o.dense?` q-${e}--dense`:"")+(o.leftLabel?" reverse":"")),B=n.computed(()=>{const i=x.value?"truthy":F.value?"falsy":"indet",h=o.color!==void 0&&(o.keepColor||!F.value)?` text-${o.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${i}${h}`}),A=n.computed(()=>{const i={type:"checkbox"};return o.name!==void 0&&Object.assign(i,{".checked":x.value,"^checked":x.value?"checked":void 0,name:o.name,value:v.value?o.val:o.trueValue}),i}),M=Cn(A),S=n.computed(()=>{const i={tabindex:V.value,role:"checkbox","aria-label":o.label,"aria-checked":E.value?"mixed":x.value?"true":"false"};return o.disable&&(i["aria-disabled"]="true"),i});function q(i){i!==void 0&&(U(i),p(i)),o.disable||a("update:modelValue",_(),i)}function _(){if(v.value){if(x.value){const i=[...o.modelValue];return i.splice(b.value,1),i}return[...o.modelValue,o.val]}if(x.value){if(o.toggleOrder!=="ft"||!o.toggleIndeterminate)return o.falseValue}else if(F.value){if(o.toggleOrder==="ft"||!o.toggleIndeterminate)return o.trueValue}else return o.toggleOrder!=="ft"?o.trueValue:o.falseValue;return o.indeterminateValue}function j(i){(i.keyCode===13||i.keyCode===32)&&q(i)}const m=t(x,E);return Object.assign(r,{toggle:q}),()=>{const i=m();o.disable||M(i,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const h=[n.h("div",{class:B.value,style:w.value,"aria-hidden":"true"},i)];C.value!==null&&h.push(C.value);const g=o.label!==void 0?J(l.default,[o.label]):Q(l.default);return g!==void 0&&h.push(n.h("div",{class:`q-${e}__label q-anchor--skip`},g)),n.h("div",{ref:R,class:$.value,...S.value,onClick:q,onKeydown:An,onKeyup:j},h)}}const On=()=>n.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[n.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[n.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),n.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),Ln=G({name:"QCheckbox",props:$n,emits:Tn,setup(e){const t=On();function o(l,a){const r=n.computed(()=>(l.value?e.checkedIcon:a.value?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>r.value!==null?[n.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[n.h(ee,{class:"q-checkbox__icon",name:r.value})])]:[t]}return Pn("checkbox",o)}});function In(e,t){const o=e.style;for(const l in t)o[l]=t[l]}function jn(e,t=250){let o=!1,l;return function(...r){return o||(o=!0,setTimeout(()=>{o=!1},t),l=e.apply(this,r)),l}}function et(e,t,o,l){o.modifiers.stop&&me(e);const a=o.modifiers.color,r=o.modifiers.center||l===!0,s=document.createElement("span"),d=document.createElement("span"),R=dn(e),{left:C,top:p,width:w,height:v}=t.getBoundingClientRect(),b=Math.hypot(w,v),x=b/2,F=`${(w-b)/2}px`,E=r?F:`${R.left-C-x}px`,V=`${(v-b)/2}px`,$=r?V:`${R.top-p-x}px`;d.className="q-ripple__inner",In(d,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${E},${$},0) scale3d(.2,.2,1)`,opacity:0}),s.className=`q-ripple${a?" text-"+a:""}`,s.setAttribute("dir","ltr"),s.append(d),t.append(s);const B=()=>{s.remove(),clearTimeout(A)};o.abort.push(B);let A=setTimeout(()=>{d.classList.add("q-ripple__inner--enter"),d.style.transform=`translate3d(${F},${V},0) scale3d(1,1,1)`,d.style.opacity=.2,A=setTimeout(()=>{d.classList.remove("q-ripple__inner--enter"),d.classList.add("q-ripple__inner--leave"),d.style.opacity=0,A=setTimeout(()=>{s.remove(),o.abort.splice(o.abort.indexOf(B),1)},275)},250)},50)}function tt(e,{modifiers:t,value:o,arg:l}){const a={...e.cfg.ripple,...t,...o};e.modifiers={early:a.early===!0,stop:a.stop===!0,center:a.center===!0,color:a.color||l,keyCodes:[a.keyCodes||13].flat()}}const Nn=ct({name:"ripple",beforeMount(e,t){const o=t.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const l={cfg:o,enabled:t.value!==!1,modifiers:{},abort:[],start(a){l.enabled&&!a.qSkipRipple&&a.type===(l.modifiers.early?"pointerdown":"click")&&et(a,e,l,a.qKeyEvent===!0)},keystart:jn(a=>{l.enabled&&!a.qSkipRipple&&qe(a,l.modifiers.keyCodes)&&a.type===`key${l.modifiers.early?"down":"up"}`&&et(a,e,l,!0)},300)};tt(l,t),e.__qripple=l,fn(l,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const o=e.__qripple;o!==void 0&&(o.enabled=t.value!==!1,o.enabled&&Object(t.value)===t.value&&tt(o,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(o=>{o()}),mn(t,"main"),delete e.__qripple)}}),nt={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Dn=Object.keys(nt),zn={align:{type:String,validator:e=>Dn.includes(e)}};function Kn(e){return n.computed(()=>{const t=e.align===void 0?e.vertical?"stretch":"left":e.align;return`${e.vertical?"items":"justify"}-${nt[t]}`})}function Un(e){return e.appContext.config.globalProperties.$router!==void 0}function Hn(e){return e.isUnmounted===!0||e.isDeactivated===!0}function ot(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function lt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Zn(e,t){for(const o in t){const l=t[o],a=e[o];if(typeof l=="string"){if(l!==a)return!1}else if(!Array.isArray(a)||a.length!==l.length||l.some((r,s)=>r!==a[s]))return!1}return!0}function at(e,t){return Array.isArray(t)?e.length===t.length&&e.every((o,l)=>o===t[l]):e.length===1&&e[0]===t}function Qn(e,t){return Array.isArray(e)?at(e,t):Array.isArray(t)?at(t,e):e===t}function Wn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!Qn(e[o],t[o]))return!1;return!0}const Yn={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean};function Xn({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const o=n.getCurrentInstance(),{props:l,proxy:a,emit:r}=o,s=Un(o),d=n.computed(()=>!l.disable&&l.href!==void 0),R=t?n.computed(()=>s&&!l.disable&&!d.value&&l.to!==void 0&&l.to!==null&&l.to!==""):n.computed(()=>s&&!d.value&&l.to!==void 0&&l.to!==null&&l.to!==""),C=n.computed(()=>R.value?$(l.to):null),p=n.computed(()=>C.value!==null),w=n.computed(()=>d.value||p.value),v=n.computed(()=>l.type==="a"||w.value?"a":l.tag||e||"div"),b=n.computed(()=>d.value?{href:l.href,target:l.target}:p.value?{href:C.value.href,target:l.target}:{}),x=n.computed(()=>{if(!p.value)return-1;const{matched:M}=C.value,{length:S}=M,q=M[S-1];if(q===void 0)return-1;const _=a.$route.matched;if(_.length===0)return-1;const j=_.findIndex(lt.bind(null,q));if(j!==-1)return j;const m=ot(M[S-2]);return S>1&&ot(q)===m&&_.at(-1).path!==m?_.findIndex(lt.bind(null,M[S-2])):j}),F=n.computed(()=>p.value&&x.value!==-1&&Zn(a.$route.params,C.value.params)),E=n.computed(()=>F.value&&x.value===a.$route.matched.length-1&&Wn(a.$route.params,C.value.params)),V=n.computed(()=>p.value?E.value?` ${l.exactActiveClass} ${l.activeClass}`:l.exact?"":F.value?` ${l.activeClass}`:"":"");function $(M){try{return a.$router.resolve(M)}catch{}return null}function B(M,{returnRouterError:S,to:q=l.to,replace:_=l.replace}={}){if(l.disable)return M.preventDefault(),Promise.resolve(!1);if(M.metaKey||M.altKey||M.ctrlKey||M.shiftKey||M.button!==void 0&&M.button!==0||l.target==="_blank")return Promise.resolve(!1);M.preventDefault();const j=a.$router[_?"replace":"push"](q);return S?j:j.then(()=>{}).catch(()=>{})}function A(M){if(p.value){const S=q=>B(M,q);r("click",M,S),M.defaultPrevented||S()}else r("click",M)}return{hasRouterLink:p,hasHrefLink:d,hasLink:w,linkTag:v,resolvedLink:C,linkIsActive:F,linkIsExactActive:E,linkClass:V,linkAttrs:b,getLink:$,navigateToRouterLink:B,navigateOnClick:A}}const it={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Gn={xs:8,sm:10,md:14,lg:20,xl:24},Jn=["button","submit","reset"],eo=/[^\s]\/[^\s]/,to=["flat","outline","push","unelevated"];function no(e,t){return e.flat?"flat":e.outline?"outline":e.push?"push":e.unelevated?"unelevated":t}const oo={...{...pe,...Yn,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...to.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...zn.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function lo(e){const t=be(e,Gn),o=Kn(e),{hasRouterLink:l,hasLink:a,linkTag:r,linkAttrs:s,navigateOnClick:d}=Xn({fallbackTag:"button"}),R=n.computed(()=>{const E=e.fab||e.fabMini?{}:t.value;return e.padding!==void 0?{...E,padding:e.padding.split(/\s+/).map(V=>V in it?it[V]+"px":V).join(" "),minWidth:"0",minHeight:"0"}:E}),C=n.computed(()=>e.rounded||e.fab||e.fabMini),p=n.computed(()=>!e.disable&&!e.loading),w=n.computed(()=>p.value?e.tabindex||0:-1),v=n.computed(()=>no(e,"standard")),b=n.computed(()=>{const E={tabindex:w.value};return a.value?Object.assign(E,s.value):Jn.includes(e.type)&&(E.type=e.type),r.value==="a"?(e.disable?E["aria-disabled"]="true":E.href===void 0&&(E.role="button"),!l.value&&eo.test(e.type)&&(E.type=e.type)):e.disable&&(E.disabled="",E["aria-disabled"]="true"),e.loading&&e.percentage!==void 0&&Object.assign(E,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),E}),x=n.computed(()=>{let E;e.color!==void 0?E=e.flat||e.outline?`text-${e.textColor||e.color}`:`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(E=`text-${e.textColor}`);const V=e.round?"round":`rectangle${C.value?" q-btn--rounded":e.square?" q-btn--square":""}`;return`q-btn--${v.value} q-btn--${V}`+(E!==void 0?" "+E:"")+(p.value?" q-btn--actionable q-focusable q-hoverable":e.disable?" disabled":"")+(e.fab?" q-btn--fab":e.fabMini?" q-btn--fab-mini":"")+(e.noCaps?" q-btn--no-uppercase":"")+(e.dense?" q-btn--dense":"")+(e.stretch?" no-border-radius self-stretch":"")+(e.glossy?" glossy":"")+(e.square?" q-btn--square":"")}),F=n.computed(()=>o.value+(e.stack?" column":" row")+(e.noWrap?" no-wrap text-no-wrap":"")+(e.loading?" q-btn__content--hidden":""));return{classes:x,style:R,innerClasses:F,attributes:b,hasLink:a,linkTag:r,navigateOnClick:d,isActionable:p}}const{passiveCapture:K}=fe;let ne=null,oe=null,le=null;function ie(e){U(e),e.qSkipRipple=!0}const rt=G({name:"QBtn",props:{...oo,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:o}){const{proxy:l}=n.getCurrentInstance(),{classes:a,style:r,innerClasses:s,attributes:d,hasLink:R,linkTag:C,navigateOnClick:p,isActionable:w}=lo(e),v=n.ref(null),b=n.ref(null);let x=null,F,E=null,V=null;const $=n.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),B=n.computed(()=>e.disable||e.ripple===!1?!1:{keyCodes:R.value?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),A=n.computed(()=>({center:e.round})),M=n.computed(()=>{const f=Math.max(0,Math.min(100,e.percentage));return f>0?{transition:"transform 0.6s",transform:`translateX(${f-100}%)`}:{}}),S=n.computed(()=>{if(e.loading)return{onMousedown:ie,onTouchstart:ie,onClick:ie,onKeydown:ie,onKeyup:ie};if(w.value){const f={onClick:_,onKeydown:j,onMousedown:i};if(l.$q.platform.has.touch){const y=e.onTouchstart!==void 0?"":"Passive";f[`onTouchstart${y}`]=m}return f}return{onClick:U}}),q=n.computed(()=>({ref:v,class:"q-btn q-btn-item non-selectable no-outline "+a.value,style:r.value,...d.value,...S.value}));function _(f){if(v.value!==null){if(f!==void 0){if(f.defaultPrevented)return;const y=document.activeElement;if(e.type==="submit"&&y!==document.body&&!v.value.contains(y)&&!y.contains(v.value)){f.qAvoidFocus||v.value.focus();const T=()=>{var c;V=null,document.removeEventListener("keydown",U,!0),document.removeEventListener("keyup",T,K),(c=v.value)==null||c.removeEventListener("blur",T,K)};V=T,document.addEventListener("keydown",U,!0),document.addEventListener("keyup",T,K),v.value.addEventListener("blur",T,K)}}p(f)}}function j(f){v.value!==null&&(o("keydown",f),qe(f,[13,32])&&oe!==v.value&&(oe!==null&&g(),f.defaultPrevented||(f.qAvoidFocus||v.value.focus(),oe=v.value,v.value.classList.add("q-btn--active"),document.addEventListener("keyup",h,!0),v.value.addEventListener("blur",h,K)),U(f)))}function m(f){v.value!==null&&(o("touchstart",f),!f.defaultPrevented&&(ne!==v.value&&(ne!==null&&g(),ne=v.value,x=f.target,x.addEventListener("touchcancel",h,K),x.addEventListener("touchend",h,K)),F=!0,E!==null&&clearTimeout(E),E=setTimeout(()=>{E=null,F=!1},200)))}function i(f){v.value!==null&&(f.qSkipRipple=F===!0,o("mousedown",f),!f.defaultPrevented&&le!==v.value&&(le!==null&&g(),le=v.value,v.value.classList.add("q-btn--active"),document.addEventListener("mouseup",h,K)))}function h(f){if(v.value!==null&&!((f==null?void 0:f.type)==="blur"&&document.activeElement===v.value)){if((f==null?void 0:f.type)==="keyup"){if(oe===v.value&&qe(f,[13,32])){const y=new MouseEvent("click",f);y.qKeyEvent=!0,f.defaultPrevented&&te(y),f.cancelBubble&&me(y),v.value.dispatchEvent(y),U(f),f.qKeyEvent=!0}o("keyup",f)}g()}}function g(f){var T,c;V==null||V();const y=b.value;!f&&(ne===v.value||le===v.value)&&y!==null&&y!==document.activeElement&&(y.setAttribute("tabindex",-1),y.focus({preventScroll:!0})),ne===v.value&&(x!==null&&(x.removeEventListener("touchcancel",h,K),x.removeEventListener("touchend",h,K)),ne=x=null),le===v.value&&(document.removeEventListener("mouseup",h,K),le=null),oe===v.value&&(document.removeEventListener("keyup",h,!0),(T=v.value)==null||T.removeEventListener("blur",h,K),oe=null),(c=v.value)==null||c.classList.remove("q-btn--active")}return n.onBeforeUnmount(()=>{g(!0)}),Object.assign(l,{click:f=>{w.value&&_(f)}}),()=>{let f=[];e.icon!==void 0&&f.push(n.h(ee,{name:e.icon,left:!e.stack&&$.value,role:"img"})),$.value&&f.push(n.h("span",{class:"block"},[e.label])),f=J(t.default,f),e.iconRight!==void 0&&!e.round&&f.push(n.h(ee,{name:e.iconRight,right:!e.stack&&$.value,role:"img"}));const y=[n.h("span",{class:"q-focus-helper",ref:b})];return e.loading&&e.percentage!==void 0&&y.push(n.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage?" q-btn__progress--dark":"")},[n.h("span",{class:"q-btn__progress-indicator fit block",style:M.value})])),y.push(n.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+s.value},f)),e.loading!==null&&y.push(n.h(n.Transition,{name:"q-transition--fade"},()=>e.loading?[n.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[n.h($e)])]:null)),n.withDirectives(n.h(C.value,q.value,y),[[Nn,B.value,void 0,A.value]])}}});function st(e){const t=e.validate();return typeof t.then=="function"?t.then(o=>({valid:o,comp:e}),o=>({valid:!1,comp:e,err:o})):Promise.resolve({valid:t,comp:e})}const ao=G({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validationSuccess","validationError"],setup(e,{slots:t,emit:o}){const l=n.getCurrentInstance(),a=n.ref(null);let r=0;const s=[];function d(b){const x=typeof b=="boolean"?b:!e.noErrorFocus,F=++r,E=($,B)=>{o(`validation${$?"Success":"Error"}`,B)};return(e.greedy?Promise.all(s.map(st)).then($=>$.filter(B=>!B.valid)):s.reduce(($,B)=>$.then(()=>st(B)).then(A=>{if(!A.valid)throw A}),Promise.resolve()).catch($=>[$])).then($=>{if($===void 0||$.length===0)return F===r&&E(!0),!0;if(F===r){const{comp:B,err:A}=$[0];if(A!==void 0&&console.error(A),E(!1,B),x){const M=$.find(({comp:S})=>typeof S.focus=="function"&&!Hn(S.$));M!==void 0&&M.comp.focus()}}return!1})}function R(){r++,s.forEach(b=>{typeof b.resetValidation=="function"&&b.resetValidation()})}function C(b){b!==void 0&&U(b);const x=r+1;d().then(F=>{x===r&&F&&(e.onSubmit!==void 0?o("submit",b):(b==null?void 0:b.target)!==void 0&&typeof b.target.submit=="function"&&b.target.submit())})}function p(b){b!==void 0&&U(b),o("reset"),n.nextTick(()=>{R(),e.autofocus&&!e.noResetFocus&&w()})}function w(){Re(()=>{if(a.value===null)return;const b=a.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||a.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||a.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(a.value.querySelectorAll("[tabindex]"),x=>x.tabIndex!==-1);b==null||b.focus({preventScroll:!0})})}n.provide(Ne,{bindComponent(b){s.push(b)},unbindComponent(b){const x=s.indexOf(b);x!==-1&&s.splice(x,1)}});let v=!1;return n.onDeactivated(()=>{v=!0}),n.onActivated(()=>{v&&e.autofocus&&w()}),n.onMounted(()=>{e.autofocus&&w()}),Object.assign(l.proxy,{validate:d,resetValidation:R,submit:C,reset:p,focus:w,getValidationComponents:()=>s}),()=>n.h("form",{class:"q-form",ref:a,onSubmit:C,onReset:p},Q(t.default))}}),io=((e,t)=>{const o=e.__vccOpts||e;for(const[l,a]of t)o[l]=a;return o})(n.defineComponent({__name:"LoginForm",props:{loading:{type:Boolean,default:!1},error:{default:""},usernameLabel:{default:"用户名"},passwordLabel:{default:"密码"},rememberLabel:{default:"记住我"},submitLabel:{default:"登录"},usernameRules:{default:()=>[e=>!!e||"请输入用户名"]},passwordRules:{default:()=>[e=>!!e||"请输入密码"]}},emits:["submit"],setup(e,{emit:t}){const o=n.reactive({username:"",password:"",remember:!1,showPassword:!1}),l={handleSubmit(){a("submit",{username:o.username,password:o.password,remember:o.remember})}},a=t;return(r,s)=>(n.openBlock(),n.createBlock(ao,{class:"login-form",onSubmit:n.withModifiers(l.handleSubmit,["prevent"])},{default:n.withCtx(()=>[n.createVNode(Je,{modelValue:o.username,"onUpdate:modelValue":s[0]||(s[0]=d=>o.username=d),label:e.usernameLabel,rules:e.usernameRules,"lazy-rules":"","prepend-icon":"person",outlined:""},null,8,["modelValue","label","rules"]),n.createVNode(Je,{modelValue:o.password,"onUpdate:modelValue":s[2]||(s[2]=d=>o.password=d),label:e.passwordLabel,type:o.showPassword?"text":"password",rules:e.passwordRules,"lazy-rules":"","prepend-icon":"lock",outlined:""},{append:n.withCtx(()=>[n.createVNode(ee,{name:o.showPassword?"visibility_off":"visibility",class:"cursor-pointer",onClick:s[1]||(s[1]=d=>o.showPassword=!o.showPassword)},null,8,["name"])]),_:1},8,["modelValue","label","type","rules"]),n.createVNode(Ln,{modelValue:o.remember,"onUpdate:modelValue":s[3]||(s[3]=d=>o.remember=d),label:e.rememberLabel,"left-label":""},null,8,["modelValue","label"]),n.createVNode(rt,{type:"submit",label:e.submitLabel,loading:e.loading,color:"primary","text-color":"white","full-width":"",unelevated:""},null,8,["label","loading"])]),_:1},8,["onSubmit"]))}}),[["__scopeId","data-v-4c9f630c"]]),ro={class:"fullscreen q-ma-sm"},so={class:"row full-height"},uo={class:"col bg-blue-1 column"},co={class:"bg-green-2 row justify-end items-center",style:{height:"50px"}},fo=n.defineComponent({__name:"LayoutOne",setup(e){const t={goBack:()=>history.back()};return(o,l)=>(n.openBlock(),n.createElementBlock("div",ro,[n.createElementVNode("div",so,[l[1]||(l[1]=n.createElementVNode("div",{class:"bg-orange-1 text-center",style:{width:"300px"}}," 左边菜单宽度固定(水平居中) ",-1)),n.createElementVNode("div",uo,[l[0]||(l[0]=n.createElementVNode("div",{class:"col q-pa-md"},[n.createElementVNode("div",{class:"q-pa-md bg-yellow-2 flex flex-center"}," 文本水平、垂直居中 "),n.createElementVNode("div",{class:"q-mt-md"}," 主内容区 ")],-1)),n.createElementVNode("div",co,[n.createVNode(rt,{class:"q-mr-md",color:"primary",label:"返回",onClick:t.goBack},null,8,["onClick"])])])])]))}});Z.LayoutOne=fo,Z.LoginForm=io,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})});
1
+ (function(ce,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(ce=typeof globalThis<"u"?globalThis:ce||self,t(ce.YourOrgUI={},ce.Vue))})(this,function(ce,t){"use strict";const xt={xs:18,sm:24,md:32,lg:38,xl:46},it={size:String};function at(e,n=xt){return t.computed(()=>e.size!==void 0?{fontSize:e.size in n?`${n[e.size]}px`:e.size}:null)}function je(e,n,l,o){return Object.defineProperty(e,n,{get:l,set:o,enumerable:!0}),e}function ie(e){return t.markRaw(t.defineComponent(e))}function Fl(e){return t.markRaw(e)}function ve(e,n){return e!==void 0&&e()||n}function Al(e,n){if(e!==void 0){const l=e();if(l!=null)return[...l]}return n}function we(e,n){return e!==void 0?n.concat(e()):n}function Ll(e,n){return e===void 0?n:n!==void 0?n.concat(e()):e()}function Pl(e,n,l,o,i,a){n.key=o+i;const s=t.h(e,n,l);return i?t.withDirectives(s,a()):s}const Jt="0 0 24 24",Ct=e=>e,Et=e=>`ionicons ${e}`,Gt={"mdi-":e=>`mdi ${e}`,"icon-":Ct,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Et,"ion-ios":Et,"ion-logo":Et,"iconfont ":Ct,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":Ct},en={o_:"-outlined",r_:"-round",s_:"-sharp"},tn={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},$l=new RegExp("^("+Object.keys(Gt).join("|")+")"),Ol=new RegExp("^("+Object.keys(en).join("|")+")"),nn=new RegExp("^("+Object.keys(tn).join("|")+")"),Il=/^[Mm]\s?[-+]?\.?\d/,zl=/^img:/,Dl=/^svguse:/,Nl=/^ion-/,Hl=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,ge=ie({name:"QIcon",props:{...it,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:n}){const{proxy:{$q:l}}=t.getCurrentInstance(),o=at(e),i=t.computed(()=>"q-icon"+(e.left?" on-left":"")+(e.right?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),a=t.computed(()=>{let s,c=e.name;if(c==="none"||!c)return{none:!0};if(l.iconMapFn!==null){const u=l.iconMapFn(c);if(u!==void 0)if(u.icon!==void 0){if(c=u.icon,c==="none"||!c)return{none:!0}}else return{cls:u.cls,content:u.content!==void 0?u.content:" "}}if(Il.test(c)){const[u,p=Jt]=c.split("|");return{svg:!0,viewBox:p,nodes:u.split("&&").map(y=>{const[g,S,P]=y.split("@@");return t.h("path",{style:S,d:g,transform:P})})}}if(zl.test(c))return{img:!0,src:c.slice(4)};if(Dl.test(c)){const[u,p=Jt]=c.split("|");return{svguse:!0,src:u.slice(7),viewBox:p}}let m=" ";const v=c.match($l);if(v!==null)s=Gt[v[1]](c);else if(Hl.test(c))s=c;else if(Nl.test(c))s=`ionicons ion-${l.platform.is.ios?"ios":"md"}${c.slice(3)}`;else if(nn.test(c)){s="notranslate material-symbols";const u=c.match(nn);u!==null&&(c=c.slice(6),s+=tn[u[1]]),m=c}else{s="notranslate material-icons";const u=c.match(Ol);u!==null&&(c=c.slice(2),s+=en[u[1]]),m=c}return{cls:s,content:m}});return()=>{const s={class:i.value,style:o.value,"aria-hidden":"true"};return a.value.none?t.h(e.tag,s,ve(n.default)):a.value.img?t.h(e.tag,s,we(n.default,[t.h("img",{src:a.value.src})])):a.value.svg?t.h(e.tag,s,we(n.default,[t.h("svg",{viewBox:a.value.viewBox||"0 0 24 24"},a.value.nodes)])):a.value.svguse?t.h(e.tag,s,we(n.default,[t.h("svg",{viewBox:a.value.viewBox},[t.h("use",{"xlink:href":a.value.src})])])):(a.value.cls!==void 0&&(s.class+=" "+a.value.cls),t.h(e.tag,s,we(n.default,[a.value.content])))}}}),Wl={size:{type:[String,Number],default:"1em"},color:String};function jl(e){return{cSize:t.computed(()=>e.size in xt?`${xt[e.size]}px`:e.size),classes:t.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const ln=ie({name:"QSpinner",props:{...Wl,thickness:{type:Number,default:5}},setup(e){const{cSize:n,classes:l}=jl(e);return()=>t.h("svg",{class:l.value+" q-spinner-mat",width:n.value,height:n.value,viewBox:"25 25 50 50"},[t.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function qt(e,n){const l=e.style;for(const o in n)l[o]=n[o]}function Ul(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const n=t.unref(e);if(n)return n.$el||n}function Vt(e,n){if(e==null||e.contains(n))return!0;for(let l=e.nextElementSibling;l!==null;l=l.nextElementSibling)if(l.contains(n))return!0;return!1}const ae={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(ae,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function Kl(){}function on(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function he(e){e.stopPropagation()}function de(e){e.cancelable!==!1&&e.preventDefault()}function ee(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function _t(e,n,l){const o=`__q_${n}_evt`;e[o]=[...e[o]??[],...l],l.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],ae[i[3]])})}function an(e,n){const l=`__q_${n}_evt`;e[l]!==void 0&&(e[l].forEach(o=>{o[0].removeEventListener(o[1],e[o[2]],ae[o[3]])}),e[l]=void 0)}function Bt(e){return e!==Object(e)||e.isComposing||e.qKeyEvent}function ke(e,n){return!Bt(e)&&[n].flat().includes(e.keyCode)}function Ql(e,n=250){let l=!1,o;return function(...a){return l||(l=!0,setTimeout(()=>{l=!1},n),o=e.apply(this,a)),o}}function rn(e,n,l,o){l.modifiers.stop&&he(e);const i=l.modifiers.color,a=l.modifiers.center||o===!0,s=document.createElement("span"),c=document.createElement("span"),m=on(e),{left:v,top:u,width:p,height:y}=n.getBoundingClientRect(),g=Math.hypot(p,y),S=g/2,P=`${(p-g)/2}px`,k=a?P:`${m.left-v-S}px`,z=`${(y-g)/2}px`,T=a?z:`${m.top-u-S}px`;c.className="q-ripple__inner",qt(c,{height:`${g}px`,width:`${g}px`,transform:`translate3d(${k},${T},0) scale3d(.2,.2,1)`,opacity:0}),s.className=`q-ripple${i?" text-"+i:""}`,s.setAttribute("dir","ltr"),s.append(c),n.append(s);const b=()=>{s.remove(),clearTimeout(h)};l.abort.push(b);let h=setTimeout(()=>{c.classList.add("q-ripple__inner--enter"),c.style.transform=`translate3d(${P},${z},0) scale3d(1,1,1)`,c.style.opacity=.2,h=setTimeout(()=>{c.classList.remove("q-ripple__inner--enter"),c.classList.add("q-ripple__inner--leave"),c.style.opacity=0,h=setTimeout(()=>{s.remove(),l.abort.splice(l.abort.indexOf(b),1)},275)},250)},50)}function sn(e,{modifiers:n,value:l,arg:o}){const i={...e.cfg.ripple,...n,...l};e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||o,keyCodes:[i.keyCodes||13].flat()}}const un=Fl({name:"ripple",beforeMount(e,n){const l=n.instance.$.appContext.config.globalProperties.$q.config||{};if(l.ripple===!1)return;const o={cfg:l,enabled:n.value!==!1,modifiers:{},abort:[],start(i){o.enabled&&!i.qSkipRipple&&i.type===(o.modifiers.early?"pointerdown":"click")&&rn(i,e,o,i.qKeyEvent===!0)},keystart:Ql(i=>{o.enabled&&!i.qSkipRipple&&ke(i,o.modifiers.keyCodes)&&i.type===`key${o.modifiers.early?"down":"up"}`&&rn(i,e,o,!0)},300)};sn(o,n),e.__qripple=o,_t(o,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,n){if(n.oldValue!==n.value){const l=e.__qripple;l!==void 0&&(l.enabled=n.value!==!1,l.enabled&&Object(n.value)===n.value&&sn(l,n))}},beforeUnmount(e){const n=e.__qripple;n!==void 0&&(n.abort.forEach(l=>{l()}),an(n,"main"),delete e.__qripple)}}),cn={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Xl=Object.keys(cn),Yl={align:{type:String,validator:e=>Xl.includes(e)}};function Zl(e){return t.computed(()=>{const n=e.align===void 0?e.vertical?"stretch":"left":e.align;return`${e.vertical?"items":"justify"}-${cn[n]}`})}function Mt(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:n}=e.$;for(;Object(n)===n;){if(Object(n.proxy)===n.proxy)return n.proxy;n=n.parent}}function dn(e){return e.appContext.config.globalProperties.$router!==void 0}function fn(e){return e.isUnmounted===!0||e.isDeactivated===!0}function mn(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function vn(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function Jl(e,n){for(const l in n){const o=n[l],i=e[l];if(typeof o=="string"){if(o!==i)return!1}else if(!Array.isArray(i)||i.length!==o.length||o.some((a,s)=>a!==i[s]))return!1}return!0}function gn(e,n){return Array.isArray(n)?e.length===n.length&&e.every((l,o)=>l===n[o]):e.length===1&&e[0]===n}function Gl(e,n){return Array.isArray(e)?gn(e,n):Array.isArray(n)?gn(n,e):e===n}function eo(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const l in e)if(!Gl(e[l],n[l]))return!1;return!0}const hn={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},to={...hn,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function pn({fallbackTag:e,useDisableForRouterLinkProps:n=!0}={}){const l=t.getCurrentInstance(),{props:o,proxy:i,emit:a}=l,s=dn(l),c=t.computed(()=>!o.disable&&o.href!==void 0),m=n?t.computed(()=>s&&!o.disable&&!c.value&&o.to!==void 0&&o.to!==null&&o.to!==""):t.computed(()=>s&&!c.value&&o.to!==void 0&&o.to!==null&&o.to!==""),v=t.computed(()=>m.value?T(o.to):null),u=t.computed(()=>v.value!==null),p=t.computed(()=>c.value||u.value),y=t.computed(()=>o.type==="a"||p.value?"a":o.tag||e||"div"),g=t.computed(()=>c.value?{href:o.href,target:o.target}:u.value?{href:v.value.href,target:o.target}:{}),S=t.computed(()=>{if(!u.value)return-1;const{matched:B}=v.value,{length:F}=B,O=B[F-1];if(O===void 0)return-1;const N=i.$route.matched;if(N.length===0)return-1;const X=N.findIndex(vn.bind(null,O));if(X!==-1)return X;const C=mn(B[F-2]);return F>1&&mn(O)===C&&N.at(-1).path!==C?N.findIndex(vn.bind(null,B[F-2])):X}),P=t.computed(()=>u.value&&S.value!==-1&&Jl(i.$route.params,v.value.params)),k=t.computed(()=>P.value&&S.value===i.$route.matched.length-1&&eo(i.$route.params,v.value.params)),z=t.computed(()=>u.value?k.value?` ${o.exactActiveClass} ${o.activeClass}`:o.exact?"":P.value?` ${o.activeClass}`:"":"");function T(B){try{return i.$router.resolve(B)}catch{}return null}function b(B,{returnRouterError:F,to:O=o.to,replace:N=o.replace}={}){if(o.disable)return B.preventDefault(),Promise.resolve(!1);if(B.metaKey||B.altKey||B.ctrlKey||B.shiftKey||B.button!==void 0&&B.button!==0||o.target==="_blank")return Promise.resolve(!1);B.preventDefault();const X=i.$router[N?"replace":"push"](O);return F?X:X.then(()=>{}).catch(()=>{})}function h(B){if(u.value){const F=O=>b(B,O);a("click",B,F),B.defaultPrevented||F()}else a("click",B)}return{hasRouterLink:u,hasHrefLink:c,hasLink:p,linkTag:y,resolvedLink:v,linkIsActive:P,linkIsExactActive:k,linkClass:z,linkAttrs:g,getLink:T,navigateToRouterLink:b,navigateOnClick:h}}const bn={none:0,xs:4,sm:8,md:16,lg:24,xl:32},no={xs:8,sm:10,md:14,lg:20,xl:24},lo=["button","submit","reset"],oo=/[^\s]\/[^\s]/,io=["flat","outline","push","unelevated"];function ao(e,n){return e.flat?"flat":e.outline?"outline":e.push?"push":e.unelevated?"unelevated":n}const ro={...{...it,...hn,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...io.reduce((e,n)=>(e[n]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Yl.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function so(e){const n=at(e,no),l=Zl(e),{hasRouterLink:o,hasLink:i,linkTag:a,linkAttrs:s,navigateOnClick:c}=pn({fallbackTag:"button"}),m=t.computed(()=>{const k=e.fab||e.fabMini?{}:n.value;return e.padding!==void 0?{...k,padding:e.padding.split(/\s+/).map(z=>z in bn?bn[z]+"px":z).join(" "),minWidth:"0",minHeight:"0"}:k}),v=t.computed(()=>e.rounded||e.fab||e.fabMini),u=t.computed(()=>!e.disable&&!e.loading),p=t.computed(()=>u.value?e.tabindex||0:-1),y=t.computed(()=>ao(e,"standard")),g=t.computed(()=>{const k={tabindex:p.value};return i.value?Object.assign(k,s.value):lo.includes(e.type)&&(k.type=e.type),a.value==="a"?(e.disable?k["aria-disabled"]="true":k.href===void 0&&(k.role="button"),!o.value&&oo.test(e.type)&&(k.type=e.type)):e.disable&&(k.disabled="",k["aria-disabled"]="true"),e.loading&&e.percentage!==void 0&&Object.assign(k,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),k}),S=t.computed(()=>{let k;e.color!==void 0?k=e.flat||e.outline?`text-${e.textColor||e.color}`:`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(k=`text-${e.textColor}`);const z=e.round?"round":`rectangle${v.value?" q-btn--rounded":e.square?" q-btn--square":""}`;return`q-btn--${y.value} q-btn--${z}`+(k!==void 0?" "+k:"")+(u.value?" q-btn--actionable q-focusable q-hoverable":e.disable?" disabled":"")+(e.fab?" q-btn--fab":e.fabMini?" q-btn--fab-mini":"")+(e.noCaps?" q-btn--no-uppercase":"")+(e.dense?" q-btn--dense":"")+(e.stretch?" no-border-radius self-stretch":"")+(e.glossy?" glossy":"")+(e.square?" q-btn--square":"")}),P=t.computed(()=>l.value+(e.stack?" column":" row")+(e.noWrap?" no-wrap text-no-wrap":"")+(e.loading?" q-btn__content--hidden":""));return{classes:S,style:m,innerClasses:P,attributes:g,hasLink:i,linkTag:a,navigateOnClick:c,isActionable:u}}const{passiveCapture:ue}=ae;let _e=null,Be=null,Me=null;function Ue(e){ee(e),e.qSkipRipple=!0}const yn=ie({name:"QBtn",props:{...ro,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:n,emit:l}){const{proxy:o}=t.getCurrentInstance(),{classes:i,style:a,innerClasses:s,attributes:c,hasLink:m,linkTag:v,navigateOnClick:u,isActionable:p}=so(e),y=t.ref(null),g=t.ref(null);let S=null,P,k=null,z=null;const T=t.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),b=t.computed(()=>e.disable||e.ripple===!1?!1:{keyCodes:m.value?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),h=t.computed(()=>({center:e.round})),B=t.computed(()=>{const V=Math.max(0,Math.min(100,e.percentage));return V>0?{transition:"transform 0.6s",transform:`translateX(${V-100}%)`}:{}}),F=t.computed(()=>{if(e.loading)return{onMousedown:Ue,onTouchstart:Ue,onClick:Ue,onKeydown:Ue,onKeyup:Ue};if(p.value){const V={onClick:N,onKeydown:X,onMousedown:w};if(o.$q.platform.has.touch){const A=e.onTouchstart!==void 0?"":"Passive";V[`onTouchstart${A}`]=C}return V}return{onClick:ee}}),O=t.computed(()=>({ref:y,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:a.value,...c.value,...F.value}));function N(V){if(y.value!==null){if(V!==void 0){if(V.defaultPrevented)return;const A=document.activeElement;if(e.type==="submit"&&A!==document.body&&!y.value.contains(A)&&!A.contains(y.value)){V.qAvoidFocus||y.value.focus();const U=()=>{var x;z=null,document.removeEventListener("keydown",ee,!0),document.removeEventListener("keyup",U,ue),(x=y.value)==null||x.removeEventListener("blur",U,ue)};z=U,document.addEventListener("keydown",ee,!0),document.addEventListener("keyup",U,ue),y.value.addEventListener("blur",U,ue)}}u(V)}}function X(V){y.value!==null&&(l("keydown",V),ke(V,[13,32])&&Be!==y.value&&(Be!==null&&q(),V.defaultPrevented||(V.qAvoidFocus||y.value.focus(),Be=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("keyup",_,!0),y.value.addEventListener("blur",_,ue)),ee(V)))}function C(V){y.value!==null&&(l("touchstart",V),!V.defaultPrevented&&(_e!==y.value&&(_e!==null&&q(),_e=y.value,S=V.target,S.addEventListener("touchcancel",_,ue),S.addEventListener("touchend",_,ue)),P=!0,k!==null&&clearTimeout(k),k=setTimeout(()=>{k=null,P=!1},200)))}function w(V){y.value!==null&&(V.qSkipRipple=P===!0,l("mousedown",V),!V.defaultPrevented&&Me!==y.value&&(Me!==null&&q(),Me=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("mouseup",_,ue)))}function _(V){if(y.value!==null&&!((V==null?void 0:V.type)==="blur"&&document.activeElement===y.value)){if((V==null?void 0:V.type)==="keyup"){if(Be===y.value&&ke(V,[13,32])){const A=new MouseEvent("click",V);A.qKeyEvent=!0,V.defaultPrevented&&de(A),V.cancelBubble&&he(A),y.value.dispatchEvent(A),ee(V),V.qKeyEvent=!0}l("keyup",V)}q()}}function q(V){var U,x;z==null||z();const A=g.value;!V&&(_e===y.value||Me===y.value)&&A!==null&&A!==document.activeElement&&(A.setAttribute("tabindex",-1),A.focus({preventScroll:!0})),_e===y.value&&(S!==null&&(S.removeEventListener("touchcancel",_,ue),S.removeEventListener("touchend",_,ue)),_e=S=null),Me===y.value&&(document.removeEventListener("mouseup",_,ue),Me=null),Be===y.value&&(document.removeEventListener("keyup",_,!0),(U=y.value)==null||U.removeEventListener("blur",_,ue),Be=null),(x=y.value)==null||x.classList.remove("q-btn--active")}return t.onBeforeUnmount(()=>{q(!0)}),Object.assign(o,{click:V=>{p.value&&N(V)}}),()=>{let V=[];e.icon!==void 0&&V.push(t.h(ge,{name:e.icon,left:!e.stack&&T.value,role:"img"})),T.value&&V.push(t.h("span",{class:"block"},[e.label])),V=we(n.default,V),e.iconRight!==void 0&&!e.round&&V.push(t.h(ge,{name:e.iconRight,right:!e.stack&&T.value,role:"img"}));const A=[t.h("span",{class:"q-focus-helper",ref:g})];return e.loading&&e.percentage!==void 0&&A.push(t.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage?" q-btn__progress--dark":"")},[t.h("span",{class:"q-btn__progress-indicator fit block",style:B.value})])),A.push(t.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+s.value},V)),e.loading!==null&&A.push(t.h(t.Transition,{name:"q-transition--fade"},()=>e.loading?[t.h("span",{key:"loading",class:"absolute-full flex flex-center"},n.loading!==void 0?n.loading():[t.h(ln)])]:null)),t.withDirectives(t.h(v.value,O.value,A),[[un,b.value,void 0,h.value]])}}}),uo={class:"row full-height"},co={class:"col bg-blue-1 column"},fo={class:"bg-green-2 row justify-end items-center",style:{height:"50px"}},mo=t.defineComponent({__name:"LayoutOne",props:{height:{default:"auto"}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("div",{class:"q-ma-sm",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",uo,[l[1]||(l[1]=t.createElementVNode("div",{class:"bg-orange-1 text-center",style:{width:"300px"}}," 左边菜单宽度固定(水平居中) ",-1)),t.createElementVNode("div",co,[l[0]||(l[0]=t.createElementVNode("div",{class:"col q-pa-md"},[t.createElementVNode("div",{class:"bg-yellow-2 flex flex-center"}," 文本水平、垂直居中 "),t.createElementVNode("div",{class:"q-mt-md"}," 主内容区 ")],-1)),t.createElementVNode("div",fo,[t.createVNode(yn,{class:"q-mr-md",color:"primary",label:"返回"})])])])],4))}});function vo(){if(typeof crypto>"u")return()=>{throw new Error("[Quasar uid()] Secure RNG not available. Cannot generate collision-resistant UUID.")};if(crypto.randomUUID)return()=>crypto.randomUUID();const e=Array.from({length:256},(o,i)=>(i+256).toString(16).slice(1));let n,l;return()=>{(n===void 0||l+16>4096)&&(l=0,n=new Uint8Array(4096),crypto.getRandomValues(n));const o=l;return l+=16,n[o+6]=n[o+6]&15|64,n[o+8]=n[o+8]&63|128,e[n[o]]+e[n[o+1]]+e[n[o+2]]+e[n[o+3]]+"-"+e[n[o+4]]+e[n[o+5]]+"-"+e[n[o+6]]+e[n[o+7]]+"-"+e[n[o+8]]+e[n[o+9]]+"-"+e[n[o+10]]+e[n[o+11]]+e[n[o+12]]+e[n[o+13]]+e[n[o+14]]+e[n[o+15]]}}const Rt=vo(),Ke=t.ref(!1);let Tt;const go=512;function ho(e){return typeof e=="string"?e.slice(0,go).toLowerCase():""}const po=/(?:^|\s)version\/([\w.]+)/,bo=/(?:^|\s)applewebkit\/[\w.]+/,yo=/(?:^|\s)safari\/[\w.]+/;function wo(e){const n=po.exec(e);return n!==null&&bo.test(e)&&yo.test(e)?{browser:"safari",version:n[1]}:null}const ko=/(?:^|\s)opera\/([\w.]+)/,So=/(?:^|\s)version\/([\w.]+)/;function xo(e){const n=ko.exec(e);if(n===null)return null;const l=So.exec(e);return{browser:"opera",version:(l==null?void 0:l[1])||n[1]}}const Co=/(edg|edge|edga|edgios)\/([\w.]+)/,Eo=/(opr)[\/]([\w.]+)/,qo=/(vivaldi)[\/]([\w.]+)/,Vo=/(chrome|crios)[\/]([\w.]+)/,_o=/(firefox|fxios)[\/]([\w.]+)/,Bo=/(webkit)[\/]([\w.]+)/;function Mo(e,n){let l=Co.exec(e)||Eo.exec(e)||qo.exec(e)||Vo.exec(e);if(l===null){const o=wo(e);if(o!==null)return{...o,platform:n[0]||""};if(l=_o.exec(e)||Bo.exec(e),l===null){const i=xo(e);if(i!==null)return{...i,platform:n[0]||""};l=[]}}return{browser:l[5]||l[3]||l[1]||"",version:l[4]||l[2]||"0",platform:n[0]||""}}const Ro=/(ipad)/,To=/(ipod)/,Fo=/(iphone)/,Ao=/(windows phone)/,Lo=/(kindle)/,Po=/(silk)/,$o=/(android)/,Oo=/(win)/,Io=/(mac)/,zo=/(linux)/,Do=/(cros)/;function No(e){return Ro.exec(e)||To.exec(e)||Ao.exec(e)||Fo.exec(e)||Lo.exec(e)||Po.exec(e)||$o.exec(e)||Oo.exec(e)||Io.exec(e)||zo.exec(e)||Do.exec(e)||[]}const wn="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Ho(e){const n=ho(e),l=No(n),o=Mo(n,l),i={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,silk:!1};o.browser&&(i[o.browser]=!0,i.version=o.version,i.versionNumber=Number.parseInt(o.version,10)),o.platform&&(i[o.platform]=!0),i["windows phone"]&&(i.winphone=!0,delete i["windows phone"]);const a=i.android||i.ios||i.ipad||i.iphone||i.ipod||i.kindle||i.silk||i.winphone;if(a===!0||n.includes("mobile")?i.mobile=!0:i.desktop=!0,i.edga||i.edgios||i.edg?(i.edge=!0,o.browser="edge"):i.crios?(i.chrome=!0,o.browser="chrome"):i.fxios&&(i.firefox=!0,o.browser="firefox"),(i.ipod||i.ipad||i.iphone)&&(i.ios=!0),i.vivaldi&&(o.browser="vivaldi",i.vivaldi=!0),(i.chrome||i.opr||i.safari||i.vivaldi||i.mobile&&!i.ios&&!a)&&(i.webkit=!0),i.opr&&(o.browser="opera",i.opera=!0),i.safari&&(i.android?(o.browser="android",i.android=!0):i.kindle?(o.browser="kindle",i.kindle=!0):i.silk&&(o.browser="silk",i.silk=!0)),i.name=o.browser,i.platform=o.platform,n.includes("electron"))i.electron=!0;else if(document.location.href.includes("-extension://"))i.bex=!0;else{if(window.Capacitor!==void 0?(i.capacitor=!0,i.nativeMobile=!0,i.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(i.cordova=!0,i.nativeMobile=!0,i.nativeMobileWrapper="cordova"),Ke.value&&(Tt={is:{...i}}),wn&&i.mac&&(i.desktop&&i.safari||i.nativeMobile&&!i.android&&!i.ios&&!i.ipad)){delete i.mac,delete i.desktop;const s=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(i,{mobile:!0,ios:!0,platform:s,[s]:!0})}!i.mobile&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete i.desktop,i.mobile=!0)}return i}const kn=navigator.userAgent||navigator.vendor||window.opera,Wo={has:{touch:!1,webStorage:!1},within:{iframe:!1}},fe={userAgent:kn,is:Ho(kn),has:{touch:wn},within:{iframe:window.self!==window.top}},Ft={install(e){const{$q:n}=e;Ke.value?(e.onSSRHydrated.push(()=>{Object.assign(n.platform,fe),Ke.value=!1}),n.platform=t.reactive(this)):n.platform=this}};{let e;je(fe.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(Ft,fe),Ke.value&&(Object.assign(Ft,Tt,Wo),Tt=null)}function jo(e){return e??null}function Sn(e,n){return e??(n?`f_${Rt()}`:null)}function Uo({getValue:e,required:n=!0}={}){if(Ke.value){const l=e!==void 0?t.ref(jo(e())):t.ref(null);return n&&l.value===null&&t.onMounted(()=>{l.value=`f_${Rt()}`}),e!==void 0&&t.watch(e,o=>{l.value=Sn(o,n)}),l}return e!==void 0?t.computed(()=>Sn(e(),n)):t.ref(`f_${Rt()}`)}const xn=/^on[A-Z]/;function Ko(){const e=t.getCurrentInstance(),{attrs:n}=e,l={listeners:t.ref({}),attributes:t.ref({})};function o(){const i={},a={};for(const s in n)s!=="class"&&s!=="style"&&!xn.test(s)&&(i[s]=n[s]);for(const s in e.vnode.props)xn.test(s)&&(a[s]=e.vnode.props[s]);l.attributes.value=i,l.listeners.value=a}return t.onBeforeUpdate(o),o(),l}const Qe={dark:{type:Boolean,default:null}};function Xe(e,n){return t.computed(()=>e.dark===null?n.dark.isActive:e.dark)}const Qo="_q_fo_";function Xo({validate:e,resetValidation:n,requiresQForm:l}){const o=t.inject(Qo,!1);if(o!==!1){const{props:i,proxy:a}=t.getCurrentInstance();Object.assign(a,{validate:e,resetValidation:n}),t.watch(()=>i.disable,s=>{s?(typeof n=="function"&&n(),o.unbindComponent(a)):o.bindComponent(a)}),t.onMounted(()=>{i.disable||o.bindComponent(a)}),t.onBeforeUnmount(()=>{i.disable||o.unbindComponent(a)})}else l&&console.error("Parent QForm not found on useFormChild()!")}const Cn=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,En=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,qn=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,rt=/^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])\)$/,st=/^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(\.[\d]+)?|1(\.0+)?)\)$/,Yo=/^-?[\d]+\/(0[1-9]|1[0-2])\/(0[1-9]|[12]\d|3[01])$/,Zo=/^([0-1]?\d|2[0-3]):[0-5]\d$/,Jo=/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/,Go=/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/,ei=/^(([^<>()[\]\\.,;:\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,}))$/,At={date:e=>Yo.test(e),time:e=>Zo.test(e),fulltime:e=>Jo.test(e),timeOrFulltime:e=>Go.test(e),email:e=>ei.test(e),hexColor:e=>Cn.test(e),hexaColor:e=>En.test(e),hexOrHexaColor:e=>qn.test(e),rgbColor:e=>rt.test(e),rgbaColor:e=>st.test(e),rgbOrRgbaColor:e=>rt.test(e)||st.test(e),hexOrRgbColor:e=>Cn.test(e)||rt.test(e),hexaOrRgbaColor:e=>En.test(e)||st.test(e),anyColor:e=>qn.test(e)||rt.test(e)||st.test(e)};function Vn(e,n=250,l){let o=null;function i(...a){const s=()=>{o=null,e.apply(this,a)};o!==null&&clearTimeout(o),o=setTimeout(s,n)}return i.cancel=()=>{o!==null&&(clearTimeout(o),o=null)},i}const ti=[!0,!1,"ondemand"],ni={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>ti.includes(e)}};function li(e,n){const{props:l,proxy:o}=t.getCurrentInstance(),i=t.ref(!1),a=t.ref(null),s=t.ref(!1);Xo({validate:P,resetValidation:S});let c=0,m;const v=t.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),u=t.computed(()=>!l.disable&&v.value&&!n.value),p=t.computed(()=>l.error===!0||i.value),y=t.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:a.value);t.watch(()=>l.modelValue,()=>{s.value=!0,u.value&&l.lazyRules===!1&&k()});function g(){l.lazyRules!=="ondemand"&&u.value&&s.value&&k()}t.watch(()=>l.reactiveRules,z=>{z?m===void 0&&(m=t.watch(()=>l.rules,g,{immediate:!0,deep:!0})):m!==void 0&&(m(),m=void 0)},{immediate:!0}),t.watch(()=>l.lazyRules,g),t.watch(e,z=>{z?s.value=!0:u.value&&l.lazyRules!=="ondemand"&&k()});function S(){c++,n.value=!1,s.value=!1,i.value=!1,a.value=null,k.cancel()}function P(z=l.modelValue){if(l.disable||!v.value)return!0;const T=++c,b=n.value?()=>{}:()=>{s.value=!0},h=(F,O)=>{F&&b(),i.value=F,a.value=O||null,n.value=!1},B=[];for(let F=0;F<l.rules.length;F++){const O=l.rules[F];let N;if(typeof O=="function"?N=O(z,At):typeof O=="string"&&(At[O]===void 0?(console.error(`Unknown validation pattern rule: "${O}"`),N=!1):N=At[O](z)),N===!1||typeof N=="string")return h(!0,N),!1;N!==!0&&N!==void 0&&B.push(N)}return B.length===0?(h(!1),!0):(n.value=!0,Promise.all(B).then(F=>{if(F===void 0||!Array.isArray(F)||F.length===0)return T===c&&h(!1),!0;const O=F.find(N=>N===!1||typeof N=="string");return T===c&&h(O!==void 0,O),O===void 0},F=>(T===c&&(console.error(F),h(!0)),!1)))}const k=Vn(P,0);return t.onBeforeUnmount(()=>{m==null||m(),k.cancel()}),Object.assign(o,{resetValidation:S,validate:P}),je(o,"hasError",()=>p.value),{isDirtyModel:s,hasRules:v,hasError:p,errorMessage:y,validate:P,resetValidation:S}}let Re=[],Ye=[];function _n(e){Ye=Ye.filter(n=>n!==e)}function oi(e){_n(e),Ye.push(e)}function Bn(e){_n(e),Ye.length===0&&Re.length!==0&&(Re.at(-1)(),Re=[])}function Te(e){Ye.length===0?e():Re.push(e)}function Mn(e){Re=Re.filter(n=>n!==e)}function Ze(e){return e!=null&&String(e).length!==0}const ut={...{...Qe,...ni,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},maxlength:[Number,String]},Lt=["update:modelValue","clear","focus","blur"];function Pt({requiredForAttr:e=!0,tagProp:n,changeEvent:l=!1}={}){const{props:o,proxy:i}=t.getCurrentInstance(),a=Xe(o,i.$q),s=Uo({required:e,getValue:()=>o.for});return{requiredForAttr:e,changeEvent:l,tag:n?t.computed(()=>o.tag):{value:"label"},isDark:a,editable:t.computed(()=>!o.disable&&!o.readonly),innerLoading:t.ref(!1),focused:t.ref(!1),hasPopupOpen:!1,splitAttrs:Ko(),targetUid:s,rootRef:t.ref(null),targetRef:t.ref(null),controlRef:t.ref(null)}}function ct(e,n){return n===null?null:t.h("div",{key:e,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},n)}function $t(e){const{props:n,emit:l,slots:o,attrs:i,proxy:a}=t.getCurrentInstance(),{$q:s}=a;let c=null;e.hasValue===void 0&&(e.hasValue=t.computed(()=>Ze(n.modelValue))),e.emitValue===void 0&&(e.emitValue=x=>{l("update:modelValue",x)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:X,onFocusout:C}),Object.assign(e,{clearValue:w,onControlFocusin:X,onControlFocusout:C,focus:O}),e.computedCounter===void 0&&(e.computedCounter=t.computed(()=>{if(n.counter){const x=typeof n.modelValue=="string"||typeof n.modelValue=="number"?String(n.modelValue).length:Array.isArray(n.modelValue)?n.modelValue.length:0,R=n.maxlength!==void 0?n.maxlength:n.maxValues;return x+(R!==void 0?" / "+R:"")}}));const{isDirtyModel:m,hasRules:v,hasError:u,errorMessage:p,resetValidation:y}=li(e.focused,e.innerLoading),g=e.floatingLabel!==void 0?t.computed(()=>n.stackLabel||e.focused.value||e.floatingLabel.value):t.computed(()=>n.stackLabel||e.focused.value||e.hasValue.value),S=t.computed(()=>n.bottomSlots||n.hint!==void 0||v.value||n.counter||n.error!==null),P=t.computed(()=>n.filled?"filled":n.outlined?"outlined":n.borderless?"borderless":n.standout?"standout":"standard"),k=t.computed(()=>`q-field row no-wrap items-start q-field--${P.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(n.rounded?" q-field--rounded":"")+(n.square?" q-field--square":"")+(g.value?" q-field--float":"")+(T.value?" q-field--labeled":"")+(n.dense?" q-field--dense":"")+(n.itemAligned?" q-field--item-aligned q-item-type":"")+(e.isDark.value?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value?" q-field--focused":"")+(u.value?" q-field--error":"")+(u.value||e.focused.value?" q-field--highlighted":"")+(!n.hideBottomSpace&&S.value?" q-field--with-bottom":"")+(n.disable?" q-field--disabled":n.readonly?" q-field--readonly":"")),z=t.computed(()=>"q-field__control relative-position row no-wrap"+(n.bgColor!==void 0?` bg-${n.bgColor}`:"")+(u.value?" text-negative":typeof n.standout=="string"&&n.standout.length!==0&&e.focused.value?` ${n.standout}`:n.color!==void 0?` text-${n.color}`:"")),T=t.computed(()=>n.labelSlot||n.label!==void 0),b=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(n.labelColor!==void 0&&!u.value?` text-${n.labelColor}`:"")),h=t.computed(()=>je({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:g.value,modelValue:n.modelValue,emitValue:e.emitValue},"field",()=>e.rootRef.value)),B=t.computed(()=>{const x={};return e.targetUid.value&&(x.for=e.targetUid.value),n.disable&&(x["aria-disabled"]="true"),x});function F(){var Y;const x=document.activeElement;let R=(Y=e.targetRef)==null?void 0:Y.value;R&&(x===null||x.id!==e.targetUid.value)&&(R.hasAttribute("tabindex")||(R=R.querySelector("[tabindex]")),R!==x&&(R==null||R.focus({preventScroll:!0})))}function O(){Te(F)}function N(){Mn(F);const x=document.activeElement;x!==null&&e.rootRef.value.contains(x)&&x.blur()}function X(x){c!==null&&(clearTimeout(c),c=null),e.editable.value&&!e.focused.value&&(e.focused.value=!0,l("focus",x))}function C(x,R){c!==null&&clearTimeout(c),c=setTimeout(()=>{c=null,!(document.hasFocus()&&(e.hasPopupOpen||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)))&&(e.focused.value&&(e.focused.value=!1,l("blur",x)),R==null||R())},0)}function w(x){var R,Y;ee(x),s.platform.is.mobile?e.rootRef.value.contains(document.activeElement)&&document.activeElement.blur():(((R=e.targetRef)==null?void 0:R.value)||e.rootRef.value).focus(),n.type==="file"&&(e.inputRef.value.value=null),(Y=e.onClear)==null||Y.call(e),l("update:modelValue",null),e.changeEvent&&l("change",null),l("clear",n.modelValue),t.nextTick(()=>{const Z=m.value;y(),m.value=Z})}function _(x){[13,32].includes(x.keyCode)&&w(x)}function q(){const x=[];return o.prepend!==void 0&&x.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:de},o.prepend())),x.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},V())),u.value&&!n.noErrorIcon&&x.push(ct("error",[t.h(ge,{name:s.iconSet.field.error,color:"negative"})])),n.loading||e.innerLoading.value?x.push(ct("inner-loading-append",o.loading!==void 0?o.loading():[t.h(ln,{color:n.color})])):n.clearable&&e.hasValue.value&&e.editable.value&&x.push(ct("inner-clearable-append",[t.h(ge,{class:"q-field__focusable-action",name:n.clearIcon||s.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":s.lang.label.clear,onKeyup:_,onClick:w})])),o.append!==void 0&&x.push(t.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:de},o.append())),e.getInnerAppend!==void 0&&x.push(ct("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&x.push(e.getControlChild()),x}function V(){const x=[];return n.prefix!==void 0&&n.prefix!==null&&x.push(t.h("div",{class:"q-field__prefix no-pointer-events row items-center"},n.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value&&x.push(e.getShadowControl()),T.value&&x.push(t.h("div",{class:b.value},ve(o.label,n.label))),e.getControl!==void 0?x.push(e.getControl()):o.rawControl!==void 0?x.push(o.rawControl()):o.control!==void 0&&x.push(t.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":n.autofocus||void 0},o.control(h.value))),n.suffix!==void 0&&n.suffix!==null&&x.push(t.h("div",{class:"q-field__suffix no-pointer-events row items-center"},n.suffix)),x.concat(ve(o.default))}function A(){let x,R;u.value?p.value!==null?(x=[t.h("div",{role:"alert"},p.value)],R=`q--slot-error-${p.value}`):(x=ve(o.error),R="q--slot-error"):(!n.hideHint||e.focused.value)&&(n.hint!==void 0?(x=[t.h("div",n.hint)],R=`q--slot-hint-${n.hint}`):(x=ve(o.hint),R="q--slot-hint"));const Y=n.counter||o.counter!==void 0;if(n.hideBottomSpace&&!Y&&x===void 0)return;const Z=t.h("div",{key:R,class:"q-field__messages col"},x);return t.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(n.hideBottomSpace?"stale":"animated"),onClick:de},[n.hideBottomSpace?Z:t.h(t.Transition,{name:"q-transition--field-message"},()=>Z),Y?t.h("div",{class:"q-field__counter"},o.counter!==void 0?o.counter():e.computedCounter.value):null])}let U=!1;return t.onDeactivated(()=>{U=!0}),t.onActivated(()=>{U&&n.autofocus&&a.focus()}),n.autofocus&&t.onMounted(()=>{a.focus()}),t.onBeforeUnmount(()=>{c!==null&&clearTimeout(c)}),Object.assign(a,{focus:O,blur:N}),function(){const R=e.getControl===void 0&&o.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":n.autofocus||void 0,...B.value}:B.value;return t.h(e.tag.value,{ref:e.rootRef,class:[k.value,i.class],style:i.style,...R},[o.before!==void 0?t.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:de},o.before()):null,t.h("div",{class:"q-field__inner relative-position col self-stretch"},[t.h("div",{ref:e.controlRef,class:z.value,tabindex:-1,...e.controlEvents},q()),S.value?A():null]),o.after!==void 0?t.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:de},o.after()):null])}}const Rn={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},{tokenMap:Tn,tokenKeys:ii}=Fn({"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}});function Fn(e){const n=Object.keys(e),l={};return n.forEach(o=>{const i=e[o];l[o]={...i,regex:new RegExp(i.pattern)}}),{tokenMap:l,tokenKeys:n}}function An(e){return new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+e.join("")+"])|(.)","g")}const Ln=/[.*+?^${}()|[\]\\]/g,ai=An(ii),le=String.fromCodePoint(1),ri={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean,maskTokens:Object};function si(e,n,l,o){let i,a,s,c,m,v;const u=t.computed(()=>{if(e.maskTokens===void 0||e.maskTokens===null)return{tokenMap:Tn,tokenRegexMask:ai};const{tokenMap:C}=Fn(e.maskTokens),w={...Tn,...C};return{tokenMap:w,tokenRegexMask:An(Object.keys(w))}}),p=t.ref(null),y=t.ref(S());function g(){return e.autogrow||["textarea","text","search","url","tel","password"].includes(e.type)}t.watch(()=>e.type+e.autogrow,k),t.watch(()=>e.mask,C=>{if(C!==void 0)z(y.value,!0);else{const w=N(y.value);k(),e.modelValue!==w&&n("update:modelValue",w)}}),t.watch(()=>e.fillMask+e.reverseFillMask,()=>{p.value&&z(y.value,!0)}),t.watch(()=>e.unmaskedValue,()=>{p.value&&z(y.value)}),t.watch(()=>e.maskTokens,()=>{p.value&&z(y.value,!0)},{deep:!0});function S(){if(k(),p.value){const C=F(N(e.modelValue));return e.fillMask!==!1?X(C):C}return e.modelValue}function P(C){if(C<i.length)return i.slice(-C);let w="",_=i;const q=_.indexOf(le);if(q!==-1){for(let V=C-_.length;V>0;V--)w+=le;_=_.slice(0,q)+w+_.slice(q)}return _}function k(){if(p.value=e.mask!==void 0&&e.mask.length!==0&&g(),!p.value){c=void 0,i="",a="";return}const C=Rn[e.mask]===void 0?e.mask:Rn[e.mask],w=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",_=w.replace(Ln,String.raw`\$&`),q=[],V=[],A=[];let U=e.reverseFillMask,x="",R="";C.replace(u.value.tokenRegexMask,(E,H,K,I,$)=>{if(I!==void 0){const f=u.value.tokenMap[I];A.push(f),R=f.negate,U&&(V.push("(?:"+R+"+)?("+f.pattern+"+)?(?:"+R+"+)?("+f.pattern+"+)?"),U=!1),V.push("(?:"+R+"+)?("+f.pattern+")?");return}if(K!==void 0)x="\\"+(K==="\\"?"":K),A.push(K);else{const f=H!==void 0?H:$;x=f==="\\"?String.raw`\\\\`:f.replace(Ln,String.raw`\\$&`),A.push(f)}q.push("([^"+x+"]+)?"+x+"?")});const Y=new RegExp("^"+q.join("")+"("+(x===""?".":"[^"+x+"]")+"+)?"+(x===""?"":"["+x+"]*")+"$"),Z=V.length-1,d=V.map((E,H)=>H===0&&e.reverseFillMask?new RegExp("^"+_+"*"+E):H===Z?new RegExp("^"+E+"("+(R===""?".":R)+"+)?"+(e.reverseFillMask?"$":_+"*")):new RegExp("^"+E));s=A,c=E=>{const H=Y.exec(e.reverseFillMask?E:E.slice(0,A.length+1));H!==null&&(E=H.slice(1).join(""));const K=[],I=d.length;for(let $=0,f=E;$<I;$++){const W=d[$].exec(f);if(W===null)break;f=f.slice(W.shift().length),K.push(...W)}return K.length!==0?K.join(""):E},i=A.map(E=>typeof E=="string"?E:le).join(""),a=i.split(le).join(w)}function z(C,w,_){const q=o.value,V=(q==null?void 0:q.selectionEnd)??0,A=q===null?0:q.value.length-V,U=N(C);w===!0&&k();const x=F(U,w),R=e.fillMask!==!1?X(x):x,Y=y.value!==R;q!==null&&q.value!==R&&(q.value=R),Y&&(y.value=R),q!==null&&document.activeElement===q&&t.nextTick(()=>{if(R===a){const d=e.reverseFillMask?a.length:0;q.setSelectionRange(d,d,"forward");return}if(_==="insertFromPaste"&&!e.reverseFillMask){const d=q.selectionEnd;let E=V-1;for(let H=m;H<=E&&H<d;H++)i[H]!==le&&E++;b.right(q,E);return}if(["deleteContentBackward","deleteContentForward"].includes(_)){const d=e.reverseFillMask?V===0?R.length>x.length?1:0:Math.max(0,R.length-(R===a?0:Math.min(x.length,A)+1))+1:V;q.setSelectionRange(d,d,"forward");return}if(e.reverseFillMask)if(Y){const d=Math.max(0,R.length-(R===a?0:Math.min(x.length,A+1)));d===1&&V===1?q.setSelectionRange(d,d,"forward"):b.rightReverse(q,d)}else{const d=R.length-A;q.setSelectionRange(d,d,"backward")}else if(Y){const d=Math.max(0,i.indexOf(le),Math.min(x.length,V)-1);b.right(q,d)}else{const d=V-1;b.right(q,d)}});const Z=e.unmaskedValue?N(R):R;String(e.modelValue)!==Z&&(e.modelValue!==null||Z!=="")&&l(Z,!0)}function T(C,w,_){const q=F(N(C.value));w=Math.max(0,i.indexOf(le),Math.min(q.length,w)),m=w,C.setSelectionRange(w,_,"forward")}const b={left(C,w){const _=!i.slice(w-1).includes(le);let q=Math.max(0,w-1);for(;q>=0;q--)if(i[q]===le){w=q,_&&w++;break}if(q<0&&i[w]!==void 0&&i[w]!==le)return b.right(C,0);w>=0&&C.setSelectionRange(w,w,"backward")},right(C,w){const _=C.value.length;let q=Math.min(_,w+1);for(;q<=_;q++)if(i[q]===le){w=q;break}else i[q-1]===le&&(w=q);if(q>_&&i[w-1]!==void 0&&i[w-1]!==le)return b.left(C,_);C.setSelectionRange(w,w,"forward")},leftReverse(C,w){const _=P(C.value.length);let q=Math.max(0,w-1);for(;q>=0;q--)if(_[q-1]===le){w=q;break}else if(_[q]===le&&(w=q,q===0))break;if(q<0&&_[w]!==void 0&&_[w]!==le)return b.rightReverse(C,0);w>=0&&C.setSelectionRange(w,w,"backward")},rightReverse(C,w){const _=C.value.length,q=P(_),V=!q.slice(0,w+1).includes(le);let A=Math.min(_,w+1);for(;A<=_;A++)if(q[A-1]===le){w=A,w>0&&V&&w--;break}if(A>_&&q[w-1]!==void 0&&q[w-1]!==le)return b.leftReverse(C,_);C.setSelectionRange(w,w,"forward")}};function h(C){n("click",C),v=void 0}function B(C){if(n("keydown",C),Bt(C)||C.altKey)return;const w=o.value,_=w.selectionStart,q=w.selectionEnd;if(C.shiftKey||(v=void 0),C.keyCode===37||C.keyCode===39){C.shiftKey&&v===void 0&&(v=w.selectionDirection==="forward"?_:q);const V=b[(C.keyCode===39?"right":"left")+(e.reverseFillMask?"Reverse":"")];if(C.preventDefault(),V(w,v===_?q:_),C.shiftKey){const A=w.selectionStart;w.setSelectionRange(Math.min(v,A),Math.max(v,A),"forward")}}else C.keyCode===8&&!e.reverseFillMask&&_===q?(b.left(w,_),w.setSelectionRange(w.selectionStart,q,"backward")):C.keyCode===46&&e.reverseFillMask&&_===q&&(b.rightReverse(w,q),w.setSelectionRange(_,w.selectionEnd,"forward"))}function F(C,w){if(C==null||C==="")return"";if(e.reverseFillMask)return O(C,w);const _=s;let q=0,V="";for(let A=0;A<_.length;A++){const U=C[q],x=_[A];if(typeof x=="string")V+=x,w===!0&&U===x&&q++;else if(U!==void 0&&x.regex.test(U))V+=x.transform!==void 0?x.transform(U):U,q++;else return V}return V}function O(C,w){const _=s,q=i.indexOf(le);let V=C.length-1,A="";for(let U=_.length-1;U>=0&&V!==-1;U--){const x=_[U];let R=C[V];if(typeof x=="string")A=x+A,w===!0&&R===x&&V--;else if(R!==void 0&&x.regex.test(R))do A=(x.transform!==void 0?x.transform(R):R)+A,V--,R=C[V];while(q===U&&R!==void 0&&x.regex.test(R));else return A}return A}function N(C){return typeof C!="string"||c===void 0?typeof C=="number"?c(String(C)):C:c(C)}function X(C){return a.length-C.length<=0?C:e.reverseFillMask&&C.length!==0?a.slice(0,-C.length)+C:C+a.slice(C.length)}return{innerValue:y,hasMask:p,moveCursorForPaste:T,updateMaskValue:z,onMaskedKeydown:B,onMaskedClick:h}}const Ot={name:String};function ui(e={}){return(n,l,o)=>{n[l](t.h("input",{class:"hidden"+(o||""),...e.value}))}}function Pn(e){return t.computed(()=>e.name||e.for)}function ci(e,n){function l(){const o=e.modelValue;try{const i="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(o)===o&&("length"in o?[...o]:[o]).forEach(a=>{i.items.add(a)}),{files:i.files}}catch{return{files:void 0}}}return t.computed(()=>{if(e.type==="file")return l()})}const di=/[\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFF9F\u4E00-\u9FAF\u3400-\u4DBF]/,fi=/[\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,mi=/[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]/,vi=/[a-z0-9_ -]$/i;function $n(e){return function(l){if(l.type==="compositionend"||l.type==="change"){if(!l.target.qComposing)return;l.target.qComposing=!1,e(l)}else l.type==="compositionupdate"&&!l.target.qComposing&&typeof l.data=="string"&&(fe.is.firefox?!vi.test(l.data):di.test(l.data)||fi.test(l.data)||mi.test(l.data))&&(l.target.qComposing=!0)}}const Je=ie({name:"QInput",inheritAttrs:!1,props:{...ut,...ri,...Ot,modelValue:[String,Number,FileList],modelModifiers:Object,shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Lt,"paste","change","keydown","click","animationend"],setup(e,{emit:n,attrs:l}){const{proxy:o}=t.getCurrentInstance(),{$q:i}=o,a={};let s=Number.NaN,c=!1,m=!1,v=null,u;const p=t.ref(null),y=Pn(e),{innerValue:g,hasMask:S,moveCursorForPaste:P,updateMaskValue:k,onMaskedKeydown:z,onMaskedClick:T}=si(e,n,Y,p),b=ci(e),h=t.computed(()=>Ze(g.value)),B=$n(x);function F(f){if(S.value&&f.type==="compositionstart"){f.target.qComposing=!0;return}B(f)}const O=Pt({changeEvent:!0}),N=t.computed(()=>e.type==="textarea"||e.autogrow),X=t.computed(()=>N.value||["text","search","url","tel","password"].includes(e.type)),C=t.computed(()=>{const f={...O.splitAttrs.listeners.value,onInput:x,onPaste:U,onChange:H,onBlur:K,onFocus:he};return f.onCompositionstart=f.onCompositionupdate=f.onCompositionend=F,S.value&&(f.onKeydown=z,f.onClick=T),e.autogrow&&(f.onAnimationend=R),f}),w=t.computed(()=>{const f={tabindex:0,"data-autofocus":e.autofocus||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:y.value,...O.splitAttrs.attributes.value,id:O.targetUid.value,maxlength:e.maxlength,disabled:e.disable,readonly:e.readonly};return N.value||(f.type=e.type),e.autogrow&&(f.rows=1),f});t.watch(()=>e.type,()=>{p.value&&(p.value.value=e.modelValue)}),t.watch(()=>e.modelValue,f=>{var W;if(v!==null&&(Z(),c=!1,m=!1,delete a.value),S.value){if(m&&(m=!1,String(f)===s))return;k(f)}else g.value!==f&&(g.value=f,e.type==="number"&&Object.hasOwn(a,"value")&&(c?c=!1:delete a.value),((W=e.modelModifiers)==null?void 0:W.trim)===!0&&Object.hasOwn(a,"value")&&(typeof a.value!="string"||a.value.trim()!==f)&&delete a.value);e.autogrow&&t.nextTick(E)}),t.watch(()=>e.autogrow,f=>{f?t.nextTick(E):p.value!==null&&l.rows>0&&(p.value.style.height="auto")}),t.watch(()=>e.dense,()=>{e.autogrow&&t.nextTick(E)});function _(){const f=document.activeElement;p.value!==null&&p.value!==f&&(f===null||f.id!==O.targetUid.value)&&p.value.focus({preventScroll:!0})}function q(){Te(_)}function V(){Mn(_);const f=document.activeElement;f!==null&&O.rootRef.value.contains(f)&&f.blur()}function A(){var f;(f=p.value)==null||f.select()}function U(f){if(S.value&&e.reverseFillMask!==!0){const W=f.target;P(W,W.selectionStart,W.selectionEnd)}n("paste",f)}function x(f){var j;if(!f||!f.target)return;if(e.type==="file"){n("update:modelValue",f.target.files);return}const W=f.target.value;if(f.target.qComposing){a.value=W;return}if(S.value)k(W,!1,f.inputType);else if(((j=e.modelModifiers)==null?void 0:j.trim)===!0&&(a.value=W),Y(W),X.value&&f.target===document.activeElement){const{selectionStart:D,selectionEnd:oe}=f.target;D!==void 0&&oe!==void 0&&t.nextTick(()=>{f.target===document.activeElement&&W.indexOf(f.target.value)===0&&f.target.setSelectionRange(D,oe)})}e.autogrow&&E()}function R(f){n("animationend",f),E()}function Y(f,W){u=()=>{var j;v=null,e.type!=="number"&&(((j=e.modelModifiers)==null?void 0:j.trim)!==!0||S.value)&&Object.hasOwn(a,"value")&&delete a.value,e.modelValue!==f&&s!==f&&(s=f,W===!0&&(m=!0),n("update:modelValue",f),t.nextTick(()=>{s===f&&(s=Number.NaN)})),u=void 0},e.type==="number"&&(c=!0,a.value=f),e.debounce!==void 0?(v!==null&&clearTimeout(v),a.value=f,v=setTimeout(u,e.debounce)):u()}function Z(){v!==null&&(clearTimeout(v),v=null),u=void 0}function d(){Z(),c=!1,m=!1,delete a.value}function E(){requestAnimationFrame(()=>{const f=p.value;if(f!==null){const W=f.parentNode.style,{scrollTop:j}=f,{overflowY:D,maxHeight:oe}=i.platform.is.firefox?{}:window.getComputedStyle(f),be=D!==void 0&&D!=="scroll";be&&(f.style.overflowY="hidden"),W.marginBottom=f.scrollHeight-1+"px",f.style.height="1px",f.style.height=f.scrollHeight+"px",be&&(f.style.overflowY=Number.parseInt(oe,10)<f.scrollHeight?"auto":"hidden"),W.marginBottom="",f.scrollTop=j}})}function H(f){F(f),v!==null&&(clearTimeout(v),v=null),u==null||u(),n("change",f.target.value)}function K(f){f!==void 0&&he(f),v!==null&&(clearTimeout(v),v=null),u==null||u(),c=!1,m=!1,delete a.value,e.type!=="file"&&setTimeout(()=>{p.value!==null&&(p.value.value=g.value!==void 0?g.value:"")},0)}function I(){return Object.hasOwn(a,"value")?a.value:g.value!==void 0?g.value:""}t.onBeforeUnmount(()=>{K()}),t.onMounted(()=>{e.autogrow&&E()}),Object.assign(O,{innerValue:g,fieldClass:t.computed(()=>`q-${N.value?"textarea":"input"}`+(e.autogrow?" q-textarea--autogrow":"")),hasShadow:t.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:p,emitValue:Y,onClear:d,hasValue:h,floatingLabel:t.computed(()=>h.value&&(e.type!=="number"||Number.isFinite(Number(g.value)))||Ze(e.displayValue)),getControl:()=>t.h(N.value?"textarea":"input",{ref:p,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...w.value,...C.value,...e.type!=="file"?{value:I()}:b.value}),getShadowControl:()=>t.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(N.value?"":" text-no-wrap")},[t.h("span",{class:"invisible"},I()),t.h("span",e.shadowText)])});const $=$t(O);return Object.assign(o,{focus:q,blur:V,select:A,getNativeElement:()=>p.value}),je(o,"nativeEl",()=>p.value),$}}),gi=t.defineComponent({__name:"UInput",props:{fieldLabel:{},labelPosition:{default:"top"},labelWidth:{},modelValue:{},outlined:{type:Boolean,default:!0},dense:{type:Boolean,default:!0},filled:{type:Boolean},borderless:{type:Boolean},label:{},hint:{},error:{type:Boolean},errorMessage:{},type:{},placeholder:{},disable:{type:Boolean},readonly:{type:Boolean},prefix:{},suffix:{},mask:{}},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,o=n,i=t.computed(()=>l.labelPosition==="left"?{width:typeof l.labelWidth=="number"?`${l.labelWidth}px`:l.labelWidth}:{}),a=t.computed(()=>({"u-input-label-left":l.labelPosition==="left","u-input-label-top":l.labelPosition==="top"})),s=m=>{o("update:modelValue",m)},c=t.computed(()=>{const m=["fieldLabel","labelPosition","labelWidth","modelValue"],v={};for(const u in l)!m.includes(u)&&u!=="modelValue"&&(v[u]=l[u]);return v});return(m,v)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["u-input",a.value])},[e.fieldLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:"u-input-label",style:t.normalizeStyle(i.value)},t.toDisplayString(e.fieldLabel),5)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["u-input-field",{"q-mt-xs":e.labelPosition==="top"}])},[t.createVNode(Je,t.mergeProps({outlined:"","model-value":e.modelValue},c.value,{"onUpdate:modelValue":s}),null,16,["model-value"])],2)],2))}}),It=(e,n)=>{const l=e.__vccOpts||e;for(const[o,i]of n)l[o]=i;return l},hi=It(gi,[["__scopeId","data-v-f952dc62"]]);function pi(e,n){const l=t.ref(null),o=t.computed(()=>e.disable?null:t.h("span",{ref:l,class:"no-outline",tabindex:-1}));function i(a){const s=n.value;(a==null?void 0:a.qAvoidFocus)!==!0&&((a==null?void 0:a.type.indexOf("key"))===0?document.activeElement!==s&&(s==null?void 0:s.contains(document.activeElement))===!0&&s.focus({preventScroll:!0}):l.value!==null&&(a===void 0||(s==null?void 0:s.contains(a.target))===!0)&&l.value.focus({preventScroll:!0}))}return{refocusTargetEl:o,refocusTarget:i}}const bi={xs:30,sm:35,md:40,lg:50,xl:60},yi={...Qe,...it,...Ot,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},wi=["update:modelValue"];function ki(e){(e.keyCode===13||e.keyCode===32)&&ee(e)}function Si(e,n){const{props:l,slots:o,emit:i,proxy:a}=t.getCurrentInstance(),{$q:s}=a,c=Xe(l,s),m=t.ref(null),{refocusTargetEl:v,refocusTarget:u}=pi(l,m),p=at(l,bi),y=t.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),g=t.computed(()=>{const w=t.toRaw(l.val);return y.value?l.modelValue.findIndex(_=>t.toRaw(_)===w):-1}),S=t.computed(()=>y.value?g.value!==-1:t.toRaw(l.modelValue)===t.toRaw(l.trueValue)),P=t.computed(()=>y.value?g.value===-1:t.toRaw(l.modelValue)===t.toRaw(l.falseValue)),k=t.computed(()=>!S.value&&!P.value),z=t.computed(()=>l.disable?-1:l.tabindex||0),T=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable?" disabled":"")+(c.value?` q-${e}--dark`:"")+(l.dense?` q-${e}--dense`:"")+(l.leftLabel?" reverse":"")),b=t.computed(()=>{const w=S.value?"truthy":P.value?"falsy":"indet",_=l.color!==void 0&&(l.keepColor||S.value)?` text-${l.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${w}${_}`}),h=t.computed(()=>{const w={type:"checkbox"};return l.name!==void 0&&Object.assign(w,{".checked":S.value,"^checked":S.value?"checked":void 0,name:l.name,value:y.value?l.val:l.trueValue}),w}),B=ui(h),F=t.computed(()=>{const w={tabindex:z.value,role:"switch","aria-label":l.label,"aria-checked":k.value?"mixed":S.value?"true":"false"};return l.disable&&(w["aria-disabled"]="true"),w});function O(w){w!==void 0&&(ee(w),u(w)),l.disable||i("update:modelValue",N(),w)}function N(){if(y.value){if(S.value){const w=[...l.modelValue];return w.splice(g.value,1),w}return[...l.modelValue,l.val]}if(S.value){if(l.toggleOrder!=="ft"||!l.toggleIndeterminate)return l.falseValue}else if(P.value){if(l.toggleOrder==="ft"||!l.toggleIndeterminate)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function X(w){(w.keyCode===13||w.keyCode===32)&&O(w)}const C=n(S,k);return Object.assign(a,{toggle:O}),()=>{const w=C();l.disable||B(w,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const _=[t.h("div",{class:b.value,style:p.value,"aria-hidden":"true"},w)];v.value!==null&&_.push(v.value);const q=l.label!==void 0?we(o.default,[l.label]):ve(o.default);return q!==void 0&&_.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},q)),t.h("div",{ref:m,class:T.value,...F.value,onClick:O,onKeydown:ki,onKeyup:X},_)}}const xi=ie({name:"QToggle",props:{...yi,icon:String,iconColor:String},emits:wi,setup(e){function n(l,o){const i=t.computed(()=>(l.value?e.checkedIcon:o.value?e.indeterminateIcon:e.uncheckedIcon)||e.icon),a=t.computed(()=>l.value?e.iconColor:null);return()=>[t.h("div",{class:"q-toggle__track"}),t.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},i.value!==void 0?[t.h(ge,{name:i.value,color:a.value})]:void 0)]}return Si("toggle",n)}}),Ci=ie({name:"QField",inheritAttrs:!1,props:{...ut,tag:{type:String,default:"label"}},emits:Lt,setup(){return $t(Pt({tagProp:!0}))}});function On(e){e.keyCode===32&&ee(e)}const Ei={xs:8,sm:10,md:14,lg:20,xl:24},qi=ie({name:"QChip",props:{...Qe,...it,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:n,emit:l}){const{proxy:{$q:o}}=t.getCurrentInstance(),i=Xe(e,o),a=at(e,Ei),s=t.computed(()=>e.selected||e.icon!==void 0),c=t.computed(()=>e.selected?e.iconSelected||o.iconSet.chip.selected:e.icon),m=t.computed(()=>e.iconRemove||o.iconSet.chip.remove),v=t.computed(()=>!e.disable&&(e.clickable||e.selected!==null)),u=t.computed(()=>{const k=e.outline&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(!e.outline&&e.color!==void 0?` bg-${e.color}`:"")+(k?` text-${k} q-chip--colored`:"")+(e.disable?" disabled":"")+(e.dense?" q-chip--dense":"")+(e.outline?" q-chip--outline":"")+(e.selected?" q-chip--selected":"")+(v.value?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square?" q-chip--square":"")+(i.value?" q-chip--dark q-dark":"")}),p=t.computed(()=>{const k=e.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0,role:"button","aria-pressed":e.selected?"true":"false"},z={...k,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||o.lang.label.remove};return{chip:k,remove:z}});function y(k){[13,32].includes(k.keyCode)&&(g(k),ee(k))}function g(k){e.disable||(l("update:selected",!e.selected),l("click",k))}function S(k){(k.keyCode===void 0||[13,32].includes(k.keyCode))&&(ee(k),e.disable||(l("update:modelValue",!1),l("remove")))}function P(){const k=[];v.value&&k.push(t.h("div",{class:"q-focus-helper"})),s.value&&k.push(t.h(ge,{class:"q-chip__icon q-chip__icon--left",name:c.value}));const z=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return k.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Ll(n.default,z))),e.iconRight&&k.push(t.h(ge,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable&&k.push(t.h(ge,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:m.value,...p.value.remove,onClick:S,onKeydown:On,onKeyup:S})),k}return()=>{if(!e.modelValue)return;const k={class:u.value,style:a.value};return v.value&&Object.assign(k,p.value.chip,{onClick:g,onKeydown:On,onKeyup:y}),Pl("div",k,P(),"ripple",e.ripple!==!1&&!e.disable,()=>[[un,e.ripple]])}}}),Vi=ie({name:"QItem",props:{...Qe,...to,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:n,emit:l}){const{proxy:{$q:o}}=t.getCurrentInstance(),i=Xe(e,o),{hasLink:a,linkAttrs:s,linkClass:c,linkTag:m,navigateOnClick:v}=pn(),u=t.ref(null),p=t.ref(null),y=t.computed(()=>e.clickable||a.value||e.tag==="label"),g=t.computed(()=>!e.disable&&y.value),S=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense?" q-item--dense":"")+(i.value?" q-item--dark":"")+(a.value&&e.active===null?c.value:e.active?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable?" disabled":"")+(g.value?" q-item--clickable q-link cursor-pointer "+(e.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused?" q-manual-focusable--focused":""):"")),P=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(o.lang.rtl?"Right":"Left")]:16+e.insetLevel*56+"px"});function k(h){g.value&&(p.value!==null&&!h.qAvoidFocus&&(!h.qKeyEvent&&document.activeElement===u.value?p.value.focus({preventScroll:!0}):document.activeElement===p.value&&u.value.focus({preventScroll:!0})),v(h))}function z(h){if(g.value&&ke(h,[13,32])){ee(h),h.qKeyEvent=!0;const B=new MouseEvent("click",h);B.qKeyEvent=!0,u.value.dispatchEvent(B)}l("keyup",h)}function T(h){g.value&&h.keyCode===32&&ee(h)}function b(){const h=Al(n.default,[]);return g.value&&h.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:p})),h}return()=>{const h={ref:u,class:S.value,style:P.value,role:a.value?void 0:g.value?"button":"listitem",onClick:k,onKeydown:T,onKeyup:z};return g.value?(h.tabindex=e.tabindex||"0",Object.assign(h,s.value)):y.value&&(h["aria-disabled"]="true"),t.h(m.value,h,b())}}}),_i=ie({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:n}){const l=t.computed(()=>`q-item__section column q-item__section--${e.avatar||e.side||e.thumbnail?"side":"main"}`+(e.top?" q-item__section--top justify-start":" justify-center")+(e.avatar?" q-item__section--avatar":"")+(e.thumbnail?" q-item__section--thumbnail":"")+(e.noWrap?" q-item__section--nowrap":""));return()=>t.h("div",{class:l.value},ve(n.default))}}),Bi=ie({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:n}){const l=t.computed(()=>Number.parseInt(e.lines,10)),o=t.computed(()=>"q-item__label"+(e.overline?" q-item__label--overline text-overline":"")+(e.caption?" q-item__label--caption text-caption":"")+(e.header?" q-item__label--header":"")+(l.value===1?" ellipsis":"")),i=t.computed(()=>e.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>t.h("div",{style:i.value,class:o.value},ve(n.default))}});function Mi(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),Ft.is.mobile||e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ri={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function Ti({showing:e,avoidEmit:n,configureAnchorEl:l}){const{props:o,proxy:i,emit:a}=t.getCurrentInstance(),s=t.ref(null);let c=null;function m(g){return s.value===null?!1:g===void 0||g.touches===void 0||g.touches.length<=1}const v={};l===void 0&&(Object.assign(v,{hide(g){i.hide(g)},toggle(g){i.toggle(g),g.qAnchorHandled=!0},toggleKey(g){ke(g,13)&&v.toggle(g)},contextClick(g){i.hide(g),de(g),t.nextTick(()=>{i.show(g),g.qAnchorHandled=!0})},prevent:de,mobileTouch(g){if(v.mobileCleanup(g),!m(g))return;i.hide(g),s.value.classList.add("non-selectable");const S=g.target;_t(v,"anchor",[[S,"touchmove","mobileCleanup","passive"],[S,"touchend","mobileCleanup","passive"],[S,"touchcancel","mobileCleanup","passive"],[s.value,"contextmenu","prevent","notPassive"]]),c=setTimeout(()=>{c=null,i.show(g),g.qAnchorHandled=!0},300)},mobileCleanup(g){s.value.classList.remove("non-selectable"),c!==null&&(clearTimeout(c),c=null),e.value&&g!==void 0&&Mi()}}),l=function(S=o.contextMenu){if(o.noParentEvent||s.value===null)return;const P=S?i.$q.platform.is.mobile?[[s.value,"touchstart","mobileTouch","passive"]]:[[s.value,"mousedown","hide","passive"],[s.value,"contextmenu","contextClick","notPassive"]]:[[s.value,"click","toggle","passive"],[s.value,"keyup","toggleKey","passive"]];_t(v,"anchor",P)});function u(){an(v,"anchor")}function p(g){for(s.value=g;s.value.classList.contains("q-anchor--skip");)s.value=s.value.parentNode;l()}function y(){if(o.target===!1||o.target===""||i.$el.parentNode===null)s.value=null;else if(o.target===!0)p(i.$el.parentNode);else{let g=o.target;if(typeof o.target=="string")try{g=document.querySelector(o.target)}catch{g=void 0}g!=null?(s.value=g.$el||g,l()):(s.value=null,console.error(`Anchor: target "${o.target}" not found`))}}return t.watch(()=>o.contextMenu,g=>{s.value!==null&&(u(),l(g))}),t.watch(()=>o.target,()=>{s.value!==null&&u(),y()}),t.watch(()=>o.noParentEvent,g=>{s.value!==null&&(g?u():l())}),t.onMounted(()=>{y(),!n&&o.modelValue&&s.value===null&&a("update:modelValue",!1)}),t.onBeforeUnmount(()=>{c!==null&&clearTimeout(c),u()}),{anchorEl:s,canShow:m,anchorEvents:v}}function Fi(e,n){const l=t.ref(null);let o;function i(c,m){const v=`${m!==void 0?"add":"remove"}EventListener`,u=m!==void 0?m:o;c!==window&&c[v]("scroll",u,ae.passive),window[v]("scroll",u,ae.passive),o=m}function a(){l.value!==null&&(i(l.value),l.value=null)}const s=t.watch(()=>e.noParentEvent,()=>{l.value!==null&&(a(),n())});return t.onBeforeUnmount(s),{localScrollTarget:l,unconfigureScrollTarget:a,changeScrollEvent:i}}const In={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},zn=["beforeShow","show","beforeHide","hide"];function Dn({showing:e,canShow:n,hideOnRouteChange:l,handleShow:o,handleHide:i,handleRouteChange:a,processOnMount:s}){const c=t.getCurrentInstance(),{props:m,emit:v,proxy:u}=c;let p;function y(b){e.value?P(b):g(b)}function g(b){if(m.disable||(b==null?void 0:b.qAnchorHandled)===!0||n!==void 0&&!n(b))return;const h=m["onUpdate:modelValue"]!==void 0;h&&(v("update:modelValue",!0),p=b,t.nextTick(()=>{p===b&&(p=void 0)})),(m.modelValue===null||!h)&&S(b)}function S(b){e.value||(e.value=!0,v("beforeShow",b),o!==void 0?o(b):v("show",b))}function P(b){if(m.disable)return;const h=m["onUpdate:modelValue"]!==void 0;h&&(v("update:modelValue",!1),p=b,t.nextTick(()=>{p===b&&(p=void 0)})),(m.modelValue===null||!h)&&k(b)}function k(b){e.value&&(e.value=!1,v("beforeHide",b),i!==void 0?i(b):v("hide",b))}function z(b){m.disable&&b?m["onUpdate:modelValue"]!==void 0&&v("update:modelValue",!1):b===!0!==e.value&&(b?S:k)(p)}t.watch(()=>m.modelValue,z),l!==void 0&&dn(c)&&t.watch(()=>u.$route.fullPath,()=>{l.value&&e.value&&(a==null||a(),P())}),t.onMounted(()=>{z(m.modelValue)});const T={show:g,hide:P,toggle:y};return Object.assign(u,T),T}const Fe=[];function Ai(e,n){do{if(e.$options.name==="QMenu"){if(e.hide(n),e.$props.separateClosePopup)return Mt(e)}else if(e.__qPortal){const l=Mt(e);return(l==null?void 0:l.$options.name)==="QPopupProxy"?(e.hide(n),l):e}e=Mt(e)}while(e!=null)}const Nn={};let Li=1,Pi=document.body;function $i(e,n){const l=document.createElement("div");if(l.id=n!==void 0?`q-portal--${n}--${Li++}`:e,Nn.globalNodes!==void 0){const o=Nn.globalNodes.class;o!==void 0&&(l.className=o)}return Pi.append(l),l}function Oi(e){e.remove()}const Ii=ie({name:"QPortal",setup(e,{slots:n}){return()=>n.default()}});function zi(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function Hn(e,n,l,o){const i=t.ref(!1),a=t.ref(!1);let s=null;const c={},m=o==="dialog"&&zi(e);function v(p){if(p){Bn(c),a.value=!0;return}a.value=!1,i.value||(!m&&s===null&&(s=$i(!1,o)),i.value=!0,Fe.push(e.proxy),oi(c))}function u(p){if(a.value=!1,!p)return;Bn(c),i.value=!1;const y=Fe.indexOf(e.proxy);y!==-1&&Fe.splice(y,1),s!==null&&(Oi(s),s=null)}return t.onUnmounted(()=>{u(!0)}),e.proxy.__qPortal=!0,je(e.proxy,"contentEl",()=>n.value),{showPortal:v,hidePortal:u,portalIsActive:i,portalIsAccessible:a,renderPortal:()=>m?l():i.value?[t.h(t.Teleport,{to:s},t.h(Ii,l))]:void 0}}const Wn={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function jn(e,n=()=>{},l=()=>{}){return{transitionProps:t.computed(()=>{const o=`q-transition--${e.transitionShow||n()}`,i=`q-transition--${e.transitionHide||l()}`;return{appear:!0,enterFromClass:`${o}-enter-from`,enterActiveClass:`${o}-enter-active`,enterToClass:`${o}-enter-to`,leaveFromClass:`${i}-leave-from`,leaveActiveClass:`${i}-leave-active`,leaveToClass:`${i}-leave-to`}}),transitionStyle:t.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Un(){let e;const n=t.getCurrentInstance();function l(){e=void 0}return t.onDeactivated(l),t.onBeforeUnmount(l),{removeTick:l,registerTick(o){e=o,t.nextTick(()=>{e===o&&(fn(n)||e(),e=void 0)})}}}function Kn(){let e=null;const n=t.getCurrentInstance();function l(){e!==null&&(clearTimeout(e),e=null)}return t.onDeactivated(l),t.onBeforeUnmount(l),{removeTimeout:l,registerTimeout(o,i){l(),fn(n)||(e=setTimeout(()=>{e=null,o()},i))}}}const Di=[Element,String],Ni=[null,document,document.body,document.scrollingElement,document.documentElement];function Hi(e,n){let l=Ul(n);if(l===void 0){if(e==null)return window;l=e.closest(".scroll,.scroll-y,.overflow-auto")}return Ni.includes(l)?window:l}function Wi(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function ji(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let dt;function Ui(){if(dt!==void 0)return dt;const e=document.createElement("p"),n=document.createElement("div");qt(e,{width:"100%",height:"200px"}),qt(n,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),n.append(e),document.body.append(n);const l=e.offsetWidth;n.style.overflow="scroll";let o=e.offsetWidth;return l===o&&(o=n.clientWidth),n.remove(),dt=l-o,dt}const Ae=[];let Le;function Ki(e){e.keyCode===27&&(Le=!0)}function Qi(){Le&&(Le=!1)}function Xi(e){Le&&ke(e,27)&&(Le=!1,Ae.at(-1)(e))}function Qn(e){window[e]("keydown",Ki),window[e]("blur",Qi),window[e]("keyup",Xi),Le=!1}function Xn(e){fe.is.desktop&&(Ae.push(e),Ae.length===1&&Qn("addEventListener"))}function ft(e){const n=Ae.indexOf(e);n!==-1&&(Ae.splice(n,1),Ae.length===0&&Qn("removeEventListener"))}const Pe=[];function Yn(e){Pe.at(-1)(e)}function Zn(e){fe.is.desktop&&(Pe.push(e),Pe.length===1&&document.body.addEventListener("focusin",Yn))}function zt(e){const n=Pe.indexOf(e);n!==-1&&(Pe.splice(n,1),Pe.length===0&&document.body.removeEventListener("focusin",Yn))}const{notPassiveCapture:mt}=ae,Se=[];function vt(e){const n=e.target;if(n===void 0||n.nodeType===8||n.classList.contains("no-pointer-events"))return;let l=null,o=!1;for(let i=Fe.length-1;i>=0;i--){const a=Fe[i].$,s=a.type.name;if(s!=="QTooltip"){if(s==="QDialog"){if(a.props.seamless!==!0){if(o===!1)return;l=new Set(Fe.slice(i+1).map(c=>c.contentEl));break}continue}o=!0}}for(let i=Se.length-1;i>=0;i--){const a=Se[i];if(l!==null&&!l.has(a.innerRef.value))return;if((a.anchorEl.value===null||!a.anchorEl.value.contains(n))&&(n===document.body||a.innerRef.value!==null&&!a.innerRef.value.contains(n)))e.qClickOutside=!0,a.onClickOutside(e);else return}}function Yi(e){Se.push(e),Se.length===1&&(document.addEventListener("mousedown",vt,mt),document.addEventListener("touchstart",vt,mt))}function Jn(e){const n=Se.indexOf(e);n!==-1&&(Se.splice(n,1),Se.length===0&&(document.removeEventListener("mousedown",vt,mt),document.removeEventListener("touchstart",vt,mt)))}const Zi=new Map;function Gn(e){for(const[n,l]of Zi)if(l.$el.contains(e)===!0)return n}function el(e,n){if(e==null)return!1;const l=new Set;for(let o=Gn(n);o!==void 0&&l.has(o)===!1;o=Gn(o)){if(Vt(e,o)===!0)return!0;l.add(o)}return!1}let tl,nl;const Ji=["top","center","bottom"],Gi=["left","middle","right","start","end"];function ll(e){const n=e.split(" ");return n.length!==2?!1:Ji.includes(n[0])?Gi.includes(n[1])?!0:(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):(console.error("Anchor/Self position must start with one of top/center/bottom"),!1)}function ea(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Dt={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Dt[`${e}#ltr`]=e,Dt[`${e}#rtl`]=e});function ol(e,n){const l=e.split(" ");return{vertical:l[0],horizontal:Dt[`${l[1]}#${n?"rtl":"ltr"}`]}}function ta(e,n){let{top:l,left:o,right:i,bottom:a,width:s,height:c}=e.getBoundingClientRect();return n!==void 0&&(l-=n[1],o-=n[0],a+=n[1],i+=n[0],s+=n[0],c+=n[1]),{top:l,bottom:a,height:c,left:o,right:i,width:s,middle:o+(i-o)/2,center:l+(a-l)/2}}function na(e,n,l){let{top:o,left:i}=e.getBoundingClientRect();return o+=n.top,i+=n.left,l!==void 0&&(o+=l[1],i+=l[0]),{top:o,bottom:o+1,height:1,left:i,right:i+1,width:1,middle:i,center:o}}function la(e,n){return{top:0,center:n/2,bottom:n,left:0,middle:e/2,right:e}}function il(e,n,l,o){return{top:e[l.vertical]-n[o.vertical],left:e[l.horizontal]-n[o.horizontal]}}function al(e,n=0){if(e.targetEl===null||e.anchorEl===null||n>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{al(e,n+1)},10);return}const{targetEl:l,offset:o,anchorEl:i,anchorOrigin:a,selfOrigin:s,absoluteOffset:c,fit:m,cover:v,maxHeight:u,maxWidth:p}=e;if(fe.is.ios&&window.visualViewport!==void 0){const F=document.body.style,{offsetLeft:O,offsetTop:N}=window.visualViewport;O!==tl&&(F.setProperty("--q-pe-left",O+"px"),tl=O),N!==nl&&(F.setProperty("--q-pe-top",N+"px"),nl=N)}const{scrollLeft:y,scrollTop:g}=l,S=c===void 0?ta(i,v?[0,0]:o):na(i,c,o);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:p,maxHeight:u,visibility:"visible"});const{offsetWidth:P,offsetHeight:k}=l,{elWidth:z,elHeight:T}=m||v?{elWidth:Math.max(S.width,P),elHeight:v?Math.max(S.height,k):k}:{elWidth:P,elHeight:k};let b={maxWidth:p,maxHeight:u};(m||v)&&(b.minWidth=S.width+"px",v&&(b.minHeight=S.height+"px")),Object.assign(l.style,b);const h=la(z,T);let B=il(S,h,a,s);if(c===void 0||o===void 0)Nt(B,S,h,a,s);else{const{top:F,left:O}=B;Nt(B,S,h,a,s);let N=!1;if(B.top!==F){N=!0;const X=2*o[1];S.center=S.top-=X,S.bottom-=X+2}if(B.left!==O){N=!0;const X=2*o[0];S.middle=S.left-=X,S.right-=X+2}N&&(B=il(S,h,a,s),Nt(B,S,h,a,s))}b={top:B.top+"px",left:B.left+"px"},B.maxHeight!==void 0&&(b.maxHeight=B.maxHeight+"px",S.height>B.maxHeight&&(b.minHeight=b.maxHeight)),B.maxWidth!==void 0&&(b.maxWidth=B.maxWidth+"px",S.width>B.maxWidth&&(b.minWidth=b.maxWidth)),Object.assign(l.style,b),l.scrollTop!==g&&(l.scrollTop=g),l.scrollLeft!==y&&(l.scrollLeft=y)}function Nt(e,n,l,o,i){const a=l.bottom,s=l.right,c=Ui(),m=window.innerHeight-c,v=document.body.clientWidth;if(e.top<0||e.top+a>m)if(i.vertical==="center")e.top=n[o.vertical]>m/2?Math.max(0,m-a):0,e.maxHeight=Math.min(a,m);else if(n[o.vertical]>m/2){const u=Math.min(m,o.vertical==="center"?n.center:o.vertical===i.vertical?n.bottom:n.top);e.maxHeight=Math.min(a,u),e.top=Math.max(0,u-a)}else e.top=Math.max(0,o.vertical==="center"?n.center:o.vertical===i.vertical?n.top:n.bottom),e.maxHeight=Math.min(a,m-e.top);if(e.left<0||e.left+s>v)if(e.maxWidth=Math.min(s,v),i.horizontal==="middle")e.left=n[o.horizontal]>v/2?Math.max(0,v-s):0;else if(n[o.horizontal]>v/2){const u=Math.min(v,o.horizontal==="middle"?n.middle:o.horizontal===i.horizontal?n.right:n.left);e.maxWidth=Math.min(s,u),e.left=Math.max(0,u-e.maxWidth)}else e.left=Math.max(0,o.horizontal==="middle"?n.middle:o.horizontal===i.horizontal?n.left:n.right),e.maxWidth=Math.min(s,v-e.left)}const oa=ie({name:"QMenu",inheritAttrs:!1,props:{...Ri,...In,...Qe,...Wn,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:ll},self:{type:String,validator:ll},offset:{type:Array,validator:ea},scrollTarget:Di,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...zn,"click","escapeKey"],setup(e,{slots:n,emit:l,attrs:o}){let i=null,a,s,c;const m=t.getCurrentInstance(),{proxy:v}=m,{$q:u}=v,p=t.ref(null),y=t.ref(!1),g=t.computed(()=>!e.persistent&&!e.noRouteDismiss),S=Xe(e,u),{registerTick:P,removeTick:k}=Un(),{registerTimeout:z}=Kn(),{transitionProps:T,transitionStyle:b}=jn(e),{localScrollTarget:h,changeScrollEvent:B,unconfigureScrollTarget:F}=Fi(e,K),{anchorEl:O,canShow:N}=Ti({showing:y}),{hide:X}=Dn({showing:y,canShow:N,handleShow:Z,handleHide:d,handleRouteChange:E,hideOnRouteChange:g,processOnMount:!0}),{showPortal:C,hidePortal:w,renderPortal:_}=Hn(m,p,j,"menu"),q={anchorEl:O,innerRef:p,onClickOutside(D){if(!e.persistent&&y.value)return X(D),(D.type==="touchstart"||D.target.classList.contains("q-dialog__backdrop"))&&ee(D),!0}},V=t.computed(()=>ol(e.anchor||(e.cover?"center middle":"bottom start"),u.lang.rtl)),A=t.computed(()=>e.cover?V.value:ol(e.self||"top start",u.lang.rtl)),U=t.computed(()=>(e.square?" q-menu--square":"")+(S.value?" q-menu--dark q-dark":"")),x=t.computed(()=>e.autoClose?{onClick:I}:{}),R=t.computed(()=>y.value&&!e.persistent);t.watch(R,D=>{D?(Xn(f),Yi(q)):(ft(f),Jn(q))});function Y(){Te(()=>{let D=p.value;D&&!D.contains(document.activeElement)&&(D=D.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||D.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||D.querySelector("[autofocus], [data-autofocus]")||D,D.focus({preventScroll:!0}))})}function Z(D){if(i=e.noRefocus?null:document.activeElement,Zn($),C(),K(),a=void 0,D!==void 0&&(e.touchPosition||e.contextMenu)){const oe=on(D);if(oe.left!==void 0){const{top:be,left:re}=O.value.getBoundingClientRect();a={left:oe.left-re,top:oe.top-be}}}s===void 0&&(s=t.watch(()=>u.screen.width+"|"+u.screen.height+"|"+e.self+"|"+e.anchor+"|"+u.lang.rtl,W)),e.noFocus||document.activeElement.blur(),P(()=>{W(),e.noFocus||Y()}),z(()=>{u.platform.is.ios&&(c=e.autoClose,p.value.click()),W(),C(!0),l("show",D)},e.transitionDuration)}function d(D){if(k(),w(),H(!0),i!==null&&(D===void 0||!D.qClickOutside)){const oe=((D==null?void 0:D.type.indexOf("key"))===0?i.closest('[tabindex]:not([tabindex^="-"])'):void 0)||i;i=null,Te(()=>{oe.isConnected&&oe.focus({preventScroll:!0})})}z(()=>{w(!0),l("hide",D)},e.transitionDuration)}function E(){i=null}function H(D){a=void 0,s!==void 0&&(s(),s=void 0),(D||y.value)&&(zt($),F(),Jn(q),ft(f)),D||(i=null)}function K(){(O.value!==null||e.scrollTarget!==void 0)&&(h.value=Hi(O.value,e.scrollTarget),B(h.value,W))}function I(D){c?c=!1:(Ai(v,D),l("click",D))}function $(D){R.value&&!e.noFocus&&!Vt(p.value,D.target)&&!el(p.value,D.target)&&Y()}function f(D){e.noEscDismiss||(l("escapeKey"),X(D))}function W(){al({targetEl:p.value,offset:e.offset,anchorEl:O.value,anchorOrigin:V.value,selfOrigin:A.value,absoluteOffset:a,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function j(){return t.h(t.Transition,T.value,()=>y.value?t.h("div",{role:"menu",...o,ref:p,tabindex:-1,class:["q-menu q-position-engine scroll"+U.value,o.class],style:[o.style,b.value],...x.value},ve(n.default)):null)}return t.onBeforeUnmount(()=>{H()}),Object.assign(v,{focus:Y,updatePosition:W}),_}});function ia(e,n,l){function o(){}return t.onBeforeUnmount(()=>{e.value}),{removeFromHistory:o,addToHistory(){}}}let Ge=0,Ht,Wt,et,jt=!1,rl,sl,ul,xe=null;function cl(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function gt(e){jt||(jt=!0,requestAnimationFrame(()=>{jt=!1;const{height:n}=e.target,{clientHeight:l,scrollTop:o}=document.scrollingElement;(et===void 0||n!==window.innerHeight)&&(et=l-n,document.scrollingElement.scrollTop=o),o>et&&(document.scrollingElement.scrollTop-=Math.ceil((o-et)/8))}))}function dl(e){const n=document.body,l=window.visualViewport!==void 0;if(e==="add"){const{overflowY:o,overflowX:i}=window.getComputedStyle(n);Ht=ji(window),Wt=Wi(window),rl=n.style.left,sl=n.style.top,ul=window.location.pathname,n.style.left=`-${Ht}px`,n.style.top=`-${Wt}px`,i!=="hidden"&&(i==="scroll"||n.scrollWidth>window.innerWidth)&&n.classList.add("q-body--force-scrollbar-x"),o!=="hidden"&&(o==="scroll"||n.scrollHeight>window.innerHeight)&&n.classList.add("q-body--force-scrollbar-y"),document.documentElement.classList.add("q-document--prevent-scroll"),document.qScrollPrevented=!0,fe.is.ios&&(l?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",gt,ae.passiveCapture),window.visualViewport.addEventListener("scroll",gt,ae.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",cl,ae.passiveCapture))}else fe.is.ios&&(l?(window.visualViewport.removeEventListener("resize",gt,ae.passiveCapture),window.visualViewport.removeEventListener("scroll",gt,ae.passiveCapture)):window.removeEventListener("scroll",cl,ae.passiveCapture)),document.documentElement.classList.remove("q-document--prevent-scroll"),n.classList.remove("q-body--force-scrollbar-x","q-body--force-scrollbar-y"),document.qScrollPrevented=!1,n.style.left=rl,n.style.top=sl,window.location.pathname===ul&&window.scrollTo(Ht,Wt),et=void 0}function aa(e){let n="add";if(e===!0){if(Ge++,xe!==null){clearTimeout(xe),xe=null;return}if(Ge>1)return}else{if(Ge===0||(Ge--,Ge>0))return;if(n="remove",fe.is.ios&&fe.is.nativeMobile){xe!==null&&clearTimeout(xe),xe=setTimeout(()=>{dl(n),xe=null},100);return}}dl(n)}function ra(){let e;return{preventBodyScroll(n){n!==e&&(e!==void 0||n)&&(e=n,aa(n))}}}let ht=0;const sa={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"},fl={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},ua=ie({name:"QDialog",inheritAttrs:!1,props:{...In,...Wn,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:[...zn,"shake","click","escapeKey"],setup(e,{slots:n,emit:l,attrs:o}){const i=t.getCurrentInstance(),a=t.ref(null),s=t.ref(!1),c=t.ref(!1);let m=null,v=null,u=!1,p=!1;const y=t.computed(()=>!e.persistent&&!e.noRouteDismiss&&!e.seamless),{preventBodyScroll:g}=ra(),{registerTimeout:S}=Kn(),{registerTick:P,removeTick:k}=Un(),{transitionProps:z,transitionStyle:T}=jn(e,()=>fl[e.position][0],()=>fl[e.position][1]),b=t.computed(()=>T.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:h,hidePortal:B,portalIsAccessible:F,renderPortal:O}=Hn(i,a,K,"dialog"),{hide:N}=Dn({showing:s,hideOnRouteChange:y,handleShow:q,handleHide:V,handleRouteChange:A,processOnMount:!0});ia(s);const X=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized?"maximized":"minimized"} q-dialog__inner--${e.position} ${sa[e.position]}`+(c.value?" q-dialog__inner--animating":"")+(e.fullWidth?" q-dialog__inner--fullwidth":"")+(e.fullHeight?" q-dialog__inner--fullheight":"")+(e.square?" q-dialog__inner--square":"")),C=t.computed(()=>s.value&&!e.seamless),w=t.computed(()=>e.autoClose?{onClick:d}:{}),_=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${C.value?"modal":"seamless"}`,o.class]);t.watch(()=>e.maximized,I=>{s.value&&Z(I)}),t.watch(C,I=>{g(I),I?(Zn(H),Xn(R)):(zt(H),ft(R))});function q(I){var $;v=!e.noRefocus&&document.activeElement!==null?document.activeElement:null,Z(e.maximized),h(),c.value=!0,e.noFocus?k():(($=document.activeElement)==null||$.blur(),P(U)),S(()=>{if(i.proxy.$q.platform.is.ios){if(!e.seamless&&document.activeElement){const{top:f,bottom:W}=document.activeElement.getBoundingClientRect(),{innerHeight:j}=window,D=window.visualViewport!==void 0?window.visualViewport.height:j;f>0&&W>D/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-D,W>=j?1/0:Math.ceil(document.scrollingElement.scrollTop+W-D/2))),document.activeElement.scrollIntoView()}p=!0,a.value.click(),p=!1}h(!0),c.value=!1,l("show",I)},e.transitionDuration)}function V(I){if(k(),Y(!0),c.value=!0,B(),v!==null){const $=((I==null?void 0:I.type.indexOf("key"))===0?v.closest('[tabindex]:not([tabindex^="-"])'):void 0)||v;v=null,Te(()=>{$.isConnected&&$.focus({preventScroll:!0})})}S(()=>{B(!0),c.value=!1,l("hide",I)},e.transitionDuration)}function A(){v=null}function U(I){Te(()=>{let $=a.value;if($!==null){if(I!==void 0){const f=$.querySelector(I);if(f!==null){f.focus({preventScroll:!0});return}}$.contains(document.activeElement)||($=$.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||$.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||$.querySelector("[autofocus], [data-autofocus]")||$,$.focus({preventScroll:!0}))}})}function x(I){I&&typeof I.focus=="function"?I.focus({preventScroll:!0}):U(),l("shake");const $=a.value;$!==null&&($.classList.remove("q-animate--scale"),$.classList.add("q-animate--scale"),m!==null&&clearTimeout(m),m=setTimeout(()=>{m=null,a.value!==null&&($.classList.remove("q-animate--scale"),U())},170))}function R(){e.seamless||(e.persistent||e.noEscDismiss?!e.maximized&&!e.noShake&&x():(l("escapeKey"),N()))}function Y(I){m!==null&&(clearTimeout(m),m=null),(I||s.value)&&(Z(!1),e.seamless||(g(!1),zt(H),ft(R))),I||(v=null)}function Z(I){I?u||(ht<1&&document.body.classList.add("q-body--dialog"),ht++,u=!0):u&&(ht<2&&document.body.classList.remove("q-body--dialog"),ht--,u=!1)}function d(I){p||(N(I),l("click",I))}function E(I){!e.persistent&&!e.noBackdropDismiss?N(I):e.noShake||x()}function H(I){!e.allowFocusOutside&&F.value&&!Vt(a.value,I.target)&&!el(a.value,I.target)&&U('[tabindex]:not([tabindex="-1"])')}Object.assign(i.proxy,{focus:U,shake:x,__updateRefocusTarget(I){v=I||null}}),t.onBeforeUnmount(Y);function K(){return t.h("div",{role:"dialog","aria-modal":C.value?"true":"false",...o,class:_.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>C.value?t.h("div",{class:"q-dialog__backdrop fixed-full",style:b.value,"aria-hidden":"true",onClick:E}):null),t.h(t.Transition,z.value,()=>s.value?t.h("div",{ref:a,class:X.value,style:T.value,tabindex:-1,...w.value},ve(n.default)):null)])}return O}});let pt=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const n=document.createElement("div");Object.assign(n.style,{width:"1000px",height:"1px"}),document.body.append(e),e.append(n),e.scrollLeft=-1e3,pt=e.scrollLeft>=0,e.remove()}const me=1e3,ca=["start","center","end","start-force","center-force","end-force"],ml=Array.prototype.filter,da=window.getComputedStyle(document.body).overflowAnchor===void 0?Kl:function(n,l){n!==null&&(n._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(n._qOverflowAnimationFrame),n._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(n===null)return;n._qOverflowAnimationFrame=void 0;const o=n.children||[];ml.call(o,a=>a.dataset&&a.dataset.qVsAnchor!==void 0).forEach(a=>{delete a.dataset.qVsAnchor});const i=o[l];i!=null&&i.dataset&&(i.dataset.qVsAnchor="")}))};function $e(e,n){return e+n}function Ut(e,n,l,o,i,a,s,c){const m=e===window?document.scrollingElement||document.documentElement:e,v=i?"offsetWidth":"offsetHeight",u={scrollStart:0,scrollViewSize:-s-c,scrollMaxSize:0,offsetStart:-s,offsetEnd:-c};if(i?(e===window?(u.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,u.scrollViewSize+=document.documentElement.clientWidth):(u.scrollStart=m.scrollLeft,u.scrollViewSize+=m.clientWidth),u.scrollMaxSize=m.scrollWidth,a&&(u.scrollStart=(pt?u.scrollMaxSize-u.scrollViewSize:0)-u.scrollStart)):(e===window?(u.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,u.scrollViewSize+=document.documentElement.clientHeight):(u.scrollStart=m.scrollTop,u.scrollViewSize+=m.clientHeight),u.scrollMaxSize=m.scrollHeight),l!==null)for(let p=l.previousElementSibling;p!==null;p=p.previousElementSibling)p.classList.contains("q-virtual-scroll--skip")||(u.offsetStart+=p[v]);if(o!==null)for(let p=o.nextElementSibling;p!==null;p=p.nextElementSibling)p.classList.contains("q-virtual-scroll--skip")||(u.offsetEnd+=p[v]);if(n!==e){const p=m.getBoundingClientRect(),y=n.getBoundingClientRect();i?(u.offsetStart+=y.left-p.left,u.offsetEnd-=y.width):(u.offsetStart+=y.top-p.top,u.offsetEnd-=y.height),e!==window&&(u.offsetStart+=u.scrollStart),u.offsetEnd+=u.scrollMaxSize-u.offsetStart}return u}function vl(e,n,l,o){n==="end"&&(n=(e===window?document.body:e)[l?"scrollWidth":"scrollHeight"]),e===window?l?(o&&(n=(pt?document.body.scrollWidth-document.documentElement.clientWidth:0)-n),window.scrollTo(n,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,n):l?(o&&(n=(pt?e.scrollWidth-e.offsetWidth:0)-n),e.scrollLeft=n):e.scrollTop=n}function tt(e,n,l,o){if(l>=o)return 0;const i=n.length,a=Math.floor(l/me),s=Math.floor((o-1)/me)+1;let c=e.slice(a,s).reduce($e,0);return l%me!==0&&(c-=n.slice(a*me,l).reduce($e,0)),o%me!==0&&o!==i&&(c-=n.slice(o,s*me).reduce($e,0)),c}const gl={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...{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]}};function fa({virtualScrollLength:e,getVirtualScrollTarget:n,getVirtualScrollEl:l,virtualScrollItemSizeComputed:o}){const i=t.getCurrentInstance(),{props:a,emit:s,proxy:c}=i,{$q:m}=c;let v,u,p,y=[],g;const S=t.ref(0),P=t.ref(0),k=t.ref({}),z=t.ref(null),T=t.ref(null),b=t.ref(null),h=t.ref({from:0,to:0}),B=t.computed(()=>a.tableColspan!==void 0?a.tableColspan:100);o===void 0&&(o=t.computed(()=>a.virtualScrollItemSize));const F=t.computed(()=>o.value+";"+a.virtualScrollHorizontal),O=t.computed(()=>F.value+";"+a.virtualScrollSliceRatioBefore+";"+a.virtualScrollSliceRatioAfter);t.watch(O,()=>{U()}),t.watch(F,N);function N(){A(u,!0)}function X(d){A(d===void 0?u:d)}function C(d,E){const H=n();if(H==null||H.nodeType===8)return;const K=Ut(H,l(),z.value,T.value,a.virtualScrollHorizontal,m.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd);p!==K.scrollViewSize&&U(K.scrollViewSize),_(H,K,Math.min(e.value-1,Math.max(0,Number.parseInt(d,10)||0)),0,ca.includes(E)?E:u!==-1&&d>u?"end":"start")}function w(){const d=n();if(d==null||d.nodeType===8)return;const E=Ut(d,l(),z.value,T.value,a.virtualScrollHorizontal,m.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd),H=e.value-1,K=E.scrollMaxSize-E.offsetStart-E.offsetEnd-P.value;if(v===E.scrollStart)return;if(E.scrollMaxSize<=0){_(d,E,0,0);return}p!==E.scrollViewSize&&U(E.scrollViewSize),q(h.value.from);const I=Math.floor(E.scrollMaxSize-Math.max(E.scrollViewSize,E.offsetEnd)-Math.min(g[H],E.scrollViewSize/2));if(I>0&&Math.ceil(E.scrollStart)>=I){_(d,E,H,E.scrollMaxSize-E.offsetEnd-y.reduce($e,0));return}let $=0,f=E.scrollStart-E.offsetStart,W=f;if(f<=K&&f+E.scrollViewSize>=S.value)f-=S.value,$=h.value.from,W=f;else for(let j=0;f>=y[j]&&$<H;j++)f-=y[j],$+=me;for(;f>0&&$<H;)f-=g[$],f>-E.scrollViewSize?($++,W=f):W=g[$]+f;_(d,E,$,W)}function _(d,E,H,K,I){const $=typeof I=="string"&&I.includes("-force"),f=$?I.replace("-force",""):I,W=f!==void 0?f:"start";let j=Math.max(0,H-k.value[W]),D=j+k.value.total;D>e.value&&(D=e.value,j=Math.max(0,D-k.value.total)),v=E.scrollStart;const oe=j!==h.value.from||D!==h.value.to;if(!oe&&f===void 0){R(H);return}const{activeElement:be}=document,re=b.value;oe&&re!==null&&re!==be&&re.contains(be)&&(re.addEventListener("focusout",V),setTimeout(()=>{re==null||re.removeEventListener("focusout",V)},0)),da(re,H-j);const bt=f!==void 0?g.slice(j,H).reduce($e,0):0;if(oe){const Ce=D>=h.value.from&&j<=h.value.to?h.value.to:D;h.value={from:j,to:Ce},S.value=tt(y,g,0,j),P.value=tt(y,g,D,e.value),requestAnimationFrame(()=>{h.value.to!==D&&v===E.scrollStart&&(h.value={from:h.value.from,to:D},P.value=tt(y,g,D,e.value))})}requestAnimationFrame(()=>{if(v!==E.scrollStart)return;oe&&q(j);const Ce=g.slice(j,H).reduce($e,0),Ee=Ce+E.offsetStart+S.value,yt=Ee+g[H];let nt=Ee+K;if(f!==void 0){const Qt=Ce-bt,lt=E.scrollStart+Qt;nt=!$&&lt<Ee&&yt<lt+E.scrollViewSize?lt:f==="end"?yt-E.scrollViewSize:Ee-(f==="start"?0:Math.round((E.scrollViewSize-g[H])/2))}v=nt,vl(d,nt,a.virtualScrollHorizontal,m.lang.rtl),R(H)})}function q(d){const E=b.value;if(E){const H=ml.call(E.children,j=>j.classList&&!j.classList.contains("q-virtual-scroll--skip")),K=H.length,I=a.virtualScrollHorizontal?j=>j.getBoundingClientRect().width:j=>j.offsetHeight;let $=d,f,W;for(let j=0;j<K;){for(f=I(H[j]),j++;j<K&&H[j].classList.contains("q-virtual-scroll--with-prev");)f+=I(H[j]),j++;W=f-g[$],W!==0&&(g[$]+=W,y[Math.floor($/me)]+=W),$++}}}function V(){var d;(d=b.value)==null||d.focus({preventScroll:!0})}function A(d,E){const H=Number(o.value);(E||!Array.isArray(g))&&(g=[]);const K=g.length;g.length=e.value;for(let $=e.value-1;$>=K;$--)g[$]=H;const I=Math.floor((e.value-1)/me);y=[];for(let $=0;$<=I;$++){let f=0;const W=Math.min(($+1)*me,e.value);for(let j=$*me;j<W;j++)f+=g[j];y.push(f)}u=-1,v=void 0,S.value=tt(y,g,0,h.value.from),P.value=tt(y,g,h.value.to,e.value),d>=0?(q(h.value.from),t.nextTick(()=>{C(d)})):Y()}function U(d){if(d===void 0&&typeof window<"u"){const f=n();f!=null&&f.nodeType!==8&&(d=Ut(f,l(),z.value,T.value,a.virtualScrollHorizontal,m.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd).scrollViewSize)}p=d;const E=Number.parseFloat(a.virtualScrollSliceRatioBefore)||0,H=Number.parseFloat(a.virtualScrollSliceRatioAfter)||0,K=1+E+H,I=d===void 0||d<=0?1:Math.ceil(d/o.value),$=Math.max(1,I,Math.ceil((a.virtualScrollSliceSize>0?a.virtualScrollSliceSize:10)/K));k.value={total:Math.ceil($*K),start:Math.ceil($*E),center:Math.ceil($*(.5+E)),end:Math.ceil($*(1+E)),view:I}}function x(d,E){const H=a.virtualScrollHorizontal?"width":"height",K={["--q-virtual-scroll-item-"+H]:o.value+"px"};return[d==="tbody"?t.h(d,{class:"q-virtual-scroll__padding",key:"before",ref:z},[t.h("tr",[t.h("td",{style:{[H]:`${S.value}px`,...K},colspan:B.value})])]):t.h(d,{class:"q-virtual-scroll__padding",key:"before",ref:z,style:{[H]:`${S.value}px`,...K}}),t.h(d,{class:"q-virtual-scroll__content",key:"content",ref:b,tabindex:-1},E.flat()),d==="tbody"?t.h(d,{class:"q-virtual-scroll__padding",key:"after",ref:T},[t.h("tr",[t.h("td",{style:{[H]:`${P.value}px`,...K},colspan:B.value})])]):t.h(d,{class:"q-virtual-scroll__padding",key:"after",ref:T,style:{[H]:`${P.value}px`,...K}})]}function R(d){u!==d&&(a.onVirtualScroll!==void 0&&s("virtualScroll",{index:d,from:h.value.from,to:h.value.to-1,direction:d<u?"decrease":"increase",ref:c}),u=d)}U();const Y=Vn(w,m.platform.is.ios?120:35);t.onBeforeMount(()=>{U()});let Z=!1;return t.onDeactivated(()=>{Z=!0}),t.onActivated(()=>{if(!Z)return;const d=n();v!==void 0&&d!==void 0&&d!==null&&d.nodeType!==8?vl(d,v,a.virtualScrollHorizontal,m.lang.rtl):C(u)}),t.onBeforeUnmount(()=>{Y.cancel()}),Object.assign(c,{scrollTo:C,reset:N,refresh:X}),{virtualScrollSliceRange:h,virtualScrollSliceSizeComputed:k,setVirtualScrollSize:U,onVirtualScrollEvt:Y,localResetVirtualScroll:A,padVirtualScroll:x,scrollTo:C,reset:N,refresh:X}}function ye(e,n){if(e===n)return!0;if(e!==null&&n!==null&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;let l,o;if(e.constructor===Array){if(l=e.length,l!==n.length)return!1;for(o=l;o--!==0;)if(!ye(e[o],n[o]))return!1;return!0}if(e.constructor===Map){if(e.size!==n.size)return!1;let a=e.entries();for(o=a.next();!o.done;){if(!n.has(o.value[0]))return!1;o=a.next()}for(a=e.entries(),o=a.next();!o.done;){if(!ye(o.value[1],n.get(o.value[0])))return!1;o=a.next()}return!0}if(e.constructor===Set){if(e.size!==n.size)return!1;const a=e.entries();for(o=a.next();!o.done;){if(!n.has(o.value[0]))return!1;o=a.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(l=e.length,l!==n.length)return!1;for(o=l;o--!==0;)if(e[o]!==n[o])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();const i=Object.keys(e).filter(a=>e[a]!==void 0);if(l=i.length,l!==Object.keys(n).filter(a=>n[a]!==void 0).length)return!1;for(o=l;o--!==0;){const a=i[o];if(!ye(e[a],n[a]))return!1}return!0}return e!==e&&n!==n}function hl(e,n,l){if(l<=n)return n;const o=l-n+1;let i=n+(e-n)%o;return i<n&&(i=o+i),i===0?0:i}const pl=e=>["add","add-unique","toggle"].includes(e),ma=".*+?^${}()|[]\\",va=Object.keys(ut);function Kt(e,n){if(typeof e=="function")return e;const l=e!==void 0?e:n;return o=>o!==null&&typeof o=="object"&&l in o?o[l]:o}const ga=ie({name:"QSelect",inheritAttrs:!1,props:{...gl,...Ot,...ut,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:pl},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:gl.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Lt,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:n,emit:l}){const{proxy:o}=t.getCurrentInstance(),{$q:i}=o,a=t.ref(!1),s=t.ref(!1),c=t.ref(-1),m=t.ref(""),v=t.ref(!1),u=t.ref(!1);let p=null,y=null,g,S,P,k=null,z,T,b,h;const B=t.ref(null),F=t.ref(null),O=t.ref(null),N=t.ref(null),X=t.ref(null),C=Pn(e),w=$n(_l),_=t.computed(()=>Array.isArray(e.options)?e.options.length:0),q=t.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:V,virtualScrollSliceSizeComputed:A,localResetVirtualScroll:U,padVirtualScroll:x,onVirtualScrollEvt:R,scrollTo:Y,setVirtualScrollSize:Z}=fa({virtualScrollLength:_,getVirtualScrollTarget:za,getVirtualScrollEl:ql,virtualScrollItemSizeComputed:q}),d=Pt(),E=t.computed(()=>{const r=e.mapOptions&&!e.multiple,M=e.modelValue!==void 0&&(e.modelValue!==null||r)?e.multiple&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions&&Array.isArray(e.options)){const L=e.mapOptions&&g!==void 0?g:[],Q=M.map(J=>Ia(J,L));return e.modelValue===null&&r?Q.filter(J=>J!==null):Q}return M}),H=t.computed(()=>{const r={};return va.forEach(M=>{const L=e[M];L!==void 0&&(r[M]=L)}),r}),K=t.computed(()=>e.optionsDark===null?d.isDark.value:e.optionsDark),I=t.computed(()=>Ze(E.value)),$=t.computed(()=>{let r="q-field__input q-placeholder col";return e.hideSelected||E.value.length===0?[r,e.inputClass]:(r+=" q-field__input--padding",e.inputClass===void 0?r:[r,e.inputClass])}),f=t.computed(()=>(e.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),W=t.computed(()=>_.value===0),j=t.computed(()=>E.value.map(r=>se.value(r)).join(", ")),D=t.computed(()=>e.displayValue!==void 0?e.displayValue:j.value),oe=t.computed(()=>e.optionsHtml?()=>!0:r=>(r==null?void 0:r.html)===!0),be=t.computed(()=>e.displayValueHtml||e.displayValue===void 0&&(e.optionsHtml||E.value.some(oe.value))),re=t.computed(()=>d.focused.value?e.tabindex:-1),bt=t.computed(()=>{const r={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly?"true":"false","aria-autocomplete":e.useInput?"list":"none","aria-expanded":a.value?"true":"false","aria-controls":`${d.targetUid.value}_lb`};return c.value>=0&&(r["aria-activedescendant"]=`${d.targetUid.value}_${c.value}`),r}),Ce=t.computed(()=>({id:`${d.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple?"true":"false"})),Ee=t.computed(()=>E.value.map((r,M)=>({index:M,opt:r,html:oe.value(r),selected:!0,removeAtIndex:Oa,toggleOption:qe,tabindex:re.value}))),yt=t.computed(()=>{if(_.value===0)return[];const{from:r,to:M}=V.value;return e.options.slice(r,M).map((L,Q)=>{const J=Oe.value(L)===!0,te=Yt(L),G=r+Q,ne={clickable:!0,active:te,activeClass:lt.value,manualFocus:!0,focused:!1,disable:J,tabindex:-1,dense:e.optionsDense,dark:K.value,role:"option","aria-selected":te?"true":"false",id:`${d.targetUid.value}_${G}`,onClick:()=>{qe(L)}};return J||(c.value===G&&(ne.focused=!0),i.platform.is.desktop&&(ne.onMousemove=()=>{a.value&&Ie(G)})),{index:G,opt:L,html:oe.value(L),label:se.value(L),selected:ne.active,focused:ne.focused,toggleOption:qe,setOptionIndex:Ie,itemProps:ne}})}),nt=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:i.iconSet.arrow.dropdown),Qt=t.computed(()=>!e.optionsCover&&!e.outlined&&!e.standout&&!e.borderless&&!e.rounded),lt=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),pe=t.computed(()=>Kt(e.optionValue,"value")),se=t.computed(()=>Kt(e.optionLabel,"label")),Oe=t.computed(()=>Kt(e.optionDisable,"disable")),wt=t.computed(()=>E.value.map(pe.value)),$a=t.computed(()=>{const r={onInput:_l,onChange:w,onKeydown:El,onKeyup:xl,onKeypress:Cl,onFocus:kl,onClick(M){S&&he(M)}};return r.onCompositionstart=r.onCompositionupdate=r.onCompositionend=w,r});t.watch(E,r=>{g=r,e.useInput&&e.fillInput&&!e.multiple&&!d.innerLoading.value&&(!s.value&&!a.value||!I.value)&&(P||He(),(s.value||a.value)&&ze(""))},{immediate:!0}),t.watch(()=>e.fillInput,He),t.watch(a,Zt),t.watch(_,Ja);function yl(r){return e.emitValue?pe.value(r):r}function Xt(r){if(r!==-1&&r<E.value.length)if(e.multiple){const M=[...e.modelValue];l("remove",{index:r,value:M.splice(r,1)[0]}),l("update:modelValue",M)}else l("update:modelValue",null)}function Oa(r){Xt(r),d.focus()}function wl(r,M){const L=yl(r);if(!e.multiple){e.fillInput&&ot(se.value(r),!0,!0),l("update:modelValue",L);return}if(E.value.length===0){l("add",{index:0,value:L}),l("update:modelValue",e.multiple?[L]:L);return}if(M&&Yt(r)||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const Q=[...e.modelValue];l("add",{index:Q.length,value:L}),Q.push(L),l("update:modelValue",Q)}function qe(r,M){var te;if(!d.editable.value||r===void 0||Oe.value(r)===!0)return;const L=pe.value(r);if(!e.multiple){M||(ot(e.fillInput?se.value(r):"",!0,!0),Ve()),(te=F.value)==null||te.focus(),(E.value.length===0||!ye(pe.value(E.value[0]),L))&&l("update:modelValue",e.emitValue?L:r);return}if((!S||v.value)&&d.focus(),kl(),E.value.length===0){const G=e.emitValue?L:r;l("add",{index:0,value:G}),l("update:modelValue",e.multiple?[G]:G);return}const Q=[...e.modelValue],J=wt.value.findIndex(G=>ye(G,L));if(J!==-1)l("remove",{index:J,value:Q.splice(J,1)[0]});else{if(e.maxValues!==void 0&&Q.length>=e.maxValues)return;const G=e.emitValue?L:r;l("add",{index:Q.length,value:G}),Q.push(G)}l("update:modelValue",Q)}function Ie(r){if(!i.platform.is.desktop)return;const M=r!==-1&&r<_.value?r:-1;c.value!==M&&(c.value=M)}function kt(r=1,M){if(a.value){let L=c.value;do L=hl(L+r,-1,_.value-1);while(L!==-1&&L!==c.value&&Oe.value(e.options[L])===!0);c.value!==L&&(Ie(L),Y(L),!M&&e.useInput&&e.fillInput&&St(L>=0?se.value(e.options[L]):z,!0))}}function Ia(r,M){const L=Q=>ye(pe.value(Q),r);return e.options.find(L)||M.find(L)||r}function Yt(r){const M=pe.value(r);return wt.value.find(L=>ye(L,M))!==void 0}function kl(r){e.useInput&&F.value!==null&&(r===void 0||F.value===r.target&&r.target.value===j.value)&&F.value.select()}function Sl(r){ke(r,27)&&a.value&&(he(r),Ve(),He()),l("keyup",r)}function xl(r){const{value:M}=r.target;if(r.keyCode!==void 0){Sl(r);return}if(r.target.value="",p!==null&&(clearTimeout(p),p=null),y!==null&&(clearTimeout(y),y=null),He(),typeof M=="string"&&M.length!==0){const L=M.toLocaleLowerCase(),Q=te=>{const G=e.options.find(ne=>String(te.value(ne)).toLocaleLowerCase()===L);return G===void 0?!1:(E.value.includes(G)?Ve():qe(G),!0)},J=te=>{!Q(pe)&&!te&&!Q(se)&&ze(M,!0,()=>J(!0))};J()}else d.clearValue(r)}function Cl(r){l("keypress",r)}function El(r){if(l("keydown",r),Bt(r))return;const M=m.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),L=!r.shiftKey&&!e.disableTabSelection&&!e.multiple&&(c.value!==-1||M);if(r.keyCode===27){de(r);return}if(r.keyCode===9&&!L){De();return}if(r.target===void 0||r.target.id!==d.targetUid.value||!d.editable.value)return;if(r.keyCode===40&&!d.innerLoading.value&&!a.value){ee(r),Ne();return}if(r.keyCode===8&&(e.useChips||e.clearable)&&!e.hideSelected&&m.value.length===0){e.multiple&&Array.isArray(e.modelValue)?Xt(e.modelValue.length-1):!e.multiple&&e.modelValue!==null&&l("update:modelValue",null);return}(r.keyCode===35||r.keyCode===36)&&(typeof m.value!="string"||m.value.length===0)&&(ee(r),c.value=-1,kt(r.keyCode===36?1:-1,e.multiple)),(r.keyCode===33||r.keyCode===34)&&A.value!==void 0&&(ee(r),c.value=Math.max(-1,Math.min(_.value,c.value+(r.keyCode===33?-1:1)*A.value.view)),kt(r.keyCode===33?1:-1,e.multiple)),(r.keyCode===38||r.keyCode===40)&&(ee(r),kt(r.keyCode===38?-1:1,e.multiple));const Q=_.value;if((b===void 0||h<Date.now())&&(b=""),Q>0&&!e.useInput&&r.key!==void 0&&r.key.length===1&&!r.altKey&&!r.ctrlKey&&!r.metaKey&&(r.keyCode!==32||b.length!==0)){a.value||Ne(r);const J=r.key.toLocaleLowerCase(),te=b.length===1&&b[0]===J;h=Date.now()+1500,te||(ee(r),b+=J);const G=new RegExp("^"+[...b].map(We=>ma.includes(We)?"\\"+We:We).join(".*"),"i");let ne=c.value;if(te||ne<0||!G.test(se.value(e.options[ne])))do ne=hl(ne+1,-1,Q-1);while(ne!==c.value&&(Oe.value(e.options[ne])===!0||!G.test(se.value(e.options[ne]))));c.value!==ne&&t.nextTick(()=>{Ie(ne),Y(ne),ne>=0&&e.useInput&&e.fillInput&&St(se.value(e.options[ne]),!0)});return}if(!(r.keyCode!==13&&(r.keyCode!==32||e.useInput||b!=="")&&(r.keyCode!==9||!L))){if(r.keyCode!==9&&ee(r),c.value!==-1&&c.value<Q){qe(e.options[c.value]);return}if(M){const J=(te,G)=>{var We;if(G){if(!pl(G))return}else G=e.newValueMode;if(ot("",!e.multiple,!0),te==null)return;(G==="toggle"?qe:wl)(te,G==="add-unique"),e.multiple||((We=F.value)==null||We.focus(),Ve())};if(e.onNewValue!==void 0?l("newValue",m.value,J):J(m.value),!e.multiple)return}a.value?De():d.innerLoading.value||Ne()}}function ql(){return S?X.value:O.value!==null&&O.value.contentEl!==null?O.value.contentEl:void 0}function za(){return ql()}function Da(){return e.hideSelected?[]:n["selected-item"]!==void 0?Ee.value.map(r=>n["selected-item"](r)):n.selected!==void 0?[n.selected()].flat():e.useChips?Ee.value.map((r,M)=>t.h(qi,{key:"option-"+M,removable:d.editable.value&&Oe.value(r.opt)!==!0,dense:!0,textColor:e.color,tabindex:re.value,onRemove(){r.removeAtIndex(M)}},()=>t.h("span",{class:"ellipsis",[r.html?"innerHTML":"textContent"]:se.value(r.opt)}))):[t.h("span",{class:"ellipsis",[be.value?"innerHTML":"textContent"]:D.value})]}function Vl(){if(W.value)return n["no-option"]!==void 0?n["no-option"]({inputValue:m.value}):void 0;const r=n.option!==void 0?n.option:L=>t.h(Vi,{key:L.index,...L.itemProps},()=>t.h(_i,()=>t.h(Bi,()=>t.h("span",{[L.html?"innerHTML":"textContent"]:L.label}))));let M=x("div",yt.value.map(r));return n["before-options"]!==void 0&&(M=[n["before-options"](),...M].flat()),we(n["after-options"],M)}function Na(r,M){const L=M?{...bt.value,...d.splitAttrs.attributes.value}:void 0,Q={ref:M?F:void 0,key:"i_t",class:$.value,style:e.inputStyle,value:m.value!==void 0?m.value:"",type:"search",...L,id:M?d.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":r===!0||e.autofocus||void 0,disabled:e.disable,readonly:e.readonly,...$a.value};return!r&&S&&(Array.isArray(Q.class)?Q.class=[...Q.class,"no-pointer-events"]:Q.class+=" no-pointer-events"),t.h("input",Q)}function _l(r){var M;p!==null&&(clearTimeout(p),p=null),y!==null&&(clearTimeout(y),y=null),!((M=r==null?void 0:r.target)!=null&&M.qComposing)&&(St(r.target.value||""),P=!0,z=m.value,!d.focused.value&&(!S||v.value)&&d.focus(),e.onFilter!==void 0&&(p=setTimeout(()=>{p=null,ze(m.value)},e.inputDebounce)))}function St(r,M){m.value!==r&&(y!==null&&(clearTimeout(y),y=null),m.value=r,M||e.inputDebounce===0||e.inputDebounce==="0"?l("inputValue",r):y=setTimeout(()=>{y=null,l("inputValue",r)},e.inputDebounce))}function ot(r,M,L){P=L!==!0,e.useInput&&(St(r,!0),(M||P)&&(z=r),M||ze(r))}function ze(r,M,L){if(e.onFilter===void 0||!M&&!d.focused.value)return;d.innerLoading.value?l("filterAbort"):(d.innerLoading.value=!0,u.value=!0),r!==""&&!e.multiple&&E.value.length!==0&&!P&&r===se.value(E.value[0])&&(r="");const Q=setTimeout(()=>{a.value&&(a.value=!1)},10);k!==null&&clearTimeout(k),k=Q,l("filter",r,(J,te)=>{(M||d.focused.value)&&k===Q&&(clearTimeout(k),typeof J=="function"&&J(),u.value=!1,t.nextTick(()=>{d.innerLoading.value=!1,d.editable.value&&(M?a.value&&Ve():a.value?Zt(!0):a.value=!0),typeof te=="function"&&t.nextTick(()=>{te(o)}),typeof L=="function"&&t.nextTick(()=>{L(o)})}))},()=>{d.focused.value&&k===Q&&(clearTimeout(k),d.innerLoading.value=!1,u.value=!1),a.value&&(a.value=!1)})}function Ha(){return t.h(oa,{ref:O,class:f.value,style:e.popupContentStyle,modelValue:a.value,fit:!e.menuShrink,cover:e.optionsCover&&!W.value&&!e.useInput,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:K.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:Qt.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...Ce.value,onScrollPassive:R,onBeforeShow:Ml,onBeforeHide:Wa,onShow:ja},Vl)}function Wa(r){Rl(r),De()}function ja(){Z()}function Ua(r){var M;he(r),(M=F.value)==null||M.focus(),v.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Ka(r){he(r),t.nextTick(()=>{v.value=!1})}function Qa(){const r=[t.h(Ci,{class:`col-auto ${d.fieldClass.value}`,...H.value,for:d.targetUid.value,dark:K.value,square:!0,loading:u.value,itemAligned:!1,filled:!0,stackLabel:m.value.length!==0,...d.splitAttrs.listeners.value,onFocus:Ua,onBlur:Ka},{...n,rawControl:()=>d.getControl(!0),before:void 0,after:void 0})];return a.value&&r.push(t.h("div",{ref:X,class:f.value+" scroll",style:e.popupContentStyle,...Ce.value,onClick:de,onScrollPassive:R},Vl())),t.h(ua,{ref:N,modelValue:s.value,position:e.useInput?"top":void 0,transitionShow:T,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Ml,onBeforeHide:Xa,onHide:Ya,onShow:Za},()=>t.h("div",{class:"q-select__dialog"+(K.value?" q-select__dialog--dark q-dark":"")+(v.value?" q-select__dialog--focused":"")},r))}function Xa(r){Rl(r),N.value!==null&&N.value.__updateRefocusTarget(d.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),d.focused.value=!1}function Ya(r){Ve(),d.focused.value||l("blur",r),He()}function Za(){const r=document.activeElement;(r===null||r.id!==d.targetUid.value)&&F.value!==null&&F.value!==r&&F.value.focus(),Z()}function De(){s.value||(c.value=-1,a.value&&(a.value=!1),d.focused.value||(k!==null&&(clearTimeout(k),k=null),d.innerLoading.value&&(l("filterAbort"),d.innerLoading.value=!1,u.value=!1)))}function Ne(r){d.editable.value&&(S?(d.onControlFocusin(r),s.value=!0,t.nextTick(()=>{d.focus()})):d.focus(),e.onFilter!==void 0?ze(m.value):(!W.value||n["no-option"]!==void 0)&&(a.value=!0))}function Ve(){s.value=!1,De()}function He(){e.useInput&&ot(!e.multiple&&e.fillInput&&E.value.length!==0&&se.value(E.value[0])||"",!0,!0)}function Zt(r){let M=-1;if(r){if(E.value.length!==0){const L=pe.value(E.value[0]);M=e.options.findIndex(Q=>ye(pe.value(Q),L))}U(M)}Ie(M)}function Ja(r,M){a.value&&!d.innerLoading.value&&(U(-1,!0),t.nextTick(()=>{a.value&&!d.innerLoading.value&&(r>M?U():Zt(!0))}))}function Bl(){var r;s.value||(r=O.value)==null||r.updatePosition()}function Ml(r){r!==void 0&&he(r),l("popupShow",r),d.hasPopupOpen=!0,d.onControlFocusin(r)}function Rl(r){r!==void 0&&he(r),l("popupHide",r),d.hasPopupOpen=!1,d.onControlFocusout(r)}function Tl(){S=!i.platform.is.mobile&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput?n["no-option"]!==void 0||e.onFilter!==void 0||!W.value:!0),T=i.platform.is.ios&&S&&e.useInput?"fade":e.transitionShow}return t.onBeforeUpdate(Tl),t.onUpdated(Bl),Tl(),t.onBeforeUnmount(()=>{p!==null&&clearTimeout(p),y!==null&&clearTimeout(y)}),Object.assign(o,{showPopup:Ne,hidePopup:Ve,removeAtIndex:Xt,add:wl,toggleOption:qe,getOptionIndex:()=>c.value,setOptionIndex:Ie,moveOptionSelection:kt,filter:ze,updateMenuPosition:Bl,updateInputValue:ot,isOptionSelected:Yt,getEmittingOptionValue:yl,isOptionDisabled:(...r)=>Oe.value(...r)===!0,getOptionValue:(...r)=>pe.value(...r),getOptionLabel:(...r)=>se.value(...r)}),Object.assign(d,{innerValue:E,fieldClass:t.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput?"":"out"}-input q-select--with${e.useChips?"":"out"}-chips q-select--${e.multiple?"multiple":"single"}`),inputRef:B,targetRef:F,hasValue:I,showPopup:Ne,floatingLabel:t.computed(()=>!e.hideSelected&&I.value||typeof m.value=="number"||m.value.length!==0||Ze(e.displayValue)),getControlChild:()=>{if(d.editable.value&&(s.value||!W.value||n["no-option"]!==void 0))return S?Qa():Ha();d.hasPopupOpen&&(d.hasPopupOpen=!1)},controlEvents:{onFocusin(r){d.onControlFocusin(r)},onFocusout(r){d.onControlFocusout(r,()=>{He(),De()})},onClick(r){var M;if(de(r),!S&&a.value){De(),(M=F.value)==null||M.focus();return}Ne(r)}},getControl:r=>{const M=Da(),L=r===!0||!s.value||!S;if(e.useInput)M.push(Na(r,L));else if(d.editable.value){const J=L?bt.value:void 0;M.push(t.h("input",{ref:L?F:void 0,key:"d_t",class:"q-select__focus-target",id:L?d.targetUid.value:void 0,value:D.value,readonly:!0,"data-autofocus":r===!0||e.autofocus||void 0,...J,onKeydown:El,onKeyup:Sl,onKeypress:Cl})),L&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&M.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:xl}))}if(C.value!==void 0&&!e.disable&&wt.value.length!==0){const J=wt.value.map(te=>t.h("option",{value:te,selected:!0}));M.push(t.h("select",{class:"hidden",name:C.value,multiple:e.multiple},J))}const Q=e.useInput||!L?void 0:d.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...Q,...d.splitAttrs.listeners.value},M)},getInnerAppend:()=>!e.loading&&!u.value&&!e.hideDropdownIcon?[t.h(ge,{class:"q-select__dropdown-icon"+(a.value?" rotate-180":""),name:nt.value})]:null}),$t(d)}});function bl(){return"widget_"+Date.now()+"_"+Math.random().toString(36).substr(2,9)}const ha={class:"u-designer"},pa={class:"u-designer-body"},ba={class:"u-designer-left"},ya={class:"component-list"},wa=["onClick"],ka={class:"u-designer-center"},Sa={class:"preview-area"},xa={class:"preview-content"},Ca=["onClick"],Ea={class:"widget-preview"},qa={class:"widget-label"},Va={class:"widget-actions"},_a={key:0,class:"empty-tip"},Ba={class:"u-designer-right"},Ma={key:0,class:"property-panel"},Ra={class:"property-section"},Ta={class:"property-section"},Fa={key:1,class:"empty-property"},Aa=It(t.defineComponent({__name:"UDesigner",props:{modelValue:{default:()=>({formConfig:{labelWidth:100,labelPosition:"left"},widgetList:[]})},components:{default:()=>[]}},emits:["update:modelValue"],setup(e,{expose:n,emit:l}){const o=e,i=l,a=t.reactive({formConfig:{labelWidth:100,labelPosition:"left"},widgetList:[],selectedWidget:null,selectedWidgetConfig:null}),s=T=>o.components.find(b=>b.type===T),c=t.computed(()=>o.components);(()=>{o.modelValue&&(a.formConfig=o.modelValue.formConfig||{labelWidth:100,labelPosition:"left"},a.widgetList=o.modelValue.widgetList||[])})();const v=()=>{const T={formConfig:a.formConfig,widgetList:a.widgetList};i("update:modelValue",T)},u=T=>{const b=s(T);if(!b)return;const h=T.toLowerCase()+"_"+Date.now(),B={id:bl(),type:T,field:h,label:b.label,props:{...b.defaultProps}};a.widgetList.push(B),p(B),v()},p=T=>{a.selectedWidget=T,a.selectedWidgetConfig=s(T.type)||null},y=(T,b)=>{var h;a.widgetList.splice(b,1),((h=a.selectedWidget)==null?void 0:h.id)===T.id&&(a.selectedWidget=null,a.selectedWidgetConfig=null),v()},g=(T,b)=>{a.selectedWidget&&(T==="label"?a.selectedWidget.label=b:T==="field"?a.selectedWidget.field=b:(a.selectedWidget.props=a.selectedWidget.props||{},a.selectedWidget.props[T]=b),v())},S=t.computed(()=>a.selectedWidgetConfig?a.selectedWidgetConfig.propertyConfig:[]),P=T=>{var b;if(a.selectedWidget)return T==="label"?a.selectedWidget.label:T==="field"?a.selectedWidget.field:(b=a.selectedWidget.props)==null?void 0:b[T]};return n({getFormJson:()=>({formConfig:a.formConfig,widgetList:a.widgetList}),setFormJson:T=>{a.formConfig=T.formConfig||{labelWidth:100,labelPosition:"left"},a.widgetList=T.widgetList||[],a.selectedWidget=null,a.selectedWidgetConfig=null}}),(T,b)=>(t.openBlock(),t.createElementBlock("div",ha,[b[8]||(b[8]=t.createElementVNode("div",{class:"u-designer-header"},[t.createElementVNode("div",{class:"header-title"},"UForm 表单设计器")],-1)),t.createElementVNode("div",pa,[t.createElementVNode("div",ba,[b[4]||(b[4]=t.createElementVNode("div",{class:"panel-title"},"组件列表",-1)),t.createElementVNode("div",ya,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,h=>(t.openBlock(),t.createElementBlock("div",{key:h.type,class:"component-item",onClick:B=>u(h.type)},[t.createVNode(ge,{name:h.icon,size:"20px"},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(h.label),1)],8,wa))),128))])]),t.createElementVNode("div",ka,[t.createElementVNode("div",Sa,[t.createElementVNode("div",xa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.widgetList,(h,B)=>{var F;return t.openBlock(),t.createElementBlock("div",{key:h.id,class:t.normalizeClass(["preview-widget",{selected:((F=a.selectedWidget)==null?void 0:F.id)===h.id}]),onClick:O=>p(h)},[t.createElementVNode("div",Ea,[t.createElementVNode("div",qa,t.toDisplayString(h.label||"未设置标签"),1),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(h.type),t.mergeProps({"model-value":null},{ref_for:!0},h.props,{disable:""}),null,16))]),t.createElementVNode("div",Va,[t.createVNode(yn,{flat:"",round:"",dense:"",icon:"delete",color:"negative",size:"sm",onClick:t.withModifiers(O=>y(h,B),["stop"])},null,8,["onClick"])])],10,Ca)}),128)),a.widgetList.length===0?(t.openBlock(),t.createElementBlock("div",_a," 点击左侧组件添加到表单 ")):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",Ba,[b[7]||(b[7]=t.createElementVNode("div",{class:"panel-title"},"属性配置",-1)),a.selectedWidget?(t.openBlock(),t.createElementBlock("div",Ma,[t.createElementVNode("div",Ra,[b[5]||(b[5]=t.createElementVNode("div",{class:"section-title"},"基础信息",-1)),t.createVNode(Je,{modelValue:a.selectedWidget.field,"onUpdate:modelValue":[b[0]||(b[0]=h=>a.selectedWidget.field=h),b[1]||(b[1]=h=>g("field",h))],label:"字段名",dense:"",outlined:""},null,8,["modelValue"]),t.createVNode(Je,{modelValue:a.selectedWidget.label,"onUpdate:modelValue":[b[2]||(b[2]=h=>a.selectedWidget.label=h),b[3]||(b[3]=h=>g("label",h))],label:"标签",dense:"",outlined:"",class:"q-mt-sm"},null,8,["modelValue"])]),t.createElementVNode("div",Ta,[b[6]||(b[6]=t.createElementVNode("div",{class:"section-title"},"组件属性",-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S.value,h=>(t.openBlock(),t.createElementBlock("div",{key:h.name,class:"property-item"},[h.type==="string"?(t.openBlock(),t.createBlock(Je,{key:0,"model-value":P(h.name),label:h.label,dense:"",outlined:"","onUpdate:modelValue":B=>g(h.name,B)},null,8,["model-value","label","onUpdate:modelValue"])):h.type==="number"?(t.openBlock(),t.createBlock(Je,{key:1,"model-value":P(h.name),label:h.label,type:"number",dense:"",outlined:"","onUpdate:modelValue":B=>g(h.name,B)},null,8,["model-value","label","onUpdate:modelValue"])):h.type==="boolean"?(t.openBlock(),t.createBlock(xi,{key:2,"model-value":P(h.name),label:h.label,"onUpdate:modelValue":B=>g(h.name,B)},null,8,["model-value","label","onUpdate:modelValue"])):h.type==="select"?(t.openBlock(),t.createBlock(ga,{key:3,"model-value":P(h.name),options:h.options||[],label:h.label,dense:"",outlined:"","emit-value":"","map-options":"","onUpdate:modelValue":B=>g(h.name,B)},null,8,["model-value","options","label","onUpdate:modelValue"])):t.createCommentVNode("",!0)]))),128))])])):(t.openBlock(),t.createElementBlock("div",Fa," 请选择左侧组件进行配置 "))])])]))}}),[["__scopeId","data-v-788c0eff"]]),La={class:"u-form-render"},Pa=It(t.defineComponent({__name:"URender",props:{formJson:{default:()=>({formConfig:{labelWidth:100,labelPosition:"left"},widgetList:[]})},formData:{default:()=>({})},optionData:{default:()=>({})}},setup(e,{expose:n}){const l=e,o=t.reactive({formData:{},widgetList:[],formConfig:{labelWidth:100,labelPosition:"left"}}),i=()=>{l.formJson&&(o.formConfig=l.formJson.formConfig||{labelWidth:100,labelPosition:"left"},o.widgetList=l.formJson.widgetList||[]),o.formData={...l.formData}};t.watch(()=>l.formJson,()=>{i()},{immediate:!0,deep:!0}),t.watch(()=>l.formData,m=>{o.formData={...m}},{immediate:!0,deep:!0});const a=t.computed(()=>o.formConfig.labelPosition==="top"?"flex-direction: column":""),s=t.computed(()=>o.formConfig.labelPosition==="left"?`width: ${o.formConfig.labelWidth}px`:""),c=m=>{const v={...m.props};return v.options&&Array.isArray(v.options)&&(v.options=v.options.map(u=>typeof u=="object"&&u.label!==void 0&&u.value!==void 0?u:{label:u,value:u})),v};return n({getFormData:()=>Promise.resolve(o.formData),setFormData:m=>{o.formData={...m}},getFormJson:()=>({formConfig:o.formConfig,widgetList:o.widgetList}),setFormJson:m=>{o.formConfig=m.formConfig||{labelWidth:100,labelPosition:"left"},o.widgetList=m.widgetList||[]}}),(m,v)=>(t.openBlock(),t.createElementBlock("div",La,[t.createElementVNode("div",{class:"u-form-content",style:t.normalizeStyle(a.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.widgetList,u=>(t.openBlock(),t.createElementBlock("div",{key:u.id,class:"u-form-item"},[u.label?(t.openBlock(),t.createElementBlock("div",{key:0,class:"u-form-label",style:t.normalizeStyle(s.value)},t.toDisplayString(u.label),5)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["u-form-field",{"q-mt-sm":o.formConfig.labelPosition==="top"}])},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(u.type),t.mergeProps({modelValue:o.formData[u.field],"onUpdate:modelValue":p=>o.formData[u.field]=p},{ref_for:!0},c(u)),null,16,["modelValue","onUpdate:modelValue"]))],2)]))),128))],4)]))}}),[["__scopeId","data-v-da024573"]]);ce.LayoutOne=mo,ce.UDesigner=Aa,ce.UInput=hi,ce.URender=Pa,ce.generateId=bl,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .login-form[data-v-4c9f630c]{max-width:400px;margin:0 auto}
1
+ .u-input[data-v-f952dc62]{display:flex;width:100%}.u-input.u-input-label-left .u-input-label[data-v-f952dc62]{padding-top:10px;flex-shrink:0;text-align:right;padding-right:12px;font-size:14px;color:#606266}.u-input.u-input-label-left .u-input-field[data-v-f952dc62]{flex:1}.u-input.u-input-label-top[data-v-f952dc62]{flex-direction:column}.u-input.u-input-label-top .u-input-label[data-v-f952dc62]{font-size:14px;color:#606266;margin-bottom:4px}.u-designer[data-v-788c0eff]{display:flex;flex-direction:column;height:100%;width:100%;background:#f5f5f5}.u-designer-header[data-v-788c0eff]{height:50px;background:#fff;border-bottom:1px solid #e8e8e8;display:flex;align-items:center;padding:0 16px}.u-designer-header .header-title[data-v-788c0eff]{font-size:16px;font-weight:600;color:#333}.u-designer-body[data-v-788c0eff]{flex:1;display:flex;overflow:hidden}.u-designer-left[data-v-788c0eff]{width:200px;background:#fff;border-right:1px solid #e8e8e8;display:flex;flex-direction:column}.u-designer-left .panel-title[data-v-788c0eff]{padding:12px;font-size:14px;font-weight:600;color:#333;border-bottom:1px solid #e8e8e8}.u-designer-left .component-list[data-v-788c0eff]{flex:1;overflow-y:auto;padding:8px}.u-designer-left .component-item[data-v-788c0eff]{display:flex;align-items:center;gap:8px;padding:10px 12px;margin-bottom:4px;border-radius:4px;cursor:pointer;transition:background .2s}.u-designer-left .component-item[data-v-788c0eff]:hover{background:#f0f7ff}.u-designer-left .component-item span[data-v-788c0eff]{font-size:13px;color:#333}.u-designer-center[data-v-788c0eff]{flex:1;display:flex;flex-direction:column;overflow:hidden}.u-designer-center .preview-area[data-v-788c0eff]{flex:1;overflow:auto;padding:20px}.u-designer-center .preview-content[data-v-788c0eff]{min-height:100%;background:#fff;border-radius:4px;padding:20px}.u-designer-center .preview-widget[data-v-788c0eff]{position:relative;padding:8px;margin-bottom:8px;border:2px solid transparent;border-radius:4px;cursor:pointer;transition:all .2s}.u-designer-center .preview-widget[data-v-788c0eff]:hover{border-color:#e8e8e8}.u-designer-center .preview-widget.selected[data-v-788c0eff]{border-color:#1976d2;background:#f0f7ff}.u-designer-center .preview-widget .widget-preview[data-v-788c0eff]{display:flex;align-items:center;gap:12px}.u-designer-center .preview-widget .widget-label[data-v-788c0eff]{min-width:80px;text-align:right;font-size:14px;color:#606266}.u-designer-center .preview-widget .widget-actions[data-v-788c0eff]{position:absolute;top:4px;right:4px;display:none}.u-designer-center .preview-widget:hover .widget-actions[data-v-788c0eff]{display:block}.u-designer-center .empty-tip[data-v-788c0eff]{text-align:center;padding:60px 20px;color:#999;font-size:14px}.u-designer-right[data-v-788c0eff]{width:280px;background:#fff;border-left:1px solid #e8e8e8;display:flex;flex-direction:column}.u-designer-right .panel-title[data-v-788c0eff]{padding:12px;font-size:14px;font-weight:600;color:#333;border-bottom:1px solid #e8e8e8}.u-designer-right .property-panel[data-v-788c0eff]{flex:1;overflow-y:auto;padding:12px}.u-designer-right .property-section[data-v-788c0eff]{margin-bottom:16px}.u-designer-right .property-section .section-title[data-v-788c0eff]{font-size:13px;font-weight:600;color:#333;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #f0f0f0}.u-designer-right .property-section .property-item[data-v-788c0eff]{margin-bottom:12px}.u-designer-right .empty-property[data-v-788c0eff]{flex:1;display:flex;align-items:center;justify-content:center;color:#999;font-size:13px}.u-form-render[data-v-da024573]{width:100%;padding:16px}.u-form-content[data-v-da024573]{display:flex;flex-wrap:wrap;gap:16px}.u-form-item[data-v-da024573]{display:flex;align-items:center;width:100%}.u-form-item.label-top[data-v-da024573]{flex-direction:column;align-items:flex-start}.u-form-label[data-v-da024573]{flex-shrink:0;text-align:right;padding-right:12px;font-size:14px;color:#606266}.u-form-field[data-v-da024573]{flex:1}
@@ -0,0 +1,32 @@
1
+ import { ComponentRegister } from './designer-components';
2
+ interface LayoutWidget {
3
+ id: string;
4
+ type: string;
5
+ field: string;
6
+ label: string;
7
+ props: Record<string, any>;
8
+ }
9
+ interface FormConfig {
10
+ labelWidth: number;
11
+ labelPosition: 'left' | 'top';
12
+ }
13
+ interface UFormJson {
14
+ formConfig: FormConfig;
15
+ widgetList: LayoutWidget[];
16
+ }
17
+ interface Props {
18
+ modelValue?: UFormJson;
19
+ components?: ComponentRegister[];
20
+ }
21
+ declare const _default: import('vue').DefineComponent<Props, {
22
+ getFormJson: () => UFormJson;
23
+ setFormJson: (json: UFormJson) => void;
24
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ "update:modelValue": (value: UFormJson) => any;
26
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
27
+ "onUpdate:modelValue"?: ((value: UFormJson) => any) | undefined;
28
+ }>, {
29
+ modelValue: UFormJson;
30
+ components: ComponentRegister[];
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
32
+ export default _default;
@@ -0,0 +1,43 @@
1
+ interface LayoutWidget {
2
+ id: string;
3
+ type: string;
4
+ field: string;
5
+ label: string;
6
+ props: Record<string, any>;
7
+ }
8
+ interface FormConfig {
9
+ labelWidth: number;
10
+ labelPosition: 'left' | 'top';
11
+ }
12
+ interface UFormJson {
13
+ formConfig: FormConfig;
14
+ widgetList: LayoutWidget[];
15
+ }
16
+ interface Props {
17
+ formJson?: UFormJson;
18
+ formData?: Record<string, any>;
19
+ optionData?: Record<string, any>;
20
+ }
21
+ declare const _default: import('vue').DefineComponent<Props, {
22
+ getFormData: () => Promise<Record<string, any>>;
23
+ setFormData: (formData: Record<string, any>) => void;
24
+ getFormJson: () => {
25
+ formConfig: {
26
+ labelWidth: number;
27
+ labelPosition: "left" | "top";
28
+ };
29
+ widgetList: {
30
+ id: string;
31
+ type: string;
32
+ field: string;
33
+ label: string;
34
+ props: Record<string, any>;
35
+ }[];
36
+ };
37
+ setFormJson: (json: UFormJson) => void;
38
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
39
+ formJson: UFormJson;
40
+ formData: Record<string, any>;
41
+ optionData: Record<string, any>;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
43
+ export default _default;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * UForm 设计器组件注册表 - 类型定义
3
+ * 具体组件配置由使用方通过 prop 传入
4
+ */
5
+ export interface PropertyConfig {
6
+ name: string;
7
+ label: string;
8
+ type: 'string' | 'number' | 'boolean' | 'select' | 'keyValueArray' | 'function';
9
+ options?: {
10
+ label: string;
11
+ value: string;
12
+ }[];
13
+ defaultValue?: any;
14
+ }
15
+ export interface ComponentRegister {
16
+ type: string;
17
+ label: string;
18
+ icon: string;
19
+ defaultProps: Record<string, any>;
20
+ propertyConfig: PropertyConfig[];
21
+ }
22
+ export declare function generateId(): string;