"use strict";
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 __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 __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 import_jsx_runtime = require("react/jsx-runtime");
var import_react = __toESM(require("react"));
var import_react2 = require("@testing-library/react");
var import_yoga_icons = require("@gympass/yoga-icons");
var import__ = require("../..");
describe("<Menu />", () => {
  it("should match snapshot in default Menu", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Button.Icon, { icon: import_yoga_icons.MenuList }) }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu.List, { children: [
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { children: "Item 1" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { children: "Item 2" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { children: "Item 3" })
        ] })
      ] }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot Menu.Item with icon", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Button.Icon, { icon: import_yoga_icons.MenuList }) }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu.List, { children: [
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { icon: import_yoga_icons.FlagBrazil, children: "Item 1" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { icon: import_yoga_icons.FlagArgentina, children: "Item 2" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { icon: import_yoga_icons.FlagChile, children: "Item 3" })
        ] })
      ] }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot Menu.Item with link", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Button.Icon, { icon: import_yoga_icons.MenuList }) }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu.List, { children: [
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { href: "http://www.gympass.com", target: "blank", children: "Item 1" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { href: "http://www.gympass.com", target: "blank", children: "Item 2" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { href: "http://www.gympass.com", target: "blank", children: "Item 3" })
        ] })
      ] }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot Menu.Item with active", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Button.Icon, { icon: import_yoga_icons.MenuList }) }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu.List, { children: [
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { active: true, children: "Item 1" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { children: "Item 2" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { children: "Item 3" })
        ] })
      ] }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot Menu.Item with disabled", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Button.Icon, { icon: import_yoga_icons.MenuList }) }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu.List, { children: [
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { disabled: true, children: "Item 1" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { children: "Item 2" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { children: "Item 3" })
        ] })
      ] }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot Menu.Item with disabled and icon", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Button.Icon, { icon: import_yoga_icons.MenuList }) }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu.List, { children: [
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { icon: import_yoga_icons.HomeFilled, disabled: true, children: "Item 1" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { children: "Item 2" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { children: "Item 3" })
        ] })
      ] }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot Menu with a onMouseHover props false", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu, { onMouseHover: false, children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Button.Icon, { icon: import_yoga_icons.MenuList }) }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu.List, { children: [
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { icon: import_yoga_icons.HomeFilled, disabled: true, children: "Item 1" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { children: "Item 2" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { children: "Item 3" })
        ] })
      ] }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot Menu with an align props start", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Button.Icon, { icon: import_yoga_icons.MenuList }) }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu.List, { align: "start", children: [
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { icon: import_yoga_icons.HomeFilled, disabled: true, children: "Item 1" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { children: "Item 2" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { children: "Item 3" })
        ] })
      ] }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot Menu with an align props end", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Button.Icon, { icon: import_yoga_icons.MenuList }) }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Menu.List, { align: "end", children: [
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { icon: import_yoga_icons.HomeFilled, disabled: true, children: "Item 1" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { children: "Item 2" }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Menu.Item, { children: "Item 3" })
        ] })
      ] }) })
    );
    expect(container).toMatchSnapshot();
  });
});
