1import k from"./hH-i2vVz.js";import{m as I,a,f as c,g as l,t as f,j as m,c as n,e,i as L,w as R,C as x}from"./CfmJu-Wg.js";import{p as M}from"./CltK9wrD.js";import{D as O}from"./ew8i2gwG.js";import{d as T,u as j}from"./-TDY4UWa.js";const w=["data-form-id"],z={__name:"ContactForm",props:{...T,title:{type:String,default:""},descriptionRich:{type:Object,default:null},description:{type:String,default:null},centerTitle:{type:Boolean,default:!1},customFieldsConfig:{type:Object,default:null},customFormLabels:{type:Object,default:()=>({})}},emits:["success"],setup(t,{emit:b}){const g=b,i=t,{formFields:r,formSubmitState:S,formFetchStatus:u,formLabels:o,formSubmit:F,trackFormInteraction:h}=j(()=>i.formId+"",g,i.formSuccessRedirectPath,i.openInNewWindow),y=I(()=>i.customFieldsConfig?r.value.map(s=>({...s,...i.customFieldsConfig?.[s.name]&&{...i.customFieldsConfig[s.name]}})):r.value),C=s=>{s.type||F(s)};return(s,B)=>{const d=k,p=x;return a(),c("div",{"data-form-id":s.formId},[t.title?(a(),c("h3",{key:0,class:l({"ds-heading-xsmall ds-margin-bottom-24":!t.description,"ds-heading ds-margin-bottom-12":t.description,"ds-text-align-center":t.centerTitle})},f(t.title),3)):m("",!0),t.description&&!t.descriptionRich?(a(),c("p",{key:1,class:l(["ds-text ds-margin-bottom-48",{"ds-text-align-center":t.centerTitle}])},f(t.description),3)):t.descriptionRich?(a(),n(d,{key:2,data:t.descriptionRich,class:l(["ds-margin-bottom-48",{"ds-text-align-center":t.centerTitle}])},null,8,["data","class"])):m("",!0),e(u)==="pending"?(a(),n(e(O),{key:3})):m("",!0),L(p,null,{default:R(()=>[s.formId&&e(u)!=="pending"&&e(r).length>0?(a(),n(e(M),{key:"contact-form-"+s.formId,"data-form-id":s.formId,"form-id":s.formId+"",f
1ields:e(y),"submit-state":e(S),"submit-label":t.customFormLabels.formSubmitLabelContact||e(o).formSubmitLabelContact,"submit-success-label":t.customFormLabels.formSubmitStateSuccessMessage||e(o).formSubmitStateSuccessMessage,"submit-fail-label":t.customFormLabels.formSubmitStateFailMessage||e(o).formSubmitStateFailMessage,"submit-color":"black",onSubmit:C,onChangeOnce:e(h)},null,8,["data-form-id","form-id","fields","submit-state","submit-label","submit-success-label","submit-fail-label","onChangeOnce"])):m("",!0),e(o)?.formDisclaimerMessage?(a(),n(d,{key:1,data:e(o).formDisclaimerMessage,class:"ds-margin-top-12"},null,8,["data"])):m("",!0)]),_:1})],8,w)}}};export{z as _};
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.