{"version":3,"file":"GuideCard.D5k5Yok5.mjs","names":["useState","useContext","__esmMin","oe","_e","c","init_jsx_runtime","B","init_npm_react_18_3_1","withGuideCard","hover","setHover","Hovered","Component","props","withGuideZoom","withHoverReveal","init_GuideCard"],"sources":["https:/framerusercontent.com/modules/VZT3ObpOUTWrmXk7YIWV/wrt9xFlncYBcfaQNxJx9/GuideCard.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{createContext,useContext,useState}from\"react\";// Hover cards (guides and client cards).\n// withGuideCard goes on the card and tracks hover.\n// withGuideZoom goes on the image inside: it zooms 3% while the card is hovered.\n// withHoverReveal goes on the centred label over the image: it fades in while the card is hovered.\n// The lift and shadow are Framer's own hover effect on the card.\nconst Hovered=/*#__PURE__*/createContext(false);export function withGuideCard(Component){return props=>{const[hover,setHover]=useState(false);return /*#__PURE__*/_jsx(Hovered.Provider,{value:hover,children:/*#__PURE__*/_jsx(Component,{...props,onMouseEnter:e=>{setHover(true);props.onMouseEnter?.(e);},onMouseLeave:e=>{setHover(false);props.onMouseLeave?.(e);}})});};}export function withGuideZoom(Component){return props=>{const hover=useContext(Hovered);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,transform:hover?\"scale(1.03)\":\"scale(1)\",transition:\"transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1)\"}});};}export function withHoverReveal(Component){return props=>{const hover=useContext(Hovered);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,opacity:hover?1:0,transform:hover?\"translateY(0px)\":\"translateY(6px)\",transition:\"opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1)\",pointerEvents:\"none\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withGuideZoom\":{\"type\":\"reactHoc\",\"name\":\"withGuideZoom\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHoverReveal\":{\"type\":\"reactHoc\",\"name\":\"withHoverReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGuideCard\":{\"type\":\"reactHoc\",\"name\":\"withGuideCard\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GuideCard.map"],"mappings":"A,gIAKgD,SAAgBS,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAACC,EAAMC,GAAUX,EAAS,EAAK,EAAE,MAAoB,gBAAKY,EAAQ,SAAS,CAAC,MAAMF,EAAM,SAAsB,gBAAKG,EAAU,CAAC,GAAGC,EAAM,aAAa,GAAG,CAACH,EAAS,EAAI,EAAEG,EAAM,eAAe,CAAC,CAAE,EAAE,aAAa,GAAG,CAACH,EAAS,EAAK,EAAEG,EAAM,eAAe,CAAC,CAAE,CAAC,CAAC,CAAC,CAAC,CAAE,CAAE,CAAC,SAAgBC,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,IAAML,EAAMT,EAAWW,CAAO,EAAE,MAAoB,gBAAKC,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,UAAUJ,EAAM,cAAc,WAAW,WAAW,+CAA+C,CAAC,CAAC,CAAE,CAAE,CAAC,SAAgBM,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAMN,EAAMT,EAAWW,CAAO,EAAE,MAAoB,gBAAKC,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,QAAQ,KAAU,UAAUJ,EAAM,kBAAkB,kBAAkB,WAAW,qEAAqE,cAAc,MAAM,CAAC,CAAC,CAAE,CAAE,C,4CAA57B,EAAqB,gBAAc,EAAK,C"}