"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var AccountItem_stories_exports = {};
__export(AccountItem_stories_exports, {
  Default: () => Default,
  TestAccount: () => TestAccount,
  TestWithoutAddressIcon: () => TestWithoutAddressIcon,
  TestWithoutProtocol: () => TestWithoutProtocol,
  default: () => AccountItem_stories_default
});
module.exports = __toCommonJS(AccountItem_stories_exports);
var import_AccountItem = require("./AccountItem");
var import_test = require("@storybook/test");
const meta = {
  component: import_AccountItem.AccountItem,
  title: "PreLdls/Components/AccountItem",
  tags: ["autodocs"],
  args: {
    account: {
      id: "1234",
      name: "Main BTC",
      balance: "0.118 ETH",
      fiatValue: "$5,969.83",
      address: "n4A9...Zgty",
      cryptoId: "bitcoin",
      ticker: "btc"
    }
  }
};
var AccountItem_stories_default = meta;
const Default = {};
const TestAccount = {
  args: {
    account: {
      id: "1234",
      name: "Main BTC",
      balance: "0.118 BTC",
      fiatValue: "$5,969.83",
      protocol: "Native Segwit",
      address: "n4A9...Zgty",
      cryptoId: "bitcoin",
      ticker: "btc"
    }
  },
  play: async ({ canvasElement }) => {
    const canvas = (0, import_test.within)(canvasElement);
    const name = canvas.getByText("Main BTC");
    const protocol = canvas.getByTestId("tag");
    const address = canvas.getByText("n4A9...Zgty");
    const addressIcon = canvas.getByTestId("address-icon");
    const fiatValue = canvas.getByText("$5,969.83");
    const balance = canvas.getByText("0.118 BTC");
    await (0, import_test.expect)(name).toBeInTheDocument();
    await (0, import_test.expect)(protocol).toBeInTheDocument();
    await (0, import_test.expect)(protocol).toHaveTextContent("Native Segwit");
    await (0, import_test.expect)(address).toBeInTheDocument();
    await (0, import_test.expect)(addressIcon).toBeInTheDocument();
    await (0, import_test.expect)(fiatValue).toBeInTheDocument();
    await (0, import_test.expect)(balance).toBeInTheDocument();
  }
};
const TestWithoutProtocol = {
  args: {
    account: {
      id: "1234",
      name: "Main BTC",
      balance: "0.118 BTC",
      fiatValue: "$5,969.83",
      address: "n4A9...Zgty",
      cryptoId: "bitcoin",
      ticker: "btc"
    }
  },
  play: async ({ canvasElement }) => {
    const canvas = (0, import_test.within)(canvasElement);
    const protocol = canvas.queryByTestId("tag");
    await (0, import_test.expect)(protocol).not.toBeInTheDocument();
  }
};
const TestWithoutAddressIcon = {
  args: {
    account: {
      id: "1234",
      name: "Main BTC",
      balance: "0.118 BTC",
      fiatValue: "$5,969.83",
      address: "n4A9...Zgty"
    },
    showIcon: false
  },
  play: async ({ canvasElement }) => {
    const canvas = (0, import_test.within)(canvasElement);
    const addressIcon = canvas.queryByTestId("address-icon");
    await (0, import_test.expect)(addressIcon).not.toBeInTheDocument();
  }
};
//# sourceMappingURL=AccountItem.stories.js.map
