import{r as t,g as s}from"./p-a0569a5f.js";import{A as i}from"./p-1118cf69.js";import"./p-83f217d4.js";let e=class{constructor(s){t(this,s),this.when=!0,this.message=""}enable(t){this.unblock&&this.unblock(),this.history&&(this.unblock=this.history.block(t))}disable(){this.unblock&&(this.unblock(),this.unblock=void 0)}componentWillLoad(){this.when&&this.enable(this.message)}updateMessage(t,s){this.when?this.when&&s===t||this.enable(this.message):this.disable()}componentDidUnload(){this.disable()}render(){return null}get el(){return s(this)}static get watchers(){return{message:["updateMessage"],when:["updateMessage"]}}};i.injectProps(e,["history"]);export{e as stencil_router_prompt}