import React from "react";
import { HTMLData_Source } from "./../../ricos-schema/next-schema/index.js";
import { PmNodeType } from "./../../_shared/pm-node-types.js";
import { RequestServiceProvider } from "./../../_shared/request-service-provider/request-service-provider.js";
import { createRicosComponentStory } from "./../../wix-rich-content-common/create-ricos-component-story.js";
import { AiWidget } from "./ai-widget.js";
const template = (pmNodeAttrs) => (storyProps) => {
  return createRicosComponentStory({
    component: /* @__PURE__ */ React.createElement(RequestServiceProvider, null, /* @__PURE__ */ React.createElement("div", { style: { maxWidth: "650px" } }, /* @__PURE__ */ React.createElement(
      AiWidget,
      {
        htmlNode: {
          type: PmNodeType.HTML,
          attrs: {
            id: "1",
            source: HTMLData_Source.AI,
            isAdsense: null,
            containerData: null,
            url: null,
            html: null,
            autoHeight: false,
            iframeHeight: null,
            state: null,
            ...pmNodeAttrs
          }
        },
        children: /* @__PURE__ */ React.createElement("div", null, "Hello"),
        isFloatingPromptOpen: false
      }
    ))),
    pmNodeAttrs: {
      ...pmNodeAttrs,
      id: "1"
    },
    storyProps
  });
};
const Loading = template({
  state: { status: "LOADING", prompt: { text: "", fileRefs: [] }, requestId: "123" }
});
const Error = template({
  state: { status: "ERROR", prompt: { text: "", fileRefs: [] }, error: "Error" }
});
var ai_widget_stories_default = {
  name: "HtmlPlugin/AiWidget"
};
export {
  Error,
  Loading,
  ai_widget_stories_default as default
};
//# sourceMappingURL=ai-widget.stories.js.map
