{"version":3,"file":"cursor.DEQINBKt.mjs","names":[],"sources":["https:/framerusercontent.com/modules/YLn7PaLfeeVhvQTqUznc/1XjbtuxXI19flrprYxrV/cursor.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\";// Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore=createStore({backgroundVariant:\"default\",iconVariant:\"default\"});export function withVariant(Component){return props=>{const[mousePosition,setMousePosition]=useState({x:0,y:0});useEffect(()=>{const mouseMove=e=>{setMousePosition({x:e.clientX,y:e.clientY});};window.addEventListener(\"mousemove\",mouseMove);return()=>{window.removeEventListener(\"mousemove\",mouseMove);};},[]);const variants={default:{x:mousePosition.x-4,y:mousePosition.y-4,background:\"rgba(0, 0, 0, 1)\",backdropFilter:\"blur(0px)\",width:8,height:8},transparentDark:{x:mousePosition.x-32,y:mousePosition.y-32,background:\"rgba(0, 0, 0, 0.4)\",backdropFilter:\"blur(10px)\",width:64,height:64},transparentLight:{x:mousePosition.x-32,y:mousePosition.y-32,background:\"rgba(250, 251, 252, 0.4)\",backdropFilter:\"blur(10px)\",width:64,height:64},invert:{x:mousePosition.x-32,y:mousePosition.y-32,background:\"rgba(30, 30, 30, 0)\",backdropFilter:\"invert(1)\",width:64,height:64},black:{x:mousePosition.x-32,y:mousePosition.y-32,background:\"rgba(0, 0, 0, 1)\",backdropFilter:\"blur(0px)\",width:64,height:64},white:{x:mousePosition.x-32,y:mousePosition.y-32,background:\"rgba(255, 255, 255, 1)\",backdropFilter:\"blur(0px)\",width:64,height:64},avatar:{x:mousePosition.x+32,y:mousePosition.y-32,width:64,height:64}};const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,style:{pointerEvents:\"none\"},variants:variants,animate:store.backgroundVariant,transition:{x:{type:\"spring\",shiftness:900,mass:.01},y:{type:\"spring\",shiftness:900,mass:.01}}});};}export function withVariantIconExpandWhite(Component){return props=>{const[store,setStore]=useStore();const variants={default:{scale:0},show:{scale:1}};return /*#__PURE__*/ _jsx(Component,{...props,variants:variants,animate:store.iconVariant===\"expandWhite\"?\"show\":\"default\"});};}export function withVariantIconExpandBlack(Component){return props=>{const[store,setStore]=useStore();const variants={default:{scale:0},show:{scale:1}};return /*#__PURE__*/ _jsx(Component,{...props,variants:variants,animate:store.iconVariant===\"expandBlack\"?\"show\":\"default\"});};}export function withVariantIconArrow(Component){return props=>{const[store,setStore]=useStore();const variants={default:{scale:0,rotate:0},left:{scale:1,rotate:0},right:{scale:1,rotate:180}};return /*#__PURE__*/ _jsx(Component,{...props,variants:variants,animate:store.iconVariant===\"arrowLeft\"?\"left\":store.iconVariant===\"arrowRight\"?\"right\":\"default\",transition:{rotate:{shiftness:500,damping:60}}});};}export function withVariantIconRemix(Component){return props=>{const[store,setStore]=useStore();const variants={default:{opacity:0,x:-20},show:{opacity:1,x:0}};return /*#__PURE__*/ _jsx(Component,{...props,variants:variants,animate:store.iconVariant===\"remix\"?\"show\":\"default\",transition:{rotate:{shiftness:500,damping:60}}});};}export function withVariantAvatar(Component){return props=>{const[store,setStore]=useStore();const variants={default:{scale:0},show:{scale:1}};return /*#__PURE__*/ _jsx(Component,{...props,variants:variants,animate:store.iconVariant===\"avatar\"?\"show\":\"default\"});};}export function withHoveriOSDark(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,onMouseEnter:()=>{setStore({backgroundVariant:\"transparentDark\"});},onMouseLeave:()=>{setStore({backgroundVariant:\"default\"});}});};}export function withHoveriOSLight(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,onMouseEnter:()=>{setStore({backgroundVariant:\"transparentLight\"});},onMouseLeave:()=>{setStore({backgroundVariant:\"default\"});}});};}export function withHoverInvert(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,onMouseEnter:()=>{setStore({backgroundVariant:\"invert\"});},onMouseLeave:()=>{setStore({backgroundVariant:\"default\"});}});};}export function withHoverIconExpandDark(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,onMouseEnter:()=>{setStore({backgroundVariant:\"black\",iconVariant:\"expandWhite\"});},onMouseLeave:()=>{setStore({backgroundVariant:\"default\",iconVariant:\"default\"});}});};}export function withHoverIconExpandLight(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,onMouseEnter:()=>{setStore({backgroundVariant:\"white\",iconVariant:\"expandBlack\"});},onMouseLeave:()=>{setStore({backgroundVariant:\"default\",iconVariant:\"default\"});}});};}export function withHoverIconArrowLeft(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,onMouseEnter:()=>{setStore({backgroundVariant:\"white\",iconVariant:\"arrowLeft\"});},onMouseLeave:()=>{setStore({backgroundVariant:\"default\",iconVariant:\"default\"});}});};}export function withHoverIconArrowRight(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,onMouseEnter:()=>{setStore({backgroundVariant:\"white\",iconVariant:\"arrowRight\"});},onMouseLeave:()=>{setStore({backgroundVariant:\"default\",iconVariant:\"default\"});}});};}export function withHoverIconRemix(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,onMouseEnter:()=>{setStore({backgroundVariant:\"black\",iconVariant:\"remix\"});},onMouseLeave:()=>{setStore({backgroundVariant:\"default\",iconVariant:\"default\"});}});};}export function withHoverAvatar(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/ _jsx(Component,{...props,onMouseEnter:()=>{setStore({backgroundVariant:\"avatar\",iconVariant:\"avatar\"});},onMouseLeave:()=>{setStore({backgroundVariant:\"default\",iconVariant:\"default\"});}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withHoverIconExpandLight\":{\"type\":\"reactHoc\",\"name\":\"withHoverIconExpandLight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVariantIconRemix\":{\"type\":\"reactHoc\",\"name\":\"withVariantIconRemix\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHoveriOSLight\":{\"type\":\"reactHoc\",\"name\":\"withHoveriOSLight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHoverInvert\":{\"type\":\"reactHoc\",\"name\":\"withHoverInvert\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVariantAvatar\":{\"type\":\"reactHoc\",\"name\":\"withVariantAvatar\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHoverAvatar\":{\"type\":\"reactHoc\",\"name\":\"withHoverAvatar\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVariantIconArrow\":{\"type\":\"reactHoc\",\"name\":\"withVariantIconArrow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVariant\":{\"type\":\"reactHoc\",\"name\":\"withVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHoveriOSDark\":{\"type\":\"reactHoc\",\"name\":\"withHoveriOSDark\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHoverIconExpandDark\":{\"type\":\"reactHoc\",\"name\":\"withHoverIconExpandDark\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHoverIconArrowLeft\":{\"type\":\"reactHoc\",\"name\":\"withHoverIconArrowLeft\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVariantIconExpandBlack\":{\"type\":\"reactHoc\",\"name\":\"withVariantIconExpandBlack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHoverIconRemix\":{\"type\":\"reactHoc\",\"name\":\"withHoverIconRemix\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVariantIconExpandWhite\":{\"type\":\"reactHoc\",\"name\":\"withVariantIconExpandWhite\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHoverIconArrowRight\":{\"type\":\"reactHoc\",\"name\":\"withHoverIconArrowRight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./cursor.map"],"mappings":"0KACmjH,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,GAAU,EAAS,EAAE,OAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,iBAAiB,CAAC,EAAS,CAAC,kBAAkB,QAAQ,CAAC,CAAE,EAAE,iBAAiB,CAAC,EAAS,CAAC,kBAAkB,SAAS,CAAC,CAAE,CAAC,CAAC,CAAE,CAAE,uBAD7wH,IAAsC,IAAqE,EAC/I,EAAS,EAAY,CAAC,kBAAkB,UAAU,YAAY,SAAS,CAAC"}