/* Copyright © 2020 Splunk Inc.
SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
in part without a valid written license from Splunk Inc. is PROHIBITED. */
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/theme.tsx
var theme_exports = {};
__export(theme_exports, {
  VizThemeContext: () => VizThemeContext,
  getVizThemeForKey: () => getVizThemeForKey,
  useVizTheme: () => useVizTheme
});
module.exports = __toCommonJS(theme_exports);

// esm-externals:react
var react_exports = {};
__export(react_exports, {
  default: () => react_default
});
var defaultImport = __toESM(require("react"));
__reExport(react_exports, require("react"));
var react_default = "default" in defaultImport ? defaultImport.default : defaultImport;

// esm-externals:@splunk/themes
var themes_exports = {};
__export(themes_exports, {
  default: () => themes_default
});
var defaultImport2 = __toESM(require("@splunk/themes"));
__reExport(themes_exports, require("@splunk/themes"));
var themes_default = "default" in defaultImport2 ? defaultImport2.default : defaultImport2;

// src/theme.tsx
var lightVizTheme = {
  name: "light",
  color: "#2C2C2C",
  font: "10px Arial",
  labelFont: "12px Arial",
  axis: {
    axisStroke: "#E6E6E6",
    gridStroke: "#DDDDDD",
    xLabelStroke: "#6B6B6B",
    yLabelStroke: "#4D4D4D"
  },
  tooltip: {
    lineStroke: "rgba(44, 44, 44, 0.85)",
    inactiveLineStroke: "#999",
    backgroundColor: "rgba(44, 44, 44, 0.85)",
    color: "white",
    secondaryColor: "#999"
  },
  pin: {
    iconStroke: "white",
    lineStroke: "#9e9e9e",
    dotFill: "#9e9e9e"
  },
  heatmap: {
    axisStroke: "#2c2c2c",
    axisFontSize: 12,
    colorScheme: [
      "#ffffff",
      "#ccd6d7",
      "#aec8cd",
      "#8fb8c7",
      "#6ea8c1",
      "#4b96bd",
      "#2181bb",
      "#0067ba",
      "#0047bd",
      "#0502ca"
    ]
  },
  annotationIcon: {
    customEventIconColor: "#818285",
    alertIconColor: {
      critical: "#E00000",
      major: "#C97705",
      minor: "#155A4E",
      warning: "#006BE5",
      info: "#7B4DF5"
    }
  }
};
var darkVizTheme = {
  name: "dark",
  color: "#FAFAFA",
  font: "10px Arial",
  labelFont: "12px Arial",
  axis: {
    axisStroke: "#43454B",
    gridStroke: "#43454B",
    xLabelStroke: "#909090",
    yLabelStroke: "#B5B5B5"
  },
  tooltip: {
    lineStroke: "white",
    inactiveLineStroke: "#666",
    backgroundColor: "rgba(64, 64, 64, 0.85)",
    color: "white",
    secondaryColor: "#999"
  },
  pin: {
    iconStroke: "white",
    lineStroke: "white",
    dotFill: "#bdbdbd"
  },
  heatmap: {
    axisStroke: "#fafafa",
    axisFontSize: 12,
    colorScheme: [
      "#000000",
      "#15355a",
      "#315272",
      "#496d89",
      "#60869e",
      "#759db3",
      "#89b4c7",
      "#9ccad9",
      "#afdfec",
      "#c2f5ff"
    ]
  },
  annotationIcon: {
    customEventIconColor: "#818285",
    alertIconColor: {
      critical: "#FF4242",
      major: "#F49106",
      minor: "#2CBDA3",
      warning: "#61CAFA",
      info: "#AB74F1"
    }
  }
};
function getVizThemeForKey(key) {
  switch (key) {
    case "dark": {
      return darkVizTheme;
    }
    case "light":
    default: {
      return lightVizTheme;
    }
  }
}
var VizThemeContextProvider = (props) => /* @__PURE__ */ react_default.createElement(themes_exports.SplunkThemeProvider, { colorScheme: props.value.name }, props.children);
var VizThemeContext = {
  Provider: VizThemeContextProvider
};
function useVizTheme() {
  const { colorScheme } = (0, themes_exports.useSplunkTheme)();
  return getVizThemeForKey(colorScheme);
}
//# sourceMappingURL=theme.js.map
