{"version":3,"file":"shared-lib.CltMAhF1.mjs","names":["useStore","useState","metadata","siteMetadata","metadataVersion","__FramerMetadata__","metadata","siteMetadata"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/GgssFyYzwwp3qHxsANy7/RYHVCFvwehknO9CAUAFq/SubmissionCount.js","https:/framerusercontent.com/modules/CVIquLqZzpwgOZzUH2h2/a9KpQxMZMhy9BirLejvM/JkyJOTwMP.js","https:/framerusercontent.com/modules/iGUPGnw4e45jcPCfMYvJ/acDIpdzwo23WJ8gfwfXi/siteMetadata.js","https:/framerusercontent.com/modules/xIMPXot7dQrabagclTM9/NgZVFjVGVUjaxvYsxnKz/augiA20Il.js","https:/framerusercontent.com/modules/bOU4TUV3c2grsi2AlKJr/jzL7y79BgOMafhDgOWoI/QUksZG7Zi.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}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";const SPREADSHEET_ID=\"1ym_B7NzUhz3gCE7f_7zR2oJWiJzkXjeTdtiKmi6FE70\";const SHEET_NAME=\"Sheet1\";const API_URL=`https://docs.google.com/spreadsheets/d/${SPREADSHEET_ID}/gviz/tq?tqx=out:json&sheet=${encodeURIComponent(SHEET_NAME)}`;const useStore=createStore({submissionCount:0,isLoading:true});export function withSheetData(Component){return props=>{const[,setStore]=useStore();useEffect(()=>{const fetchData=async()=>{try{const response=await fetch(API_URL);const text=await response.text();const jsonString=text.substring(text.indexOf(\"{\"),text.lastIndexOf(\"}\")+1);const data=JSON.parse(jsonString);const rowCount=data?.table?.rows?.length||0;console.log(\"Google Sheet rows:\",rowCount);setStore({submissionCount:rowCount,isLoading:false});}catch(error){console.error(\"Google Sheets error:\",error);setStore({submissionCount:0,isLoading:false});}};fetchData();},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withSubmissionCount(Component){return props=>{const[store]=useStore();return /*#__PURE__*/_jsx(Component,{...props,text:store.isLoading?\"...\":String(store.submissionCount)});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withSheetData\":{\"type\":\"reactHoc\",\"name\":\"withSheetData\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSubmissionCount\":{\"type\":\"reactHoc\",\"name\":\"withSubmissionCount\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SubmissionCount.map","// Generated by Framer (fe01371)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-H36t5 .framer-styles-preset-1d6wdju:not(.rich-text-wrapper), .framer-H36t5 .framer-styles-preset-1d6wdju.rich-text-wrapper a { --framer-link-text-color: #0099ff; }\"];export const className=\"framer-H36t5\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (fe01371)\nexport default function metadata(params,activeLocale){return{description:\"Your new productivity companion.\",favicon:\"https://framerusercontent.com/assets/FmjdGFjjqPmQYlUADzbl215Cz8s.svg\",robots:\"max-image-preview:large\",title:\"Groove\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (199f97e)\nimport siteMetadata from\"#framer/local/siteMetadata/siteMetadata/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"72rtr7\",mediaQuery:\"(min-width: 1424px)\"},{hash:\"11ettd3\",mediaQuery:\"(min-width: 440px) and (max-width: 1423.98px)\"},{hash:\"1lo8i5m\",mediaQuery:\"(max-width: 439.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{aokHyPkqC:\"insidegroove\",BT08kTXmt:\"firstwave\",eCTWEcZem:\"ourfeatures\",PdteBhV2s:\"joinwaitlist-1\",VEzYxxvE4:\"joinwaitlist\"},robots:\"max-image-preview:large\",serializationId:\"framer-ncbbl\",title:siteMetadata(params,activeLocale).title||\"Home\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (199f97e)\nimport siteMetadata from\"#framer/local/siteMetadata/siteMetadata/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"1p65x5x\",mediaQuery:\"(min-width: 1424px)\"},{hash:\"d0nywt\",mediaQuery:\"(min-width: 440px) and (max-width: 1423.98px)\"},{hash:\"x91tua\",mediaQuery:\"(max-width: 439.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-sgkMw\",title:siteMetadata(params,activeLocale).title||\"Thankyou\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"yLAA8E,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,GA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