"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 insert_modal_stories_exports = {};
__export(insert_modal_stories_exports, {
  AdsenseBM: () => AdsenseBM,
  AdsenseBMMobile: () => AdsenseBMMobile,
  AdsenseLiveSite: () => AdsenseLiveSite,
  AdsenseLiveSiteMobile: () => AdsenseLiveSiteMobile,
  HtmlBM: () => HtmlBM,
  HtmlBMMobile: () => HtmlBMMobile,
  HtmlLiveSite: () => HtmlLiveSite,
  HtmlLiveSiteMobile: () => HtmlLiveSiteMobile,
  default: () => insert_modal_stories_default
});
module.exports = __toCommonJS(insert_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_insert_modal = require("./insert-modal.js");
const template = (source = import_next_schema.HTMLData_Source.HTML) => (storyProps) => {
  const htmlNodeAttrs = {
    containerData: {
      width: {
        size: void 0,
        custom: "350"
      },
      alignment: import_next_schema.PluginContainerData_Alignment.CENTER,
      spoiler: {},
      height: {
        custom: "550"
      },
      textWrap: true
    },
    html: void 0,
    url: void 0,
    source
  };
  return (0, import_create_ricos_component_story.createRicosComponentStory)({
    component: /* @__PURE__ */ import_react.default.createElement(import_insert_modal.InsertModal, { nodeId: "", closeModal: (0, import_create_ricos_component_story.action)("closeModal") }),
    editorProps: {
      plugins: [(0, import__.pluginHtml)()]
    },
    pmNodeAttrs: htmlNodeAttrs,
    storyProps
  });
};
const HtmlLiveSite = template();
HtmlLiveSite.args = {
  environment: "liveSite"
};
const HtmlLiveSiteMobile = template();
HtmlLiveSiteMobile.args = {
  isMobile: true,
  environment: "liveSite"
};
const HtmlBM = template();
HtmlBM.args = {
  environment: "businessManager"
};
const HtmlBMMobile = template();
HtmlBMMobile.args = {
  isMobile: true,
  environment: "businessManager"
};
const AdsenseLiveSite = template(import_next_schema.HTMLData_Source.ADSENSE);
AdsenseLiveSite.args = {
  environment: "liveSite"
};
const AdsenseLiveSiteMobile = template(import_next_schema.HTMLData_Source.ADSENSE);
AdsenseLiveSiteMobile.args = {
  isMobile: true,
  environment: "liveSite"
};
const AdsenseBM = template(import_next_schema.HTMLData_Source.ADSENSE);
AdsenseBM.args = {
  environment: "businessManager"
};
const AdsenseBMMobile = template(import_next_schema.HTMLData_Source.ADSENSE);
AdsenseBMMobile.args = {
  isMobile: true,
  environment: "businessManager"
};
var insert_modal_stories_default = {
  name: "HtmlPlugin/InsertModal"
};
//# sourceMappingURL=insert-modal.stories.js.map
