PageSourceSearch

https://www.tuifly.com/chunk-N64XCGS2.js

js tuifly.com collected 2026-10-02 04:15:09 UTC 2,758 bytes, 1 lines download raw bytes

1import{j as n}from"./chunk-V3P3RFZI.js";var g=class h{get seatMaps(){return this.store.seatmaps}get seats(){return this.store.seats}get statelessSeatMaps(){return this.store.statelessSeatmapAvailability}constructor(t,s,e,a,i,o,l,r){this.cultureDataService=t,this.bookingSeatmapClient=s,this.seatmapClient=e,this.bookingSeatsClient=a,this.bookingPassengersClient=i,this.bookingDataService=o,this.store=l,this.availabilityDataService=r,this.seatMaps$=this.store.seatmaps$,this.seats$=this.store.seats$,this.statelessSeatMaps$=this.store.statelessSeatmapAvailability$}static createInstance(t,s,e,a,i,o,l,r){return new h(s,e,a,i,o,l,r,t)}getSeatmaps(){return n(this,null,function*(){try{let t=yield this.bookingSeatmapClient.nsk_v3_booking_seatmaps_get(null,null,null,null);this.store.setSeatmapAvailability({seatmapAvailability:t.body.data})}catch{this.store.setSeatmapAvailability({seatmapAvailability:[]})}})}getstatelessSeatmapsPerJourney(t){return n(this,null,function*(){let s=yield this.seatmapClient.nsk_v4_seatmaps_journeyKey_get(t,!0,this.cultureDataService.cultureCode);this.store.setStatelessSeatmap({journeyKey:t,statelessSeatmapAvailability:s.body.data})})}autoAssignSeats(t,s,e){return n(this,null,function*(){yield this.bookingSeatsClient.nsk_v1_booking_seats_auto_primaryPassengerKey_journey_journeyKey_post(s,t,e),yield this.bookingDataService.reloadBooking()})}autoAssignSeatsForSegment(t,s,e){return n(this,null,function*(){yield this.bookingSeatsClient.nsk_v1_booking_seats_auto_primaryPassengerKey_segment_segmentKey_post(t,s,e),yield this.bookingDataService.reloadBooking()})}deleteThenAutoAssignSeats(t,s,e,a){return n(this,null,function*(){if(!a||a.length===0)this.autoAssignSeats(t,s,e);else for(let i=0;i<a.length;i++){let{passengerKey:o,unitKey:l}=a[i];yield this.bookingPassengersClient.nsk_v1_booking_passengers_passengerKey_seats_unitKey_delete(o,l,null,null),yield this.autoAssignSeats(t,s,e)}yield this.bookingDataService.reloadBooking()})}sellSeats(t){return n(this,null,function*(){if(!(!t||t.length===0)){for(let s=0;s<t.length;s++){let{passengerKey:e,unitKey:a,request:i}=t[s];yield this.bookingPassengersClient.nsk_v2_booking_passengers_passengerKey_seats_unitKey_post(e,a,i)}yield this.bookingDataService.reloadBooking()}})}removeSeats(t){return n(this,null,function*(){if(!(!t||t.length===0)){for(let s=0;s<t.length;s++){let{passengerKey:e,unitKey:a,request:i}=t[s];yield this.bookingPassengersClient.nsk_v1_booking_passengers_passengerKey_seats_unitKey_delete(e,a,i.waiveFee,i.ignoreSeatSsrs)}yield this.bookingDataService.reloadBooking()}})}loadSeatMapsForJourney(t){return n(this,null,function*(){(this.statelessSeatMaps?this.statelessSeatMaps[t]:!1)||(yield this.getstatelessSeatmapsPerJourney(t))})}};export{g as a};

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.