1import{ck as M,bM as p,h9 as _,eu as b,bN as y,eE as r,c1 as h,bZ as G,g3 as I,gr as L,ge as o,dF as X,bG as s,aX as V,o as Y,b0 as N,gF as U,gT as Z,bO as g,bL as x,hc as B,ep as E,eX as v,aY as H,i as J}from"#entry";import{_ as Q}from"./Cxoz92W9.js";import{_ as W}from"./C3PsfALL.js";import{u as ee}from"./DHS2Yzvp.js";import{r as te}from"./DKRjjsMv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"production-273317172"};var l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="66fd7d79-1759-4d81-8cea-300d1bad4e8d",e._sentryDebugIdIdentifier="sentry-dbid-66fd7d79-1759-4d81-8cea-300d1bad4e8d")}catch{}})();const ae=M({__name:"ErrorMessage",props:{message:{},withoutMargin:{type:Boolean},withBackground:{type:Boolean},id:{}},setup(e){L(d=>({v4f760a46:o(f)}));const l=X(Y,null),f=s(()=>l?.value??"#df0037");return(d,n)=>{const c=V,u=Q;return e.message?(r(),p(u,{key:0,id:e.id,component:"p",size:"xs","no-margin":e.withoutMargin,class:b([{background:e.withBackground},"error-message"]),"aria-live":"polite",role:"alert"},{default:_(()=>[h(c,{name:"CircleAlert",size:16}),G(" "+I(e.message),1)]),_:1},8,["id","no-margin","class"])):y("",!0)}}}),oe=Object.assign(N(ae,[["__scopeId","data-v-8ef7d5a5"]]),{__name:"ErrorMessage"}),ne={class:"text-input"},se={key:0,class:"text-input__container"},re=["id","disabled","autofocus","type","value","placeholder","autocomplete","required","name","maxLength","enterkeyhint","tabindex","aria-errormessage"],le={key:1,class:"text-input__text-area"},de=["id","disabled","autofocus","type","value","placeholder","rows","maxLength","tabindex","required","aria-errormessage"],ue={class:"text-input__bottom-container"},ie={key:0,class:"text-input__text-area__max-character"},ce=M({__name:"TextInput",props:E({type:{default:"text"},value:{default:()=>{}},placeholder:{default:()=>{}},errorMessage:{default:()=>{}},smallErrorMessage:{type:Boolean,default:!1},toolTip:{default:()=>{}},id:{default:()=>{}},rows:{default:"4"},maxLength:{default:"500"},shouldShowCharacterCount:{type:Boolean,default:!1},autocomplete:{default:"on"},required:{type:Boolean,default:()=>{}},name:{default:()=>{}},enterkeyhint:{default:()=>{}},disabled:{type:Boolean,default:!1},uppercase:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:E(["keydown","click","blur","focus","enter-key-pressed","input"],["update:modelValue"]),setup(e,{expose:l,emit:f}){L(i=>({v818a4c62:o(O)}));const d=U(e,"modelValue"),n=f,c=v(),u=v(!1),m=v(!1);l({focus:()=>{c.value?.focus()},markAsTouched:()=>{m.value=!0}});const S=ee("reviews"),q=s(()=>u.value?"text":e.type),R=s(()=>u.value?"Eye":"EyeOff"),k=s(()=>!e.errorMessage),$=s(()=>e.type!=="textarea"),D=s(()=>e.type==="password"),O=s(()=>e.smallErrorMessage?"6px 0":void 0),j=s(()=>S.get("characters_left_content")),A=s(()=>te(j.value,{count:((Number(e.maxLength)||0)-(d.value?.length??0)).toString()})),w=i=>{d.value=i.target.value,n("input",i.target.value)},T=i=>{m.value=!0,n("blur",i)},{tabindex:C}=Z();return(i,t)=>{const F=V,K=H,z=oe,P=W;return r(),g("div",ne,[o($)?(r(),g("div",se,[x("input",{id:e.id,ref_key:"inputElementRef",ref:c,class:b(["text-input__input",{"text-input__input--error":!o(k)&&o(m),"text-input__input--uppercase":e.uppercase}]),disabled:e.disabled,autofocus:e.autofocus,type:o(q),value:e.value??d.value,placeholder:e.placeholder,autocomplete:e.autocomplete,required:e.required,name:e.name,maxLength:e.maxLength,enterkeyhint:e.enterkeyhint,tabindex:o(C),"aria-errormessage":e.id,onInput:w,onFocus:t[0]||(t[0]=a=>n("focus",a)),onBlur:t[1]||(t[1]=a=>T(a)),onClick:t[2]||(t[2]=a=>n("click",a)),onKeydown:[t[3]||(t[3]=a=>n("keydown",a)),t[4]||(t[4]=B(a=>n("enter-key-pressed"),["enter"]))]},null,42,re),o(D)?(r(),p(K,{key:0,"no-padding":"",class:"text-input__toggle-password-visibility",onClick:t[5]||(t[5]=a=>u.value=!o(u))},{default:_(()=>[h(F,{color:o(J).CloudGray,name:o(R)},null,8,["color","name"])]),_:1})):y("",!0)])):(r(),g("div",le,[x("textarea",{id:e.id,ref_key:"inputElementRef",ref:c,class:b(["text-input__input",{"text-input__input--error":!o(k)&&o(m)}]),disabled:e.disabled,autofocus:e.autofocus,type:e.type,value:e.value??d.value,placeholder:e.placeholder,rows:e.rows,maxLength:e.maxLength,tabindex:o(C),required:e.required,"aria-errormessage":e.id,onInput:w,onFocus:t[6]||(t[6]=a=>n("focus",a)),onBlur:t[7]||(t[7]=a=>T(a)),onClick:t[8]||(t[8]=a=>n("click",a)),onKeydown:[t[9]||(t[9]=a=>n("keydown",a)),t[10]||(t[10]=B(a=>n("enter-key-pressed"),["enter"]))]},null,42,de)])),x("div",ue,[x("div",null,[o(m)&&e.errorMessage?(r(),p(z,{key:0,id:e.id,class:"text-input__error",message:e.errorMessage},null,8,["id","message"])):y("",!0)]),e.shouldShowCharacterCount?(r(),g("p",ie,I(o(A)),1)):y("",!0)]),h(P,{message:e.toolTip,"max-width":"129px",alignment:"start"},null,8,["message"])])}}}),be=Object.assign(N(ce,[["__scopeId","data-v-e6b12e81"]]),{__name:"TextInput"});export{be as _,oe as a};
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.