1import{_ as S,d as k,aC as l,a as L,aM as O,c as P,r as V,az as E,w as j,i as m,aN as D,l as r,m as s,t as F,j as e,v as _,y as q,p as G,C as R,aO as A,ai as $,F as B,x as T}from"./FormEditor.umd.min.DGrVv1kM.js";import{u as z}from"./useModelValue-y1UNnLaZ.B3VeuPfe.js";import{u as M}from"./useDisabledState-C6CxSzpO.dJ1h-0mE.js";import"./entry.0U_9hCsv.js";import"./resolver-bJ_E7iar.D6Na0EHx.js";import"./Globals-Dr6G6hh4.C5MCsFHU.js";import"./index-C-hbvIzN.HiXyrS-e.js";import"./useContextualRender-BV0pJqhZ.DaTf7YCl.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="3896530f-0284-44bd-bd1f-61a3915e8ce3",t._sentryDebugIdIdentifier="sentry-dbid-3896530f-0284-44bd-bd1f-61a3915e8ce3")}catch{}const K={class:"field"},U={class:"w-full flex flex-column align-items-baseline"},H=["for"],J={key:1,class:"vfe-message vfe-message-error"},Q=k({__name:"FEChips",props:{name:{type:String,required:!0,meta:{group:l.GENERAL,label:"Name",component:{type:"InputText"}}},inputId:{type:String,required:!0,meta:{group:l.GENERAL,label:"Input ID",component:{type:"InputText"}}},placeholder:{type:String,required:!1,meta:{group:l.GENERAL,label:"Placeholder",component:{type:"I18nEditor"}}},label:{type:String,required:!1,meta:{group:l.GENERAL,label:"Label",component:{type:"I18nEditor"}}},separator:{type:String,required:!1,meta:{group:l.GENERAL,label:"Separator",component:{type:"InputText",componentOptions:{}}}},elementId:{type:Object,required:!0},formIndex:{type:Number,required:!0},depth:{type:Number,required:!0},parentId:{type:Object,required:!1},events:{type:Object,required:!0},readOnly:{type:Boolean,required:!1,meta:{group:l.GENERAL,label:"Is element read only",component:{type:"InputSwitch",componentOptions:{binary:!0}}}}},setup(t){var n;const u=L(),f=(n=O())==null?void 0:n.uid,a=t,{t:b,s:y}=P(a.elementId),v=V(E());j(()=>a.separator,()=>{v.value=E()});const I=m(()=>u.definitions[a.elementId.id].validation),h=m(()=>{const i=a.label?b(y(a.label),a.label):a.label;return I.value.required?`${i} *`:i}),x=m(()=>a.placeholder?b(y(a.placeholder),a.placeholder):a.placeholder),{meta:o,errors:N,setValue:w}=D(u.definitions[a.elementId.id].objectPath,I,{bails:!1}),{modelValue:p}=z(a.elementId,w),{disabledState:d}=M(a.elementId.id);return(i,g)=>(r(),s("div",K,[F("div",U,[h.value?(r(),s("label",{key:0,for:`${t.inputId}-${e(f)}`,class:"text-color-secondary mb-2 vfe-input-text-label"},_(h.value),9,H)):q("v-if",!0),(r(),G(e($),{modelValue:e(p),"onUpdate:modelValue":g[0]||(g[0]=c=>A(p)?p.value=c:null),separator:t.separator,class:R([{"p-invalid":e(o).valid?!e(o).valid:e(o).touched},"w-full"]),placeholder:x.value,key:v.value,readonly:e(d)?e(d):t.readOnly,disabled:e(d)?e(d):t.readOnly,inputProps:{name:e(u).definitions[t.elementId.id].objectPath,id:`${t.inputId}-${e(f)}`}},null,8,["modelValue","separator","class","placeholder","readonly","disabled","inputProps"])),!e(o).valid&&e(o).touched?(r(),s("div",J,[(r(!0),s(B,null,T(e(N),(c,C)=>(r(),s("div",{key:C},_(c),1))),128))])):q("v-if",!0)])]))}}),re=S(Q,[["__scopeId","data-v-bffb8471"],["__file","/var/lib/jenkins/workspace/dps-form-editor/src/components/ComponentDefinitions/FEChips/FEChips.vue"]]);export{re 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.