{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/d2YdEIGgLdLocGuN0O9k/StWJN5Z1EPAsX3GE6A7X/examples.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";// Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export const useIpwhois=ip=>{const[val,setval]=useState(null);useEffect(()=>{const fetchData=async()=>{const BASE_URL=\"https://ipwhois.pro/?key=MjdM2iBKJn5AXnCH\";try{const result=await fetch(BASE_URL);const data=await result.json();setval(data);}catch(e){console.log(e);}};void fetchData();},[ip]);return val;};/**\n * @summary Redirects non-US users to Typeform based on country_code value.\n */export function withLinkRedirect(Component){const queryString=window?.location.search;const params=queryString?`&${queryString.substring(1)}`:\"\";return props=>{const data=useIpwhois();return /*#__PURE__*/_jsx(Component,{...props,link:data?.success===true&&data?.country_code!==\"US\"?\"https://levels.link/waitlist-international?utm_campaign=homepage\":`https://app.levels.com/join?quiz=true${params}`});};}export function withRotate(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,animate:{rotate:90},transition:{duration:2}});};}export function withHover(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,whileHover:{scale:1.05}});};}export function withRandomColor(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"useIpwhois\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLinkRedirect\":{\"type\":\"reactHoc\",\"name\":\"withLinkRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./examples.map"],
  "mappings": "yIACA,IAAMA,EAASC,EAAY,CAAC,WAAW,SAAS,CAAC,EAAeC,EAAWC,GAAI,CAAC,GAAK,CAACC,EAAIC,CAAM,EAAEC,EAAS,IAAI,EAAE,OAAAC,EAAU,IAAI,EAAiB,SAAS,CAAC,IAAMC,EAAS,4CAA4C,GAAG,CAAoC,IAAMC,EAAK,MAAjC,MAAM,MAAMD,CAAQ,GAA0B,KAAK,EAAEH,EAAOI,CAAI,CAAE,OAAOC,EAAN,CAAS,QAAQ,IAAIA,CAAC,CAAE,CAAC,GAAiB,CAAE,EAAE,CAACP,CAAE,CAAC,EAASC,CAAI,EAE9V,SAASO,EAAiBC,EAAU,CAAC,IAAMC,EAAYC,GAAQ,SAAS,OAAaC,EAAOF,EAAY,IAAIA,EAAY,UAAU,CAAC,IAAI,GAAG,OAAOG,GAAO,CAAC,IAAMP,EAAKP,EAAW,EAAE,OAAoBe,EAAKL,EAAU,CAAC,GAAGI,EAAM,KAAKP,GAAM,UAAU,IAAMA,GAAM,eAAe,KAAK,mEAAmE,wCAAwCM,GAAQ,CAAC,CAAE,CAAE",
  "names": ["useStore", "createStore", "useIpwhois", "ip", "val", "setval", "ye", "ue", "BASE_URL", "data", "e", "withLinkRedirect", "Component", "queryString", "window", "params", "props", "p"]
}
