(this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[0],{36:function(e,t,a){e.exports=a(49)},49:function(e,t,a){"use strict";a.r(t);var n=a(4),i=a.n(n),o=a(19),s=a.n(o),r=a(0),l=a(1),c=a(2),p=a(70),d=a(32),k=a.n(d),u=a(33),m=a.n(u),f=a(18),C=function(e){Object(l.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(r.a)(this,a);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(e=t.call.apply(t,[this].concat(o))).state={hasClickedLike:!1,hasClickedDislike:!1},e.render=function(){e.props.theme;var t=e.props.args.text,a=e.props.args.color_text,n=e.props.args.color_background,o=e.props.args.font_size,s=e.props.args.font_family,r=e.props.args.font_weight;return i.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",width:"100%",margin:"0px"}},i.a.createElement("p",{style:{color:a,background:n,fontSize:o,fontWeight:r,marginBottom:"0px",fontFamily:s,padding:"-6px",borderRadius:"6px"}},t),i.a.createElement(p.a,{onClick:e.onClickedLike,style:{paddingTop:"0px",paddingBottom:"0px"}},i.a.createElement(k.a,{color:e.state.hasClickedLike?"primary":"disabled"})),i.a.createElement(p.a,{onClick:e.onClickedDislike,style:{paddingTop:"0px",paddingBottom:"0px"}},i.a.createElement(m.a,{color:e.state.hasClickedDislike?"error":"disabled"})))},e.onClickedLike=function(){e.setState((function(t){return{hasClickedLike:!e.state.hasClickedLike}}),(function(){e.state.hasClickedLike?f.a.setComponentValue("liked"):f.a.setComponentValue("None")})),e.setState((function(e){return{hasClickedDislike:!1}}))},e.onClickedDislike=function(){e.setState((function(t){return{hasClickedDislike:!e.state.hasClickedDislike}}),(function(){e.state.hasClickedDislike?f.a.setComponentValue("disliked"):f.a.setComponentValue("None")})),e.setState((function(e){return{hasClickedLike:!1}}))},e}return a}(f.b),h=Object(f.c)(C);s.a.render(i.a.createElement(i.a.StrictMode,null,i.a.createElement(h,null)),document.getElementById("root"))}},[[36,1,2]]]);
//# sourceMappingURL=main.12fe5547.chunk.js.map