import{S as $}from"./SettingsBlock-BrIg2SdR.js";import{_ as z,b as d}from"./settings.consts-BmuAyinH.js";import"./vendor-vueform-slider-CCH9_7pb.js";import{a as J}from"./EmbedPopup-D-ZgVQoP.js";import{d as O,f as P,i as j,j as o,m as F,x as t}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{r,u as l}from"./vendor-vue-reactivity-CheHbvBM.js";import"./vendor-vue-shared-DrzsEcag.js";import"./vendor-vue3-html2pdf-KR020wX8.js";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-html2canvas-BfYXEYrK.js";import"./vendor-vue-runtime-dom-B2rky8vu.js";import"./admin-8MB3iCV_.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.js";import"./vendor-pinia-BSPefQhS.js";import"./vendor-axios-xsH4HHeE.js";import"./vendor-vue3-toastify-DBGjcIyK.js";/* empty css               */import"./useAppearanceStore-IzenP-G4.js";import"./vendor-vue-flow-CRbOssRZ.js";const y={class:"ccb-settings-section"},A={class:"ccb-settings__row"},T={class:"ccb-settings__col"},W={class:"ccb-settings__row"},D={class:"ccb-settings__col"},G={class:"ccb-settings__row"},H={class:"ccb-settings__col"},I={class:"ccb-settings__row"},K={class:"ccb-settings__col"},L={class:"ccb-settings__col"},Q={class:"ccb-settings__row"},X={class:"ccb-settings__col"},Y={class:"ccb-settings__col"},Z={class:"ccb-settings__row"},ee={class:"ccb-settings__col"},qe=O({__name:"WarningMessages",setup(se){var p,h,b,v,V,x,S,q,E,C,w,M,U,N,R,B,k;const i=J(),m=r(((h=(p=i.getSettings)==null?void 0:p.texts)==null?void 0:h.required_msg)||""),_=r(((V=(v=(b=i.getSettings)==null?void 0:b.texts)==null?void 0:v.form_fields)==null?void 0:V.email_format)||""),c=r(((q=(S=(x=i.getSettings)==null?void 0:x.texts)==null?void 0:S.form_fields)==null?void 0:q.email_field)||""),g=r(((w=(C=(E=i.getSettings)==null?void 0:E.texts)==null?void 0:C.form_fields)==null?void 0:w.name_field)||""),f=r(((N=(U=(M=i.getSettings)==null?void 0:M.texts)==null?void 0:U.form_fields)==null?void 0:N.phone_field)||""),u=r(((k=(B=(R=i.getSettings)==null?void 0:R.texts)==null?void 0:B.form_fields)==null?void 0:k.terms_and_conditions_field)||""),a=(n,e)=>{e=`${e}`;const s=JSON.parse(JSON.stringify(i.getSettings));n==="required_msg"&&(s.texts.required_msg=e,m.value=e),n==="email_format"&&(s.texts.form_fields.email_format=e,_.value=e),n==="email_field"&&(s.texts.form_fields.email_field=e,c.value=e),n==="name_field"&&(s.texts.form_fields.name_field=e,g.value=e),n==="phone_field"&&(s.texts.form_fields.phone_field=e,f.value=e),n==="terms_and_conditions_field"&&(s.texts.form_fields.terms_and_conditions_field=e,u.value=e),i.setSettings(s)};return(n,e)=>(j(),P("div",y,[o($,null,{default:F(()=>[t("div",A,[t("div",T,[o(l(z),{text:"Error messages in calculator",size:"m",weight:"bold"})])]),t("div",W,[t("div",D,[o(l(d),{label:"Required field message",placeholder:"Enter message",name:"required_msg",modelValue:m.value,"onUpdate:modelValue":e[0]||(e[0]=s=>m.value=s),onChange:a},null,8,["modelValue"])])])]),_:1}),o($,null,{default:F(()=>[t("div",G,[t("div",H,[o(l(z),{text:"Error messages in Contact Forms",size:"m",weight:"bold"})])]),t("div",I,[t("div",K,[o(l(d),{label:"Email format message",placeholder:"Enter message",modelValue:_.value,"onUpdate:modelValue":e[1]||(e[1]=s=>_.value=s),onChange:a,name:"email_format"},null,8,["modelValue"])]),t("div",L,[o(l(d),{label:"Email required message",placeholder:"Enter message",modelValue:c.value,"onUpdate:modelValue":e[2]||(e[2]=s=>c.value=s),onChange:a,name:"email_field"},null,8,["modelValue"])])]),t("div",Q,[t("div",X,[o(l(d),{label:"Name required message",placeholder:"Enter message",modelValue:g.value,"onUpdate:modelValue":e[3]||(e[3]=s=>g.value=s),name:"name_field",onChange:a},null,8,["modelValue"])]),t("div",Y,[o(l(d),{label:"Phone required message",placeholder:"Enter message",modelValue:f.value,"onUpdate:modelValue":e[4]||(e[4]=s=>f.value=s),onChange:a,name:"phone_field"},null,8,["modelValue"])])]),t("div",Z,[t("div",ee,[o(l(d),{label:"Terms and conditions required message",placeholder:"Enter message",modelValue:u.value,"onUpdate:modelValue":e[5]||(e[5]=s=>u.value=s),onChange:a,name:"terms_and_conditions_field"},null,8,["modelValue"])])])]),_:1})]))}});export{qe as default};
//# sourceMappingURL=WarningMessages-CvTKHiZa.js.map
