import{DisqusEmbed as t}from"../disqus-embed.js";import{store as e}from"../../haxcms-elements/lib/core/haxcms-site-store.js";import{autorun as s,toJS as i}from"../../../mobx/dist/mobx.esm.js";class HAXCMSSiteDisqus extends t{constructor(){super(),s((()=>{this.pageTitle=i(e.activeTitle)})),s((()=>{this.pageIdentifier=i(e.activeId)})),s((()=>{const t=i(e.location);t&&t.route&&t.route.path&&(this.pageURL=t.route.path)})),s((()=>{const t=i(e.manifest);t&&t.metadata&&t.metadata.site&&t.metadata.site.lang&&(this.lang=t.metadata.site.lang)}))}static get tag(){return"haxcms-site-disqus"}static get haxProperties(){return new URL(`./${this.tag}.haxProperties.json`,import.meta.url).href}}customElements.define(HAXCMSSiteDisqus.tag,HAXCMSSiteDisqus);export{HAXCMSSiteDisqus};