import { a9 as W, ap as l, A as x, j as e, E, u as K, g as m, d as p, P as h, $ as M, ae as P, aq as H, a0 as i, ar as y, B as q, as as c, v as $, x as ee, N as r, at as Q, au as te, y as O, F as k, av as D, H as R, q as Y, aw as oe, M as f, i as ne, U as se, k as _, J as T, O as ae, V as ie, W as J } from "./styles.css-B1P_v4FN.mjs";
import { useState as B, useEffect as re } from "react";
const V = `\`\`\`javascript
<script type="text/javascript">
  (function(d, t) {
      var v = d.createElement(t), s = d.getElementsByTagName(t)[0];
      v.onload = function() {
        window.voiceflow.chat.load({
          verify: { projectID: 'howdy folks, very cool verification hash here' },
          url: 'https://general-runtime.voiceflow.com',
          versionID: 'production'
        });
      }
      v.src = "https://cdn.voiceflow.com/widget/bundle.mjs"; v.type = "text/javascript"; s.parentNode.insertBefore(v, s);
  })(document, 'script');
<\/script>
\`\`\`
`, le = `# Code and Syntax Highlighting

\`\`\`javascript
<script type="text/javascript">
  (function(d, t) {
      var v = d.createElement(t), s = d.getElementsByTagName(t)[0];
      v.onload = function() {
        window.voiceflow.chat.load({
          verify: { projectID: 'howdy folks, very cool verification hash here' },
          url: 'https://general-runtime.voiceflow.com',
          versionID: 'production'
        });
      }
      v.src = "https://cdn.voiceflow.com/widget/bundle.mjs"; v.type = "text/javascript"; s.parentNode.insertBefore(v, s);
  })(document, 'script');
<\/script>
\`\`\`

\`\`\`css
@font-face {
  font-family: Chunkfive;
  src: url('Chunkfive.otf');
}

body,
.usertext {
  color: #f0f0f0;
  background: #600;
  font-family: Chunkfive, sans;
}

@import url(print.css);
@media print {
  a[href^='http']::after {
    content: attr(href);
  }
}
\`\`\`
`, ce = `# Lists

1. First ordered list item
2. Another item
3. Actual numbers don't matter, just that it's a number
4. And another item.

- Unordered list can use asterisks

* Or minuses

- Or pluses

1. Make my changes
   1. Fix bug
   2. Improve formatting
      - Make the headings bigger
2. Push my commits to GitHub
3. Open a pull request
   - Describe my changes
   - Mention all the members of my team
     - Ask for feedback

---

# Task lists

- [x] Finish my changes
- [ ] Push my commits to GitHub
- [ ] Open a pull request
- [x] @mentions, #refs, [links](), **formatting**, and <del>tags</del> supported
- [x] list syntax required (any unordered or ordered list supported)
- [ ] this is a complete item
- [ ] this is an incomplete item

---

# Ignoring Markdown formatting

You can tell GitHub to ignore (or escape) Markdown formatting by using \\ before the Markdown character.

Let's rename \\*our-new-project\\* to \\*our-old-project\\*.

---

# Links

[I'm an inline-style link](https://www.google.com)

[I'm an inline-style link with title](https://www.google.com "Google's Homepage")

[I'm a reference-style link][Arbitrary case-insensitive reference text]

[I'm a relative reference to a repository file](../blob/master/LICENSE)

[You can use numbers for reference-style link definitions][1]

Or leave it empty and use the [link text itself].

URLs and URLs in angle brackets will automatically get turned into links.
http://www.example.com or <http://www.example.com> and sometimes
example.com (but not on Github, for example).

Some text to show that the reference links can follow later.

[arbitrary case-insensitive reference text]: https://www.mozilla.org
[1]: http://slashdot.org
[link text itself]: http://www.reddit.com

# Images

Here's our logo (hover to see the title text):

Inline-style:
![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png 'Logo Title Text 1')

Reference-style:
![alt text][logo]

[logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png 'Logo Title Text 2'

Like links, Images also have a footnote style syntax

![Alt text][id]

With a reference later in the document defining the URL location:

---

# [Footnotes](https://github.com/markdown-it/markdown-it-footnote)

Footnote 1 link[^first].

Footnote 2 link[^second].

Inline footnote^[Text of inline footnote] definition.

Duplicated footnote reference[^second].

[^first]: Footnote **can have markup**

    and multiple paragraphs.

[^second]: Footnote text.

---
`, de = `# Tables

Colons can be used to align columns.

| Tables        |      Are      |  Cool |
| ------------- | :-----------: | ----: |
| col 3 is      | right-aligned | $1600 |
| col 2 is      |   centered    |   $12 |
| zebra stripes |   are neat    |    $1 |

There must be at least 3 dashes separating each header cell.
The outer pipes (|) are optional, and you don't need to make the
raw Markdown line up prettily. You can also use inline Markdown.

| Markdown | Less      | Pretty     |
| -------- | --------- | ---------- |
| _Still_  | \`renders\` | **nicely** |
| 1        | 2         | 3          |

| First Header | Second Header |
| ------------ | ------------- |
| Content Cell | Content Cell  |
| Content Cell | Content Cell  |

| Command    | Description                                    |
| ---------- | ---------------------------------------------- |
| git status | List all new or modified files                 |
| git diff   | Show file differences that haven't been staged |

| Command      | Description                                        |
| ------------ | -------------------------------------------------- |
| \`git status\` | List all _new or modified_ files                   |
| \`git diff\`   | Show file differences that **haven't been** staged |

| Left-aligned | Center-aligned | Right-aligned |
| :----------- | :------------: | ------------: |
| git status   |   git status   |    git status |
| git diff     |    git diff    |      git diff |

| Name     | Character |
| -------- | --------- |
| Backtick | \`         |
| Pipe     | \\|        |

---

# Blockquotes

> Blockquotes are very handy in email to emulate reply text.
> This line is part of the same quote.
> Quote break.

> This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can _put_ **Markdown** into a blockquote.
> Blockquotes can also be nested...
>
> > ...by using additional greater-than signs right next to each other...
> >
> > > ...or with spaces between arrows.

---

# Inline HTML

<dl>
  <dt>Definition list</dt>
  <dd>Is something people use sometimes.</dd>

  <dt>Markdown in HTML</dt>
  <dd>Does *not* work **very** well. Use HTML <em>tags</em>.</dd>
</dl>

---

# Horizontal Rules

Three or more...

---

Hyphens

---

Asterisks

---

Underscores

---
`, N = `# Howdy!

# h1 Voiceflow

## h2 Voiceflow

### h3 Voiceflow

#### h4 Voiceflow

##### h5 Voiceflow

###### h6 Voiceflow

# Alt-H1

## Alt-H2

---

What does a really long block of text look like? Well, it looks like this. And there's even more of it than you could ever imagine. We want to see how this wraps and displays line height properly. So we're going to keep going. What does a really long block of text look like? Well, it looks like this. And there's even more of it than you could ever imagine. We want to see how this wraps and displays line height properly. So we're going to keep going.

---

# Emphasis

Emphasis, aka italics, with _asterisks_ or _underscores_.

Strong emphasis, aka bold, with **asterisks** or **underscores**.

Combined emphasis with **asterisks and _underscores_**.

**This is bold text**

_This is italic text_

~~Strikethrough~~
`, w = [{ type: "paragraph", children: [{ text: "Hello, world!" }] }], ge = { type: "speak", payload: { message: "End of conversation." } }, ue = {
  name: "SampleExtension",
  type: W.RESPONSE,
  match() {
    throw new Error("Function not implemented.");
  }
};
l.TEXT;
l.TEXT;
l.IMAGE;
l.CARD;
l.CAROUSEL;
l.END;
l.EXTENSION;
const g = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABlSURBVHgB7ZOxCYBQDEQvH2LhKI7h0nauYOcoIkE4d0hzgvf6QOC9i+24+WBCl3UJzP1zDERAyYCYDzxAQokbsAIrsAI3IG8gqoqZiS77SVyFNoNqBfH7GcoVQIwb8AytwArcwAspAyS5uk3juAAAAABJRU5ErkJggg==", Ae = "Howdy folks how yall doing out there?", me = {
  title: "Core/AgentMessage",
  component: x
}, pe = {
  args: {
    text: w
  }
}, he = {
  args: {
    text: w,
    ai: !0,
    generatedMessage: "Generated by AI, double-check for accuracy."
  }
}, Ie = {
  args: {
    text: w,
    ai: !0,
    generatedMessage: "Generated by AI, double-check for accuracy.",
    children: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
      /* @__PURE__ */ e.jsx(
        E,
        {
          image: g,
          inline: !0,
          title: "Lorem ipsum dolor sit amet consectetur. Quis risus nibh tincidunt platea. A donec amet gravida aliquam sed eget aliquet sollicitudin turpis.",
          link: "voiceflow.com"
        }
      ),
      /* @__PURE__ */ e.jsx(
        E,
        {
          image: g,
          inline: !0,
          title: "Lorem ipsum dolor sit amet consectetur. Quis risus nibh tincidunt platea. A donec amet gravida aliquam sed eget aliquet sollicitudin turpis.",
          link: "voiceflow.com"
        }
      ),
      /* @__PURE__ */ e.jsx(
        E,
        {
          image: g,
          inline: !0,
          title: "Lorem ipsum dolor sit amet consectetur. Quis risus nibh tincidunt platea. A donec amet gravida aliquam sed eget aliquet sollicitudin turpis.",
          link: "voiceflow.com"
        }
      )
    ] })
  }
}, Ce = {
  args: {
    text: N
  }
}, Ee = {
  args: {
    text: le
  }
}, ye = {
  args: {
    text: V
  },
  render: ({ children: t, ...o }) => /* @__PURE__ */ e.jsx("div", { style: { maxWidth: "300px" }, children: /* @__PURE__ */ e.jsx(x, { ...o }) })
}, fe = {
  args: {
    text: de
  }
}, Be = {
  args: {
    text: ce
  }
}, U = ({ message: t }) => {
  const [o, C] = B("");
  return re(() => {
    let d = 0;
    const I = setInterval(() => {
      C(t.slice(0, d + 1)), d++, d === t.length && clearInterval(I);
    }, 5);
    return () => clearInterval(I);
  }, [t]), /* @__PURE__ */ e.jsx(x, { text: o });
}, we = {
  render: () => /* @__PURE__ */ e.jsx(U, { message: Ae }),
  parameters: {
    chromatic: { disableSnapshot: !0 }
  }
}, ve = {
  render: () => /* @__PURE__ */ e.jsx(U, { message: N }),
  parameters: {
    chromatic: { disableSnapshot: !0 }
  }
}, eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  AIGenerated: he,
  CodeResponse: ye,
  InlineCode: Ee,
  Lists: Be,
  Markdown: Ce,
  Small: pe,
  Streaming: we,
  StreamingFullMarkdown: ve,
  Tables: fe,
  WithLink: Ie,
  default: me
}, Symbol.toStringTag, { value: "Module" })), n = "data:image/png;base64, ", Qe = {
  title: "Core/Avatar",
  component: K,
  argTypes: {
    size: {
      options: ["small", "large"],
      control: { type: "radio" },
      defaultValue: "small"
    }
  },
  args: {
    avatar: n
  }
}, xe = {
  args: {
    size: "small"
  }
}, ke = {
  args: {
    size: "large"
  }
}, to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Large: ke,
  Small: xe,
  default: Qe
}, Symbol.toStringTag, { value: "Module" })), s = (t, { args: o }) => /* @__PURE__ */ e.jsx("div", { style: m(h, { colors: p() }), children: /* @__PURE__ */ e.jsx(t, { args: { ...o } }) }), z = (t) => /* @__PURE__ */ e.jsx(
  M,
  {
    config: {
      verify: { projectID: "project-id" },
      url: "",
      versionID: "version-id",
      autostart: !0,
      allowDangerousHTML: !0,
      user: { name: "User" },
      render: { mode: P.OVERLAY }
    },
    assistant: {
      title: "Voiceflow Assistant",
      color: H.ACCENT[500],
      image: i,
      avatar: i,
      launcher: void 0,
      watermark: !0,
      feedback: !1,
      stylesheet: void 0,
      description: "",
      position: y.ChatPosition.RIGHT,
      persistence: y.ChatPersistence.LOCAL_STORAGE,
      audioInterface: !1,
      defaultAudioOutput: void 0,
      spacing: {
        side: 30,
        bottom: 30
      },
      extensions: []
    },
    children: t()
  }
), be = "test-id", Se = {
  title: "Core/Button",
  component: q,
  argTypes: {
    variant: {
      options: Object.values(c),
      control: { type: "radio" },
      defaultValue: c.PRIMARY
    }
  },
  args: {
    children: "Button label",
    round: !1,
    onClick: () => {
      alert("Button clicked");
    },
    testID: be
  },
  decorators: [s]
}, Le = {
  args: {
    variant: c.PRIMARY
  }
}, je = {
  args: {
    variant: c.PRIMARY,
    large: "true"
  }
}, Re = {
  args: {
    variant: c.SECONDARY
  }
}, Te = {
  args: {
    variant: c.SECONDARY,
    large: "true"
  }
}, Me = {
  args: {
    variant: c.INLINE
  }
}, Pe = {
  args: {
    variant: c.INLINE,
    children: "Button label that is very long and should wrap. Button label that is very long and should wrap."
  },
  render: () => /* @__PURE__ */ e.jsx("div", { style: { width: "200px" }, children: /* @__PURE__ */ e.jsx(q, { variant: c.INLINE, large: "true", children: "Button label that is very long and should wrap. Button label that is very long and should wrap." }) })
}, oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Inline: Me,
  InlineWrapped: Pe,
  Primary: Le,
  PrimaryLarge: je,
  Secondary: Re,
  SecondaryLarge: Te,
  default: Se
}, Symbol.toStringTag, { value: "Module" })), He = {
  title: "Components/Card",
  component: $,
  args: {
    title: "Title",
    image: "",
    description: "Description.",
    actions: []
  }
}, qe = {}, Oe = {
  args: {
    description: void 0
  }
}, De = {
  args: {
    title: void 0
  }
}, v = {
  args: {
    image: g
  }
}, Ye = {
  args: {
    ...v.args,
    actions: [
      { request: {}, name: "Label" },
      { request: {}, name: "Label" },
      { request: {}, name: "Label" }
    ]
  }
}, _e = {
  args: {
    title: void 0,
    description: void 0,
    actions: [
      { request: {}, name: "Label" },
      { request: {}, name: "Label" },
      { request: {}, name: "Label" }
    ]
  }
}, Je = {
  args: {
    ...v.args,
    actions: [
      { request: {}, name: "First Button with a very long long long wrapping label" },
      { request: {}, name: "Second Button with a shorter text" },
      { request: {}, name: "Third button, also with a shorter text" }
    ]
  }
}, Ve = {
  args: {
    ...v.args,
    title: "Long card title to wrap inside the card. Some more text to test the growth of card.",
    actions: [{ request: {}, name: "First Button" }]
  }
}, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Actionable: Ye,
  OnlyActions: _e,
  OnlyDescription: De,
  OnlyTitle: Oe,
  Simple: qe,
  WithImage: v,
  WithLongLabels: Je,
  WithLongTitle: Ve,
  default: He
}, Symbol.toStringTag, { value: "Module" })), G = "https://picsum.photos/seed/9/300/200", Ne = {
  component: ee,
  title: "Components/Carousel",
  decorators: [
    (t) => /* @__PURE__ */ e.jsx(
      M,
      {
        config: {
          verify: { projectID: "project-id" },
          url: "",
          versionID: "version-id",
          autostart: !0,
          allowDangerousHTML: !0,
          user: { name: "User" },
          render: { mode: P.OVERLAY }
        },
        assistant: {
          title: "Voiceflow Assistant",
          color: H.ACCENT[500],
          image: i,
          avatar: i,
          launcher: void 0,
          watermark: !0,
          feedback: !1,
          stylesheet: void 0,
          description: "",
          position: y.ChatPosition.RIGHT,
          persistence: y.ChatPersistence.LOCAL_STORAGE,
          audioInterface: !1,
          defaultAudioOutput: void 0,
          spacing: {
            side: 30,
            bottom: 30
          },
          extensions: []
        },
        children: t()
      }
    ),
    s
  ]
}, F = G, Z = {
  title: "First Card",
  description: "Lorem ipsum dolor sit amet",
  image: F,
  actions: [
    { request: {}, name: "First Button" },
    { request: {}, name: "Second Button" },
    { request: {}, name: "Third Button" }
  ]
}, b = [
  Z,
  {
    title: "Second Card",
    description: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Exercitationem voluptas perspiciatis est quis dolores!",
    image: F
  },
  {
    title: "Third Card with a long title that wraps",
    description: "Lorem ipsum dolor sit amet consectetur adipisicing elit.",
    actions: [
      { request: {}, name: "Fourth Button with a long label that wraps" },
      { request: {}, name: "Fifth Button" }
    ]
  }
], Ue = {
  render: () => /* @__PURE__ */ e.jsx("div", { style: { width: "380px" }, children: /* @__PURE__ */ e.jsxs(
    r,
    {
      title: "Your awesome assistant",
      description: "Im hot, youre not, deal with it",
      avatar: i,
      isLoading: !1,
      image: G,
      hasEnded: !1,
      messageInputProps: {},
      children: [
        /* @__PURE__ */ e.jsx(
          Q,
          {
            avatar: i,
            message: {
              type: l.CAROUSEL,
              cards: b
            },
            withImage: !1
          }
        ),
        /* @__PURE__ */ e.jsx(
          Q,
          {
            avatar: i,
            message: {
              type: l.TEXT,
              text: "Do you like this carousel ?"
            },
            withImage: !0
          }
        )
      ]
    }
  ) })
}, ze = {
  args: {
    cards: [Z]
  }
}, Ge = {
  args: {
    cards: b
  }
}, Fe = {
  args: {
    cards: b
  }
}, so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Default: Ue,
  MultipleCards: Ge,
  SingleCard: ze,
  WithControls: Fe,
  default: Ne
}, Symbol.toStringTag, { value: "Module" })), Ze = {
  title: "Core/Carousel Button",
  component: te,
  args: {
    visible: !0
  }
}, Xe = {
  args: {
    direction: "right"
  }
}, We = {
  args: {
    direction: "left"
  }
}, ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Left: We,
  Right: Xe,
  default: Ze
}, Symbol.toStringTag, { value: "Module" })), Ke = [
  "orange",
  "#397DFF",
  "#A3E4D7",
  "red",
  "#F1948A",
  "#0000FF",
  "#85C1E9",
  "#F7DC6F",
  "#BB8FCE",
  "green",
  "black",
  "yellow",
  "purple"
], $e = {
  title: "Theme/Colors",
  component: O
}, et = {
  render: () => /* @__PURE__ */ e.jsx("div", { children: Ke.map((t, o) => /* @__PURE__ */ e.jsx("div", { style: { marginBottom: "2rem" }, children: /* @__PURE__ */ e.jsx(O, { color: t }) }, o)) })
}, io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Primary: et,
  default: $e
}, Symbol.toStringTag, { value: "Module" })), tt = {
  title: "Button/FeedbackButton",
  component: k,
  args: {}
}, ot = {
  render: () => /* @__PURE__ */ e.jsx("div", { style: { width: "400px", ...m(h, { colors: p("green") }) }, children: /* @__PURE__ */ e.jsx(k, { onClick: () => null, variant: D.PREVIOUS_RESPONSE }) })
}, nt = {
  render: () => /* @__PURE__ */ e.jsx("div", { style: { width: "400px", ...m(h, { colors: p("red") }) }, children: /* @__PURE__ */ e.jsx(k, { onClick: () => null, variant: D.LAST_RESPONSE }) })
}, ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  LastResponse: nt,
  PreviousResponse: ot,
  default: tt
}, Symbol.toStringTag, { value: "Module" })), st = {
  title: "Components/Chat/Header",
  component: R,
  args: {
    title: "Agent name",
    image: n,
    actions: []
  },
  render: (t) => /* @__PURE__ */ e.jsx(R, { ...t }),
  decorators: [s]
}, at = {}, it = {
  args: {
    actions: [{ svg: "volume" }, { svg: "reset" }]
  }
}, rt = {
  args: {
    actions: [{ svg: "mute" }, { svg: "reset" }]
  }
}, lt = {
  args: {
    actions: [{ svg: "volume" }, { svg: "reset" }]
  },
  decorators: [s]
}, ct = {
  args: {
    actions: [{ svg: "volume" }, { svg: "reset" }],
    image: void 0
  },
  decorators: [s]
}, dt = {
  args: {
    actions: [{ svg: "volume" }, { svg: "reset" }, { svg: "close" }]
  },
  decorators: [s]
}, lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Actionable: it,
  Base: at,
  Mobile: dt,
  Muted: rt,
  NoImage: ct,
  Themed: lt,
  default: st
}, Symbol.toStringTag, { value: "Module" })), gt = {
  title: "Components/Launcher",
  component: Y,
  parameters: {
    controls: { hideNoControlsWarning: !0 }
  },
  decorators: [s]
}, S = (t) => {
  const [o, C] = B(!1), d = () => {
    C((I) => !I);
  };
  return /* @__PURE__ */ e.jsx(Y, { isOpen: o, onClick: d, ...t });
}, ut = {
  render: () => /* @__PURE__ */ e.jsx(S, {})
}, At = { render: () => /* @__PURE__ */ e.jsx(S, { image: g }) }, mt = {
  render: () => /* @__PURE__ */ e.jsx(S, { image: g, label: "Label" })
}, co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Base: ut,
  WithCustomIcon: At,
  WithLabel: mt,
  default: gt
}, Symbol.toStringTag, { value: "Module" })), pt = {
  title: "Components/LinkPreview",
  component: E,
  parameters: {
    controls: { hideNoControlsWarning: !0 }
  }
}, ht = {
  args: {
    image: g,
    title: "Lorem ipsum dolor sit amet consectetur. Quis risus nibh tincidunt platea. A donec amet gravida aliquam sed eget aliquet sollicitudin turpis.",
    link: "websiteexample.com"
  }
}, It = {
  args: {
    title: "Lorem ipsum dolor sit amet consectetur. Quis risus nibh tincidunt platea. A donec amet gravida aliquam sed eget aliquet sollicitudin turpis.",
    link: "websiteexample.com"
  }
}, Ct = {
  args: {
    title: "Lorem ipsum dolor sit amet consectetur. Quis risus nibh tincidunt platea. A donec amet gravida aliquam sed eget aliquet sollicitudin turpis.",
    link: "https://google.com"
  }
}, Et = {
  args: {
    title: "Lorem ipsum dolor sit amet consectetur. Quis risus nibh tincidunt platea. A donec amet gravida aliquam sed eget aliquet sollicitudin turpis.",
    link: "some_guide.pdf"
  }
}, yt = {
  args: {
    inline: !0,
    image: g,
    title: "Lorem ipsum dolor sit amet consectetur. Quis risus nibh tincidunt platea. A donec amet gravida aliquam sed eget aliquet sollicitudin turpis.",
    link: "websiteexample.com"
  }
}, ft = {
  args: {
    inline: !0,
    title: "Lorem ipsum dolor sit amet consectetur. Quis risus nibh tincidunt platea. A donec amet gravida aliquam sed eget aliquet sollicitudin turpis.",
    link: "websiteexample.com"
  }
}, Bt = {
  args: {
    inline: !0,
    title: "Lorem ipsum dolor sit amet consectetur. Quis risus nibh tincidunt platea. A donec amet gravida aliquam sed eget aliquet sollicitudin turpis.",
    link: "https://google.com"
  }
}, wt = {
  args: {
    inline: !0,
    title: "Lorem ipsum dolor sit amet consectetur. Quis risus nibh tincidunt platea. A donec amet gravida aliquam sed eget aliquet sollicitudin turpis.",
    link: "some_guide.pdf"
  }
}, go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Default: ht,
  DocumentPdf: Et,
  DocumentUrl: Ct,
  Inline: yt,
  InlineDocumentPdf: wt,
  InlineDocumentUrl: Bt,
  Loading: It,
  LoadingInline: ft,
  default: pt
}, Symbol.toStringTag, { value: "Module" }));
var vt = oe({ defaultClassName: "_5q07fe0", variantClassNames: { isOpen: { true: "_5q07fe1", false: "_5q07fe2" } }, defaultVariants: {}, compoundVariants: [] });
const Qt = {
  title: "Core/MessageInput",
  component: f,
  decorators: [
    s,
    (t) => /* @__PURE__ */ e.jsx("div", { style: { width: "400px" }, children: /* @__PURE__ */ e.jsx(t, {}) })
  ]
}, xt = () => /* @__PURE__ */ e.jsx("div", { style: { width: "380px" }, children: /* @__PURE__ */ e.jsx(f, { placeholder: "Message...", onSubmit: () => Promise.resolve() }) }), kt = {
  render: () => /* @__PURE__ */ e.jsx(xt, {})
}, bt = {
  render: () => /* @__PURE__ */ e.jsx("div", { style: { width: "380px" }, children: /* @__PURE__ */ e.jsx(
    f,
    {
      placeholder: "Message...",
      disableSend: !1,
      audioInterface: !0,
      onSubmit: () => Promise.resolve()
    }
  ) })
}, St = () => {
  const [t, o] = B(!1);
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
    /* @__PURE__ */ e.jsx("div", { className: vt({ isOpen: t }), children: /* @__PURE__ */ e.jsx(
      f,
      {
        placeholder: "Message...",
        disableSend: !1,
        audioInterface: !0,
        onSubmit: () => Promise.resolve()
      }
    ) }),
    /* @__PURE__ */ e.jsx("button", { style: { position: "absolute", top: 10, right: 10 }, onClick: () => o(!t), children: "Toggle" })
  ] });
}, Lt = {
  render: () => /* @__PURE__ */ e.jsx(St, {})
}, uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  AnimationTest: Lt,
  Base: kt,
  WithAudioInput: bt,
  default: Qt
}, Symbol.toStringTag, { value: "Module" })), jt = {
  title: "Widget",
  parameters: {
    layout: "centered"
  },
  decorators: [z, s]
}, a = (t) => /* @__PURE__ */ e.jsx(
  ne,
  {
    avatar: n,
    timestamp: Date.now(),
    messages: t.map((o) => ({ type: "text", text: o }))
  }
), A = (t) => /* @__PURE__ */ e.jsx(se, { message: t, timestamp: Date.now() }), L = ({ isLoading: t }) => {
  const [o, C] = B([
    { type: "User", text: "Cool, great weather ☀️" },
    {
      type: "User",
      text: "How bout you? What about Bob? How has he been. Is he ok. Should I separate these messages?"
    },
    { type: "Agent", text: "Howdy, great to meet you!" },
    { type: "Agent", text: "What up" },
    { type: "User", text: "How bout you?" },
    { type: "Agent", text: "Howdy, great to meet you!" },
    { type: "Agent", text: "What up" },
    { type: "User", text: "How bout you?" },
    { type: "Agent", text: "Howdy, great to meet you!" },
    { type: "Agent", text: "What up" },
    { type: "User", text: "How bout you? Hows it going does this hit the loading state at the bottom of the chat?" }
  ]), d = [
    "How are you today?",
    "Nice to hear from you!",
    "I’m here to help!",
    "What can I do for you?",
    "Good to see you!"
  ], I = async (u) => {
    if (!u)
      return;
    const j = [...o], X = d[Math.floor(Math.random() * d.length)];
    j.push({ type: "Agent", text: X }), C(j);
  };
  return /* @__PURE__ */ e.jsxs(
    r,
    {
      title: "Your AI assistant",
      image: "",
      description: "Hello, I am here to help with whatever you need.",
      avatar: n,
      showPoweredBy: !0,
      extraLinkText: "Privacy",
      extraLinkUrl: "https://voiceflow.com",
      isLoading: !1,
      hasEnded: !1,
      messageInputProps: {
        onSubmit: async (u) => I(u),
        placeholder: "Message..."
      },
      children: [
        o.map((u) => u.type === "Agent" ? a([u.text]) : A(u.text)),
        t && /* @__PURE__ */ e.jsx(_, { avatar: n })
      ]
    }
  );
}, Rt = {
  render: () => /* @__PURE__ */ e.jsx(L, {})
}, Tt = {
  render: () => /* @__PURE__ */ e.jsx("div", { style: m(h, { colors: p("red") }), children: /* @__PURE__ */ e.jsx(L, {}) })
}, Mt = {
  render: () => /* @__PURE__ */ e.jsx(L, { isLoading: !0 })
}, Pt = {
  render: () => /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", gap: "32px" }, children: [
    /* @__PURE__ */ e.jsx("div", { style: { width: "400px", ...m(h, { colors: p("red") }) }, children: /* @__PURE__ */ e.jsx(
      r,
      {
        title: "Your AI assistant",
        image: "",
        description: "Hello, I am here to help with whatever you need.",
        avatar: n,
        showPoweredBy: !0,
        extraLinkText: "Privacy",
        extraLinkUrl: "https://voiceflow.com",
        isLoading: !1,
        hasEnded: !1,
        messageInputProps: {
          onSubmit: () => Promise.resolve(),
          placeholder: "Message..."
        }
      }
    ) }),
    /* @__PURE__ */ e.jsx("div", { style: { width: "400px", ...m(h, { colors: p("green") }) }, children: /* @__PURE__ */ e.jsx(
      r,
      {
        title: "Your AI assistant",
        image: "",
        description: "Hello, I am here to help with whatever you need.",
        avatar: n,
        showPoweredBy: !0,
        extraLinkText: "Privacy",
        extraLinkUrl: "https://voiceflow.com",
        isLoading: !1,
        hasEnded: !1,
        messageInputProps: {
          onSubmit: () => Promise.resolve(),
          placeholder: "Message..."
        }
      }
    ) }),
    /* @__PURE__ */ e.jsx("div", { style: { width: "400px", ...m(h, { colors: p("purple") }) }, children: /* @__PURE__ */ e.jsx(
      r,
      {
        title: "",
        image: "",
        description: "",
        avatar: n,
        showPoweredBy: !0,
        extraLinkText: "Privacy",
        extraLinkUrl: "https://voiceflow.com",
        isLoading: !1,
        hasEnded: !1,
        messageInputProps: {
          onSubmit: () => Promise.resolve(),
          placeholder: "Message..."
        }
      }
    ) })
  ] })
}, Ht = {
  render: () => /* @__PURE__ */ e.jsx(
    r,
    {
      title: "Your AI assistant",
      image: "",
      description: "Let's get this party started already!",
      avatar: n,
      buttons: [],
      extraLinkText: "Privacy",
      extraLinkUrl: "https://voiceflow.com",
      showPoweredBy: !1,
      isLoading: !1,
      hasEnded: !1,
      messageInputProps: { onSubmit: () => Promise.resolve(), placeholder: "Message..." }
    }
  )
}, qt = {
  render: () => /* @__PURE__ */ e.jsx(
    r,
    {
      title: "Your AI assistant",
      image: "",
      description: "Let's get this party started already!",
      avatar: n,
      buttons: [],
      showPoweredBy: !0,
      isLoading: !1,
      hasEnded: !1,
      messageInputProps: { onSubmit: () => Promise.resolve(), placeholder: "Message..." }
    }
  )
}, Ot = {
  render: () => /* @__PURE__ */ e.jsxs(
    r,
    {
      title: "Your AI assistant",
      image: "",
      description: "Let's get this party started already!",
      avatar: n,
      buttons: [],
      showPoweredBy: !1,
      isLoading: !1,
      hasEnded: !1,
      messageInputProps: { onSubmit: () => Promise.resolve(), placeholder: "Message..." },
      children: [
        a(["👋🏻 Good morning!", "How are you today?", "How can I help you ?"]),
        A("How bout you?"),
        a(["Thanks for asking", "here are some cool emojis:", "😝 ✌️ ☎️  🤦🏼‍♀️  🤯"]),
        a(["Anything else I can do to help you today?"]),
        A("Dont think so. Everything else is amazing!"),
        a(["ok, so bye for now"])
      ]
    }
  )
}, Dt = {
  render: () => /* @__PURE__ */ e.jsxs(
    r,
    {
      title: "Your amazing assistant",
      image: n,
      description: "Let's get this party started already!",
      avatar: n,
      buttons: [],
      showPoweredBy: !0,
      isLoading: !1,
      hasEnded: !0,
      messageInputProps: { onSubmit: () => Promise.resolve(), placeholder: "Message..." },
      children: [
        a(["👋🏻 Good morning!", "How are you today?", "How can I help you ?"]),
        A("How bout you?"),
        a(["Thanks for asking", "here are some cool emojis:", "😝 ✌️ ☎️  🤦🏼‍♀️  🤯"]),
        A("Cool, I *LOVE* emojis!"),
        a([`I know.
That's why I sent you some.`]),
        A("🤯"),
        a(["Anything else I can do to help you today?"]),
        A("Dont think so. Everything else is amazing!"),
        a(["ok, so bye for now"])
      ]
    }
  )
}, Ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Base: Rt,
  BaseThemed: Tt,
  ChatEnded: Dt,
  LoadingState: Mt,
  NoFooterLinks: Ot,
  NoPoweredBy: Ht,
  OnlyPoweredBy: qt,
  Themed: Pt,
  default: jt
}, Symbol.toStringTag, { value: "Module" })), Yt = {
  title: "Components/Chat/Prompt",
  component: T,
  args: {
    cancel: { label: "Cancel" }
  },
  render: (t) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
    /* @__PURE__ */ e.jsx("div", { style: { height: 250, backgroundColor: "lavender" } }),
    /* @__PURE__ */ e.jsx(T, { ...t })
  ] }),
  decorators: [s]
}, _t = {
  args: {
    visible: !0,
    accept: { label: "Primary Action" }
  }
}, Jt = {
  args: {
    visible: !0,
    accept: { label: "Dangerous Action" }
  }
}, mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Base: _t,
  Dangerous: Jt,
  default: Yt
}, Symbol.toStringTag, { value: "Module" })), Vt = {
  title: "Core/Send Button",
  component: ae,
  decorators: [s]
}, Nt = {
  args: {
    disabled: !1,
    color: "#387dff"
  }
}, Ut = {
  args: {
    disabled: !0,
    color: "#387dff"
  }
}, po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Default: Nt,
  Disabled: Ut,
  default: Vt
}, Symbol.toStringTag, { value: "Module" })), zt = {
  title: "Components/TypingIndicator",
  component: ie,
  decorators: [z, s]
}, Gt = {
  args: {}
}, Ft = {
  render: () => /* @__PURE__ */ e.jsx("div", { style: { width: "380px" }, children: /* @__PURE__ */ e.jsxs(
    r,
    {
      title: "Your AI assistant",
      image: "",
      description: "It's tricky to rock a rhyme, to rock a rhyme thats right on time, it's tricky",
      avatar: i,
      showPoweredBy: !0,
      extraLinkText: "Privacy",
      extraLinkUrl: "https://voiceflow.com",
      isLoading: !1,
      hasEnded: !1,
      messageInputProps: {
        onSubmit: () => Promise.resolve(),
        placeholder: "Message..."
      },
      children: [
        /* @__PURE__ */ e.jsx(Q, { avatar: i, withImage: !1, message: { type: "text", text: "Good morning" } }),
        /* @__PURE__ */ e.jsx(_, { avatar: i })
      ]
    }
  ) })
}, ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Default: Gt,
  InsideChat: Ft,
  default: zt
}, Symbol.toStringTag, { value: "Module" })), Zt = {
  title: "Core/WelcomeMessage",
  component: J,
  args: {
    avatar: n
  },
  parameters: {
    layout: "centered"
  }
}, Xt = {
  args: {
    avatar: n,
    title: "Agent name",
    description: "Agent description."
  }
}, Wt = {
  args: {
    avatar: n,
    title: "Hello, I am your #1 favourite AI assistant, meant to help you out in all sorts of ways. Hello, I am your #1 favourite AI assistant, meant to help you out in all sorts of ways. Hello, I am your #1 favourite AI assistant, meant to help you out in all sorts of ways. Hello, I am your #1 favourite AI assistant, meant to help you out in all sorts of ways. Hello, I am your #1 favourite AI assistant, meant to help you out in all sorts of ways.",
    description: "I can do tons of stuff, like help you with your account, answer questions, and even tell you a joke or two. Just ask me anything! I can do tons of stuff, like help you with your account, answer questions, and even tell you a joke or two. Just ask me anything! I can do tons of stuff, like help you with your account, answer questions, and even tell you a joke or two. Just ask me anything!I can do tons of stuff, like help you with your account, answer questions, and even tell you a joke or two. Just ask me anything! I can do tons of stuff, like help you with your account, answer questions, and even tell you a joke or two. Just ask me anything! I can do tons of stuff, like help you with your account, answer questions, and even tell you a joke or two. Just ask me anything!"
  },
  render: (t) => /* @__PURE__ */ e.jsxs("div", { children: [
    "Mock container",
    /* @__PURE__ */ e.jsx("div", { style: { border: "1px solid black" }, children: /* @__PURE__ */ e.jsx(J, { ...t }) })
  ] })
}, Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Base: Xt,
  LongContent: Wt,
  default: Zt
}, Symbol.toStringTag, { value: "Module" }));
export {
  eo as AgentMessage,
  to as Avatar,
  oo as Button,
  no as Card,
  so as Carousel,
  ao as CarouselButton,
  io as ColorTheme,
  ro as FeedbackButton,
  lo as Header,
  co as Launcher,
  go as LinkPreview,
  uo as MessageInput,
  Ao as NewChat,
  mo as Prompt,
  po as SendButton,
  ho as TypingIndicator,
  Io as WelcomeMessage
};
