import { I18nService as e } from "../services/i18n.service.js";
//#region src/internal/controllers/i18n.controller.ts
function t() {
	return (e) => e.addInitializer((e) => new n(e));
}
var n = class {
	get i18n() {
		return {
			...e.i18n,
			...this.host.i18n,
			__set: !1
		};
	}
	#e = {};
	constructor(e) {
		this.host = e, this.host.addController(this);
	}
	hostConnected() {
		globalThis.document.addEventListener("NVE_ELEMENTS_I18N_UPDATE", this.#t);
	}
	hostDisconnected() {
		globalThis.document.removeEventListener("NVE_ELEMENTS_I18N_UPDATE", this.#t);
	}
	hostUpdated() {
		this.host.i18n.__set === void 0 && (this.#e = this.host.i18n, this.#t());
	}
	#t = () => {
		this.host.i18n = {
			...e.i18n,
			...this.#e,
			__set: !0
		};
	};
};
//#endregion
export { n as I18nController, t as i18n };

//# sourceMappingURL=i18n.controller.js.map