"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 preview_exports = {};
__export(preview_exports, {
  decorators: () => decorators,
  getParameters: () => getParameters,
  loaders: () => loaders
});
module.exports = __toCommonJS(preview_exports);
var import_pui_theme = require("@elliemae/pui-theme");
var import_store = require("../../data/store.js");
var import_decorator = require("../../view/storybook/decorator.js");
var import_app_config = require("../app-config/index.js");
var import_theme = require("./theme.js");
var import_history = require("../history.js");
var import_preview = require("./preview.css");
const theme = (0, import_pui_theme.getDefaultTheme)();
const store = (0, import_store.createAppStore)({}, import_history.browserHistory);
const appDecorator = import_decorator.withAppDecorator.bind(null, theme, store);
const getParameters = (storyBookTheme) => ({
  layout: "fullscreen",
  actions: { argTypesRegex: "^on.*" },
  controls: { hideNoControlsWarning: true },
  docs: {
    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
    theme: (0, import_theme.createTheme)(storyBookTheme)
  },
  options: {
    storySort: {
      method: "alphabetical",
      order: [
        "Getting Started",
        [
          "Introduction",
          "Installation",
          "Packages",
          "Supported Browsers",
          "Releases",
          "Theme"
        ],
        "Components"
      ],
      locales: ["en-US"]
    }
  },
  dependencies: {
    withStoriesOnly: true,
    hideEmpty: true
  }
});
const decorators = [appDecorator];
const loaders = [
  async () => {
    await (0, import_app_config.loadAppConfig)("./");
  }
];
