"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toUserPackageResponse = toUserPackageResponse;
function toUserPackageResponse(userPackage) {
    var _a, _b, _c, _d, _e, _f;
    return {
        id: userPackage.id,
        number_of_pax: userPackage.number_of_pax,
        transportation: (_a = userPackage.transportation) === null || _a === void 0 ? void 0 : _a.name,
        flight: (_b = userPackage.flight) === null || _b === void 0 ? void 0 : _b.name,
        travel_duration: userPackage.travel_duration,
        mekkah_duration: userPackage.mekkah_duration,
        madinah_duration: userPackage.madinah_duration,
        hotel_mekkah: (_c = userPackage.hotelMekkah) === null || _c === void 0 ? void 0 : _c.name,
        hotel_madinah: (_d = userPackage.hotelMadinah) === null || _d === void 0 ? void 0 : _d.name,
        muthawif: (_e = userPackage.muthawif) === null || _e === void 0 ? void 0 : _e.name,
        handling: (_f = userPackage.handling) === null || _f === void 0 ? void 0 : _f.name,
        total_price: userPackage.total_price,
        per_pax_price: userPackage.per_pax_price,
    };
}
