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