1import{di as e,mt as t}from"./I18nContext-D1VgHctP.js";import{l as n}from"./DtaIntegration-CjahP4dB.js";var r=t(` 2 fragment BookingLoader_Room on DepartureRoom { 3 id 4 category 5 componentGenericId 6 generalComponentGenericId 7 roomArrangements { 8 id 9 ...BookingLoader_RoomArrangement 10 } 11 depFerryRoom { 12 id 13 genericId 14 genFerryRoomCode 15 } 16 } 17`),i=t(` 18 fragment BookingLoader_RoomArrangement on RoomArrangement { 19 id 20 category 21 arrangementId 22 roomAsts { 23 id 24 ...BookingLoader_RoomAst 25 } 26 } 27`),a=t(` 28 fragment BookingLoader_RoomAst on RoomAst { 29 id 30 astId 31 componentGenericId 32 generalComponentGenericId 33 saleUnitDefinition 34 numberOfReserved 35 numberOfConfirmed 36 numberOfReservedAdditional 37 numberOfReservedWaitlisted 38 depFerryRoomAst { 39 id 40 arrangementSubType { 41 id 42 generalArrSubType { 43 id 44 mealTranslations(localeId: $localeId) { 45 id 46 arrangementSubTypeDescription 47 } 48 } 49 } 50 } 51 } 52`),o=e=>{let t=n(r,e);return{id:t.id,code:t.depFerryRoom.genFerryRoomCode,componentGenericId:t.componentGenericId,generalComponentGenericId:t.generalComponentGenericId,category:t.category,roomArrangements:t.roomArrangements.map(s)}},s=e=>{let t=n(i,e);return{id:t.id,arrangementId:t.arrangementId,category:t.category,roomAsts:t.roomAsts.map(c)}},c=e=>{let t=n(a,e);return{id:t.id,astId:t.astId,componentGenericId:t.componentGenericId,generalComponentGenericId:t.generalComponentGenericId,numberOfConfirmed:t.numberOfConfirmed,numberOfReserved:t.numberOfReserved,numberOfReservedAdditional:t.numberOfReservedAdditional,numberOfReservedWaitlisted:t.numberOfReservedWaitlisted,saleUnitDefinition:t.saleUnitDefinition}},l=t(` 53 fragment BookingLoader_DepartureCabin on DepartureCabin { 54 id 55 version 56 category 57 componentGenericId 58 generalComponentGenericId 59 numberOfConfirmed 60 numberOfReserved 61 numberOfReservedAdditional 62 numberOfReservedWaitlisted 63 partOfPlus 64 saleUnitDefinition 65 cabinArrangements { 66 id 67 arrangementId 68 cabinAsts { 69 id 70 generalComponentGenericId 71 componentGenericId 72 numberOfReserved 73 numberOfConfirmed 74 astId 75 } 76 } 77 cabinNumbers { 78 id 79 number 80 preSelected 81 } 82 } 83`),u=e=>{let t=n(l,e);return{id:t.id,version:t.version,category:t.category,componentGenericId:t.componentGenericId,generalComponentGenericId:t.generalComponentGenericId,numberOfConfirmed:t.numberOfConfirmed,numberOfReserved:t.numberOfReserved,numberOfReservedAdditional:t.numberOfReservedAdditional,numberOfReservedWaitlisted:t.numberOfReservedWaitlisted,partOfPlus:t.partOfPlus,saleUnitDefinition:t.saleUnitDefinition,cabinArrangements:t.cabinArrangements.map(d),cabinNumbers:t.cabinNumbers.map(p)}},d=e=>({id:e.id,arrangementId:e.arrangementId,cabinAsts:e.cabinAsts.map(f)}),f=e=>({id:e.id,astId:e.astId,componentGenericId:e.componentGenericId,generalComponentGenericId:e.generalComponentGenericId,numberOfReserved:e.numberOfReserved,numberOfConfirmed:e.numberOfConfirmed}),p=e=>({id:e.id,cabinNumber:e.number,preSelected:e.preSelected}),m=t(` 84 fragment BookingLoader_VoucherArrangement on DepartureVoucherArrangement { 85 id 86 category 87 version 88 arrangementId 89 productElementId 90 voucherAsts { 91 ...BookingLoader_DepartureVoucherAst 92 } 93 } 94`),h=t(` 95 fragment BookingLoader_DepartureVoucherAst on DepartureVoucherAst { 96 id 97 numberOfReserved 98 numberOfConfirmed 99 componentGenericId 100 } 101`),g=e=>{let t=n(m,e);return{id:t.id,arrangementId:t.arrangementId,category:t.category,productElementId:t.productElementId??void 0,version:t.version,voucherAsts:t.voucherAsts.map(_)}},_=e=>{let t=n(h,e);return{id:t.id,numberOfReserved:t.numberOfReserved,numberOfConfirmed:t.numberOfConfirmed,componentGenericId:t.componentGenericId}},v=t(` 102 fragment BookingLoader_Departure on SloopBookingDeparture { 103 id 104 departureId 105 elementReferenceId 106 presentationOrder 107 productElementId 108 changeStatus 109 sailing { 110 id 111 ferryVersion 112 } 113 ferry { 114 id 115 } 116 route { 117 id 118 } 119 cabins { 120 id 121 ...BookingLoader_DepartureCabin 122 } 123 rooms { 124 category 125 ...BookingLoader_Room 126 } 127 customerCategories { 128 id 129 ...BookingLoader_DepartureCustomerCategory 130 } 131 passengerReferences { 132 id 133 checkInStatusCode 134 checkInStatusDescription 135 visaRequired 136 } 137 vehicles { 138 ...BookingLoader_Vehicle 139 } 140 voucherArrangements { 141 ...BookingLoader_VoucherArrangement 142 } 143 mandatoryCabin 144 } 145`),y=t(` 146 fragment BookingLoader_DepartureCustomerCategory on DepartureCustomerCategory { 147 id 148 code 149 versionCode 150 numberOfConfirmed 151 numberOfReserved 152 numberOfConfirmedAdditional 153 numberOfConfirmedWaitlisted 154 numberOfReservedAdditional 155 numberOfReservedWaitlisted 156 } 157`),b=t(` 158 fragment BookingLoader_Vehicle on DepartureVehicle { 159 id 160 registrationCode 161 isElectric 162 isGas 163 generalComponentGenericId 164 vehicleType { 165 id 166 } 167 trailer { 168 id 169 registrationCode 170 trailerType { 171 id 172 } 173 } 174 } 175`),x=e=>{let t=n(v,e);return{id:t.id,departureId:t.departureId,presentationOrder:t.presentationOrder,routeCode:t.route.id,changeStatus:t.changeStatus,sailingId:t.sailing.id,mandatoryCabin:t.mandatoryCabin===`YES`,ferryCode:t.ferry.id,ferryVersion:t.sailing.ferryVersion,productElementId:t.productElementId,elementReferenceId:t.elementReferenceId,cabins:t.cabins.map(u),rooms:t.rooms.map(o),customerCategories:t.customerCategories.map(S),vehicles:t.vehicles.map(C),passengerReferences:t.passengerReferences.map(e=>({id:e.id,checkInStatusCode:e.checkInStatusCode,checkInStatusDescription:e.checkInStatusDescription,visaRequired:e.visaRequired})),voucherArrangements:t.voucherArrangements.map(g)}},S=e=>{let t=n(y,e);return{id:t.id,code:t.code,versionCode:t.versionCode,numberOfReserved:t.numberOfReserved,numberOfConfirmed:t.numberOfConfirmed,numberOfReservedAdditional:t.numberOfReservedAdditional,numberOfConfirmedAdditional:t.numberOfConfirmedAdditional,numberOfReservedWaitlisted:t.numberOfReservedWaitlisted,numberOfConfirmedWaitlisted:t.numberOfConfirmedWaitlisted}},C=e=>{let t=n(b,e);return{id:t.id,vehicleTypeId:t.vehicleType.id,registrationNumber:t.registrationCode??``,generalComponentGenericId:t.generalComponentGenericId,isElectric:t.isElectric,isGas:t.isGas,trailer:t.trailer==null?void 0:{id:t.trailer.id,trailerTypeId:t.trailer.trailerType.id,registrationNumber:t.trailer.registrationCode??``}}},w=t(` 176 fragment BookingLoader_PayingCustomer on PayingCustomer { 177 email 178 firstName 179 lastName 180 phoneNumber 181 itineraryPhoneNumber 182 customerRelation { 183 id 184 } 185 } 186`),T=e=>{let t=n(w,e);return{email:t.email,firstName:t.firstName,lastName:t.lastName,phoneNumber:t.phoneNumber,itineraryPhoneNumber:t.itineraryPhoneNumber,customerRelationId:t.customerRelation?.id??void 0}},E=t(` 187 fragment BookingLoader_PriceItinerary on PriceItinerary { 188 totalPrice { 189 amount 190 } 191 priceItineraryStatus 192 depositFeeDate 193 depositFeeExpiryDate 194 expiryDate 195 finalPaymentDate 196 standbyTotalPrice { 197 amount 198 } 199 offerCodeStatus 200 detailsHidden 201 priceElementGroups { 202 code 203 presentationOrder 204 isManualPriceAllowed 205 isManualAdjustmentAllowed 206 isPriceSummary 207 priceElements { 208 presentationOrder 209 type 210 code 211 departureId 212 description 213 includesContractRate 214 price { 215 amount 216 } 217 adjustment { 218 amount 219 } 220 manualPrice { 221 amount 222 } 223 manualAdjustment { 224 amount 225 } 226 manualPctAdjustment { 227 amount 228 } 229 components { 230 componentId 231 } 232 } 233 } 234 } 235`),D=e=>{let t=n(E,e);if(t!=null)return{totalPrice:t.totalPrice.amount,priceItineraryStatus:t.priceItineraryStatus,depositFeeDate:t.depositFeeDate??void 0,depositFeeExpiryDate:t.depositFeeExpiryDate??void 0,expiryDate:t.expiryDate,finalPaymentDate:t.finalPaymentDate,standbyTotalPrice:t.standbyTotalPrice?.amount,offerCodeStatus:t.offerCodeStatus??void 0,detailsHidden:t.detailsHidden,priceElementGroups:t.priceElementGroups.map(O)}},O=e=>({code:e.code,presentationOrder:e.presentationOrder,isManualPriceAllowed:e.isManualPriceAllowed,isManualAdjustmentAllowed:e.isManualAdjustmentAllowed,isPriceSummary:e.isPriceSummary,priceElements:e.priceElements.map(k)}),k=e=>({presentationOrder:e.presentationOrder,type:e.type??void 0,code:e.code,departureId:e.departureId??void 0,description:e.description??void 0,includesContractRate:e.includesContractRate,price:e.price?.amount,adjustment:e.adjustment?.amount,manualPrice:e.manualPrice?.amount,manualAdjustment:e.manualAdjustment?.amount,manualPctAdjustment:e.manualPctAdjustment?.amount,components:e.components.map(e=>({componentId:e.componentId}))}),A=t(` 236 fragment BookingLoader_BookingContainer on SloopBookingContainer { 237 id 238 booking { 239 id 240 ...BookingLoader_Booking 241 } 242 priceItinerary { 243 ...BookingLoader_PriceItinerary 244 } 245 forceOriginalPrice { 246 __typename 247 ... on ForceOriginalPriceSuccess { 248 id 249 active 250 } 251 } 252 payments { 253 id 254 paymentBalance { 255 __typename 256 ... on BookingPaymentsSuccess { 257 totalPaid { 258 amount 259 } 260 isFullyPaid 261 leftToPay { 262 amount 263 } 264 totalPrice { 265 amount 266 } 267 } 268 } 269 } 270 amendmentStatus { 271 __typename 272 } 273 cancellationStatus { 274 __typename 275 } 276 } 277`),j=t(` 278 fragment BookingLoader_Booking on SloopBooking { 279 id 280 status 281 version 282 bookingReference 283 salesOwnerId 284 originalSalesChannelCode 285 currentSalesChannelCode 286 subSalesChannelCode 287 compassPointMemberId 288 firstConfirmationDate 289 pendingExpiryDateTime 290 concurrencyToken 291 languageCode 292 originCode 293 offerCode 294 currency { 295 id 296 } 297 payingCustomer { 298 ...BookingLoader_PayingCustomer 299 } 300 passengers { 301 ...BookingLoader_Passenger 302 } 303 departures { 304 id 305 ...BookingLoader_Departure 306 } 307 petDocumentations { 308 id 309 name 310 chipId 311 documentNumber 312 noteText 313 } 314 travelDocuments { 315 passengerId 316 documentType 317 issuingCountry 318 documentNumber 319 expiryDate 320 } 321 receiveSms 322 cancellationInsurance 323 products { 324 ...BookingLoader_BookingProduct 325 } 326 } 327`),M=t(` 328 fragment BookingLoader_BookingProduct on SloopBookingProduct { 329 code 330 categoryCode 331 efpProduct 332 version 333 productElements { 334 id 335 cabinReservationRule 336 productElementId 337 thirdPartyArrangementCategoryCode 338 type 339 } 340 } 341`),N=t(` 342 fragment BookingLoader_Passenger on SloopBookingPassenger { 343 id 344 firstName 345 surName 346 icePhoneNumber 347 dateOfBirth 348 gender 349 email 350 loyaltyNumber 351 nationality(languageId: $languageId) { 352 id 353 } 354 passengerType { 355 id 356 } 357 assistanceNeed(languageId: $languageId) { 358 __typename 359 ... on AssistanceNeed { 360 id 361 isWheelchair 362 } 363 ... on AssistanceNeedNotSelected { 364 id 365 } 366 } 367 } 368`),P=e=>{let t=n(A,e);return{booking:L(t.booking),isForceOriginalPriceActive:t.forceOriginalPrice.__typename===`ForceOriginalPriceSuccess`?t.forceOriginalPrice.active:void 0,priceItinerary:t.priceItinerary==null?void 0:D(t.priceItinerary),paymentBalance:t.payments.paymentBalance.__typename===`BookingPaymentsSuccess`?{isFullyPaid:t.payments.paymentBalance.isFullyPaid,totalPaid:t.payments.paymentBalance.totalPaid.amount,leftToPay:t.payments.paymentBalance.leftToPay.amount,totalPrice:t.payments.paymentBalance.totalPrice.amount}:void 0,amendmentStatus:F(e),cancellationStatus:I(e)}},F=t=>{let r=n(A,t);switch(r.amendmentStatus.__typename){case`AmendmentAllowed`:return{type:`AmendmentAllowed`};case`NotAllowedDueToSloop`:return{type:`NotAllowedDueToSloop`};case`NotAllowedDueToStatus`:return{type:`NotAllowedDueToStatus`};case`NotAllowedDueToTransferRule`:return{type:`NotAllowedDueToTransferRule`};case`NotAllowedDueToDepartureRule`:return{type:`NotAllowedDueToDepartureRule`};case`NotAllowedDueToAdditionalCapacityRule`:return{type:`NotAllowedDueToAdditionalCapacityRule`};case`NotAllowedDueToCheckinStatusRule`:return{type:`NotAllowedDueToCheckinStatusRule`};case`NotAllowedDueToDifferentPartyCompositionForDayTripAndCruise`:return{type:`NotAllowedDueToDifferentPartyCompositionForDayTripAndCruise`};case`NotAllowedDueToWrongSalesOwner`:return{type:`NotAllowedDueToWrongSalesOwner`};case`NotAllowedDueToTravelAgentBooking`:return{type:`NotAllowedDueToTravelAgentBooking`};case`NotAllowedDueToWheelchairArrangementRule`:return{type:`NotAllowedDueToWheelchairArrangement`};case`NotAllowedDueToThirdPartyArrangement`:return{type:`NotAllowedDueToThirdPartyArrangement`};case`NotAllowedDueToWheelchairAssistanceNeedRule`:return{type:`NotAllowedDueToWheelchairAssistanceNeed`};default:return e(r.amendmentStatus)}},I=t=>{let r=n(A,t);switch(r.cancellationStatus.__typename){case`CancellationAllowed`:return{type:`CancellationAllowed`};case`CancellationNotAllowedDueToSloop`:return{type:`CancellationNotAllowedDueToSloop`};case`CancellationNotAllowedDueToStatus`:return{type:`CancellationNotAllowedDueToStatus`};case`CancellationNotAllowedDueToTransferRule`:return{type:`CancellationNotAllowedDueToTransferRule`};case`CancellationNotAllowedDueToDepartureRule`:return{type:`CancellationNotAllowedDueToDepartureRule`};case`CancellationNotAllowedDueToCheckinStatusRule`:return{type:`CancellationNotAllowedDueToCheckinStatusRule`};case`CancellationNotAllowedDueToCancellationRestricted`:return{type:`CancellationNotAllowedDueToCancellationRestricted`};case`CancellationNotAllowedDueToWrongSalesOwner`:return{type:`CancellationNotAllowedDueToWrongSalesOwner`};case`CancellationNotAllowedDueToTravelAgentBooking`:return{type:`CancellationNotAllowedDueToTravelAgentBooking`};default:return e(r.cancellationStatus)}},L=e=>{let t=n(j,e);return{bookingReference:t.bookingReference,status:t.status,version:t.version,originalSalesChannelCode:t.originalSalesChannelCode,currentSalesChannelCode:t.currentSalesChannelCode??void 0,subSalesChannelCode:t.subSalesChannelCode??void 0,languageCode:t.languageCode,firstConfirmationDate:t.firstConfirmationDate??void 0,pendingExpiryDateTime:t.pendingExpiryDateTime??void 0,compassPointMemberId:t.compassPointMemberId??void 0,concurrencyToken:t.concurrencyToken,originCode:t.originCode??void 0,offerCode:t.offerCode??void 0,salesOwnerId:t.salesOwnerId,currencyCode:t.currency.id,receiveSms:t.receiveSms,cancellationInsurance:t.cancellationInsurance,payingCustomer:T(t.payingCustomer),departures:t.departures.map(x),products:t.products.map(R),passengers:t.passengers.map(e=>z(e)),petDocumentations:t.petDocumentations.map(e=>({id:e.id,name:e.name??void 0,chipId:e.chipId??void 0,documentNumber:e.documentNumber??void 0,noteText:e.noteText??void 0})),travelDocuments:t.travelDocuments.map(e=>({passengerId:e.passengerId,documentType:e.documentType??void 0,issuingCountry:e.issuingCountry??void 0,documentNumber:e.documentNumber??void 0,expiryDate:e.expiryDate??void 0}))}},R=e=>{let t=n(M,e);return{code:t.code,efpProduct:t.efpProduct,categoryCode:t.categoryCode??void 0,version:t.version,productElements:t.productElements.map(e=>({id:e.id,cabinReservationRule:e.cabinReservationRule??void 0,productElementId:e.productElementId,thirdPartyArrangementCategoryCode:e.thirdPartyArrangementCategoryCode??void 0,type:e.type}))}},z=e=>{let t=n(N,e);return{id:t.id,passengerTypeId:t.passengerType.id,firstName:t.firstName,surName:t.surName,icePhoneNumber:t.icePhoneNumber??void 0,genderId:t.gender,dateOfBirth:t.dateOfBirth??void 0,nationalityCountryId:t.nationality.id,assistanceNeedCode:t.assistanceNeed.__typename===`AssistanceNeed`?t.assistanceNeed.id:void 0,email:t.email??void 0,loyaltyNumber:t.loyaltyNumber??void 0}};export{P as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.