const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
let antd = require("antd");
let _pisell_utils = require("@pisell/utils");
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
require("./index.less");
//#region src/plus/saasDevice/deviceProfile/components/UnsavedConfirmModal/index.tsx
const unsavedChangesConfirm = (callback, variant) => {
	const isPhoneVariant = variant === "phone";
	antd.Modal.confirm({
		title: _pisell_utils.locales.getText("pisell2.saas.unsaved-changes"),
		content: _pisell_utils.locales.getText("pisell2.saas.unsaved-changes-content"),
		okText: _pisell_utils.locales.getText("pisell2.saas.leave"),
		cancelText: _pisell_utils.locales.getText("pisell2.saas.stay"),
		okButtonProps: { className: "unsaved-changes-modal-ok-btn" },
		wrapClassName: (0, classnames.default)("unsaved-changes-modal", { "unsaved-changes-modal--phone": isPhoneVariant }),
		onOk() {
			callback();
		}
	});
};
//#endregion
exports.unsavedChangesConfirm = unsavedChangesConfirm;
