@qite/tide-booking-component 1.4.75 → 1.4.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/build/build-cjs/index.js +102 -68
  2. package/build/build-cjs/src/qsm/store/qsm-slice.d.ts +3 -3
  3. package/build/build-cjs/src/qsm/types.d.ts +2 -2
  4. package/build/build-cjs/src/search-results/types.d.ts +2 -2
  5. package/build/build-cjs/src/shared/components/flyin/flyin.d.ts +2 -2
  6. package/build/build-cjs/src/shared/types.d.ts +13 -12
  7. package/build/build-esm/index.js +99 -68
  8. package/build/build-esm/src/qsm/store/qsm-slice.d.ts +3 -3
  9. package/build/build-esm/src/qsm/types.d.ts +2 -2
  10. package/build/build-esm/src/search-results/types.d.ts +2 -2
  11. package/build/build-esm/src/shared/components/flyin/flyin.d.ts +2 -2
  12. package/build/build-esm/src/shared/types.d.ts +13 -12
  13. package/package.json +2 -2
  14. package/src/content/features/content-page/content-page-self-contained.tsx +2 -2
  15. package/src/qsm/components/QSMContainer/qsm-container.tsx +59 -29
  16. package/src/qsm/components/travel-input/index.tsx +2 -1
  17. package/src/qsm/components/travel-input-group/index.tsx +2 -1
  18. package/src/qsm/qsm-configuration-context.ts +2 -1
  19. package/src/qsm/store/qsm-slice.ts +4 -4
  20. package/src/qsm/types.ts +2 -2
  21. package/src/search-results/components/search-results-container/flight-search-results.tsx +3 -2
  22. package/src/search-results/components/search-results-container/search-results-container.tsx +39 -18
  23. package/src/search-results/features/flights/flight-search-results-self-contained.tsx +2 -2
  24. package/src/search-results/features/hotels/hotel-flight-search-results-self-contained.tsx +2 -2
  25. package/src/search-results/features/hotels/hotel-search-results-self-contained.tsx +2 -2
  26. package/src/search-results/features/roundtrips/roundtrip-search-results-self-contained.tsx +2 -2
  27. package/src/search-results/types.ts +2 -2
  28. package/src/shared/components/flyin/flyin.tsx +7 -5
  29. package/src/shared/types.ts +13 -12
@@ -6681,6 +6681,20 @@ var jaJson = {
6681
6681
  SRP: SRP
6682
6682
  };
6683
6683
 
6684
+ exports.PortalQsmType = void 0;
6685
+ (function (PortalQsmType) {
6686
+ PortalQsmType[(PortalQsmType['Multidestination'] = 0)] = 'Multidestination';
6687
+ PortalQsmType[(PortalQsmType['Accommodation'] = 1)] = 'Accommodation';
6688
+ PortalQsmType[(PortalQsmType['AccommodationAndFlight'] = 2)] = 'AccommodationAndFlight';
6689
+ PortalQsmType[(PortalQsmType['Flight'] = 3)] = 'Flight';
6690
+ PortalQsmType[(PortalQsmType['RoundTrip'] = 4)] = 'RoundTrip';
6691
+ PortalQsmType[(PortalQsmType['GroupTour'] = 5)] = 'GroupTour';
6692
+ PortalQsmType[(PortalQsmType['Package'] = 6)] = 'Package';
6693
+ PortalQsmType[(PortalQsmType['Ticket'] = 7)] = 'Ticket';
6694
+ PortalQsmType[(PortalQsmType['Car'] = 8)] = 'Car';
6695
+ PortalQsmType[(PortalQsmType['Transfer'] = 9)] = 'Transfer';
6696
+ PortalQsmType[(PortalQsmType['Cruise'] = 10)] = 'Cruise';
6697
+ })(exports.PortalQsmType || (exports.PortalQsmType = {}));
6684
6698
  exports.DepartureRange = void 0;
