import{__decorate as t}from"tslib";import{html as e}from"lit";import{property as i,customElement as s}from"lit/decorators.js";import{s as r}from"./nile-title.css.esm.js";import{N as m}from"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";let n=class extends m{constructor(){super(...arguments),this.headerText="",this.pageTitle=""}static get styles(){return[r]}updated(t){super.updated(t),this.updateDocumentTitle()}updateDocumentTitle(){document.title=this.pageTitle||this.headerText}render(){return e` ${this.headerText?e` ${this.headerText} `:""} `}};t([i({type:String})],n.prototype,"headerText",void 0),t([i({type:String})],n.prototype,"pageTitle",void 0),n=t([s("nile-title")],n);export{n as N};
