"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var defaults_exports = {};
__export(defaults_exports, {
  ANIMATION_DURATION_MS: () => ANIMATION_DURATION_MS,
  CROSS_PARAGRAPH_MERGE_STYLES: () => CROSS_PARAGRAPH_MERGE_STYLES,
  DEFAULT_ANIMATE: () => DEFAULT_ANIMATE,
  DEFAULT_COLOR: () => DEFAULT_COLOR,
  DEFAULT_STYLE: () => DEFAULT_STYLE,
  ITERATIONS: () => ITERATIONS,
  PADDING: () => PADDING,
  STROKE_WIDTH: () => STROKE_WIDTH,
  STYLE_TO_ARIA_LABEL: () => STYLE_TO_ARIA_LABEL,
  TEXT_LAYER_Z_INDEX: () => TEXT_LAYER_Z_INDEX,
  UNDERLINE_OFFSET: () => UNDERLINE_OFFSET,
  getExplicitAnimate: () => getExplicitAnimate,
  getOverlayZIndex: () => getOverlayZIndex
});
module.exports = __toCommonJS(defaults_exports);
var import_v1 = require("./../../ricos-schema/legacy/wix/rich_content/v1/index.js");
const DEFAULT_STYLE = import_v1.SketchData_Variant.HIGHLIGHT;
const DEFAULT_COLOR = "$theme-color-3";
const DEFAULT_ANIMATE = true;
const getExplicitAnimate = (animate) => animate === void 0 || animate === DEFAULT_ANIMATE ? void 0 : animate;
const STROKE_WIDTH = 2;
const PADDING = 5;
const UNDERLINE_OFFSET = 3;
const ANIMATION_DURATION_MS = 800;
const ITERATIONS = 2;
const STYLE_TO_ARIA_LABEL = {
  [import_v1.SketchData_Variant.UNDERLINE]: "underlined",
  [import_v1.SketchData_Variant.BOX]: "boxed",
  [import_v1.SketchData_Variant.CIRCLE]: "circled",
  [import_v1.SketchData_Variant.HIGHLIGHT]: "highlighted",
  [import_v1.SketchData_Variant.STRIKETHROUGH]: "struck through",
  [import_v1.SketchData_Variant.CROSSED_OFF]: "crossed out"
};
const CROSS_PARAGRAPH_MERGE_STYLES = /* @__PURE__ */ new Set(["BOX", "CIRCLE"]);
const TEXT_LAYER_Z_INDEX = "1";
const BEHIND_TEXT_OVERLAY_Z_INDEX = "-1";
const IN_FRONT_OF_TEXT_OVERLAY_Z_INDEX = "2";
const isBehindTextStyle = (style) => style === "HIGHLIGHT";
const getOverlayZIndex = (style) => isBehindTextStyle(style) ? BEHIND_TEXT_OVERLAY_Z_INDEX : IN_FRONT_OF_TEXT_OVERLAY_Z_INDEX;
//# sourceMappingURL=defaults.js.map
