{"version":3,"file":"ThemeImage.3FOUH7bV.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/VlRi7odlNX6FsTd0Rkvx/G9hSUDBqASoBuZls4Kcs/ThemeImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function ThemeImage({lightImage,darkImage,altImage}){const[isDarkMode,setIsDarkMode]=React.useState(false);React.useEffect(()=>{const htmlEl=document.documentElement;const checkTheme=()=>{const toggleTheme=htmlEl.getAttribute(\"toggle-theme\");const framerTheme=htmlEl.getAttribute(\"data-framer-theme\");const isDark=toggleTheme===\"dark\"||framerTheme===\"dark\";setIsDarkMode(isDark);};checkTheme();const observer=new MutationObserver(()=>{checkTheme();});observer.observe(htmlEl,{attributes:true,attributeFilter:[\"toggle-theme\",\"data-framer-theme\"]});return()=>{observer.disconnect();};},[]);return /*#__PURE__*/_jsx(\"img\",{src:isDarkMode?darkImage:lightImage,alt:altImage,style:{width:\"inherit\",height:\"inherit\",objectFit:\"contain\"}});}addPropertyControls(ThemeImage,{lightImage:{title:\"Light Mode Image\",type:ControlType.Image},darkImage:{title:\"Dark Mode Image\",type:ControlType.Image},altImage:{title:\"alt Image\",type:ControlType.String}});\nexport const __FramerMetadata__ = {\"exports\":{\"ThemeImage\":{\"type\":\"reactComponent\",\"name\":\"ThemeImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ThemeImage.map"],"mappings":"iLAA2H,SAAgB,EAAW,CAAC,aAAW,YAAU,YAAU,CAAC,GAAK,CAAC,EAAW,GAAeA,EAAe,GAAM,CAAke,OAAje,MAAoB,CAAC,IAAM,EAAO,SAAS,gBAAsB,MAAe,CAAC,IAAM,EAAY,EAAO,aAAa,eAAe,CAAO,EAAY,EAAO,aAAa,oBAAoB,CAAyD,EAA3C,IAAc,QAAQ,IAAc,OAA4B,EAAG,GAAY,CAAC,IAAM,EAAS,IAAI,qBAAqB,CAAC,GAAY,EAAG,CAAiG,OAAhG,EAAS,QAAQ,EAAO,CAAC,WAAW,GAAK,gBAAgB,CAAC,eAAe,oBAAoB,CAAC,CAAC,KAAW,CAAC,EAAS,YAAY,GAAK,EAAE,CAAC,CAAqB,EAAK,MAAM,CAAC,IAAI,EAAW,EAAU,EAAW,IAAI,EAAS,MAAM,CAAC,MAAM,UAAU,OAAO,UAAU,UAAU,UAAU,CAAC,CAAC,kBAAlzB,IAA4B,IAAoD,CAAouB,EAAoB,EAAW,CAAC,WAAW,CAAC,MAAM,mBAAmB,KAAK,EAAY,MAAM,CAAC,UAAU,CAAC,MAAM,kBAAkB,KAAK,EAAY,MAAM,CAAC,SAAS,CAAC,MAAM,YAAY,KAAK,EAAY,OAAO,CAAC,CAAC"}