(this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[0],{20:function(t,e,a){t.exports=a(32)},32:function(t,e,a){"use strict";a.r(e);var n=a(5),r=a.n(n),o=a(16),s=a.n(o),c=a(6),l=a(0),u=a(1),i=a(2),p=a(3),g=a(12),m=a(18),f=a(19),d=function(t){Object(i.a)(a,t);var e=Object(p.a)(a);function a(){var t;Object(u.a)(this,a);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(t=e.call.apply(e,[this].concat(o))).state={tag:"",isFocused:!1},t.render=function(){var e=t.props.args.annotations,a=t.props.args.colors,n=t.props.args.labels,o=t.props.args.text,s=t.props.args.selected_label,l=t.props.args.show_label_selector,u=t.props.theme,i={};if(u){var p="1px solid ".concat(t.state.isFocused?u.primaryColor:"gray");i.border=p,i.outline=p}return r.a.createElement(f.a,{initial:{value:e,tag:s}},(function(e){var s=e.state,u=e.setState;return r.a.createElement("span",null,l&&r.a.createElement("select",{onChange:function(t){return u({tag:t.target.value})},value:s.tag},n.map((function(t){return r.a.createElement("option",{key:t,value:t},t)}))),r.a.createElement(m.TextAnnotator,{style:{maxWidth:500,lineHeight:1.5},content:o,value:s.value,onChange:function(e){return t.updateState(e,u)},getSpan:function(t){return Object(c.a)(Object(c.a)({},t),{},{tag:s.tag,color:a[n.indexOf(s.tag)]})}}))}))},t.updateState=function(t,e){e({value:t}),g.a.setComponentValue(t)},t._onFocus=function(){t.setState({isFocused:!0})},t._onBlur=function(){t.setState({isFocused:!1})},t}return Object(l.a)(a)}(g.b),b=Object(g.c)(d);s.a.render(r.a.createElement(b,null),document.getElementById("root"))}},[[20,1,2]]]);
//# sourceMappingURL=main.76180ef6.chunk.js.map