"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_react_native = require("@testing-library/react-native");
var import_yoga_icons = require("@gympass/yoga-icons");
var import__ = require("../../..");
var import__2 = __toESM(require("."));
var import_Avatar = __toESM(require("../../../Avatar"));
var import_Text = __toESM(require("../../../Text"));
const attendanceList = [
  {
    description: "Attendance 01",
    icon: import_yoga_icons.BuildingFilled
  },
  {
    description: "Attendance 02",
    icon: import_yoga_icons.BuildingFilled
  }
];
const entranceList = [
  {
    children: "From 7:30 am to 9:00 pm",
    variant: "stamina"
  }
];
const activitiesList = [
  {
    children: "Yoga",
    variant: "deep"
  },
  {
    children: "Meditation",
    variant: "deep"
  },
  {
    children: "Pilates",
    variant: "deep"
  },
  {
    children: "Activity4",
    variant: "deep"
  },
  {
    children: "Activity5",
    variant: "deep"
  }
];
const tagsList = [
  {
    children: "Plan x Product availability",
    variant: "informative"
  },
  {
    children: "Restriction",
    variant: "attention"
  }
];
describe("<Result />", () => {
  it("should match snapshot", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
        import__2.default,
        {
          rate: "5.0",
          avatar: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Avatar.default.Circle, {}),
          attendances: attendanceList,
          title: "Jane Doe",
          subTitle: "Activity",
          divided: true,
          children: [
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.default.Details, { items: entranceList, dots: true, renderItem: import_Text.default.Small }),
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
              import__2.default.Details,
              {
                items: activitiesList,
                dots: true,
                limit: 3,
                renderItem: import_Text.default.Small,
                limitLabel: "activities"
              }
            ),
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.default.Tags, { items: tagsList }),
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.default.Button, { children: "See Details" })
          ]
        }
      ) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot without limitLabel prop", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
        import__2.default,
        {
          rate: "5.0",
          avatar: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Avatar.default.Circle, {}),
          attendances: attendanceList,
          title: "John Doe",
          subTitle: "Activity",
          divided: true,
          children: [
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.default.Details, { items: entranceList, dots: true, renderItem: import_Text.default.Small }),
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
              import__2.default.Details,
              {
                items: activitiesList,
                dots: true,
                limit: 2,
                renderItem: import_Text.default.Small
              }
            ),
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.default.Tags, { items: tagsList }),
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.default.Button, { children: "See Details" })
          ]
        }
      ) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot without attendence", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__2.default, { avatar: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Avatar.default, {}), title: "Gym", children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.default.Details, { items: entranceList, dots: true }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.default.Details, { items: activitiesList, dots: true })
      ] }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
});
