/** * Webflow integration for Formtress — v0.2.0 * Progressive enhancement — no imports — works as a standalone CDN script. * * Set your Webflow form's `action` attribute to your Formtress endpoint: * https://app.formtress.com/api/f/{your-form-id} * * Without JavaScript: the form submits natively to the Formtress endpoint. * With JavaScript: submission is intercepted and Webflow's UX flow is applied * (loading state, success/fail panels) without a page reload. * * Relies on Webflow's native .w-form, .w-form-done, and .w-form-fail classes. * * Submit button detection (in order): * 1. input.w-button (native Webflow input) * 2. button:not([type="button"]), input[type="submit"] (custom buttons) * * Loading text: add `data-ft-loading-text="Loading..."` to any text element inside * the form. Its textContent is swapped to the attribute value during submission. * Falls back to `data-wait` (on the element or submit button), then "Please wait...". * Native .w-button: uses `data-wait` as Webflow does. */ export {};