import React from "react";
import { DevContext } from "./../../ricos-context/index.js";
import { createRicosComponentStory } from "./../../wix-rich-content-common/create-ricos-component-story.js";
import { dataHook } from "./../../wix-rich-content-common/index.js";
import { INSERT_GIF_MODAL_GIF_ITEM, INSERT_GIF_MODAL_STICKER_ITEM } from "../data-hooks.js";
import { pluginGiphy } from "../index.js";
import { GiphyInsertModal } from "./insert-modal.js";
import { mockGiphyRequestService } from "./mock-giphy-request-service.js";
const template = (params) => (storyProps) => {
  const giphyRequestService = mockGiphyRequestService();
  return createRicosComponentStory({
    component: /* @__PURE__ */ React.createElement(DevContext.Provider, { value: { giphyRequestService } }, /* @__PURE__ */ React.createElement(
      GiphyInsertModal,
      {
        nodeId: "",
        modalId: "",
        getGiphyUrl: () => "",
        activeTab: params.activeTab
      }
    )),
    editorProps: {
      plugins: [pluginGiphy()]
    },
    storyProps
  });
};
const GifsActiveTab = template({
  activeTab: "gifs"
});
GifsActiveTab.args = {
  environment: "liveSite"
};
const StickersActiveTab = template({
  activeTab: "stickers"
});
StickersActiveTab.args = {
  environment: "liveSite"
};
const GifsActiveTabMobile = template({
  activeTab: "stickers"
});
GifsActiveTabMobile.args = {
  isMobile: true,
  environment: "liveSite"
};
const StickersActiveTabMobile = template({
  activeTab: "stickers"
});
StickersActiveTabMobile.args = {
  isMobile: true,
  environment: "liveSite"
};
var insert_modal_stories_default = {
  name: "GiphyPlugin/InsertModal",
  screenshotMasks: [dataHook(INSERT_GIF_MODAL_GIF_ITEM), dataHook(INSERT_GIF_MODAL_STICKER_ITEM)]
};
export {
  GifsActiveTab,
  GifsActiveTabMobile,
  StickersActiveTab,
  StickersActiveTabMobile,
  insert_modal_stories_default as default
};
//# sourceMappingURL=insert-modal.stories.js.map
