require("../../_virtual/_rolldown/runtime.js");
const require_defineProperty = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/defineProperty.js");
const require_asyncToGenerator = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js");
let _pisell_utils = require("@pisell/utils");
//#region src/components/schedules/utils.ts
var Request = class {
	constructor() {
		require_defineProperty._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 = require_asyncToGenerator._asyncToGenerator(function* () {
		return modal.confirm({
			title: _pisell_utils.locales.getText("pisell2.text.products.unsaved-title"),
			content: _pisell_utils.locales.getText("pisell2.text.products.unsaved-content"),
			cancelText: _pisell_utils.locales.getText("pisell2.text.products.unsaved-back"),
			okText: _pisell_utils.locales.getText("pisell2.text.products.unsaved-yes")
		});
	});
	return function saveConfirm() {
		return _ref.apply(this, arguments);
	};
}();
//#endregion
exports.request = request;
exports.saveConfirm = saveConfirm;
exports.setModal = setModal;
