{"version":3,"file":"Intro_Reveal.DjsfKCCk.mjs","names":["React.useState","__esmMin","init_ssg_sandbox_shims","_e","c","init_jsx_runtime","init_npm_react_18_3_1","ce","window","toAmount","state","t","o","easeOutCubic","Reveal","props","amount","setAmount","w","settled","latest","nearEndSince","startedAt","finish","apply","options","onIntro","INTRO_EVENT","check","now","NEAR_END","NEAR_END_MAX_MS","NO_INTRO_FALLBACK_MS","CHECK_EVERY_MS","Component","withNavReveal","NAV","withContentReveal","CONTENT","init_Intro_Reveal"],"sources":["https:/framerusercontent.com/modules/Rdg9njXTPCeNlFCTjgkK/ekXBWrgAaw7YUfh4BIJd/Intro_Reveal.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";// Hero content reveal for the BandBackground intro.\n// withNavReveal:     slides down from above (use on the nav row)\n// withContentReveal: slides up from below (use on Headline Content and Trust Strip)\n// withIntroReveal:   fade only (kept so existing overrides keep working)\nconst INTRO_EVENT=\"limestone-intro\";// If the intro never reports in, show content after this long\nconst NO_INTRO_FALLBACK_MS=1500;// Once the intro passes this point, guarantee the reveal finishes\nconst NEAR_END=.7;// Max time allowed in the near-end zone before forcing the reveal\nconst NEAR_END_MAX_MS=1200;// How often to check\nconst CHECK_EVERY_MS=200;const easeOutCubic=t=>1-Math.pow(1-t,3);function toAmount(state,o){if(!state)return 0;if(state.done)return 1;const t=(state.progress-o.start)/Math.max(.001,o.end-o.start);return easeOutCubic(Math.min(1,Math.max(0,t)));}function Reveal({Component,options,...props}){// Always start hidden so the first browser render matches the server HTML.\n// The effect below reveals it once the intro reports in.\nconst[amount,setAmount]=React.useState(0);React.useEffect(()=>{const w=window;let settled=false;let latest=w.__limestoneIntro;let nearEndSince=null;const startedAt=performance.now();const finish=()=>{if(settled)return;settled=true;setAmount(1);};const apply=state=>{if(settled)return;if(state&&state.done){finish();return;}setAmount(toAmount(state,options));};const onIntro=e=>{latest=e.detail;apply(latest);};window.addEventListener(INTRO_EVENT,onIntro);apply(latest);// Safety net: checks on a timer, so constant or missing updates can't block it\nconst check=window.setInterval(()=>{if(settled){window.clearInterval(check);return;}const state=latest||w.__limestoneIntro;const now=performance.now();if(!state){if(now-startedAt>NO_INTRO_FALLBACK_MS)finish();return;}if(state.done){finish();return;}if(state.progress>=NEAR_END){if(nearEndSince===null)nearEndSince=now;else if(now-nearEndSince>NEAR_END_MAX_MS)finish();}else{nearEndSince=null;}},CHECK_EVERY_MS);return()=>{window.removeEventListener(INTRO_EVENT,onIntro);window.clearInterval(check);};},[]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,opacity:amount,y:(1-amount)*options.distance,pointerEvents:amount<1?\"none\":undefined}});}const NAV={start:.75,end:.95,distance:-48};const CONTENT={start:.8,end:1,distance:64};const FADE={start:.8,end:1,distance:0};// Nav drops in from the top as the last bands settle\nexport function withNavReveal(Component){return props=>/*#__PURE__*/_jsx(Reveal,{...props,Component:Component,options:NAV});}// Headline, subhead, and buttons rise in from below, a beat after the nav\nexport function withContentReveal(Component){return props=>/*#__PURE__*/_jsx(Reveal,{...props,Component:Component,options:CONTENT});}// Original fade-only version\nexport function withIntroReveal(Component){return props=>/*#__PURE__*/_jsx(Reveal,{...props,Component:Component,options:FADE});}\nexport const __FramerMetadata__ = {\"exports\":{\"withNavReveal\":{\"type\":\"reactHoc\",\"name\":\"withNavReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withContentReveal\":{\"type\":\"reactHoc\",\"name\":\"withContentReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withIntroReveal\":{\"type\":\"reactHoc\",\"name\":\"withIntroReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Intro_Reveal.map"],"mappings":"A,uIAQiE,SAASS,EAAS,EAAM,EAAE,CAAC,GAAG,CAACC,EAAM,MAAO,GAAE,GAAGA,EAAM,KAAK,MAAO,GAAE,IAAMC,GAAGD,EAAM,SAASE,EAAE,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