(this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[0],{21:function(e,t,a){e.exports=a(31)},31:function(e,t,a){"use strict";a.r(t);var n,r,i=a(1),l=a.n(i),s=a(19),o=a.n(s),c=a(17),m=a(6),p=a(13),u=a(10),d=a(20),h=a.n(d),g=function(e){return m.a.setFrameHeight(),document.createTextNode(e)},f=function(e){var t=e.theme,a=e.value,n=e.animateFrom,r=e.useTypewriter,i=e.partialReplies,s=p.a.div({display:"inline-block",background:t.secondaryBackgroundColor,border:"1px solid transparent",borderRadius:"10px",padding:"10px 14px",margin:"5px 20px",maxWidth:"70%",whiteSpace:"pre-wrap"});return r?l.a.createElement(s,null,l.a.createElement("span",null,n),l.a.createElement(h.a,{options:{delay:10,cursor:"\u258e",onCreateTextNode:g},onInit:function(e){e.typeString(a.split(n).join("")).callFunction((function(e){setTimeout((function(){return e.elements.cursor.setAttribute("hidden","hidden")}),3500),i&&m.a.setComponentValue(!1)})).start()}})):l.a.createElement(s,null,a)},b=Object(m.b)((function(e){Object(i.useEffect)((function(){m.a.setFrameHeight()}));var t,a=e.args,s=a.isUser,o=a.avatarStyle,d=a.seed,h=a.animateFrom,g=a.value,b=a.useTypewriter,v=a.partialReplies;t=o.startsWith("https")||o.startsWith("data:image")?o:"https://avatars.dicebear.com/api/".concat(o,"/").concat(d,".svg");var x=e.theme;if(!x)return l.a.createElement("div",null,"Theme is undefined, please check streamlit version.");var E=p.a.img({border:"1px solid transparent",height:"3rem",width:"3rem",margin:0}),y=p.a.div({display:"flex",fontFamily:"".concat(x.font,", 'Segoe UI', 'Roboto', sans-serif"),height:"auto",margin:0,width:"100%"},(function(e){return e.isUser?Object(u.a)(n||(n=Object(c.a)(["\n        flex-direction: row-reverse;\n        & > div {\n          text-align: right;\n        }\n        padding-right: 5px;\n      "]))):Object(u.a)(r||(r=Object(c.a)(["\n      .Typewriter {\n        display: inline;\n      }\n    "])))}));return s?l.a.createElement(y,{isUser:s},l.a.createElement(E,{src:t,alt:"profile",draggable:"false"}),l.a.createElement(f,{theme:x,value:g,animateFrom:h})):l.a.createElement(y,{isUser:s},l.a.createElement(E,{src:t,alt:"profile",draggable:"false"}),l.a.createElement(f,{theme:x,value:g,animateFrom:h,useTypewriter:b,partialReplies:v}))}));o.a.render(l.a.createElement(l.a.StrictMode,null,l.a.createElement(b,null)),document.getElementById("root"))}},[[21,1,2]]]);
//# sourceMappingURL=main.176cdff6.chunk.js.map