module.exports=[89578,a=>{a.v({className:"geist_a71539c9-module__T19VSG__className",variable:"geist_a71539c9-module__T19VSG__variable"})},35214,a=>{a.v({className:"geist_mono_8d43a2aa-module__8Li5zG__className",variable:"geist_mono_8d43a2aa-module__8Li5zG__variable"})},33290,a=>{"use strict";var b=a.i(7997),c=a.i(89578);let d={className:c.default.className,style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"}};null!=c.default.variable&&(d.variable=c.default.variable);var e=a.i(35214);let f={className:e.default.className,style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"}};null!=e.default.variable&&(f.variable=e.default.variable);let g="auto",h="flowbite-theme-mode";function i({mode:a,defaultMode:c=g,localStorageKey:d=h,prefix:e="",version:f=4,...j}){return(0,b.jsx)("script",{...j,"data-flowbite-theme-mode-script":!0,dangerouslySetInnerHTML:{__html:function(a={}){let{mode:b,defaultMode:c=g,localStorageKey:d=h,prefix:e="",version:f=4}=a;return`
    try {
      const storageMode = window.localStorage.getItem("${d}");
      const isStorageModeValid = storageMode === "light" || storageMode === "dark" || storageMode === "auto";
      const resolvedMode = (isStorageModeValid ? storageMode : null) ?? ${b?`"${b}"`:void 0} ?? "${c}";
      const computedMode =
        resolvedMode === "auto" ? (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light") : resolvedMode;
      const className = ${3===f?`"${e}dark"`:'"dark"'};

      if (computedMode === "dark") {
        document.documentElement.classList.add(className);
      } else {
        document.documentElement.classList.remove(className);
      }
      localStorage.setItem("${d}", resolvedMode);

      // Add listener for system theme changes
      const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
      mediaQuery.addEventListener("change", (e) => {
        const storageMode = window.localStorage.getItem("${d}");
        const isStorageModeValid = storageMode === "light" || storageMode === "dark" || storageMode === "auto";
        const resolvedMode = isStorageModeValid ? storageMode : "${c}";

        if (resolvedMode === "auto") {
          if (e.matches) {
            document.documentElement.classList.add(className);
          } else {
            document.documentElement.classList.remove(className);
          }
        }
      });

      // Add listener for storage changes
      window.addEventListener("storage", (e) => {
        if (e.key === "${d}") {
          const newMode = e.newValue;
          const isStorageModeValid = newMode === "light" || newMode === "dark" || newMode === "auto";
          const resolvedMode = isStorageModeValid ? newMode : "${c}";

          if (resolvedMode === "dark" || (resolvedMode === "auto" && window.matchMedia("(prefers-color-scheme: dark)").matches)) {
            document.documentElement.classList.add(className);
          } else {
            document.documentElement.classList.remove(className);
          }
        }
      });
    } catch (e) {}
  `}({mode:a,defaultMode:c,localStorageKey:d,prefix:e,version:f})}})}i.displayName="ThemeModeScript";let j={metadataBase:new URL("https://anncarsales.com"),title:"Ann Car Sales",description:"Ann Car Sales is a leading vehicle buying and selling dealer in Kenya"};a.s(["default",0,function({children:a}){return(0,b.jsx)("html",{lang:"en",children:(0,b.jsxs)("body",{className:`${d.variable} ${f.variable} antialiased`,children:[(0,b.jsx)(i,{defaultMode:"light"}),a]})})},"metadata",0,j],33290)},70864,a=>{a.n(a.i(33290))}];

//# sourceMappingURL=%5Broot-of-the-server%5D__0_wvthf._.js.map