const require_asyncToGenerator = require("../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js");
const require_utils = require("../../../utils.js");
//#region src/components/booking/info2/service/addTimeModal/serve.ts
const getAddTimeProducts = function() {
	var _ref = require_asyncToGenerator._asyncToGenerator(function* (params, config) {
		let { data } = yield require_utils.request.getRequest().post(`/shop/product/query`, params, config);
		return data;
	});
	return function getAddTimeProducts(_x, _x2) {
		return _ref.apply(this, arguments);
	};
}();
const saveAddTimeProduct = function() {
	var _ref2 = require_asyncToGenerator._asyncToGenerator(function* ({ orderId, params }) {
		let { data } = yield require_utils.request.getRequest().put(`/shop/order/appointment/child-booking/${orderId}`, params);
		return data;
	});
	return function saveAddTimeProduct(_x3) {
		return _ref2.apply(this, arguments);
	};
}();
const saveAddTimeProduct2 = function() {
	var _ref3 = require_asyncToGenerator._asyncToGenerator(function* ({ orderId, params }) {
		let { data } = yield require_utils.request.getRequest().put(`/shop/v1.1/order/appointment/child-booking/${orderId}`, params);
		return data;
	});
	return function saveAddTimeProduct2(_x4) {
		return _ref3.apply(this, arguments);
	};
}();
//#endregion
exports.getAddTimeProducts = getAddTimeProducts;
exports.saveAddTimeProduct = saveAddTimeProduct;
exports.saveAddTimeProduct2 = saveAddTimeProduct2;
