"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 AssetItem_stories_exports = {};
__export(AssetItem_stories_exports, {
  Default: () => Default,
  TestAssetItem: () => TestAssetItem,
  WithBalance: () => WithBalance,
  WithDiscreetModeEnabled: () => WithDiscreetModeEnabled,
  WithLeftTagAndRightBalance: () => WithLeftTagAndRightBalance,
  WithTag: () => WithTag,
  default: () => AssetItem_stories_default
});
module.exports = __toCommonJS(AssetItem_stories_exports);
var import_AssetItem = require("./AssetItem");
var import_test = require("@storybook/test");
var import_sharedStoryBook = require("../sharedStoryBook");
const meta = {
  component: import_AssetItem.AssetItem,
  title: "PreLdls/Components/AssetItem",
  tags: ["autodocs"],
  args: { name: "Bitcoin", ticker: "BTC", id: "bitcoin" },
  parameters: {
    docs: {
      description: {
        component: "AssetItem displays a crypto asset with its name, ticker, icon, and optionally fiat value and balance. Use it to represent selectable assets in lists."
      }
    }
  }
};
var AssetItem_stories_default = meta;
const Default = {};
const WithBalance = {
  args: {
    name: "Bitcoin",
    ticker: "BTC",
    id: "bitcoin",
    rightElement: (0, import_sharedStoryBook.createRightElement)(false)
  }
};
const WithTag = {
  args: {
    name: "Bitcoin",
    ticker: "BTC",
    id: "bitcoin",
    leftElement: import_sharedStoryBook.leftElement
  }
};
const WithLeftTagAndRightBalance = {
  args: {
    name: "Bitcoin",
    ticker: "BTC",
    id: "bitcoin",
    leftElement: import_sharedStoryBook.leftElement,
    rightElement: (0, import_sharedStoryBook.createRightElement)(false)
  }
};
const WithDiscreetModeEnabled = {
  args: {
    name: "Bitcoin",
    ticker: "BTC",
    id: "bitcoin",
    rightElement: (0, import_sharedStoryBook.createRightElement)(true)
  }
};
const TestAssetItem = {
  play: async ({ canvasElement }) => {
    const canvas = (0, import_test.within)(canvasElement);
    const name = canvas.getByText("Bitcoin");
    const ticker = canvas.getByText("BTC");
    await (0, import_test.expect)(name).toBeInTheDocument();
    await (0, import_test.expect)(ticker).toBeInTheDocument();
  }
};
//# sourceMappingURL=AssetItem.stories.js.map
