{"version":3,"file":"FloatButtonMobile.CEPQbch9.mjs","names":["React.useState","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/HApF286dARSkf1WpYez6/kYl0qdNKdIFFFWaiLOo9/FloatButtonMobile.js"],"sourcesContent":["// overrides/FloatContinueMobile.jsx\nimport{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";const NONE_REGEX=/none of the (below|above)/i;export function floatContinueMobile(){const[isMobile,setIsMobile]=React.useState(false);// --- mobile check (for floating styles only) ---\nReact.useEffect(()=>{if(typeof window===\"undefined\")return;const mq=window.matchMedia(\"(max-width: 767px)\");const update=()=>setIsMobile(mq.matches);update();if(mq.addEventListener)mq.addEventListener(\"change\",update);else mq.addListener(update);return()=>{if(mq.removeEventListener)mq.removeEventListener(\"change\",update);else mq.removeListener(update);};},[]);// --- global listener to advance on \"None of the below/above\" (ALL screen sizes) ---\nReact.useEffect(()=>{if(typeof document===\"undefined\"||typeof window===\"undefined\")return;if(window.__autoAdvanceOnNoneInstalled)return;window.__autoAdvanceOnNoneInstalled=true;let ticking=false;const onClick=evt=>{const btn=evt.target&&evt.target.closest&&evt.target.closest(\"button\");if(!btn)return;const group=btn.closest&&btn.closest('[data-framerforms-type=\"buttons\"]');if(!group)return;const label=(btn.textContent||\"\").trim();if(!NONE_REGEX.test(label))return;// prevent double-trigger if host also auto-advances\nif(ticking)return;ticking=true;// let Framer write the hidden input before we click Next\nsetTimeout(()=>{// find the nearest \"Next Button\" within this screen\nlet scope=group;let nextButton=null;while(scope&&!nextButton){nextButton=scope.querySelector&&scope.querySelector('[data-framer-name=\"Next Button\"] button');scope=scope.parentElement;}// fallback: first visible Next Button on the page\nif(!nextButton){nextButton=document.querySelector('[data-framer-name=\"Next Button\"] button');}// click it\nif(nextButton&&nextButton.click)nextButton.click();ticking=false;},0);};document.addEventListener(\"click\",onClick,true)// capture phase\n;return()=>{document.removeEventListener(\"click\",onClick,true);window.__autoAdvanceOnNoneInstalled=false;};},[]);// --- floating styles (mobile only) ---\nif(!isMobile)return{};const side=16;const bottom=26;const H=52// requested height\n;return{style:{position:\"fixed\",left:side,right:side,bottom:`calc(${bottom}px + env(safe-area-inset-bottom, 0px))`,zIndex:1e3,margin:0,width:\"auto\",transform:\"none\",height:H,minHeight:H,boxSizing:\"border-box\",lineHeight:`${H}px`}};}// (optional) keep if you were using it before:\nexport function padForFloatingButton(){const[isMobile,setIsMobile]=React.useState(false);React.useEffect(()=>{if(typeof window===\"undefined\")return;const mq=window.matchMedia(\"(max-width: 767px)\");const update=()=>setIsMobile(mq.matches);update();if(mq.addEventListener)mq.addEventListener(\"change\",update);else mq.addListener(update);return()=>{if(mq.removeEventListener)mq.removeEventListener(\"change\",update);else mq.removeListener(update);};},[]);if(!isMobile)return{};const reserve=84// adjust if your button is taller\n;return{style:{paddingBottom:`calc(${reserve}px + env(safe-area-inset-bottom, 0px))`}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withfloatContinueMobile(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...floatContinueMobile(props)});};}withfloatContinueMobile.displayName=\"floatContinueMobile\";export function withpadForFloatingButton(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...padForFloatingButton(props)});};}withpadForFloatingButton.displayName=\"padForFloatingButton\";\nexport const __FramerMetadata__ = {\"exports\":{\"withfloatContinueMobile\":{\"type\":\"reactHoc\",\"name\":\"withfloatContinueMobile\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"padForFloatingButton\":{\"type\":\"override\",\"name\":\"padForFloatingButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withpadForFloatingButton\":{\"type\":\"reactHoc\",\"name\":\"withpadForFloatingButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"floatContinueMobile\":{\"type\":\"override\",\"name\":\"floatContin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