1import{u as ee,V as B,m as te,a as le,b as ae,c as ne}from"./j8SHfvfn.js";import{u as ue,V as T,m as oe}from"./B8gke7jp.js";import{f as ie}from"./C-GTDzx5.js";import{aa as se,ab as re,aG as ce,c as x,s as y,ad as de,bl as fe,j as h,au as C,k as n,F,b3 as ve,D as me,bm as xe,C as Ve,J as P,bn as be}from"./B7YjapCH.js";import{I as M}from"./D9ELuNzj.js";const ge=["color","file","time","date","datetime-local","week","month"],ye=re({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...le(),...oe(),...te()},"VTextField"),_e=se()({name:"VTextField",directives:{vIntersect:M},inheritAttrs:!1,props:ye(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,E){let{attrs:V,emit:k,slots:a}=E;const u=ce(e,"modelValue"),{isFocused:i,focus:_,blur:j}=ue(e),{onIntersect:z}=ne(e),O=x(()=>typeof e.counterValue=="function"?e.counterValue(u.value):typeof e.counterValue=="number"?e.counterValue:(u.value??"").toString().length),U=x(()=>{if(V.maxlength)return V.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),I=x(()=>["plain","underlined"].includes(e.variant)),S=y(),A=y(),s=y(),f=ee(e),$=x(()=>ge.includes(e.type)||e.persistentPlaceholder||i.value||e.active);function p(){f.isSuppressing.value&&f.update(),i.value||_(),P(()=>{var t;s.value!==document.activeElement&&((t=s.value)==null||t.focus())})}function G(t){k("mousedown:control",t),t.target!==s.value&&(p(),t.preventDefault())}function J(t){k("click:control",t)}function q(t,l){t.stopPropagation(),p(),P(()=>{l(),be(e["onClick:clear"],t)})}function H(t){var m;const l=t.target;if(!((m=e.modelModifiers)!=null&&m.trim&&["text","search","password","tel","url"].includes(e.type))){u.value=l.value;return}const r=l.value,v=l.selectionStart,b=l.selectionEnd;u.value=r,P(()=>{let c=0;r.trimStart().length===l.value.length&&(c=r.length-l.value.length),v!=null&&(l.selectionStart=v-c),b!=null&&(l.selectionEnd=b-c)})}return de(()=>{const t=!!(a.counter||e.counter!==!1&&e.counter!=null),l=!!(t||a.details),[r,v]=fe(V),{modelValue:b,...m}=T.filterProps(e),c=B.filterProps(e);return h(T,C({ref:S,modelValue:u.value,"onUpdate:modelValue":d=>u.value=d,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":I.value},e.class],style:e.style},r,m,{centerAffix:!I.value,focused:i.value}),{...a,default:d=>{let{id:o,isDisabled:w,isDirty:D,isReadonly:K,isValid:L,hasDetails:Q,reset:W}=d;return h(B,C({ref:A,onMousedown:G,onClick:J,"onClick:clear":g=>q(g,W),role:e.role},ve(c,["onClick:clear"]),{id:o.value,labelId:`${o.value}-label`,active:$.value||D.value,dirty:D.value||e.dirty,disabled:w.value,focused:i.value,details:Q.value,error:L.value===!1}),{...a,default:g=>{let{props:{class:N,...X},controlRef:Y}=g;const R=n("input",C({ref:Z=>s.value=Y.value=Z,value:u.value,onInput:H,autofocus:e.autofocus,readonly:K.value,disabled:w.value,name:f.fieldName.value,autocomplete:f.fieldAutocomplete.value,placeholder:e.placeholder,size:1,role:e.role,type:e.type,onFocus:_,onBlur:j,"aria-labelledby":`${o.value}-label`},X,v),null);return n(F,null,[e.prefix&&n("span",{class:"v-text-field__prefix"},[n("span",{class:"v-text-field__prefix__text"},[e.prefix])]),me(a.default?n("div",{class:Ve(N),"data-no-activator":""},[a.default({id:o}),R]):xe(R,{class:N}),[[M,z,null,{once:!0}]]),e.suffix&&n("span",{class:"v-text-field__suffix"},[n("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:l?d=>{var o;return n(F,null,[(o=a.details)==null?void 0:o.call(a,d),t&&n(F,null,[n("span",null,null),h(ae,{active:e.persistentCounter||i.value,value:O.value,max:U.value,disabled:e.disabled},a.counter)])])}:void 0})}),ie({},S,A,s)}});export{_e as V,ye as m};
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.