"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 MarketPercentIndicator_stories_exports = {};
__export(MarketPercentIndicator_stories_exports, {
  Negative: () => Negative,
  Positive: () => Positive,
  TestMarketPercentIndicator: () => TestMarketPercentIndicator,
  Zero: () => Zero,
  default: () => MarketPercentIndicator_stories_default
});
module.exports = __toCommonJS(MarketPercentIndicator_stories_exports);
var import_MarketPercentIndicator = require("./MarketPercentIndicator");
var import_test = require("@storybook/test");
const meta = {
  component: import_MarketPercentIndicator.MarketPercentIndicator,
  title: "PreLdls/Components/MarketPercentIndicator",
  tags: ["autodocs"],
  args: { percent: 30 }
};
var MarketPercentIndicator_stories_default = meta;
const Positive = { args: { percent: 30 } };
const Negative = { args: { percent: -30 } };
const Zero = { args: { percent: 0 } };
const TestMarketPercentIndicator = {
  play: async ({ canvasElement }) => {
    const canvas = (0, import_test.within)(canvasElement);
    const input = canvas.getByTestId("market-percent-indicator");
    await (0, import_test.expect)(input).toHaveTextContent("+30%");
  }
};
//# sourceMappingURL=MarketPercentIndicator.stories.js.map
