import{r as registerInstance,g as getElement}from"./index-55faf181.js";import{A as ActiveRouter}from"./active-router-4c299649.js";import"./state-tunnel-04c0b67a.js";var RouteTitle=function(){function e(e){registerInstance(this,e);this.titleSuffix="";this.pageTitle=""}e.prototype.updateDocumentTitle=function(){var e=this.el;if(e.ownerDocument){e.ownerDocument.title=""+this.pageTitle+(this.titleSuffix||"")}};e.prototype.componentWillLoad=function(){this.updateDocumentTitle()};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{pageTitle:["updateDocumentTitle"]}},enumerable:false,configurable:true});return e}();ActiveRouter.injectProps(RouteTitle,["titleSuffix"]);export{RouteTitle as stencil_route_title};