{"version":3,"file":"Examples.Bfa3upbA.mjs","names":["useState","useState","useMemo","_Fragment","useRef","useCallback"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js","https:/framer.com/m/framer/utils.js@^0.9.0","https:/framerusercontent.com/modules/nM0AdeNfxMgHf8AbDAx7/Mb2AHYTFHMUDV4Ob0kfu/Examples.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","export const centerContent = {\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nexport const autoSizingText = {\n    width: \"max-content\",\n    wordBreak: \"break-word\",\n    overflowWrap: \"break-word\",\n    overflow: \"hidden\",\n    whiteSpace: \"pre-wrap\",\n    flexShrink: 0\n};\nexport const defaultContainerStyles = {\n    ...centerContent,\n    overflow: \"hidden\"\n};\nexport const containerStyles = defaultContainerStyles;\nexport const randomColor = ()=>\"#\" + Math.floor(Math.random() * 16777215).toString(16)\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"centerContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"autoSizingText\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultContainerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomColor\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./Utils.map","/*\n * Utils (framer/utils@0.9.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js\"\n","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,startTransition,useCallback,useEffect,useMemo,useRef,useState}from\"react\";import{useIsStaticRenderer}from\"framer\";import{createPortal}from\"react-dom\";// @ts-expect-error - available at runtime in Framer\nimport{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// @ts-expect-error - available at runtime in Framer\nimport{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.05}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});});}const FUNDING_PATH=\"/blog/5u-ai-raises-3-2m-pre-seed-funding\";const FUNDING_UNLOCK_AT_MS=Date.UTC(2026,6,28,8,30,0,0)// 11:30 Türkiye (UTC+3)\n;function getLockSnapshot(){if(typeof window===\"undefined\"){return{isTargetPath:false,nowMs:Number.POSITIVE_INFINITY};}return{isTargetPath:window.location.pathname===FUNDING_PATH,nowMs:Date.now()};}function formatCountdown(remainingMs){const totalSeconds=Math.max(0,Math.floor(remainingMs/1e3));const days=Math.floor(totalSeconds/86400);const hours=Math.floor(totalSeconds%86400/3600);const minutes=Math.floor(totalSeconds%3600/60);const seconds=totalSeconds%60;if(days>0)return`${days}d ${hours}h ${minutes}m ${seconds}s`;return`${hours}h ${minutes}m ${seconds}s`;}export function withFundingEmbargo(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const initial=getLockSnapshot();const[isTargetPath,setIsTargetPath]=useState(initial.isTargetPath);const[nowMs,setNowMs]=useState(initial.nowMs);useEffect(()=>{if(typeof window===\"undefined\")return;const sync=()=>{startTransition(()=>{setIsTargetPath(window.location.pathname===FUNDING_PATH);setNowMs(Date.now());});};sync();const intervalId=window.setInterval(sync,1e3);window.addEventListener(\"popstate\",sync);return()=>{window.clearInterval(intervalId);window.removeEventListener(\"popstate\",sync);};},[]);const isLocked=isTargetPath&&nowMs<FUNDING_UNLOCK_AT_MS;const countdownLabel=useMemo(()=>formatCountdown(FUNDING_UNLOCK_AT_MS-nowMs),[nowMs]);useEffect(()=>{if(typeof document===\"undefined\")return;const html=document.documentElement;const body=document.body;const previousHtmlOverflow=html.style.overflow;const previousBodyOverflow=body.style.overflow;if(isLocked){html.style.overflow=\"hidden\";body.style.overflow=\"hidden\";}return()=>{html.style.overflow=previousHtmlOverflow;body.style.overflow=previousBodyOverflow;};},[isLocked]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Component,{ref:ref,...props}),isLocked&&typeof document!==\"undefined\"&&/*#__PURE__*/createPortal(/*#__PURE__*/_jsx(\"div\",{role:\"status\",\"aria-live\":\"polite\",\"aria-atomic\":\"true\",style:{position:\"fixed\",inset:0,zIndex:2147483647,background:\"#FFFFFF\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\",padding:\"24px\",boxSizing:\"border-box\",color:\"#000000\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:560},children:[/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:28,lineHeight:\"1.1em\",letterSpacing:\"-0.02em\",fontWeight:600},children:\"Press release under embargo\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"12px 0 0 0\",fontSize:16,lineHeight:\"1.4em\",color:\"#333333\"},children:\"28 July 2026 at 11:30 (T\\xfcrkiye time).\"}),/*#__PURE__*/_jsxs(\"p\",{style:{margin:\"14px 0 0 0\",fontSize:15,lineHeight:\"1.4em\",color:\"#111111\"},children:[\"Unlocks in \",countdownLabel]})]})}),document.body)]});});}export function withCookieDeclaration(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const isStatic=useIsStaticRenderer();const[rootElement,setRootElement]=useState(null);const insertedContainerRef=useRef(null);const targetSuffix=useMemo(()=>\"(please note that the specific cookies served may vary depending on the specific Online Properties you visit):\",[]);const setCombinedRef=useCallback(node=>{startTransition(()=>{setRootElement(node);});if(typeof ref===\"function\"){ref(node);}else if(ref&&typeof ref===\"object\"){ref.current=node;}},[ref]);useEffect(()=>{if(isStatic||typeof window===\"undefined\")return;if(!rootElement)return;const existing=rootElement.querySelector('[data-cookie-declaration-container=\"true\"]');if(existing){insertedContainerRef.current=existing;return;}const paragraphs=Array.from(rootElement.querySelectorAll(\"p\"));const targetParagraph=paragraphs.find(paragraph=>paragraph.textContent?.trim().endsWith(targetSuffix));if(!targetParagraph||!targetParagraph.parentNode)return;const container=document.createElement(\"div\");container.setAttribute(\"data-cookie-declaration-container\",\"true\");container.style.width=\"100%\";container.style.maxWidth=\"100%\";container.style.minHeight=\"520px\";container.style.height=\"520px\";container.style.overflowX=\"auto\";container.style.overflowY=\"hidden\";container.style.boxSizing=\"border-box\";container.style.position=\"relative\";const script=document.createElement(\"script\");script.id=\"CookieDeclaration\";script.src=\"https://consent.cookiebot.com/aaeee97d-ee9f-43c8-b534-61880f9095f9/cd.js\";script.type=\"text/javascript\";script.async=true;container.appendChild(script);targetParagraph.parentNode.insertBefore(container,targetParagraph.nextSibling);insertedContainerRef.current=container;return()=>{if(insertedContainerRef.current&&insertedContainerRef.current.parentNode){insertedContainerRef.current.parentNode.removeChild(insertedContainerRef.current);}insertedContainerRef.current=null;};},[isStatic,rootElement,targetSuffix]);return /*#__PURE__*/_jsx(Component,{ref:setCombinedRef,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withFundingEmbargo\":{\"type\":\"reactHoc\",\"name\":\"withFundingEmbargo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCookieDeclaration\":{\"type\":\"reactHoc\",\"name\":\"withCookieDeclaration\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"kQAA8E,SAAgB,EAAY,EAAO,CACjH,IAAM,EAAU,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAG,CAAM,CAAC,CAAC,CAAC,EACjD,EAAa,GAAU,CAC1B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAU,KAAK,GAAG,EAAU,MAAM,OAAO,OAAO,CAAC,GAAG,EAAU,MAAM,GAAG,CAAQ,CAAC,CAAE,EACjI,EAAW,OAAO,GAAS,SAAS,OAAO,OAAO,CAAC,GAAG,CAAM,CAAC,EAAE,EAC7D,EAAa,IAAI,IACjB,EAAc,GAAU,CAC3B,OAAO,GAAW,aAAY,EAAS,EAAS,CAAU,GAAG,EAAW,OAAO,GAAW,SAAS,OAAO,OAAO,CAAC,GAAG,EAAW,GAAG,CAAQ,CAAC,EAAE,EACjJ,EAAa,QAAQ,GAAQ,EAAO,CAAU,CAAC,CAAE,EACjD,SAAS,GAAU,CACnB,GAAK,CAAC,EAAM,GAAUA,EAAS,CAAU,EAKzC,OAHA,OACA,EAAa,IAAI,CAAQ,MAAY,EAAa,OAAO,CAAQ,GAAI,CAAC,CAAC,EACpE,EAAe,IAAI,IAAM,EAAe,EAAQ,CAAC,EAAU,MAAM,CAAY,GAC1E,CAAC,EAAM,CAAa,CAAG,CAAC,OAAO,CAAS,iBAfT,IAAwC,kCEAhE,EAAgB,CACzB,QAAS,OACT,eAAgB,SAChB,WAAY,QAChB,EAWI,CADA,GAAG,CACO,sBEXb,SAAS,GAAiB,CAA4F,OAAjF,IAAS,OAAmB,CAAC,aAAa,GAAM,MAAM,GAAwB,EAAS,CAAC,aAAa,EAAO,SAAS,WAAW,EAAa,MAAM,KAAK,IAAI,CAAC,CAAE,CAAC,SAAS,EAAgB,EAAY,CAAC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