{"version":3,"file":"Paper.SpgdPBT1.mjs","names":["VIEWPORT_META_CONTENT","LOCK_TOKEN_PREFIX","AUTH_EVENT_PREFIX","GROUP_TOKEN_PREFIX","GROUP_AUTH_EVENT_PREFIX","injectPageLockMarkup","scrollStyle","scrollUnjacker","scrollUnlock","useState","_Fragment","useCallback","useState","useMemo","useRef","_Fragment"],"sources":["https:/framerusercontent.com/modules/9FbImH2wOSFORkhGsEka/aiHJiPhdTXcq5QoeNGxa/PageLockContentG.js","https:/framerusercontent.com/modules/vsKukkoI3kBFqjYYObE2/8ZiCWzqATWwcdQwQlw1Q/Paper.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect}from\"react\";import{createPortal}from\"react-dom\";// __HOSTED_RUNTIME_BEGIN__\n// AUTO-GENERATED — DO NOT EDIT inline.\n// Source: hosted-components/_runtime/{constants,runtime}.ts\n// Re-sync: node pagelock-plugin-v7/scripts/sync-hosted-runtime.mjs\nconst FALLBACK_API_URL=\"https://fallback.proofly.ae\";const LOCK_TOKEN_PREFIX=\"proofly_v5_token_\";const AUTH_EVENT_PREFIX=\"proofly:auth:\";const GROUP_TOKEN_PREFIX=\"proofly_v5_group_token_\";const GROUP_AUTH_EVENT_PREFIX=\"proofly:group-auth:\";const Z_BACKDROP_TINT=9997;const Z_BACKDROP=9998;const Z_OVERLAY=9999;const FETCH_TIMEOUT_MS=6e3;const CANVAS_HOSTS=[\"framer.com\",\"www.framer.com\"];const VIEWPORT_META_CONTENT=\"width=device-width, initial-scale=1\";// The sync script strips this import — hosted components already\n// `import { useEffect } from \"react\"` at the top of their file. Same for\n// the constants (the script inlines their values from `./constants.ts`\n// alongside this body, so callers see them as plain consts in scope).\n/** True when the host page is inside Framer's editor canvas (not a live\n *  customer site). Hosted components render bounded previews when this\n *  is true, and full-screen portal overlays otherwise. The match list\n *  is inlined from `CANVAS_HOSTS` to keep this function callable from\n *  any scope in a hosted component. */function isCanvasHost(){if(typeof window===\"undefined\")return false;const h=window.location.hostname;return h===\"framer.com\"||h===\"www.framer.com\";}/** Patch the host page's `<meta name=\"viewport\">` so 100vw resolves to\n *  the real device width on mobile, then restore the original on unmount.\n *\n *  Must be called UNCONDITIONALLY at the top of a hosted component (React\n *  rule of hooks). Pass `disabled=true` when the gate isn't active to\n *  skip the patch — the cleanup still registers, fixing audit §8.7\n *  where CmsGate's not-locked branch leaked a permanently rewritten\n *  meta tag. */function useViewportMetaPatch(disabled){useEffect(()=>{if(disabled)return;if(typeof document===\"undefined\")return;if(isCanvasHost())return;let meta=document.querySelector('meta[name=\"viewport\"]');const origContent=meta?meta.getAttribute(\"content\"):null;const created=!meta;if(meta){meta.setAttribute(\"content\",VIEWPORT_META_CONTENT);}else{meta=document.createElement(\"meta\");meta.name=\"viewport\";meta.content=VIEWPORT_META_CONTENT;document.head.appendChild(meta);}return()=>{if(!meta)return;if(created){meta.remove();}else if(origContent!==null){meta.setAttribute(\"content\",origContent);}};},[disabled]);}/** Build a fetch wrapper that races a 6s timeout and falls back to\n *  `fallbackUrl ?? FALLBACK_API_URL` on timeout, abort, or 5xx.\n *\n *  Returned function preserves the standard `(path, options) => Response`\n *  shape callers already use. The fallback is best-effort: if it also\n *  fails, the rejection propagates so callers can surface the error. */function createResilientFetch(apiUrl,fallbackUrl){return async function resilientFetch(path,options={}){const controller=new AbortController;const timeout=setTimeout(()=>controller.abort(),FETCH_TIMEOUT_MS);try{const res=await fetch(apiUrl+path,{...options,signal:controller.signal});clearTimeout(timeout);if(res.status>=500)throw new Error(\"server\");return res;}catch{clearTimeout(timeout);const fb=fallbackUrl||FALLBACK_API_URL;return fetch(fb+path,options);}};}/** Token storage + auth event bus for one lock. Wraps the\n *  `${LOCK_TOKEN_PREFIX}${lockId}` localStorage key plus the\n *  `${AUTH_EVENT_PREFIX}${lockId}` window CustomEvent so the login form\n *  and content-display iframe stay in sync.\n *\n *  Returns:\n *   - `get()` — current token or null.\n *   - `set(token)` — writes storage AND dispatches the auth event.\n *   - `clear()` — removes storage; does NOT dispatch (logout is a reload).\n *   - `onAuthChange(handler)` — listens for the auth event; returns an\n *     unsubscribe function. Handler receives the token from the event\n *     detail. */function lockSession(lockId){const storageKey=LOCK_TOKEN_PREFIX+lockId;const eventName=AUTH_EVENT_PREFIX+lockId;return{get(){try{return localStorage.getItem(storageKey);}catch{return null;}},set(token){try{localStorage.setItem(storageKey,token);}catch{/* quota / private mode */}try{window.dispatchEvent(new CustomEvent(eventName,{detail:{token}}));}catch{/* no window */}},clear(){try{localStorage.removeItem(storageKey);}catch{/* skip */}},onAuthChange(handler){const listener=e=>{const ce=e;if(ce.detail&&typeof ce.detail.token===\"string\")handler(ce.detail.token);};window.addEventListener(eventName,listener);return()=>window.removeEventListener(eventName,listener);}};}/** Token storage + auth event bus for one PROTECTED GROUP. Same shape as\n *  `lockSession` but keyed by groupId, wrapping the\n *  `${GROUP_TOKEN_PREFIX}${groupId}` localStorage key and the\n *  `${GROUP_AUTH_EVENT_PREFIX}${groupId}` window CustomEvent. A group token\n *  unlocks every member page in the group (the content endpoint validates\n *  membership server-side), so one session is shared across the group's pages. */function lockGroupSession(groupId){const storageKey=GROUP_TOKEN_PREFIX+groupId;const eventName=GROUP_AUTH_EVENT_PREFIX+groupId;return{get(){try{return localStorage.getItem(storageKey);}catch{return null;}},set(token){try{localStorage.setItem(storageKey,token);}catch{/* quota / private mode */}try{window.dispatchEvent(new CustomEvent(eventName,{detail:{token}}));}catch{/* no window */}},clear(){try{localStorage.removeItem(storageKey);}catch{/* skip */}},onAuthChange(handler){const listener=e=>{const ce=e;if(ce.detail&&typeof ce.detail.token===\"string\")handler(ce.detail.token);};window.addEventListener(eventName,listener);return()=>window.removeEventListener(eventName,listener);}};}/** Parse a `lockedSlugs` JSON map. Returns an OK shape with the parsed\n *  map, or a fail-CLOSED FAIL shape when the JSON is invalid / not an\n *  object. Callers MUST treat fail as \"render closed gate\" — never\n *  fall back to \"no slug locked\", which would render the page\n *  unprotected (audit §8.3 / §4.4). */function parseLockedSlugs(json){if(json===undefined||json===null||json===\"\"){return{ok:true,map:{}};}try{const parsed=JSON.parse(json);if(parsed&&typeof parsed===\"object\"&&!Array.isArray(parsed)){const out={};for(const[k,v]of Object.entries(parsed)){if(typeof v===\"string\")out[k]=v;}return{ok:true,map:out};}return{ok:false,reason:\"Locked slugs map must be a JSON object.\"};}catch{return{ok:false,reason:\"Locked slugs JSON failed to parse.\"};}}/** Resolve which lock (if any) gates the current path. Walks the URL\n *  segments back-to-front and returns the first one that appears in the\n *  slugs map. Fixes audit §4.4 nested CMS template gap (`/projects/:slug/details`\n *  whose terminal segment is `details`, not the slug). */function pickSlugFromPath(pathname,slugMap){const parts=pathname.split(\"/\").filter(Boolean);for(let i=parts.length-1;i>=0;i--){const candidate=parts[i];const lockId=slugMap[candidate];if(lockId)return{slug:candidate,lockId};}return null;}// __HOSTED_RUNTIME_END__\nfunction injectPageLockMarkup(html,headMarkup,bodyMarkup){let next=html;if(/<\\/head>/i.test(next)){next=next.replace(/<\\/head>/i,headMarkup+\"</head>\");}else if(/<html([^>]*)>/i.test(next)){next=next.replace(/<html([^>]*)>/i,\"<html$1><head>\"+headMarkup+\"</head>\");}else{next=headMarkup+next;}if(/<\\/body>/i.test(next)){next=next.replace(/<\\/body>/i,bodyMarkup+\"</body>\");}else if(/<body([^>]*)>/i.test(next)){next=next.replace(/<body([^>]*)>/i,\"<body$1>\"+bodyMarkup);}else{next+=bodyMarkup;}return next;}function buildProtectedContentHtml(html,lockId){const scrollStyle=`\n<style id=\"pagelock-content-scroll-style\">\nhtml,\nbody {\n    height: auto !important;\n    min-height: 100% !important;\n    overflow-x: hidden !important;\n    overflow-y: auto !important;\n    overscroll-behavior-y: auto !important;\n    -webkit-overflow-scrolling: touch !important;\n}\nbody {\n    margin: 0;\n}\n</style>`;// Defeat Framer's smooth-scroll (Lenis) ONLY at the page level. Lenis adds a\n// non-passive wheel/touchmove listener on `window` that preventDefaults but\n// cannot actually scroll inside this iframe, which kills native scroll for the\n// whole locked page. We patch addEventListener BEFORE Lenis boots: when a\n// PAGE-LEVEL target (window/document/documentElement/body) registers\n// wheel/touchmove/mousewheel, we force the listener passive so it can no longer\n// call preventDefault — the browser's native scroll then wins. Listeners on\n// NESTED elements (galleries, maps, custom scrollers) are passed through\n// untouched, so they keep full control (including preventDefault). This MUST be\n// injected at <head> start so it runs before Framer's deferred Lenis module.\n// Verified on the live /work/dellobank jam: page scroll 0px -> 600px while a\n// nested wheel widget still fired and still blocked page scroll over itself.\n//\n// MIRRORED server-side in\n// proofly/src/app/api/v5/content/[lockId]/route.ts (buildProtectedContentHtmlServer).\n// Keep this block byte-identical with the server copy — enforced by\n// scripts/check-snapshot-inject-drift.mjs.\nconst scrollUnjacker=`\n<script>\n(function () {\n    try {\n        var orig = EventTarget.prototype.addEventListener;\n        function pageLevel(t) {\n            return t === window || t === document || t === document.documentElement || (document.body && t === document.body);\n        }\n        EventTarget.prototype.addEventListener = function (type, listener, opts) {\n            if ((type === \"wheel\" || type === \"touchmove\" || type === \"mousewheel\") && pageLevel(this)) {\n                var o = (opts && typeof opts === \"object\") ? Object.assign({}, opts) : { capture: !!opts };\n                o.passive = true;\n                return orig.call(this, type, listener, o);\n            }\n            return orig.call(this, type, listener, opts);\n        };\n    } catch (e) {}\n})();\n</script>`;const scrollUnlock=`\n<script>\n(function () {\n    function apply(el) {\n        if (!el || !el.style) return;\n        el.style.setProperty(\"height\", \"auto\", \"important\");\n        el.style.setProperty(\"min-height\", \"100%\", \"important\");\n        el.style.setProperty(\"overflow-x\", \"hidden\", \"important\");\n        el.style.setProperty(\"overflow-y\", \"auto\", \"important\");\n        el.style.setProperty(\"overscroll-behavior-y\", \"auto\", \"important\");\n        el.style.setProperty(\"-webkit-overflow-scrolling\", \"touch\", \"important\");\n    }\n    function unlockScroll() {\n        try {\n            apply(document.documentElement);\n            apply(document.body);\n        } catch (e) {}\n    }\n    unlockScroll();\n    if (document.readyState === \"loading\") {\n        document.addEventListener(\"DOMContentLoaded\", unlockScroll, { once: true });\n    }\n    window.addEventListener(\"load\", unlockScroll);\n    var frames = 0;\n    function settle() {\n        unlockScroll();\n        frames++;\n        if (frames < 20) requestAnimationFrame(settle);\n    }\n    requestAnimationFrame(settle);\n})();\n</script>`;// Inject the paint probe inside the returned document. Prepending it\n// before <!doctype html> forces quirks mode and can break iframe scroll.\nconst paintProbe=`\n<script>\n(function () {\n    var sent = false;\n    var lastH = -1;\n    var stableFrames = 0;\n    var startedAt = Date.now();\n    function readBg() {\n        try {\n            var el = document.body || document.documentElement;\n            var bg = window.getComputedStyle(el).backgroundColor;\n            if (!bg || bg === \"rgba(0, 0, 0, 0)\" || bg === \"transparent\") {\n                bg = window.getComputedStyle(document.documentElement).backgroundColor;\n            }\n            return bg && bg !== \"rgba(0, 0, 0, 0)\" && bg !== \"transparent\" ? bg : null;\n        } catch (e) { return null; }\n    }\n    function pageHeight() {\n        var b = document.body;\n        var d = document.documentElement;\n        return Math.max(\n            b ? b.scrollHeight : 0,\n            d ? d.scrollHeight : 0\n        );\n    }\n    function tell() {\n        if (sent) return;\n        sent = true;\n        try {\n            window.parent.postMessage({\n                type: \"pagelock-painted\",\n                lockId: ${JSON.stringify(lockId)},\n                bgColor: readBg(),\n            }, \"*\");\n        } catch (e) {}\n    }\n    function tick() {\n        if (sent) return;\n        if (Date.now() - startedAt > 5000) return tell();\n        var b = document.body;\n        var h = pageHeight();\n        var n = b ? b.children.length : 0;\n        var loaded = document.readyState === \"complete\";\n        if (loaded && n > 5 && h > window.innerHeight) {\n            if (h === lastH) stableFrames++;\n            else { lastH = h; stableFrames = 0; }\n            if (stableFrames >= 4) return tell();\n        }\n        requestAnimationFrame(tick);\n    }\n    if (document.readyState === \"loading\") {\n        document.addEventListener(\"DOMContentLoaded\", tick);\n    } else {\n        tick();\n    }\n})();\n</script>`;// Iframe nav-interceptor. The protected HTML serves the full Framer\n// SPA, so once authenticated the visitor can navigate anywhere via\n// Framer's client router — including other locked pages whose lock\n// components weren't included in this lock's snapshot. That bypasses\n// the gate (e.g. unlocking /home shows a stripped /work/<slug> teaser\n// with no PIN prompt).\n//\n// Fix: capture-phase click listener registered on `window` so it runs\n// BEFORE Framer's own router handler. If the resolved destination is a\n// different parent-side path than the one this iframe was opened for,\n// prevent default and force a top-level navigation. That re-enters\n// Framer's normal load → the per-page gate mounts and gates the\n// destination correctly. Fallback: postMessage to parent if\n// window.top.location.href ever fails (sandbox without\n// allow-top-navigation).\nconst navInterceptor=`\n<script>\n(function () {\n    function anchor(t) {\n        var el = t;\n        while (el && el !== document.body) {\n            if (el.tagName === \"A\") return el;\n            el = el.parentElement;\n        }\n        return null;\n    }\n    var parentBase;\n    var parentPath;\n    var parentOrigin;\n    try {\n        parentBase = window.parent.location.href;\n        parentPath = window.parent.location.pathname;\n        parentOrigin = window.parent.location.origin;\n    } catch (e) {\n        return;\n    }\n    window.addEventListener(\"click\", function (e) {\n        var a = anchor(e.target);\n        if (!a) return;\n        var href = a.getAttribute(\"href\");\n        if (!href) return;\n        if (href.charAt(0) === \"#\") return;\n        if (href.indexOf(\"javascript:\") === 0) return;\n        if (a.target === \"_blank\") return;\n        if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) return;\n        var u;\n        try { u = new URL(href, parentBase); } catch (err) { return; }\n        if (u.origin !== parentOrigin) return;\n        if (u.pathname === parentPath) return;\n        e.preventDefault();\n        e.stopImmediatePropagation();\n        try { window.top.location.href = u.href; } catch (err2) {\n            try { window.parent.postMessage({ type: \"proofly-nav\", url: u.href }, \"*\"); } catch (err3) {}\n        }\n    }, true);\n})();\n`+\"<\"+\"/script>\";const withMarkup=injectPageLockMarkup(html,scrollStyle,navInterceptor+scrollUnlock+paintProbe);// scrollUnjacker MUST run before Framer's deferred Lenis module, so inject it\n// at the START of <head> (injectPageLockMarkup put scrollStyle at the END).\nif(/<head([^>]*)>/i.test(withMarkup)){return withMarkup.replace(/<head([^>]*)>/i,\"<head$1>\"+scrollUnjacker);}if(/<html([^>]*)>/i.test(withMarkup)){return withMarkup.replace(/<html([^>]*)>/i,\"<html$1><head>\"+scrollUnjacker+\"</head>\");}return scrollUnjacker+withMarkup;}/**\n * @framerDisableUnlink\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 600\n */export default function PageLockContent(props){const{lockId,groupId,apiUrl,fallbackUrl,backgroundColor,spinnerColor,errorText,sandboxPermissions,errorPageMode}=props;// A page that belongs to a protected group authenticates via the shared\n// GROUP session (one login unlocks every member page); a standalone locked\n// page uses its own per-lock session. Both expose the same get/clear/\n// onAuthChange interface, and content is always fetched per lockId — the\n// content endpoint decides authorization from whichever token is sent.\nconst groupIdStr=typeof groupId===\"string\"?groupId.trim():\"\";const useGroup=groupIdStr.length>0;const sessionFor=()=>useGroup?lockGroupSession(groupIdStr):lockSession(lockId);const[mounted,setMounted]=useState(false);const[isCanvas,setIsCanvas]=useState(false);const[blobUrl,setBlobUrl]=useState(null);const[error,setError]=useState(false);/** Page-side background color sampled by the in-iframe paint probe.\n     *  Used to tint the backdrop so the moment the login form unmounts the\n     *  user sees a color matching the protected page, not white/transparent. */const[bgColor,setBgColor]=useState(null);// Patch viewport meta unconditionally so cleanup always registers\n// (audit §8.7). The runtime hook no-ops on canvas internally.\nuseViewportMetaPatch();const resilientFetch=createResilientFetch(apiUrl,fallbackUrl);const fetchContent=async token=>{setError(false);// 404-page real-URL mode. A `blob:` iframe src crashes Framer's runtime\n// on the /404 (catch-all, non-absolute) route, so for error pages we\n// point the iframe at a real cross-origin backend URL that returns the\n// SAME script-injected HTML with embeddable headers. We reuse `blobUrl`\n// state to drive the iframe (here it holds an https: URL, not a blob:),\n// so the iframe JSX / backdrop / paint listener are unchanged. There is\n// no observable HTTP status for an iframe src, so the 401 reload guard\n// below does not run in this branch; an empty token would load an\n// unauthenticated error page, so we bail to the error UI instead. The\n// auth event re-invokes fetchContent with a fresh token (same as today).\nif(errorPageMode){if(!token){setError(true);return;}const domainParam=encodeURIComponent(window.location.hostname);const src=apiUrl+\"/api/v5/content/\"+lockId+\"?format=html\"+\"&token=\"+encodeURIComponent(token)+\"&domain=\"+domainParam+\"&parentPath=\"+encodeURIComponent(window.location.pathname)+\"&parentOrigin=\"+encodeURIComponent(window.location.origin);setBlobUrl(src);return;}try{const domainParam=encodeURIComponent(window.location.hostname);const res=await resilientFetch(\"/api/v5/content/\"+lockId+\"?domain=\"+domainParam,{headers:{Authorization:\"Bearer \"+token}});if(!res.ok){if(res.status===401){// Token rejected (expired, domain mismatch, server invalidated, etc.).\n// Clear local state and reload so the login gate re-mounts on the next\n// frame. Leaving the backdrop without content would render a blank\n// screen (the iframe is conditional on blobUrl). Matches the existing\n// \"logout is a reload\" convention in lockSession.clear.\n// For a group member, clearing the group token re-gates\n// every member page (the group session is dead); also purge\n// any stale per-lock fallback token on this page.\nsessionFor().clear();if(useGroup)lockSession(lockId).clear();// Reload-storm guard. A persistently-rejected token would\n// 401 every mount → reload → re-mount → 401 forever, faster\n// than React can paint the LoginForm sibling. We stamp the\n// last reload timestamp in sessionStorage (per-tab, per-\n// lockId) and fall through to the error UI when a second\n// 401 lands inside the window. The \"Try Again\" button on\n// that UI clears state and lets the visitor retry manually.\ntry{const guardKey=\"pagelock_401_reload_\"+lockId;const last=parseInt(sessionStorage.getItem(guardKey)||\"0\",10);const now=Date.now();if(now-last<5e3){setError(true);return;}sessionStorage.setItem(guardKey,String(now));}catch{/* sessionStorage unavailable — fall through and reload once */}if(typeof window!==\"undefined\")window.location.reload();return;}// Other errors (404 missing content, 5xx) — surface the error UI\n// with the Try Again button rather than silently going blank.\nsetError(true);return;}const data=await res.json();const html=data.html||\"\";const blob=new Blob([buildProtectedContentHtml(html,lockId)],{type:\"text/html\"});setBlobUrl(URL.createObjectURL(blob));}catch{setError(true);}};useEffect(()=>{setMounted(true);setIsCanvas(isCanvasHost());if(!lockId||isCanvasHost())return;const session=sessionFor();// Prefer the active session's token. When this page is in a group, fall\n// back to a leftover per-lock token (e.g. the visitor authenticated to\n// this page before it joined the group) so they aren't forced to log in\n// again; the content endpoint accepts either token type.\nconst stored=session.get()||(useGroup?lockSession(lockId).get():null);if(stored)fetchContent(stored);const unsubscribe=session.onAuthChange(token=>fetchContent(token));// Listen for the paint-stability ping from the injected probe and\n// tint the backdrop to match the protected page's actual body bg.\n// The previous `proofly:content-ready:<lockId>` re-emit had no\n// listener anywhere and was removed.\nconst onMessage=event=>{const data=event.data;if(!data||typeof data!==\"object\")return;if(data.type!==\"pagelock-painted\")return;if(data.lockId!==lockId)return;if(typeof data.bgColor===\"string\"&&data.bgColor.length>0){setBgColor(data.bgColor);}};window.addEventListener(\"message\",onMessage);return()=>{unsubscribe();window.removeEventListener(\"message\",onMessage);};},[lockId,groupIdStr]);if(!mounted)return null;// Canvas preview\nif(isCanvas){return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background:backgroundColor,flexDirection:\"column\",gap:12},children:[/*#__PURE__*/_jsxs(\"svg\",{width:\"40\",height:\"40\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:spinnerColor,strokeWidth:\"1.5\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"3\",y:\"11\",width:\"18\",height:\"11\",rx:\"2\",ry:\"2\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M7 11V7a5 5 0 0 1 10 0v4\"})]}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:13,color:spinnerColor,textAlign:\"center\",maxWidth:200},children:\"Protected content appears here after authentication\"})]});}// Error state\nif(error){return /*#__PURE__*/createPortal(/*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",zIndex:Z_BACKDROP,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background:backgroundColor,flexDirection:\"column\",gap:12},children:[/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:14,color:\"#ef4444\",textAlign:\"center\"},children:errorText}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>{sessionFor().clear();if(useGroup)lockSession(lockId).clear();setError(false);},style:{padding:\"8px 20px\",background:\"#ef4444\",color:\"#fff\",border:\"none\",borderRadius:8,cursor:\"pointer\",fontSize:13},children:\"Try Again\"})]}),document.body);}// Authenticated — colored backdrop + iframe layered on top. The\n// backdrop covers the underlying live page so when the login form on\n// top of us unmounts, the viewer never sees the unprotected page\n// peek through. Once the in-iframe probe reports paint, we tint the\n// backdrop to match the protected page's actual body bg color.\nconst backdropColor=bgColor||backgroundColor||\"#ffffff\";return /*#__PURE__*/createPortal(/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",zIndex:Z_BACKDROP_TINT,background:backdropColor}}),blobUrl&&/*#__PURE__*/_jsx(\"iframe\",{src:blobUrl,style:{position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",border:\"none\",zIndex:Z_BACKDROP,overflow:\"auto\",WebkitOverflowScrolling:\"touch\",overscrollBehavior:\"contain\"},scrolling:\"yes\",sandbox:sandboxPermissions,title:\"Protected Content\"})]}),document.body);}addPropertyControls(PageLockContent,{lockId:{type:ControlType.String,title:\"Lock ID\",defaultValue:\"\"},groupId:{type:ControlType.String,title:\"Group ID\",defaultValue:\"\"},apiUrl:{type:ControlType.String,title:\"API URL\",defaultValue:\"https://proofly.ae\"},fallbackUrl:{type:ControlType.String,title:\"Fallback URL\",defaultValue:\"https://fallback.proofly.ae\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#ffffff\"},spinnerColor:{type:ControlType.Color,title:\"Spinner Color\",defaultValue:\"#000000\"},errorText:{type:ControlType.String,title:\"Error Text\",defaultValue:\"Failed to load content. Please try again.\"},sandboxPermissions:{type:ControlType.String,title:\"Sandbox\",defaultValue:\"allow-scripts allow-same-origin allow-forms allow-popups allow-top-navigation\"},errorPageMode:{type:ControlType.Boolean,title:\"Error Page Mode\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PageLockContent\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"600\",\"framerDisableUnlink\":\"* @framerIntrinsicWidth 400\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PageLockContentG.map","// Paper — minimal light PIN gate on an off-white \"paper\" ground.\n// Ported from /tmp/pagelock-paper/pagelock/project/Template 6 - Paper.html +\n// css/template-6.css. Inter body, hairline-ruled white card, dark-ink unlock\n// button, single-line soft-red error. Follows the non-negotiable runtime\n// contract in pagelock-templates/AUTHORING.md §1 verbatim.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Keep this import \"wide\" — every shared hook we inline may pull from\n// these. Narrowing it (e.g. dropping useMemo when this file's JSX\n// doesn't use it directly) breaks the inlined slug-awareness body in\n// dist. Convention: import the full {useState, useEffect, useRef,\n// useCallback, useMemo} set in every template.\nimport{useState,useEffect,useRef,useCallback,useMemo}from\"react\";import{createPortal}from\"react-dom\";// ──────────────────────────────────────────────────────────────────────\n// Inlined shared-runtime helpers. DO NOT edit by hand — regenerated by\n// `npx tsx scripts/inline-shared.ts` whenever a shared module changes.\n// Framer's hosted-component runtime can't resolve relative imports, so\n// every helper this template uses lives here, not in src/shared/runtime.\n// ──────────────────────────────────────────────────────────────────────\nconst LOCK_TOKEN_PREFIX=\"proofly_v5_token_\";const AUTH_EVENT_PREFIX=\"proofly:auth:\";const CONTENT_READY_PREFIX=\"proofly:content-ready:\";const GROUP_TOKEN_PREFIX=\"proofly_v5_group_token_\";const GROUP_AUTH_EVENT_PREFIX=\"proofly:group-auth:\";const VIEWPORT_META_CONTENT=\"width=device-width, initial-scale=1\";const CANVAS_HOSTS=[\"framer.com\",\"www.framer.com\"];// ── inlined from src/shared/runtime/paint-probe.ts ──\n/**\n * Paint-stability probe script.\n *\n * Injected as a `<script>` into the protected-content iframe's HTML.\n * Framer pages mount React after `window.onload`, so the iframe's\n * `onLoad` fires BEFORE any visible content paints. This probe waits\n * for layout to be stable for 4 consecutive frames, samples the body's\n * background color, and posts both back to the parent so the parent\n * can tint the cms-backdrop to match the protected page (no white\n * flash during the form → iframe handoff).\n *\n * Times out after 5s — if the page never settles (slow CMS image\n * loads etc.), we send the message anyway so the parent doesn't wait\n * forever.\n *\n * Built as a function rather than a constant because the script needs\n * to embed the lock id (`lockIdToFetch`) inline so the parent's\n * `pagelock-painted` message handler can filter by lockId.\n *\n * Closing `</script>` built via `\"<\" + \"/script>\"` concat so the\n * bundler can't escape the tag to `<\\/script>` (which doesn't\n * terminate a script tag in HTML and would swallow the rest of the\n * iframe body as JS).\n */function buildPaintProbe(lockId){return`\n<script>\n(function () {\n    var sent = false;\n    var lastH = -1;\n    var stableFrames = 0;\n    var startedAt = Date.now();\n    function readBg() {\n        try {\n            var el = document.body || document.documentElement;\n            var bg = window.getComputedStyle(el).backgroundColor;\n            if (!bg || bg === \"rgba(0, 0, 0, 0)\" || bg === \"transparent\") {\n                bg = window.getComputedStyle(document.documentElement).backgroundColor;\n            }\n            return bg && bg !== \"rgba(0, 0, 0, 0)\" && bg !== \"transparent\" ? bg : null;\n        } catch (e) { return null; }\n    }\n    function tell() {\n        if (sent) return;\n        sent = true;\n        try {\n            window.parent.postMessage({\n                type: \"pagelock-painted\",\n                lockId: ${JSON.stringify(lockId)},\n                bgColor: readBg(),\n            }, \"*\");\n        } catch (e) {}\n    }\n    function tick() {\n        if (sent) return;\n        if (Date.now() - startedAt > 5000) return tell();\n        var b = document.body;\n        var h = b ? b.scrollHeight : 0;\n        var n = b ? b.children.length : 0;\n        var loaded = document.readyState === \"complete\";\n        if (loaded && n > 5 && h > window.innerHeight) {\n            if (h === lastH) stableFrames++;\n            else { lastH = h; stableFrames = 0; }\n            if (stableFrames >= 4) return tell();\n        }\n        requestAnimationFrame(tick);\n    }\n    if (document.readyState === \"loading\") {\n        document.addEventListener(\"DOMContentLoaded\", tick);\n    } else {\n        tick();\n    }\n})();\n`+\"<\"+\"/script>\";}// ── inlined from src/shared/runtime/nav-interceptor.ts ──\n/**\n * Iframe nav-interceptor script.\n *\n * Injected as a `<script>` into the protected-content iframe's HTML so\n * cross-page link clicks force a fresh top-level load instead of an\n * in-iframe SPA route. Without this, an authenticated visitor can\n * navigate to any other page inside the iframe (Framer's SPA router\n * uses internal React state, not the History API, so the iframe shows\n * the full site with lock components stripped). That bypasses every\n * other lock on the site, including stripped CMS teasers.\n *\n * Behaviour:\n *  - Capture-phase click listener on `window` so it runs before Framer's\n *    SPA router handler (capture order: window → document).\n *  - Walks up from the click target to find an `<a>` tag.\n *  - Skips in-page anchors (`#…`), `javascript:` URLs, `target=\"_blank\"`,\n *    modifier-click, and middle-click.\n *  - Resolves the href against `window.parent.location.href` so relative\n *    URLs in Framer markup (e.g. `./work`) resolve against the outer URL\n *    bar instead of the blob URL.\n *  - External origins and same-path links pass through to Framer's\n *    internal router.\n *  - Cross-page same-origin clicks: `preventDefault` +\n *    `stopImmediatePropagation` + `window.top.location.href = u.href`.\n *  - Fallback: `postMessage({ type: \"proofly-nav\", url })` to the parent\n *    if top-nav is ever blocked (sandbox without `allow-top-navigation`).\n *\n * Closing `</script>` built via `\"<\" + \"/script>\"` concat so the bundler\n * can't escape the tag to `<\\/script>` (which doesn't terminate a script\n * tag in HTML and would swallow the rest of the iframe body as JS).\n */const navInterceptor=`\n<script>\n(function () {\n    function anchor(t) {\n        var el = t;\n        while (el && el !== document.body) {\n            if (el.tagName === \"A\") return el;\n            el = el.parentElement;\n        }\n        return null;\n    }\n    var parentBase;\n    var parentPath;\n    var parentOrigin;\n    try {\n        parentBase = window.parent.location.href;\n        parentPath = window.parent.location.pathname;\n        parentOrigin = window.parent.location.origin;\n    } catch (e) {\n        return;\n    }\n    window.addEventListener(\"click\", function (e) {\n        var a = anchor(e.target);\n        if (!a) return;\n        var href = a.getAttribute(\"href\");\n        if (!href) return;\n        if (href.charAt(0) === \"#\") return;\n        if (href.indexOf(\"javascript:\") === 0) return;\n        if (a.target === \"_blank\") return;\n        if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) return;\n        var u;\n        try { u = new URL(href, parentBase); } catch (err) { return; }\n        if (u.origin !== parentOrigin) return;\n        if (u.pathname === parentPath) return;\n        e.preventDefault();\n        e.stopImmediatePropagation();\n        try { window.top.location.href = u.href; } catch (err2) {\n            try { window.parent.postMessage({ type: \"proofly-nav\", url: u.href }, \"*\"); } catch (err3) {}\n        }\n    }, true);\n})();\n`+\"<\"+\"/script>\";// ── inlined from src/shared/runtime/scroll-unjacker.ts ──\n/**\n * Iframe smooth-scroll un-jacker script.\n *\n * Framer's smooth-scroll library (Lenis) attaches a NON-passive, page-level\n * `wheel`/`touchmove` listener on `window`, `preventDefault`s every tick, and\n * animates the scroll itself. Inside the protected-content iframe that FIGHTS\n * the browser's native scroll of the same document: native jumps to the new\n * position while Lenis keeps easing toward its own target for ~800ms, so the\n * page lags and jitters (worst on Safari, but present on Chrome too).\n *\n * An earlier version kept Lenis's listener but no-op'd its `preventDefault` so\n * native scroll would \"win\" — but that still let Lenis run its easing loop,\n * which IS the fight. Measured on the live /work/dellobank lock: ~232px of\n * post-input creep and 59 RAF scroll updates with Lenis alive, vs 0 creep and\n * 7 discrete updates once Lenis no longer sees the wheel.\n *\n * Fix: patch `addEventListener` BEFORE Lenis boots and DROP the page-level\n * scroll-hijacking listeners outright. A hijacker is an explicitly NON-passive\n * (`{ passive: false }`) wheel/touchmove/mousewheel listener on a PAGE-LEVEL\n * target (`window` / `document` / `documentElement` / `body`) — only a\n * non-passive listener can `preventDefault`, which is exactly what a\n * smooth-scroll engine needs. We simply don't register it, so the snapshot\n * scrolls 100% natively: one scroller, smooth on every browser, and no\n * `preventDefault`-inside-passive console spam.\n *\n * What is NOT touched: passive page-level listeners (analytics, lazy-load\n * observers) can't hijack scroll, so they pass through; listeners on NESTED\n * elements (galleries, maps, custom scrollers) pass through and keep full\n * control including their own `preventDefault`. Surgical, not a blanket kill.\n *\n * Trade-off: the protected view loses Lenis's smooth-scroll easing and uses the\n * browser's native scroll. Scroll-linked appear animations still fire (they run\n * off native scroll / IntersectionObserver — verified the snapshot renders\n * correctly while native-scrolled). For a read-only gated view this is right.\n *\n * MUST run before the snapshot's deferred Lenis module, so the template injects\n * this at the START of `<head>`.\n *\n * Closing `</script>` built via `\"<\" + \"/script>\"` concat so the bundler can't\n * escape the tag to `<\\/script>` (which wouldn't terminate the script in HTML).\n */const scrollUnjacker=`\n<script>\n(function () {\n    try {\n        var add = EventTarget.prototype.addEventListener;\n        function pageLevel(t) {\n            return t === window || t === document || t === document.documentElement || (document.body && t === document.body);\n        }\n        EventTarget.prototype.addEventListener = function (type, listener, opts) {\n            // Drop page-level smooth-scroll hijackers — an explicitly non-passive\n            // wheel/touch listener on window/document/html/body (e.g. Framer's\n            // Lenis, which registers with { passive: false }). Not registering it\n            // means the iframe scrolls natively instead of fighting Lenis's\n            // easing loop. Passive listeners and nested-element listeners are\n            // left alone.\n            if ((type === \"wheel\" || type === \"touchmove\" || type === \"mousewheel\")\n                && pageLevel(this)\n                && opts && typeof opts === \"object\" && opts.passive === false) {\n                return;\n            }\n            return add.call(this, type, listener, opts);\n        };\n    } catch (e) {}\n})();\n`+\"<\"+\"/script>\";/**\n * CSS reset that re-enables native scrolling on the protected snapshot.\n *\n * Framer's published CSS height-locks `html`/`body` to drive its smooth-scroll\n * transform, so neutering Lenis (scrollUnjacker) alone isn't enough — the body\n * is still a fixed-height, non-scrolling box. This forces `height:auto` +\n * `overflow-y:auto` so the document scrolls normally inside the iframe.\n *\n * Injected at the END of `<head>` (after the snapshot's own styles) so it wins.\n */const scrollStyle=`\n<style id=\"pagelock-content-scroll-style\">\nhtml,\nbody {\n    height: auto !important;\n    min-height: 100% !important;\n    overflow-x: hidden !important;\n    overflow-y: auto !important;\n    overscroll-behavior-y: auto !important;\n    -webkit-overflow-scrolling: touch !important;\n}\nbody {\n    margin: 0;\n}\n</style>`;/**\n * Re-applies the scrollStyle overflow props imperatively across the first ~20\n * animation frames. Framer hydrates React AFTER `window.onload` and rewrites\n * inline styles on `html`/`body` as it boots, which can clobber the static\n * `scrollStyle` rules; re-stamping them via `setProperty(..., \"important\")`\n * each frame keeps the document scrollable through hydration.\n *\n * Closing `</script>` built via `\"<\" + \"/script>\"` concat so the bundler can't\n * escape the tag to `<\\/script>` (which wouldn't terminate the script in HTML).\n */const scrollUnlock=`\n<script>\n(function () {\n    function apply(el) {\n        if (!el || !el.style) return;\n        el.style.setProperty(\"height\", \"auto\", \"important\");\n        el.style.setProperty(\"min-height\", \"100%\", \"important\");\n        el.style.setProperty(\"overflow-x\", \"hidden\", \"important\");\n        el.style.setProperty(\"overflow-y\", \"auto\", \"important\");\n        el.style.setProperty(\"overscroll-behavior-y\", \"auto\", \"important\");\n        el.style.setProperty(\"-webkit-overflow-scrolling\", \"touch\", \"important\");\n    }\n    function unlockScroll() {\n        try {\n            apply(document.documentElement);\n            apply(document.body);\n        } catch (e) {}\n    }\n    unlockScroll();\n    if (document.readyState === \"loading\") {\n        document.addEventListener(\"DOMContentLoaded\", unlockScroll, { once: true });\n    }\n    window.addEventListener(\"load\", unlockScroll);\n    var frames = 0;\n    function settle() {\n        unlockScroll();\n        frames++;\n        if (frames < 20) requestAnimationFrame(settle);\n    }\n    requestAnimationFrame(settle);\n})();\n`+\"<\"+\"/script>\";/**\n * Inject head/body markup into a full HTML document WITHOUT disturbing the\n * leading `<!doctype html>`. Prepending markup before the doctype forces the\n * iframe into quirks mode, which breaks the very scroll behaviour we're trying\n * to restore — so everything goes inside `<head>`/`<body>` instead.\n */function injectPageLockMarkup(html,headMarkup,bodyMarkup){let next=html;if(/<\\/head>/i.test(next)){next=next.replace(/<\\/head>/i,headMarkup+\"</head>\");}else if(/<html([^>]*)>/i.test(next)){next=next.replace(/<html([^>]*)>/i,\"<html$1><head>\"+headMarkup+\"</head>\");}else{next=headMarkup+next;}if(/<\\/body>/i.test(next)){next=next.replace(/<\\/body>/i,bodyMarkup+\"</body>\");}else if(/<body([^>]*)>/i.test(next)){next=next.replace(/<body([^>]*)>/i,\"<body$1>\"+bodyMarkup);}else{next+=bodyMarkup;}return next;}/**\n * Wrap a protected-page snapshot with the full scroll-fix treatment, matching\n * the proven regular-page renderer (PageLockContent.buildProtectedContentHtml):\n *   - scrollUnjacker at the START of `<head>` — runs before Framer's deferred\n *     Lenis module so the wheel never gets jammed.\n *   - scrollStyle at the END of `<head>` — overrides the snapshot's height lock.\n *   - scrollUnlock + caller's `extraBodyMarkup` (paint probe, nav interceptor)\n *     at the END of `<body>`.\n * The `<!doctype html>` stays first, so the document parses as standards mode.\n */function injectScrollFixes(html,extraBodyMarkup){const withMarkup=injectPageLockMarkup(html,scrollStyle,scrollUnlock+extraBodyMarkup);if(/<head([^>]*)>/i.test(withMarkup)){return withMarkup.replace(/<head([^>]*)>/i,\"<head$1>\"+scrollUnjacker);}if(/<html([^>]*)>/i.test(withMarkup)){return withMarkup.replace(/<html([^>]*)>/i,\"<html$1><head>\"+scrollUnjacker+\"</head>\");}return scrollUnjacker+withMarkup;}// ── inlined from src/shared/runtime/resilient-fetch.ts ──\n/**\n * Resilient fetch hook with timeout + fallback.\n *\n * Returns a `(path, options) => Promise<Response>` function that:\n *   1. Issues `apiUrl + path` with a 6-second AbortController timeout.\n *   2. On timeout, network error, or any 5xx response, retries the\n *      request against `fallbackUrl + path` (defaulting to\n *      `https://fallback.proofly.ae` if the caller didn't pass one).\n *\n * Implements §1.7 of AUTHORING.md. Wrapped in `useCallback` keyed on the\n * url props so the returned reference is stable across renders and safe\n * to put in other hooks' dependency arrays.\n *\n * Status-code semantics: the function only retries on 5xx + network\n * failures. 4xx responses (auth failures, validation errors) propagate\n * to the caller without a fallback retry — the fallback is for primary-\n * region outages, not for masking client errors.\n */function useResilientFetch(apiUrl,fallbackUrl){return useCallback(async(path,options)=>{const controller=new AbortController;const timeout=setTimeout(()=>controller.abort(),6e3);try{const res=await fetch(apiUrl+path,{...options,signal:controller.signal});clearTimeout(timeout);if(res.status>=500)throw new Error(\"server\");return res;}catch{clearTimeout(timeout);const fb=fallbackUrl||\"https://fallback.proofly.ae\";return fetch(fb+path,options);}},[apiUrl,fallbackUrl]);}/**\n * CMS-aware lockId resolution + SPA-navigation re-resolution.\n *\n * Two responsibilities, intentionally co-located because they share\n * the same trigger (URL pathname change):\n *\n *  1. **Slug → lockId mapping.** When the plugin injects a non-empty\n *     `lockedSlugs` JSON map, the same template node has to gate every\n *     locked slug on a CMS template page (e.g. `/work/:slug`). This\n *     hook parses the map, reads `window.location.pathname`'s last\n *     segment, and returns the resolved lockId (or empty for unlocked\n *     slugs). See AGENT-PORT-GUIDE.md §1.11.\n *\n *  2. **SPA-navigation re-resolution.** Framer's client router calls\n *     `history.pushState` / `replaceState` instead of full reloads.\n *     Without listening, the slug resolution from #1 fires once on\n *     mount and never re-evaluates, so SPA-routing between locked CMS\n *     items renders the teaser unguarded. The hook monkey-patches\n *     `pushState` / `replaceState` and subscribes to `popstate` to\n *     keep its internal `pathname` state in sync with the URL bar.\n *\n * Patches are restored on unmount. The monkey-patch idempotently calls\n * the original method first so other consumers of `history.pushState`\n * keep working transparently.\n */function useSlugAwareness(lockedSlugs,lockId,lockedGroups,groupId){const[pathname,setPathname]=useState(()=>typeof window!==\"undefined\"?window.location.pathname:\"\");useEffect(()=>{if(typeof window===\"undefined\")return;const onNav=()=>{const next=window.location.pathname;setPathname(prev=>prev===next?prev:next);};window.addEventListener(\"popstate\",onNav);const origPush=window.history.pushState;const origReplace=window.history.replaceState;window.history.pushState=function(data,unused,url){const r=origPush.call(this,data,unused,url);onNav();return r;};window.history.replaceState=function(data,unused,url){const r=origReplace.call(this,data,unused,url);onNav();return r;};return()=>{window.removeEventListener(\"popstate\",onNav);window.history.pushState=origPush;window.history.replaceState=origReplace;};},[]);return useMemo(()=>{if(!lockedSlugs||typeof lockedSlugs!==\"string\"){// Non-CMS (standalone / same-page vault): the gate gets a scalar groupId.\nreturn{cmsMode:false,effectiveLockId:lockId||\"\",slugMatch:true,effectiveGroupId:(groupId||\"\").trim()};}let map={};try{map=JSON.parse(lockedSlugs);}catch{map={};}// slug → groupId map, injected alongside lockedSlugs when CMS items belong\n// to a protected group. Resolving the per-slug groupId is what lets a CMS\n// member use the shared GROUP session instead of a per-lock token (R3).\nlet groupMap={};if(lockedGroups&&typeof lockedGroups===\"string\"){try{groupMap=JSON.parse(lockedGroups);}catch{groupMap={};}}const parts=pathname.split(\"/\").filter(Boolean);const slug=parts[parts.length-1]||\"\";const resolved=map[slug];return{cmsMode:true,effectiveLockId:resolved||\"\",slugMatch:!!resolved,effectiveGroupId:(groupMap[slug]||\"\").trim()};},[lockedSlugs,lockId,lockedGroups,groupId,pathname]);}/**\n * Runtime PIN-length resolution.\n *\n * Sources (in precedence order):\n *   1. Authoritative value from `GET /api/v5/lock/{id}/meta`. Refreshes\n *      on every visitor load, so PIN length changes propagate without\n *      requiring the site owner to republish their Framer site.\n *   2. The static `pinLength` control prop captured at lock-create\n *      time. Authoritative for already-published locks running against\n *      an older backend, OR if the fetch fails.\n *   3. 8 — final fallback so the form is always renderable.\n *\n * Canvas + no-lockId paths skip the fetch entirely and unlock the\n * render gate immediately (the static prop is what the designer wants\n * to see in canvas, and a missing lockId is a config error unrelated\n * to fetch latency).\n *\n * Clamps the fetched value to [4, 8] — anything outside that range is\n * treated as a backend bug and falls back to the static prop.\n */function usePinLength(args){const{resilientFetch,effectiveLockId,isCanvas,staticPinLength}=args;const[fetchedPinLen,setFetchedPinLen]=useState(null);const[pinLenReady,setPinLenReady]=useState(false);const pinLen=fetchedPinLen??parseInt(String(staticPinLength||8),10);useEffect(()=>{if(isCanvas||!effectiveLockId){setPinLenReady(true);return;}let cancelled=false;(async()=>{try{const res=await resilientFetch(\"/api/v5/lock/\"+encodeURIComponent(effectiveLockId)+\"/meta\",{method:\"GET\"});if(!res.ok)return;const meta=await res.json();const v=typeof meta?.pin_length===\"number\"?meta.pin_length:null;if(cancelled)return;if(v!==null&&v>=4&&v<=8)setFetchedPinLen(v);}catch{/* network or parse error — keep static fallback */}finally{// resilientFetch has its own 6s abort + fallback URL chain,\n// so this can't hang indefinitely.\nif(!cancelled)setPinLenReady(true);}})();return()=>{cancelled=true;};},[isCanvas,effectiveLockId,resilientFetch]);return{pinLen,pinLenReady};}// ── inlined from src/shared/runtime/fire-warmup.ts ──\n/**\n * Per-page-load dedup set for warmup fires.\n *\n * Stashed on `window.__pageLockWarmed` so multiple lock-gate components\n * on the same page coordinate. Without this, every focus on any\n * credential field would fan out to the warmup endpoint.\n */const __warmedLockIds=(()=>{if(typeof window===\"undefined\")return new Set;const w=window;return w.__pageLockWarmed=w.__pageLockWarmed||new Set;})();/**\n * Fire the server-side warmup once when the visitor focuses any\n * credential input.\n *\n * The `/api/v5/warmup/<lockId>` endpoint reads the protected snapshot\n * into a 30-second in-memory cache so the validate → content\n * roundtrip on submit can skip the Supabase read. Best-effort: any\n * failure (network, 5xx, parse) is silently swallowed since this is\n * a latency hint, not a correctness requirement.\n *\n * Dedup'd via the module-level `__warmedLockIds` Set — repeat calls\n * for the same lockId on the same page-load are no-ops. Idempotency\n * on the server side is assumed but not required.\n *\n * `keepalive: true` ensures the request survives navigation; the\n * visitor might focus the input and immediately submit (which can\n * trigger a navigation if their submit handler does so).\n */function useFireWarmup(apiUrl,effectiveLockId){return useCallback(()=>{if(!apiUrl||!effectiveLockId)return;if(__warmedLockIds.has(effectiveLockId))return;__warmedLockIds.add(effectiveLockId);try{fetch(apiUrl+\"/api/v5/warmup/\"+encodeURIComponent(effectiveLockId),{method:\"POST\",keepalive:true,headers:{\"Content-Type\":\"application/json\"},body:\"{}\"}).catch(()=>{});}catch{/* noop — warmup is best-effort */}},[apiUrl,effectiveLockId]);}/**\n * Fetch the protected page snapshot for a given lockId, wrap it with\n * the paint-stability probe + iframe nav-interceptor, and stash a\n * blob URL the template's `<iframe>` element will load.\n *\n * Failure handling:\n *   - 401 / 403: clear the bearer token from localStorage and re-show\n *     the gate so the visitor can re-auth.\n *   - Network error / JSON parse error: re-show the gate (the catch\n *     branch). `cmsContentLoading` is cleared so the spinner state\n *     doesn't leak.\n *\n * On success, `cmsContentLoading` stays true until the in-iframe paint\n * probe pings back — the template's message listener clears it.\n */function useFetchCmsContent(args){const{resilientFetch,setCmsContentLoading,setCmsBlobUrl,setVisible}=args;return useCallback(async(token,lockIdToFetch)=>{setCmsContentLoading(true);try{const domainParam=encodeURIComponent(window.location.hostname);const res=await resilientFetch(\"/api/v5/content/\"+lockIdToFetch+\"?domain=\"+domainParam,{headers:{Authorization:\"Bearer \"+token}});if(!res.ok){localStorage.removeItem(LOCK_TOKEN_PREFIX+lockIdToFetch);setCmsContentLoading(false);setVisible(true);return;}const data=await res.json();const html=data.html||\"\";const paintProbe=buildPaintProbe(lockIdToFetch);// Inject the scroll fixes INTO the snapshot (head/body) rather than\n// prepending before `<!doctype html>` — a prepend forces the iframe\n// into quirks mode, which itself kills native scroll. injectScrollFixes\n// mirrors the proven regular-page renderer: scrollUnjacker at <head>\n// start (pre-Lenis), scrollStyle at <head> end, scrollUnlock + probe +\n// nav-interceptor at <body> end, with the doctype left first.\nconst injected=injectScrollFixes(html,paintProbe+navInterceptor);const blob=new Blob([injected],{type:\"text/html\"});setCmsBlobUrl(URL.createObjectURL(blob));// cmsContentLoading stays true until the in-iframe probe pings.\n}catch{setCmsContentLoading(false);setVisible(true);}},[resilientFetch]);}/**\n * Subscribe to postMessages sent from inside the protected-content\n * iframe.\n *\n * Two message types are handled:\n *\n *   - `pagelock-painted` — sent by the in-iframe paint probe once the\n *     protected page has rendered to stable height. Captures the body\n *     background colour so the parent's `cmsBackdrop` matches the\n *     page underneath (no white seam during the form → iframe swap),\n *     and re-emits `proofly:content-ready:<lockId>` so `completeAuth`\n *     can flip the gate at exactly the right frame.\n *\n *   - `proofly-nav` — fallback from the iframe nav-interceptor when\n *     `window.top.location.href = u.href` is blocked (e.g. a future\n *     sandbox change drops `allow-top-navigation`). The parent\n *     navigates instead.\n *\n * Canvas + no-lockId paths skip the subscription entirely.\n */function useIframeMessages(args){const{isCanvas,effectiveLockId,setCmsBgColor}=args;useEffect(()=>{if(isCanvas)return;if(!effectiveLockId)return;const onMessage=event=>{const data=event.data;if(!data||typeof data!==\"object\")return;if(data.type===\"proofly-nav\"&&typeof data.url===\"string\"){try{window.location.href=data.url;}catch{}return;}if(data.type!==\"pagelock-painted\")return;if(data.lockId!==effectiveLockId)return;if(typeof data.bgColor===\"string\"&&data.bgColor.length>0){setCmsBgColor(data.bgColor);}window.dispatchEvent(new CustomEvent(CONTENT_READY_PREFIX+effectiveLockId));};window.addEventListener(\"message\",onMessage);return()=>window.removeEventListener(\"message\",onMessage);},[isCanvas,effectiveLockId]);}/**\n * Mount-side wiring for a lock gate template.\n *\n * Bundles the four `useEffect` responsibilities every template needs\n * (AUTHORING.md §§1.3–1.5, 1.8):\n *\n *   - Canvas detection — records whether the gate is rendering inside\n *     Framer's editor (true) or on a live customer site (false).\n *   - Viewport meta patch — on live, force\n *     `width=device-width, initial-scale=1` so 100vw resolves to the\n *     real device width on mobile; restore the original on unmount.\n *   - Pre-paint token check — read\n *     `localStorage[proofly_v5_token_<lockId>]` before first paint; if\n *     present, hide the gate immediately (no flash over already-authed\n *     content) and in CMS mode kick off the protected-content fetch.\n *   - Auth bus subscription — listen for `proofly:auth:<lockId>`; on\n *     fire, hide the gate and (in CMS mode) fetch the content.\n *\n * Fail-CLOSED branch: when `cmsMode && !slugMatch` (template page hit\n * with a slug that isn't in the locked map), the gate is hidden\n * outright so the page's teaser content shows through.\n */function useGateMount(args){const{effectiveLockId,groupId,cmsMode,slugMatch,fetchCmsContent,setMounted,setIsCanvas,setVisible}=args;const gid=(groupId||\"\").trim();// Grouped pages key the visitor session on the group; fall back to a\n// leftover per-lock token so a page locked before it joined a group still\n// recognises an existing session.\nconst authEventName=gid?GROUP_AUTH_EVENT_PREFIX+gid:AUTH_EVENT_PREFIX+effectiveLockId;useEffect(()=>{const h=window.location.hostname;const canvas=CANVAS_HOSTS.indexOf(h)!==-1;let meta=null;let origContent=null;if(!canvas){meta=document.querySelector('meta[name=\"viewport\"]');origContent=meta?meta.getAttribute(\"content\"):null;if(meta){meta.setAttribute(\"content\",VIEWPORT_META_CONTENT);}else{meta=document.createElement(\"meta\");meta.name=\"viewport\";meta.content=VIEWPORT_META_CONTENT;document.head.appendChild(meta);}}setMounted(true);setIsCanvas(canvas);if(cmsMode&&!slugMatch){setVisible(false);return()=>{if(meta&&origContent!==null)meta.setAttribute(\"content\",origContent);else if(meta&&origContent===null)meta.remove();};}let initiallyVisible=true;if(!canvas&&effectiveLockId){const stored=(gid?localStorage.getItem(GROUP_TOKEN_PREFIX+gid):null)||localStorage.getItem(LOCK_TOKEN_PREFIX+effectiveLockId);if(stored){initiallyVisible=false;if(cmsMode)setTimeout(()=>fetchCmsContent(stored,effectiveLockId),0);}}setVisible(initiallyVisible);let handler=null;if(effectiveLockId&&!canvas){handler=e=>{const ce=e;if(ce.detail&&ce.detail.token){setVisible(false);if(cmsMode)fetchCmsContent(ce.detail.token,effectiveLockId);}};window.addEventListener(authEventName,handler);}return()=>{if(handler)window.removeEventListener(authEventName,handler);if(meta&&origContent!==null)meta.setAttribute(\"content\",origContent);else if(meta&&origContent===null)meta.remove();};// eslint-disable-next-line react-hooks/exhaustive-deps\n},[effectiveLockId,groupId,cmsMode,slugMatch,fetchCmsContent]);}// ── inlined from src/shared/runtime/host-scroll-lock.ts ──\n/**\n * Lock the HOST document's scroll while the protected-content overlay is up.\n *\n * The CMS gate renders its backdrop + protected-content iframe as a\n * `position: fixed` overlay portaled into `document.body`, but the host Framer\n * page UNDERNEATH stays scrollable. That host page is Lenis-smooth-scrolled and\n * is usually a different height than the protected snapshot, so after unlocking\n * the visitor sees TWO scrollbars. Worse: `cmsIframe` only mounts once the\n * content blob resolves, so during the fetch gap (backdrop only) the wheel\n * drives the host page behind the backdrop — scroll looks dead, then \"starts\n * working\" the moment the iframe takes over.\n *\n * Fix: while `active`, force `overflow: hidden` + `height: 100%` on\n * `<html>`/`<body>` so the host has no scroll range and no scrollbar — the\n * iframe becomes the only scroller and catches the wheel immediately. The\n * inline `!important` beats Lenis's `html.lenis { height: auto }` stylesheet\n * rule; verified on the live /work/dellobank lock that Lenis does NOT\n * re-override an inline `!important` lock, so no MutationObserver / `lenis.stop()`\n * is needed for the overflow lock. The exact prior inline values are captured\n * and restored on teardown, so logout / SPA-navigation to an unlocked slug\n * returns the host to normal scrolling.\n *\n * SECOND, separate Lenis defect (pointer-events latch): when the visitor\n * navigates (SPA) INTO a locked CMS item while the host's Lenis smooth-scroll\n * momentum is still running, Framer calls `lenis.stop()` mid-scroll, so Lenis\n * never fires its \"scroll end\" cleanup and the `lenis-scrolling` class stays\n * stuck on `<html>`. Lenis ships a stylesheet rule\n * `.lenis.lenis-scrolling iframe { pointer-events: none }`, which then pins OUR\n * protected-content iframe non-interactive — the wheel can't reach it, and\n * because we lock the host above, the page looks frozen. A hard reload re-inits\n * Lenis cleanly, so it only reproduces on soft-nav. Defense (both verified live\n * on /work/dellobank): inject a style that re-enables iframe pointer events\n * while scrolling — safe because the host can't scroll while we hold the lock —\n * and strip the stale class once. The style is the durable fix (it holds even\n * if Lenis re-adds the class mid-momentum); the class strip is just tidying.\n *\n * Callers gate `active` to the authed CMS-overlay state and skip the Framer\n * canvas, e.g. `useHostScrollLock(cmsMode && slugMatch && !visible && !isCanvas)`.\n */function useHostScrollLock(active){useEffect(()=>{if(!active)return;const de=document.documentElement;const body=document.body;const prev={deOverflow:de.style.overflow,deHeight:de.style.height,bodyOverflow:body.style.overflow,bodyHeight:body.style.height};de.style.setProperty(\"overflow\",\"hidden\",\"important\");de.style.setProperty(\"height\",\"100%\",\"important\");body.style.setProperty(\"overflow\",\"hidden\",\"important\");body.style.setProperty(\"height\",\"100%\",\"important\");// Lenis pointer-events latch defense (see doc comment above).\nconst peStyle=document.createElement(\"style\");peStyle.id=\"pagelock-lenis-pe-fix\";peStyle.textContent=\".lenis.lenis-scrolling iframe{pointer-events:auto !important}\";document.head.appendChild(peStyle);de.classList.remove(\"lenis-scrolling\");return()=>{de.style.overflow=prev.deOverflow;de.style.height=prev.deHeight;body.style.overflow=prev.bodyOverflow;body.style.height=prev.bodyHeight;peStyle.remove();};},[active]);}/**\n * Tear down cached per-lock state when the active lockId changes.\n *\n * Fires when `effectiveLockId` changes (SPA navigation between locked\n * CMS items, or leaving a locked slug entirely). Revoking the old blob\n * URL prevents the prior locked item's protected iframe from staying\n * alive across a route change.\n *\n * On initial mount the effect runs once but every setter is a no-op\n * because state is already at its default — this hook is a pure\n * SPA-transition handler. Templates that need to reset additional\n * state (e.g. email/OTP/username for email_otp gates) can add their\n * own effect with `[effectiveLockId]` deps alongside this one.\n */function useLockChangeReset(effectiveLockId,resetters){useEffect(()=>{if(resetters.setCmsBlobUrl){resetters.setCmsBlobUrl(prev=>{if(prev)URL.revokeObjectURL(prev);return null;});}if(resetters.setCmsContentLoading)resetters.setCmsContentLoading(false);if(resetters.setCmsBgColor)resetters.setCmsBgColor(null);if(resetters.setPin)resetters.setPin(\"\");if(resetters.setState)resetters.setState(\"idle\");if(resetters.setServerError)resetters.setServerError(null);// eslint-disable-next-line react-hooks/exhaustive-deps\n},[effectiveLockId]);}/**\n * Auto-focus the hidden PIN input on mount so the mobile soft-keyboard\n * opens without an extra tap.\n *\n * iOS only honours focus calls inside a user gesture on first paint,\n * so templates should ALSO wire a tap handler on the slot grid as a\n * reliable fallback — this effect handles desktop + Android where\n * programmatic focus is allowed.\n *\n * Skipped when:\n *   - Canvas mode (no need to focus inside the Framer editor)\n *   - Gate is hidden (`!visible`)\n *   - A modal is open (modal should own focus)\n *   - Auth method isn't PIN (other methods use visible focused inputs)\n *\n * 50ms delay gives React time to paint the input before focusing.\n */function useHiddenInputFocus(args){const{hiddenInputRef,isCanvas,visible,openModal,method}=args;useEffect(()=>{if(isCanvas)return;if(!visible)return;if(openModal)return;if(method!==\"pin\")return;const t=setTimeout(()=>hiddenInputRef.current?.focus(),50);return()=>clearTimeout(t);},[isCanvas,visible,openModal,method]);}/**\n * Final step every auth flow runs after a successful credential\n * exchange. Stores the bearer token, dispatches the cross-component\n * `proofly:auth:<lockId>` event the rest of the page is listening\n * for, and (in CMS mode) kicks off the protected-content fetch.\n *\n * Holds the \"success\" state until the protected iframe pings its\n * `proofly:content-ready:<lockId>` event so the form unmount swaps\n * instantly into the rendered content — no fade, no flash. Falls back\n * to a 3500ms safety timeout if the probe never pings.\n */function useCompleteAuth(args){const{effectiveLockId,groupId,cmsMode,fetchCmsContent,setState,setVisible}=args;return useCallback(token=>{const gid=(groupId||\"\").trim();// Token storage + auth-bus event switch to the group keys when grouped;\n// content (fetchCmsContent / content-ready ping) stays keyed by the\n// page's own lockId since each page's content is distinct.\nif(gid){localStorage.setItem(GROUP_TOKEN_PREFIX+gid,token);window.dispatchEvent(new CustomEvent(GROUP_AUTH_EVENT_PREFIX+gid,{detail:{token}}));}else{localStorage.setItem(LOCK_TOKEN_PREFIX+effectiveLockId,token);window.dispatchEvent(new CustomEvent(AUTH_EVENT_PREFIX+effectiveLockId,{detail:{token}}));}if(cmsMode){fetchCmsContent(token,effectiveLockId);}const eventName=CONTENT_READY_PREFIX+effectiveLockId;let settled=false;const finish=()=>{if(settled)return;settled=true;window.removeEventListener(eventName,finish);clearTimeout(timer);setState(\"success\");setVisible(false);};const timer=window.setTimeout(finish,3500);window.addEventListener(eventName,finish,{once:true});},[effectiveLockId,groupId,cmsMode,fetchCmsContent]);}/**\n * Consolidates the auth-POST response handling shared by PIN and\n * `user_accounts` flows. Both POST to `/api/v5/auth/<lockId>` with\n * different body shapes; only the request body differs at the call\n * site.\n *\n * On 200 + `data.token` → completeAuth dispatches.\n * On non-OK with a `data.message` string → surfaced verbatim via\n * `serverError` (replaces the generic `errorMessage` prop so visitors\n * see domain-not-active / inactive-lock messages exactly as the\n * backend wrote them).\n */function useSubmitCredentials(args){const{effectiveLockId,groupId,resilientFetch,completeAuth,setState,setServerError}=args;return useCallback(async body=>{if(!effectiveLockId)return;setState(\"loading\");setServerError(null);const gid=(groupId||\"\").trim();const authPath=gid?\"/api/v5/group-auth/\"+gid:\"/api/v5/auth/\"+effectiveLockId;try{const res=await resilientFetch(authPath,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({...body,domain:window.location.hostname})});const data=await res.json().catch(()=>({}));if(res.ok&&typeof data.token===\"string\"){completeAuth(data.token);}else{const msg=typeof data?.message===\"string\"&&data.message.trim()?data.message:null;setServerError(msg);setState(\"error\");}}catch{setServerError(null);setState(\"error\");}},[effectiveLockId,groupId,resilientFetch,completeAuth]);}/**\n * Email-OTP two-stage handlers.\n *\n *   - `handleRequestOtp` (stage 1) — POST email; on success transitions\n *     the form to the code-entry view.\n *   - `handleVerifyOtp` (stage 2) — POST the code; on 200 + token,\n *     dispatches `completeAuth` (which stores token + fades the gate).\n *\n * Both stages hit the same endpoint with a `stage` discriminator. The\n * backend returns user-facing error messages verbatim via `data.message`\n * so domain-not-active / inactive-lock / rate-limit cases surface\n * exactly as the backend wrote them.\n */function useOtpFlow(args){const{effectiveLockId,groupId,emailAddr,resilientFetch,completeAuth,setState,setServerError,setOtpStage}=args;const gid=(groupId||\"\").trim();const otpPath=gid?\"/api/v5/group-auth/\"+gid+\"/verify-otp\":\"/api/v5/auth/\"+effectiveLockId+\"/verify-otp\";const handleRequestOtp=useCallback(async()=>{if(!emailAddr.trim()||!effectiveLockId)return;setState(\"loading\");setServerError(null);try{const res=await resilientFetch(otpPath,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({email:emailAddr.trim(),domain:window.location.hostname,stage:\"request\"})});const data=await res.json().catch(()=>({}));if(res.ok){setOtpStage(\"code\");setState(\"idle\");}else{const msg=typeof data?.message===\"string\"&&data.message.trim()?data.message:null;setServerError(msg);setState(\"error\");}}catch{setServerError(null);setState(\"error\");}},[emailAddr,effectiveLockId,otpPath,resilientFetch]);const handleVerifyOtp=useCallback(async code=>{if(!code.trim()||!effectiveLockId)return;setState(\"loading\");setServerError(null);try{const res=await resilientFetch(otpPath,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({email:emailAddr.trim(),code,domain:window.location.hostname,stage:\"verify\"})});const data=await res.json().catch(()=>({}));if(res.ok&&typeof data.token===\"string\"){completeAuth(data.token);}else{const msg=typeof data?.message===\"string\"&&data.message.trim()?data.message:null;setServerError(msg);setState(\"error\");}}catch{setServerError(null);setState(\"error\");}},[emailAddr,effectiveLockId,otpPath,resilientFetch,completeAuth]);return{handleRequestOtp,handleVerifyOtp};}/**\n * PIN keypad input primitives. Templates render their own keypad UI\n * (or hidden input) and wire its keydown / click handlers to these\n * callbacks.\n *\n * All three handlers clear `state` back to `\"idle\"` and clear\n * `serverError`, so an in-flight error message disappears as soon as\n * the visitor starts re-entering a PIN.\n *\n * `press` clamps at `pinLen` so excess keystrokes are dropped silently\n * (avoids the \"I pressed 5 digits but only 4 boxes\" surprise).\n */function usePinKeypad(args){const{pinLen,setPin,setState,setServerError}=args;const{autoSubmit,method,isCanvas,onAutoSubmit}=args;const press=useCallback(ch=>{if(!/^[0-9]$/.test(ch))return;setState(\"idle\");setServerError(null);setPin(prev=>{if(prev.length>=pinLen)return prev;const next=prev+ch;if(autoSubmit!==false&&method===\"pin\"&&!isCanvas&&onAutoSubmit&&next.length===pinLen){setTimeout(()=>onAutoSubmit(next),80);}return next;});},[pinLen,autoSubmit,method,isCanvas,onAutoSubmit]);const backspace=useCallback(()=>{setState(\"idle\");setServerError(null);setPin(prev=>prev.slice(0,-1));},[]);const clearAll=useCallback(()=>{setState(\"idle\");setServerError(null);setPin(\"\");},[]);return{press,backspace,clearAll};}/**\n * Global keydown listener implementing §1.9 of AUTHORING.md.\n *\n *   - `/^[0-9]$/` → `press(key)` (prevents default so the digit doesn't\n *     bubble into focused inputs elsewhere on the page).\n *   - `Backspace` → `backspace()`.\n *   - `Escape` → closes an open modal if one is open, else clears all\n *     entered digits.\n *\n * Bypasses the handler when the event target is inside the template's\n * modal scope, an `<input>`, or a `<textarea>` — those have their own\n * keyboard semantics.\n *\n * Active only on live (`!isCanvas`) and only in PIN mode — the other\n * auth methods rely on visible focused inputs.\n */function useGateKeyboard(args){const{isCanvas,method,openModal,modalSelector,press,backspace,clearAll,setOpenModal}=args;useEffect(()=>{if(isCanvas)return;if(method!==\"pin\")return;const onKey=e=>{if(e.key===\"Escape\"&&openModal){setOpenModal(null);return;}const target=e.target;if(target){if(target.closest&&target.closest(modalSelector))return;if(target.tagName===\"INPUT\"||target.tagName===\"TEXTAREA\")return;}if(/^[0-9]$/.test(e.key)){press(e.key);e.preventDefault();}else if(e.key===\"Backspace\"){backspace();e.preventDefault();}else if(e.key===\"Escape\"){clearAll();}};window.addEventListener(\"keydown\",onKey);return()=>window.removeEventListener(\"keydown\",onKey);},[isCanvas,method,press,backspace,clearAll,openModal,modalSelector]);}// ── end inlined shared-runtime helpers ────────────────────────────────\n// Shared logic — inlined at upload-build time by scripts/build-templates.ts.\n// At runtime in the published bundle these imports are replaced with the\n// module bodies so the uploaded TSX remains a single self-contained file.\n/**\n * @framerDisableUnlink\n * @framerIntrinsicWidth 500\n * @framerIntrinsicHeight 700\n */export default function Paper(props){const{// Injected by plugin (not user-facing)\nlockId,groupId:rawGroupId,apiUrl,fallbackUrl,lockedSlugs,// Per-slug groupId map for CMS members of a protected group (slug → groupId).\nlockedGroups,// Text\ntitle,subtitle,errorMessage,buttonText,forgotLabel,requestLabel,markText,// Toggles\nshowBack,showUnlock,showForgot,showRequest,showBackground,showMark,showLogo,// Background image\nbackgroundImage,logoImage,// PIN config (injected from the lock flow)\npinLength,// Auth method (injected from the lock flow). Defaults to \"pin\" so\n// legacy locks created before this prop existed keep working.\nauthMethod,// Optional copy overrides for non-PIN methods. All have sensible\n// defaults declared in addPropertyControls.\nusernameLabel,usernamePlaceholder,passwordLabel,passwordPlaceholder,emailLabel,emailPlaceholder,emailButtonText,otpTitle,otpSubtitle,otpResendLabel,// Colors\nbackdropBase,cardBackground,textColor,mutedTextColor,tertiaryTextColor,lineColor,lineColorStrong,accentColor,accentSoftColor,errorColor,errorSoftColor,buttonBackground,buttonTextColor,// Dimensions\ncardWidth,cardPadding,cardBorderRadius,// Modal copy\nforgotModalTitle,forgotModalBody,forgotModalSuccess,requestModalTitle,requestModalBody,requestModalSuccess}=props;// pinLen + pinLenReady supplied by src/shared/runtime/pin-length.ts —\n// resolves PIN length from /api/v5/lock/{id}/meta, falling back to the\n// static pinLength prop. The hook depends on `resilientFetch`, which is\n// declared a few lines down; we read it from the same useResilientFetch\n// hook here, so the declaration happens out of source order but at the\n// same point in the render-phase execution.\n/** Normalize auth method. Anything we don't recognize falls back to PIN\n     *  so older locks (or controls that weren't migrated) keep rendering. */const method=authMethod===\"user_accounts\"||authMethod===\"email_otp\"?authMethod:\"pin\";// ── Slug awareness (see AGENT-PORT-GUIDE.md §Slug awareness) ─────────\n// Hook body provided by `src/shared/runtime/slug-awareness.ts` — handles\n// pathname state, SPA-navigation listener, and slug→lockId resolution.\n// The build script inlines the hook body at publish time.\n// `effectiveGroupId` is aliased to `groupId` so the gate-mount + auth hooks\n// below (which take `groupId`) get the per-slug GROUP id for CMS members\n// instead of the raw (empty-for-CMS) prop. Non-CMS pages pass the scalar through.\nconst{cmsMode,effectiveLockId,slugMatch,effectiveGroupId:groupId}=useSlugAwareness(lockedSlugs,lockId,lockedGroups,rawGroupId);const[mounted,setMounted]=useState(false);const[isCanvas,setIsCanvas]=useState(false);const[visible,setVisible]=useState(true);const[pin,setPin]=useState(\"\");const[username,setUsername]=useState(\"\");const[password,setPassword]=useState(\"\");const[emailAddr,setEmailAddr]=useState(\"\");const[otpCode,setOtpCode]=useState(\"\");const[otpStage,setOtpStage]=useState(\"email\");const[state,setState]=useState(\"idle\");/** Server-provided reason for the most recent failure. When set, replaces\n     *  the generic `errorMessage` prop in the error banner so users see\n     *  domain-not-active / inactive-lock messages verbatim. */const[serverError,setServerError]=useState(null);const[openModal,setOpenModal]=useState(null);const[modalSuccess,setModalSuccess]=useState(false);const[modalSubmitting,setModalSubmitting]=useState(false);const[cmsBlobUrl,setCmsBlobUrl]=useState(null);const[cmsContentLoading,setCmsContentLoading]=useState(false);/** Page-side bg color from the in-iframe paint probe — used to tint\n     *  the cmsBackdrop so the form unmount doesn't expose a color seam. */const[cmsBgColor,setCmsBgColor]=useState(null);const pinRef=useRef(pin);pinRef.current=pin;const hiddenInputRef=useRef(null);// ── §1.7 resilientFetch ─────────────────────────────────────────────\n// Hook body provided by `src/shared/runtime/resilient-fetch.ts` — see\n// the import at the top of this file. The build script inlines the\n// hook body at publish time so the uploaded TSX stays self-contained.\nconst resilientFetch=useResilientFetch(apiUrl,fallbackUrl);// ── Runtime pin-length resolution ───────────────────────────────────\n// Hook body provided by src/shared/runtime/pin-length.ts.\nconst{pinLen}=usePinLength({resilientFetch,effectiveLockId,isCanvas,staticPinLength:pinLength});// fetchCmsContent body provided by src/shared/runtime/fetch-cms-content.ts.\nconst fetchCmsContent=useFetchCmsContent({resilientFetch,setCmsContentLoading,setCmsBlobUrl,setVisible});// fireWarmup body provided by src/shared/runtime/fire-warmup.ts.\nconst fireWarmup=useFireWarmup(apiUrl,effectiveLockId);// Per-lockId state cleanup on SPA transitions — body provided by\n// src/shared/runtime/lock-change-reset.ts.\nuseLockChangeReset(effectiveLockId,{setCmsBlobUrl,setCmsContentLoading,setCmsBgColor,setPin,setState,setServerError});// ── §§1.3/1.4/1.5/1.8 canvas + token + auth bus + viewport meta ─────\n// Hook body provided by src/shared/runtime/gate-mount.ts.\nuseGateMount({effectiveLockId,groupId,cmsMode,slugMatch,fetchCmsContent,setMounted,setIsCanvas,setVisible});// Lock the host page's scroll while the authed CMS overlay (backdrop +\n// protected iframe) is up, so the visitor sees a single scrollbar and the\n// wheel reaches the iframe immediately instead of the host page behind it.\n// Body provided by src/shared/runtime/host-scroll-lock.ts.\nuseHostScrollLock(cmsMode&&slugMatch&&!visible&&!isCanvas);// Paint-stability ping + nav-interceptor fallback listener provided\n// by src/shared/runtime/iframe-messages.ts.\nuseIframeMessages({isCanvas,effectiveLockId,setCmsBgColor});// completeAuth + submitCredentials provided by src/shared/runtime/auth-flow.ts.\nconst completeAuth=useCompleteAuth({effectiveLockId,groupId,cmsMode,fetchCmsContent,setState,setVisible});const submitCredentials=useSubmitCredentials({effectiveLockId,groupId,resilientFetch,completeAuth,setState,setServerError});/** PIN-specific entry — preserves the original signature so the keypad +\n     *  hidden-input handlers don't need to know about the method dispatch. */const handleSubmit=useCallback(async submittedPin=>{if(!submittedPin.trim())return;await submitCredentials({pin:submittedPin});},[submitCredentials]);const handleSubmitUserAccount=useCallback(async()=>{if(!username.trim()||!password)return;await submitCredentials({username:username.trim(),password});},[username,password,submitCredentials]);// OTP request + verify handlers provided by src/shared/runtime/otp-flow.ts.\nconst{handleRequestOtp,handleVerifyOtp}=useOtpFlow({effectiveLockId,groupId,emailAddr,resilientFetch,completeAuth,setState,setServerError,setOtpStage});// PIN keypad + global keyboard listener provided by\n// src/shared/runtime/pin-keypad.ts. `modalSelector` is template-\n// specific because each template tags its modal scope with a\n// different data-attribute (Paper uses [data-paper-modal]).\nconst{press,backspace,clearAll}=usePinKeypad({pinLen,setPin,setState,setServerError});useGateKeyboard({isCanvas,method,openModal,modalSelector:\"[data-paper-modal]\",press,backspace,clearAll,setOpenModal});// Auto-focus hidden PIN input — body provided by\n// src/shared/runtime/hidden-input-focus.ts.\nuseHiddenInputFocus({hiddenInputRef,isCanvas,visible,openModal,method});// ── Derived style pieces ────────────────────────────────────────────\nconst fontsImport=/*#__PURE__*/_jsx(\"style\",{children:`\n            @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');\n            @keyframes paperCaret { 50% { opacity: 0; } }\n            @keyframes paperSpin { to { transform: rotate(360deg); } }\n        `});const bgImageUrl=typeof backgroundImage===\"string\"?backgroundImage:backgroundImage?.src||\"\";const wrapperStyle={position:\"relative\",width:\"100%\",height:\"100%\",minHeight:\"100vh\",display:\"grid\",placeItems:\"center\",padding:\"48px 24px\",boxSizing:\"border-box\",background:backdropBase,color:textColor,isolation:\"isolate\",overflow:\"hidden\",fontFamily:\"'Inter', 'Inter Tight', system-ui, -apple-system, sans-serif\",letterSpacing:\"-0.005em\",WebkitFontSmoothing:\"antialiased\"};const backdropJsx=/*#__PURE__*/_jsxs(_Fragment,{children:[showBackground&&bgImageUrl&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,zIndex:-2,backgroundImage:`url(${bgImageUrl})`,backgroundSize:\"cover\",backgroundPosition:\"center\",opacity:.14,filter:\"saturate(0.7)\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,zIndex:-1,pointerEvents:\"none\",background:\"radial-gradient(60% 40% at 50% 0%, rgba(255,255,255,0.9) 0%, transparent 70%),\"+`radial-gradient(40% 30% at 80% 90%, ${accentSoftColor} 0%, transparent 70%)`}})]});const backButton=showBack?/*#__PURE__*/_jsxs(\"a\",{href:\"#\",onClick:e=>{e.preventDefault();if(!isCanvas)window.history.back();},\"aria-label\":\"Go back\",style:{position:\"absolute\",top:28,left:28,display:\"inline-flex\",alignItems:\"center\",gap:8,color:mutedTextColor,textDecoration:\"none\",fontSize:13,letterSpacing:\"-0.005em\",padding:\"6px 4px\",transition:\"color 0.15s\"},children:[/*#__PURE__*/_jsx(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 16 16\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M10 3 L5 8 L10 13\"})}),/*#__PURE__*/_jsx(\"span\",{children:\"Back\"})]}):null;const cardStyle={width:`min(${cardWidth}px, 100%)`,background:cardBackground,border:`1px solid ${lineColor}`,borderRadius:cardBorderRadius,padding:`${cardPadding}px ${Math.max(cardPadding-4,20)}px ${Math.max(cardPadding-8,16)}px`,boxShadow:\"0 1px 0 rgba(0,0,0,0.02), 0 20px 50px -20px rgba(24,24,27,0.08)\"};const logoUrl=typeof logoImage===\"string\"?logoImage:logoImage?.src||\"\";const useLogo=showLogo&&!!logoUrl;const mark=useLogo?/*#__PURE__*/_jsx(\"img\",{src:logoUrl,alt:\"\",style:{maxHeight:36,width:\"auto\",maxWidth:\"60%\",objectFit:\"contain\",display:\"block\",marginBottom:26}}):showMark?/*#__PURE__*/_jsx(\"div\",{style:{width:34,height:34,borderRadius:10,background:textColor,color:cardBackground,display:\"grid\",placeItems:\"center\",fontWeight:600,fontSize:15,letterSpacing:\"-0.02em\",marginBottom:26},children:markText}):null;// Method-aware copy. The owner-set `title`/`subtitle`/`errorMessage`\n// props default to PIN-flavoured text (\"Enter your PIN\", \"Incorrect\n// PIN…\"). For email_otp and user_accounts we substitute sensible\n// defaults so a lock owner doesn't have to manually rewrite the copy\n// every time they pick a non-PIN method.\n//\n// We only substitute when the owner left the prop at its PIN default\n// (heuristic: the prop value still contains the word \"PIN\"). If they've\n// customised the copy, we respect their override regardless of method.\nconst isOwnerPinTitle=typeof title===\"string\"&&/\\bpin\\b/i.test(title);const isOwnerPinError=typeof errorMessage===\"string\"&&/\\bpin\\b/i.test(errorMessage);const displayedTitle=(()=>{if(method===\"email_otp\"){// Header copy is separate from `otpTitle` (which still renders as\n// the hint above the code grid in the input region below).\nif(otpStage===\"code\")return isOwnerPinTitle?\"Check your email\":title;return isOwnerPinTitle?\"Get a sign-in code\":title;}if(method===\"user_accounts\"){return isOwnerPinTitle?\"Sign in\":title;}return title;})();const displayedSubtitle=(()=>{if(method===\"email_otp\"){if(otpStage===\"code\")return\"We sent a 6-digit code — enter it below.\";return\"Enter your email — we'll send you a code.\";}if(method===\"user_accounts\"){return\"Sign in with your username and password.\";}return subtitle;})();/** Generic error fallback used when the server didn't return a message\n     *  (network throw, CORS, etc.). PIN copy obviously doesn't fit email_otp /\n     *  user_accounts, so swap it out unless the owner customised the prop. */const displayedErrorFallback=(()=>{if(!isOwnerPinError)return errorMessage;if(method===\"email_otp\"){return otpStage===\"email\"?\"We couldn't send a code. Check the email and try again.\":\"Incorrect or expired code. Try again.\";}if(method===\"user_accounts\"){return\"Sign-in failed. Check your username and password.\";}return errorMessage;})();const header=/*#__PURE__*/_jsxs(\"header\",{style:{marginBottom:28},children:[/*#__PURE__*/_jsx(\"h1\",{style:{margin:0,fontSize:22,fontWeight:500,letterSpacing:\"-0.02em\",lineHeight:1.25,color:textColor,marginBottom:6},children:displayedTitle}),displayedSubtitle&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:13.5,lineHeight:1.5,color:mutedTextColor,maxWidth:\"32ch\"},children:displayedSubtitle})]});// ── PIN grid (digit slots) ──────────────────────────────────────────\nconst pinSlots=[];for(let i=0;i<pinLen;i++){const filled=i<pin.length;const active=i===pin.length&&state!==\"error\";const errorFilled=state===\"error\"&&filled;const slotStyle={position:\"relative\",aspectRatio:\"1 / 1.15\",borderRadius:10,display:\"grid\",placeItems:\"center\",fontSize:18,fontWeight:500,color:textColor,background:errorFilled?\"rgba(198,51,43,0.04)\":filled?cardBackground:backdropBase,border:`1px solid ${errorFilled?\"rgba(198,51,43,0.45)\":filled?lineColorStrong:lineColor}`,boxShadow:active?`0 0 0 3px ${accentSoftColor}`:\"none\",transition:\"border-color 0.15s, background 0.15s, box-shadow 0.15s\"};if(active){slotStyle.borderColor=accentColor;slotStyle.background=cardBackground;}pinSlots.push(/*#__PURE__*/_jsxs(\"div\",{style:slotStyle,children:[filled?pin[i]:\"\",active&&!filled&&/*#__PURE__*/_jsx(\"span\",{style:{width:1.5,height:18,background:accentColor,animation:\"paperCaret 1.1s infinite\"}})]},i));}const pinGrid=/*#__PURE__*/_jsxs(\"div\",{role:\"group\",\"aria-label\":\"PIN digits\",onClick:()=>hiddenInputRef.current?.focus(),style:{position:\"relative\",display:\"grid\",gridTemplateColumns:`repeat(${pinLen}, 1fr)`,gap:8,marginBottom:10},children:[pinSlots,/*#__PURE__*/_jsx(\"input\",{ref:hiddenInputRef,type:\"password\",inputMode:\"numeric\",pattern:\"[0-9]*\",autoComplete:\"one-time-code\",maxLength:pinLen,value:pin,onFocus:fireWarmup,onChange:e=>{const digits=e.target.value.replace(/\\D/g,\"\").slice(0,pinLen);setState(\"idle\");setServerError(null);setPin(digits);},onKeyDown:e=>{if(e.key===\"Enter\"){e.preventDefault();handleSubmit(pinRef.current);}},\"aria-label\":\"Enter PIN\",disabled:isCanvas,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",opacity:0,border:\"none\",background:\"transparent\",color:\"transparent\",caretColor:\"transparent\",fontSize:16,padding:0,margin:0,cursor:\"pointer\",outline:\"none\",WebkitAppearance:\"none\",appearance:\"none\"}})]});const counter=/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"right\",fontSize:11,letterSpacing:\"0.04em\",color:mutedTextColor,fontVariantNumeric:\"tabular-nums\",marginBottom:22},children:[pin.length,\" of \",pinLen]});const errorBanner=state===\"error\"?/*#__PURE__*/_jsxs(\"div\",{role:\"alert\",style:{display:\"flex\",alignItems:\"center\",gap:8,padding:\"10px 12px\",marginBottom:18,background:errorSoftColor,border:\"1px solid rgba(198,51,43,0.18)\",borderRadius:10,fontSize:12.5,color:errorColor,letterSpacing:\"-0.003em\"},children:[/*#__PURE__*/_jsxs(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 16 16\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{flexShrink:0},children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"8\",cy:\"8\",r:\"6.5\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M8 5 V9 M8 11 V11.01\"})]}),/*#__PURE__*/_jsx(\"span\",{children:serverError||displayedErrorFallback})]}):null;/** What \"ready to submit\" means depends on the active method. */const submitEnabled=(()=>{if(state===\"loading\")return false;if(method===\"pin\")return pin.length===pinLen;if(method===\"user_accounts\")return username.trim().length>0&&password.length>0;if(method===\"email_otp\"){return otpStage===\"email\"?/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(emailAddr.trim()):otpCode.length===6;}return false;})();const onSubmitClick=()=>{if(method===\"pin\")return handleSubmit(pin);if(method===\"user_accounts\")return handleSubmitUserAccount();if(method===\"email_otp\"){return otpStage===\"email\"?handleRequestOtp():handleVerifyOtp(otpCode);}};const submitLabelDefault=(()=>{if(method===\"email_otp\"&&otpStage===\"email\"){return emailButtonText||\"Send code\";}return buttonText;})();const submitButton=showUnlock?/*#__PURE__*/_jsxs(\"button\",{type:\"button\",onClick:onSubmitClick,disabled:!submitEnabled,style:{width:\"100%\",padding:13,background:buttonBackground,color:buttonTextColor,border:`1px solid ${buttonBackground}`,borderRadius:10,font:\"inherit\",fontSize:14,fontWeight:500,letterSpacing:\"-0.005em\",cursor:submitEnabled?\"pointer\":\"not-allowed\",opacity:submitEnabled?1:.4,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:8,transition:\"background 0.15s, opacity 0.2s\",marginBottom:22},children:[/*#__PURE__*/_jsx(\"span\",{children:state===\"loading\"?\"Verifying…\":submitLabelDefault}),state!==\"loading\"&&/*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 16 16\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M4 8 H12 M8 4 L12 8 L8 12\"})})]}):null;// \"Forgot PIN\" is meaningless for non-PIN auth methods (Email OTP has\n// resend-code; user accounts have password reset elsewhere). Hide it\n// unless we're actually on PIN auth.\nconst showForgotForMethod=showForgot&&method===\"pin\";const bottomNav=showForgotForMethod||showRequest?/*#__PURE__*/_jsxs(\"nav\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:12,paddingTop:18,borderTop:`1px solid ${lineColor}`},children:[showForgotForMethod?/*#__PURE__*/_jsx(\"a\",{href:\"#\",onClick:e=>{e.preventDefault();setModalSuccess(false);setOpenModal(\"forgot\");},style:{color:mutedTextColor,textDecoration:\"none\",fontSize:12.5,transition:\"color 0.15s\"},children:forgotLabel}):/*#__PURE__*/_jsx(\"span\",{}),showRequest?/*#__PURE__*/_jsxs(\"a\",{href:\"#\",onClick:e=>{e.preventDefault();setModalSuccess(false);setOpenModal(\"request\");},style:{color:accentColor,textDecoration:\"none\",fontSize:12.5,fontWeight:500,display:\"inline-flex\",alignItems:\"center\",gap:4},children:[/*#__PURE__*/_jsx(\"span\",{children:requestLabel}),/*#__PURE__*/_jsx(\"svg\",{width:\"11\",height:\"11\",viewBox:\"0 0 16 16\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M4 8 H12 M8 4 L12 8 L8 12\"})})]}):/*#__PURE__*/_jsx(\"span\",{})]}):null;// ── user_accounts input region ──────────────────────────────────────\n/** Shared text-input style — borrowed from the modal so the visual\n     *  language is consistent inside the same template. */const fieldInputStyle={width:\"100%\",background:backdropBase,border:`1px solid ${state===\"error\"?\"rgba(198,51,43,0.45)\":lineColor}`,borderRadius:8,color:textColor,padding:\"11px 13px\",fontFamily:\"inherit\",fontSize:13.5,outline:\"none\",transition:\"border-color 0.15s, background 0.15s\",boxSizing:\"border-box\"};const fieldLabelStyle={display:\"block\",fontSize:11,letterSpacing:\"0.12em\",textTransform:\"uppercase\",color:mutedTextColor,marginBottom:6};const userAccountsRegion=/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:14,marginBottom:22},children:[/*#__PURE__*/_jsxs(\"label\",{children:[/*#__PURE__*/_jsx(\"span\",{style:fieldLabelStyle,children:usernameLabel||\"Username\"}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",autoCapitalize:\"none\",autoCorrect:\"off\",spellCheck:false,autoComplete:\"username\",value:username,placeholder:usernamePlaceholder||\"yourname\",onFocus:fireWarmup,onChange:e=>{setState(\"idle\");setServerError(null);setUsername(e.target.value);},onKeyDown:e=>{if(e.key===\"Enter\"){e.preventDefault();handleSubmitUserAccount();}},disabled:isCanvas,style:fieldInputStyle})]}),/*#__PURE__*/_jsxs(\"label\",{children:[/*#__PURE__*/_jsx(\"span\",{style:fieldLabelStyle,children:passwordLabel||\"Password\"}),/*#__PURE__*/_jsx(\"input\",{type:\"password\",autoComplete:\"current-password\",value:password,placeholder:passwordPlaceholder||\"••••••••\",onChange:e=>{setState(\"idle\");setServerError(null);setPassword(e.target.value);},onKeyDown:e=>{if(e.key===\"Enter\"){e.preventDefault();handleSubmitUserAccount();}},disabled:isCanvas,style:fieldInputStyle})]})]});// ── email_otp input region ──────────────────────────────────────────\n// Stage 1: collect email; stage 2: 6-slot OTP grid (reuses PIN-slot styling).\nconst otpSlots=[];if(method===\"email_otp\"&&otpStage===\"code\"){for(let i=0;i<6;i++){const filled=i<otpCode.length;const active=i===otpCode.length&&state!==\"error\";const errorFilled=state===\"error\"&&filled;otpSlots.push(/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",aspectRatio:\"1 / 1.15\",borderRadius:10,display:\"grid\",placeItems:\"center\",fontSize:18,fontWeight:500,color:textColor,background:errorFilled?\"rgba(198,51,43,0.04)\":filled?cardBackground:backdropBase,border:`1px solid ${errorFilled?\"rgba(198,51,43,0.45)\":active?accentColor:filled?lineColorStrong:lineColor}`,boxShadow:active?`0 0 0 3px ${accentSoftColor}`:\"none\",transition:\"border-color 0.15s, background 0.15s, box-shadow 0.15s\"},children:[filled?otpCode[i]:\"\",active&&!filled&&/*#__PURE__*/_jsx(\"span\",{style:{width:1.5,height:18,background:accentColor,animation:\"paperCaret 1.1s infinite\"}})]},i));}}const emailOtpRegion=method===\"email_otp\"?otpStage===\"email\"?/*#__PURE__*/_jsx(\"div\",{style:{marginBottom:22},children:/*#__PURE__*/_jsxs(\"label\",{children:[/*#__PURE__*/_jsx(\"span\",{style:fieldLabelStyle,children:emailLabel||\"Email\"}),/*#__PURE__*/_jsx(\"input\",{type:\"email\",inputMode:\"email\",autoComplete:\"email\",autoCapitalize:\"none\",autoCorrect:\"off\",spellCheck:false,value:emailAddr,placeholder:emailPlaceholder||\"you@company.com\",onFocus:fireWarmup,onChange:e=>{setState(\"idle\");setServerError(null);setEmailAddr(e.target.value);},onKeyDown:e=>{if(e.key===\"Enter\"){e.preventDefault();handleRequestOtp();}},disabled:isCanvas,style:fieldInputStyle})]})}):/*#__PURE__*/_jsxs(\"div\",{style:{marginBottom:22},children:[/*#__PURE__*/_jsx(\"div\",{style:{marginBottom:14,fontSize:13,color:mutedTextColor,lineHeight:1.5},children:(otpTitle||\"Code sent to {email}\").replace(\"{email}\",emailAddr)}),/*#__PURE__*/_jsxs(\"div\",{role:\"group\",\"aria-label\":\"One-time code\",style:{position:\"relative\",display:\"grid\",gridTemplateColumns:\"repeat(6, 1fr)\",gap:8,marginBottom:10},children:[otpSlots,/*#__PURE__*/_jsx(\"input\",{type:\"text\",inputMode:\"numeric\",pattern:\"[0-9]*\",autoComplete:\"one-time-code\",maxLength:6,value:otpCode,onChange:e=>{const digits=e.target.value.replace(/\\D/g,\"\").slice(0,6);setState(\"idle\");setServerError(null);setOtpCode(digits);if(digits.length===6)handleVerifyOtp(digits);},\"aria-label\":\"Enter code\",disabled:isCanvas,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",opacity:0,border:\"none\",background:\"transparent\",color:\"transparent\",caretColor:\"transparent\",fontSize:16,padding:0,margin:0,cursor:\"pointer\",outline:\"none\",WebkitAppearance:\"none\",appearance:\"none\"}})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",fontSize:11.5,color:mutedTextColor,fontVariantNumeric:\"tabular-nums\"},children:[/*#__PURE__*/_jsx(\"span\",{children:otpSubtitle||\"Enter the 6-digit code we just sent.\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>{setOtpStage(\"email\");setOtpCode(\"\");setState(\"idle\");setServerError(null);},style:{background:\"transparent\",border:\"none\",padding:0,cursor:\"pointer\",color:accentColor,font:\"inherit\",fontSize:11.5},children:otpResendLabel||\"Use different email\"})]})]}):null;const cardContent=/*#__PURE__*/_jsxs(\"section\",{role:\"form\",\"aria-label\":method===\"pin\"?\"Enter your PIN\":method===\"email_otp\"?\"Sign in with email\":\"Sign in with your account\",style:cardStyle,children:[mark,header,method===\"pin\"&&pinGrid,method===\"pin\"&&counter,method===\"user_accounts\"&&userAccountsRegion,method===\"email_otp\"&&emailOtpRegion,errorBanner,submitButton,bottomNav]});// Non-removable Proofly badge — sits below the card, quiet enough to blend\n// with Paper's minimal aesthetic but always present as attribution.\nconst footer=/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"center\",marginTop:20,fontSize:11,letterSpacing:\"0.02em\",color:tertiaryTextColor,fontFamily:\"'Inter', system-ui, sans-serif\"},children:[\"Protected by\",\" \",/*#__PURE__*/_jsx(\"a\",{href:\"https://proofly.ae\",target:\"_blank\",rel:\"noopener noreferrer\",style:{color:mutedTextColor,textDecoration:\"none\",borderBottom:`1px solid ${mutedTextColor}`,paddingBottom:1},children:\"proofly.ae\"})]});// ── Modal ───────────────────────────────────────────────────────────\nconst modalCfg=openModal===\"forgot\"?{title:forgotModalTitle,body:forgotModalBody,success:forgotModalSuccess,eyebrow:\"Recovery\",primary:\"Send recovery link\",endpoint:\"forgot-pin\",fields:[{type:\"email\",name:\"email\",placeholder:\"you@company.com\",label:\"Workspace email\",required:true}]}:openModal===\"request\"?{title:requestModalTitle,body:requestModalBody,success:requestModalSuccess,eyebrow:\"Access\",primary:\"Submit request\",endpoint:\"request-access\",fields:[{type:\"text\",name:\"name\",placeholder:\"Ada Lovelace\",label:\"Full name\",required:true},{type:\"email\",name:\"email\",placeholder:\"you@company.com\",label:\"Work email\",required:true},{type:\"textarea\",name:\"reason\",placeholder:\"Team, project, or workspace you need access to…\",label:\"Reason for access\",required:true}]}:null;const modalJsx=modalCfg?/*#__PURE__*/_jsxs(\"div\",{\"data-paper-modal\":true,style:{position:\"fixed\",inset:0,zIndex:1e4,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:24,fontFamily:\"'Inter', system-ui, sans-serif\"},children:[/*#__PURE__*/_jsx(\"div\",{onClick:()=>setOpenModal(null),style:{position:\"absolute\",inset:0,background:\"rgba(24,24,27,0.32)\",backdropFilter:\"blur(6px)\",WebkitBackdropFilter:\"blur(6px)\"}}),/*#__PURE__*/_jsxs(\"div\",{role:\"dialog\",\"aria-modal\":\"true\",style:{position:\"relative\",width:\"min(440px, 100%)\",background:cardBackground,color:textColor,border:`1px solid ${lineColor}`,borderRadius:16,padding:\"32px 32px 28px\",boxShadow:\"0 24px 60px -20px rgba(24,24,27,0.25), 0 1px 0 rgba(0,0,0,0.02)\"},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setOpenModal(null),\"aria-label\":\"Close\",style:{position:\"absolute\",top:14,right:14,width:30,height:30,borderRadius:\"50%\",border:`1px solid ${lineColor}`,background:\"transparent\",color:mutedTextColor,cursor:\"pointer\",display:\"grid\",placeItems:\"center\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 16 16\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M4 4 L12 12 M12 4 L4 12\"})})}),!modalSuccess?/*#__PURE__*/_jsxs(\"form\",{onSubmit:async e=>{e.preventDefault();if(modalSubmitting)return;const form=e.currentTarget;const data=new FormData(form);const bodyObj={};data.forEach((v,k)=>{bodyObj[k]=String(v);});setModalSubmitting(true);try{await resilientFetch(`/api/v5/auth/${lockId}/${modalCfg.endpoint}`,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(bodyObj)});}catch{}setModalSubmitting(false);setModalSuccess(true);},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:10,letterSpacing:\"0.22em\",textTransform:\"uppercase\",color:tertiaryTextColor,marginBottom:10},children:modalCfg.eyebrow}),/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,fontSize:20,fontWeight:500,letterSpacing:\"-0.015em\",lineHeight:1.25,marginBottom:10,maxWidth:\"92%\"},children:modalCfg.title}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:13.5,lineHeight:1.55,color:mutedTextColor,marginBottom:22},children:modalCfg.body}),modalCfg.fields.map((f,i)=>/*#__PURE__*/_jsxs(\"label\",{style:{display:\"block\",marginBottom:14},children:[/*#__PURE__*/_jsx(\"span\",{style:{display:\"block\",fontSize:11,letterSpacing:\"0.12em\",textTransform:\"uppercase\",color:mutedTextColor,marginBottom:6},children:f.label}),f.type===\"textarea\"?/*#__PURE__*/_jsx(\"textarea\",{name:f.name,required:f.required,placeholder:f.placeholder,style:{width:\"100%\",background:backdropBase,border:`1px solid ${lineColor}`,borderRadius:8,color:textColor,padding:\"10px 12px\",fontFamily:\"inherit\",fontSize:13.5,resize:\"vertical\",minHeight:90}}):/*#__PURE__*/_jsx(\"input\",{type:f.type,name:f.name,required:f.required,placeholder:f.placeholder,style:{width:\"100%\",background:backdropBase,border:`1px solid ${lineColor}`,borderRadius:8,color:textColor,padding:\"10px 12px\",fontFamily:\"inherit\",fontSize:13.5}})]},i)),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"flex-end\",gap:10,marginTop:18},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setOpenModal(null),disabled:modalSubmitting,style:{fontFamily:\"inherit\",fontSize:13,letterSpacing:\"-0.003em\",padding:\"10px 16px\",borderRadius:8,cursor:modalSubmitting?\"wait\":\"pointer\",background:\"transparent\",color:mutedTextColor,border:`1px solid ${lineColor}`,opacity:modalSubmitting?.6:1},children:\"Cancel\"}),/*#__PURE__*/_jsx(\"button\",{type:\"submit\",disabled:modalSubmitting,style:{fontFamily:\"inherit\",fontSize:13,letterSpacing:\"-0.003em\",padding:\"10px 16px\",borderRadius:8,cursor:modalSubmitting?\"wait\":\"pointer\",background:buttonBackground,color:buttonTextColor,fontWeight:500,border:`1px solid ${buttonBackground}`,opacity:modalSubmitting?.8:1},children:modalSubmitting?\"Sending…\":modalCfg.primary})]})]}):/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"center\",padding:\"10px 0 4px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:44,height:44,margin:\"0 auto 14px\",borderRadius:\"50%\",display:\"grid\",placeItems:\"center\",background:accentSoftColor,color:accentColor,fontSize:20},children:\"✓\"}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:13.5,lineHeight:1.55,color:mutedTextColor,marginBottom:18},children:modalCfg.success}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setOpenModal(null),style:{fontFamily:\"inherit\",fontSize:13,padding:\"10px 16px\",borderRadius:8,cursor:\"pointer\",background:\"transparent\",color:mutedTextColor,border:`1px solid ${lineColor}`},children:\"Close\"})]})]})]}):null;if(!mounted)return null;// ── Canvas render (inline, no portal) ───────────────────────────────\nif(isCanvas){return /*#__PURE__*/_jsxs(\"div\",{style:wrapperStyle,children:[fontsImport,backdropJsx,backButton,/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",width:\"100%\"},children:[cardContent,footer]}),modalJsx]});}if(cmsMode&&!slugMatch)return null;// CMS-mode layered render: backdrop (z 9997) + iframe (z 9998, when blob\n// URL ready) + form (z 9999). Form unmounts instantly on success;\n// backdrop's color tracks the protected page's body bg via the in-iframe\n// probe, so there's no color seam at the moment of swap.\nconst cmsBackdrop=cmsMode?/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",zIndex:9997,background:cmsBgColor||backdropBase}}):null;const cmsIframe=cmsMode&&cmsBlobUrl?/*#__PURE__*/_jsx(\"iframe\",{src:cmsBlobUrl,onLoad:()=>{setCmsContentLoading(false);// Paint readiness is signalled by the injected probe via\n// postMessage — see the message listener useEffect above.\n},style:{position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",border:\"none\",zIndex:9998},sandbox:\"allow-scripts allow-same-origin allow-forms allow-popups allow-top-navigation\",title:\"Protected Content\"}):null;if(!visible){if(!cmsMode)return null;return /*#__PURE__*/createPortal(/*#__PURE__*/_jsxs(_Fragment,{children:[cmsBackdrop,cmsIframe]}),document.body);}// ── Live render (portal to document.body) ───────────────────────────\nreturn /*#__PURE__*/createPortal(/*#__PURE__*/_jsxs(_Fragment,{children:[fontsImport,cmsBackdrop,cmsIframe,/*#__PURE__*/_jsxs(\"div\",{style:{...wrapperStyle,position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",zIndex:9999},children:[backdropJsx,backButton,/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",width:\"100%\"},children:[cardContent,footer]})]}),modalJsx]}),document.body);}addPropertyControls(Paper,{// Injected by plugin — not user-facing\nlockId:{type:ControlType.String,title:\"Lock ID\",defaultValue:\"\"},groupId:{type:ControlType.String,title:\"Group ID\",defaultValue:\"\"},apiUrl:{type:ControlType.String,title:\"API URL\",defaultValue:\"https://proofly.ae\"},fallbackUrl:{type:ControlType.String,title:\"Fallback URL\",defaultValue:\"https://fallback.proofly.ae\"},lockedSlugs:{type:ControlType.String,title:\"Locked Slugs JSON\",defaultValue:\"\"},lockedGroups:{type:ControlType.String,title:\"Locked Groups JSON\",defaultValue:\"\"},pinLength:{type:ControlType.Enum,title:\"PIN Length\",options:[\"4\",\"5\",\"6\",\"8\"],optionTitles:[\"4\",\"5\",\"6\",\"8\"],defaultValue:\"8\"},authMethod:{type:ControlType.Enum,title:\"Auth method\",options:[\"pin\",\"user_accounts\",\"email_otp\"],optionTitles:[\"PIN\",\"Username + password\",\"Email OTP\"],defaultValue:\"pin\"},// Text\ntitle:{type:ControlType.String,title:\"Title\",defaultValue:\"Enter your PIN\"},subtitle:{type:ControlType.String,title:\"Subtitle\",displayTextArea:true,defaultValue:\"Sign in to continue to your workspace.\"},errorMessage:{type:ControlType.String,title:\"Error\",displayTextArea:true,defaultValue:\"Incorrect PIN. Please check and try again.\"},buttonText:{type:ControlType.String,title:\"Unlock button\",defaultValue:\"Unlock\"},forgotLabel:{type:ControlType.String,title:\"Forgot label\",defaultValue:\"Forgot PIN?\"},requestLabel:{type:ControlType.String,title:\"Request label\",defaultValue:\"Request access\"},markText:{type:ControlType.String,title:\"Mark letter\",defaultValue:\"P\"},// user_accounts copy\nusernameLabel:{type:ControlType.String,title:\"Username label\",defaultValue:\"Username\"},usernamePlaceholder:{type:ControlType.String,title:\"Username placeholder\",defaultValue:\"yourname\"},passwordLabel:{type:ControlType.String,title:\"Password label\",defaultValue:\"Password\"},passwordPlaceholder:{type:ControlType.String,title:\"Password placeholder\",defaultValue:\"••••••••\"},// email_otp copy\nemailLabel:{type:ControlType.String,title:\"Email label\",defaultValue:\"Email\"},emailPlaceholder:{type:ControlType.String,title:\"Email placeholder\",defaultValue:\"you@company.com\"},emailButtonText:{type:ControlType.String,title:\"Send code button\",defaultValue:\"Send code\"},otpTitle:{type:ControlType.String,title:\"OTP title\",displayTextArea:true,defaultValue:\"Code sent to {email}\"},otpSubtitle:{type:ControlType.String,title:\"OTP hint\",defaultValue:\"Enter the 6-digit code we just sent.\"},otpResendLabel:{type:ControlType.String,title:\"OTP back link\",defaultValue:\"Use different email\"},// Toggles\nshowBack:{type:ControlType.Boolean,title:\"Back button\",defaultValue:true},showUnlock:{type:ControlType.Boolean,title:\"Unlock button\",defaultValue:true},showForgot:{type:ControlType.Boolean,title:\"Forgot PIN link\",defaultValue:true},showRequest:{type:ControlType.Boolean,title:\"Request access\",defaultValue:true},showBackground:{type:ControlType.Boolean,title:\"Background image\",defaultValue:false},showMark:{type:ControlType.Boolean,title:\"Brand mark\",defaultValue:true},showLogo:{type:ControlType.Boolean,title:\"Show logo\",defaultValue:false},// Image (String so upload-flow URLs survive — see AUTHORING.md §2.3)\nbackgroundImage:{type:ControlType.String,title:\"Background image URL\",defaultValue:\"\"},logoImage:{type:ControlType.String,title:\"Logo URL\",defaultValue:\"\"},// Colors\nbackdropBase:{type:ControlType.Color,title:\"Paper backdrop\",defaultValue:\"#fafaf7\"},cardBackground:{type:ControlType.Color,title:\"Card background\",defaultValue:\"#ffffff\"},textColor:{type:ControlType.Color,title:\"Ink\",defaultValue:\"#18181b\"},mutedTextColor:{type:ControlType.Color,title:\"Muted text\",defaultValue:\"#8a8a8f\"},tertiaryTextColor:{type:ControlType.Color,title:\"Tertiary text\",defaultValue:\"#c7c7cc\"},lineColor:{type:ControlType.Color,title:\"Hairline\",defaultValue:\"#e6e6e1\"},lineColorStrong:{type:ControlType.Color,title:\"Hairline (strong)\",defaultValue:\"#d6d6d0\"},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#2f4fff\"},accentSoftColor:{type:ControlType.Color,title:\"Accent soft\",defaultValue:\"#eef1ff\"},errorColor:{type:ControlType.Color,title:\"Error\",defaultValue:\"#c6332b\"},errorSoftColor:{type:ControlType.Color,title:\"Error soft\",defaultValue:\"#fdeeee\"},buttonBackground:{type:ControlType.Color,title:\"Button bg\",defaultValue:\"#18181b\"},buttonTextColor:{type:ControlType.Color,title:\"Button text\",defaultValue:\"#ffffff\"},// Dimensions\ncardWidth:{type:ControlType.Number,title:\"Card width\",defaultValue:420,min:320,max:560},cardPadding:{type:ControlType.Number,title:\"Card padding\",defaultValue:44,min:24,max:64},cardBorderRadius:{type:ControlType.Number,title:\"Card radius\",defaultValue:16,min:0,max:28},// Modal copy\nforgotModalTitle:{type:ControlType.String,title:\"Forgot \\xb7 Title\",defaultValue:\"Forgot your PIN?\"},forgotModalBody:{type:ControlType.String,title:\"Forgot \\xb7 Body\",displayTextArea:true,defaultValue:\"Enter the email tied to this workspace and we'll send you a secure link to set a new PIN. The link expires in 15 minutes.\"},forgotModalSuccess:{type:ControlType.String,title:\"Forgot \\xb7 Success\",displayTextArea:true,defaultValue:\"Check your inbox — if this email is on file, a recovery link is on its way.\"},requestModalTitle:{type:ControlType.String,title:\"Request \\xb7 Title\",defaultValue:\"Request access\"},requestModalBody:{type:ControlType.String,title:\"Request \\xb7 Body\",displayTextArea:true,defaultValue:\"Tell us who you are and which workspace you're trying to reach. An admin will review and reply within one business day.\"},requestModalSuccess:{type:ControlType.String,title:\"Request \\xb7 Success\",displayTextArea:true,defaultValue:\"Request received. An admin will review it and get back to you shortly.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Paper\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"700\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"* @framerIntrinsicWidth 500\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Paper.map"],"mappings":"2OAYuC,SAAS,IAAc,CAAC,GAAU,IAAS,OAAY,MAAO,GAAM,IAAM,EAAE,EAAO,SAAS,SAAS,OAAO,IAAI,cAAc,IAAI,iBAOzJ,SAAS,GAAqB,EAAS,CAAC,MAAc,CAA4D,GAAxD,GAAmB,OAAO,SAAW,KAAsB,IAAc,CAAC,OAAO,IAAI,EAAK,SAAS,cAAc,wBAAwB,CAAO,EAAY,EAAK,EAAK,aAAa,UAAU,CAAC,KAAW,EAAQ,CAAC,EAAoM,OAA5L,EAAM,EAAK,aAAa,UAAUA,EAAsB,EAAO,EAAK,SAAS,cAAc,OAAO,CAAC,EAAK,KAAK,WAAW,EAAK,QAAQA,EAAsB,SAAS,KAAK,YAAY,EAAK,MAAY,CAAK,IAAe,EAAS,EAAK,QAAQ,CAAU,IAAc,MAAM,EAAK,aAAa,UAAU,EAAY,IAAM,CAAC,EAAS,CAAC,CAKniB,SAAS,GAAqB,EAAO,EAAY,CAAC,OAAO,eAA8B,EA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