"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 assistant_timeline_stories_exports = {};
__export(assistant_timeline_stories_exports, {
  AllSuccess: () => AllSuccess,
  Loading: () => Loading,
  WithError: () => WithError,
  WithResearching: () => WithResearching,
  WithTasks: () => WithTasks,
  default: () => assistant_timeline_stories_default
});
module.exports = __toCommonJS(assistant_timeline_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__ = require("./../index.js");
const mockTranslations = {
  AssistantTimeline_Error_Title_Default: "We couldn't generate your request",
  AssistantTimeline_Error_Subtitle_Default: "We couldn't finish your request. Change your request or try again.",
  AssistantTimeline_Error_Title_UnsupportedFileType: "Unsupported file type",
  AssistantTimeline_Error_Subtitle_UnsupportedFileType: "The file you attached is not supported. Please use a supported format.",
  AssistantTimeline_Button_TryAgain: "Try Again"
};
const mockT = (key) => mockTranslations[key] ?? key;
const template = ({
  title,
  subtitle,
  tasks,
  isLoading
}) => (storyProps) => {
  return (0, import_create_ricos_component_story.createRicosComponentStory)({
    component: /* @__PURE__ */ import_react.default.createElement("div", { style: { width: 309 } }, /* @__PURE__ */ import_react.default.createElement(
      import__.MessageTimeline,
      {
        title,
        subtitle,
        tasks,
        isLoading,
        t: mockT
      }
    )),
    storyProps
  });
};
const Loading = template({
  title: "Processing",
  subtitle: "Please wait...",
  isLoading: true
});
const WithTasks = template({
  title: "Editing Document",
  subtitle: "Executing your request",
  tasks: [
    {
      message: "Analyzing request",
      description: ["Create a summary of the document"],
      status: "success"
    },
    {
      message: "Generating response",
      status: "inProgress"
    },
    {
      message: "Finalizing",
      status: "pending"
    }
  ]
});
const AllSuccess = template({
  title: "Editing Document",
  subtitle: "Completed",
  tasks: [
    { message: "Analyzing request", status: "success" },
    { message: "Generating response", status: "success" },
    { message: "Changes applied", description: ["Added 3 paragraphs"], status: "success" }
  ]
});
const WithResearching = template({
  title: "Editing Document",
  subtitle: "Executing your request",
  tasks: [
    {
      message: "Executing prompt",
      description: ["Create a beautiful hero section with images"],
      status: "success"
    },
    {
      message: "Gathering information",
      description: ["Researching", "Looking for images"],
      isToolDescription: true,
      status: "inProgress"
    },
    {
      message: "Generating response",
      status: "pending"
    },
    {
      message: "Summary",
      status: "pending"
    }
  ]
});
const WithError = template({
  title: "Editing Document",
  subtitle: "An error occurred",
  tasks: [
    { message: "Analyzing request", status: "success" },
    { message: "Failed to generate response", status: "error" }
  ]
});
var assistant_timeline_stories_default = {
  name: "AssistantTimeline"
};
//# sourceMappingURL=assistant-timeline.stories.js.map
