1import{d as v,au as y,m as b,av as g,l as u,o as D,f as c,s as $,ay as M,e as d,k as p,as as k,t as B,p as C}from"./B2JktCjF.js";import{e as N}from"./xbmDV0f7.js";const V=["id","type","name","placeholder","maxlength","disabled"],q=["for"],P=v({__name:"FieldInput",props:y({data:{},hash:{}},{field:{default:""},fieldModifiers:{}}),emits:["update:field"],setup(n){const m=n,o=b(),i=g(n,"field"),l=u({get:()=>i.value,set:e=>{o.value=e}}),f=()=>{i.value=o.value},r=u(()=>{const{type:e}=m.data;return e==="tel"}),h=e=>{var t;const a=((t=e.clipboardData)==null?void 0:t.getData("Text"))||"";/^\d+$/.test(a)||e.preventDefault()};return(e,a)=>{var t;return D(),c("div",{class:C(["field-input",{required:e.data.required}])},[$(p("input",{id:`${e.hash}-${e.data.name}`,"onUpdate:modelValue":a[0]||(a[0]=s=>k(l)?l.value=s:null),type:e.data.type,name:e.data.name,placeholder:e.data.placeholder,maxlength:e.data.maxLength||void 0,disabled:(t=e.data)==null?void 0:t.disabled,onChange:f,onKeypress:a[1]||(a[1]=s=>d(r)&&d(N)(s)),onPaste:a[2]||(a[2]=s=>d(r)&&h(s))},null,40,V),[[M,d(l)]]),p("label",{for:`${e.hash}-${e.data.name}`},B(e.data.label),9,q)],2)}}});export{P 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.