import React from "react";
import {
  PluginContainerData_Alignment,
  PluginContainerData_Width_Type
} from "./../../ricos-schema/next-schema/index.js";
import { createRicosComponentStory } from "./../../wix-rich-content-common/create-ricos-component-story.js";
import { pluginSpoiler } from "./../../plugin-spoiler/index.js";
import { pluginVideo } from "../../index.js";
import { SettingsModal } from "./settings-modal.js";
const videoNodeData = {
  containerData: {
    width: {
      size: PluginContainerData_Width_Type.CONTENT
    },
    alignment: PluginContainerData_Alignment.CENTER,
    textWrap: true
  },
  video: {
    src: {
      id: "video/11062b_a552731f40854d16a91627687fb8d1a6/1080p/mp4/file.mp4"
    },
    duration: 14.08
  },
  thumbnail: {
    src: {
      id: "media/11062b_a552731f40854d16a91627687fb8d1a6f000.jpg"
    },
    width: 1920,
    height: 1080
  }
};
const template = (params = { withSpoiler: false }) => (storyProps) => {
  const editor = {
    getPublicCommands: () => ({}),
    adapter: {}
  };
  return createRicosComponentStory({
    component: /* @__PURE__ */ React.createElement(SettingsModal, { nodeId: "" }),
    mock: { editor },
    editorProps: {
      plugins: [pluginVideo(), ...params.withSpoiler ? [pluginSpoiler()] : []]
    },
    pmNodeAttrs: videoNodeData,
    storyProps
  });
};
const LiveSite = template({ withSpoiler: true });
LiveSite.args = {
  environment: "liveSite"
};
const LiveSiteMobile = template({ withSpoiler: true });
LiveSiteMobile.args = {
  isMobile: true,
  environment: "liveSite"
};
const BM = template({ withSpoiler: true });
BM.args = {
  environment: "businessManager"
};
const BMMobile = template({ withSpoiler: true });
BMMobile.args = {
  isMobile: true,
  environment: "businessManager"
};
const LiveSiteNoSpoiler = template({ withSpoiler: false });
LiveSiteNoSpoiler.args = {
  environment: "liveSite"
};
const BMNoSpoiler = template({ withSpoiler: false });
BMNoSpoiler.args = {
  environment: "businessManager"
};
var settings_modal_stories_default = {
  name: "VideoPlugin/SettingsModal"
};
export {
  BM,
  BMMobile,
  BMNoSpoiler,
  LiveSite,
  LiveSiteMobile,
  LiveSiteNoSpoiler,
  settings_modal_stories_default as default
};
//# sourceMappingURL=settings-modal.stories.js.map
