PageSourceSearch

https://reifen1plus.com/_nuxt/m5FEckKE.js

js reifen1plus.com collected 2026-10-09 23:15:21 UTC 3,297 bytes, 1 lines download raw bytes

1import{v as $,Z as z,R as _,w as D,ac as R,y as v,z as p,B as e,$ as A,A as g,H as E,F as q,D as x,a4 as L,J as d,K as M}from"./qHTv0qqf.js";import{f as T,J as Z}from"./bS0gHfOR.js";import"./ga_jkbhe.js";const j=["data-empty","data-invalid"],J=["for"],S={key:0},U=["id","name","type","inputmode","value","placeholder","aria-required","aria-describedby"],F={key:0},H=["id"],K=$({__name:"Text",props:L({label:{default:""},placeholder:{default:""},outerClass:{default:""},validation:{default:""},name:{default:null},type:{default:"text"}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(l){const a=z(l,"modelValue"),r=l,h=d(()=>r.validation?.includes("required")),t=M(""),s=M(""),f=d(()=>!!t.value),N=d(()=>!a.value),y=d(()=>`${s.value}-rule_required`),w=d(()=>r.type==="email"||r.type==="tel"?r.type:"text"),{t:i}=T(),u=()=>{if(t.value="",!r.validation)return!t.value;const c=r.validation.split("|"),n=r.label||i("validations.fieldDefault");for(const B of c){const[C,m]=B.split(":");let o=!1;switch(C){case"required":(!a.value||a.value.trim()==="")&&(t.value=i("validations.required",{fieldName:n}),o=!0);break;case"length":a.value.length<Number(m)&&(t.value=i("validations.minLength",{fieldName:n,min:m}),o=!0);break;case"maxLength":a.value.length>Number(m)&&(t.value=i("validations.maxLength",{fieldName:n,max:m}),o=!0);break;case"email":{const b=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;a.value&&!b.test(a.value)&&(t.value=i("validations.email",{fieldName:n}),o=!0);break}case"phone":{const b=/^[+]*[(]{0,1}[0-9]{1,3}[)]{0,1}[-\s./0-9]*$/;a.value&&!b.test(a.value)&&(t.value=i("validations.phone",{fieldName:n}),o=!0);break}}if(o)break}return!t.value},k=_("registerInput",void 0),I=_("unregisterInput",void 0);D(()=>{s.value=`input_${Math.random().toString(36).substring(2,9)}`,k&&k(u)}),R(()=>{I&&I(u)});const V=c=>{const n=c.target;a.value=n.value};return Z(a,()=>{u()},{debounce:300}),(c,n)=>(v(),p("div",{class:A(["group grow text-base data-[disabled]:select-none data-[disabled]:opacity-50",l.outerClass]),"data-family":"text","data-type":"text","data-empty":e(N),"data-invalid":e(f)?!0:void 0},[g("div",null,[l.label?(v(),p("label",{key:0,class:"text-primary mb-2 block text-xs leading-relaxed",for:l.name||e(s)},[E(q(l.label)+" ",1),e(h)?(v(),p("span",S,"*")):x("",!0)],8,J)):x("",!0),g("div",null,[g("input",{id:e(s),name:l.name||e(s),type:l.type,inputmode:e(w),value:a.value,placeholder:l.placeholder,"aria-required":e(h),"aria-describedby":e(f)?e(y):void 0,class:"border-dark group-data-[invalid]:border-alert-danger-text group-data-[invalid]:ring-alert-danger-text w-full appearance-none rounded-sm border p-4 text-base font-normal leading-normal [color-scheme:light] selection:bg-blue-100 selection:text-neutral-700 group-data-[disabled]:!cursor-not-allowed group-data-[disabled]:bg-neutral-100 group-data-[invalid]:ring-1 group-data-[has-overlay]:selection:!text-transparent",onInput:V,onBlur:u},null,40,U)])]),e(f)?(v(),p("ul",F,[g("li",{id:e(y),class:"text-alert-danger-text mt-2 text-xs leading-relaxed","data-message-type":"validation"},q(e(t)),9,H)])):x("",!0)],10,j))}}),Q=Object.assign(K,{__name:"UiInputText"});export{Q as default};

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.