{"version":3,"file":"Redirect.HxsGbZM5.mjs","names":["_Fragment","React.useRef","React.useState"],"sources":["https:/framerusercontent.com/modules/9ajhXMTvNHa3o84QkAph/PajmEC9KX2YkEmLmmwER/StopScroll_Prod.js","https:/framerusercontent.com/modules/emivz0OrInRPfeb1BZUA/5gjKZu4RDUuY3BuTjR8b/Crisp.js","https:/framerusercontent.com/modules/dlw71q5w8GPj4yMpWOtW/uiCCCJMcGXdTCkUVeQg8/Redirect.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function StopScroll(props){const{toggle}=props;return toggle?/*#__PURE__*/_jsx(\"style\",{\"data-frameruni-stop-scroll\":true,children:`body { overflow: hidden !important; }`}):/*#__PURE__*/_jsx(_Fragment,{});}StopScroll.displayName=\"Stop Scroll\";addPropertyControls(StopScroll,{toggle:{type:ControlType.Boolean,title:\"Block Scroll\",description:\"More components at [Framer University](https://frameruni.link/cc).\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StopScroll\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StopScroll_Prod.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect}from\"react\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function CrispChat(props){const{enabled}=props;useEffect(()=>{if(!enabled){if(window.$crisp){window.$crisp.push([\"do\",\"chat:hide\"]);}return;}if(!window.$crisp){window.$crisp=[];window.CRISP_WEBSITE_ID=\"c5e5fd4b-a95f-42ab-af9a-62c56c07842d\";const script=document.createElement(\"script\");script.src=\"https://client.crisp.chat/l.js\";script.async=true;document.head.appendChild(script);}else{window.$crisp.push([\"do\",\"chat:show\"]);}},[enabled]);return /*#__PURE__*/_jsx(\"div\",{style:{width:1,height:1,opacity:0}});}CrispChat.displayName=\"Crisp Chat\";addPropertyControls(CrispChat,{enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CrispChat\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Crisp.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import*as React from\"react\";export default function Redirect(props){const lastPathRef=React.useRef(\"\");const[resetKey,setResetKey]=React.useState(0);const rafRef=React.useRef(null);const isInsideFramerBuilder=()=>{return typeof window[\"Framer\"]!==\"undefined\";};React.useEffect(()=>{const handlePageShow=event=>{setResetKey(prev=>prev+1);};window.addEventListener(\"pageshow\",handlePageShow);return()=>{window.removeEventListener(\"pageshow\",handlePageShow);};},[]);React.useEffect(()=>{const checkPath=()=>{const currentPath=window.location.pathname;if(currentPath!==lastPathRef.current){lastPathRef.current=currentPath;setResetKey(prev=>prev+1);}rafRef.current=requestAnimationFrame(checkPath);};lastPathRef.current=window.location.pathname;rafRef.current=requestAnimationFrame(checkPath);return()=>{if(rafRef.current){cancelAnimationFrame(rafRef.current);}};},[]);React.useEffect(()=>{if(props.isActive&&props.url&&!isInsideFramerBuilder()){const timer=setTimeout(()=>{if(props.newTab){window.open(props.url,\"_blank\");}else{window.location.href=props.url;}},props.seconds*1e3);return()=>clearTimeout(timer);}},[props.isActive,props.url,props.seconds,props.newTab,resetKey]);return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,opacity:0}});}Redirect.displayName=\"Redirect\";addPropertyControls(Redirect,{isActive:{type:ControlType.Boolean,title:\"Active\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},seconds:{type:ControlType.Number,title:\"Seconds\",defaultValue:5,min:0,max:60,step:1},url:{type:ControlType.String,title:\"URL\",placeholder:\"https://example.com\"},newTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Redirect\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Redirect.map"],"mappings":"6MAKG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,UAAQ,EAAM,OAAO,EAAoB,EAAK,QAAQ,CAAC,6BAA6B,GAAK,SAAS,uCAAuC,CAAC,EAAe,EAAKA,EAAU,CAAC,CAAC,CAAE,iBAL/J,IAAoD,EAK4G,EAAW,YAAY,cAAc,EAAoB,EAAW,CAAC,OAAO,CAAC,KAAK,EAAY,QAAQ,MAAM,eAAe,YAAY,oEAAoE,CAAC,CAAC,KCF1a,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,WAAS,EAAgZ,OAA1Y,MAAc,CAAC,GAAG,CAAC,EAAQ,CAAI,EAAO,QAAQ,EAAO,OAAO,KAAK,CAAC,KAAK,WAAW,CAAC,EAAG,MAAO,CAAC,GAAI,EAAO,OAA4O,EAAO,OAAO,KAAK,CAAC,KAAK,WAAW,CAAC,MAA1Q,CAAC,EAAO,OAAO,CAAC,EAAE,EAAO,iBAAiB,uCAAuC,IAAM,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAO,IAAI,iCAAiC,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,CAAM,CAAE,CAA8C,EAAE,CAAC,CAAO,CAAC,EAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EA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