"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 layout_dropdown_stories_exports = {};
__export(layout_dropdown_stories_exports, {
  Default: () => Default,
  Mobile: () => Mobile,
  default: () => layout_dropdown_stories_default
});
module.exports = __toCommonJS(layout_dropdown_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_layout_dropdown = require("./layout-dropdown.js");
const DEFAULT_OPTIONS = [
  ...Object.entries(import_layout_dropdown.LAYOUT_DROPDOWN_OPTIONS).map(([layout, { icon, iconSmall, text }]) => ({
    id: layout,
    text,
    dataHook: `layout-dropdown-option-${layout}`,
    iconMobile: icon,
    icon: iconSmall
  })),
  {
    id: import_layout_dropdown.CUSTOMIZE_LAYOUT_OPTION_ID,
    text: "GalleryPlugin_Layouts_Customize_Button",
    dataHook: "layout-dropdown-option-customize"
  }
];
const template = () => (storyProps) => {
  return (0, import_create_ricos_component_story.createRicosComponentStory)({
    component: /* @__PURE__ */ import_react.default.createElement(
      import_layout_dropdown.LayoutDropdown,
      {
        options: DEFAULT_OPTIONS,
        selectedId: import_next_schema.GalleryOptions_Layout_Type.GRID,
        onSelect: (0, import_create_ricos_component_story.action)("onSelect"),
        closeModal: (0, import_create_ricos_component_story.action)("closeModal")
      }
    ),
    editorProps: {
      plugins: []
    },
    storyProps
  });
};
const Default = template();
const Mobile = template();
Mobile.args = {
  isMobile: true
};
var layout_dropdown_stories_default = {
  name: "GalleryPlugin/LayoutDropdown"
};
//# sourceMappingURL=layout-dropdown.stories.js.map
