var forms=document.querySelectorAll("[data-freeform-tailwind-dark]");forms.forEach((function(e){e.addEventListener("freeform-ready",(function(e){var r=e.freeform;r.setOption("errorClassBanner",["bg-red-800","border","border-red-900","font-medium","text-white","px-4","py-3","rounded","relative","mb-4"]),r.setOption("errorClassList",["errors","text-red-600","text-sm","italic"]),r.setOption("errorClassField",["freeform-input","border-red-900"]),r.setOption("successClassBanner",["bg-green-800","border","border-green-950","font-medium","text-white","px-4","py-3","rounded","relative","mb-4"])})),e.addEventListener("freeform-stripe-appearance",(function(e){e.elementOptions.appearance=Object.assign(e.elementOptions.appearance,{variables:{colorPrimary:"#0d6efd",fontFamily:'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"',fontSizeBase:"16px",spacingUnit:"0.2em",tabSpacing:"10px",gridColumnSpacing:"20px",gridRowSpacing:"20px",colorText:"#e4e4e7",colorBackground:"#18181b",colorDanger:"#dc2626",borderRadius:"5px"},rules:{".Tab, .Input":{border:"1px solid #71717a",boxShadow:"none"},".Tab:focus, .Input:focus":{border:"1px solid #0b5ed7",boxShadow:"none",outline:"0",transition:"border-color .15s ease-in-out"},".Label":{fontSize:"16px",fontWeight:"500"}}})})),e.addEventListener("freeform-on-submit",(function(e){var r=e.form.getAttribute("data-id");forms.forEach((function(e){var o=e.getAttribute("data-id");r!==o&&(e.querySelectorAll("[data-field-errors]").forEach((e=>e.remove())),e.querySelectorAll(".freeform-input").forEach((e=>e.classList.remove("border-red-500"))))}))}))}));