import{d as ge,i as I,o as w,c as b,r as xe,j as ye,m as B,f,b as l,O as ee,Z as te,$ as we,G as ae,a$ as le,x as k,Q as ne,S as be,cb as J,aZ as Ve,aR as ke,bA as pe,k as Ae,C as V,l as Fe,bP as Pe,p as _,F as E,ag as K,aN as Ce,ak as j,aI as Z,c5 as Le,cc as Se,al as Me,b0 as Ne}from"./kxFIDuEf.js";import{d as Re,e as Ie,f as Ze,c as Be,g as X,h as Y,i as He,j as ze,k as De,l as Te,n as $e}from"./DZ3mrERK.js";const Ge=["width","height","fill","transform"],_e={key:0},Ee=l("path",{d:"M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z"},null,-1),je=[Ee],Ue={key:1},qe=l("path",{d:"M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z",opacity:"0.2"},null,-1),Oe=l("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"},null,-1),We=[qe,Oe],Qe={key:2},Je=l("path",{d:"M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z"},null,-1),Ke=[Je],Xe={key:3},Ye=l("path",{d:"M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z"},null,-1),et=[Ye],tt={key:4},at=l("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"},null,-1),lt=[at],nt={key:5},ot=l("path",{d:"M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z"},null,-1),ut=[ot],rt={name:"PhPaperPlaneTilt"},ft=ge({...rt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const s=e,v=I("weight","regular"),m=I("size","1em"),u=I("color","currentColor"),a=I("mirrored",!1),n=f(()=>s.weight??v),p=f(()=>s.size??m),h=f(()=>s.color??u),i=f(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:a?"scale(-1, 1)":void 0);return(r,L)=>(w(),b("svg",B({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:h.value,transform:i.value},r.$attrs),[xe(r.$slots,"default"),n.value==="bold"?(w(),b("g",_e,je)):n.value==="duotone"?(w(),b("g",Ue,We)):n.value==="fill"?(w(),b("g",Qe,Ke)):n.value==="light"?(w(),b("g",Xe,et)):n.value==="regular"?(w(),b("g",tt,lt)):n.value==="thin"?(w(),b("g",nt,ut)):ye("",!0)],16,Ge))}}),it=ne({...be(),...Ie()},"VForm"),vt=ee()({name:"VForm",props:it(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,s){let{slots:v,emit:m}=s;const u=Re(e),a=k();function n(h){h.preventDefault(),u.reset()}function p(h){const i=h,r=u.validate();i.then=r.then.bind(r),i.catch=r.catch.bind(r),i.finally=r.finally.bind(r),m("submit",i),i.defaultPrevented||r.then(L=>{let{valid:S}=L;S&&a.value?.submit()}),i.preventDefault()}return te(()=>l("form",{ref:a,class:ae(["v-form",e.class]),style:we(e.style),novalidate:!0,onReset:n,onSubmit:p},[v.default?.(u)])),le(u,a)}}),st=ne({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxHeight:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...Te(),...Ne(De(),["direction"]),...ze()},"VTextarea"),mt=ee()({name:"VTextarea",directives:{vIntersect:J},inheritAttrs:!1,props:st(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,"update:rows":e=>!0},setup(e,s){let{attrs:v,emit:m,slots:u}=s;const a=Ve(e,"modelValue"),{isFocused:n,focus:p,blur:h}=Ze(e),{onIntersect:i}=$e(e),r=f(()=>typeof e.counterValue=="function"?e.counterValue(a.value):(a.value||"").toString().length),L=f(()=>{if(v.maxlength)return v.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),S=k(),M=k(),U=Me(""),A=k(),H=k(0),{platform:oe}=ke(),N=Be(e),ue=f(()=>e.persistentPlaceholder||n.value||e.active);function z(){N.isSuppressing.value&&N.update(),A.value!==document.activeElement&&A.value?.focus(),n.value||p()}function re(t){z(),m("click:control",t)}function ie(t){m("mousedown:control",t)}function se(t){t.stopPropagation(),z(),Z(()=>{a.value="",Se(e["onClick:clear"],t)})}function ce(t){const o=t.target;if(!e.modelModifiers?.trim){a.value=o.value;return}const c=o.value,P=o.selectionStart,x=o.selectionEnd;a.value=c,Z(()=>{let y=0;c.trimStart().length===o.value.length&&(y=c.length-o.value.length),P!=null&&(o.selectionStart=P-y),x!=null&&(o.selectionEnd=x-y)})}const F=k(),C=k(Number(e.rows)),D=f(()=>["plain","underlined"].includes(e.variant));pe(()=>{e.autoGrow||(C.value=Number(e.rows))});function g(){Z(()=>{if(!A.value)return;if(oe.value.firefox){H.value=12;return}const{offsetWidth:t,clientWidth:o}=A.value;H.value=Math.max(0,t-o)}),e.autoGrow&&Z(()=>{if(!F.value||!M.value)return;const t=getComputedStyle(F.value),o=getComputedStyle(M.value.$el),c=parseFloat(t.getPropertyValue("--v-field-padding-top"))+parseFloat(t.getPropertyValue("--v-input-padding-top"))+parseFloat(t.getPropertyValue("--v-field-padding-bottom")),P=F.value.scrollHeight,x=parseFloat(t.lineHeight),y=Math.max(parseFloat(e.rows)*x+c,parseFloat(o.getPropertyValue("--v-input-control-height"))),T=e.maxHeight?parseFloat(e.maxHeight):parseFloat(e.maxRows)*x+c||1/0,d=Le(P??0,y,T);C.value=Math.floor((d-c)/x),U.value=j(d)})}Ae(g),V(a,g),V(()=>e.rows,g),V(()=>e.maxHeight,g),V(()=>e.maxRows,g),V(()=>e.density,g),V(C,t=>{m("update:rows",t)});let R;return V(F,t=>{t?(R=new ResizeObserver(g),R.observe(F.value)):R?.disconnect()}),Fe(()=>{R?.disconnect()}),te(()=>{const t=!!(u.counter||e.counter||e.counterValue),o=!!(t||u.details),[c,P]=Pe(v),{modelValue:x,...y}=X.filterProps(e),T={...Y.filterProps(e),"onClick:clear":se};return _(X,B({ref:S,modelValue:a.value,"onUpdate:modelValue":d=>a.value=d,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":D.value},e.class],style:[{"--v-textarea-max-height":e.maxHeight?j(e.maxHeight):void 0,"--v-textarea-scroll-bar-width":j(H.value)},e.style]},c,y,{centerAffix:C.value===1&&!D.value,focused:n.value}),{...u,default:d=>{let{id:$,isDisabled:q,isDirty:O,isReadonly:de,isValid:fe,hasDetails:ve}=d;return _(Y,B({ref:M,style:{"--v-textarea-control-height":U.value},onClick:re,onMousedown:ie,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},T,{id:$.value,active:ue.value||O.value,labelId:`${$.value}-label`,centerAffix:C.value===1&&!D.value,dirty:O.value||e.dirty,disabled:q.value,focused:n.value,details:ve.value,error:fe.value===!1}),{...u,default:me=>{let{props:{class:W,...Q},controlRef:he}=me;return l(E,null,[e.prefix&&l("span",{class:"v-text-field__prefix"},[e.prefix]),K(l("textarea",B({ref:G=>A.value=he.value=G,class:W,value:a.value,onInput:ce,autofocus:e.autofocus,readonly:de.value,disabled:q.value,placeholder:e.placeholder,rows:e.rows,name:N.fieldName.value,autocomplete:N.fieldAutocomplete.value,onFocus:z,onBlur:h,"aria-labelledby":`${$.value}-label`},Q,P),null),[[J,{handler:i},null,{once:!0}]]),e.autoGrow&&K(l("textarea",{class:ae([W,"v-textarea__sizer"]),id:`${Q.id}-sizer`,"onUpdate:modelValue":G=>a.value=G,ref:F,readonly:!0,"aria-hidden":"true"},null),[[Ce,a.value]]),e.suffix&&l("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:o?d=>l(E,null,[u.details?.(d),t&&l(E,null,[l("span",null,null),_(He,{active:e.persistentCounter||n.value,value:r.value,max:L.value,disabled:e.disabled},u.counter)])]):void 0})}),le({},S,M,A)}});export{ft as G,vt as V,mt as a};