import { attachInternals as e } from "../utils/a11y.js";
//#region src/internal/controllers/state-highlighted.controller.ts
function t() {
	return (e) => e.addInitializer((e) => new n(e));
}
var n = class {
	constructor(e) {
		this.host = e, this.host.addController(this);
	}
	hostConnected() {
		e(this.host);
	}
	hostUpdated() {
		this.host.highlighted ? this.host._internals.states.add("highlighted") : this.host._internals.states.delete("highlighted");
	}
};
//#endregion
export { n as StateHighlightedController, t as stateHighlighted };

//# sourceMappingURL=state-highlighted.controller.js.map