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