import "dayjs";
import "@pisell/utils";
//#region src/plus/pisellReservation/components/bookingDetailModal/bookingDetailFromRaw.ts
/** 预约 raw 是否已为 fully paid（优先 `order.payment_status`，否则顶层 `payment_status`） */
function isBookingRawOrderPaid(raw) {
	const order = raw.order;
	const fromOrder = order === null || order === void 0 ? void 0 : order.payment_status;
	const fromTop = raw.payment_status;
	const v = fromOrder != null && String(fromOrder).trim() !== "" ? fromOrder : fromTop;
	return String(v !== null && v !== void 0 ? v : "").trim().toLowerCase() === "paid";
}
//#endregion
export { isBookingRawOrderPaid };
