"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./styles.css-BY1XhlRN.js"),g=require("react"),x=`\`\`\`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>
\`\`\`
`,j=`# 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);
  }
}
\`\`\`
`,R=`# 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.

---
`,k=`# 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

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