(this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[0],{20:function(t,e,n){t.exports=n(32)},32:function(t,e,n){"use strict";n.r(e);var a=n(5),o=n.n(a),r=n(16),c=n.n(r),l=n(6),u=n(0),i=n(1),s=n(2),p=n(3),m=n(10),f=n(18),d=n(19),g=function(t){Object(s.a)(n,t);var e=Object(p.a)(n);function n(){var t;Object(i.a)(this,n);for(var a=arguments.length,r=new Array(a),c=0;c<a;c++)r[c]=arguments[c];return(t=e.call.apply(e,[this].concat(r))).state={numClicks:0,isFocused:!1},t.render=function(){var e=t.props.args.annotations,n=t.props.theme,a={};if(n){var r="1px solid ".concat(t.state.isFocused?n.primaryColor:"gray");a.border=r,a.outline=r}return o.a.createElement(d.a,{initial:{value:e,tag:"PERSON"}},(function(e){var n=e.state,a=e.setState;return o.a.createElement("span",null,o.a.createElement("select",{onChange:function(t){return a({tag:t.target.value})},value:n.tag},o.a.createElement("option",{value:"ORG"},"ORG"),o.a.createElement("option",{value:"PERSON"},"PERSON")),o.a.createElement(f.TextAnnotator,{style:{maxWidth:500,lineHeight:1.5},content:"Hello world!",value:n.value,onChange:function(e){return t.updateState(e,a)},getSpan:function(t){return Object(l.a)(Object(l.a)({},t),{},{tag:n.tag,color:"red"})}}),o.a.createElement("pre",{style:{backgroundColor:"white",fontSize:12,lineHeight:1.2,height:"200px"}},JSON.stringify(n,null,2)))}))},t.updateState=function(t,e){e({value:t}),m.a.setComponentValue(t)},t.onClicked=function(){t.setState((function(t){return{numClicks:t.numClicks+1}}),(function(){return m.a.setComponentValue(t.state.numClicks)}))},t._onFocus=function(){t.setState({isFocused:!0})},t._onBlur=function(){t.setState({isFocused:!1})},t}return Object(u.a)(n)}(m.b),h=Object(m.c)(g);c.a.render(o.a.createElement(o.a.StrictMode,null,o.a.createElement(h,null)),document.getElementById("root"))}},[[20,1,2]]]);
//# sourceMappingURL=main.e98670c6.chunk.js.map