import { buildBookingEditDrawerState, resolveBookingEditCustomerId } from "../bookingEditService/buildBookingEditDrawerState.js";
//#region src/plus/salesSdk/utils/buildBookingStateForAddFlow.ts
/**
* 加车 / 跨日报价展开所需的 booking state（不依赖 miniRedux）。
*/
function buildBookingStateForAddFlow(input) {
	var _input$resourcesOrigi;
	const customerId = resolveBookingEditCustomerId(input.tempOrder, input.customerId);
	return buildBookingEditDrawerState({
		cacheItem: input.cacheItem,
		bookingConfig: input.bookingConfig,
		date: input.date,
		customerId,
		locale: input.locale,
		resourcesOrigin: (_input$resourcesOrigi = input.resourcesOrigin) !== null && _input$resourcesOrigi !== void 0 ? _input$resourcesOrigi : []
	});
}
//#endregion
export { buildBookingStateForAddFlow };
