import { _asyncToGenerator } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
import { request } from "../../../utils/index.js";
//#region src/components/pisellSelectCustomerModal/RightPanel/serve.ts
const getCustomerList = function() {
	var _ref = _asyncToGenerator(function* (params) {
		let { data } = yield request.getRequest().get(`/shop/customer/select-list`, params, {
			abort: true,
			fullResult: true,
			cache: {
				mode: "remote_local",
				type: "indexDB"
			}
		});
		return data;
	});
	return function getCustomerList(_x) {
		return _ref.apply(this, arguments);
	};
}();
const addCustomer = function() {
	var _ref2 = _asyncToGenerator(function* (params) {
		const res = yield request.getRequest().post(`/shop/customer`, params, {
			abort: true,
			fullResult: true
		});
		return res === null || res === void 0 ? void 0 : res.data;
	});
	return function addCustomer(_x2) {
		return _ref2.apply(this, arguments);
	};
}();
//#endregion
export { addCustomer, getCustomerList };
