import { _defineProperty } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/defineProperty.js";
import { _asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
import { locales } from "@pisell/utils";
//#region src/components/schedules/utils.ts
var Request = class {
	constructor() {
		_defineProperty(this, "request", {});
	}
	setRequest(val) {
		this.request = val;
	}
	getRequest() {
		return this.request;
	}
};
const request = new Request();
let modal;
const setModal = (m) => {
	modal = m;
};
const saveConfirm = function() {
	var _ref = _asyncToGenerator(function* () {
		return modal.confirm({
			title: locales.getText("pisell2.text.products.unsaved-title"),
			content: locales.getText("pisell2.text.products.unsaved-content"),
			cancelText: locales.getText("pisell2.text.products.unsaved-back"),
			okText: locales.getText("pisell2.text.products.unsaved-yes")
		});
	});
	return function saveConfirm() {
		return _ref.apply(this, arguments);
	};
}();
//#endregion
export { request, saveConfirm, setModal };
