{"version":3,"file":"shared-lib.gTSk7Wcf.mjs","names":["useState","useState","useRef","useCallback","_Fragment"],"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/UHUsuJfVLYVweyhxsTrl/Md8iKCW59RzvT8QJ7slz/Examples.js","https:/framerusercontent.com/modules/ouxBOE5YPlkIErsoND7M/jOY2ajwTBXMGjxtO0ixS/siteMetadata.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,useRef,useState}from\"react\";import{useIsStaticRenderer}from\"framer\";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/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()});}});});}export function withSparkleTrail(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const isStaticRenderer=useIsStaticRenderer();const[particles,setParticles]=useState([]);const lastSpawnRef=useRef(0);const particleIdRef=useRef(0);const timeoutRef=useRef(new Map);const clearParticle=useCallback(id=>{startTransition(()=>{setParticles(prev=>prev.filter(particle=>particle.id!==id));});const timeoutId=timeoutRef.current.get(id);if(timeoutId){window.clearTimeout(timeoutId);timeoutRef.current.delete(id);}},[]);useEffect(()=>{return()=>{timeoutRef.current.forEach(timeoutId=>{if(typeof window!==\"undefined\"){window.clearTimeout(timeoutId);}});timeoutRef.current.clear();};},[]);const spawnParticle=useCallback((x,y)=>{const id=particleIdRef.current++;const colors=[\"#FF4FD8\",\"#FFFFFF\",\"#E7DAFF\"];const weightedColor=Math.random()<.56?colors[0]:Math.random()<.88?colors[1]:colors[2];const glyph=Math.random()<.55?\"✦\":Math.random()<.75?\"✧\":\"✶\";const duration=360+Math.random()*280;const particle={id,x,y,size:10+Math.random()*8,color:weightedColor,glyph,duration,driftX:(Math.random()-.5)*18,driftY:-8-Math.random()*16,rotate:(Math.random()-.5)*40};startTransition(()=>{setParticles(prev=>{const maxParticles=28;const next=[...prev,particle];return next.length>maxParticles?next.slice(next.length-maxParticles):next;});});if(typeof window!==\"undefined\"){const timeoutId=window.setTimeout(()=>{clearParticle(id);},duration+48);timeoutRef.current.set(id,timeoutId);}},[clearParticle]);const handlePointerMove=useCallback(event=>{props.onPointerMove?.(event);if(isStaticRenderer)return;if(event.pointerType&&event.pointerType!==\"mouse\")return;const now=performance.now();const throttleMs=42;if(now-lastSpawnRef.current<throttleMs)return;lastSpawnRef.current=now;spawnParticle(event.clientX,event.clientY);if(Math.random()<.26){spawnParticle(event.clientX+(Math.random()-.5)*12,event.clientY+(Math.random()-.5)*10);}},[isStaticRenderer,props,spawnParticle]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Component,{ref:ref,...props,onPointerMove:handlePointerMove}),!isStaticRenderer&&/*#__PURE__*/_jsxs(\"div\",{\"aria-hidden\":true,style:{position:\"fixed\",inset:0,pointerEvents:\"none\",zIndex:2147483647,overflow:\"hidden\"},children:[particles.map(particle=>/*#__PURE__*/_jsx(\"span\",{style:{position:\"fixed\",left:particle.x,top:particle.y,transform:\"translate(-50%, -50%)\",color:particle.color,fontSize:particle.size,lineHeight:1,opacity:.9,willChange:\"transform, opacity\",animationName:\"framerSparkleTrailFade\",animationDuration:`${particle.duration}ms`,animationTimingFunction:\"cubic-bezier(0.16, 0.84, 0.22, 1)\",animationFillMode:\"forwards\",textShadow:particle.color===\"#FFFFFF\"?\"0 0 8px rgba(255,255,255,0.38)\":\"0 0 10px rgba(255,79,216,0.4)\",[\"--sparkle-drift-x\"]:`${particle.driftX}px`,[\"--sparkle-drift-y\"]:`${particle.driftY}px`,[\"--sparkle-rotate\"]:`${particle.rotate}deg`},children:particle.glyph},particle.id)),/*#__PURE__*/_jsx(\"style\",{children:`\n                            @keyframes framerSparkleTrailFade {\n                                0% {\n                                    opacity: 0.92;\n                                    transform: translate(-50%, -50%) scale(1) rotate(0deg);\n                                }\n                                100% {\n                                    opacity: 0;\n                                    transform: translate(calc(-50% + var(--sparkle-drift-x)), calc(-50% + var(--sparkle-drift-y))) scale(0.55) rotate(var(--sparkle-rotate));\n                                }\n                            }\n                        `})]})]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSparkleTrail\":{\"type\":\"reactHoc\",\"name\":\"withSparkleTrail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map","// Generated by Framer (8a671e2)\nexport default function metadata(params,activeLocale){return{description:\"Graphic & Motion Designer\",favicon:\"https://framerusercontent.com/assets/xVCQYtAxbuDqkLT8gKJt7IK9v6M.jpeg\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/ko8q5AHibrWAwaIC4mUl138k.png\",title:\"Varvara's Portfolio\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"iPAA8E,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,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