import{n as e}from"./index-7yDgay5u.js";import{t}from"./defineProperty-BbfpZ9Tg.js";import{a as n}from"./jsx-runtime-DHSfUA5-.js";import{F as r,I as i,K as a,P as o,U as s}from"./test.id-DxQrYxPk.js";import{r as c,t as l}from"./WorkbenchOverlayService-D9CSrozm.js";var u,d=u=class{static create(e,t){return t.invokeFunction(e=>e.get(l)).createOverlay(`toast`,c.loadingToast,n.toast,n=>t.createInstance(u,e,n))}constructor(e,n,r){t(this,`options`,void 0),t(this,`workbenchOverlayService`,void 0),t(this,`_onStatusChange`,new s),t(this,`onStatusChange`,this._onStatusChange.event),t(this,`zIndex`,void 0),t(this,`instanceId`,void 0),t(this,`disposed`,!1),this.options=e,this.workbenchOverlayService=r,this.zIndex=n.zIndex,this.instanceId=n.instanceId}get message(){return this.options.message??e(`common.loading`,`Loading...`)}dispose(){this.disposed||(this.disposed=!0,this.workbenchOverlayService.removeOverlay(this.instanceId))}};d=u=r([i(2,l)],d);function f(){let e=o(a);return(t={})=>d.create(t,e)}export{f as t};
//# sourceMappingURL=useLoadingToast-BBb6RyKX.js.map