{"version":3,"file":"Themeresponsive6variants.DAzzSW9U.mjs","names":["__legacyOverrideHOC_DataObserverContext"],"sources":["https:/framerusercontent.com/modules/rwtWaY2tvl5iiHOOczB9/4sPFcL4FYpVuexJeA3pY/Themeresponsive6variants.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";export function ThemeResponsiveVariant(){const[isDarkMode,setIsDarkMode]=React.useState(false);const[deviceType,setDeviceType]=React.useState(\"desktop\");// System theme detection\nReact.useEffect(()=>{const mediaQuery=window.matchMedia(\"(prefers-color-scheme: dark)\");const updateTheme=()=>setIsDarkMode(mediaQuery.matches);updateTheme();mediaQuery.addEventListener(\"change\",updateTheme);return()=>mediaQuery.removeEventListener(\"change\",updateTheme);},[]);// Device detection with your specific breakpoints\nReact.useEffect(()=>{const checkDevice=()=>{const width=window.innerWidth;setDeviceType(width<810?\"phone\":width<1440?\"tablet\":\"desktop\");};checkDevice();window.addEventListener(\"resize\",checkDevice);return()=>window.removeEventListener(\"resize\",checkDevice);},[]);// Construct variant name\nconst theme=isDarkMode?\"Dark\":\"Light\";const device=deviceType.charAt(0).toUpperCase()+deviceType.slice(1)// Capitalize first letter\n;return{variant:`${theme} ${device}`};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withThemeResponsiveVariant(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ThemeResponsiveVariant(props)});};}withThemeResponsiveVariant.displayName=\"ThemeResponsiveVariant\";\nexport const __FramerMetadata__ = {\"exports\":{\"ThemeResponsiveVariant\":{\"type\":\"override\",\"name\":\"ThemeResponsiveVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withThemeResponsiveVariant\":{\"type\":\"reactHoc\",\"name\":\"withThemeResponsiveVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Themeresponsive6variants.map"],"mappings":"ySAAuE,SAAgB,GAAwB,CAAC,GAAK,CAAC,EAAW,EAAc,CAAC,GAAe,EAAM,CAAM,CAAC,EAAW,EAAc,CAAC,EAAe,UAAU,CAE/N,AADA,EAAgB,IAAI,CAAC,IAAM,EAAW,EAAO,WAAW,+BAA+B,CAAO,EAAY,IAAI,EAAc,EAAW,QAAQ,CAAiE,MAAhE,IAAa,CAAC,EAAW,iBAAiB,SAAS,EAAY,CAAO,IAAI,EAAW,oBAAoB,SAAS,EAAY,AAAE,EAAC,CAAE,EAAC,CACpR,EAAgB,IAAI,CAAC,IAAM,EAAY,IAAI,CAAC,IAAM,EAAM,EAAO,WAAW,EAAc,EAAM,IAAI,QAAQ,EAAM,KAAK,SAAS,UAAU,AAAE,EAA6D,MAA5D,IAAa,CAAC,EAAO,iBAAiB,SAAS,EAAY,CAAO,IAAI,EAAO,oBAAoB,SAAS,EAAY,AAAE,EAAC,CAAE,EAAC,CACvQ,IAAM,EAAM,EAAW,OAAO,QAAc,EAAO,EAAW,OAAO,EAAE,CAAC,aAAa,CAAC,EAAW,MAAM,EAAE,CACxG,MAAM,CAAC,WAAW,EAAM,GAAG,GAAS,CAAE,CAAmJ,SAAgB,EAA2B,EAAE,CAAC,MAAO,CAAA,IAAQ,EAA+BA,EAAwC,CAAQ,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAuB,EAAM,AAAC,EAAC,CAAI,cAAA,IAJ7X,GAA2C,IAA4B,CAIgC,GAAmF,CAAmM,EAA2B,YAAY"}