1import{j as q,k as Ve,V as T,b as ye,p as be,q as we,m as oe,a as Pe,l as Ie,e as ee,f as Re,n as Ce,d as Fe,o as Se}from"./D_h5RvjD.js";import{y as J,p as L,D as Q,H as y,Q as S,bg as pe,O as ne,P as ue,j as H,F as r,S as M,r as V,T as ie,at as te,as as W,c7 as ae,az as ke,av as Ne,aT as He,a0 as h,bu as Ae,s as Ge,G as le,cq as Me,J as Te,E as j,n as G,l as ze,aq as Be}from"./DVsVXehQ.js";const $e=L({...Ve({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),Ee=J()({name:"VRadio",props:$e(),setup(e,p){let{slots:v}=p;return Q(()=>{const o=q.filterProps(e);return y(q,S(o,{class:["v-radio",e.class],style:e.style,type:"radio"}),v)}),{}}}),De=L({height:{type:[Number,String],default:"auto"},...W(oe(),["direction"]),...W(we(),["multiple"]),trueIcon:{type:te,default:"$radioOn"},falseIcon:{type:te,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),je=J()({name:"VRadioGroup",inheritAttrs:!1,props:De(),emits:{"update:modelValue":e=>!0},setup(e,p){let{attrs:v,slots:o}=p;const n=pe(),a=H(()=>e.id||`radio-group-${n}`),u=ne(e,"modelValue"),A=V();return Q(()=>{const[z,B]=ue(v),$=T.filterProps(e),D=q.filterProps(e),b=o.label?o.label({label:e.label,props:{for:a.value}}):e.label;return y(T,S({ref:A,class:["v-radio-group",e.class],style:e.style},z,$,{modelValue:u.value,"onUpdate:modelValue":s=>u.value=s,id:a.value}),{...o,default:s=>{let{id:w,messagesId:c,isDisabled:k,isReadonly:O}=s;return r(M,null,[b&&y(ye,{id:w.value},{default:()=>[b]}),y(be,S(D,{id:w.value,"aria-describedby":c.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:k.value,readonly:O.value,"aria-labelledby":b?w.value:void 0,multiple:!1},B,{modelValue:u.value,"onUpdate:modelValue":P=>u.value=P}),o)])}})}),ie({},A)}}),Oe=L({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,...Se(),...W(oe(),["direction"]),...Fe()},"VTextarea"),qe=J()({name:"VTextarea",directives:{vIntersect:ae},inheritAttrs:!1,props:Oe(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,"update:rows":e=>!0},setup(e,p){let{attrs:v,emit:o,slots:n}=p;const a=ne(e,"modelValue"),{isFocused:u,focus:A,blur:z}=Pe(e),{onIntersect:B}=Ce(e),$=H(()=>typeof e.counterValue=="function"?e.counterValue(a.value):(a.value||"").toString().length),D=H(()=>{if(v.maxlength)return v.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),b=V(),s=V(),w=Ge(""),c=V(),k=V(0),{platform:O}=ke(),P=Ie(e),re=H(()=>e.persistentPlaceholder||u.value||e.active);function U(){var t;P.isSuppressing.value&&P.update(),c.value!==document.activeElement&&((t=c.value)==null||t.focus()),u.value||A()}function se(t){U(),o("click:control",t)}function ce(t){o("mousedown:control",t)}function de(t){t.stopPropagation(),U(),G(()=>{a.value="",Be(e["onClick:clear"],t)})}function fe(t){var C;const l=t.target;if(!((C=e.modelModifiers)!=null&&C.trim)){a.value=l.value;return}const i=l.value,R=l.selectionStart,x=l.selectionEnd;a.value=i,G(()=>{let g=0;i.trimStart().length===l.value.length&&(g=i.length-l.value.length),R!=null&&(l.selectionStart=R-g),x!=null&&(l.selectionEnd=x-g)})}const I=V(),N=V(Number(e.rows)),_=H(()=>["plain","underlined"].includes(e.variant));Ne(()=>{e.autoGrow||(N.value=Number(e.rows))});function m(){G(()=>{if(!c.value)return;if(O.value.firefox){k.value=12;return}const{offsetWidth:t,clientWidth:l}=c.value;k.value=Math.max(0,t-l)}),e.autoGrow&&G(()=>{if(!I.value||!s.value)return;const t=getComputedStyle(I.value),l=getComputedStyle(s.value.$el),i=parseFloat(t.getPropertyValue("--v-field-padding-top"))+parseFloat(t.getPropertyValue("--v-input-padding-top"))+parseFloat(t.getPropertyValue("--v-field-padding-bottom")),R=I.value.scrollHeight,x=parseFloat(t.lineHeight),C=Math.max(parseFloat(e.rows)*x+i,parseFloat(l.getPropertyValue("--v-input-control-height"))),g=e.maxHeight?parseFloat(e.maxHeight):parseFloat(e.maxRows)*x+i||1/0,f=ze(R??0,C,g);N.value=Math.floor((f-i)/x),w.value=j(f)})}He(m),h(a,m),h(()=>e.rows,m),h(()=>e.maxHeight,m),h(()=>e.maxRows,m),h(()=>e.density,m),h(N,t=>{o("update:rows",t)});let d;return h(I,t=>{t?(d=new ResizeObserver(m),d.observe(I.value)):d==null||d.disconnect()}),Ae(()=>{d==null||d.disconnect()}),Q(()=>{const t=!!(n.counter||e.counter||e.counterValue),l=!!(t||n.details),[i,R]=ue(v),{modelValue:x,...C}=T.filterProps(e),g={...ee.filterProps(e),"onClick:clear":de};return y(T,S({ref:b,modelValue:a.value,"onUpdate:modelValue":f=>a.value=f,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":_.value},e.class],style:[{"--v-textarea-max-height":e.maxHeight?j(e.maxHeight):void 0,"--v-textarea-scroll-bar-width":j(k.value)},e.style]},i,C,{centerAffix:N.value===1&&!_.value,focused:u.value}),{...n,default:f=>{let{id:F,isDisabled:K,isDirty:X,isReadonly:ve,isValid:me,hasDetail
1s:xe}=f;return y(ee,S({ref:s,style:{"--v-textarea-control-height":w.value},onClick:se,onMousedown:ce,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},g,{id:F.value,active:re.value||X.value,labelId:`${F.value}-label`,centerAffix:N.value===1&&!_.value,dirty:X.value||e.dirty,disabled:K.value,focused:u.value,details:xe.value,error:me.value===!1}),{...n,default:ge=>{let{props:{class:Y,...Z},controlRef:he}=ge;return r(M,null,[e.prefix&&r("span",{class:"v-text-field__prefix"},[e.prefix]),le(r("textarea",S({ref:E=>c.value=he.value=E,class:Y,value:a.value,onInput:fe,autofocus:e.autofocus,readonly:ve.value,disabled:K.value,placeholder:e.placeholder,rows:e.rows,name:P.fieldName.value,autocomplete:P.fieldAutocomplete.value,onFocus:U,onBlur:z,"aria-labelledby":`${F.value}-label`},Z,R),null),[[ae,{handler:B},null,{once:!0}]]),e.autoGrow&&le(r("textarea",{class:Te([Y,"v-textarea__sizer"]),id:`${Z.id}-sizer`,"onUpdate:modelValue":E=>a.value=E,ref:I,readonly:!0,"aria-hidden":"true"},null),[[Me,a.value]]),e.suffix&&r("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:l?f=>{var F;return r(M,null,[(F=n.details)==null?void 0:F.call(n,f),t&&r(M,null,[r("span",null,null),y(Re,{active:e.persistentCounter||u.value,value:$.value,max:D.value,disabled:e.disabled},n.counter)])])}:void 0})}),ie({},b,s,c)}});export{je as V,Ee as a,qe as b};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.