import { _objectSpread2 } from "../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import { _asyncToGenerator } from "../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
import { request } from "../../../utils.js";
//#region src/components/booking/info/service/addTimeModal/serve.ts
const getAddTimeProducts = function() {
	var _ref = _asyncToGenerator(function* (params, config) {
		let { data } = yield request.getRequest().post(`/shop/product/query`, params, _objectSpread2(_objectSpread2({}, config), {}, { cache: {
			mode: "remote_local",
			type: "indexDB"
		} }));
		return data;
	});
	return function getAddTimeProducts(_x, _x2) {
		return _ref.apply(this, arguments);
	};
}();
const saveAddTimeProduct = function() {
	var _ref2 = _asyncToGenerator(function* ({ orderId, params }) {
		let { data } = yield request.getRequest().put(`/shop/order/appointment/child-booking/${orderId}`, params);
		return data;
	});
	return function saveAddTimeProduct(_x3) {
		return _ref2.apply(this, arguments);
	};
}();
//#endregion
export { getAddTimeProducts, saveAddTimeProduct };
