PageSourceSearch

https://www.cmq.org/_nuxt/normalizeCraftPage.79227bf6.js

js cmq.org collected 2026-10-02 03:28:13 UTC 74,506 bytes, 226 lines download raw bytes

1import{c as it}from"./craftFields.10efea26.js";import{f as O,e as W,B as o,G as c,H as u,L as b,u as U,Y as Q,R as F,F as M,J as _,y as I,a as V,r as ne,b as ce,l as lt,X as ae,C as de,a8 as rt,aj as st,x as he,z as Nt,A as Tt,N as Ct}from"./swiper-vue.5e86c732.js";import{_ as _e}from"./_plugin-vue_export-helper.c27b6911.js";import{_ as Et}from"./Icon.65c81faf.js";import{u as ot}from"./vue-i18n.runtime.esm-bundler.0e2b6b30.js";import{_ as qt}from"./Picture.vue.b88b08eb.js";import{_ as Vt}from"./HeroHalf.638c43ef.js";import{o as Lt}from"./index.7542a789.js";import{d as dt}from"./entry.437637f1.js";const wt={class:"o-container"},$t={class:"o-grid o-grid--col-4 o-grid--col-12@desktop o-grid--gutters"},At=["innerHTML"],Bt={key:0,class:"c-quote__cite"},Dt=O({__name:"Quote",props:{hasPaddings:{type:Boolean,default:!1},content:{type:[String,Object],default:""},fullname:{type:String,default:""},position:{type:String,default:""}},setup(e){const n=e,a=W(()=>it(n.content));return(r,d)=>(o(),c("blockquote",{class:b(["c-quote",{"c-quote--paddings":e.hasPaddings}])},[u("div",wt,[u("div",$t,[u("div",{class:b(["o-grid__item",e.hasPaddings?"u-gc-1/10@desktop":"u-gc-1/13@desktop"])},[u("div",{class:"c-quote__content u-type-serif",innerHTML:U(a)},null,8,At),e.fullname?(o(),c("cite",Bt,[Q(F(e.fullname),1),e.position?(o(),c(M,{key:0},[Q(", "+F(e.position),1)],64)):_("",!0)])):_("",!0)],2)])])],2))}});const Ni=_e(Dt,[["__scopeId","data-v-0ad15321"]]),It={class:"c-form__thumb"},Mt=["value","id","name","checked","required","aria-label"],Rt=O({__name:"ThumbRadio",props:{modelValue:{type:String,required:!0},name:{type:String,required:!0},label:{type:String,default:""},checked:{type:Boolean,default:!1},required:{type:Boolean,default:!1},selected:{type:String,default:null},errors:{type:String,default:""},icon:{type:String,default:"thumb-down"}},emits:["update:selected"],setup(e,{emit:n}){const a=e,r=W(()=>a.selected===a.modelValue),d=g=>{const S=g.target;n("update:selected",S.value)};return(g,S)=>{const k=Et;return o(),c("div",It,[u("input",{onChange:d,value:e.modelValue,id:e.modelValue,name:e.name,type:"radio",checked:e.checked||U(r),required:e.required,class:b(["c-form__thumb-radio",{"has-error":e.errors!==""}]),ref:"radioInput","aria-label":e.label},null,42,Mt),I(k,{name:e.icon},null,8,["name"])])}}});function ct(e){const n=[];for(const a of e){if(!(a!=null&&a.handle)||!(a!=null&&a.type))continue;const r={handle:a.handle,type:a.type};a.multi!=null&&(r.multi=a.multi),n.push(r)}return n}const Ke=255;function Ye(e,n){const a=Object.values(n).flat().join(" ");return!e||a&&a.includes(e)?"":e}function ut(e){const n=new Set,a=[];for(const r of e){const d=r.trim();!d||n.has(d)||(n.add(d),a.push(d))}return a}function Ut(e){const n=e.split(new RegExp("(?<=[.!?])\\s+")).map(a=>a.trim()).filter(Boolean);return n.length<2?e.trim():ut(n).join(" ")}function ye(e){return ut(e.map(Ut))}function mt(e){const n=e.trim();if(!n.startsWith("{"))return null;try{const a=JSON.parse(n);if(!a||typeof a!="object"||Array.isArray(a))return null;const r={};for(const[d,g]of Object.entries(a))Array.isArray(g)?r[d]=ye(g.map(String)):typeof g=="string"&&(r[d]=[g]);return Object.keys(r).length>0?r:null}catch{return null}}function Ht(e){var r;const n={},a=[];for(const d of e??[]){const g=(r=d==null?void 0:d.message)==null?void 0:r.trim();if(!g)continue;const S=mt(g);if(S)for(const[k,C]of Object.entries(S))n[k]=ye([...n[k]??[],...C]);else a.push(g)}return{fieldErrors:n,globalMessage:a.join(" ").trim()}}function Ot(e,n){const a=Ht(n),r=(e==null?void 0:e.trim())??"";if(!r)return a;const d=mt(r);if(d){const g={...a.fieldErrors};for(const[S,k]of Object.entries(d))g[S]=ye([...g[S]??[],...k]);return{fieldErrors:g,globalMessage:Ye(a.globalMessage,g)}}return a.fieldErrors&&Object.keys(a.fieldErrors).length>0?{fieldErrors:a.fieldErrors,globalMessage:Ye(r||a.globalMessage,a.fieldErrors)}:{fieldErrors:{},globalMessage:r}}function xt(e){return ye(e).join(" ")}function Ge(e){return Array.isArray(e)?JSON.stringify(e).length:0}function te(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function pe(e){if(!te(e))return;const n=[e.data,te(e.data)?e.data.data:void 0,te(e.response)?e.response._data:void 0,te(e.response)&&te(e.response._data)?e.response._data.data:void 0];
1for(const a of n)if(te(a)&&(a.globalMessage!=null||a.fieldErrors!=null))return a}function Pt(e){if(!te(e))return!1;if(Number(e.statusCode??e.status??0)===413)return!0;const a=pe(e),r=String((a==null?void 0:a.globalMessage)??e.message??e.statusMessage??"");return r==="CRAFT_ASSET_MUTATION_REQUIRED"||/entity too large|payload too large|413/i.test(r)}function Le(e){return e?e.replace(/[{}]/g,"").replace(/^(?:field|id):/i,"").trim():""}function zt(e){return Array.isArray(e)?e.map(n=>String(n)):e==null||e===""?[]:[String(e)]}function jt(e,n,a){const r=e.includes(n);return a==="!="||a==="notEquals"||a==="not"?!r:r}function ft(e,n){if(!e.enableConditions||!e.conditions)return!1;try{const a=JSON.parse(e.conditions),r=((a==null?void 0:a.conditions)??[]).filter(k=>Le(k.field));if(!r.length)return!1;const d=r.map(k=>{const C=Le(k.field),D=n.find(q=>Le(q.handle??"")===C);return D?jt(zt(D.value),String(k.value??""),k.condition):!1}),g=a.conditionRule==="any"?d.some(Boolean):d.every(Boolean);return(a.showRule==="hide"?"hide":"show")==="show"?!g:g}catch{return!1}}const Kt={class:"c-form-feedback__title u-h4 u-type-serif"},Yt=["onSubmit"],Gt=["value"],Jt={key:0,class:"c-form__error"},Qt={key:0},Wt={class:"c-form__error c-form__error--global"},Xt={key:1,class:"c-form__buttons"},Zt=["disabled"],en={class:"c-button__inner"},tn=st('<i class="o-icon o-icon--medium o-icon--loader"><svg aria-hidden="true"><use href="#icon-loader" fill="currentColor"></use></svg></i><i class="o-icon o-icon--medium"><svg aria-hidden="true"><use href="#icon-arrow-right" fill="currentColor"></use></svg></i>',2),nn={class:"c-form-feedback__title u-h4 u-type-serif"},an={class:"c-form-feedback__message"},ln=O({__name:"FormieFormFeedback",props:{form:{type:Object,default:{},required:!0},pageTitle:{type:String,default:""}},setup(e){const n=e,{t:a}=ot(),r=V(!1),d=V(!1),g=V(!1),S=ne(n.form.formFields),k=ne(S.map((E,h)=>({handle:`{${E.handle}}`,value:"",index:h}))),C=ne(n.form.formFields.map(()=>"")),D=V(null),q=V(null),K=E=>{const h=n.form.formFields[E];k[E].touched=!0,h.required&&(!k[E].value||k[E].value.length===0)?C[E]=a("modules.forms.validation.required"):C[E]=""},L=W(()=>k.every((E,h)=>n.form.formFields[h].required?E.value&&!C[h]:!C[h]));ce(k,E=>{E.forEach((h,R)=>{k[R].touched&&K(R)})},{deep:!0});const Y=V(null),Se=E=>{setTimeout(()=>{var h;(h=q.value)==null||h.click()},100)},Ne=async()=>{if(k.forEach((h,R)=>K(R)),!L.value)return;d.value=!0;const E={data:{},handle:n.form.handle,fields:ct(n.form.formFields),pageTitle:n.pageTitle};for(const h of Object.keys(k))k[h].handle=k[h].handle.replace(/[{}]/g,""),E.data[k[h].handle]=k[h].value;try{const h=await $fetch("/api/formie",{method:"POST",body:JSON.stringify(E),headers:{"Content-Type":"application/json"}});h&&h.success&&(r.value=!0,d.value=!1,D&&D.value&&D.value.scrollIntoView({behavior:"smooth"}))}catch{g.value=!0,d.value=!1}},Te=E=>ft(E,k),Ce=(E,h)=>{let R=null;switch(h){case"verbb\\formie\\fields\\formfields\\Radio":const X=E.options.find(z=>z.isDefault);R=X?X.value:"";break;default:R="";break}return R};return lt(()=>{n.form&&n.form.formFields&&n.form.formFields.forEach((E,h)=>{k[h]={handle:`{${E.handle}}`,value:Ce(E,E.type),index:h}})}),(E,h)=>{var X,z,j;const R=Rt;return e.form&&e.form.formFields&&S?(o(),c("div",{key:0,ref_key:"formWrapper",ref:D,class:"c-form-feedback wrapper"},[r.value?(o(),c(M,{key:1},[u("p",nn,F(E.$t("modules.forms.feedback.submittedTitle")),1),u("p",an,F(E.$t("modules.forms.feedback.submittedMessage")),1)],64)):(o(),c(M,{key:0},[u("p",Kt,F(E.$t("modules.forms.feedback.title")),1),u("form",{ref_key:"formElement",ref:Y,onSubmit:rt(Ne,["prevent"]),method:"POST",class:"formie"},[u("input",{type:"hidden",name:"handle",value:e.form.handle},null,8,Gt),(o(!0),c(M,null,ae(S,(x,H)=>(o(),c(M,{key:H},[x.type==="verbb\\formie\\fields\\formfields\\Radio"?(o(),c("div",{key:0,class:b(["c-form__row c-form__row--has-col",{"is-hidden":Te(x)}])},[(o(!0),c(M,null,ae(x.options,(G,re)=>(o(),de(R,{"onUpdate:selected":[Se,J=>k[H].value=J],key:re,modelValue:G.value,"onUpdate:modelValue":J=>G.value=J,label:G.label,name:x.handle,icon:G.value==="thumbsUp"?"thumb
1-up":"thumb-down",checked:G.isDefault,errors:C[H],selected:k[H].value},null,8,["modelValue","onUpdate:modelValue","label","name","icon","checked","errors","selected","onUpdate:selected"]))),128)),C[H]!==""?(o(),c("small",Jt,F(C[H]),1)):_("",!0)],2)):_("",!0)],64))),128)),g.value?(o(),c("div",Qt,[u("small",Wt,F(E.$t("modules.forms.error")),1)])):_("",!0),(j=(z=(X=e.form.pages)==null?void 0:X[0])==null?void 0:z.settings)!=null&&j.submitButtonLabel?(o(),c("div",Xt,[u("div",null,[u("button",{ref_key:"submitButton",ref:q,type:"submit",disabled:!U(L)||d.value,class:b(["c-button c-button--primary",{"c-button--loading":d.value}])},[u("span",en,F(e.form.pages[0].settings.submitButtonLabel),1),tn],10,Zt)])])):_("",!0)],40,Yt)],64))],512)):_("",!0)}}});const rn=e=>(Nt("data-v-b65ba0fa"),e=e(),Tt(),e),sn=["id","name","required","value","placeholder","type"],on=["for"],dn={class:"label-txt"},cn={key:0,class:"required text-[red]"},un={key:0,class:"c-form__error"},mn={key:1,class:"c-form__instructions"},fn=rn(()=>u("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u("rect",{width:"20",height:"20",fill:"#02031D","fill-opacity":"0.1"}),u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.09961 8.11499C7.26961 6.40499 8.38961 5.38499 10.0946 5.38499C11.7746 5.38499 12.9046 6.35499 12.8996 7.79499C12.8996 8.93786 12.1823 9.51285 11.5531 10.0172L11.5496 10.02L11.3246 10.205C10.7196 10.71 10.3146 11.055 10.2296 12.11H9.22461C9.32421 10.5762 10.014 9.99963 10.6815 9.44174L10.6896 9.43499L10.9196 9.24499C11.5496 8.74499 11.8996 8.43499 11.8996 7.79999C11.8996 6.75499 10.9646 6.38499 10.0896 6.38499C8.93961 6.38499 8.25961 6.98499 8.10961 8.11499H7.09961ZM9.10962 13.365H10.3596V14.615H9.10962V13.365Z",fill:"#02031D"})],-1)),vn=[fn],pn=O({__name:"Input",props:{name:{type:String,required:!0},label:{type:String,default:""},placeholder:{type:String,default:""},id:{type:String,default:null},modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},classes:{type:String,default:""},required:{type:Boolean,default:!1},instructions:{type:String,default:""},errors:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:n}){const a=e,r=V(null),d=V(!1),g=()=>{d.value=!d.value};return he(()=>{r.value&&(r.value.type=a.type)}),(S,k)=>(o(),c("div",{class:b(["c-form__item u-12/12",e.classes,{"not-empty":e.modelValue}])},[u("input",{id:e.id||e.name,name:e.name,required:e.required,value:e.modelValue,class:b(["c-form__input",{"has-error":e.errors!==""}]),placeholder:e.placeholder,onInput:k[0]||(k[0]=C=>S.$emit("update:modelValue",C.target.value)),ref_key:"inputRef",ref:r,type:e.type},null,42,sn),u("label",{class:b("c-form__label"),for:e.name},[u("span",dn,[Q(F(e.label)+" ",1),e.required?(o(),c("span",cn,"*")):_("",!0)])],8,on),e.errors!==""?(o(),c("small",un,F(e.errors),1)):_("",!0),e.instructions?(o(),c("div",mn,[u("p",{class:b(["c-form__instructions--text",{"is-active":d.value}])},F(e.instructions),3),u("button",{type:"button",onClick:g,class:"c-form__instructions--button"},vn)])):_("",!0)],2))}});const kn=_e(pn,[["__scopeId","data-v-b65ba0fa"]]),gn=["id","name","maxLength","placeholder"],hn=["for"],_n={class:"label-txt"},yn={key:0,class:"required text-[red]"},bn={key:0,class:"c-form__limit"},Fn={key:0,class:"c-form__error"},Sn=O({__name:"MultiLineText",props:{name:{type:String,required:!0},label:{type:String,default:""},placeholder:{type:String,default:""},id:{type:[String,Number],default:null},modelValue:{type:String,default:""},classes:{type:String,default:""},required:{type:Boolean,default:!1},limit:{type:Boolean,default:!1},errors:{type:String,default:""},max:{type:Number,default:500}},emits:["update:modelValue"],setup(e,{emit:n}){const a=V(!1),r=()=>{a.value=!0},d=()=>{a.value=!1};return(g,S)=>(o(),c("div",{class:b(["u-12/12",e.classes,{"not-empty":e.modelValue}])},[u("div",{class:b(["c-form__item c-form__item--wrapper",{"is-focused":U(a),"has-error":e.errors!==""}])},[u("textarea",{id:e.id,name:e.name,class:b(["c-form__textarea c-form__textarea--has-wrapper"]),onInput:S[0]||(S[0]=k=>g.$emit("update:modelValue",k.target.value)),onFocus:r,onBlur:d,rows:4,maxLength:e.max||!1,placeholder:e.placeholder,ref:"textarea"},null,40,gn),u("label",{class:b("c-form__label"),for:e.name},[u("span",_n,[Q(F(e.label)+" ",1),e.required?(o(),c("span",yn,"*")):_("",!0)])],8,hn),e.limit?(o(),c("span",bn,F(e.modelValue.length)+" / "+F(e.max),1)):_("",!0)],2),e.errors!==""?(o(),c("small",Fn,F(e.errors),1)):_("",!0)],2))}}),Nn={class:"c-form__item c-form__date u-12/12 c-form__row"},Tn=["type","value"],Cn={class:"c-form__label",for:"date-picker"},En={key:0,class:"c-form__error"},qn=O({__name:"DatePicker",props:{modelValue:{type:String,required:!1},name:{type:String,required:!1},label:{type:String,required:!1},required:{type:Boolean,default:!1},errors:{type:String,default:""},includeTime:{type:Boolean,default:!1},includeDate:{type:Boolean,default:!1},timeLabel:{type:String,default:""},defaultDate:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:n}){const a=e,r=V(a.modelValue),d=g=>{const S=g.target;n("update:modelValue",S.value)};return ce(()=>a.modelValue,g=>{r.value=g}),he(()=>{r.value=a.modelValue}),(g,S)=>(o(),c("div",Nn,[u("input",{type:e.includeTime?"datetime-local":"date",id:"date-picker",class:b(["c-form__input",{"has-error":e.errors!==""}]),onChange:d,value:r.value},null,42,Tn),u("label",Cn,F(e.label),1),e.errors!==""?(o(),c("small",En,F(e.errors),1)):_("",!0)]))}}),Vn=["value","id","name","checked","required"],Ln=["for"],wn={class:"label-txt"},$n=O({__name:"Radio",props:{modelValue:{type:String,required:!0},name:{type:String,required:!0},label:{type:String,default:""},checked:{type:Boolean,default:!1},required:{type:Boolean,default:!1},selected:{type:String,default:null},errors:{type:String,default:""}},emits:["update:selected"],setup(e,{emit:n}){const a=e,r=W(()=>a.selected===a.modelValue),d=g=>{const S=g.target;n("update:selected",S.value)};return(g,S)=>(o(),c(M,null,[u("input",{onChange:d,value:e.modelValue,id:e.modelValue,name:e.name,type:"radio",checked:e.checked||U(r),required:e.required,
1class:b(["c-form__radio",{"has-error":e.errors!==""}]),ref:"radioInput"},null,42,Vn),u("label",{class:b("c-form__radio-label"),for:e.modelValue},[u("span",wn,F(e.label),1)],8,Ln)],64))}}),An=["value","id","name","checked"],Bn=["for"],Dn={class:"label-txt"},In=O({__name:"Checkbox",props:{modelValue:{type:String,required:!0},name:{type:String,required:!0},label:{type:String,required:!0},errors:{type:String,default:""},checked:{type:Boolean,default:!1},selected:{type:[Array,String],default:[]}},emits:["update:selected"],setup(e,{emit:n}){const a=e,r=V([...a.selected]),d=S=>{const k=S.target;k.checked?r.value=[...r.value,k.value]:r.value=r.value.filter(C=>C!==k.value),n("update:selected",r.value)},g=W(()=>a.selected.includes(a.modelValue)||a.checked);return ce(()=>a.selected,S=>{r.value=[...S]}),(S,k)=>(o(),c(M,null,[u("input",{onChange:d,value:e.modelValue,id:e.modelValue,name:e.name,type:"checkbox",class:b(["c-form__checkbox",{"has-error":e.errors!==""}]),checked:U(g)||e.checked,ref:"checkbox"},null,42,An),u("label",{class:b("c-form__checkbox-label"),for:e.modelValue},[u("span",Dn,F(e.label),1)],8,Bn)],64))}}),Mn=["name","id","value","multiple"],Rn=["value","disabled","selected"],Un={key:0},Hn={key:1},On={class:b("options-list")},xn=["value","disabled","onClick"],Pn=["for"],zn={class:"label-txt"},jn={key:0,class:"required text-[red]"},Kn={key:0,class:"c-form__error"},Yn=O({__name:"Select",props:{name:{type:String,required:!0},options:{type:Array,default:()=>[]},classes:{type:String,default:""},default:{type:String,default:""},required:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},inputValidators:{type:Array,default:()=>[]},modelValue:{type:[Array,String],default:()=>[]},label:{type:String,default:""},selected:{type:[Array,String],default:()=>[]},errors:{type:String,default:""}},emits:["update:selected","reset-errors"],setup(e,{emit:n}){const a=e,r=V(null),d=V(Array.isArray(a.modelValue)?a.modelValue:[a.modelValue]),g=V(!1),S=W(()=>{if(a.multiple)return a.options.filter(q=>d.value.includes(q.value)).map(q=>q.label).join(", ");{const q=a.options.find(K=>K.value===d.value[0]);return q?q.label:a.name.includes("[country]")?"Canada":""}});ce(()=>a.modelValue,q=>{d.value=Array.isArray(q)?q:[q]});const k=()=>{g.value=!g.value};Lt(r,()=>{g.value=!1});const C=(q,K)=>{a.multiple?d.value.includes(q)?d.value=d.value.filter(Y=>Y!==q):d.value=[...d.value,q]:(d.value=[q],g.value=!1);const L=a.name.includes("[country]")?[K]:d.value;n("update:selected",L)},D=q=>a.multiple?d.value.includes(q):d.value[0]===q;return(q,K)=>(o(),c("div",{class:b(["c-form__select c-form__item u-12/12",e.classes])},[u("select",{name:e.name,id:e.name,class:b("c-form__select-input"),style:{display:"none",visibility:"hidden"},value:U(d),multiple:e.multiple},[(o(!0),c(M,null,ae(e.options,L=>(o(),c("option",{key:L.value,value:L.value,disabled:L.isDefault,selected:L.isDefault},F(L.label),9,Rn))),128))],8,Mn),u("div",{class:b(["c-form__custom-select c-form__select-input",[{"has-error":e.errors!==""}]]),ref_key:"dropdownRef",ref:r},[u("div",{class:"selected-option",onClick:k},[U(S)!==""?(o(),c("span",Un,F(U(S)),1)):(o(),c("span",Hn,F(e.options[0].label),1))]),u("div",{class:b(["c-form__custom-select--wrapper",{"is-open":U(g),"is-multiple":e.multiple}])},[u("ul",On,[(o(!0),c(M,null,ae(e.options,L=>(o(),c("li",{key:L.value},[L.isDefault?_("",!0):(o(),c("button",{key:0,type:"button",value:L.value,disabled:L.isDefault,class:b({"is-selected":D(L.value)}),onClick:Y=>C(L.value,L.label)},F(L.label),11,xn))]))),128))])],2)],2),u("label",{for:e.name,class:"c-form__label"},[u("span",zn,[Q(F(e.label)+" ",1),e.required?(o(),c("span",jn,"*")):_("",!0)])],8,Pn),e.errors!==""?(o(),c("small",Kn,F(e.errors),1)):_("",!0)],2))}}),Gn={class:"c-form__item u-12/12"},Jn=["value","id","name","placeholder","required"],Qn=["for"],Wn={class:"label-txt"},Xn={key:0,class:"required text-[red]"},Zn={key:0,class:"c-form__error"},ea=O({__name:"AddressField",props:{modelValue:{type:String,default:""},name:{type:String,required:!0},id:{type:[String,Number],default:null},label:{type:String,default:""},placeholder:{type:[String,null],required:!0,default:""},required:{type:Boolean,default:!1},errors:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:n}){return(a,r)=>(o(),c("div",Gn,[u("input",{value:e.modelValue,onInput:r[0]||(r[0]=d=>a.$emit("update:modelValue",d.target.value)),id:e.name,name:e.name,placeholder:e.placeholder,required:e.required,
1class:b(["c-form__input",{"has-error":e.errors!==""}]),type:"text"},null,42,Jn),u("label",{class:b("c-form__label"),for:e.name},[u("span",Wn,[Q(F(e.label)+" ",1),e.required?(o(),c("span",Xn,"*")):_("",!0)])],8,Qn),e.errors!==""?(o(),c("small",Zn,F(e.errors),1)):_("",!0)]))}});const ta=_e(ea,[["__scopeId","data-v-0f85d40b"]]),na=5;function aa(e){const n=parseFloat(String(e.sizeLimit??"")),a=parseFloat(String(e.sizeMinLimit??""));return{maxMb:Number.isFinite(n)&&n>0?n:na,minMb:Number.isFinite(a)&&a>0?a:0}}function Je(e){return e*1e6}const Qe=3*1024*1024,ia=new Set(["","application/octet-stream","binary/octet-stream"]),la={pdf:"application/pdf",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",odt:"application/vnd.oasis.opendocument.text",rtf:"application/rtf",txt:"text/plain",csv:"text/csv",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp",tif:"image/tiff",tiff:"image/tiff"};function ra(e,n){var d;const a=String(n??"").trim().toLowerCase();if(a&&!ia.has(a))return a;const r=((d=e.split(".").pop())==null?void 0:d.toLowerCase())??"";return la[r]||a||"application/octet-stream"}async function sa(e){const n=ra(e.name,e.type),r=(await new Promise((d,g)=>{const S=new FileReader;S.onload=()=>d(String(S.result||"")),S.onerror=()=>g(S.error||new Error("File read failed")),S.readAsDataURL(e)})).replace(/^data:[^;,]*/,`data:${n}`);return{filename:e.name,fileData:r}}const We="verbb\\formie\\fields\\",Xe="verbb\\formie\\fields\\formfields\\";function Ze(e){return e?e.startsWith(We)&&!e.startsWith(Xe)?`${Xe}${e.slice(We.length)}`:e:""}const oa={key:0,class:"c-form__notice c-form__notice--processing formie u-margin-bottom-xl"},da={class:"u-h6"},ca={key:1,class:"c-form__notice c-form__notice--processing formie u-margin-bottom-xl"},ua={class:"u-h6"},ma=["onSubmit"],fa=["value"],va={key:0,class:b(["c-richtext c-form__content"])},pa=["innerHTML"],ka={class:"c-form__label c-form__label--not-floating"},ga={key:0,class:"required text-[red]"},ha={key:0,class:"c-form__error"},_a={class:"c-form__label c-form__label--not-floating"},ya={key:0,class:"required text-[red]"},ba={key:0,class:"c-form__error"},Fa={key:0,class:"c-form__error"},Sa={class:"c-form__label c-form__label--not-floating"},Na={key:0,class:"required text-[red]"},Ta={key:0,class:"c-form__instructions u-margin-bottom-sm"},Ca={class:"c-form__file-upload-controls"},Ea=["id","multiple","accept","name","onChange"],qa=["for"],Va=u("i",{class:"o-icon o-icon--medium"},[u("svg",{"aria-hidden":"true"},[u("use",{href:"#icon-file",fill:"currentColor"})])],-1),La={class:"c-button__inner"},wa=u("i",{class:"o-icon o-icon--medium"},[u("svg",{"aria-hidden":"true"},[u("use",{href:"#icon-file",fill:"currentColor"})])],-1),$a={class:"c-form__input--upload-filename"},Aa={key:1,class:"c-form__error"},Ba={key:0,class:"c-form__row"},Da=u("div",{id:"formie-form-recaptcha-container"},null,-1),Ia={key:0,class:"c-form__error"},Ma={key:1,class:"c-form__error c-form__error--global"},Ra={key:0},Ua=["innerHTML"],Ha={key:2},Oa={key:2,class:"c-form__buttons u-margin-top-xl"},xa=["disabled"],Pa={class:"c-button__inner"},za=st('<i class="o-icon o-icon--medium o-icon--loader"><svg aria-hidden="true"><use href="#icon-loader" fill="currentColor"></use></svg></i><i class="o-icon o-icon--medium"><svg aria-hidden="true"><use href="#icon-arrow-right" fill="currentColor"></use></svg></i>',2),ja=u("i",{class:"o-icon o-icon--medium"},[u("svg",{"aria-hidden":"true"},[u("use",{href:"#icon-print",fill:"currentColor"})])],-1),Ka={class:"c-button__inner"},Ya=u("i",{class:"o-icon o-icon--medium"},[u("svg",{"aria-hidden":"true"},[u("use",{href:"#icon-print",fill:"currentColor"})])],-1),Ga={key:1,class:"c-form__success"},Ja=["innerHTML"],Qa={key:1,class:"u-h6"},Wa=O({__name:"FormieForm",props:{form:{type:Object,default:{},required:!0},pageTitle:{type:String,default:""}},setup(e){const n=e,a=t=>{var l,s;return t.type==="verbb\\formie\\fields\\formfields\\FileUpload"||((s=(l=t.type)==null?void 0:l.includes)==null?void 0:s.call(l,"FileUpload"))===!0},r=(t,l)=>`file-upload-${t.handle}-${l}`,d=t=>t.replace(/<input[^>]*type=["']?file["']?[^>]*>/gi,""),g=t=>{const l=t.limitFiles?parseInt(String(t.limitFiles),10):1;return Number.isNaN(l)?1:l},S=t=>g(t)!==1,k=t=>{const l=g(t);return l===0?null:l},C=t=>{if(t.restrictFiles===!1)return;const l=t.allowedKinds;if(!(l!=null&&l.length))return;const s={image:"image/*",pdf:".pdf",document:".doc,.docx,.odt,.pdf,.rtf",json:".json",spreadsheet:".csv,.xls,.xlsx,.ods",video:"video/*",audio:"audio/*"},v=l.map(f=>s[f]||`.${f}
1`).filter(Boolean);return v.length?v.join(","):void 0},D=(t,l,s)=>{if(!l.length)return!0;const v=k(t);if(v!==null&&l.length>v)return N[s]=h("modules.forms.validation.fileCount",{max:v}),!1;const{maxMb:f,minMb:y}=aa(t),w=Je(f),A=y>0?Je(y):0;for(const B of l){if(B.size>w)return N[s]=h("modules.forms.validation.fileSizeMax",{max:f}),!1;if(A>0&&B.size<A)return N[s]=h("modules.forms.validation.fileSizeMin",{min:y}),!1}return!0},q=(t,l)=>{var w;const s=n.form.formFields[l],v=(w=t==null?void 0:t.target)==null?void 0:w.files;let f=v?Array.from(v):[];const y=k(s);y!==null&&f.length>y&&(f=f.slice(0,y)),p[l].value=f,p[l].touched=!0,qe(l)},K=()=>n.form.formFields.some((t,l)=>a(t)&&Array.isArray(p[l].value)&&p[l].value.some(s=>s instanceof File)),L=()=>{const t={data:{},handle:n.form.handle,fields:ct(P),pageTitle:n.pageTitle,recaptchaToken:se.value?ie.value:""};for(const l of Object.keys(p)){const s=p[Number(l)],v=n.form.formFields[Number(l)],f=s.handle.replace(/[{}]/g,"");s.handle=f,!($[Number(l)]||a(v))&&(t.data[f]=s.value)}return t},Y=()=>{const t=[];for(const l of Object.keys(p)){const s=p[Number(l)],v=n.form.formFields[Number(l)],f=s.handle.replace(/[{}]/g,"");if(!a(v)||!Array.isArray(s.value))continue;let y=0;for(const w of s.value)w instanceof File&&(t.push({file:w,fieldHandle:f,fileIndex:y}),y+=1)}return t},Se=()=>{const t=Y();return t.length===0?!1:t.reduce((s,v)=>s+v.file.size,0)<=Qe},Ne=async()=>{const t=Y(),l=L(),s={};for(let v=0;v<t.length;v++){const{file:f,fieldHandle:y}=t[v];H.value=h("modules.forms.uploadingFilesProgress",{current:v+1,total:t.length,percent:Math.round((v+1)/t.length*100)}),s[y]||(s[y]=[]),s[y].push(await sa(f))}return $fetch("/api/formie",{method:"POST",timeout:3e5,body:JSON.stringify({...l,data:{...l.data,...s}}),headers:{"Content-Type":"application/json"}})},Te=async()=>{const t=Y(),l={};for(let v=0;v<t.length;v++){const{file:f,fieldHandle:y}=t[v];if(f.size>Qe){const B=new Error("Request Entity Too Large");throw B.statusCode=413,B}H.value=h("modules.forms.uploadingFilesProgress",{current:v+1,total:t.length,percent:0});const w=new FormData;w.append("file",f,f.name);const A=await $fetch("/api/formie-asset",{method:"POST",timeout:18e4,body:w});l[y]||(l[y]=[]),l[y].push({assetId:A.assetId,filename:A.filename})}const s=L();return $fetch("/api/formie",{method:"POST",timeout:3e5,body:JSON.stringify({...s,data:{...s.data,...l}}),headers:{"Content-Type":"application/json"}})},Ce=t=>t.includeDate??t.isDate??!0,E=t=>t.includeTime??t.isTime??t.isDateTime??!1,{t:h}=ot(),R=dt(),X=V(!1),z=V(!1),j=V(!1),x=V(!1),H=V(""),G=V(!1),re=V(!1),J=V(""),ie=V(""),le=V(!1),se=W(()=>!R.public.recaptchaDisabled&&Boolean(R.public.recaptchaSiteKey)),Be=t=>/255/.test(t)&&/caract/i.test(t)?h("modules.forms.validation.checkboxStoredMax"):/n'est pas autorisé dans ce champ|is not allowed in this field/i.test(t)?h("modules.forms.validation.fileTypeNotAllowed"):/invalid request body/i.test(t)?h("modules.forms.validation.invalidRequestBody"):t,vt=t=>{for(const[l,s]of Object.entries(t)){const v=n.form.formFields.findIndex(f=>f.handle===l);v>=0&&s.length&&(N[v]=xt(s.map(Be)))}},pt=t=>{var v;const l=pe(t),s=(l==null?void 0:l.globalMessage)||((v=t==null?void 0:t.data)==null?void 0:v.message)||(t==null?void 0:t.message)||"";if(Pt(t)){const f=pe(t);return(f==null?void 0:f.globalMessage)==="CRAFT_ASSET_MUTATION_REQUIRED"||G.value?h("modules.forms.validation.payloadTooLargeCraft"):h("modules.forms.validation.payloadTooLarge")}if(G.value&&Number((t==null?void 0:t.statusCode)??(t==null?void 0:t.status)??0)===502||typeof s=="string"&&/Netlify Blobs|NETLIFY_SITE_ID|NETLIFY_BLOBS_TOKEN/i.test(s))return h("modules.forms.validation.blobsNotConfigured");if(typeof s=="string"&&s.trim().startsWith("{")){const f=Ot(s);if(Object.keys(f.fieldErrors).length)return h("modules.forms.validation.fixFieldErrors")}return Be(String(s))||h("modules.forms.error")},kt=R.public.recaptchaSiteKey,gt=()=>{typeof window<"u"&&window.grecaptcha&&window.grecaptcha.ready(()=>{window.grecaptcha.render("formie-form-recaptcha-container",{sitekey:kt,callback:t=>{ie.value=t,le.value=!1},"expired-callback":()=>{ie.value="",le.value=!0},"error-callback":()=>{ie.value="",le.value=!0}})})};he(()=>{if(!se.value)return;const t=()=>{window.grecaptcha?gt():setTimeout(t,100)};t()});const P=ne(n.form.formFields.map(t=>({...t,name:t.name||t.label||"",type:Ze(t.type)}))),p=ne(P.map((t,l)=>({handle:`{${t.handle}}`,value:"",touched:!1,index:l}))),N=ne(n.form.formFields.map(()=>"")),$=ne({}),ve=V(null),ht=()=>{var t,l;(t=document.querySelector(".c-main"))==null||t.classList.add("not-printable"),(l=document.querySelector(".c-footer"))==null||l.classList.add("not-printable"),window.print()},Ee=(t,l)=>{if(t===!0||t===1)return!0;const s=l.checkedValue;
1return s!=null&&s!==""?String(t)===String(s):t!==!1&&t!==""&&t!=null&&t!==l.uncheckedValue},_t=(t,l)=>{const s=String(l.checkedValue??"1");return Ee(t,l)?[s]:[]},yt=(t,l,s)=>{const v=String(s.checkedValue??"1");p[l].value=t.includes(v)?s.checkedValue??!0:s.uncheckedValue??!1,p[l].touched=!0},qe=t=>{const l=P[t];if(!p[t].touched||(N[t]="",$[t]))return!0;if(l.required){const s=p[t].value;switch(l.type){case"verbb\\formie\\fields\\formfields\\Checkboxes":case"verbb\\formie\\fields\\formfields\\MultiSelect":case"verbb\\formie\\fields\\formfields\\Dropdown":if(!Array.isArray(s)||s.length===0||s.length===1&&s[0]==="")return N[t]=h("modules.forms.validation.required"),!1;break;case"verbb\\formie\\fields\\formfields\\Address":if(!s||l.address1Required&&!s.address1||l.cityRequired&&!s.city||l.stateRequired&&!s.state||l.zipRequired&&!s.zip||l.countryRequired&&!s.country)return N[t]=h("modules.forms.validation.required"),!1;break;case"verbb\\formie\\fields\\formfields\\Agree":if(!Ee(s,l))return N[t]=h("modules.forms.validation.required"),!1;break;case"verbb\\formie\\fields\\formfields\\SingleLineText":case"verbb\\formie\\fields\\formfields\\MultiLineText":if(s==null||s.trim()==="")return N[t]=h("modules.forms.validation.required"),!1;break;default:if(a(l)){const v=Array.isArray(s)?s.filter(f=>f instanceof File):[];if(l.required&&!v.length)return N[t]=h("modules.forms.validation.required"),!1;if(v.length&&!D(l,v,t))return!1}else if(!s||s==="")return N[t]=h("modules.forms.validation.required"),!1;break}}switch(l.type){case"verbb\\formie\\fields\\formfields\\Email":if(p[t].value&&!De(p[t].value))return N[t]=h("modules.forms.validation.email"),!1;break;case"verbb\\formie\\fields\\formfields\\MultiLineText":case"verbb\\formie\\fields\\formfields\\SingleLineText":if(l.max&&p[t].value&&p[t].value.length>l.max)return N[t]=h("modules.forms.validation.maxLength",{max:l.max}),!1;break}switch(l.type){case"verbb\\formie\\fields\\formfields\\Email":if(p[t].value&&!De(p[t].value))return N[t]=h("modules.forms.validation.email"),!1;break;case"verbb\\formie\\fields\\formfields\\MultiLineText":case"verbb\\formie\\fields\\formfields\\SingleLineText":if(l.max&&p[t].value&&p[t].value.length>l.max)return N[t]=h("modules.forms.validation.maxLength",{max:l.max}),!1;break;case"verbb\\formie\\fields\\formfields\\Checkboxes":if(Ge(p[t].value)>Ke)return N[t]=h("modules.forms.validation.checkboxStoredMax"),!1;break}return!0},bt=(t,l)=>{var v,f;let s=null;switch(Ze(l)){case"verbb\\formie\\fields\\formfields\\Agree":s=t.defaultState?t.checkedValue??!0:t.uncheckedValue??!1;break;case"verbb\\formie\\fields\\formfields\\Checkboxes":case"verbb\\formie\\fields\\formfields\\MultiSelect":const y=(v=t.options)==null?void 0:v.filter(Z=>Z.isDefault).map(Z=>Z.value);s=y&&y.length>0?y:[];break;case"verbb\\formie\\fields\\formfields\\Dropdown":s=[];break;case"verbb\\formie\\fields\\formfields\\Radio":const w=(f=t.options)==null?void 0:f.find(Z=>Z.isDefault);s=w?w.value:"";break;case"verbb\\formie\\fields\\formfields\\Address":s={address1:"",city:"",state:"",country:["Canada"],zip:""};break;case"verbb\\formie\\fields\\formfields\\Date":let A=new Date;t.defaultDate&&(A=new Date(t.defaultDate));const B={year:A.getFullYear(),month:String(A.getMonth()+1).padStart(2,"0"),day:String(A.getDate()).padStart(2,"0"),hour:String(A.getHours()).padStart(2,"0"),minute:String(A.getMinutes()).padStart(2,"0")};s=`${B.year}-${B.month}-${B.day}T${B.hour}:${B.minute}`;break;case"verbb\\formie\\fields\\formfields\\SingleLineText":case"verbb\\formie\\fields\\formfields\\MultiLineText":s="";break;default:s=a(t)?[]:"";break}return s},De=t=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),Ft=W(()=>{let t=!0;p.forEach((s,v)=>{const f=P[v];if(!$[v]&&f.required){const y=s.value;switch(f.type){case"verbb\\formie\\fields\\formfields\\Checkboxes":case"verbb\\formie\\fields\\formfields\\MultiSelect":case"verbb\\formie\\fields\\formfields\\Dropdown":(!Array.isArray(y)||y.length===0||y.length===1&&y[0]==="")&&(t=!1);break;case"verbb\\formie\\fields\\formfields\\Address":(!y||f.address1Required&&!y.address1||f.cityRequired&&!y.city||f.stateRequired&&!y.state||f.zipRequired&&!y.zip||f.countryRequired&&!y.country)&&(t=!1);break;case"verbb\\formie\\fields\\formfields\\Agree":Ee(y,f)||(t=!1);break;case"verbb\\formie\\fields\\formfields\\SingleLineText":case"verbb\\formie\\fields\\formfields\\MultiLineText":(y==null||y.trim()==="")&&(t=!1);break;default:if(a(f)){const w=Array.isArray(y)?y.filter(A=>A instanceof File):[];(f.required&&!w.length||w.length&&!D(f,w,v))&&(t=!1)}else(!y||y==="")&&(t=!1);break}}}),p.forEach((s,v)=>{const f=P[v];$[v]||f.type==="verbb\\formie\\fields\\formfields\\Checkboxes"&&Ge(s.value)>Ke&&(t=!1)});const l=!se.value||ie.value!==""&&!le.value;return t&&l}),Ie=(t,l)=>{const s=ft(t,p);return $[l]=s,s};ce(p,(t,l)=>{t.forEach((s,v)=>{s.value!==l[v].value&&(p[v].touched=!0,qe(v)),P.forEach((f,y)=>{f.enableConditions&&f.conditions&&Ie(f,y)})})},{deep:!0}),he(()=>{P.forEach((t,l)=>{Ie(t,l)})});const St=async t=>
1{if(t.preventDefault(),re.value=!1,J.value="",N.forEach((v,f)=>{N[f]=""}),p.forEach((v,f)=>{p[f].touched=!0,qe(f)}),se.value&&!ie.value){le.value=!0;return}if(!Ft.value)return;const l=K(),s=l&&Se();G.value=l,z.value=!0,x.value=l,H.value=l?h("modules.forms.uploadingFilesProgress",{current:1,total:Y().length||1,percent:0}):"";try{let v;s?(j.value=!0,v=await Ne(),x.value=!1):l?(j.value=!0,v=await Te(),x.value=!1):v=await $fetch("/api/formie",{method:"POST",timeout:3e5,body:JSON.stringify(L()),headers:{"Content-Type":"application/json"}}),v&&v.success&&(X.value=!0,z.value=!1,j.value=!1,x.value=!1,ve&&ve.value&&ve.value.scrollIntoView({behavior:"smooth"}))}catch(v){re.value=!0;const f=pe(v),y=f==null?void 0:f.fieldErrors;if(y&&Object.keys(y).length>0){vt(y);const w=Object.values(y).flat().join(" "),A=(f==null?void 0:f.globalMessage)||"";J.value=A&&!w.includes(A)?A:h("modules.forms.validation.fixFieldErrors")}else J.value=pt(v);z.value=!1,j.value=!1,x.value=!1,H.value=""}};return lt(()=>{n.form&&P.length&&P.forEach((t,l)=>{p[l]={handle:`{${t.handle}}`,value:bt(t,t.type),touched:!1,index:l}})}),(t,l)=>{var Z,Me,Re,Ue,He,Oe,xe;const s=kn,v=Sn,f=qn,y=$n,w=In,A=Yn,B=ta;return e.form&&e.form.formFields&&P?(o(),c("div",{key:0,id:"printable",ref_key:"formWrapper",ref:ve,class:"wrapper"},[X.value?(o(),c("div",Ga,[(Oe=e.form.settings)!=null&&Oe.submitActionMessageHtml?(o(),c("div",{key:0,class:"u-h6",innerHTML:(xe=e.form.settings)==null?void 0:xe.submitActionMessageHtml},null,8,Ja)):(o(),c("p",Qa,F(t.$t("modules.forms.success")),1))])):(o(),c(M,{key:0},[x.value?(o(),c("div",oa,[u("p",da,F(t.$t("modules.forms.uploadingFiles")),1),u("p",null,F(H.value),1)])):j.value?(o(),c("div",ca,[u("p",ua,F(t.$t("modules.forms.processing")),1),u("p",null,F(t.$t("modules.forms.processingHint")),1)])):(o(),c("form",{key:2,onSubmit:rt(St,["prevent"]),method:"POST",class:"u-margin-bottom-xl formie"},[u("input",{type:"hidden",name:"handle",value:e.form.handle},null,8,fa),(o(!0),c(M,null,ae(P,(i,m)=>{var Pe,ze,je;return o(),c(M,{key:m},[i.type==="verbb\\formie\\fields\\formfields\\Heading"?(o(),c("div",va,[u("h3",null,F(i.name),1)])):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\Html"&&i.htmlContent?(o(),c("div",{key:1,class:b(["c-richtext c-form__content"]),innerHTML:d(i.htmlContent)},null,8,pa)):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\SingleLineText"?(o(),c("div",{key:2,class:b(["c-form__row",{"is-hidden":$[m]}])},[I(s,{modelValue:p[m].value,"onUpdate:modelValue":T=>p[m].value=T,required:i.required,label:i.name,name:i.handle,instructions:i.instructions||"",errors:N[m],placeholder:i.placeholder||"",type:"text"},null,8,["modelValue","onUpdate:modelValue","required","label","name","instructions","errors","placeholder"])],2)):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\Email"?(o(),c("div",{key:3,class:b(["c-form__row",{"is-hidden":$[m]}])},[I(s,{modelValue:p[m].value,"onUpdate:modelValue":T=>p[m].value=T,required:i.required,label:i.name,name:i.handle,instructions:i.instructions||"",errors:N[m],placeholder:i.placeholder||"",type:"email"},null,8,["modelValue","onUpdate:modelValue","required","label","name","instructions","errors","placeholder"])],2)):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\MultiLineText"?(o(),c("div",{key:4,class:b(["c-form__row",{"is-hidden":$[m]}])},[I(v,{modelValue:p[m].value,"onUpdate:modelValue":T=>p[m].value=T,required:i.required,label:i.name,name:i.handle,limit:i.limit,max:i.max||0,errors:N[m],placeholder:i.placeholder||""},null,8,["modelValue","onUpdate:modelValue","required","label","name","limit","max","errors","placeholder"])],2)):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\Date"?(o(),c("div",{key:5,class:b(["c-form__row",{"is-hidden":$[m]}])},[I(f,{modelValue:p[m].value,"onUpdate:modelValue":T=>p[m].value=T,label:i.name,errors:N[m],includeTime:E(i),includeDate:Ce(i),defaultDate:i.defaultDate,timeLabel:i.timeLabel},null,8,["modelValue","onUpdate:modelValue","label","errors","includeTime","includeDate","defaultDate","timeLabel"])],2)):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\Radio"?(o(),c("div",{key:6,class:b(["c-form__row c-form__row--has-col",{"is-hidden":$[m]}])},[u("div",{class:b(["c-form__item c-form__input u-12/12 c-form__col",{"has-error":N[m]!==""}])},[u("label",ka,[Q(F(i.name)+" ",1),i.required?(o(),c("span",ga,"*")):_("",!0)]),(o(!0),c(M,null,ae(i.options,
1(T,Ve)=>(o(),de(y,{key:Ve,modelValue:T.value,"onUpdate:modelValue":ee=>T.value=ee,label:T.label,name:i.handle,checked:T.isDefault,errors:N[m],selected:p[m].value,"onUpdate:selected":ee=>p[m].value=ee},null,8,["modelValue","onUpdate:modelValue","label","name","checked","errors","selected","onUpdate:selected"]))),128))],2),N[m]!==""?(o(),c("small",ha,F(N[m]),1)):_("",!0)],2)):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\Checkboxes"?(o(),c("div",{key:7,class:b(["c-form__row c-form__row--has-col",{"is-hidden":$[m]}])},[u("div",{class:b(["c-form__item c-form__input u-12/12 c-form__col",{"has-error":N[m]!==""}])},[u("label",_a,[Q(F(i.name)+" ",1),i&&i.required?(o(),c("span",ya,"*")):_("",!0)]),(o(!0),c(M,null,ae(i.options,(T,Ve)=>(o(),de(w,{key:Ve,modelValue:T.value,"onUpdate:modelValue":ee=>T.value=ee,label:T.label,name:i.handle,checked:T.isDefault,selected:p[m].value,"onUpdate:selected":ee=>p[m].value=ee,errors:N[m]},null,8,["modelValue","onUpdate:modelValue","label","name","checked","selected","onUpdate:selected","errors"]))),128))],2),N[m]!==""?(o(),c("small",ba,F(N[m]),1)):_("",!0)],2)):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\MultiSelect"||i.type==="verbb\\formie\\fields\\formfields\\Dropdown"?(o(),c("div",{key:8,class:b(["c-form__row c-form__row--select",{"is-hidden":$[m]}])},[I(A,{modelValue:p[m].value,"onUpdate:modelValue":T=>p[m].value=T,name:`${i.handle}`,required:i.required,options:i.options||[],label:i.name,multiple:i.multi,errors:N[m],default:(ze=(Pe=i.options)==null?void 0:Pe[0])==null?void 0:ze.value,selected:p[m].value,"onUpdate:selected":T=>p[m].value=T},null,8,["modelValue","onUpdate:modelValue","name","required","options","label","multiple","errors","default","selected","onUpdate:selected"])],2)):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\Address"&&i.address1Enabled&&i.address1Label?(o(),c("div",{key:9,class:b(["c-form__row",{"is-hidden":$[m]}])},[I(B,{modelValue:p[m].value.address1,"onUpdate:modelValue":T=>p[m].value.address1=T,required:i.address1Required,label:i.address1Label,placeholder:i.address1Placeholder,errors:N[m],name:`${i.handle}[address1]`,type:"text"},null,8,["modelValue","onUpdate:modelValue","required","label","placeholder","errors","name"])],2)):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\Address"&&i.address2Enabled&&i.address2Label?(o(),c("div",{key:10,class:b(["c-form__row",{"is-hidden":$[m]}])},[I(B,{modelValue:p[m].value.address2,"onUpdate:modelValue":T=>p[m].value.address2=T,required:i.address2Required,label:i.address2Label,placeholder:i.address2Placeholder,errors:N[m],name:`${i.handle}[address2]`,type:"text"},null,8,["modelValue","onUpdate:modelValue","required","label","placeholder","errors","name"])],2)):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\Address"&&i.address3Enabled&&i.address3Label?(o(),c("div",{key:11,class:b(["c-form__row",{"is-hidden":$[m]}])},[I(B,{modelValue:p[m].value.address3,"onUpdate:modelValue":T=>p[m].value.address3=T,required:i.address3Required,label:i.address3Label,placeholder:i.address3Placeholder,errors:N[m],name:`${i.handle}[address3]`,type:"text"},null,8,["modelValue","onUpdate:modelValue","required","label","placeholder","errors","name"])],2)):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\Address"&&i.cityEnabled&&i.cityLabel?(o(),c("div",{key:12,class:b(["c-form__row",{"is-hidden":$[m]}])},[I(B,{modelValue:p[m].value.city,"onUpdate:modelValue":T=>p[m].value.city=T,required:i.cityRequired,label:i.cityLabel,placeholder:i.cityPlaceholder,errors:N[m],name:`${i.handle}[city]`,type:"text"},null,8,["modelValue","onUpdate:modelValue","required","label","placeholder","errors","name"])],2)):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\Address"&&i.stateEnabled&&i.stateLabel?(o(),c("div",{key:13,class:b(["c-form__row",{"is-hidden":$[m]}])},[I(B,{modelValue:p[m].value.state,"onUpdate:modelValue":T=>p[m].value.state=T,required:i.stateRequired,label:i.stateLabel,placeholder:i.statePlaceholder,errors:N[m],name:`${i.handle}[state]`,type:"text"},null,8,["modelValue","onUpdate:modelValue","required","label","placeholder","errors","name"])],2)):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\Address"&&i.countryEnabled&&i.countryLabel?(
1o(),c("div",{key:14,class:b(["c-form__row c-form__row--select",{"is-hidden":$[m]}])},[I(A,{modelValue:p[m].value.country,"onUpdate:modelValue":T=>p[m].value.country=T,placeholder:i.countryPlaceholder,name:`${i.handle}[country]`,required:i.required,options:i.countryOptions,label:i.countryLabel,errors:N[m],default:i.countryDefaultValue,selected:p[m].value.country,"onUpdate:selected":T=>p[m].value.country=T},null,8,["modelValue","onUpdate:modelValue","placeholder","name","required","options","label","errors","default","selected","onUpdate:selected"])],2)):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\Address"&&i.zipEnabled&&i.zipLabel?(o(),c("div",{key:15,class:b(["c-form__row",{"is-hidden":$[m]}])},[I(B,{modelValue:p[m].value.zip,"onUpdate:modelValue":T=>p[m].value.zip=T,required:i.zipRequired,label:i.zipLabel,placeholder:i.zipPlaceholder,errors:N[m],name:`${i.handle}[zip]`,type:"text"},null,8,["modelValue","onUpdate:modelValue","required","label","placeholder","errors","name"])],2)):_("",!0),i.type==="verbb\\formie\\fields\\formfields\\Agree"?(o(),c("div",{key:16,class:b(["c-form__row c-form__row--has-col",{"is-hidden":$[m]}])},[u("div",{class:b(["c-form__item c-form__input u-12/12 c-form__col c-form__col__tight",{"has-error":N[m]!==""}])},[u("p",null,F(i.name),1),I(w,{modelValue:i.checkedValue||"1",checked:i.defaultState,selected:_t(p[m].value,i),label:i.descriptionHtml||"",name:i.handle,required:i.required,errors:N[m],"onUpdate:selected":T=>yt(T,m,i)},null,8,["modelValue","checked","selected","label","name","required","errors","onUpdate:selected"])],2),N[m]!==""?(o(),c("small",Fa,F(N[m]),1)):_("",!0)],2)):_("",!0),a(i)?(o(),c("div",{key:17,class:b(["c-form__row",{"is-hidden":$[m]}])},[u("div",{class:b(["c-form__item c-form__item--file-upload u-12/12",{"has-error":N[m]!==""}])},[u("p",Sa,[Q(F(i.name)+" ",1),i.required?(o(),c("span",Na,"*")):_("",!0)]),i.instructions?(o(),c("p",Ta,F(i.instructions),1)):_("",!0),u("div",Ca,[u("input",{id:r(i,m),type:"file",multiple:S(i),accept:C(i),name:i.handle,class:"c-form__input--file-native",tabindex:"-1","aria-hidden":"true",onChange:T=>q(T,m)},null,40,Ea),u("label",{for:r(i,m),class:"c-button c-button--primary c-form__file-upload-trigger"},[Va,u("span",La,F(t.$t("modules.forms.contact.file.label")),1),wa],8,qa),u("span",$a,F((((je=p[m].value)==null?void 0:je.length)||0)>0?p[m].value.map(T=>T.name).join(", "):t.$t("modules.forms.contact.file.placeholder")),1)]),N[m]!==""?(o(),c("small",Aa,F(N[m]),1)):_("",!0)],2)],2)):_("",!0)],64)}),128)),U(se)?(o(),c("div",Ba,[Da,le.value?(o(),c("div",Ia,F(t.$t("modules.forms.validation.recaptcha")),1)):_("",!0)])):_("",!0),re.value?(o(),c("div",Ma,[J.value?(o(),c("small",Ra,F(J.value),1)):(Z=e.form.settings)!=null&&Z.errorMessageHtml?(o(),c("div",{key:1,innerHTML:(Me=e.form.settings)==null?void 0:Me.errorMessageHtml},null,8,Ua)):(o(),c("small",Ha,F(t.$t("modules.forms.error")),1))])):_("",!0),(He=(Ue=(Re=e.form.pages)==null?void 0:Re[0])==null?void 0:Ue.settings)!=null&&He.submitButtonLabel?(o(),c("div",Oa,[u("div",null,[u("button",{type:"submit",disabled:z.value||j.value,class:b(["c-button c-button--primary",{"c-button--loading":z.value||j.value}])},[u("span",Pa,F(e.form.pages[0].settings.submitButtonLabel),1),za],10,xa)]),u("div",null,[u("button",{class:"c-button c-button--secondary c-modal__print",onClick:ht,type:"button"},[ja,u("span",Ka,F(t.$t("pages.directory.print")),1),Ya])])])):_("",!0)],40,ma))],64))],512)):_("",!0)}}});const Xa={class:"c-form-selector o-container"},Za={key:1,class:"o-grid o-grid--col-4 o-grid--col-12@desktop o-grid--horizontal-gutters-large"},ei={class:"has-background o-grid__item u-gc-1/7@desktop"},ti={class:"c-sticky-hero"},ni={class:"o-grid__item u-gc-7/13@desktop"},ai={class:"c-form-selector__content"},ii=["innerHTML"],li=["innerHTML"],ri=O({__name:"FormSelector",props:{content:{type:Object,default:{}},form:{type:Object,default:{}},pageTitle:{type:String,default:""}},setup(e){const n=e,a=W(()=>{var r,d;return(d=(r=n.form.handle)==null?void 0:r.toLowerCase())==null?void 0:d.includes("feedback")});return(r,d)=>{const g=ln,S=qt,k=Vt,C=Wa;return o(),c("div",Xa,[U(a)?(o(),de(g,{key:0,form:e.form,pageTitle:e.pageTitle},null,8,["form","pageTitle"])):(o(),c("div",Za,[u("div",ei,[u("div",ti,[I(k,{titleLevel:2,title:e.form.title,titleSizeClass:"u-h2"},{image:Ct(()=>[e.content.module_image&&e.content.module_image[0]?(o(),de(S,{key:0,imageTitle:e.content.module_image[0].title,imageAlt:e.content.module_image[0].alt,images:{webpSmall:e.content.module_image[0].webpSmall,jpegSmall:e.content.module_image[0].jpegSmall,webpLarge:e.content.module_image[0].webpLarge,jpegLarge:e.content.module_image[0].jpegLarge}},null,8,["imageTitle","imageAlt","images"])):_("",!0)]),_:1},8,["title"])])]),u("div",ni,[u("div",ai,[e.content.module_title?(o(),c("h3",{key:0,innerHTML:e.content.module_title,class:"u-h5"},null,8,ii)):_("",!0),e.content.module_description?(o(),c("div",{key:1,class:"c-form-selector__description",innerHTML:("ckeditorHtml"in r?r.ckeditorHtml:U(it))(e.content.module_description)},null,8,li)):_("",!0),I(C,{form:e.form,pageTitle:e.pageTitle},null,8,["form","pageTitle"])])])]))])}}});const Ti=_e(ri,[["__scopeId","data-v-a6b9b0e9"]]);var be={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Formie"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"handle"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formieForm"},arguments:[{kind:"Argument",name:{kind:"Name",value:"handle"},value:{kind:"Variable",name:{kind:"Name",value:"handle"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"handle"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"settings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"errorMessageHtml"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"submitActionMessageHtml"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"pages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"settings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"submitButtonLabel"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"formFields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"handle"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"instructions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"required"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"placeholder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"inputTypeName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errorMessage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"enableConditions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"conditions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visibility"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"inputAttributes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_Html"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"htmlContent"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_MultiLineText"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"limit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"max"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_Checkboxes"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"defaultValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDefault"},arguments:[],directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_Dropdown"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"multi"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDefault"},arguments:[],directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_Radio"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"defaultValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDefault"},arguments:[],directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_Agree"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"descriptionHtml"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"checkedValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"uncheckedValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultState"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_Date"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"includeDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"includeTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timeLabel"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_CustomFileUpload"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"limitFiles"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sizeLimit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sizeMinLimit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"allowedKinds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"restrictFiles"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_Address"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"address1Enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address1Label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address1Placeholder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address1Required"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address2Enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address2Label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address2Placeholder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address2Required"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address3Enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address3Label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address3Placeholder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address3Required"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stateEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stateLabel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statePlaceholder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stateRequired"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryLabel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryPlaceholder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryDefaultValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryRequired"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryOptions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"cityEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cityLabel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cityPlaceholder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cityRequired"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zipEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zipLabel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zipPlaceholder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zipRequired"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:2241}};be.loc.source={body:`query Formie($handle: [String]) {
2  formieForm(handle: $handle) {
3    title
4    handle
5
6    settings {
7      errorMessageHtml
8      submitActionMessageHtml
9    }
10
11    pages {
12      settings {
13        submitButtonLabel
14      }
15    }
16
17    formFields {
18      name
19      handle
20      type
21      instructions
22      required
23      placeholder
24      inputTypeName
25      errorMessage
26      displayName
27      enableConditions
28      conditions
29      visibility
30      inputAttributes {
31        label
32        value
33      }
34
35      ... on Field_Html {
36        htmlContent
37      }
38
39      ... on Field_MultiLineText {
40        limit
41        max
42      }
43
44      ... on Field_Checkboxes {
45        defaultValue
46        options {
47          label
48          value
49          isDefault
50        }
51      }
52
53      ... on Field_Dropdown {
54        multi
55        defaultValue
56        options {
57          label
58          value
59          isDefault
60        }
61      }
62
63      ... on Field_Radio {
64        defaultValue
65        options {
66          label
67          value
68          isDefault
69        }
70      }
71
72      ... on Field_Agree {
73        descriptionHtml
74        checkedValue
75        uncheckedValue
76        defaultState
77      }
78
79      ... on Field_Date {
80        includeDate
81        includeTime
82        defaultDate
83        timeLabel
84      }
85
86      ... on Field_CustomFileUpload {
87        limitFiles
88        sizeLimit
89        sizeMinLimit
90        allowedKinds
91        restrictFiles
92      }
93
94      ... on Field_Address {
95        address1Enabled
96        address1Label
97        address1Placeholder
98        address1Required
99        address2Enabled
100        address2Label
101        address2Placeholder
102        address2Required
103        address3Enabled
104        address3Label
105        address3Placeholder
106        address3Required
107        stateEnabled
108        stateLabel
109        statePlaceholder
110        stateRequired
111        countryEnabled
112        countryLabel
113        countryPlaceholder
114        countryDefaultValue
115        countryRequired
116        countryOptions {
117          label
118          value
119        }
120        cityEnabled
121        cityLabel
122        cityPlaceholder
123        cityRequired
124        zipEnabled
125        zipLabel
126        zipPlaceholder
127        zipRequired
128      }
129    }
130  }
131}
132`,name:"GraphQL request",locationOffset:{line:1,column:1}};function ke(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var a=e.type;a.kind==="NamedType"&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){ke(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){ke(r,n)}),e.definitions&&e.definitions.forEach(function(r){ke(r,n)})}var we={};(function(){be.definitions.forEach(function(n){if(n.name){var a=new Set;ke(n,a),we[n.name.value]=a}})})();function et(e,n){for(var a=0;a<e.definitions.length;a++){var r=e.definitions[a];if(r.name&&r.name.value==n)return r}}function si(e,n){var a={kind:e.kind,definitions:[et(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=we[n]||new Set,d=new Set,g=new Set;for(r.forEach(function(k){g.add(k)});g.size>0;){var S=g;
132g=new Set,S.forEach(function(k){if(!d.has(k)){d.add(k);var C=we[k]||new Set;C.forEach(function(D){g.add(D)})}})}return d.forEach(function(k){var C=et(e,k);C&&a.definitions.push(C)}),a}si(be,"Formie");var Fe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Formie"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"handle"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formieForm"},arguments:[{kind:"Argument",name:{kind:"Name",value:"handle"},value:{kind:"Variable",name:{kind:"Name",value:"handle"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"handle"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"settings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"errorMessageHtml"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"submitActionMessageHtml"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"pages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"settings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"submitButtonLabel"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"formFields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"name"},name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"handle"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"instructions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"required"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"placeholder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"inputTypeName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errorMessage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"enableConditions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"conditions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visibility"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"inputAttributes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_Html"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"htmlContent"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_MultiLineText"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"limit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"max"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_Checkboxes"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"defaultValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDefault"},arguments:[],directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_Dropdown"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"multi"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDefault"},arguments:[],directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_Radio"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"defaultValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDefault"},arguments:[],directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_Agree"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"descriptionHtml"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"checkedValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"uncheckedValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultState"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_Date"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDateTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultDate"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Field_CustomFileUpload"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"limitFiles"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sizeLimit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sizeMinLimit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"allowedKinds"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:1443}};Fe.loc.source={body:`query Formie($handle: [String]) {
133  formieForm(handle: $handle) {
134    title
135    handle
136
137    settings {
138      errorMessageHtml
139      submitActionMessageHtml
140    }
141
142    pages {
143      settings {
144        submitButtonLabel
145      }
146    }
147
148    formFields {
149      name: label
150      handle
151      type
152      instructions
153      required
154      placeholder
155      inputTypeName
156      errorMessage
157      displayName
158      enableConditions
159      conditions
160      visibility
161      inputAttributes {
162        label
163        value
164      }
165
166      ... on Field_Html {
167        htmlContent
168      }
169
170      ... on Field_MultiLineText {
171        limit
172        max
173      }
174
175      ... on Field_Checkboxes {
176        defaultValue
177        options {
178          label
179          value
180          isDefault
181        }
182      }
183
184      ... on Field_Dropdown {
185        multi
186        defaultValue
187        options {
188          label
189          value
190          isDefault
191        }
192      }
193
194      ... on Field_Radio {
195        defaultValue
196        options {
197          label
198          value
199          isDefault
200        }
201      }
202
203      ... on Field_Agree {
204        descriptionHtml
205        checkedValue
206        uncheckedValue
207        defaultState
208      }
209
210      ... on Field_Date {
211        isDate
212        isTime
213        isDateTime
214        defaultDate
215      }
216
217      ... on Field_CustomFileUpload {
218        limitFiles
219        sizeLimit
220        sizeMinLimit
221        allowedKinds
222      }
223    }
224  }
225}
226`,name:"GraphQL request",locationOffset:{line:1,column:1}};function ge(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var a=e.type;a.kind==="NamedType"&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){ge(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){ge(r,n)}),e.definitions&&e.definitions.forEach(function(r){ge(r,n)})}var $e={};(function(){Fe.definitions.forEach(function(n){if(n.name){var a=new Set;ge(n,a),$e[n.name.value]=a}})})();function tt(e,n){for(var a=0;a<e.definitions.length;a++){var r=e.definitions[a];if(r.name&&r.name.value==n)return r}}function oi(e,n){var a={kind:e.kind,definitions:[tt(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=$e[n]||new Set,d=new Set,g=new Set;for(r.forEach(function(k){g.add(k)});g.size>0;){var S=g;
226g=new Set,S.forEach(function(k){if(!d.has(k)){d.add(k);var C=$e[k]||new Set;C.forEach(function(D){g.add(D)})}})}return d.forEach(function(k){var C=tt(e,k);C&&a.definitions.push(C)}),a}oi(Fe,"Formie");function di(e){const n=e??"";return n.includes("ddev.site")||n.includes("cms-staging.cmq.org")||n.includes("cms.cmq.org")}function Ci(){const e=dt();return di(e.public.apolloEndpoint)?Fe:be}function Ei(e){return e?e.replace(/\u25B6\uFE0F?/g,"▶︎"):""}const ue={richText:"richText2_Entry",quote:"quote2_Entry",textImage:"textImage2_Entry",image:"image2_Entry",otherForm:"otherForm2_Entry",textTile:"textTile2_Entry"},me={richText:"richText_Entry",quote:"quote_Entry",textImage:"textImage_Entry",image:"image_Entry",otherForm:"otherForm_Entry",textTile:"textTile_Entry"},fe={richText:"pageContent_richText_BlockType",quote:"pageContent_quote_BlockType",textImage:"pageContent_textImage_BlockType",image:"pageContent_image_BlockType",textTile:"pageContent_textTile_BlockType",otherForm:"pageContent_otherForm_BlockType",navigationAnchor:"pageContent_navigationAnchor_BlockType",accordion:"pageContent_accordion_BlockType",highlight:"pageContent_highlight_BlockType",importantNote:"pageContent_importantNote_BlockType",modalPanel:"pageContent_modalPanel_BlockType",workshopList:"pageContent_workshopList_BlockType",remoteVideo:"pageContent_remoteVideo_BlockType",tilesList:"pageContent_tilesList_BlockType",tilesCarousel:"pageContent_tilesCarousel_BlockType",newsletterForm:"pageContent_newsletterForm_BlockType"},ci={otherForm:"articleContent_otherForm_BlockType"};function qi(e){return e===ue.richText||e===me.richText||e===fe.richText}function Vi(e){return e===ue.quote||e===me.quote||e===fe.quote}function Li(e){return e===ue.textImage||e===me.textImage||e===fe.textImage}function wi(e){return e===ue.textTile||e===me.textTile||e===fe.textTile}function $i(e){return e===ue.otherForm||e===me.otherForm||e===fe.otherForm||e===ci.otherForm}const ui={richText_Entry:"pageContent_richText_BlockType",richText2_Entry:"pageContent_richText_BlockType",textTile_Entry:"pageContent_textTile_BlockType",textTile2_Entry:"pageContent_textTile_BlockType",quote_Entry:"pageContent_quote_BlockType",quote2_Entry:"pageContent_quote_BlockType",textImage_Entry:"pageContent_textImage_BlockType",textImage2_Entry:"pageContent_textImage_BlockType",image_Entry:"pageContent_image_BlockType",image2_Entry:"pageContent_image_BlockType",otherForm_Entry:"pageContent_otherForm_BlockType",otherForm2_Entry:"pageContent_otherForm_BlockType",navigationAnchor_Entry:"pageContent_navigationAnchor_BlockType",accordion_Entry:"pageContent_accordion_BlockType",workshopList_Entry:"pageContent_workshopList_BlockType",tilesList_Entry:"pageContent_tilesList_BlockType",tilesCarousel_Entry:"pageContent_tilesCarousel_BlockType",highlight_Entry:"pageContent_highlight_BlockType",importantNote_Entry:"pageContent_importantNote_BlockType",modalPanel_Entry:"pageContent_modalPanel_BlockType",remoteVideo_Entry:"pageContent_remoteVideo_BlockType",newsletterForm_Entry:"pageContent_newsletterForm_BlockType"},mi={richText_Entry:"articleContent_richText_BlockType",richText2_Entry:"articleContent_richText_BlockType",quote_Entry:"articleContent_quote_BlockType",quote2_Entry:"articleContent_quote_BlockType",textImage_Entry:"articleContent_textImage_BlockType",textImage2_Entry:"articleContent_textImage_BlockType",image_Entry:"articleContent_image_BlockType",image2_Entry:"articleContent_image_BlockType",otherForm_Entry:"articleContent_otherForm_BlockType",otherForm2_Entry:"articleContent_otherForm_BlockType"},nt={page_default:"default"};function at(e){return e&&(ui[e]??e)}function fi(e){return e&&(mi[e]??e)}function oe(e){return e&&typeof e=="object"&&"html"in e?e.html??"":e}function vi(e){const n={...e},a=n.accordionContent??n.children;return Array.isArray(a)&&(n.accordionContent=a.map(r=>{const d=r;return{...d,accordionItemTitle:d.accordionItemTitle||d.accordionItemTitle2||d.title,accordionItemContent:oe(d.accordionItemContent??d.accordionItemContent2)}})),Array.isArray(n.tiles)&&(n.tiles=n.tiles.map(r=>{const d=r;return!d.internalContent&&d.sectionHandle?{...d,internalContent:[d],image:d.image||d.homeImage||[]}:d})),n.highlightDescription=oe(n.highlightDescription),n.tilesDescription=oe(n.tiles
226Description),n.closedDescription=oe(n.closedDescription),n.openedDescription=oe(n.openedDescription),n}function Ae(e,n){return e.map(a=>{const r={...a,type:n(a.type)??a.type};return vi(r)})}function Ai(e){if(!e)return e;const n={...e};return n.typeHandle&&nt[n.typeHandle]&&(n.typeHandle=nt[n.typeHandle]),n.image&&!Array.isArray(n.image)&&(n.image=[n.image]),Array.isArray(n.pageContent)&&(n.pageContent=Ae(n.pageContent,at)),Array.isArray(n.articleContent)?n.articleContent=Ae(n.articleContent,at):Array.isArray(n.pageContent)&&(n.articleContent=n.pageContent),n}function Bi(e){if(!e)return e;let n={...e};return n.image&&!Array.isArray(n.image)&&(n.image=[n.image]),Array.isArray(n.articleContent)&&(n.articleContent=Ae(n.articleContent,fi)),n}export{Ni as _,Vi as a,Li as b,wi as c,qi as d,Ti as e,Bi as f,$i as i,Ai as n,Ei as p,Ci as u};

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.