{"version":3,"file":"Overrides.COMDRnTe.mjs","names":["useStore","useState"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/Kp35wC5hSb7x7esFF8Kx/Y5WyIaRBztlslafwIjjY/store.js","https:/framerusercontent.com/modules/4q0xpQhyxMl95ZxBcpOO/Q1ac0m510UDPPsqoqtBt/Overrides.js"],"sourcesContent":["import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";function isUnlockedFromCookie(){if(typeof document===\"undefined\")return false;return document.cookie.split(\"; \").some(c=>c.startsWith(\"product_unlocked=true\"));}export const useStore=createStore({unlocked:isUnlockedFromCookie(),userName:\"\",showPopup:false});\nexport const __FramerMetadata__ = {\"exports\":{\"useStore\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./store.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useStore}from\"https://framerusercontent.com/modules/Kp35wC5hSb7x7esFF8Kx/Y5WyIaRBztlslafwIjjY/store.js\";// ── Apply to your trigger BUTTON ──────────────────────────────────────────\nexport function OpenPopupButton(Component){return function(props){const[,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>setStore({showPopup:true})});};}// ── Apply to your LOCKED SECTION/CARD ─────────────────────────────────────\n// When locked: section is completely removed from the page flow\n// When unlocked: section renders normally\nexport function LockedSection(Component){return function(props){const[store]=useStore();if(!store.unlocked){return /*#__PURE__*/_jsx(\"div\",{id:\"locked-section\",style:{display:\"none\"}});}return /*#__PURE__*/_jsx(\"div\",{id:\"locked-section\",style:{width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}// Contact Form submission to Web3Forms\nexport function SubmitToWeb3Forms(Component){return function(props){async function handleSubmit(e){e.preventDefault();const formEl=e.currentTarget;const data={access_key:\"fd44b1dd-d5b3-4e7f-8f55-32e6b4d33dc0\",subject:\"New Contact Form Submission\"};// Automatically grabs all named input fields from the form\nnew FormData(formEl).forEach((value,key)=>{data[key]=value.toString();});await fetch(\"https://api.web3forms.com/submit\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(data)});}return /*#__PURE__*/_jsx(Component,{...props,onSubmit:handleSubmit});};}\nexport const __FramerMetadata__ = {\"exports\":{\"SubmitToWeb3Forms\":{\"type\":\"reactHoc\",\"name\":\"SubmitToWeb3Forms\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"OpenPopupButton\":{\"type\":\"reactHoc\",\"name\":\"OpenPopupButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LockedSection\":{\"type\":\"reactHoc\",\"name\":\"LockedSection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Overrides.map"],"mappings":"kLAA8E,SAAgB,EAAY,EAAO,CACjH,IAAM,EAAU,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,CAAC,CAClD,EAAa,GAAU,CAC1B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAU,MAAM,EAAE,EAAU,MAAM,OAAO,OAAO,CAAC,GAAG,EAAU,MAAM,GAAG,EAAS,CAAC,EAChI,EAAW,OAAO,GAAS,SAAS,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,EAC7D,EAAa,IAAI,IACjB,EAAc,GAAU,CAC3B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAW,EAAE,EAAW,OAAO,GAAW,SAAS,OAAO,OAAO,CAAC,GAAG,EAAW,GAAG,EAAS,CAAC,CAAC,EACjJ,EAAa,QAAQ,GAAQ,EAAO,EAAW,CAAC,EAChD,SAASA,GAAU,CACnB,GAAK,CAAC,EAAM,GAAUC,EAAS,EAAW,CAK1C,OAHA,OACA,EAAa,IAAI,EAAS,KAAW,EAAa,OAAO,EAAS,EAAG,EAAE,CAAC,CACrE,GAAgB,GAAG,IAAM,GAAgB,CAAO,CAAC,EAAU,MAAM,EAAa,EAC3E,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