import React from "react";
import {
  PluginContainerData_Alignment,
  PluginContainerData_Width_Type,
  PollData_Design_PollDesign_Background_Type,
  PollData_Layout_PollLayout_Direction,
  PollData_Layout_PollLayout_Type,
  PollData_Poll_Settings_Permissions_ViewRole,
  PollData_Poll_Settings_Permissions_VoteRole
} from "./../../../ricos-schema/next-schema/index.js";
import { createRicosComponentStory } from "./../../../wix-rich-content-common/create-ricos-component-story.js";
import { pluginPoll } from "../../index.js";
import { SettingsModal } from "./settings-modal.js";
const Component = SettingsModal;
const pollData = {
  containerData: {
    width: {
      size: PluginContainerData_Width_Type.CONTENT
    },
    alignment: PluginContainerData_Alignment.CENTER,
    textWrap: true
  },
  poll: {
    title: "",
    image: {
      src: {
        url: "https://static.wixstatic.com/media/436483e6ed9e41fe91b9f286d2ea4efb.jpg"
      }
    },
    options: [
      {
        title: "",
        image: {
          src: {
            url: "https://static.wixstatic.com/media/3a27828e768344158489df4f2c03cfb2.jpg"
          }
        }
      },
      {
        title: "",
        image: {
          src: {
            url: "https://static.wixstatic.com/media/fb62d9f8e7824b2e90b13b971e700b92.jpg"
          }
        }
      }
    ],
    settings: {
      permissions: {
        view: PollData_Poll_Settings_Permissions_ViewRole.VOTERS,
        vote: PollData_Poll_Settings_Permissions_VoteRole.ALL,
        allowMultipleVotes: false
      },
      showVoters: false,
      showVotesCount: true
    }
  },
  layout: {
    poll: {
      type: PollData_Layout_PollLayout_Type.LIST,
      direction: PollData_Layout_PollLayout_Direction.LTR,
      enableImage: false
    },
    options: {
      enableImage: false
    }
  },
  design: {
    poll: {
      background: {
        type: PollData_Design_PollDesign_Background_Type.IMAGE,
        image: {
          src: {
            url: "https://static.wixstatic.com/media/2dfdd3_1977932e94064f168abaaa2c04b678a5~mv2.jpg"
          }
        }
      },
      borderRadius: 0
    },
    options: {
      borderRadius: 0
    }
  }
};
const template = ({
  activeTab,
  showVoteRoleSetting
}) => (storyProps) => {
  return createRicosComponentStory({
    component: /* @__PURE__ */ React.createElement(
      Component,
      {
        nodeId: "",
        modalId: "",
        activeTab,
        config: {
          type: "poll",
          showVoteRoleSetting: showVoteRoleSetting === void 0 ? true : showVoteRoleSetting
        }
      }
    ),
    pmNodeAttrs: pollData,
    editorProps: {
      plugins: [pluginPoll()]
    },
    storyProps
  });
};
const LayoutLiveSite = template({ activeTab: "layout" });
LayoutLiveSite.args = {
  environment: "liveSite"
};
const LayoutLiveSiteMobile = template({ activeTab: "layout" });
LayoutLiveSiteMobile.args = {
  isMobile: true,
  environment: "liveSite"
};
const LayoutBusinessManager = template({ activeTab: "layout" });
LayoutBusinessManager.args = {
  environment: "businessManager"
};
const LayoutBusinessManagerMobile = template({ activeTab: "layout" });
LayoutBusinessManagerMobile.args = {
  environment: "businessManager",
  isMobile: true
};
const DesignLiveSite = template({ activeTab: "design" });
DesignLiveSite.args = {
  environment: "liveSite"
};
const DesignLiveSiteMobile = template({ activeTab: "design" });
DesignLiveSiteMobile.args = {
  isMobile: true,
  environment: "liveSite"
};
const DesignBusinessManager = template({ activeTab: "design" });
DesignBusinessManager.args = {
  environment: "businessManager"
};
const DesignBusinessManagerMobile = template({ activeTab: "design" });
DesignBusinessManagerMobile.args = {
  environment: "businessManager",
  isMobile: true
};
const SettingsLiveSite = template({ activeTab: "settings" });
SettingsLiveSite.args = {
  environment: "liveSite"
};
const SettingsLiveSiteMobile = template({ activeTab: "settings" });
SettingsLiveSiteMobile.args = {
  isMobile: true,
  environment: "liveSite"
};
const SettingsBusinessManager = template({ activeTab: "settings" });
SettingsBusinessManager.args = {
  environment: "businessManager"
};
const SettingsWithViewSettingDisabledBM = template({
  activeTab: "settings",
  showVoteRoleSetting: false
});
SettingsWithViewSettingDisabledBM.args = {
  environment: "businessManager"
};
const SettingsBusinessManagerMobile = template({ activeTab: "settings" });
SettingsBusinessManagerMobile.args = {
  environment: "businessManager",
  isMobile: true
};
var settings_modal_stories_default = {
  name: "PollsPlugin/SettingsModal"
};
export {
  DesignBusinessManager,
  DesignBusinessManagerMobile,
  DesignLiveSite,
  DesignLiveSiteMobile,
  LayoutBusinessManager,
  LayoutBusinessManagerMobile,
  LayoutLiveSite,
  LayoutLiveSiteMobile,
  SettingsBusinessManager,
  SettingsBusinessManagerMobile,
  SettingsLiveSite,
  SettingsLiveSiteMobile,
  SettingsWithViewSettingDisabledBM,
  settings_modal_stories_default as default
};
//# sourceMappingURL=settings-modal.stories.js.map
