{"version":3,"file":"IntroCursorPhaseGuard.Z5ina5FD.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/nQ0qeQrUp3iUWNkSzBuS/mq5NxCCJtUxWeSFeVcBX/IntroCursorPhaseGuard.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * Intro Cursor Phase Guard\n *\n * Uses the browser default cursor during the intro slider phase, then releases the custom cursor after intro completion.\n *\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function IntroCursorPhaseGuard(props){const{enabled=true,storageKey=\"ashley-intro-complete\",style}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const[introComplete,setIntroComplete]=React.useState(false);React.useEffect(()=>{if(!enabled||isCanvas||typeof window===\"undefined\")return;const readComplete=()=>{try{setIntroComplete(window.sessionStorage.getItem(storageKey)===\"true\");}catch{setIntroComplete(false);}};readComplete();const interval=window.setInterval(readComplete,120);window.addEventListener(\"storage\",readComplete);return()=>{window.clearInterval(interval);window.removeEventListener(\"storage\",readComplete);};},[enabled,isCanvas,storageKey]);React.useEffect(()=>{if(!enabled||isCanvas||introComplete||typeof document===\"undefined\")return;const previousHtmlCursor=document.documentElement.style.cursor;const previousBodyCursor=document.body.style.cursor;document.documentElement.style.cursor=\"default\";document.body.style.cursor=\"default\";return()=>{document.documentElement.style.cursor=previousHtmlCursor;document.body.style.cursor=previousBodyCursor;};},[enabled,introComplete,isCanvas]);if(!enabled||isCanvas||introComplete){return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:1,height:1,opacity:0,pointerEvents:\"none\"}});}return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",\"data-native-cursor-zone\":\"true\",style:{...style,width:1,height:1,opacity:0,pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"style\",{children:`\n                html, body { cursor: default !important; }\n                [data-native-cursor-zone=\"true\"],\n                [data-native-cursor-zone=\"true\"] * { cursor: default !important; }\n                [data-three-circles-cursor=\"true\"] { display: none !important; opacity: 0 !important; visibility: hidden !important; }\n            `})});}addPropertyControls(IntroCursorPhaseGuard,{enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},storageKey:{type:ControlType.String,title:\"Storage Key\",defaultValue:\"ashley-intro-complete\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"IntroCursorPhaseGuard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1\",\"framerIntrinsicHeight\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./IntroCursorPhaseGuard.map"],"mappings":"sMAUG,SAAwB,EAAsB,EAAM,CAAC,GAAK,CAAC,UAAQ,GAAK,aAAW,wBAAwB,SAAO,EAAY,EAAS,EAAa,QAAQ,IAAI,EAAa,OAAY,CAAC,EAAc,GAAkBA,EAAe,EAAK,EAAihC,OAA/gC,MAAoB,CAAC,GAAG,CAAC,GAAS,GAAiB,IAAS,OAAY,OAAO,IAAM,MAAiB,CAAC,GAAG,CAAC,EAAiB,EAAO,eAAe,QAAQ,CAAU,IAAI,MAAM,CAAE,MAAM,CAAC,EAAiB,EAAK,CAAE,CAAC,EAAE,EAAa,EAAE,IAAM,EAAS,EAAO,YAAY,EAAa,GAAG,EAAkD,OAAhD,EAAO,iBAAiB,UAAU,CAAY,MAAY,CAAC,EAAO,cAAc,CAAQ,EAAE,EAAO,oBAAoB,UAAU,CAAY,CAAE,CAAE,EAAE,CAAC,EAAQ,EAAS,CAAU,CAAC,EAAE,MAAoB,CAAC,GAAG,CAAC,GAAS,GAAU,GAAe,OAAO,SAAW,IAAY,OAAO,IAAM,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