(this.webpackJsonpstreamlit_lang_tts=this.webpackJsonpstreamlit_lang_tts||[]).push([[0],{26:function(e,t,n){"use strict";n.r(t);var s=n(8),i=n.n(s),r=n(17),c=n.n(r),o=n(5),a=n(0),l=n(1),d=n(2),p=n(3),b=n(15),h=n(7),j=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(l.a)(this,n);for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return(e=t.call.apply(t,[this].concat(i))).state={textToSpeak:e.props.args.name,isFocused:!1},e.render=function(){var t=e.props.args.name,n=e.props.args.label||"AI:",s=e.props.args.translation,i=e.props.theme,r={};return i&&(r=Object(o.a)(Object(o.a)({},r),{},{display:"inline-flex",WebkitBoxAlign:"center",alignItems:"center",WebkitBoxPack:"center",justifyContent:"center",fontWeight:400,fontSize:"15px",borderRadius:"0.25rem",borderWidth:"1px",borderStyle:"solid",borderColor:e.state.isFocused?i.primaryColor:"rgba(49, 51, 63, 0.2)",marginTop:0,marginLeft:"5px",lineHeight:1.6,color:"inherit",width:"auto",height:"40px",WebkitUserSelect:"none",backgroundColor:"rgb(255, 255, 255)"})),Object(h.jsx)("div",{children:Object(h.jsxs)("div",{style:{display:"flex"},children:[Object(h.jsx)("div",{style:{width:"35px"},children:Object(h.jsx)("p",{children:Object(h.jsx)("span",{style:{fontWeight:"bold"},children:n})})}),Object(h.jsxs)("div",{style:{flex:"1"},children:[Object(h.jsx)("p",{children:t}),Object(h.jsx)("p",{style:{fontStyle:"italic"},children:s})]}),Object(h.jsx)("div",{style:{width:"45px"},children:Object(h.jsx)("button",{style:r,onClick:e.onClicked,disabled:e.props.disabled,onFocus:e._onFocus,onBlur:e._onBlur,children:Object(h.jsx)("p",{style:{margin:0},children:"\ud83d\udde3"})})})]})})},e.onClicked=function(){e.state.textToSpeak;var t=new window.SpeechSynthesisUtterance,n=window.speechSynthesis.getVoices().filter((function(e){return"com.apple.voice.compact.es-ES.Monica"===e.voiceURI}))[0];t.text=e.props.args.name,t.voice=n,t.rate=.8,window.speechSynthesis.speak(t)},e._onFocus=function(){e.setState({isFocused:!0})},e._onBlur=function(){e.setState({isFocused:!1})},e}return Object(a.a)(n)}(b.a),u=Object(b.b)(j);c.a.render(Object(h.jsx)(i.a.StrictMode,{children:Object(h.jsx)(u,{})}),document.getElementById("root"))}},[[26,1,2]]]);
//# sourceMappingURL=main.78d08be9.chunk.js.map