1import{B as h,aQ as v,C as c,a7 as s,L as n,aE as b,aC as g,a5 as x,A as t,bb as w,aP as B,aB as q,aA as C,ac as p,ab as S,aR as V,aV as A,x as L,aU as M}from"./BPkh4YjI.js";import{aZ as P,T as d}from"./CedlswoG.js";const $={class:"relative flex-1"},k=["id","required","readonly","name","aria-required","aria-invalid","type","placeholder"],E=["for"],Y={key:1,class:"absolute right-2 top-1/2 h-full w-10 -translate-y-1/2 py-1.5"},T=h({inheritAttrs:!1,__name:"SFTextInput",props:V({placeholder:{},required:{type:Boolean,default:!1},type:{default:"text"},readonly:{type:Boolean,default:!1},name:{},hasErrors:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=v(e,"modelValue"),u=A("input"),{width:m}=P(u),f=c(()=>`text-input-${M()}`),o=L(!1),y=c(()=>o.value||!!a.value||e.type==="date");return(l,r)=>(s(),n("div",$,[b(g("input",x(l.$attrs,{id:f.value,ref_key:"input",ref:u,"onUpdate:modelValue":r[0]||(r[0]=i=>a.value=i),required:e.required,readonly:e.readonly,name:e.name,"aria-required":e.required,"aria-invalid":e.hasErrors,type:e.type,placeholder:e.placeholder,class:[...t(d).COPY_SMALL,"peer w-full border border-primary bg-white px-4 py-2 text-primary transition duration-100 input-white-autofill placeholder:text-transparent hover:border-primary hover:bg-white hover:ring-1 hover:ring-inset hover:ring-primary focus:border-primary focus:bg-white focus:text-primary focus:shadow-none focus:outline-none focus:ring-1 focus:ring-inset focus:ring-primary disabled:cursor-not-allowed disabled:!bg-secondary disabled:hover:!ring-0 disabled:focus:!ring-0",{"border-primary bg-white":a.value||e.type==="date","focus:border-primary focus:text-primary":e.readonly,"!border-error bg-white hover:!border-error hover:!ring-error focus:!border-error focus:!ring-error":e.hasErrors,"appearance-none [&::-webkit-date-and-time-value]:text-left":e.type==="date"}],onFocus:r[1]||(r[1]=i=>o.value=!0),onBlur:r[2]||(r[2]=i=>o.value=!1)}),null,16,k),[[w,a.value]]),e.placeholder?(s(),n("label",{key:0,for:f.value,class:q([...y.value?t(d).COPY_XSMALL:t(d).COPY_SMALL,"absolute left-2 top-2 w-full truncate pl-2.5 text-primary duration-100 ease-linear peer-placeholder-shown:translate-y-0 peer-placeholder-shown:text-primary peer-focus:ml-1 peer-focus:w-fit peer-focus:-translate-y-5 peer-focus:bg-white peer-focus:px-1.5 peer-focus:text-primary after:peer-focus:text-primary",{"after:ml-0.5 after:text-primary after:content-['*']":e.required,"!text-primary transition-none peer-focus:after:text-primary":e.readonly,"ml-1 !w-fit -translate-y-5 bg-white !px-1.5":a.value||e.type==="date"}]),style:B({maxWidth:`${t(m)}px`})},C(e.placeholder),15,E)):p("",!0),l.$slots["append-icon"]?(s(),n("div",Y,[S(l.$slots,"append-icon")])):p("",!0)]))}});export{T as _};
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.