import { efContext } from "./efContext.js";
import { __decorate } from "../_virtual/_@oxc-project_runtime@0.95.0/helpers/decorate.js";
import { TargetOrContextMixin } from "./TargetOrContextMixin.js";
import { LitElement, css, html } from "lit";
import { customElement } from "lit/decorators.js";

//#region src/gui/EFToggleLoop.ts
let EFToggleLoop = class EFToggleLoop$1 extends TargetOrContextMixin(LitElement, efContext) {
	static {
		this.styles = [css`
      :host {}
    `];
	}
	get context() {
		return this.effectiveContext;
	}
	render() {
		return html`
      <slot @click=${() => {
			if (this.context) this.context.loop = !this.context.loop;
		}}></slot>
    `;
	}
};
EFToggleLoop = __decorate([customElement("ef-toggle-loop")], EFToggleLoop);

//#endregion
export { EFToggleLoop };
//# sourceMappingURL=EFToggleLoop.js.map