import{U as e,et as t}from"./dom-CdSnbvZ6.js";function n(e,t=250,n){let r=null;function i(){let i=arguments;r===null?n===!0&&e.apply(this,i):clearTimeout(r),r=setTimeout(()=>{r=null,n!==!0&&e.apply(this,i)},t)}return i.cancel=()=>{r!==null&&clearTimeout(r)},i}var r={transitionShow:{type:String,default:`fade`},transitionHide:{type:String,default:`fade`},transitionDuration:{type:[String,Number],default:300}};function i(t,n=()=>{},r=()=>{}){return{transitionProps:e(()=>{let e=`q-transition--${t.transitionShow||n()}`,i=`q-transition--${t.transitionHide||r()}`;return{appear:!0,enterFromClass:`${e}-enter-from`,enterActiveClass:`${e}-enter-active`,enterToClass:`${e}-enter-to`,leaveFromClass:`${i}-leave-from`,leaveActiveClass:`${i}-leave-active`,leaveToClass:`${i}-leave-to`}}),transitionStyle:e(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}var a=[],o=[];function s(e){o=o.filter(t=>t!==e)}function c(e){s(e),o.push(e)}function l(e){s(e),o.length===0&&a.length!==0&&(a[a.length-1](),a=[])}function u(e){o.length===0?e():a.push(e)}function d(e){a=a.filter(t=>t!==e)}var f={name:String};function p(t){return e(()=>({type:`hidden`,name:t.name,value:t.modelValue}))}function m(e={}){return(n,r,i)=>{n[r](t(`input`,{class:`hidden`+(i||``),...e.value}))}}function h(t){return e(()=>t.name||t.for)}export{u as a,l as c,n as d,f as i,i as l,m as n,c as o,h as r,d as s,p as t,r as u};