import React from "react";
import {
  Link_Target,
  PluginContainerData_Alignment,
  PluginContainerData_Width_Type
} from "./../../ricos-schema/legacy/wix/rich_content/v1/index.js";
import { createRicosComponentStory } from "./../../wix-rich-content-common/create-ricos-component-story.js";
import { pluginLinkPreview } from "../index.js";
import { SettingsModal } from "./settings-modal.js";
const componentData = {
  containerData: {
    width: { size: PluginContainerData_Width_Type.CONTENT },
    alignment: PluginContainerData_Alignment.CENTER,
    textWrap: true
  },
  link: { url: "wix.com", target: Link_Target.BLANK, anchor: void 0 },
  title: "Your website, your business, your future｜Wix.com",
  thumbnailUrl: "https://static.wixstatic.com/media/a261d7_c275078fc99749e6a1fd307e2f86f05e~mv2.png/v1/fill/w_1200,h_628,al_c/a261d7_c275078fc99749e6a1fd307e2f86f05e~mv2.png",
  description: "It starts with a website. Build on a platform that gives you the freedom to create, design, and grow online exactly the way you want.\n"
};
const template = (activeTab = "settings") => (storyProps) => {
  const editor = {
    getPublicCommands: () => ({
      getBlockComponentData: () => componentData,
      setBlock: () => {
      }
    }),
    adapter: {}
  };
  return createRicosComponentStory({
    component: /* @__PURE__ */ React.createElement(SettingsModal, { nodeId: "", activeTab, config: {}, referenceElement: void 0 }),
    mock: { editor },
    pmNodeAttrs: componentData,
    editorProps: {
      plugins: [pluginLinkPreview()]
    },
    storyProps
  });
};
const SettingsTabLiveSite = template();
const SettingsTabLiveSiteWithSpoiler = template();
const SettingsTabLiveSiteMobile = template();
SettingsTabLiveSiteMobile.args = {
  isMobile: true
};
const SettingsTabLiveSiteWithSpoilerMobile = template();
SettingsTabLiveSiteWithSpoilerMobile.args = {
  isMobile: true
};
const SettingsTabBusinessManager = template();
SettingsTabBusinessManager.args = {
  environment: "businessManager"
};
const SettingsTabBusinessManagerMobile = template();
SettingsTabBusinessManagerMobile.args = {
  environment: "businessManager",
  isMobile: true
};
const DesignTabLiveSite = template("design");
const DesignTabLiveSiteWithSpoiler = template("design");
const DesignTabLiveSiteMobile = template("design");
DesignTabLiveSiteMobile.args = {
  isMobile: true
};
const DesignTabLiveSiteWithSpoilerMobile = template("design");
DesignTabLiveSiteWithSpoilerMobile.args = {
  isMobile: true
};
const DesignTabBusinessManager = template("design");
DesignTabBusinessManager.args = {
  environment: "businessManager"
};
const DesignTabBusinessManagerMobile = template("design");
DesignTabBusinessManagerMobile.args = {
  environment: "businessManager",
  isMobile: true
};
var settings_modal_stories_default = {
  name: "LinkPreviewPlugin/SettingsModal"
};
export {
  DesignTabBusinessManager,
  DesignTabBusinessManagerMobile,
  DesignTabLiveSite,
  DesignTabLiveSiteMobile,
  DesignTabLiveSiteWithSpoiler,
  DesignTabLiveSiteWithSpoilerMobile,
  SettingsTabBusinessManager,
  SettingsTabBusinessManagerMobile,
  SettingsTabLiveSite,
  SettingsTabLiveSiteMobile,
  SettingsTabLiveSiteWithSpoiler,
  SettingsTabLiveSiteWithSpoilerMobile,
  settings_modal_stories_default as default
};
//# sourceMappingURL=settings-modal.stories.js.map