6685
6699
  (function (DepartureRange) {
6686
6700
  DepartureRange[(DepartureRange['Morning'] = 0)] = 'Morning';
@@ -30398,7 +30412,7 @@ var Footer = function (_a) {
30398
30412
  };
30399
30413
 
30400
30414
  var QSMConfigurationContext = React__default['default'].createContext({
30401
- type: 'hotel',
30415
+ type: exports.PortalQsmType.Accommodation,
30402
30416
  askTravelers: false,
30403
30417
  askNationality: false,
30404
30418
  askTravelClass: false,
@@ -30440,7 +30454,7 @@ var useMediaQuery = function (query) {
30440
30454
 
30441
30455
  var _a$1;
30442
30456
  var initialState$2 = {
30443
- qsmType: 'hotel-flight',
30457
+ qsmType: exports.PortalQsmType.AccommodationAndFlight,
30444
30458
  selectedOrigin: undefined,
30445
30459
  selectedDestination: undefined,
30446
30460
  selectedAirport: undefined,
@@ -31853,7 +31867,7 @@ var TravelInput = function () {
31853
31867
  babies = _b.babies,
31854
31868
  rooms = _b.rooms,
31855
31869
  qsmType = _b.qsmType;
31856
- var areTravelersInRooms = qsmType !== 'flight' && askRooms;
31870
+ var areTravelersInRooms = qsmType !== exports.PortalQsmType.Flight && askRooms;
31857
31871
  var translations = getTranslations(languageCode !== null && languageCode !== void 0 ? languageCode : 'en-GB');
31858
31872
  var getTravelerButtonClass = function (disabled) {
31859
31873
  return 'button button--increment '.concat(disabled ? 'button--disabled' : '');
@@ -32821,7 +32835,7 @@ var TravelInputGroup = function () {
32821
32835
  rooms = _c.rooms,
32822
32836
  qsmType = _c.qsmType;
32823
32837
  var translations = getTranslations(languageCode !== null && languageCode !== void 0 ? languageCode : 'en-GB');
32824
- var areTravelersInRooms = qsmType !== 'flight' && askRooms;
32838
+ var areTravelersInRooms = qsmType !== exports.PortalQsmType.Flight && askRooms;
32825
32839
  var initDone = React.useRef(false);
32826
32840
  var travelerSummary = reactRedux.useSelector(function (state) {
32827
32841
  return selectTravelerSummary(state, areTravelersInRooms);
@@ -33061,7 +33075,7 @@ var QSMContainer = function () {
33061
33075
  if (fromDate || toDate) return;
33062
33076
  var startDate = dateFns.addMonths(new Date(), 1);
33063
33077
  var endDate = dateFns.addDays(startDate, 7);
33064
- if (qsmType === 'groupTour') {
33078
+ if (qsmType === exports.PortalQsmType.GroupTour) {
33065
33079
  startDate = new Date();
33066
33080
  endDate = dateFns.addYears(startDate, 1);
33067
33081
  }
@@ -33091,7 +33105,7 @@ var QSMContainer = function () {
33091
33105
  dispatch(setSelectedQsmType(value));
33092
33106
  var startDate = dateFns.addMonths(new Date(), 1);
33093
33107
  var endDate = dateFns.addDays(startDate, 7);
33094
- if (value === 'groupTour') {
33108
+ if (value === exports.PortalQsmType.GroupTour) {
33095
33109
  startDate = new Date();
33096
33110
  endDate = dateFns.addYears(startDate, 1);
33097
33111
  }
@@ -33128,7 +33142,7 @@ var QSMContainer = function () {
33128
33142
  nationality: selectedNationality,
33129
33143
  tripType: tripType
33130
33144
  };
33131
- if (askRooms && qsmType !== 'flight') {
33145
+ if (askRooms && qsmType !== exports.PortalQsmType.Flight) {
33132
33146
  payload.rooms = rooms;
33133
33147
  } else {
33134
33148
  payload.travelers = { adults: adults, kids: kids, babies: babies };
@@ -33206,9 +33220,9 @@ var QSMContainer = function () {
33206
33220
  'button',
33207
33221
  {
33208
33222
  type: 'button',
33209
- className: 'qsm__tab '.concat(qsmType == 'multidestination' ? 'qsm__tab--active' : ''),
33223
+ className: 'qsm__tab '.concat(qsmType == exports.PortalQsmType.Multidestination ? 'qsm__tab--active' : ''),
33210
33224
  onClick: function () {
33211
- return handleQsmTypeChange('multidestination');
33225
+ return handleQsmTypeChange(exports.PortalQsmType.Multidestination);
33212
33226
  }
33213
33227
  },
33214
33228
  React__default['default'].createElement(
@@ -33222,9 +33236,9 @@ var QSMContainer = function () {
33222
33236
  'button',
33223
33237
  {
33224
33238
  type: 'button',
33225
- className: 'qsm__tab '.concat(qsmType == 'package' ? 'qsm__tab--active' : ''),
33239
+ className: 'qsm__tab '.concat(qsmType == exports.PortalQsmType.Package ? 'qsm__tab--active' : ''),
33226
33240
  onClick: function () {
33227
- return handleQsmTypeChange('package');
33241
+ return handleQsmTypeChange(exports.PortalQsmType.Package);
33228
33242
  }
33229
33243
  },
33230
33244
  React__default['default'].createElement(
@@ -33238,9 +33252,9 @@ var QSMContainer = function () {
33238
33252
  'button',
33239
33253
  {
33240
33254
  type: 'button',
33241
- className: 'qsm__tab '.concat(qsmType == 'hotel-flight' ? 'qsm__tab--active' : ''),
33255
+ className: 'qsm__tab '.concat(qsmType == exports.PortalQsmType.AccommodationAndFlight ? 'qsm__tab--active' : ''),
33242
33256
  onClick: function () {
33243
- return handleQsmTypeChange('hotel-flight');
33257
+ return handleQsmTypeChange(exports.PortalQsmType.AccommodationAndFlight);
33244
33258
  }
33245
33259
  },
33246
33260
  React__default['default'].createElement(
@@ -33256,9 +33270,9 @@ var QSMContainer = function () {
33256
33270
  'button',
33257
33271
  {
33258
33272
  type: 'button',
33259
- className: 'qsm__tab '.concat(qsmType == 'hotel' ? 'qsm__tab--active' : ''),
33273
+ className: 'qsm__tab '.concat(qsmType == exports.PortalQsmType.Accommodation ? 'qsm__tab--active' : ''),
33260
33274
  onClick: function () {
33261
- return handleQsmTypeChange('hotel');
33275
+ return handleQsmTypeChange(exports.PortalQsmType.Accommodation);
33262
33276
  }
33263
33277
  },
33264
33278
  React__default['default'].createElement(
@@ -33272,9 +33286,9 @@ var QSMContainer = function () {
33272
33286
  'button',
33273
33287
  {
33274
33288
  type: 'button',
33275
- className: 'qsm__tab '.concat(qsmType == 'flight' ? 'qsm__tab--active' : ''),
33289
+ className: 'qsm__tab '.concat(qsmType == exports.PortalQsmType.Flight ? 'qsm__tab--active' : ''),
33276
33290
  onClick: function () {
33277
- return handleQsmTypeChange('flight');
33291
+ return handleQsmTypeChange(exports.PortalQsmType.Flight);
33278
33292
  }
33279
33293
  },
33280
33294
  React__default['default'].createElement(
@@ -33288,9 +33302,9 @@ var QSMContainer = function () {
33288
33302
  'button',
33289
33303
  {
33290
33304
  type: 'button',
33291
- className: 'qsm__tab '.concat(qsmType == 'groupTour' ? 'qsm__tab--active' : ''),
33305
+ className: 'qsm__tab '.concat(qsmType == exports.PortalQsmType.GroupTour ? 'qsm__tab--active' : ''),
33292
33306
  onClick: function () {
33293
- return handleQsmTypeChange('groupTour');
33307
+ return handleQsmTypeChange(exports.PortalQsmType.GroupTour);
33294
33308
  }
33295
33309
  },
33296
33310
  React__default['default'].createElement(
@@ -33304,9 +33318,9 @@ var QSMContainer = function () {
33304
33318
  'button',
33305
33319
  {
33306
33320
  type: 'button',
33307
- className: 'qsm__tab '.concat(qsmType == 'ticket' ? 'qsm__tab--active' : ''),
33321
+ className: 'qsm__tab '.concat(qsmType == exports.PortalQsmType.Ticket ? 'qsm__tab--active' : ''),
33308
33322
  onClick: function () {
33309
- return handleQsmTypeChange('ticket');
33323
+ return handleQsmTypeChange(exports.PortalQsmType.Ticket);
33310
33324
  }
33311
33325
  },
33312
33326
  React__default['default'].createElement(
@@ -33320,9 +33334,9 @@ var QSMContainer = function () {
33320
33334
  'button',
33321
33335
  {
33322
33336
  type: 'button',
33323
- className: 'qsm__tab '.concat(qsmType == 'car' ? 'qsm__tab--active' : ''),
33337
+ className: 'qsm__tab '.concat(qsmType == exports.PortalQsmType.Car ? 'qsm__tab--active' : ''),
33324
33338
  onClick: function () {
33325
- return handleQsmTypeChange('car');
33339
+ return handleQsmTypeChange(exports.PortalQsmType.Car);
33326
33340
  }
33327
33341
  },
33328
33342
  React__default['default'].createElement(
@@ -33336,9 +33350,9 @@ var QSMContainer = function () {
33336
33350
  'button',
33337
33351
  {
33338
33352
  type: 'button',
33339
- className: 'qsm__tab '.concat(qsmType == 'transfers' ? 'qsm__tab--active' : ''),
33353
+ className: 'qsm__tab '.concat(qsmType == exports.PortalQsmType.Transfer ? 'qsm__tab--active' : ''),
33340
33354
  onClick: function () {
33341
- return handleQsmTypeChange('transfers');
33355
+ return handleQsmTypeChange(exports.PortalQsmType.Transfer);
33342
33356
  }
33343
33357
  },
33344
33358
  React__default['default'].createElement(
@@ -33352,9 +33366,9 @@ var QSMContainer = function () {
33352
33366
  'button',
33353
33367
  {
33354
33368
  type: 'button',
33355
- className: 'qsm__tab '.concat(qsmType == 'cruises' ? 'qsm__tab--active' : ''),
33369
+ className: 'qsm__tab '.concat(qsmType == exports.PortalQsmType.Cruise ? 'qsm__tab--active' : ''),
33356
33370
  onClick: function () {
33357
- return handleQsmTypeChange('cruises');
33371
+ return handleQsmTypeChange(exports.PortalQsmType.Cruise);
33358
33372
  }
33359
33373
  },
33360
33374
  React__default['default'].createElement(
@@ -33368,7 +33382,9 @@ var QSMContainer = function () {
33368
33382
  React__default['default'].createElement(
33369
33383
  'div',
33370
33384
  { className: 'qsm__filter' },
33371
- (qsmType === 'hotel' || qsmType === 'hotel-flight' || qsmType === 'groupTour') &&
33385
+ (qsmType === exports.PortalQsmType.Accommodation ||
33386
+ qsmType === exports.PortalQsmType.AccommodationAndFlight ||
33387
+ qsmType === exports.PortalQsmType.GroupTour) &&
33372
33388
  React__default['default'].createElement(
33373
33389
  'div',
33374
33390
  { className: 'radiobutton-group qsm__filter__inputgroup' },
@@ -33410,7 +33426,7 @@ var QSMContainer = function () {
33410
33426
  )
33411
33427
  )
33412
33428
  ),
33413
- qsmType === 'flight' &&
33429
+ qsmType === exports.PortalQsmType.Flight &&
33414
33430
  React__default['default'].createElement(
33415
33431
  'div',
33416
33432
  { className: 'radiobutton-group qsm__filter__inputgroup' },
@@ -33478,18 +33494,18 @@ var QSMContainer = function () {
33478
33494
  React__default['default'].createElement(
33479
33495
  'div',
33480
33496
  { className: 'qsm__filter__classgroup' },
33481
- qsmType !== 'hotel' &&
33482
- qsmType !== 'car' &&
33483
- qsmType !== 'ticket' &&
33484
- qsmType !== 'cruises' &&
33485
- qsmType !== 'transfers' &&
33486
- qsmType !== 'groupTour' &&
33497
+ qsmType !== exports.PortalQsmType.Accommodation &&
33498
+ qsmType !== exports.PortalQsmType.Car &&
33499
+ qsmType !== exports.PortalQsmType.Ticket &&
33500
+ qsmType !== exports.PortalQsmType.Cruise &&
33501
+ qsmType !== exports.PortalQsmType.Transfer &&
33502
+ qsmType !== exports.PortalQsmType.GroupTour &&
33487
33503
  askTravelClass &&
33488
33504
  React__default['default'].createElement(TravelClassPicker, null),
33489
- qsmType !== 'multidestination' &&
33490
- qsmType !== 'car' &&
33491
- qsmType !== 'flight' &&
33492
- qsmType !== 'transfers' &&
33505
+ qsmType !== exports.PortalQsmType.Multidestination &&
33506
+ qsmType !== exports.PortalQsmType.Car &&
33507
+ qsmType !== exports.PortalQsmType.Flight &&
33508
+ qsmType !== exports.PortalQsmType.Transfer &&
33493
33509
  askTravelType &&
33494
33510
  React__default['default'].createElement(TravelTypePicker, null),
33495
33511
  askNationality && React__default['default'].createElement(TravelNationalityPicker, null)
@@ -33498,20 +33514,22 @@ var QSMContainer = function () {
33498
33514
  React__default['default'].createElement(
33499
33515
  'div',
33500
33516
  { className: 'qsm__input-group' },
33501
- (qsmType == 'flight' || qsmType == 'hotel-flight') &&
33517
+ (qsmType == exports.PortalQsmType.Flight || qsmType == exports.PortalQsmType.AccommodationAndFlight) &&
33502
33518
  originDestinationField &&
33503
33519
  React__default['default'].createElement(DoubleSearchInputGroup, {
33504
33520
  fieldConfig: originDestinationField,
33505
33521
  showReverse: originDestinationField.showReverse
33506
33522
  }),
33507
- qsmType == 'flight' &&
33523
+ qsmType == exports.PortalQsmType.Flight &&
33508
33524
  tripType == 'openjaw' &&
33509
33525
  openJawReturnDestinationField &&
33510
33526
  React__default['default'].createElement(DoubleSearchInputGroup, {
33511
33527
  fieldConfig: openJawReturnDestinationField,
33512
33528
  showReverse: openJawReturnDestinationField.showReverse
33513
33529
  }),
33514
- (qsmType == 'hotel' || qsmType == 'hotel-flight' || qsmType == 'groupTour') &&
33530
+ (qsmType == exports.PortalQsmType.Accommodation ||
33531
+ qsmType == exports.PortalQsmType.AccommodationAndFlight ||
33532
+ qsmType == exports.PortalQsmType.GroupTour) &&
33515
33533
  destination &&
33516
33534
  React__default['default'].createElement(SearchInputGroup, { fieldConfig: destination }),
33517
33535
  React__default['default'].createElement(Dates, { value: dateRange, onChange: handleDateChange }),
@@ -38008,7 +38026,7 @@ var FlyIn = function (_a) {
38008
38026
  );
38009
38027
  var handleClose = function () {
38010
38028
  if (isOpen && panelRef.current) {
38011
- if (srpType === 'flight') {
38029
+ if (srpType === exports.PortalQsmType.Flight) {
38012
38030
  dispatch(setSelectedFlight(null));
38013
38031
  dispatch(setSelectedFlightDetails(null));
38014
38032
  onCancelSearch();
@@ -38041,8 +38059,8 @@ var FlyIn = function (_a) {
38041
38059
  )
38042
38060
  )
38043
38061
  ),
38044
- srpType === 'flight' && React__default['default'].createElement(FlightsFlyIn, { isOpen: isOpen, setIsOpen: setIsOpen }),
38045
- (srpType === 'hotel' || srpType === 'groupTour') &&
38062
+ srpType === exports.PortalQsmType.Flight && React__default['default'].createElement(FlightsFlyIn, { isOpen: isOpen, setIsOpen: setIsOpen }),
38063
+ (srpType === exports.PortalQsmType.Accommodation || srpType === exports.PortalQsmType.GroupTour) &&
38046
38064
  React__default['default'].createElement(AccommodationFlyIn, { isLoading: true, isOpen: isOpen, setIsOpen: setIsOpen })
38047
38065
  )
38048
38066
  );
@@ -40945,7 +40963,7 @@ var FlightResultsContainer = function (_a) {
40945
40963
  React.useEffect(
40946
40964
  function () {
40947
40965
  if (!(context === null || context === void 0 ? void 0 : context.showMockup)) {
40948
- if ((context === null || context === void 0 ? void 0 : context.type) === 'flight' && isHubReady) {
40966
+ if ((context === null || context === void 0 ? void 0 : context.type) === exports.PortalQsmType.Flight && isHubReady) {
40949
40967
  onFlightSearch();
40950
40968
  }
40951
40969
  }
@@ -41085,7 +41103,7 @@ var FlightResultsContainer = function (_a) {
41085
41103
  'div',
41086
41104
  { className: 'search__results__wrapper' },
41087
41105
  flightsLoading && React__default['default'].createElement(Spinner, null),
41088
- (context === null || context === void 0 ? void 0 : context.type) == 'flight' &&
41106
+ (context === null || context === void 0 ? void 0 : context.type) == exports.PortalQsmType.Flight &&
41089
41107
  (context === null || context === void 0 ? void 0 : context.showFlightAccommodationResults) &&
41090
41108
  results &&
41091
41109
  results.length > 0 &&
@@ -41659,7 +41677,14 @@ var SearchResultsContainer = function () {
41659
41677
  officeId: 1,
41660
41678
  payload: {
41661
41679
  catalogueIds: (_a = context.tideConnection.catalogueIds) !== null && _a !== void 0 ? _a : [],
41662
- serviceType: context.type === 'hotel' || context.type === 'hotel-flight' ? 3 : context.type === 'flight' ? 7 : context.type === 'roundTrip' ? 1 : 0,
41680
+ serviceType:
41681
+ context.type === exports.PortalQsmType.Accommodation || context.type === exports.PortalQsmType.AccommodationAndFlight
41682
+ ? 3
41683
+ : context.type === exports.PortalQsmType.Flight
41684
+ ? 7
41685
+ : context.type === exports.PortalQsmType.RoundTrip
41686
+ ? 1
41687
+ : 0,
41663
41688
  searchType: 0,
41664
41689
  destination: {
41665
41690
  id: Number(destinationId),
@@ -41727,8 +41752,14 @@ var SearchResultsContainer = function () {
41727
41752
  payload: {
41728
41753
  catalogueIds: (_a = context.tideConnection.catalogueIds) !== null && _a !== void 0 ? _a : [],
41729
41754
  serviceType:
41730
- context.type === 'hotel' || context.type === 'hotel-flight' ? 3 : context.type === 'flight' ? 7 : context.type === 'roundTrip' ? 1 : undefined,
41731
- searchType: context.type === 'groupTour' ? 1 : 0,
41755
+ context.type === exports.PortalQsmType.Accommodation || context.type === exports.PortalQsmType.AccommodationAndFlight
41756
+ ? 3
41757
+ : context.type === exports.PortalQsmType.Flight
41758
+ ? 7
41759
+ : context.type === exports.PortalQsmType.RoundTrip
41760
+ ? 1
41761
+ : undefined,
41762
+ searchType: context.type === exports.PortalQsmType.GroupTour ? 1 : 0,
41732
41763
  destination: {
41733
41764
  id: Number(destinationId),
41734
41765
  isCountry: destinationIsCountry,
@@ -41741,7 +41772,7 @@ var SearchResultsContainer = function () {
41741
41772
  toDate: to,
41742
41773
  earliestFromOffset: 0,
41743
41774
  latestToOffset: 0,
41744
- includeFlights: context.type === 'hotel-flight' ? true : false,
41775
+ includeFlights: context.type === exports.PortalQsmType.AccommodationAndFlight ? true : false,
41745
41776
  // regimeCodes:
41746
41777
  // filters
41747
41778
  // .find((f) => f.property === 'regime')
@@ -41749,7 +41780,7 @@ var SearchResultsContainer = function () {
41749
41780
  // .flatMap((o) => o.value.toString()) || [],
41750
41781
  // minPrice: filters.find((f) => f.property === 'price')?.selectedMin,
41751
41782
  // maxPrice: filters.find((f) => f.property === 'price')?.selectedMax,
41752
- useExactDates: (context === null || context === void 0 ? void 0 : context.type) === 'groupTour' ? false : true,
41783
+ useExactDates: (context === null || context === void 0 ? void 0 : context.type) === exports.PortalQsmType.GroupTour ? false : true,
41753
41784
  onlyCachedResults: false,
41754
41785
  includeAllAllotments: true,
41755
41786
  productIds: hotel ? [hotel] : [],
@@ -41886,7 +41917,7 @@ var SearchResultsContainer = function () {
41886
41917
  dispatch(setSelectedSearchResult(matching.productId));
41887
41918
  }
41888
41919
  } else {
41889
- if (context.type === 'hotel-flight') {
41920
+ if (context.type === exports.PortalQsmType.AccommodationAndFlight) {
41890
41921
  dispatch(setSelectedSearchResult((_b = packageSearchResults[0]) === null || _b === void 0 ? void 0 : _b.productId));
41891
41922
  }
41892
41923
  }
@@ -41906,9 +41937,9 @@ var SearchResultsContainer = function () {
41906
41937
  };
41907
41938
  if (!(context === null || context === void 0 ? void 0 : context.showMockup)) {
41908
41939
  if (
41909
- (context === null || context === void 0 ? void 0 : context.type) === 'hotel-flight' ||
41910
- (context === null || context === void 0 ? void 0 : context.type) === 'hotel' ||
41911
- (context === null || context === void 0 ? void 0 : context.type) === 'groupTour'
41940
+ (context === null || context === void 0 ? void 0 : context.type) === exports.PortalQsmType.AccommodationAndFlight ||
41941
+ (context === null || context === void 0 ? void 0 : context.type) === exports.PortalQsmType.Accommodation ||
41942
+ (context === null || context === void 0 ? void 0 : context.type) === exports.PortalQsmType.GroupTour
41912
41943
  ) {
41913
41944
  runSearch();
41914
41945
  }
@@ -41928,8 +41959,8 @@ var SearchResultsContainer = function () {
41928
41959
  case 0:
41929
41960
  if (!selectedSearchResultId || !context) return [2 /*return*/];
41930
41961
  if (
41931
- (context === null || context === void 0 ? void 0 : context.type) === 'hotel' ||
41932
- (context === null || context === void 0 ? void 0 : context.type) === 'groupTour'
41962
+ (context === null || context === void 0 ? void 0 : context.type) === exports.PortalQsmType.Accommodation ||
41963
+ (context === null || context === void 0 ? void 0 : context.type) === exports.PortalQsmType.GroupTour
41933
41964
  ) {
41934
41965
  handleFlyInToggle(true);
41935
41966
  }
@@ -41965,7 +41996,7 @@ var SearchResultsContainer = function () {
41965
41996
  productCode: selectedItem.code,
41966
41997
  fromDate: selectedItem.fromDate,
41967
41998
  toDate: selectedItem.toDate,
41968
- includeFlights: context.type === 'hotel-flight' ? true : false,
41999
+ includeFlights: context.type === exports.PortalQsmType.AccommodationAndFlight ? true : false,
41969
42000
  includeHotels: true,
41970
42001
  includePaxTypes: true,
41971
42002
  checkExternalAvailability: true,
@@ -42038,7 +42069,7 @@ var SearchResultsContainer = function () {
42038
42069
  React__default['default'].createElement(
42039
42070
  'div',
42040
42071
  { className: 'search__container' },
42041
- context.type === 'flight' &&
42072
+ context.type === exports.PortalQsmType.Flight &&
42042
42073
  React__default['default'].createElement(
42043
42074
  FlightSearchProvider,
42044
42075
  { tideConnection: context.tideConnection },
@@ -42053,11 +42084,14 @@ var SearchResultsContainer = function () {
42053
42084
  }
42054
42085
  })
42055
42086
  ),
42056
- (context.type === 'hotel-flight' || context.type === 'hotel' || context.type === 'groupTour' || context.type === 'roundTrip') &&
42087
+ (context.type === exports.PortalQsmType.AccommodationAndFlight ||
42088
+ context.type === exports.PortalQsmType.Accommodation ||
42089
+ context.type === exports.PortalQsmType.GroupTour ||
42090
+ context.type === exports.PortalQsmType.RoundTrip) &&
42057
42091
  React__default['default'].createElement(
42058
42092
  React__default['default'].Fragment,
42059
42093
  null,
42060
- context.type != 'hotel-flight' &&
42094
+ context.type != exports.PortalQsmType.AccommodationAndFlight &&
42061
42095
  context.showFilters &&
42062
42096
  React__default['default'].createElement(Filters, {
42063
42097
  initialFilters: initialFilters,
@@ -42069,7 +42103,7 @@ var SearchResultsContainer = function () {
42069
42103
  // handleApplyFilters={() => setSearchTrigger((prev) => prev + 1)}
42070
42104
  isLoading: isLoading
42071
42105
  }),
42072
- context.type === 'hotel-flight' &&
42106
+ context.type === exports.PortalQsmType.AccommodationAndFlight &&
42073
42107
  React__default['default'].createElement(Itinerary, {
42074
42108
  isOpen: itineraryOpen,
42075
42109
  handleSetIsOpen: function () {
@@ -42087,7 +42121,7 @@ var SearchResultsContainer = function () {
42087
42121
  React__default['default'].createElement(
42088
42122
  'div',
42089
42123
  { className: 'search__results__actions' },
42090
- context.type != 'hotel-flight' &&
42124
+ context.type != exports.PortalQsmType.AccommodationAndFlight &&
42091
42125
  context.showFilters &&
42092
42126
  React__default['default'].createElement(
42093
42127
  'div',
@@ -42100,7 +42134,7 @@ var SearchResultsContainer = function () {
42100
42134
  React__default['default'].createElement(Icon$1, { name: 'ui-filter', className: 'mobile-filters-button__icon', height: 16 }),
42101
42135
  translations.SRP.FILTERS
42102
42136
  ),
42103
- context.type === 'hotel-flight' &&
42137
+ context.type === exports.PortalQsmType.AccommodationAndFlight &&
42104
42138
  React__default['default'].createElement(
42105
42139
  'div',
42106
42140
  {
@@ -42160,8 +42194,8 @@ var SearchResultsContainer = function () {
42160
42194
  { className: 'search__results__wrapper' },
42161
42195
  context.showTabViews && React__default['default'].createElement(TabViews, null),
42162
42196
  context.showRoundTripResults && context.showMockup && React__default['default'].createElement(RoundTripResults, null),
42163
- context.type === 'groupTour' && React__default['default'].createElement(GroupTourResults, { isLoading: isLoading }),
42164
- context.type === 'hotel-flight' &&
42197
+ context.type === exports.PortalQsmType.GroupTour && React__default['default'].createElement(GroupTourResults, { isLoading: isLoading }),
42198
+ context.type === exports.PortalQsmType.AccommodationAndFlight &&
42165
42199
  context.showFlightResults &&
42166
42200
  (bookingPackageDetails === null || bookingPackageDetails === void 0 ? void 0 : bookingPackageDetails.outwardFlights) &&
42167
42201
  React__default['default'].createElement(FlightResults, {
@@ -42169,7 +42203,7 @@ var SearchResultsContainer = function () {
42169
42203
  isDeparture: true
42170
42204
  }),
42171
42205
  context.showHotelAccommodationResults && React__default['default'].createElement(HotelAccommodationResults, { isLoading: isLoading }),
42172
- context.type === 'hotel-flight' &&
42206
+ context.type === exports.PortalQsmType.AccommodationAndFlight &&
42173
42207
  context.showFlightResults &&
42174
42208
  (bookingPackageDetails === null || bookingPackageDetails === void 0 ? void 0 : bookingPackageDetails.returnFlights) &&
42175
42209
  React__default['default'].createElement(FlightResults, {
@@ -1,8 +1,8 @@
1
1
  import { MobileFilterType, Room, TravelerType, TypeaheadOption } from '../types';
2
2
  import { ReactNode } from 'react';
3
- import { TravelType, TravelClass, SRPType } from '../../shared/types';
3
+ import { TravelType, TravelClass, PortalQsmType } from '../../shared/types';
4
4
  export interface QSMState {
5
- qsmType?: SRPType;
5
+ qsmType?: PortalQsmType;
6
6
  selectedOrigin?: string;
7
7
  selectedDestination?: string;
8
8
  selectedAirport?: string;
@@ -48,7 +48,7 @@ export interface QSMState {
48
48
  rooms: Room[];
49
49
  [key: string]: any;
50
50
  }
51
- export declare const setSelectedQsmType: import('@reduxjs/toolkit').ActionCreatorWithPayload<SRPType, 'qsm/setSelectedQsmType'>,
51
+ export declare const setSelectedQsmType: import('@reduxjs/toolkit').ActionCreatorWithPayload<PortalQsmType, 'qsm/setSelectedQsmType'>,
52
52
  setOrigin: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, 'qsm/setOrigin'>,
53
53
  setDestination: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, 'qsm/setDestination'>,
54
54
  setAirport: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, 'qsm/setAirport'>,
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { SRPType, TravelClass, TravelType } from '../shared/types';
2
+ import { PortalQsmType, TravelClass, TravelType } from '../shared/types';
3
3
  export interface QSMConfiguration {
4
- type?: SRPType;
4
+ type?: PortalQsmType;
5
5
  askRooms?: boolean;
6
6
  askTravelType?: boolean;
7
7
  allowOneWay?: boolean;
@@ -1,9 +1,9 @@
1
1
  import { FlightSearchResponseItem } from '@qite/tide-client';
2
2
  import { ReactNode } from 'react';
3
- import { SRPType } from '../shared/types';
3
+ import { PortalQsmType } from '../shared/types';
4
4
  export type FlightSelectionMode = 'paired' | 'independent';
5
5
  export interface SearchResultsConfiguration {
6
- type: SRPType;
6
+ type: PortalQsmType;
7
7
  tideConnection: {
8
8
  host: string;
9
9
  apiKey: string;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { SRPType } from '../../types';
2
+ import { PortalQsmType } from '../../types';
3
3
  type FlyInProps = {
4
4
  title: string;
5
- srpType: SRPType;
5
+ srpType: PortalQsmType;
6
6
  isOpen: boolean;
7
7
  setIsOpen: (open: boolean) => void;
8
8
  className?: string;
@@ -1,16 +1,17 @@
1
1
  import { ReactNode } from 'react';
2
- export type SRPType =
3
- | 'multidestination'
4
- | 'hotel'
5
- | 'roundTrip'
6
- | 'flight'
7
- | 'hotel-flight'
8
- | 'groupTour'
9
- | 'package'
10
- | 'ticket'
11
- | 'car'
12
- | 'transfers'
13
- | 'cruises';
2
+ export declare enum PortalQsmType {
3
+ Multidestination = 0,
4
+ Accommodation = 1,
5
+ AccommodationAndFlight = 2,
6
+ Flight = 3,
7
+ RoundTrip = 4,
8
+ GroupTour = 5,
9
+ Package = 6,
10
+ Ticket = 7,
11
+ Car = 8,
12
+ Transfer = 9,
13
+ Cruise = 10
14
+ }
14
15
  export interface ApiSettingsState {
15
16
  apiUrl: string;
16
17
  apiKey: string;