function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = ["./WebFormFieldCheckbox-B3IefOEf.mjs","./entry.DPwc-EV0.js","./entry.B_nJpNyR.css","./WebFormFieldCore-xNTPdj0N.mjs","./WebFormFieldCheckbox.qAFypQEy.css","./WebFormFieldCheckboxGroup-DiMKW52P.mjs","./WebFormFieldCore_String-Daj5WKW-.mjs","./WebFormFieldCheckboxGroup.D4gwMuII.css","./WebFormFieldDate-BVlcOl8k.mjs","./WebFormFieldDate.BnyMSNN9.css","./WebFormFieldEmail-CwV2YZEF.mjs","./WebFormFieldEmail.DiUTt66g.css","./WebFormFieldLocale-jhelcz3k.mjs","./dynamic-import-helper-CUkzFinH.mjs","./WebFormFieldMultiLineText-dlA-8N8n.mjs","./WebFormFieldMultiLineText.Cx7NJ4Rr.css","./WebFormFieldMultiSelect-D0R6TpBa.mjs","./vue-select-DlY5_TFh.mjs","./vue-select.CijII-LI.css","./WebFormFieldMultiSelect.C4uQiZ7H.css","./WebFormFieldNumber-CBaUdGnu.mjs","./WebFormFieldNumber.MbbsXrpT.css","./WebFormFieldPassword-DEDdE6lA.mjs","./WebFormFieldPassword.DouJWCIb.css","./WebFormFieldPhone-4R90VFW3.mjs","./WebFormFieldPhone.B3EFd91L.css","./WebFormFieldRadioGroup-vvlysdDn.mjs","./WebFormFieldRadioGroup.C-xhddeV.css","./WebFormFieldSingleSelect-APOysKCJ.mjs","./WebFormFieldSingleSelect.e0ZcTdmA.css","./WebFormFieldText-D8_OLATf.mjs","./WebFormFieldText.BDlfe3Lp.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } import{_ as V,o as s,c as n,V as I,i as h,H as O,I as o,a as f,F as v,r as b,n as F,v as P,d as L,w as E,b as y,k as D,t as T,aj as C,a9 as A,N as R}from"./entry.DPwc-EV0.js";import{_ as W}from"./dynamic-import-helper-CUkzFinH.mjs";const k={props:{id:{type:String,default:null},required:{type:Boolean,default:!1}}},x=["for"],g={key:0,class:"text-danger"};function $(e,r,t,a,l,i){return s(),n("label",{for:t.id,class:"field-label"},[I(e.$slots,"default",{},void 0,!0),t.required?(s(),n("div",g,"*")):h("",!0)],8,x)}const j=V(k,[["render",$],["__scopeId","data-v-eb778eaa"]]),S={props:{fieldInfo:{type:Object},fieldValues:{type:Object},hidePopulated:{type:Boolean,default:!1}},emits:["update"],setup(e){const r={},t=l=>l.slice(0,1).toUpperCase()+l.slice(1,l.length),a=l=>l.split("_").map(i=>t(i.split("/").map(t).join("/"))).join("").replaceAll("Input","");return e.fieldInfo.rows.forEach((l,i)=>{Object.keys(l.fields).forEach(u=>{var m;const d=l.fields[u];if(!r[d.type]){const c="WebFormField"+a(d.type);r[d.type]=O(()=>W(Object.assign({"../fields/WebFormFieldCheckbox.vue":()=>o(()=>import("./WebFormFieldCheckbox-B3IefOEf.mjs"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),"../fields/WebFormFieldCheckboxGroup.vue":()=>o(()=>import("./WebFormFieldCheckboxGroup-DiMKW52P.mjs"),__vite__mapDeps([5,1,2,6,3,7]),import.meta.url),"../fields/WebFormFieldDate.vue":()=>o(()=>import("./WebFormFieldDate-BVlcOl8k.mjs"),__vite__mapDeps([8,6,3,1,2,9]),import.meta.url),"../fields/WebFormFieldEmail.vue":()=>o(()=>import("./WebFormFieldEmail-CwV2YZEF.mjs"),__vite__mapDeps([10,6,3,1,2,11]),import.meta.url),"../fields/WebFormFieldLocale.vue":()=>o(()=>import("./WebFormFieldLocale-jhelcz3k.mjs"),__vite__mapDeps([12,1,2,13,3]),import.meta.url),"../fields/WebFormFieldMultiLineText.vue":()=>o(()=>import("./WebFormFieldMultiLineText-dlA-8N8n.mjs"),__vite__mapDeps([14,6,3,1,2,15]),import.meta.url),"../fields/WebFormFieldMultiSelect.vue":()=>o(()=>import("./WebFormFieldMultiSelect-D0R6TpBa.mjs"),__vite__mapDeps([16,17,1,2,18,3,19]),import.meta.url),"../fields/WebFormFieldNumber.vue":()=>o(()=>import("./WebFormFieldNumber-CBaUdGnu.mjs"),__vite__mapDeps([20,6,3,1,2,21]),import.meta.url),"../fields/WebFormFieldPassword.vue":()=>o(()=>import("./WebFormFieldPassword-DEDdE6lA.mjs"),__vite__mapDeps([22,1,2,6,3,13,23]),import.meta.url),"../fields/WebFormFieldPhone.vue":()=>o(()=>import("./WebFormFieldPhone-4R90VFW3.mjs"),__vite__mapDeps([24,6,3,1,2,25]),import.meta.url),"../fields/WebFormFieldRadioGroup.vue":()=>o(()=>import("./WebFormFieldRadioGroup-vvlysdDn.mjs"),__vite__mapDeps([26,6,3,1,2,27]),import.meta.url),"../fields/WebFormFieldSingleSelect.vue":()=>o(()=>import("./WebFormFieldSingleSelect-APOysKCJ.mjs"),__vite__mapDeps([28,17,1,2,18,6,3,29]),import.meta.url),"../fields/WebFormFieldText.vue":()=>o(()=>import("./WebFormFieldText-D8_OLATf.mjs"),__vite__mapDeps([30,6,3,1,2,31]),import.meta.url)}),`../fields/${c}.vue`))}e.hidePopulated&&((m=e.fieldValues)!=null&&m[u])&&delete e.fieldInfo.rows[i].fields[u]})}),{fieldComponents:r}},methods:{fieldProps(e,r){var a;return{...r,name:e,value:((a=this.fieldValues)==null?void 0:a[e])??null}},update(e,r,t){this.$emit("update",e,r,t)},rowColumns(e){const r=Object.keys(e.fields).length,t=(e==null?void 0:e.numberOfColumns)??1;return r>t?t:r},cleanLabel(e){return e.replace(/(<([^>]+)>)/gi,"")}}},B={class:"web-form-fields"};function q(e,r,t,a,l,i){const u=j,d=R;return s(),n("div",B,[f("div",{class:"form",style:F({fontFamily:e.$ss.primaryFontFamily})},[(s(!0),n(v,null,b(t.fieldInfo.rows,(m,c)=>(s(),n("div",{key:c,style:F({zIndex:t.fieldInfo.rows.length-c}),class:"row"},[f("div",{class:P(`fields columns-${i.rowColumns(m)}`)},[L(d,null,{default:E(()=>[(s(!0),n(v,null,b(m.fields,(_,p)=>(s(),n("div",{key:p,class:"field"},[_.label&&_.type!=="checkbox"?(s(),y(u,{key:0,required:_.required},{default:E(()=>[D(T(i.cleanLabel(_.label)),1)]),_:2},1032,["required"])):h("",!0),(s(),y(C(a.fieldComponents[_.type]),A({ref_for:!0},i.fieldProps(p,_),{onChangeValue:i.update}),null,16,["onChangeValue"]))]))),128))]),_:2},1024)],2)],4))),128))],4)])}const z=V(S,[["render",q]]);export{z as _,j as a};