import{r as s,h as e}from"./p-1a7a8b00.js";const n=class{constructor(e){s(this,e),this.pendingProcesses=void 0,this.useExternal=!1}resetState(){}componentWillLoad(){this.useExternal=!!customElements.get("bp-sdk-external-pending-process"),customElements.whenDefined("bp-sdk-external-pending-process").then((()=>{this.useExternal=!0}))}render(){return[this.useExternal&&this.renderExternal(),!this.useExternal&&this.renderInternal()]}renderExternal(){return e("bp-sdk-external-pending-process",{pendingProcesses:this.pendingProcesses})}renderInternal(){var s;const n=s=>`bp-sdk-pending-process-item__${s.state}`;return(null===(s=this.pendingProcesses)||void 0===s?void 0:s.length)?e("div",{class:"bp-sdk-pending-process__container"},this.pendingProcesses.map((s=>e("div",{class:n(s)},e("p",null,s.job_type),e("p",{class:"small-print"},s.state))))):null}};n.style=".small-print{font-size:0.75rem}";export{n as bp_sdk_pending_process}