/*! For license information please see index.js.LICENSE.txt */
define(["react","gpui-style-inject","mobx"],(function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),i=n(t);function a(e){var t={exports:{}};return e(t,t.exports),t.exports}Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()||Object.assign;var c=a((function(e,t){var r=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;r=n("react.element"),t.Fragment=n("react.fragment")}var i=o.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var o,u={},f=null,s=null;for(o in void 0!==n&&(f=""+n),void 0!==t.key&&(f=""+t.key),void 0!==t.ref&&(s=t.ref),t)a.call(t,o)&&!c.hasOwnProperty(o)&&(u[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===u[o]&&(u[o]=t[o]);return{$$typeof:r,type:e,key:f,ref:s,props:u,_owner:i.current}}t.jsx=u,t.jsxs=u})),u=a((function(e){e.exports=c}));return i.default(".index-module_box__Gq1A3 {\n  width: 90px;\n  height: 90px;\n  background-color: rgba(37, 118, 207, 0.5);\n  border-radius: 50%;\n  border: 2px solid #2576cf;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  cursor: pointer;\n}\n.index-module_box__Gq1A3 div {\n  color: white;\n  font-size: 28px;\n}"),({gpui:t})=>{const[n,o]=e.useState("");return e.useEffect((()=>{let e=!0;const n=r.reaction((()=>{var e;return null===(e=null==t?void 0:t.params)||void 0===e?void 0:e.buttonName}),(t=>{e&&o(t)}),{fireImmediately:!0});return()=>{n(),e=!1}}),[t]),u.jsx("div",Object.assign({className:"index-module_box__Gq1A3",onClick:()=>function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function c(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}u((n=n.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function*(){t&&t.params.go&&t.params.go.split(",").forEach((e=>{try{t.root.go(parseInt(e))}catch(e){}}))}))},{children:u.jsx("div",{children:n},void 0)}),void 0)}}));