"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_illustrations = require("@gympass/yoga-illustrations");
var import_yoga_icons = require("@gympass/yoga-icons");
var import__ = require("../..");
var import_ActionRequirement = __toESM(require("./ActionRequirement"));
function handleGetCheckableContent() {
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Box, { display: "flex", flexDirection: "row", alignItems: "center", children: [
    /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Checkbox, {}),
    /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Text, { children: "I have read and agree to the Terms of Use and Privacy Policy." })
  ] });
}
function handleGetIllustration() {
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_yoga_illustrations.Img2d01, { width: 375, height: 375 });
}
function handleGetList() {
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
    /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Text, { children: [
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_yoga_icons.Dumbbell, {}),
      " 1x/day standard access"
    ] }),
    /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Text, { mt: "small", children: [
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_yoga_icons.User, {}),
      " 4x/month 1-on-1 sessions"
    ] }),
    /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Text, { mt: "small", children: [
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_yoga_icons.Star, {}),
      " 2x/month premium classes"
    ] })
  ] });
}
describe("<ActionRequirement />", () => {
  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.jsx)(
        import_ActionRequirement.default,
        {
          title: "Welcome to the world of feeling good!",
          description: "Lets make it a good day!",
          illustration: handleGetIllustration(),
          checkable: handleGetCheckableContent(),
          list: handleGetList()
        }
      ) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with text display", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
        import_ActionRequirement.default,
        {
          title: "Welcome to the world of feeling good!",
          description: "Lets make it a good day!",
          titleAsTextDisplay: true
        }
      ) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
});
