(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),o=a.n(i),l=a(19),s=a.n(l),c=a(17),p=a(6),m=a(13),u=a(10),d=a(20),g=a.n(d),h=function(e){return p.a.setFrameHeight(),document.createTextNode(e)},f=function(e){var t=e.theme,a=e.value,n=e.animateFrom,r=e.useTypewriter,i=e.partialReplies,l=e.generationComplete,s=m.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&&a.split(n).join("")?o.a.createElement(s,null,o.a.createElement("span",null,n),o.a.createElement(g.a,{options:{delay:10,cursor:"\u258e",onCreateTextNode:h},onInit:function(e){e.typeString(a.split(n).join("")).callFunction((function(e){l&&setTimeout((function(){return e.elements.cursor.setAttribute("hidden","hidden")}),3e3),i&&p.a.setComponentValue(!1)})).start()}})):o.a.createElement(s,null,a)},b=Object(p.b)((function(e){Object(i.useEffect)((function(){p.a.setFrameHeight()}));var t,a=e.args,l=a.isUser,s=a.avatarStyle,d=a.seed,g=a.animateFrom,h=a.value,b=a.useTypewriter,v=a.partialReplies,x=a.generationComplete;t=s.startsWith("https")||s.startsWith("data:image")?s:"https://avatars.dicebear.com/api/".concat(s,"/").concat(d,".svg");var y=e.theme;if(!y)return o.a.createElement("div",null,"Theme is undefined, please check streamlit version.");var E=m.a.img({border:"1px solid transparent",height:"3rem",width:"3rem",margin:0}),w=m.a.div({display:"flex",fontFamily:"".concat(y.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 o.a.createElement(w,{isUser:l},o.a.createElement(E,{src:t,alt:"profile",draggable:"false"}),o.a.createElement(f,{theme:y,value:h,animateFrom:g,useTypewriter:b,partialReplies:v,generationComplete:x}))}));s.a.render(o.a.createElement(o.a.StrictMode,null,o.a.createElement(b,null)),document.getElementById("root"))}},[[21,1,2]]]);
//# sourceMappingURL=main.25cb62a4.chunk.js.map