import {
  NumberListThin,
  NumberListThinSmall,
  Objects,
  ObjectsSmall
} from "@wix/wix-ui-icons-common";
import { PmNodeType } from "./../../_shared/pm-node-types.js";
import { DATA_HOOKS } from "../data-hooks.js";
const SMART_BLOCK_NUMBERED_DROPDOWN_ID = "smart-block-numbered-dropdown";
const NUMBERED_MODE_OPTIONS = {
  numbers: {
    dataHook: DATA_HOOKS.NUMBERED_OPTION_NUMBERS,
    labelKey: "SmartBlock_Numbered_Mode_Numbers",
    icon: NumberListThinSmall,
    iconMobile: NumberListThin
  },
  shapes: {
    dataHook: DATA_HOOKS.NUMBERED_OPTION_SHAPES,
    labelKey: "SmartBlock_Numbered_Mode_Shapes",
    icon: ObjectsSmall,
    iconMobile: Objects
  }
};
const getSelectedMode = (smartBlockNode) => {
  if (!smartBlockNode) {
    return "numbers";
  }
  let hasAnyShape = false;
  smartBlockNode.forEach((child) => {
    if (child.type.name === PmNodeType.SMART_BLOCK_CELL && child.attrs.shape) {
      hasAnyShape = true;
    }
  });
  return hasAnyShape ? "shapes" : "numbers";
};
export {
  NUMBERED_MODE_OPTIONS,
  SMART_BLOCK_NUMBERED_DROPDOWN_ID,
  getSelectedMode
};
//# sourceMappingURL=numbered-mode-options.js.map
