1import{d as _,a as h,c as f,H as w,I as b,J as s,S as p,X as M,Y as B,u as t,k as S,O as d,L as x,ab as E,ac as F}from"./Cr47uziw.js";import{u as L,a as H}from"./BkH3AjRg.js";import{p as k,o as T}from"./Ctl4kiqy.js";const I=r=>(E("data-v-1984fb82"),r=r(),F(),r),V=["for"],$=["id","name"],A=I(()=>s("svg",{width:"20",height:"2",viewBox:"0 0 20 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s("path",{d:"M0 1H20","stroke-width":"2"})],-1)),D=[A],N=I(()=>s("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},[s("path",{d:"M0 8.63989H18","stroke-width":"2"}),s("path",{d:"M8.64001 0L8.64001 18","stroke-width":"2"})],-1)),j=[N],q={key:0,class:"error"},z=_({__name:"Counter",props:{newIndex:{},data:{},header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{}},setup(r){const o=r;h();const i=h(!1);function g(){a.value>1&&a.value--}function y(){a.value<6&&a.value++}const{value:a,meta:c,errorMessage:l}=L(o.data.name+(o.newIndex?"-"+o.newIndex:""),o.data.label.mandatory?k().required():k());a.value=2;const u=f(()=>{if(!l.value)return"";if(!o.data.label.title)return l;const e=l.value.split(" ");return e[0]=o.data.label.title,e.join(" ")}),C=H(),v=f(()=>c.dirty||c.validated||C.value);return(e,n)=>(w(),b("div",{class:d(["item",["item-"+e.data.marker+(e.newIndex?"-"+e.newIndex:""),e.data.css]])},[s("label",{for:"field-"+e.data.marker,ref:"label",class:"hasContent"},p(e.data.label.title)+p(e.data.label.mandatory?"*":""),9,V),M(s("input",{id:"field-"+e.data.marker,"onUpdate:modelValue":n[0]||(n[0]=m=>S(a)?a.value=m:null),name:e.data.name+(e.newIndex?"-"+e.newIndex:""),type:"input",onFocus:n[1]||(n[1]=m=>i.value=!0),onBlur:n[2]||(n[2]=m=>i.value=!1),class:d([t(v)&&t(u)?"hasError":"",t(i)?"active":""]),readonly:""},null,42,$),[[B,t(a)]]),s("div",{onClick:g,class:d(["minus",t(a)==1?"disable":""])},D,2),s("div",{onClick:y,class:d(["plus",t(a)==6?"disable":""])},j,2),t(v)&&t(u)?(w(),b("div",q,p(t(u)),1)):x("",!0)],2))}}),R=T(z,[["__scopeId","data-v-1984fb82"]]);export{R 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.