<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import{I as m,J as r,K as p}from"./vendor-vue.2ab85868.js";const d=({fetchUrl:l,body:s,options:c={immediate:!1,headers:{"Content-Type":"application/json"}}})=&gt;{const{execute:a,error:e,isFetching:t,onFetchError:i,onFetchResponse:n}=m(l,c).post(s).json();return{execute:a,error:e,isFetching:t,onFetchError:i,onFetchResponse:n}},b=()=&gt;{const l=a=&gt;a.map(e=&gt;{var i;const t={$formkit:e.fieldType,label:e!=null&amp;&amp;e.required?`${e.label}*`:e.label,name:e.name,placeholder:e.placeholder,validation:e.required?"required":"",value:e.value,help:e.help,"floating-label":!1,"auto-animate":!1,key:r()};return["select","radio","checkbox"].includes(e.fieldType)&amp;&amp;((i=e==null?void 0:e.options)!=null&amp;&amp;i.length)&amp;&amp;(t.options=e.options||[]),t}),s=({steps:a,multistepTabStyle:e="progress",customFormSettings:t})=&gt;[{$formkit:"multi-step",id:"multi-step","tab-style":e,"allow-incomplete":!1,key:r(),children:a.map((i,n)=&gt;{const o={$formkit:"step",name:(i==null?void 0:i.stepLabel)||`Step ${n+1}`,key:r(),children:l(i.fields)};return n===a.length-1&amp;&amp;(o.children.push({$formkit:"checkbox",key:r(),name:"confirmField",if:"$customFormSettings.showConfirmField",label:"terms",validation:"accepted","validation-visibility":"dirty","sections-schema":{label:{children:h(t.confirmFieldMessage||"I agree to the terms and conditions.")}}}),o["sections-schema"]={stepActions:{children:[{$formkit:"button",key:r(),label:"Previous",onClick:"$handlers.incrementStep(-1)"},{$formkit:"submit",key:r(),label:(t==null?void 0:t.submitButtonLabel)||"Submit",disabled:"$disabled"}]}}),o})}];return{createFormSchema:({customFormSettings:a,singleStepFormFields:e,steps:t})=&gt;{const i=[{$el:"div",if:"$formType === 'singleStep'",key:"singleStepForm",children:[...l(e),{$formkit:"checkbox",name:"confirmField",key:r(),if:"$customFormSettings.showConfirmField",label:"terms",validation:"accepted","validation-visibility":"dirty","sections-schema":{label:{children:h(a.confirmFieldMessage||"I agree to the terms and conditions.")}}}]},{$el:"div",if:"$formType === 'multiStep'",key:"multiStepForm",children:s({steps:t,multistepTabStyle:a==null?void 0:a.multistepTabStyle,customFormSettings:a})}];return i.push({$formkit:"text",name:"specialInstructions",value:"",required:!1,key:r(),outerClass:"hidden"}),i}}};function h(l){const s=p(l);function c(e){if(e.type==="text")return e.data;if(e.type!=="tag")return null;const t={$el:e.name.toLowerCase()};e.attribs&amp;&amp;Object.keys(e.attribs).length&gt;0&amp;&amp;(t.attrs=e.attribs);const i=[];if(e.children)for(let n of e.children){const o=c(n);o!==null&amp;&amp;i.push(o)}return i.length&gt;0&amp;&amp;(t.children=i),t}const a=[];for(let e of s){const t=c(e);t!==null&amp;&amp;a.push(t)}return a}export{b as a,d as u};
</pre></body></html>