"use strict";
const common_vendor = require("../../../../common/vendor.js");
function getSystemDarkMode() {
  try {
    if (typeof common_vendor.index !== "undefined" && typeof common_vendor.index.getSystemInfoSync === "function") {
      const systemInfo = common_vendor.index.getSystemInfoSync();
      const theme = systemInfo.osTheme || systemInfo.theme || "light";
      if (theme === "dark") {
        return "dark";
      }
      if (theme === "light") {
        return "light";
      }
    }
  } catch (e) {
    common_vendor.index.__f__("warn", "at uni_modules/uview-pro/libs/util/system-theme.ts:22", "[system-theme] getSystemDarkMode failed", e);
  }
  return "light";
}
exports.getSystemDarkMode = getSystemDarkMode;
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uview-pro/libs/util/system-theme.js.map
