const require_objectSpread2 = require("../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_asyncToGenerator = require("../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js");
const require_utils = require("../../../utils.js");
//#region src/components/booking/info/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, require_objectSpread2._objectSpread2(require_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 = 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);
	};
}();
//#endregion
exports.getAddTimeProducts = getAddTimeProducts;
exports.saveAddTimeProduct = saveAddTimeProduct;
