"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 __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 __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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var settings_modal_stories_exports = {};
__export(settings_modal_stories_exports, {
  CustomDesignTab: () => CustomDesignTab,
  CustomSettingsTab: () => CustomSettingsTab,
  PresetsView: () => PresetsView,
  PresetsViewMobile: () => PresetsViewMobile,
  default: () => settings_modal_stories_default
});
module.exports = __toCommonJS(settings_modal_stories_exports);
var import_react = __toESM(require("react"));
var import_next_schema = require("./../../ricos-schema/next-schema/index.js");
var import_create_ricos_component_story = require("./../../wix-rich-content-common/create-ricos-component-story.js");
var import__ = require("../index.js");
var import_settings_modal = require("./settings-modal.js");
const componentData = {
  id: "test-node-id",
  title: "I'm a product",
  image: {
    id: "22e53e_2fee033b2eca46cab4eec7fa74e99c31~mv2.jpg",
    url: "https://static.wixstatic.com/media/22e53e_2fee033b2eca46cab4eec7fa74e99c31~mv2.jpg/v1/fit/w_3000,h_3000,q_90/file.jpg",
    height: 3e3,
    width: 3e3
  },
  pageUrl: "https://www.wix.app/stores/04029942-be8a-4e14-9fff-88a82e4dd22d/catalog/df19c1f7-07d8-a265-42f8-e8dfa824cc6e?d=https://domasmak.wixstudio.com/ricos-1/product-page/i-m-a-product",
  pricingData: {
    minValue: "85.0",
    maxValue: "85.0",
    discountedValue: "85.0",
    currency: "EUR"
  },
  itemType: import_next_schema.AppEmbedData_AppType.PRODUCT
};
const template = (params = {
  initialViewMode: "presets",
  activeTab: "settings"
}) => (storyProps) => {
  return (0, import_create_ricos_component_story.createRicosComponentStory)({
    component: /* @__PURE__ */ import_react.default.createElement(
      import_settings_modal.SettingsModal,
      {
        nodeId: "test-node-id",
        activeTab: params.activeTab || "settings",
        config: {},
        referenceElement: void 0,
        initialViewMode: params.initialViewMode || "presets",
        modalId: "vertical-embed-settings"
      }
    ),
    pmNodeAttrs: componentData,
    editorProps: {
      plugins: [(0, import__.pluginVerticalEmbed)()]
    },
    storyProps
  });
};
const PresetsView = template({ initialViewMode: "presets" });
PresetsView.args = {
  environment: "liveSite"
};
const PresetsViewMobile = template({ initialViewMode: "presets" });
PresetsViewMobile.args = {
  environment: "liveSite",
  isMobile: true
};
const CustomSettingsTab = template({
  initialViewMode: "custom",
  activeTab: "settings"
});
CustomSettingsTab.args = {
  environment: "liveSite"
};
const CustomDesignTab = template({
  initialViewMode: "custom",
  activeTab: "design"
});
CustomDesignTab.args = {
  environment: "liveSite"
};
var settings_modal_stories_default = {
  name: "VerticalEmbedPlugin/SettingsModal"
};
//# sourceMappingURL=settings-modal.stories.js.map
