{"version":3,"file":"shared-lib.457dRn_5.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/QXCYRhEyNLuqVcx0RYmp/7X3Lybx2tOSmAs0gUtPi/Mobile_height.js","https:/framerusercontent.com/modules/87pRT6qg8426FOOgPOuC/2zqzaHLojtLaYWrFrrla/Theme_Time.js","https:/framerusercontent.com/modules/3SYDS3R9smaASEYG71aA/VEsOkAHeh78oFGtZKnoC/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export const dynamicViewportHeight=Component=>{return props=>{const[isMobile,setIsMobile]=useState(false);useEffect(()=>{const mq=window.matchMedia(\"(max-width: 768px)\");const update=ev=>setIsMobile(ev?ev.matches:mq.matches);update();if(mq.addEventListener)mq.addEventListener(\"change\",update);else mq.addListener(update);return()=>{if(mq.removeEventListener)mq.removeEventListener(\"change\",update);else mq.removeListener(update);};},[]);useEffect(()=>{if(!isMobile)return;const setVh=()=>{const vv=window.visualViewport;const height=vv?.height??window.innerHeight;document.documentElement.style.setProperty(\"--vh\",`${height*.01}px`);};// do both: immediate and after paint\nsetVh();requestAnimationFrame(setVh);const onResize=()=>setVh();window.addEventListener(\"resize\",onResize);window.addEventListener(\"orientationchange\",onResize);const vv=window.visualViewport;if(vv){vv.addEventListener(\"resize\",onResize);// Arc can change viewport on scroll without a window resize\nvv.addEventListener(\"scroll\",onResize);}return()=>{window.removeEventListener(\"resize\",onResize);window.removeEventListener(\"orientationchange\",onResize);if(vv){vv.removeEventListener(\"resize\",onResize);vv.removeEventListener(\"scroll\",onResize);}};},[isMobile]);if(!isMobile)return /*#__PURE__*/_jsx(Component,{...props});const extraBuffer=28;const wrapperStyle={position:\"fixed\",inset:0,width:\"100%\",height:\"calc(var(--vh, 1vh) * 100)\",boxSizing:\"border-box\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",paddingTop:`calc(env(safe-area-inset-top) + ${extraBuffer}px)`,paddingBottom:`calc(env(safe-area-inset-bottom) + ${extraBuffer}px)`,overflow:\"hidden\",pointerEvents:\"auto\",background:\"transparent\",zIndex:0};return /*#__PURE__*/_jsx(\"div\",{style:wrapperStyle,children:/*#__PURE__*/_jsx(Component,{...props})});};};\nexport const __FramerMetadata__ = {\"exports\":{\"dynamicViewportHeight\":{\"type\":\"reactHoc\",\"name\":\"dynamicViewportHeight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Mobile_height.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";const MODE_KEY=\"currentToggleState\"// widely used by Framer theme toggle snippets\n;const PREF_SOURCE_KEY=\"themePreferenceSource\"// \"auto\" | \"user\"\n;function getOSTheme(){if(typeof window===\"undefined\")return\"light\";return window.matchMedia?.(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\";}function getThemeFromLocalTime(date=new Date){const hour=date.getHours();return hour>=18||hour<6?\"dark\":\"light\";}function findThemeStyleTag(){if(typeof document===\"undefined\")return null;const tags=Array.from(document.querySelectorAll(\"style\"));return tags.find(t=>t.innerHTML.includes(\"prefers-color-scheme\"))??null;}/**\n * Framer’s dark theme styles are usually wrapped in an @media (prefers-color-scheme: dark) block.\n * To force a theme, we flip the media query value so the visitor’s OS theme causes the desired\n * Framer block to apply (or not apply).\n */function forceFramerTheme(desired){if(typeof window===\"undefined\")return;const styleTag=findThemeStyleTag();if(!styleTag)return;const osTheme=getOSTheme();const mediaQueryValue=desired===osTheme?\"dark\":\"light\";const nextCSS=styleTag.innerHTML.replace(/prefers-color-scheme:\\s*\\w+/g,`prefers-color-scheme: ${mediaQueryValue}`);if(nextCSS!==styleTag.innerHTML)styleTag.innerHTML=nextCSS;window.dispatchEvent(new CustomEvent(\"themeChange\"));}export function withAutoThemeByLocalTime(Component){return props=>{useEffect(()=>{if(typeof window===\"undefined\")return;const source=localStorage.getItem(PREF_SOURCE_KEY);if(source===\"user\")return;const apply=()=>{const desired=getThemeFromLocalTime();localStorage.setItem(MODE_KEY,desired);localStorage.setItem(PREF_SOURCE_KEY,\"auto\");forceFramerTheme(desired);};apply();// Re check periodically so the theme flips if the visitor stays on the page past the cutoff\nconst intervalId=window.setInterval(apply,5*60*1e3);return()=>window.clearInterval(intervalId);},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withAutoThemeByLocalTime\":{\"type\":\"reactHoc\",\"name\":\"withAutoThemeByLocalTime\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Theme_Time.map","// Generated by Framer (293632e)\nexport default function metadata(params,activeLocale){return{description:\"Thrive Capital builds and invests in internet, software, and technology-enabled companies\",favicon:\"https://framerusercontent.com/assets/TGqjrXnShLAzStgfXNW5NQKF0xI.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/DE67fmTqkUvDss4wxk9dAkWZQ.gif\",title:\"Thrive Capital\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"8JAA2C,IAAsC,CAAa,EAAsB,GAAmB,GAAO,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAS,GAAM,CAE2hB,OAF1hB,MAAc,CAAC,IAAM,EAAG,EAAO,WAAW,qBAAqB,CAAO,EAAO,GAAI,EAAY,EAAG,EAAG,QAAQ,EAAG,QAAQ,CAAkG,OAAjG,GAAQ,CAAI,EAAG,iBAAiB,EAAG,iBAAiB,SAAS,EAAO,CAAM,EAAG,YAAY,EAAO,KAAW,CAAI,EAAG,oBAAoB,EAAG,oBAAoB,SAAS,EAAO,CAAM,EAAG,eAAe,EAAO,GAAK,EAAE,CAAC,CAAC,MAAc,CAA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