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