{"version":3,"file":"BentoImage.BYf3BdUd.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/dL4u6fQ8jr608Pghmh7i/DnAIWGdCaTUgXAX9jp5n/BentoImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function BentoImage(props){const[isDarkMode,setIsDarkMode]=useState(true);// Function to check and set dark mode based on the data-theme attribute\nconst updateThemeFromAttribute=()=>{const theme=document.documentElement.getAttribute(\"data-theme\");setIsDarkMode(theme===\"dark\");};useEffect(()=>{// Initial theme setup from localStorage or media query\nupdateThemeFromAttribute();// Listen for changes to the data-theme attribute using MutationObserver\nconst observer=new MutationObserver(()=>{updateThemeFromAttribute();});// Observe mutations on the html tag for the data-theme attribute\nobserver.observe(document.documentElement,{attributes:true,attributeFilter:[\"data-theme\"]});return()=>{observer.disconnect();};},[]);// const imageUrl = isDarkMode ? props.darkModeImage : props.lightModeImage\nconst imageUrl=props.darkModeImage;return /*#__PURE__*/_jsx(\"img\",{src:imageUrl,alt:\"\",style:{width:\"100%\",height:\"100%\",objectFit:\"contain\",objectPosition:\"center\"}});}addPropertyControls(BentoImage,{lightModeImage:{type:ControlType.Image,title:\"Light Mode Image\"},darkModeImage:{type:ControlType.Image,title:\"Dark Mode Image\"}});BentoImage.defaultProps={lightModeImage:\"\",darkModeImage:\"\",style:{}};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BentoImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BentoImage.map"],"mappings":"6KAAqI,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,EAAW,GAAeA,EAAS,GAAK,CACvN,MAA6B,CAAiE,EAApD,SAAS,gBAAgB,aAAa,aAAa,GAAuB,OAAO,EAAG,MAAc,CAClJ,GAA0B,CAC1B,IAAM,EAAS,IAAI,qBAAqB,CAAC,GAA0B,EAAG,CACsB,OAA5F,EAAS,QAAQ,SAAS,gBAAgB,CAAC,WAAW,GAAK,gBAAgB,CAAC,aAAa,CAAC,CAAC,KAAW,CAAC,EAAS,YAAY,GAAK,EAAE,CAAC,CACpI,IAAM,EAAS,EAAM,cAAc,OAAoB,EAAK,MAAM,CAAC,IAAI,EAAS,IAAI,GAAG,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,UAAU,eAAe,SAAS,CAAC,CAAC,kBAL5H,IAAsC,IAAoD,CAKoC,EAAoB,EAAW,CAAC,eAAe,CAAC,KAAK,EAAY,MAAM,MAAM,mBAAmB,CAAC,cAAc,CAAC,KAAK,EAAY,MAAM,MAAM,kBAAkB,CAAC,CAAC,CAAC,EAAW,aAAa,CAAC,eAAe,GAAG,cAAc,GAAG,MAAM,EAAE,CAAC"}