(this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[0],{20:function(e,t,n){e.exports=n(29)},29:function(e,t,n){"use strict";n.r(t);var a=n(1),i=n.n(a),r=n(17),c=n.n(r),o=n(7),l=n(2),s=n(3),m=n(4),d=n(5),u=n(12),p=n(11),f=n(19),h=n(16),g=["iconName"],y=function(e){var t=e.iconName,n=Object(p.a)(e,g),a=f[t],r=Object(o.a)({},n.style);return a||(r.visibility="hidden",a=h.a),i.a.createElement(a,{size:n.size,style:r})},C=function(e){Object(m.a)(n,e);var t=Object(d.a)(n);function n(e){var a;Object(s.a)(this,n),(a=t.call(this,e)).render=function(){var e=a.props.args.choices,t=a.props.args.options||{},n=a.state.selectedChoice;if("horizontal"===t.orientation){var r={padding:"0.25em",flex:1,background:"rgb(237,240,244)",cursor:"pointer",textAlign:"center",userSelect:"none"},c=Object(o.a)(Object(o.a)({},r),{},{background:"rgb(82, 127, 44)",borderRadius:"10px",color:"white"});return i.a.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-evenly",columnGap:"0.5em",backgroundColor:"rgb(240,240,240)",padding:"0.5em",borderRadius:"10px"}},e.map((function(e,t){return i.a.createElement("div",{key:t,style:n===e?c:r,onClick:function(){return a.handleChoiceClick(e)}},e)})))}var l={display:"flex",flexDirection:"row",alignItems:"flex-start",marginTop:"1em",width:"100%",padding:"0.5em",userSelect:"none",cursor:"pointer"},s=Object(o.a)(Object(o.a)({},l),{},{background:"linear-gradient(0deg, rgba(72, 116, 39, 0.12), rgba(72, 116, 39, 0.12))",fontWeight:500}),m={marginLeft:"0.5em",marginRight:"2em"},d={marginLeft:"auto"},u={fontSize:"16px"},p=t.icons||[],f=t.links||[];return i.a.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-evenly",alignItems:"flex-start"}},e.map((function(e,t){var r,c,o=f[t];return Array.isArray(p[t])?(r=p[t][0],c=p[t][1]):(r=p[t],c=void 0),n===e?i.a.createElement("div",{onClick:function(){return a.handleChoiceClick(e)},style:s},i.a.createElement(y,{iconName:r,size:25,style:m}),i.a.createElement("span",{style:u},e),i.a.createElement(y,{iconName:c,size:25,style:d})):o?i.a.createElement("div",{onClick:function(){return a.handleLinkClick(o)},style:l},i.a.createElement(y,{iconName:r,size:25,style:m}),i.a.createElement("span",{style:u},e),i.a.createElement(y,{iconName:c,size:25,style:d})):i.a.createElement("div",{onClick:function(){return a.handleChoiceClick(e)},style:l},i.a.createElement(y,{iconName:r,size:25,style:m}),i.a.createElement("span",{style:u},e),i.a.createElement(y,{iconName:c,size:25,style:d}))})))},a.handleLinkClick=function(e){window.open(e,"_blank")},a.handleChoiceClick=function(e){a.setState({selectedChoice:e}),a.setState((function(t){return{selectedChoice:e}}),(function(){return u.a.setComponentValue(a.state.selectedChoice)}))};var r=a.props.args.choices,c=a.props.args.options||{};return void 0!==c.default_index?(a.state={selectedChoice:r[c.default_index]},u.a.setComponentValue(a.state.selectedChoice)):(a.state={selectedChoice:""},u.a.setComponentValue(a.state.selectedChoice)),a}return Object(l.a)(n)}(u.b),b=Object(u.c)(C);c.a.render(i.a.createElement(i.a.StrictMode,null,i.a.createElement(b,null)),document.getElementById("root"))}},[[20,1,2]]]);
//# sourceMappingURL=main.6bcd94d8.chunk.js.map