const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_context = require("../../../pisell-config-provider/context.js");
const require_objectSpread2 = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
require("./index.less");
//#region src/components/pisellModal/components/functions/index.tsx
let Modal;
const setModal = (m) => {
	Modal = m;
};
const genConfig = (props) => {
	const { platform } = require_context.globalConfig.getConfig();
	return require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, props), {}, {
		wrapClassName: (0, classnames.default)("pisell-modal-function-wrap", { ["pisell-modal-mobile-function-wrap"]: platform === "h5" }),
		transitionName: "pisell-move-down",
		cancelButtonProps: require_objectSpread2._objectSpread2({
			block: true,
			size: "large"
		}, props.cancelButtonProps || {}),
		okButtonProps: require_objectSpread2._objectSpread2({
			block: true,
			size: "large"
		}, props.okButtonProps || {}),
		icon: null
	});
};
const info = (props) => {
	return Modal.info(genConfig(props));
};
const success = (props) => {
	return Modal.success(genConfig(props));
};
const error = (props) => {
	return Modal.error(genConfig(props));
};
const warning = (props) => {
	return Modal.warning(genConfig(props));
};
const warn = (props) => {
	return Modal.warn(genConfig(props));
};
const confirm = (props) => {
	return Modal.confirm(genConfig(props));
};
//#endregion
exports.confirm = confirm;
exports.error = error;
exports.info = info;
exports.setModal = setModal;
exports.success = success;
exports.warn = warn;
exports.warning = warning;
