urit-qf-ui 0.0.2 → 0.0.4

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