"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 attachment_bar_stories_exports = {};
__export(attachment_bar_stories_exports, {
  Default: () => Default,
  Error: () => Error2,
  Loading: () => Loading,
  default: () => attachment_bar_stories_default
});
module.exports = __toCommonJS(attachment_bar_stories_exports);
var import_react = __toESM(require("react"));
var import_create_ricos_component_story = require("./../../../wix-rich-content-common/create-ricos-component-story.js");
var import_attachment_bar = require("./attachment-bar.js");
const template = ({ attachments }) => (storyProps) => {
  return (0, import_create_ricos_component_story.createRicosComponentStory)({
    component: /* @__PURE__ */ import_react.default.createElement(import_attachment_bar.AttachmentBar, { attachments, onRemove: (0, import_create_ricos_component_story.action)("onDelete") }),
    storyProps
  });
};
const Default = template({
  attachments: [
    {
      status: "ok",
      id: "1",
      file: {
        name: "image.jpg",
        type: "jpg",
        url: "https://static.wixstatic.com/media/8bb438_0660e79effa64f8ea139c4fc03e0b773.jpg"
      }
    },
    {
      status: "ok",
      id: "4",
      file: {
        name: "Top Secret Document VERY LONG NAME",
        type: "text",
        url: ""
      }
    },
    {
      status: "ok",
      id: "5",
      file: {
        name: "trojan",
        type: "text",
        url: ""
      }
    },
    {
      status: "ok",
      id: "6",
      file: {
        name: "spreadsheet.csv",
        type: "csv",
        url: ""
      }
    },
    {
      status: "ok",
      id: "7",
      file: {
        name: "payslip.pdf",
        type: "pdf",
        url: ""
      }
    }
  ]
});
const Loading = template({
  attachments: [
    {
      status: "loading",
      id: "2",
      file: {
        name: "cute smth",
        type: "jpg"
      }
    },
    {
      status: "loading",
      id: "6",
      file: {
        name: "not trojan",
        type: "text"
      }
    },
    {
      status: "loading",
      id: "7",
      file: {
        name: "plain",
        type: "text"
      }
    }
  ]
});
const Error2 = template({
  attachments: [
    {
      status: "error",
      id: "2",
      file: {
        name: "cute smth",
        type: "jpg"
      },
      error: "File not found"
    },
    {
      status: "error",
      id: "3",
      file: {
        name: "cute smth",
        type: "text"
      },
      error: "File not found"
    }
  ]
});
var attachment_bar_stories_default = {
  name: "AttachmentBar"
};
//# sourceMappingURL=attachment-bar.stories.js.map
