1/* empty css */import{u as H}from"./kevin-Q8LvBuBg.js";import{V as T}from"./kevin-CGSS-05p.js";import{m as W}from"./kevin-DEr8lWyd.js";import{u as w,m as F}from"./kevin-DicFViZj.js";import{u as G,m as N}from"./kevin-DW0szGyv.js";import{I as k}from"./kevin-f2eE5WqY.js";import{a as U}from"./kevin-DWhRzmVM.js";import{p as j,m as q}from"./kevin-CIq1vGGh.js";import{u as J,m as K}from"./kevin-tUMchPzt.js";import{G as L,E as D}from"./kevin-C8_ZHURB.js";import{g as O}from"./kevin-BbiPaOZf.js";import{p as Q}from"./kevin-DyasVdS6.js";import{g as X}from"./kevin-cwhhdH6b.js";import{c as s,a}from"./kevin-CD5VQD_0.js";import{u as Y}from"./kevin-LPkgq5gk.js";const Z=Q({id:String,appendIcon:k,centerAffix:{type:Boolean,default:!0},prependIcon:k,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":D(),"onClick:append":D(),...W(),...F(),...L(N(),["maxWidth","minWidth","width"]),...q(),...
vendor: 1,838 bytes, line 1
1K()},"VInput"),ye=O()({name:"VInput",props:{...Z()},emits:{"update:modelValue":e=>!0},setup(e,P){let{attrs:ee,slots:t,emit:te}=P;const{densityClasses:C}=w(e),{dimensionStyles:S}=G(e),{themeClasses:_}=j(e),{rtlClasses:B}=U(),{InputIcon:l}=H(e),x=X(),o=s(()=>e.id||`input-${x}`),d=s(()=>`${o.value}-messages`),{errorMessages:r,isDirty:A,isDisabled:M,isReadonly:R,isPristine:u,isValid:m,isValidating:$,reset:p,resetValidation:c,validate:v,validationClasses:b}=J(e,"v-input",o),n=s(()=>({id:o,messagesId:d,isDirty:A,isDisabled:M,isReadonly:R,isPristine:u,isValid:m,isValidating:$,reset:p,resetValidation:c,validate:v})),f=s(()=>{var i;return(i=e.errorMessages)!=null&&i.length||!u.value&&r.value.length?r.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages});return Y(()=>{var h,y,I,V;const i=!!(t.prepend||e.prependIcon),z=!!(t.append||e.appendIcon),g=f.value.length>0,E=!e.hideDetails||e.hideDetails==="auto"&&(g||!!t.details);return a("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--hide-spin-buttons":e.hideSpinButtons},C.value,_.value,B.value,b.value,e.class],style:[S.value,e.style]},[i&&a("div",{key:"prepend",class:"v-input__prepend"},[(h=t.prepend)==null?void 0:h.call(t,n.value),e.prependIcon&&a(l,{key:"prepend-icon",name:"prepend"},null)]),t.default&&a("div",{class:"v-input__control"},[(y=t.default)==null?void 0:y.call(t,n.value)]),z&&a("div",{key:"append",class:"v-input__append"},[e.appendIcon&&a(l,{key:"append-icon",name:"append"},null),(I=t.append)==null?void 0:I.call(t,n.value)]),E&&a("div",{id:d.value,class:"v-input__details",role:"alert","aria-live":"polite"},[a(T,{active:g,messages:f.value},{message:t.message}),(V=t.details)==null?void 0:V.call(t,n.value)])])}),{reset:p,resetValidation:c,validate:v,isValid:m,errorMessages:r}}});export{ye as V,Z 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.