{"version":3,"file":"shared-lib.DLbFpSFT.mjs","names":["useMemo","useState","useRef","__esmMin","init_ssg_sandbox_shims","window","_e","de","pe","p","c","init_jsx_runtime","init_npm_react_18_3_1","ce","init_framer_B6PCHH0A","addPropertyControls","RenderTarget","ControlType","normalizeHost","raw","DEFAULT_FORMS_HOST","isPixieOwnedHost","host","formsHost","hostname","PIXIE_OWNED_APEX","PIXIE_OWNED_HOST_SUFFIX","buildPixieFormUrl","cleanSlug","slug","cleanOrg","org","isForwardableParam","name","withForwardedParams","target","base","incoming","hostSearch","existingKeys","changed","key","value","originOf","withEmbedHeightParams","url","hostOrigin","readEmbedHeight","data","message","EMBED_HEIGHT_MESSAGE_TYPE","height","EMBED_HEIGHT_MAX","EMBED_HEIGHT_MIN","readServedVersion","SEMVER_RE","isNewerVersion","servedParts","served","localParts","local","i","a","b","PixieFormFrame","props","forwardingAllowed","forwardParams","onCanvas","setHostSearch","stale","setStale","cancelled","controller","probeTimer","res","COMPONENT_VERSION","forwardedSrc","formsOrigin","setHostOrigin","autoHeight","src","iframeRef","liveHeight","setLiveHeight","onMessage","event","frameWindow","reported","frame","radius","style","staleNote","staleNoticeBarStyle","STALE_NOTICE","placeholderStyle","Placeholder","title","body","init_PixieForms","metadata","init_siteMetadata"],"sources":["https:/framerusercontent.com/modules/S0k1q5M0rgsPkG4WEHa0/P4zILsjMT1wD6LyAMbbB/PixieForms.js","https:/framerusercontent.com/modules/hGWQ6DoocusTRlKjXbzF/itczqvbEqpED3jEVlLGI/siteMetadata.js"],"sourcesContent":["/**\n * PixieFormFrame — Pixie form as a Framer code component (IFRAME variant).\n *\n * LISTED ON THE FRAMER MARKETPLACE. This is the flagship component listed as\n * \"Pixie Forms\" — its canonical hosting copy lives in the Pixie-owned Framer\n * project (\"Pixie Components\"), and the marketplace listing's Copy Component\n * URL points at that copy, not at this repo file directly. Edits made here\n * are inert for existing consumers until they are re-pasted into the hosting\n * project (see `docs/integrations/framer-marketplace-listing.md` for the\n * update workflow) — new copies pick up the change, existing consumers keep\n * whatever they copied.\n *\n * SOURCE OF TRUTH: this file is hand-pasted into a Framer \"Code\" file (see\n * `docs/integrations/framer.md` for install steps) — it is NOT built by the\n * monorepo, NOT a bun workspace member, and NOT covered by turbo lint/\n * typecheck. Edit it here, re-paste into Framer, and bump the module's\n * version when you share the updated URL (§ \"Private module-URL sharing\" in\n * the doc).\n *\n * PARITY NOTE: this component constructs the same public-form URL shape the\n * dashboard's own snippet builder emits — see `generateStandaloneUrl` in\n * `packages/types/src/embedSnippets.ts`. That is not a\n * fork to converge; a Framer code component IS the embed target and has no\n * dependency it could import that function from. If the dashboard's URL\n * contract changes, `buildPixieFormUrl` below needs the matching update —\n * check embedSnippets.ts first when touching either.\n *\n * PRODUCTION-USABLE TODAY. This variant embeds the standalone public form URL\n * (`https://<formsHost>/f/<org>/<slug>`) in an iframe, so:\n *   - zero Pixie JS runs in the Framer page (no host-document mutation at all),\n *   - the renderer's dynamic-mount limitation is irrelevant — every mount is a\n *     fresh document, so canvas mounts, SPA nav, and N instances all work,\n *   - prop changes just change `src`; React remounts the document for free,\n *   - Framer's canvas sandbox never has to run third-party script.\n *\n * The trade-off vs PixieFormInline: a fixed height by default (the host page\n * cannot measure a cross-origin document), and the form's own tracking\n * snippets / pixels fire inside the iframe document rather than the host page.\n * The opt-in \"Auto height\" control closes the first gap: it asks the renderer\n * (`?embed=auto&parent=<this page's origin>`) to report its own content height\n * over postMessage (`pixie:embed-height`), and this component applies a report\n * only after checking BOTH the sender's origin (the forms host's) and its\n * source window (this component's own iframe). A host serving an older\n * renderer never reports, so the Height control stays in charge there.\n *\n * TRUST BOUNDARY (Framer security review, 2026-08-24): Framer's automated marketplace\n * security scan flagged that `formsHost` is a freeform property — a designer can type\n * ANY string into it — and this component used to forward the host page's `pf_*`/`utm_*`\n * query parameters into the iframe `src` regardless of what that string was, which would\n * leak page query data to an arbitrary third-party domain if `formsHost` ever pointed\n * somewhere other than Pixie. The fix (see `isPixieOwnedHost` below): forwarding happens\n * automatically for Pixie-owned hosts (`pixieform.com` and any `*.pixieform.com`\n * subdomain) only. A custom/self-hosted `formsHost` — which MUST remain supported, since\n * customers serve published forms on their own domains — forwards nothing unless the\n * designer explicitly turns on the \"Forward params\" property control added for this.\n * Reading `window.location.search` itself was not the finding; sending it somewhere\n * untrusted was.\n * Auto height (opt-in, off by default) adds one more same-page read: `window.location.origin`\n * goes into the iframe `src` as `parent=` — the reply address the Pixie frame posts its height\n * to — not a forward of page data (no path, no query, no fragment).\n *\n * Framer API used (all verified against official docs, 2026-08-19):\n *   - `addPropertyControls` + `ControlType` from \"framer\"\n *     https://www.framer.com/developers/property-controls\n *   - `RenderTarget.current() === RenderTarget.canvas`\n *     https://www.framer.com/developers/components-reference\n *   - `@framerSupportedLayoutWidth` / `@framerSupportedLayoutHeight` annotations\n *     https://www.framer.com/developers/auto-sizing\n *   - React 18 only; no dependencies beyond \"react\" and \"framer\"\n *     https://www.framer.com/developers/components-introduction\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useMemo,useRef,useState}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";// Customer-facing default: PROD. Override in the properties panel for a\n// dev/demo Framer preview site (forms-dev.pixieform.com / forms-demo.pixieform.com).\nconst DEFAULT_FORMS_HOST=\"forms.pixieform.com\";// Version of THIS shim — the pasted component itself. Deliberately NOT a\n// renderer asset version (this variant embeds a URL and loads no Pixie JS at\n// all): it only ever answers \"is the copy sitting in someone's Framer project\n// older than the one we publish today?\". Bump it on ANY behavior change to\n// this file, and keep it equal to the `pixieFormFrame` entry in\n// `renderer/src/framer/component-versions.json` — `componentVersions.test.ts`\n// next to that JSON pins the two together, so a bump here without the JSON\n// (or vice versa) fails CI.\n// Bumping this (with the manifest) makes every existing copy badge on canvas:\n// follow the release-ordering rule in\n// `docs/integrations/framer-marketplace-listing.md` (update the hosted\n// component + listing FIRST).\nconst COMPONENT_VERSION=\"1.3.0\";/** Strip scheme / stray slashes so a pasted \"https://forms.pixieform.com/\" works. */// KEEP-IN-SYNC: PixieFormInline.tsx has a byte-identical copy (single-file\n// paste/share distribution forbids cross-file imports).\nfunction normalizeHost(raw){return(raw||DEFAULT_FORMS_HOST).trim().replace(/^https?:\\/\\//i,\"\").replace(/\\/+$/,\"\");}// Every host Pixie owns and controls shares this suffix (the bare apex, plus prod/demo/\n// dev and any future subdomain). This is the ONLY set of hosts `pf_*`/`utm_*` params are\n// forwarded to automatically — see `isPixieOwnedHost` and the TRUST BOUNDARY note above.\nconst PIXIE_OWNED_APEX=\"pixieform.com\";const PIXIE_OWNED_HOST_SUFFIX=\".pixieform.com\";/**\n * Whether `formsHost` resolves to a host Pixie owns — the sole gate on whether page query\n * parameters are ever forwarded automatically (TRUST BOUNDARY note, file header).\n * `formsHost` is a freeform `ControlType.String` property, so this must be browser-grade\n * host parsing, never a string trick: a suffix/`.includes()` check on the raw text is\n * exactly what a crafted value defeats. `new URL` is what actually closes each bypass\n * class a naive check would fall for:\n *   - suffix-without-dot: \"evilpixieform.com\" ends with the raw text \"pixieform.com\" but\n *     is an unrelated registrable domain — the parsed hostname doesn't match our suffix\n *     (which starts with the dot) or the bare apex.\n *   - domain-as-subdomain-of-attacker: \"pixieform.com.evil.com\" — a `.includes()` check\n *     matches; the parsed hostname's real owner is evil.com, and it fails both our checks.\n *   - userinfo smuggling: \"forms.pixieform.com@evil.com\" — everything before `@` is\n *     USERINFO, not the host; `new URL` parses this to hostname \"evil.com\".\n *   - path-smuggled: \"evil.com/forms.pixieform.com\" — the trusted-looking text lives in\n *     the path; the hostname is \"evil.com\".\n *   - query-smuggled: \"evil.com?x=forms.pixieform.com\" — same idea, in the query string.\n *   - IDN homoglyph: a Cyrillic \"е\" (U+0435) is visually identical to Latin \"e\" in most\n *     fonts; `new URL` punycode-encodes the label to \"xn--...\", which never ends in\n *     \".pixieform.com\".\n *   - case: \"FORMS.PIXIEFORM.COM\" — `.toLowerCase()` after parsing normalizes it.\n *   - port: \"forms.pixieform.com:443\" — `new URL` splits the port out of the hostname, so\n *     the value compared below never carries one.\n * `normalizeHost` runs first so a pasted `\"https://forms.pixieform.com/\"` (scheme +\n * trailing slash) resolves the same as the bare host — `new URL` needs an absolute URL,\n * hence the `https://` prefix added below; a bare host string alone would parse as a\n * relative reference and throw. An empty/whitespace-only `formsHost` (unconfigured, or a\n * value that reduces to nothing after `normalizeHost`) is treated as the default host,\n * matching `normalizeHost`'s own \"empty ⇒ default\" contract for `formsHost` elsewhere in\n * this file — an unset host is Pixie's own default, not a stranger's domain.\n */export function isPixieOwnedHost(formsHost){const host=normalizeHost(formsHost)||DEFAULT_FORMS_HOST;let hostname;try{hostname=new URL(`https://${host}`).hostname.toLowerCase();}catch{return false;}return hostname===PIXIE_OWNED_APEX||hostname.endsWith(PIXIE_OWNED_HOST_SUFFIX);}/**\n * Build the public standalone URL. Mirrors the renderer's own route contract\n * (`renderer/src/formRoute.ts` → `parseFormRoute`): exactly 3 path segments with\n * an `f` head is org-namespaced; exactly 2 is the legacy flat form.\n */// Exported on purpose: inside one Framer project another Code file CAN\n// `import { buildPixieFormUrl } from \"./PixieFormFrame\"` — this is the seam\n// for that; the export is inert in the copy-paste distribution model.\nexport function buildPixieFormUrl(formsHost,org,slug){const host=normalizeHost(formsHost);const cleanSlug=(slug||\"\").trim();if(!host||!cleanSlug)return null;const cleanOrg=(org||\"\").trim();const orgSegment=cleanOrg?`${encodeURIComponent(cleanOrg)}/`:\"\";return`https://${host}/f/${orgSegment}${encodeURIComponent(cleanSlug)}`;}/**\n * Whether a host-page query-param NAME should be forwarded into the iframe's\n * `src`. Name-shape only, mirroring `isPrefillVariable`/`isUtmCaptureVariable`\n * in `packages/types/src/variables.ts` (cannot import — single-file paste\n * distribution, see the file header) — KEEP-IN-SYNC with those two\n * predicates, same discipline as `normalizeHost` above.\n *\n * Only these two prefixes, not \"forward everything\": the renderer captures a\n * DECLARED `pf_*`/`utm_*` variable name (and, as of asset ≥1.0.7, the frozen\n * click-ID set — `fbclid`/`gclid`/`ttclid`/`msclkid`/`wbraid`/`gbraid`, see\n * `isClickIdCaptureVariable` in `packages/types`) from the loaded document's\n * own query string (`renderer/src/engine/prefillCapture.ts`, `RendererShell.ts`'s\n * `window.location.search` read) and silently ignores every other param, so\n * forwarding the rest is pure cost — worse, it would also push Framer's own\n * editor/preview query params (and anything else riding the host URL) into\n * the iframe for no benefit.\n *\n * Click IDs are deliberately EXCLUDED from this allowlist even though the\n * renderer can capture them: forwarding ad-platform click identifiers off a\n * customer's host page into a third-party iframe crosses the line the\n * marketplace security review drew for this component. Extending forwarding\n * to click IDs needs its own opt-in re-review, not a silent addition here —\n * until then, a Framer-iframe-embedded form never receives the host page's\n * `fbclid` (etc.), even when the form declares a matching variable.\n */function isForwardableParam(name){return name.startsWith(\"pf_\")&&name.length>3||name.startsWith(\"utm_\")&&name.length>4;}/**\n * Append the host page's forwardable `pf_*`/`utm_*` params onto `base`'s\n * query string, without letting the host override a value `base` already\n * carries. Repeated host keys of the SAME forwardable name (`?utm_source=a&\n * utm_source=b`) both survive — `append`, not `set` — because \"already\n * present\" is checked against `base`'s ORIGINAL params, snapshotted once\n * before the loop, not the live target (a live check would silently drop the\n * second occurrence the moment the first one was appended).\n *\n * Returns `base` byte-identical when nothing was added — a param-less visit\n * must not gain a trailing `?`.\n *\n * `base` is built from `formsHost`, a freeform `ControlType.String` property\n * — `normalizeHost` above strips scheme/trailing slashes but never validates\n * the rest, so an author can type something `new URL()` can't parse (e.g. a\n * stray space). `new URL(base)` is therefore wrapped in try/catch: on\n * failure this returns `base` unchanged, same no-op contract as the\n * empty-query case, rather than throwing out of a `useMemo` during render —\n * a crash there would take down the whole component (and the Framer canvas/\n * host page around it), whereas a malformed `formsHost` pre-dates this\n * function and was already just a dead iframe, which stays the recoverable,\n * pre-existing failure mode.\n */// Exported on purpose, same seam as `buildPixieFormUrl` above — Framer\n// ignores extra exports; this one exists for this file's own throwaway proof\n// harness (see the PR description) and any Framer sibling Code file that\n// wants byte-identical forwarding logic.\nexport function withForwardedParams(base,hostSearch){let target;try{target=new URL(base);}catch{return base;}const incoming=new URLSearchParams(hostSearch);const existingKeys=new Set(target.searchParams.keys());let changed=false;for(const[key,value]of incoming){if(!isForwardableParam(key))continue;if(existingKeys.has(key))continue;target.searchParams.append(key,value);changed=true;}return changed?target.toString():base;}/* ───────────────────────────── Auto height ─────────────────────────────────\n * Opt-in (`autoHeight`, default off). The renderer's standalone page, when it\n * is loaded in a frame with `?embed=auto&parent=<origin>`, measures its own\n * `.pf-form` box (plus its surround margins) and posts\n * `{ type: \"pixie:embed-height\", height }` to THAT origin only — never `\"*\"`,\n * and only `https:` (or a loopback `http:`) parent origins are honoured. This\n * component is the receiving half; its checks mirror the Turnstile frame's\n * receiver (`renderer/src/embed/turnstileFrame.ts`), and both are mandatory:\n *   1. `event.origin === formsOrigin` — the forms host derived from `base`, so\n *      a custom `formsHost` is covered too; any other frame or opener on the\n *      page is ignored.\n *   2. `event.source === iframe.contentWindow` — the message came from THIS\n *      component's own frame, not another frame (a second Pixie block, say)\n *      that merely sits on the same origin.\n * The payload is then shape-checked (non-null object, exact `type`, finite\n * numeric `height`), rounded and clamped to the same 120..8000 band the\n * renderer clamps to. No CSS transition: the frame follows the form's own\n * page-height changes (page turns, revealed fields) without animating.\n *\n * FALLBACK: a forms host still serving a renderer without the reporter simply\n * never posts, so the frame keeps the Height control's value — exactly the\n * pre-1.3.0 behavior.\n *\n * SIZING CONTRACT — set the block's height to Fit Content in Framer's Layout\n * panel. Framer's own `style` prop still spreads LAST onto the root (see\n * `staleNoticeBarStyle` for why the root must carry it), so when Framer\n * supplies `style.height` (Fixed sizing) that size wins, exactly as it does\n * over the Height control, and content past it clips as before 1.3.0. A\n * reported height applies only when Framer supplies none (Fit Content).\n */const EMBED_HEIGHT_MESSAGE_TYPE=\"pixie:embed-height\";const EMBED_HEIGHT_MIN=120;const EMBED_HEIGHT_MAX=8e3;/**\n * The forms host's origin (scheme + host + port) out of `base`, or `null`\n * when `base` is missing or unparseable — `formsHost` is freeform, same\n * reasoning as `withForwardedParams`'s try/catch. A `null` origin registers no\n * message listener at all.\n */function originOf(base){if(base===null)return null;try{return new URL(base).origin;}catch{return null;}}/**\n * Append the auto-height opt-in (`embed=auto`, `parent=<hostOrigin>`) onto the\n * already-forwarded `src`, AFTER any forwarded params. Unparseable input comes\n * back unchanged — the same no-op contract as `withForwardedParams`.\n */function withEmbedHeightParams(url,hostOrigin){let target;try{target=new URL(url);}catch{return url;}target.searchParams.set(\"embed\",\"auto\");target.searchParams.set(\"parent\",hostOrigin);return target.toString();}/**\n * The height (px) a `message` event's `data` asks for, or `null` when it is\n * not EXACTLY `{ type: \"pixie:embed-height\", height: <finite number> }`.\n * `event.data` is whatever the sending document chose to put there, so\n * nothing is assumed about a field until it has been checked.\n */function readEmbedHeight(data){if(typeof data!==\"object\"||data===null)return null;const message=data;if(message.type!==EMBED_HEIGHT_MESSAGE_TYPE)return null;const height=message.height;if(typeof height!==\"number\"||!Number.isFinite(height))return null;return Math.round(Math.min(EMBED_HEIGHT_MAX,Math.max(EMBED_HEIGHT_MIN,height)));}/* ───────────────────── canvas-only staleness check ─────────────────────────\n * Framer SNAPSHOTS a pasted component: the bytes a designer copied are frozen\n * in their project forever, so every fix made in this repo is inert for every\n * copy that already exists (see the file header's LISTED ON THE FRAMER\n * MARKETPLACE note). The only channel that reaches those copies is the copy\n * itself, so on the Framer CANVAS — and nowhere else — the component asks the\n * forms host what the current shim version is and, if it is behind, prints one\n * quiet line telling the designer to re-copy.\n *\n * `/renderer/component-versions.json` is a tiny mutable alias on the forms\n * host: 5-minute cache, `Access-Control-Allow-Origin: *` (both from the\n * existing `/renderer/*` rule in `apps/forms-edge/public/_headers`), emitted by\n * `renderer/build.ts`, and deliberately NEVER archived under `/renderer/v*` —\n * a year-immutable copy of \"what's current\" is worthless by construction.\n *\n * NON-NEGOTIABLES, both belt-and-braces enforced (effect gate + render gate):\n *   - Nothing about this ever renders on preview, a published site, an export\n *     or a thumbnail. A visitor must never see Pixie's own housekeeping.\n *   - Every failure DOES NOTHING: offline, DNS failure, 404, an HTML error\n *     page, a body that isn't the shape we publish, a `formsHost` pointing at\n *     something that isn't ours — all of it leaves the canvas exactly as it\n *     was. Silent from OUR code, precisely: the terminal `.catch` prevents\n *     unhandled rejections and nothing here ever logs. The BROWSER may still\n *     print its own network-layer lines (DNS failure, CORS, CSP) for a typo'd\n *     host, which user code cannot suppress. A staleness hint is worth exactly\n *     nothing next to a noisy canvas.\n */// KEEP-IN-SYNC: PixieFormInline.tsx carries a copy of this whole block. The\n// FUNCTIONAL pieces are identical there — STALE_NOTICE, SEMVER_RE,\n// readServedVersion, isNewerVersion, staleNoticeBarStyle, and the probe effect\n// inside the component — differing ONLY in the manifest key the effect reads\n// (`pixieFormInline` there, `pixieFormFrame` here). The prose around them is\n// per-file, since each file describes its own variant. Single-file paste/share\n// distribution forbids cross-file imports, same discipline as `normalizeHost`\n// above.\nconst STALE_NOTICE=\"A newer Pixie Forms block is available — re-copy it from the Framer Marketplace.\";const SEMVER_RE=/^\\d+\\.\\d+\\.\\d+$/;/**\n * One component's version out of the parsed `component-versions.json` body, or\n * `null` if the body is not EXACTLY the shape we publish. Arrays, `null`,\n * strings, a missing key, a non-string value and a non-semver string all fall\n * through to `null` — i.e. \"do nothing\", never a guess.\n */function readServedVersion(data,key){if(typeof data!==\"object\"||data===null||Array.isArray(data))return null;const value=data[key];return typeof value===\"string\"&&SEMVER_RE.test(value)?value:null;}/**\n * Strictly-newer comparison over bare `x.y.z`, majors → minors → patch. Wrong\n * segment count or a non-integer segment returns `false` — an unparseable\n * version must never be reported as newer.\n */function isNewerVersion(served,local){const servedParts=served.split(\".\");const localParts=local.split(\".\");if(servedParts.length!==3||localParts.length!==3)return false;for(let i=0;i<3;i++){const a=Number(servedParts[i]);const b=Number(localParts[i]);if(!Number.isInteger(a)||!Number.isInteger(b))return false;if(a!==b)return a>b;}return false;}/**\n * The notice is an absolutely-positioned bar pinned to the BOTTOM of whatever\n * root this component already returns — never an extra sibling inside a new\n * wrapper. Two reasons, both load-bearing:\n *   - The ROOT element's node type must not change when `stale` flips. `stale`\n *     goes false → true a network round trip AFTER mount, so swapping a root\n *     <iframe> for a wrapper <div> at that moment makes React unmount the\n *     iframe and RELOAD the embedded form document on every stale canvas mount.\n *   - Framer's `style` prop is the sizing contract behind\n *     `@framerSupportedLayoutWidth/Height` and must land on the ROOT. A wrapper\n *     that doesn't forward it collapses a %-height iframe against an\n *     auto-height parent and overflows unclipped for px heights.\n * Out of flow it also costs zero layout: the block never grows or shifts when\n * the bar appears. `pointerEvents: \"none\"` keeps it from swallowing the clicks\n * and drags a designer aims at the block underneath.\n */// KEEP-IN-SYNC: identical to `staleNoticeBarStyle` in PixieFormInline.tsx.\nconst staleNoticeBarStyle={position:\"absolute\",left:0,right:0,bottom:0,boxSizing:\"border-box\",padding:\"6px 10px\",fontSize:11,lineHeight:1.4,fontWeight:500,textAlign:\"center\",pointerEvents:\"none\",zIndex:1,color:\"rgba(23,23,23,0.72)\",background:\"rgba(255,255,255,0.92)\",borderTop:\"1px solid rgba(127,127,127,0.25)\",fontFamily:\"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif\"};/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function PixieFormFrame(props){const{org=\"\",slug=\"\",height=640,autoHeight=false,radius=12,formsHost=DEFAULT_FORMS_HOST,forwardParams=false,style}=props;// Sole gate on whether page query params ever get forwarded — see the TRUST BOUNDARY\n// note in the file header. A Pixie-owned host is trusted automatically; any other host\n// only forwards once the designer explicitly opts in via `forwardParams`.\nconst forwardingAllowed=isPixieOwnedHost(formsHost)||forwardParams===true;// Read the render target ONCE, above the hooks: the staleness effect below\n// needs `onCanvas` (hooks must run unconditionally, so the gate lives\n// inside the effect body, never around the call), and the export/thumbnail\n// short-circuit further down needs the same value.\nconst target=RenderTarget.current();const onCanvas=target===RenderTarget.canvas;const base=useMemo(()=>buildPixieFormUrl(formsHost,org,slug),[formsHost,org,slug]);// Host query string, captured post-mount only — `null` means \"not yet\n// mounted\" (server render, static export, or the client's FIRST render\n// before effects run), distinct from `\"\"` (mounted, host page has no\n// query string). Reading `window.location.search` at all is gated on\n// `forwardingAllowed` — see the TRUST BOUNDARY note in the file header —\n// so a non-forwarding host never even reads the page's query string, let\n// alone forwards it.\n//\n// HYDRATION: this can't be a synchronous `window.location.search` read\n// inside the `src` memo below, even though that reads simpler. Framer\n// pages can be server-rendered/statically exported, where `window`\n// doesn't exist — so the SERVER's `src` would be the unforwarded `base`\n// URL. React 18 hydration does NOT patch a mismatched attribute to the\n// client's value; it keeps whichever the server rendered and just warns.\n// So if the client's first render eagerly computed the forwarded `src`,\n// that value would be discarded in favor of the server's unforwarded one\n// — forwarding would silently never take effect on a published/exported\n// site whenever pf_/utm_ params are present, exactly the class of bug\n// this component exists to fix.\n//\n// Fix: never let `window.location.search` reach the value used for the\n// FIRST render's `src` at all. `hostSearch` starts `null` on both server\n// and client — the iframe below renders with `src={undefined}` (no `src`\n// attribute at all, so the DOM markup is byte-identical either side, no\n// mismatch) — then this `useEffect` runs client-only, post-mount, and\n// sets the real value. That flips `src` from `undefined` to the fully\n// forwarded URL in one subsequent render: the iframe navigates exactly\n// ONCE, straight to the forwarded URL — never an unforwarded-then-\n// forwarded double load. This whole null-until-mount dance exists ONLY\n// for the forwarding case: when `forwardingAllowed` is false, `src` below\n// resolves to `base` directly — deterministic on server and client alike,\n// no mismatch possible, and the iframe navigates once on first render,\n// same as before this component ever forwarded anything. (Auto height,\n// when on, runs the same dance for `window.location.origin` — see\n// `hostOrigin` below.)\nconst[hostSearch,setHostSearch]=useState(null);useEffect(()=>{if(!forwardingAllowed)return;setHostSearch(window.location.search);},[forwardingAllowed]);// Canvas-only staleness probe — see the block comment above `STALE_NOTICE`.\n// The hook runs on every target; only its body is gated.\nconst[stale,setStale]=useState(false);useEffect(()=>{// Drop any verdict the PREVIOUS host produced before probing the new\n// one — `formsHost` is freeform, so a designer retyping it must not\n// keep staring at a badge computed against a host they've left. On\n// first mount this is a same-value set and React bails out of it.\nsetStale(false);if(!onCanvas)return;const host=normalizeHost(formsHost);if(!host)return;// `cancelled` (flipped by the cleanup below) is what keeps a resolved\n// fetch from calling setState on an unmounted component — a designer\n// dragging the block around the canvas mounts and unmounts it far\n// faster than a network round trip.\nlet cancelled=false;// Abort the in-flight request itself on cleanup — `cancelled` alone\n// only IGNORES the result; without this the fetch keeps running after\n// a host edit or unmount. The abort rejection lands in the same\n// terminal `.catch` as every other failure.\nconst controller=new AbortController;// DEBOUNCE, because `formsHost` is a freeform `ControlType.String`:\n// this effect re-runs on every KEYSTROKE while it is being typed, and\n// without the delay that is one `no-store` request per character, each\n// aimed at a half-typed prefix that isn't a host yet. The cleanup\n// clears the pending timer, so only a host the designer actually\n// settles on is ever fetched.\nconst probeTimer=window.setTimeout(()=>{// ONE promise chain with ONE terminal `.catch`, so a rejected\n// fetch, a non-JSON body and anything thrown while comparing all\n// land in the same silent sink. `no-store` because a stale answer\n// to \"what's current?\" is the one thing this must never cache.\nfetch(`https://${host}/renderer/component-versions.json`,{cache:\"no-store\",signal:controller.signal}).then(res=>res.ok?res.json():null).then(data=>{if(cancelled)return;const served=readServedVersion(data,\"pixieFormFrame\");if(served&&isNewerVersion(served,COMPONENT_VERSION)){setStale(true);}}).catch(()=>{});},400);return()=>{cancelled=true;window.clearTimeout(probeTimer);controller.abort();};},[onCanvas,formsHost]);const forwardedSrc=useMemo(()=>{if(base===null)return undefined;if(!forwardingAllowed)return base;if(hostSearch===null)return undefined;return withForwardedParams(base,hostSearch);},[base,hostSearch,forwardingAllowed]);// ── Auto height (see the block comment above `EMBED_HEIGHT_MESSAGE_TYPE`) ──\n// The ONE origin a height report is accepted from: the forms host itself,\n// derived from `base` so a custom `formsHost` is covered too.\nconst formsOrigin=useMemo(()=>originOf(base),[base]);// This page's origin — the reply address handed to the frame as `parent=`.\n// Captured post-mount for exactly the hydration reason spelled out on\n// `hostSearch` above: it starts `null` on server and client alike, `src`\n// stays `undefined` while it is, and the effect flips it in the same\n// post-mount pass as `hostSearch` (React 18 batches both), so the iframe\n// still navigates exactly ONCE, straight to the final URL. Read only when\n// `autoHeight` is on.\nconst[hostOrigin,setHostOrigin]=useState(null);useEffect(()=>{if(!autoHeight)return;setHostOrigin(window.location.origin);},[autoHeight]);// `autoHeight` off ⇒ `src` is `forwardedSrc` itself, byte-identical to a\n// component without this feature.\nconst src=useMemo(()=>{if(forwardedSrc===undefined)return undefined;if(!autoHeight)return forwardedSrc;if(hostOrigin===null)return undefined;return withEmbedHeightParams(forwardedSrc,hostOrigin);},[forwardedSrc,autoHeight,hostOrigin]);// The last accepted report, or `null` (⇒ the Height control is in charge).\n// Reset whenever Auto height turns off or `src` changes, so a renderer that\n// never posts — an older forms host — leaves the Height control in charge\n// rather than a height reported by a previous form.\nconst iframeRef=useRef(null);const[liveHeight,setLiveHeight]=useState(null);useEffect(()=>{setLiveHeight(null);},[autoHeight,src]);// Registered ONLY while Auto height is on and the forms origin parses;\n// removed on cleanup. Both checks (origin AND source) are mandatory — see\n// the Auto height block comment.\nuseEffect(()=>{if(!autoHeight||formsOrigin===null)return;const onMessage=event=>{if(event.origin!==formsOrigin)return;const frameWindow=iframeRef.current?.contentWindow;if(!frameWindow||event.source!==frameWindow)return;const reported=readEmbedHeight(event.data);if(reported===null)return;setLiveHeight(reported);};window.addEventListener(\"message\",onMessage);return()=>window.removeEventListener(\"message\",onMessage);},[autoHeight,formsOrigin]);const frame={width:\"100%\",// No `transition` on purpose — see the Auto height block comment.\nheight:autoHeight&&liveHeight!==null?liveHeight:height,borderRadius:radius,overflow:\"hidden\",...style};// The staleness bar, or nothing at all. Rendered as the LAST child of\n// whichever root the canvas returns below — see `staleNoticeBarStyle` for\n// why it is a positioned bar rather than a wrapper. This is the\n// RENDER-TIME half of the belt-and-braces gate (the effect above is the\n// other half): off the canvas it is `null`, so a published page carries no\n// extra node in the customer's DOM.\nconst staleNote=onCanvas&&stale?/*#__PURE__*/_jsx(\"div\",{style:staleNoticeBarStyle,children:STALE_NOTICE}):null;// Unconfigured — never render a broken iframe, on canvas or on the live site.\n// Copy here is written for a stranger who has never seen Pixie: point them\n// straight at where the Org code and Slug come from. Keyed off `base`\n// (org/slug validity), NOT `src` — `src` is also `undefined` before the\n// post-mount effect above runs, which must NOT show this placeholder.\nif(!base){return(// `position: \"relative\"` sits BEFORE the spreads so a\n// Framer-supplied position still wins, and so `staleNote` has an\n// anchor (an absolute child anchors to its nearest positioned\n// ancestor, whichever that ends up being).\n/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",...frame,...placeholderStyle},children:[/*#__PURE__*/_jsx(Placeholder,{title:\"Add your Pixie form\",body:\"Enter the Org code and Form slug from your published form URL on pixieform.com.\"}),staleNote]}));}// On the EXPORT/THUMBNAIL targets a live iframe is pure cost (and Framer\n// screenshots it before it can load), so short-circuit to a static card.\n// The CANVAS deliberately renders the real iframe: an iframe is a\n// separate document, costs the host page nothing, and WYSIWYG on canvas is\n// the whole point of shipping a Framer component instead of an embed code.\nif(target===RenderTarget.export||target===RenderTarget.thumbnail){return /*#__PURE__*/_jsx(\"div\",{style:{...frame,...placeholderStyle},children:/*#__PURE__*/_jsx(Placeholder,{title:\"Pixie form\",body:`${org?org+\"/\":\"\"}${slug}`})});}// CANVAS: the same live iframe, inside a positioned box that carries the\n// component's ENTIRE sizing style (Framer's `style` prop included, so the\n// `@framerSupportedLayoutWidth/Height` contract still holds) with the\n// staleness bar pinned inside it. The wrapper is unconditional here — it\n// does not appear or disappear with `stale` — so the root node type never\n// changes and React never unmounts, and so never reloads, the embedded\n// form document. The iframe fills the box; the box does the clipping\n// (`overflow: \"hidden\"` via `frame`).\nif(onCanvas){return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",...frame,border:\"none\",display:\"block\"},children:[/*#__PURE__*/_jsx(\"iframe\",{ref:iframeRef,src:src,title:\"Pixie form\",style:{width:\"100%\",height:\"100%\",border:0,display:\"block\",borderRadius:radius},loading:\"lazy\",// Same deliberate no-`sandbox` posture as the non-canvas\n// return below — see the note there.\nallow:\"clipboard-write; publickey-credentials-get\",referrerPolicy:\"strict-origin-when-cross-origin\"}),staleNote]});}// PREVIEW / PUBLISHED / anything that is not the canvas: exactly what this\n// component returned before the staleness badge existed — a bare <iframe>\n// root, no wrapper, nothing extra in the customer's DOM.\nreturn /*#__PURE__*/_jsx(\"iframe\",{ref:iframeRef,src:src,title:\"Pixie form\",style:{...frame,border:\"none\",display:\"block\"},loading:\"lazy\",// The renderer needs scripts + same-origin-to-ITSELF (forms host) for\n// storage; `allow-forms`/`allow-popups` cover submit + redirects.\n// Note: no `sandbox` attribute is set at all — adding one here would\n// have to enumerate every capability the form runtime needs\n// (Turnstile, Calendly booking iframes, redirect-on-submit), and a\n// too-tight sandbox silently breaks submission. The iframe is\n// cross-origin already, which is the isolation that matters.\nallow:\"clipboard-write; publickey-credentials-get\",referrerPolicy:\"strict-origin-when-cross-origin\"});}const placeholderStyle={display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background:\"rgba(127,127,127,0.08)\",border:\"1px dashed rgba(127,127,127,0.4)\",boxSizing:\"border-box\",padding:16,textAlign:\"center\",fontFamily:\"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif\"};function Placeholder({title,body}){return /*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:14,fontWeight:600,opacity:.85},children:title}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:12,opacity:.6,marginTop:4},children:body})]});}// Titles/placeholders written for a marketing user who has never seen Pixie —\n// point straight at the form's own URL, since that's where every value comes\n// from. Only option keys Framer's property-control schema supports are used\n// here (title/description/defaultValue/placeholder/min/max/step/unit/\n// displayStepper, plus enabledTitle/disabledTitle/hidden on the booleans).\naddPropertyControls(PixieFormFrame,{org:{type:ControlType.String,title:\"Org code\",defaultValue:\"\",placeholder:\"e.g. 3xathk\"},slug:{type:ControlType.String,title:\"Form slug\",defaultValue:\"\",placeholder:\"e.g. my-published-form\"},height:{type:ControlType.Number,title:\"Height\",description:\"Initial and fallback height. Used until the form reports its own, and always when Auto height is off or the Forms host runs an older renderer.\",defaultValue:640,min:120,max:4e3,step:10,unit:\"px\",displayStepper:false},autoHeight:{type:ControlType.Boolean,title:\"Auto height\",description:\"Let the form report its own height so the block grows and shrinks with it. Set the block's height to Fit Content in the Layout panel; a Fixed height takes precedence over reported heights.\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},radius:{type:ControlType.Number,title:\"Corner radius\",defaultValue:12,min:0,max:64,step:1,unit:\"px\"},formsHost:{type:ControlType.String,title:\"Forms host\",defaultValue:DEFAULT_FORMS_HOST,placeholder:`e.g. ${DEFAULT_FORMS_HOST}`},forwardParams:{type:ControlType.Boolean,title:\"Forward params\",description:\"Send this page's utm_ and pf_ query parameters to the form. Pixie-owned hosts (*.pixieform.com) forward automatically; a custom Forms host only forwards when this is on.\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\",hidden:props=>isPixieOwnedHost(props.formsHost??DEFAULT_FORMS_HOST)}});\nexport const __FramerMetadata__ = {\"exports\":{\"buildPixieFormUrl\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withForwardedParams\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isPixieOwnedHost\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"PixieFormFrame\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PixieForms.map","// Generated by Framer (3ad0d99)\nexport default function metadata(params,activeLocale){return{description:\"Made with Framer\",robots:\"max-image-preview:large\",title:\"My Framer Site\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,4NAsFA,SAASkB,EAAc,EAAI,CAAC,OAAOC,GAAKC,EAAA,CAAoB,KAAK,CAAC,CAAC,QAAQ,gBAAgB,EAAE,CAAC,CAAC,QAAQ,OAAO,EAAE,CAAE,CAiC/G,SAAgBC,EAAiB,EAAU,CAAC,IAAMC,EAAKJ,EAAcK,CAAS,GAAGH,EAAuBI,EAAS,GAAG,CAAC,EAAS,IAAI,IAAI,WAAWF,GAAM,CAAC,CAAC,SAAS,YAAY,CAAE,MAAM,CAAC,MAAO,EAAM,CAAC,OAAOE,IAAWC,GAAkBD,EAAS,SAASE,CAAuB,CAAE,CAOvR,SAAgBC,EAAkB,EAAU,EAAI,EAAK,CAAC,IAAML,EAAKJ,EAAcK,CAAS,EAAQK,GAAWC,GAAM,GAAA,CAAI,KAAK,EAAE,GAAG,CAACP,GAAM,CAACM,EAAU,OAAO,KAAK,IAAME,GAAUC,GAAK,GAAA,CAAI,KAAK,EAAkE,MAAM,WAAWT,EAAK,KAArEQ,EAAS,GAAG,mBAAmBA,CAAQ,EAAE,GAAG,KAA2C,mBAAmBF,CAAS,GAAI,CAwBlU,SAASI,EAAmB,EAAK,CAAC,OAAOC,EAAK,WAAW,KAAK,GAAGA,EAAK,OAAO,GAAGA,EAAK,WAAW,MAAM,GAAGA,EAAK,OAAO,CAAE,CA0B1H,SAAgBC,EAAoB,EAAK,EAAW,CAAC,IAAIC,EAAO,GAAG,CAAC,EAAO,IAAI,IAAIC,CAAI,CAAE,MAAM,CAAC,OAAOA,CAAK,CAAC,IAAMC,EAAS,IAAI,gBAAgBC,CAAU,EAAQC,EAAa,IAAI,IAAIJ,EAAO,aAAa,KAAK,CAAC,EA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