1import{Gi as e,Jn as t,Or as n,Ur as r,W as i,Yn as a,_ as o,at as s,dn as c,en as l,f as u,fi as d,hi as f,jt as p,ln as m,m as h,un as g,ut as _,vi as v,w as y,xn as b}from"./resizeObserver-BbJgXUjD.js";import{a as x}from"./VAvatar-sTStluqN.js";import{l as S,n as C,t as w}from"./VInput-Dxb2zpnC.js";import{t as T}from"./forwardRefs-RiU8Uqxp.js";import{i as E,n as D,t as O}from"./VField-DJIGzJqH.js";var k=y({autocomplete:String},`autocomplete`);function A(e){let t=n(),r=f(0),i=v(()=>e.autocomplete===`suppress`),a=v(()=>{if(e.name)return i.value?`${e.name}-${t}-${r.value}`:e.name});return{isSuppressing:i,fieldAutocomplete:v(()=>i.value?`off`:e.autocomplete),fieldName:a,update:()=>r.value=new Date().getTime()}}function j(e){function t(t,n){if(!e.autofocus||!t)return;let r=n[0].target,i=r.matches(`input,textarea`)?r:r.querySelector(`input,textarea`);setTimeout(()=>i?.focus(),50)}return{onIntersect:t}}var M=[`color`,`file`,`time`,`date`,`datetime-local`,`week`,`month`],N=y({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,...k(),...p(C(),[`direction`]),...D()},`VTextField`),P=o()({name:`VTextField`,directives:{vIntersect:x},inheritAttrs:!1,props:N(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(n,{attrs:o,emit:f,slots:v}){let y=u(n,`modelValue`,void 0,e=>Object.is(e,-0)?`-0`:e),{isFocused:C,focus:D,blur:k}=S(n),{onIntersect:N}=j(n),P=g(()=>typeof n.counterValue==`function`?n.counterValue(y.value):typeof n.counterValue==`number`?n.counterValue:(y.value??``).toString().length),F=g(()=>{if(o.maxlength)return o.maxlength;if(!(!n.counter||typeof n.counter!=`number`&&typeof n.counter!=`string`))return n.counter}),I=g(()=>[`plain`,`underlined`].includes(n.variant)),L=d(),R=d(),z=d(),B=A(n),V=g(()=>M.includes(n.type)||n.persistentPlaceholder||C.value||n.active);function H(){B.isSuppressing.value&&B.update(),C.value||D(),a(()=>{z.value!==_()&&z.value?.focus()})}function U(e){f(`mousedown:control`,e),e.target!==z.value&&(H(),e.preventDefault())}function W(e){f(`click:control`,e)}function G(e,t){e.stopPropagation(),H(),a(()=>{t(),i(n[`onClick:clear`],e)})}function K(e){let t=e.target;if(!(n.modelModifiers?.trim&&[`text`,`search`,`password`,`tel`,`url`].includes(n.type))){y.value=t.value;return}let r=t.value,i=t.selectionStart,o=t.selectionEnd;y.value=r,a(()=>{let e=0;r.trimStart().length===t.value.length&&(e=r.length-t.value.length),i!=null&&(t.selectionStart=i-e),o!=null&&(t.selectionEnd=o-e)})}return h(()=>{let i=!!(v.counter||n.counter!==!1&&n.counter!=null),a=n.hideDetails!==!0&&!!(v.details||i&&(n.persistentCounter||n.hideDetails===!1||C.value)),[u,d]=s(o),{modelValue:f,...h}=w.filterProps(n),g=O.filterProps(n);return b(w,t({ref:L,modelValue:y.value,"onUpdate:modelValue":e=>y.value=e,class:[`v-text-field`,{"v-text-field--prefixed":n.prefix,"v-text-field--suffixed":n.suffix,"v-input--plain-underlined":I.value},n.class],style:n.style},u,h,{centerAffix:!I.value,focused:C.value,indentDetails:n.indentDetails??!I.value}),{...v,default:({id:i,isDisabled:a,isDirty:o,isReadonly:s,isValid:u,hasDetails:f,reset:h})=>b(O,t({ref:R,onMousedown:U,onClick:W,"onClick:clear":e=>G(e,h),role:n.role},p(g,[`onClick:clear`]),{id:i.value,labelId:`${i.value}-label`,active:V.value||o.value,dirty:o.value||n.dirty,disabled:a.value,focused:C.value,details:f.value,error:u.value===!1}),{...v,default:({props:{class:o,...u},controlRef:f})=>{let p=c(`input`,t({ref:e=>z.value=f.value=e,value:y.value,onInput:K,autofocus:n.autofocus,readonly:s.value,disabled:a.value,name:B.fieldName.value,autocomplete:B.fieldAutocomplete.value,placeholder:n.placeholder,size:1,role:n.role,type:n.type,onFocus:D,onBlur:k,"aria-labelledby":`${i.value}-label`},u,d),null);return c(l,null,[n.prefix&&c(`span`,{class:`v-text-field__prefix`},[c(`span`,{class:`v-text-field__prefix__text`},[n.prefix])]),r(v.default?c(`div`,{class:e(o),"data-no-activator":``},[v.default({id:i}),p]):m(p,{class:o}),[[x,N,null,{once:!0}]]),n.suffix&&c(`span`,{class:`v-text-field__suffix`}
1,[c(`span`,{class:`v-text-field__suffix__text`},[n.suffix])])])}}),details:a?e=>c(l,null,[v.details?.(e),i&&c(l,null,[c(`span`,null,null),b(E,{active:n.persistentCounter||C.value,value:P.value,max:F.value,disabled:n.disabled},v.counter)])]):void 0})}),T({},L,R,z)}});export{A as a,k as i,N as n,j as r,P as t};
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.