import { fetchContext } from "../gui/fetchContext.js";
import { consume } from "@lit/context";
import _decorate from "@oxc-project/runtime/helpers/decorate";
import { state } from "lit/decorators/state.js";
function FetchMixin(superClass) {
	class FetchElement extends superClass {
		constructor(..._args) {
			super(..._args);
			this.fetch = fetch.bind(window);
		}
	}
	_decorate([consume({
		context: fetchContext,
		subscribe: true
	}), state()], FetchElement.prototype, "fetch", void 0);
	return FetchElement;
}
export { FetchMixin };
