{"version":3,"file":"shared-lib.CUS2IEpe.mjs","names":["useState","useRef","__legacyOverrideHOC_DataObserverContext","_jsx","__esmMin","oe","init_ssg_sandbox_shims","window","_e","de","init_jsx_runtime","init_npm_react_18_3_1","ce","init_framer_Bf4_tcb2","DataObserverContext","useObserveData","Data","createStore","dataStore","state1","setDataStore","newState","storeState","storeSetters","setStoreState","setter","useStore","state","setState","init_createStore","init_store_js__1_0","ShowErrorPopup","store","setStore","useStoreError","ShowTimer","useStoreTimer","StartGoogleOauth","evt","StartDiscordOauth","ShowResend","store4","setStore4","email","res","ShowLoginButton","store2","setStore2","useStore2","isLoggedIn","token","expiresRaw","expiresAt","now","LoggedInCheck","LoginRedirect","b64urlDecode","str","pad","c","LoginRedirect2","params","encoded","decoded","loginredirect","DoLogout","InputKeyOverride","store3","setStore3","curvariant","payload","json","withLoginFormSubmit","formRef","onSubmit1","form","Component","props","withShowErrorPopup","C","withShowTimer","withStartGoogleOauth","withStartDiscordOauth","withShowResend","withShowLoginButton","withLoggedInCheck","withLoginRedirect","withLoginRedirect2","withDoLogout","withInputKeyOverride","init_LoginManager"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/YS3xm0CwZ92Tka9iAcrO/v3zDgaZgaqGoQlPjgWoK/LoginManager.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{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";const useStore=createStore({variant:\"login\"});let curvariant=\"login\";const useStoreError=createStore({message:\"\",open:false,onClose:null,success:false});const useStore2=createStore({variant:\"Default\"});const useStoreTimer=createStore({minutes:5,seconds:0,variant:\"Variant 1\"});export function ShowErrorPopup(){const[store,setStore]=useStoreError();return{message:store.message,isOpen:store.open,onClose:function(){if(store.onClose!=null)store.onClose();setStore({message:\"\",open:false,onClose:null,success:false});},success:store.success};}export function ShowTimer(){const[store,setStore]=useStoreTimer();return{minutes:store.minutes,seconds:store.seconds,onEnd:function(){setStore({minutes:5,seconds:0,variant:\"Variant 2\"});}};}export function StartGoogleOauth(){return{onClick(evt){if(evt)evt.preventDefault();window.location.href=\"https://api.thexyzstore.com/auth/google/init\";}};}export function StartDiscordOauth(){return{onClick(evt){if(evt)evt.preventDefault();window.location.href=\"https://discord.com/oauth2/authorize?client_id=1465040760628973823&response_type=code&redirect_uri=https%3A%2F%2Fapi.thexyzstore.com%2Fauth%2Fdiscord%2Fcallback&scope=identify+email\";}};}export function ShowResend(){const[store,setStore]=useStoreError();const[store4,setStore4]=useStoreTimer();return{variant:store4.variant,onClick(){if(store4.variant!=\"Variant 2\")return;const email=localStorage.getItem(\"login\");if(!email){setStore({message:\"Resend OTP failed.\",open:true,onClose:function(){window.location.reload();},success:true});return;}const payload={email:email};fetch(\"https://api.thexyzstore.com/tihe3o5inrhboi53n4o\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(payload)}).then(res=>{if(!res.ok){setStore({message:\"request failed\",open:true,onClose:null,success:false});return;}setStore({message:\"OTP resent!\",open:true,onClose:null,success:true});setStore4({minutes:5,seconds:Math.random(),variant:\"Variant 1\"});}).catch(err=>{setStore({message:\"Failed to send OTP. Please try again.\",open:true,onClose:function(){window.location.reload();},success:false});});}};}export function ShowLoginButton(){const[store2,setStore2]=useStore2();return{variant:store2.variant};}function isLoggedIn(){if(typeof window===\"undefined\")return false;const token=localStorage.getItem(\"accessToken\");const expiresRaw=localStorage.getItem(\"expiresAt\");const expiresAt=Number(expiresRaw);const now=Date.now();if(Number.isNaN(expiresAt)||!token){return false;}if(now>=expiresAt){return false;}return true;}export function LoggedInCheck(){isLoggedIn();if(isLoggedIn()){return{variant:\"Variant 1\"};}return{variant:\"Variant 2\"};}export function LoginRedirect(){isLoggedIn();if(isLoggedIn()){window.location.href=\"/myaccount\";return{style:{display:\"none\"}};}return;}function b64urlDecode(str){// Convert base64url → base64\nstr=str.replace(/-/g,\"+\").replace(/_/g,\"/\");// Pad with '=' if needed\nconst pad=str.length%4;if(pad){str+=\"=\".repeat(4-pad);}return decodeURIComponent(Array.from(atob(str),c=>\"%\"+c.charCodeAt(0).toString(16).padStart(2,\"0\")).join(\"\"));}let loginredirect=false;export function LoginRedirect2(){isLoggedIn();const params=new URLSearchParams(window.location.search);console.log(params);const encoded=params.get(\"token\");console.log(encoded);if(encoded){try{const decoded=JSON.parse(b64urlDecode(encoded));console.log(decoded);if(decoded.fail){if(loginredirect){return{style:{display:\"none\"}};}loginredirect=true;alert(\"Login failed\");localStorage.removeItem(\"accessToken\");localStorage.removeItem(\"expiresAt\");localStorage.removeItem(\"login\");window.location.replace(\"/login\");return{style:{display:\"none\"}};}if(decoded.token){localStorage.setItem(\"accessToken\",decoded.token);localStorage.setItem(\"expiresAt\",String(decoded.expiry*1e3));localStorage.setItem(\"login\",decoded.login);}}catch(e){}}if(!isLoggedIn()){window.location.href=\"/login\";return{style:{display:\"none\"}};}return;}export function DoLogout(){return{onClick(event){localStorage.removeItem(\"login\");localStorage.removeItem(\"accessToken\");localStorage.removeItem(\"expiresAt\");window.location.href=\"/\";}};}export function InputKeyOverride(){const[store,setStore]=useStore();const[store2,setStore2]=useStoreError();const[store3,setStore3]=useStore2();const[store4,setStore4]=useStoreTimer();return{onKeyDown(e){if(e.key===\"Enter\"){e.preventDefault();e.stopPropagation();if(curvariant==\"login\"){const email=e.currentTarget.querySelector(\"input[name=Email]\").value;const payload={email:email};setStore3({variant:\"Loading\"});fetch(\"https://api.thexyzstore.com/tihe3o5inrhboi53n4o\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(payload)}).then(res=>{setStore3({variant:\"Default\"});if(!res.ok){setStore2({message:\"request failed\",open:true,onClose:null,success:false});return;}localStorage.setItem(\"login\",email.toString());curvariant=\"verify\";setStore4({minutes:5,seconds:Math.random(),variant:\"Variant 1\"});setStore({variant:\"verify\"});setStore2({message:\"If you are an XYZ Store customer, OTP has been sent!\",open:true,onClose:null,success:true});}).catch(err=>{setStore3({variant:\"Default\"});setStore2({message:\"Failed to send OTP. Please try again.\",open:true,onClose:function(){window.location.reload();},success:false});});}else{const email=localStorage.getItem(\"login\");if(!email){setStore2({message:\"Login failed. Try again\",open:true,onClose:function(){window.location.reload();},success:false});return;}const otp=e.currentTarget.querySelector(\"input[name=Verification]\").value;const payload={email:email,otp:otp};setStore3({variant:\"Loading\"});fetch(\"https://api.thexyzstore.com/4kogtoi3n5goinorti35nhyon\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(payload)}).then(res=>{if(!res.ok){setStore3({variant:\"Default\"});setStore2({message:\"request failed\",open:true,onClose:null,success:false});return;}return res.json().then(json=>{if(!json.ok){setStore2({message:\"Invalid OTP\",open:true,onClose:null,success:false});setStore3({variant:\"Default\"});return;}localStorage.setItem(\"accessToken\",json.token);localStorage.setItem(\"expiresAt\",String(json.expiry*1e3));window.location.href=\"/\";});}).catch(err=>{setStore3({variant:\"Default\"});setStore2({message:\"Failed to verify OTP. Please try again.\",open:true,onClose:function(){window.location.reload();},success:false});});}}}};}export function withLoginFormSubmit(Component){return props=>{const[store,setStore]=useStore();const[store2,setStore2]=useStoreError();const[store3,setStore3]=useStore2();const[store4,setStore4]=useStoreTimer();const formRef=useRef(null);const onSubmit1=e=>{if(e){e.preventDefault();}if(curvariant==\"login\"){const email=formRef.current?.querySelector(\"input[name=Email]\").value;const payload={email:email};setStore3({variant:\"Loading\"});fetch(\"https://api.thexyzstore.com/tihe3o5inrhboi53n4o\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(payload)}).then(res=>{setStore3({variant:\"Default\"});if(!res.ok){setStore2({message:\"request failed\",open:true,onClose:null,success:false});return;}localStorage.setItem(\"login\",email.toString());curvariant=\"verify\";setStore4({minutes:5,seconds:Math.random(),variant:\"Variant 1\"});setStore({variant:\"verify\"});setStore2({message:\"If you are an XYZ Store customer, OTP has been sent!\",open:true,onClose:null,success:true});}).catch(err=>{setStore2({message:\"Failed to send OTP. Please try again.\",open:true,onClose:function(){window.location.reload();},success:false});return;});}else{const email=localStorage.getItem(\"login\");if(!email){setStore2({message:\"Login failed. Try again.\",open:true,onClose:function(){window.location.reload();},success:false});return;}const otp=formRef.current?.querySelector(\"input[name=Verification]\").value;const payload={email:email,otp:otp};setStore3({variant:\"Loading\"});fetch(\"https://api.thexyzstore.com/4kogtoi3n5goinorti35nhyon\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(payload)}).then(res=>{if(!res.ok){setStore3({variant:\"Default\"});setStore2({message:\"request failed\",open:true,onClose:null,success:false});return;}return res.json().then(json=>{if(!json.ok){setStore2({message:\"Invalid OTP.\",open:true,onClose:function(){window.location.reload();},success:false});return;}localStorage.setItem(\"accessToken\",json.token);localStorage.setItem(\"expiresAt\",String(json.expiry*1e3));window.location.href=\"/\";});}).catch(err=>{setStore3({variant:\"Default\"});setStore2({message:\"Failed to verify OTP. Please try again.\",open:true,onClose:function(){window.location.reload();},success:false});});}};useEffect(()=>{const form=formRef.current;if(form){form.addEventListener(\"submit\",onSubmit1);return()=>{form.removeEventListener(\"submit\",onSubmit1);};}},[]);return /*#__PURE__*/_jsx(Component,{ref:formRef,...props,variant:store.variant});};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withShowErrorPopup(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ShowErrorPopup(props)});};}withShowErrorPopup.displayName=\"ShowErrorPopup\";export function withShowTimer(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ShowTimer(props)});};}withShowTimer.displayName=\"ShowTimer\";export function withStartGoogleOauth(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...StartGoogleOauth(props)});};}withStartGoogleOauth.displayName=\"StartGoogleOauth\";export function withStartDiscordOauth(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...StartDiscordOauth(props)});};}withStartDiscordOauth.displayName=\"StartDiscordOauth\";export function withShowResend(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ShowResend(props)});};}withShowResend.displayName=\"ShowResend\";export function withShowLoginButton(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ShowLoginButton(props)});};}withShowLoginButton.displayName=\"ShowLoginButton\";export function withLoggedInCheck(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...LoggedInCheck(props)});};}withLoggedInCheck.displayName=\"LoggedInCheck\";export function withLoginRedirect(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...LoginRedirect(props)});};}withLoginRedirect.displayName=\"LoginRedirect\";export function withLoginRedirect2(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...LoginRedirect2(props)});};}withLoginRedirect2.displayName=\"LoginRedirect2\";export function withDoLogout(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...DoLogout(props)});};}withDoLogout.displayName=\"DoLogout\";export function withInputKeyOverride(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...InputKeyOverride(props)});};}withInputKeyOverride.displayName=\"InputKeyOverride\";\nexport const __FramerMetadata__ = {\"exports\":{\"ShowErrorPopup\":{\"type\":\"override\",\"name\":\"ShowErrorPopup\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStartGoogleOauth\":{\"type\":\"reactHoc\",\"name\":\"withStartGoogleOauth\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"StartGoogleOauth\":{\"type\":\"override\",\"name\":\"StartGoogleOauth\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ShowResend\":{\"type\":\"override\",\"name\":\"ShowResend\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LoggedInCheck\":{\"type\":\"override\",\"name\":\"LoggedInCheck\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withShowLoginButton\":{\"type\":\"reactHoc\",\"name\":\"withShowLoginButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"StartDiscordOauth\":{\"type\":\"override\",\"name\":\"StartDiscordOauth\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"InputKeyOverride\":{\"type\":\"override\",\"name\":\"InputKeyOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LoginRedirect\":{\"type\":\"override\",\"name\":\"LoginRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ShowTimer\":{\"type\":\"override\",\"name\":\"ShowTimer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withShowTimer\":{\"type\":\"reactHoc\",\"name\":\"withShowTimer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLoginRedirect2\":{\"type\":\"reactHoc\",\"name\":\"withLoginRedirect2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withShowResend\":{\"type\":\"reactHoc\",\"name\":\"withShowResend\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withInputKeyOverride\":{\"type\":\"reactHoc\",\"name\":\"withInputKeyOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLoginRedirect\":{\"type\":\"reactHoc\",\"name\":\"withLoginRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLoggedInCheck\":{\"type\":\"reactHoc\",\"name\":\"withLoggedInCheck\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ShowLoginButton\":{\"type\":\"override\",\"name\":\"ShowLoginButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withShowErrorPopup\":{\"type\":\"reactHoc\",\"name\":\"withShowErrorPopup\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLoginFormSubmit\":{\"type\":\"reactHoc\",\"name\":\"withLoginFormSubmit\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LoginRedirect2\":{\"type\":\"override\",\"name\":\"LoginRedirect2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DoLogout\":{\"type\":\"override\",\"name\":\"DoLogout\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStartDiscordOauth\":{\"type\":\"reactHoc\",\"name\":\"withStartDiscordOauth\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDoLogout\":{\"type\":\"reactHoc\",\"name\":\"withDoLogout\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LoginManager.map"],"mappings":"A,gNAA8E,SAAgBiB,EAAY,EAAO,CACjH,IAAMC,EAAUF,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAGG,CAAM,CAAC,CAAC,CAAC,EACjDC,EAAa,GAAU,CAC1B,OAAOC,GAAW,aAAY,EAASA,EAASH,EAAU,KAAK,GAAG,EAAU,MAAM,OAAO,OAAO,CAAC,GAAGA,EAAU,MAAM,GAAGG,CAAQ,CAAC,CAAE,EACjIC,EAAW,OAAOH,GAAS,SAAS,OAAO,OAAO,CAAC,GAAGA,CAAM,CAAC,EAAEA,EAC7DI,kBAAa,IAAI,IACjBC,EAAc,GAAU,CAC3B,OAAOH,GAAW,aAAY,EAASA,EAASC,CAAU,GAAG,EAAW,OAAOD,GAAW,SAAS,OAAO,OAAO,CAAC,GAAGC,EAAW,GAAGD,CAAQ,CAAC,EAAEA,EACjJE,EAAa,QAAQ,GAAQE,EAAOH,CAAU,CAAC,CAAE,EACjD,SAASI,GAAU,CACnB,GAAK,CAACC,EAAMC,GAAU5B,EAASsB,CAAU,EAKzC,OAHAV,OACAW,EAAa,IAAIK,CAAQ,MAAYL,EAAa,OAAOK,CAAQ,GAAI,CAAC,CAAC,EACpEb,EAAe,IAAI,IAAMA,EAAe,EAAQ,CAACG,EAAU,MAAME,CAAY,GAC1E,CAACO,E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