import { n as a, C as w } from "../chunks/lib-cortex-element.CVMmyPMC.js";
import { c as C } from "../chunks/component.styles.CRO4Odto.js";
import { c as _ } from "../chunks/custom-element.L4WJXn1j.js";
import { d as g, L } from "../chunks/i18n.BABe9hN4.js";
import { H as M, g as P } from "../chunks/slot.j5oheLJC.js";
import { w as v } from "../chunks/watch.BCJD77bD.js";
import { i as E, x as h, E as y } from "../chunks/lit-element.jLBm65_O.js";
import { e as p } from "../chunks/query.BBf1UFkC.js";
import { e as b } from "../chunks/class-map.BiVq-cVR.js";
import { o as m } from "../chunks/if-defined.BRoBj_Rp.js";
import z from "./icon.js";
import D from "./popup.js";
import $ from "./spinner.js";
import { e as R, n as T } from "../chunks/ref.bzeTdX0K.js";
var d = /* @__PURE__ */ ((o) => (o.Prefix = "prefix", o.Suffix = "suffix", o))(d || {});
const O = E`:host{--submenu-offset:0px;--prefix-font-size:var(--cx-font-size-small);--prefix-color:var(--cx-color-neutral-500);--label-color:var(--cx-color-neutral);--suffix-color:var(--cx-color-neutral);--font-weight:var(--cx-font-weight-regular);display:block}:host([inert]){display:none}.menu-item{font-family:var(--cx-font-sans);font-size:var(--cx-font-size-small);font-weight:var(--font-weight,var(--cx-font-weight-regular));line-height:var(--cx-line-height-large);letter-spacing:var(--cx-letter-spacing-normal);color:var(--cx-color-neutral);padding:var(--cx-spacing-x-small) var(--cx-spacing-small);transition:var(--cx-transition-fast) fill;background-color:var(--cx-menu-item-background-color,unset);-webkit-user-select:none;user-select:none;white-space:nowrap;cursor:pointer;align-items:stretch;text-decoration:none;display:flex;position:relative}.menu-item.menu-item--disabled{cursor:default;outline:none}.menu-item.menu-item--disabled .menu-item__label,.menu-item.menu-item--disabled .menu-item__prefix,.menu-item.menu-item--disabled .menu-item__chevron,.menu-item.menu-item--disabled .menu-item__check{opacity:.5}.menu-item.menu-item--disabled .menu-item__suffix:not(:slotted(cx-tooltip)){opacity:.5}.menu-item.menu-item--loading{cursor:wait;outline:none}.menu-item.menu-item--loading :not(cx-spinner){opacity:.5}.menu-item--loading cx-spinner{--indicator-color:currentColor;--track-width:1px;opacity:1;font-size:.75em;position:absolute;top:calc(50% - .5em);left:.65rem}.menu-item .menu-item__label{color:var(--label-color,var(--cx-color-neutral));text-overflow:ellipsis;flex:auto;margin:auto;display:inline-block;overflow:hidden}.menu-item--checked .menu-item__label{color:var(--cx-color-primary)}.menu-item .menu-item__prefix{color:var(--prefix-color,var(--cx-color-neutral-500));font-size:var(--prefix-font-size,var(--cx-font-size-small));flex:none;align-items:center;display:flex}.menu-item--checked{--prefix-color:var(--cx-color-primary);--suffix-color:var(--cx-color-primary)}.menu-item--checked .menu-item__check{color:var(--cx-color-primary)}.menu-item .menu-item__prefix::slotted(*){margin-inline-end:var(--cx-spacing-x-small)}.menu-item .menu-item__suffix{color:var(--suffix-color);flex:none;align-items:center;display:flex}.menu-item .menu-item__suffix::slotted(*){margin-inline-start:var(--cx-spacing-medium)}.menu-item--submenu-expanded:after{content:"";z-index:calc(var(--cx-z-index-dropdown) - 1);clip-path:polygon(var(--safe-triangle-cursor-x,0) var(--safe-triangle-cursor-y,0), var(--safe-triangle-submenu-start-x,0) var(--safe-triangle-submenu-start-y,0), var(--safe-triangle-submenu-end-x,0) var(--safe-triangle-submenu-end-y,0));position:fixed;inset:0}@media (pointer:none),(pointer:coarse){.menu-item--submenu-expanded:after{display:none}}:host(:focus-visible){outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width))}:host(:hover:not([aria-disabled=true],:focus-visible,.disable-hover)) .menu-item,.menu-item--submenu-expanded{background-color:var(--cx-menu-item-background-color-hover);color:var(--cx-color-neutral-1000)}:host(:not([aria-disabled=true])) .menu-item--active{background-color:var(--cx-menu-item-background-color-active,var(--cx-menu-item-background-color-hover));color:var(--cx-color-neutral-1000)}:host(:hover:not([aria-disabled=true],:focus-visible,.disable-hover)) .menu-item--active{background-color:var(--cx-menu-item-background-color-active-hover,var(--cx-menu-item-background-color-active,var(--cx-menu-item-background-color-hover)))}:host(:focus-visible) .menu-item{background-color:var(--cx-menu-item-background-color-hover);opacity:1;outline:none}.menu-item .menu-item__check,.menu-item .menu-item__chevron{visibility:hidden;flex:none;justify-content:center;align-items:center;width:1.5em}.menu-item .menu-item__check{display:var(--checked-icon-display,flex);margin-inline-end:var(--cx-spacing-2x-small)}.menu-item .menu-item__check--suffix{margin-inline:auto 0;padding-inline-start:var(--cx-spacing-2x-small)}.menu-item .menu-item__check--always-show{visibility:visible}.menu-item .menu-item__chevron{display:var(--submenu-icon-display,flex)}.menu-item--checked .menu-item__check,.menu-item--has-submenu .menu-item__chevron{visibility:visible}cx-popup::part(popup){border:var(--cx-panel-border-width) solid var(--cx-popup-border-color);border-radius:var(--cx-border-radius-large);box-shadow:var(--cx-shadow-large);z-index:var(--cx-z-index-dropdown);margin-left:var(--submenu-offset,0px);overflow:hidden}.menu-item--rtl cx-popup::part(popup){margin-left:calc(-1 * var(--submenu-offset))}@media (forced-colors:active){:host(:hover:not([aria-disabled=true])) .menu-item,:host(:focus-visible) .menu-item{outline-offset:-1px;outline:1px dashed selecteditem}}::slotted(cx-menu){max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`;
class I {
  constructor(e, s) {
    this.popupRef = R(), this.parent = null, this.enableSubmenuTimer = -1, this.isHorizontalMenu = !1, this.isConnected = !1, this.isPopupConnected = !1, this.skidding = 0, this.submenuOpenDelay = 100, (this.host = e).addController(this), this.hasSlotController = s, this.handleMouseMove = this.handleMouseMove.bind(this), this.handleMouseOver = this.handleMouseOver.bind(this), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleClick = this.handleClick.bind(this), this.handleSubmenuIconClick = this.handleSubmenuIconClick.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.handleMouseLeave = this.handleMouseLeave.bind(this), this.handlePopupMouseover = this.handlePopupMouseover.bind(this), this.handlePopupReposition = this.handlePopupReposition.bind(this);
  }
  get popup() {
    return this.popupRef.value;
  }
  hostConnected() {
    this.parent = this.host.closest("cx-menu"), this.hasSlotController.test("submenu") && !this.host.disabled && (this.addListeners(), this.updateSkidding()), this.parent && (this.syncIsHorizontalMenu(), this.parentObserver = new MutationObserver(() => {
      this.syncIsHorizontalMenu();
    }), this.parentObserver.observe(this.parent, {
      attributeFilter: ["horizontal"]
    }));
  }
  hostDisconnected() {
    this.removeListeners(), this.parentObserver && this.parentObserver.disconnect();
  }
  hostUpdated() {
    this.removeListeners(), this.hasSlotController.test("submenu") && !this.host.disabled && (this.addListeners(), this.updateSkidding(), this.syncIsHorizontalMenu());
  }
  addListeners() {
    this.isConnected || (this.host.addEventListener("mousemove", this.handleMouseMove), (this.host.submenuTrigger === "both" || this.host.submenuTrigger === "hover") && (this.host.addEventListener("mouseover", this.handleMouseOver), this.host.addEventListener("mouseleave", this.handleMouseLeave)), (this.host.submenuTrigger === "both" || this.host.submenuTrigger === "click") && (this.host.addEventListener("click", this.handleClick), this.host.submenuIcon?.addEventListener(
      "click",
      this.handleSubmenuIconClick
    ), document.addEventListener("mousedown", this.handleDocumentMouseDown)), this.host.addEventListener("keydown", this.handleKeyDown), this.isConnected = !0), this.isPopupConnected || this.popupRef.value && (this.popupRef.value.addEventListener(
      "mouseover",
      this.handlePopupMouseover
    ), this.popupRef.value.addEventListener(
      "cx-reposition",
      this.handlePopupReposition
    ), this.isPopupConnected = !0);
  }
  removeListeners() {
    this.isConnected && (this.host.removeEventListener("mousemove", this.handleMouseMove), this.host.removeEventListener("mouseover", this.handleMouseOver), this.host.removeEventListener("mouseleave", this.handleMouseLeave), this.host.removeEventListener("click", this.handleClick), this.host.submenuIcon?.removeEventListener(
      "click",
      this.handleSubmenuIconClick
    ), document.removeEventListener("mousedown", this.handleDocumentMouseDown), this.host.removeEventListener("keydown", this.handleKeyDown), this.isConnected = !1), this.isPopupConnected && this.popupRef.value && (this.popupRef.value.removeEventListener(
      "mouseover",
      this.handlePopupMouseover
    ), this.popupRef.value.removeEventListener(
      "cx-reposition",
      this.handlePopupReposition
    ), this.isPopupConnected = !1);
  }
  syncIsHorizontalMenu() {
    this.parent && (this.isHorizontalMenu = this.parent.hasAttribute("horizontal"));
  }
  // Set the safe triangle cursor position
  handleMouseMove(e) {
    const s = getComputedStyle(this.host).direction === "rtl" || this.popupRef.value?.dataset.currentPlacement?.startsWith("left");
    this.host.style.setProperty(
      "--safe-triangle-cursor-x",
      `${e.clientX + (s ? 1 : 0)}px`
    ), this.host.style.setProperty(
      "--safe-triangle-cursor-y",
      `${e.clientY}px`
    );
  }
  handleMouseOver() {
    this.hasSlotController.test("submenu") && this.enableSubmenu();
  }
  handleSubmenuEntry(e) {
    const s = this.host.renderRoot.querySelector("slot[name='submenu']");
    if (!s) {
      console.error(
        "Cannot activate a submenu if no corresponding menuitem can be found.",
        this
      );
      return;
    }
    let t = null;
    for (const r of s.assignedElements())
      if (t = r.querySelectorAll("cx-menu-item, [role^='menuitem']"), t.length !== 0)
        break;
    if (!t || t.length === 0) {
      this.host.lazy && (e.preventDefault(), e.stopPropagation(), this.enableSubmenu(!1));
      return;
    }
    t[0].setAttribute("tabindex", "0");
    for (let r = 1; r !== t.length; ++r)
      t[r].setAttribute("tabindex", "-1");
    this.popupRef.value && (e.preventDefault(), e.stopPropagation(), this.popupRef.value.active ? t[0] instanceof HTMLElement && t[0].focus() : (this.enableSubmenu(!1), this.popupRef.value.addEventListener("cx-opened", () => {
      t[0] instanceof HTMLElement && t[0].focus();
    }), this.host.requestUpdate()));
  }
  // Focus on the first menu-item of a submenu.
  handleKeyDown(e) {
    const s = () => {
      e.preventDefault(), e.stopPropagation(), this.host.focus(), this.disableSubmenu();
    };
    switch (e.key) {
      case "Tab": {
        this.disableSubmenu();
        break;
      }
      case "Escape": {
        this.host.focus(), this.disableSubmenu();
        break;
      }
      case "ArrowLeft": {
        e.target !== this.host && !this.isHorizontalMenu && s();
        break;
      }
      case "ArrowUp": {
        e.target !== this.host && this.isHorizontalMenu && s();
        break;
      }
      case "ArrowRight": {
        this.isHorizontalMenu || this.handleSubmenuEntry(e);
        break;
      }
      case "ArrowDown": {
        this.isHorizontalMenu && this.handleSubmenuEntry(e);
        break;
      }
    }
  }
  handleClick(e) {
    e.target === this.host ? (e.preventDefault(), e.stopPropagation(), this.isExpanded() ? this.disableSubmenu() : e.isTrusted && this.enableSubmenu()) : e.target instanceof Element && (e.target.tagName === "cx-menu-item" || e.target.role?.startsWith("menuitem"));
  }
  handleSubmenuIconClick(e) {
    e.preventDefault(), e.stopPropagation(), this.isExpanded() ? this.disableSubmenu() : this.enableSubmenu();
  }
  handleDocumentMouseDown(e) {
    const s = e.composedPath();
    this.host && !s.includes(this.host) && this.disableSubmenu();
  }
  // Close this submenu on focus outside of the parent or any descendants.
  handleMouseLeave(e) {
    e.relatedTarget && e.relatedTarget instanceof Element && this.host.contains(e.relatedTarget) || this.disableSubmenu();
  }
  // Prevent the parent menu-item from getting focus on mouse movement on the submenu
  handlePopupMouseover(e) {
    e.stopPropagation();
  }
  // Set the safe triangle values for the submenu when the position changes
  handlePopupReposition() {
    const s = this.host.renderRoot.querySelector("slot[name='submenu']")?.assignedElements({ flatten: !0 }).filter((f) => f.localName === "cx-menu")[0], t = getComputedStyle(this.host).direction === "rtl" || this.popupRef.value?.dataset.currentPlacement?.startsWith("left");
    if (!s)
      return;
    const { height: r, left: l, top: u, width: c } = s.getBoundingClientRect();
    this.host.style.setProperty(
      "--safe-triangle-submenu-start-x",
      `${t ? l + c : l}px`
    ), this.host.style.setProperty("--safe-triangle-submenu-start-y", `${u}px`), this.host.style.setProperty(
      "--safe-triangle-submenu-end-x",
      `${t ? l + c : l}px`
    ), this.host.style.setProperty(
      "--safe-triangle-submenu-end-y",
      `${u + r}px`
    );
  }
  setSubmenuState(e) {
    this.popupRef.value && this.popupRef.value.active !== e && (this.popupRef.value.active = e, this.host.requestUpdate());
  }
  // Shows the submenu. Supports disabling the opening delay, e.g. for keyboard events that want to set the focus to the
  // newly opened menu.
  enableSubmenu(e = !0) {
    this.host.lazy && this.host.emit("cx-lazy-load"), e ? (window.clearTimeout(this.enableSubmenuTimer), this.enableSubmenuTimer = window.setTimeout(() => {
      this.setSubmenuState(!0);
    }, this.submenuOpenDelay)) : this.setSubmenuState(!0);
  }
  disableSubmenu() {
    window.clearTimeout(this.enableSubmenuTimer), this.setSubmenuState(!1);
  }
  // Calculate the space the top of a menu takes-up, for aligning the popup menu-item with the activating element.
  updateSkidding() {
    if (!this.host.parentElement?.computedStyleMap)
      return;
    const e = this.host.parentElement.computedStyleMap(), s = g(this.host) === "rtl", t = this.host.submenuPlacement ?? (s ? "left-start" : "right-start"), r = t.startsWith("left") || t.startsWith("right");
    let l = [];
    r && (t.endsWith("-start") ? l = ["padding-top", "border-top-width", "margin-top"] : t.endsWith("-end") && (l = ["padding-bottom", "border-bottom-width", "margin-bottom"]));
    const u = l.reduce((c, f) => {
      const x = e.get(f) ?? new CSSUnitValue(0, "px"), k = (x instanceof CSSUnitValue ? x : new CSSUnitValue(0, "px")).to("px"), S = t.endsWith("-end") ? 1 : -1;
      return c + k.value * S;
    }, 0);
    this.skidding = u;
  }
  isExpanded() {
    return this.popupRef.value ? this.popupRef.value.active : !1;
  }
  renderSubmenu() {
    const e = g(this.host) === "rtl";
    if (!this.hasSlotController.test("submenu"))
      return null;
    const s = this.host.submenuPlacement ?? (e ? "left-start" : "right-start");
    return h`<cx-popup ${T(this.popupRef)} placement=${s} anchor="anchor" part="submenu-popup" flip flip-fallback-strategy="best-fit" skidding=${this.skidding} strategy="overlay" auto-size="both" auto-size-padding="10" ?shift=${!!this.host.shiftBoundary} .flipBoundary=${this.host.flipBoundary} .shiftBoundary=${this.host.shiftBoundary}><slot name="submenu"></slot></cx-popup>`;
  }
}
var H = Object.defineProperty, B = Object.getOwnPropertyDescriptor, n = (o, e, s, t) => {
  for (var r = t > 1 ? void 0 : t ? B(e, s) : e, l = o.length - 1, u; l >= 0; l--)
    (u = o[l]) && (r = (t ? u(e, s, r) : u(r)) || r);
  return t && r && H(e, s, r), r;
};
let i = class extends w {
  constructor() {
    super(), this.type = "normal", this.submenuTrigger = "both", this.checked = !1, this.noUncheck = !1, this.value = "", this.href = "", this.rel = "noreferrer noopener", this.loading = !1, this.disabled = !1, this.active = !1, this.readonly = !1, this.menu = "", this.alwaysShowCheckedIcon = !1, this.checkPlacement = d.Suffix, this.lazy = !1, this.localize = new L(this), this.hasSlotController = new M(
      this,
      "submenu",
      "submenu-icon"
    ), this.submenuController = new I(
      this,
      this.hasSlotController
    ), this.handleDocumentWheel = (o) => {
      const e = o.composedPath();
      this.submenuController.isExpanded() && (!this.submenuController.popup || !e.includes(this.submenuController.popup)) && (o.preventDefault(), this.submenuController.disableSubmenu());
    }, this.handleHostClick = this.handleHostClick.bind(this), this.handleMouseOver = this.handleMouseOver.bind(this);
  }
  runConnectedCallback() {
    this.addEventListener("click", this.handleHostClick), this.addEventListener("mouseover", this.handleMouseOver), document.addEventListener("wheel", this.handleDocumentWheel, {
      passive: !1
    });
  }
  disconnectedCallback() {
    super.disconnectedCallback(), this.removeEventListener("click", this.handleHostClick), this.removeEventListener("mouseover", this.handleMouseOver), document.removeEventListener("wheel", this.handleDocumentWheel);
  }
  handleDefaultSlotChange() {
    const o = this.getTextLabel();
    if (typeof this.cachedTextLabel > "u") {
      this.cachedTextLabel = o;
      return;
    }
    o !== this.cachedTextLabel && (this.cachedTextLabel = o, this.emit("slotchange", {
      bubbles: !0,
      cancelable: !1,
      composed: !1
    }));
  }
  handleHostClick(o) {
    (this.disabled || this.readonly) && (o.target === this && o.preventDefault(), o.stopImmediatePropagation()), this.href && this.anchor && this.anchor.click();
  }
  handleMouseOver(o) {
    o.stopPropagation();
  }
  handleAnchorClick(o) {
    o.stopPropagation();
  }
  handleCheckedChange() {
    if (this.checked && this.type !== "checkbox") {
      this.checked = !1, console.error(
        'The checked attribute can only be used on menu items with type="checkbox"',
        this
      );
      return;
    }
    this.type === "checkbox" ? this.setAttribute("aria-checked", this.checked ? "true" : "false") : this.removeAttribute("aria-checked");
  }
  handleDisabledChange() {
    this.setAttribute("aria-disabled", this.disabled ? "true" : "false");
  }
  handleTypeChange() {
    this.type === "checkbox" ? (this.setAttribute("role", "menuitemcheckbox"), this.setAttribute("aria-checked", this.checked ? "true" : "false")) : (this.setAttribute("role", "menuitem"), this.removeAttribute("aria-checked"));
  }
  /** Returns a text label based on the contents of the menu item's default slot. */
  getTextLabel() {
    return P(this.defaultSlot);
  }
  isSubmenu() {
    return this.hasSlotController.test("submenu") || !!this.menu.trim();
  }
  renderBase(o) {
    const e = !!this.href, s = this.localize.dir() === "rtl", t = this.submenuController.isExpanded();
    return e ? h`<a id="anchor" part="base" class=${b({
      "menu-item": !0,
      "menu-item--active": this.active,
      "menu-item--checkbox": this.type === "checkbox",
      "menu-item--checked": this.checked,
      "menu-item--disabled": this.disabled,
      "menu-item--has-submenu": this.isSubmenu(),
      "menu-item--loading": this.loading,
      "menu-item--rtl": s,
      "menu-item--submenu-expanded": t
    })} aria-haspopup=${this.isSubmenu()} href=${m(this.href)} target=${m(this.target)} download=${m(this.download)} rel=${m(this.rel)} aria-label=${this.getTextLabel()} ?inert=${this.disabled} @click=${this.handleAnchorClick}>${o}</a>` : h`<div id="anchor" part="base" class=${b({
      "menu-item": !0,
      "menu-item--active": this.active,
      "menu-item--checkbox": this.type === "checkbox",
      "menu-item--checked": this.checked,
      "menu-item--disabled": this.disabled,
      "menu-item--has-submenu": this.isSubmenu(),
      "menu-item--loading": this.loading,
      "menu-item--rtl": s,
      "menu-item--submenu-expanded": t
    })} aria-haspopup=${this.isSubmenu()} aria-label=${this.getTextLabel()}>${o}</div>`;
  }
  render() {
    const o = this.localize.dir() === "rtl";
    let e;
    this.submenuPlacement && (this.submenuPlacement.startsWith("top") || this.submenuPlacement.startsWith("bottom")) ? e = "keyboard_arrow_down" : e = o ? "chevron_left" : "chevron_right";
    const s = h`<slot part="checked-icon" name="checked-icon" class=${b({
      "menu-item__check": !0,
      "menu-item__check--always-show": this.alwaysShowCheckedIcon,
      "menu-item__check--suffix": this.checkPlacement === d.Suffix
    })}><cx-icon name="check"></cx-icon></slot>`, t = this.checkPlacement === d.Suffix;
    return this.renderBase(h`
      ${t ? y : s}<slot name="prefix" part="prefix" class="menu-item__prefix"></slot><slot part="label" class="menu-item__label" @slotchange=${this.handleDefaultSlotChange}></slot><slot name="suffix" part="suffix" class="menu-item__suffix"></slot><slot name="submenu-icon" part="submenu-icon" class="menu-item__chevron"><cx-icon name=${e} aria-hidden="true"></cx-icon></slot>${t ? s : y}

      ${this.submenuController.renderSubmenu()}
      ${this.loading ? h`<cx-spinner part="spinner" exportparts="base:spinner__base"></cx-spinner>` : ""}
    `);
  }
};
i.styles = [C, O];
i.dependencies = {
  "cx-icon": z,
  "cx-popup": D,
  "cx-spinner": $
};
n([
  p("slot:not([name])")
], i.prototype, "defaultSlot", 2);
n([
  p("a#anchor", !0)
], i.prototype, "anchor", 2);
n([
  p(".menu-item")
], i.prototype, "menuItem", 2);
n([
  p(".menu-item__chevron")
], i.prototype, "submenuIcon", 2);
n([
  a()
], i.prototype, "type", 2);
n([
  a({ attribute: "submenu-trigger", type: String })
], i.prototype, "submenuTrigger", 2);
n([
  a({ reflect: !0, type: Boolean })
], i.prototype, "checked", 2);
n([
  a({ attribute: "no-uncheck", reflect: !0, type: Boolean })
], i.prototype, "noUncheck", 2);
n([
  a()
], i.prototype, "value", 2);
n([
  a()
], i.prototype, "href", 2);
n([
  a()
], i.prototype, "target", 2);
n([
  a()
], i.prototype, "rel", 2);
n([
  a()
], i.prototype, "download", 2);
n([
  a({ reflect: !0, type: Boolean })
], i.prototype, "loading", 2);
n([
  a({ reflect: !0, type: Boolean })
], i.prototype, "disabled", 2);
n([
  a({ reflect: !0, type: Boolean })
], i.prototype, "active", 2);
n([
  a({ reflect: !0, type: Boolean })
], i.prototype, "readonly", 2);
n([
  a({ attribute: "flip-boundary", type: Object })
], i.prototype, "flipBoundary", 2);
n([
  a({ attribute: "shift-boundary", type: Object })
], i.prototype, "shiftBoundary", 2);
n([
  a({ reflect: !0 })
], i.prototype, "menu", 2);
n([
  a({ attribute: "always-show-checked-icon", reflect: !0, type: Boolean })
], i.prototype, "alwaysShowCheckedIcon", 2);
n([
  a({ attribute: "check-placement", reflect: !0, type: String })
], i.prototype, "checkPlacement", 2);
n([
  a({ attribute: "submenu-placement" })
], i.prototype, "submenuPlacement", 2);
n([
  a({ reflect: !0, type: Boolean })
], i.prototype, "lazy", 2);
n([
  v("checked")
], i.prototype, "handleCheckedChange", 1);
n([
  v("disabled")
], i.prototype, "handleDisabledChange", 1);
n([
  v("type")
], i.prototype, "handleTypeChange", 1);
i = n([
  _("cx-menu-item")
], i);
export {
  i as default
};
