"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__ = require("../..");
describe("<Progress />", () => {
  it("should match snapshot", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, {}),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100 }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 60 })
      ] })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with label string", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, label: { value: "Some decription here" } }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import__.Progress,
          {
            max: 100,
            value: 65,
            label: { value: "Some decription here", placement: "right" }
          }
        )
      ] })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with label number", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 } }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import__.Progress,
          {
            max: 100,
            value: 65,
            label: { value: 65, placement: "right" }
          }
        )
      ] })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with all variants", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import__.Progress,
          {
            max: 100,
            value: 20,
            label: { value: 20 },
            variant: "primary"
          }
        ),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import__.Progress,
          {
            max: 100,
            value: 20,
            label: { value: 20 },
            variant: "secondary"
          }
        ),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "vibin" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "hope" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "energy" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "relax" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "peace" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "verve" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "uplift" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import__.Progress,
          {
            max: 100,
            value: 20,
            label: { value: 20 },
            variant: "deepPurple"
          }
        ),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import__.Progress,
          {
            max: 100,
            value: 20,
            label: { value: 20 },
            variant: "stamina"
          }
        ),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "dark" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "medium" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "deep" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "light" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "clear" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "white" })
      ] })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with positions prop system", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { position: "absolute", top: "small", left: "small" }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with spacing prop system", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { m: "small", padding: "medium" }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with background color prop system", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { backgroundColor: "primary" }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with border prop system", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { b: "small", bRadius: "small" }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with elevation prop system", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { elevation: "small" }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
});
