{"version":3,"file":"shared-lib.DPcI8ACc.mjs","names":[],"sources":["https:/framerusercontent.com/modules/v5xRnGnnoJ4Z8BzCZq72/nMOtNmE2CzlPWCoBAdmC/ScrollStar.js","https:/framerusercontent.com/modules/nygh8tTxzHFLtt08YuRX/RP2li2P19scDiWOgYsfo/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useMotionValue,useTransform}from\"framer-motion\";/**\n * Scroll-linked star animation that rotates based on scroll direction\n * Spins right when scrolling down, left when scrolling up\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ScrollStar(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Star\"},rotationSpeed=1,position=\"relative\",zIndex=1,top=\"auto\",left=\"auto\",right=\"auto\",bottom=\"auto\"}=props;const isStatic=useIsStaticRenderer();const scrollY=useMotionValue(0);const rotation=useTransform(scrollY,value=>value*rotationSpeed);useEffect(()=>{if(isStatic||typeof window===\"undefined\")return;const handleScroll=()=>{startTransition(()=>{scrollY.set(window.scrollY);});};window.addEventListener(\"scroll\",handleScroll,{passive:true});handleScroll();return()=>{window.removeEventListener(\"scroll\",handleScroll);};},[scrollY,isStatic]);if(isStatic){return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",position,zIndex,top,left,right,bottom,overflow:position===\"fixed\"?\"visible\":\"hidden\"},children:/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt||\"Star\",style:{width:\"100%\",height:\"100%\",objectFit:\"contain\"}})});}return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",position,zIndex,top,left,right,bottom,overflow:position===\"fixed\"?\"visible\":\"hidden\"},children:/*#__PURE__*/_jsx(motion.img,{src:image.src,alt:image.alt||\"Star\",style:{width:\"100%\",height:\"100%\",objectFit:\"contain\",rotate:rotation}})});}addPropertyControls(ScrollStar,{image:{type:ControlType.ResponsiveImage,title:\"Star Image\"},rotationSpeed:{type:ControlType.Number,title:\"Rotation Speed\",defaultValue:1,min:.1,max:5,step:.1,displayStepper:true},position:{type:ControlType.Enum,title:\"Position\",options:[\"relative\",\"absolute\",\"fixed\"],optionTitles:[\"Relative\",\"Absolute\",\"Fixed\"],defaultValue:\"relative\",displaySegmentedControl:true},zIndex:{type:ControlType.Number,title:\"Z-Index\",defaultValue:1,min:-10,max:100,step:1,displayStepper:true},top:{type:ControlType.Enum,title:\"Top\",options:[\"auto\",\"0\",\"50%\",\"100%\",\"-50%\",\"-100%\"],optionTitles:[\"Auto\",\"0\",\"50%\",\"100%\",\"-50%\",\"-100%\"],defaultValue:\"auto\"},left:{type:ControlType.Enum,title:\"Left\",options:[\"auto\",\"0\",\"50%\",\"100%\",\"-50%\",\"-100%\"],optionTitles:[\"Auto\",\"0\",\"50%\",\"100%\",\"-50%\",\"-100%\"],defaultValue:\"auto\"},right:{type:ControlType.Enum,title:\"Right\",options:[\"auto\",\"0\",\"50%\",\"100%\",\"-50%\",\"-100%\"],optionTitles:[\"Auto\",\"0\",\"50%\",\"100%\",\"-50%\",\"-100%\"],defaultValue:\"auto\"},bottom:{type:ControlType.Enum,title:\"Bottom\",options:[\"auto\",\"0\",\"50%\",\"100%\",\"-50%\",\"-100%\"],optionTitles:[\"Auto\",\"0\",\"50%\",\"100%\",\"-50%\",\"-100%\"],defaultValue:\"auto\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollStar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"200\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollStar.map","// Generated by Framer (f2f96df)\nexport default function metadata(params,activeLocale){return{robots:\"max-image-preview:large\",title:\"Varvara Podvalny 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":"sQASG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,sEAAsE,IAAI,OAAO,CAAC,gBAAc,EAAE,WAAS,WAAW,SAAO,EAAE,MAAI,OAAO,OAAK,OAAO,QAAM,OAAO,SAAO,QAAQ,EAAY,EAAS,GAAqB,CAAO,EAAQ,EAAe,EAAE,CAAO,EAAS,EAAa,EAAQ,GAAO,EAAM,EAAc,CAAkpB,OAAjpB,MAAc,CAAC,GAAG,GAAiB,IAAS,OAAY,OAAO,IAAM,MAAiB,CAAC,MAAoB,CAAC,EAAQ,IAAI,EAAO,QAAQ,EAAG,EAAgF,OAA7E,EAAO,iBAAiB,SAAS,EAAa,CAAC,QAAQ,GAAK,CAAC,CAAC,GAAc,KAAW,CAAC,EAAO,oBAAoB,SAAS,EAAa,GAAK,CAAC,EAAQ,EAAS,CAAC,CAAI,EAA8B,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,WAAS,SAAO,MAAI,OAAK,QAAM,SAAO,SAAS,IAAW,QAAQ,UAAU,SAAS,CAAC,SAAsB,EAAK,MAAM,CAAC,IAAI,EAAM,IAAI,IAAI,EAAM,KAAK,OAAO,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU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