@revolugo/booking-api-client 7.4.3-rc.0 → 7.5.0-rc.0

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.
package/dist/index.es.js CHANGED
@@ -299,14 +299,14 @@ function ai() {
299
299
  y.abort();
300
300
  }
301
301
  y.onload = function() {
302
- var P = {
302
+ var N = {
303
303
  statusText: y.statusText,
304
304
  headers: v(y.getAllResponseHeaders() || "")
305
305
  };
306
- _.url.indexOf("file://") === 0 && (y.status < 200 || y.status > 599) ? P.status = 200 : P.status = y.status, P.url = "responseURL" in y ? y.responseURL : P.headers.get("X-Request-URL");
306
+ _.url.indexOf("file://") === 0 && (y.status < 200 || y.status > 599) ? N.status = 200 : N.status = y.status, N.url = "responseURL" in y ? y.responseURL : N.headers.get("X-Request-URL");
307
307
  var K = "response" in y ? y.response : y.responseText;
308
308
  setTimeout(function() {
309
- l(new $(K, P));
309
+ l(new $(K, N));
310
310
  }, 0);
311
311
  }, y.onerror = function() {
312
312
  setTimeout(function() {
@@ -321,23 +321,23 @@ function ai() {
321
321
  f(new c.DOMException("Aborted", "AbortError"));
322
322
  }, 0);
323
323
  };
324
- function H(P) {
324
+ function H(N) {
325
325
  try {
326
- return P === "" && d.location.href ? d.location.href : P;
326
+ return N === "" && d.location.href ? d.location.href : N;
327
327
  } catch {
328
- return P;
328
+ return N;
329
329
  }
330
330
  }
331
331
  if (y.open(_.method, H(_.url), !0), _.credentials === "include" ? y.withCredentials = !0 : _.credentials === "omit" && (y.withCredentials = !1), "responseType" in y && (h.blob ? y.responseType = "blob" : h.arrayBuffer && (y.responseType = "arraybuffer")), s && typeof s.headers == "object" && !(s.headers instanceof m || d.Headers && s.headers instanceof d.Headers)) {
332
332
  var U = [];
333
- Object.getOwnPropertyNames(s.headers).forEach(function(P) {
334
- U.push(g(P)), y.setRequestHeader(P, M(s.headers[P]));
335
- }), _.headers.forEach(function(P, K) {
336
- U.indexOf(K) === -1 && y.setRequestHeader(K, P);
333
+ Object.getOwnPropertyNames(s.headers).forEach(function(N) {
334
+ U.push(g(N)), y.setRequestHeader(N, M(s.headers[N]));
335
+ }), _.headers.forEach(function(N, K) {
336
+ U.indexOf(K) === -1 && y.setRequestHeader(K, N);
337
337
  });
338
338
  } else
339
- _.headers.forEach(function(P, K) {
340
- y.setRequestHeader(K, P);
339
+ _.headers.forEach(function(N, K) {
340
+ y.setRequestHeader(K, N);
341
341
  });
342
342
  _.signal && (_.signal.addEventListener("abort", D), y.onreadystatechange = function() {
343
343
  y.readyState === 4 && _.signal.removeEventListener("abort", D);
@@ -465,7 +465,7 @@ function wi(e) {
465
465
  strict: !0
466
466
  });
467
467
  }
468
- var N = /* @__PURE__ */ ((e) => (e.Camel = "camelCase", e.Capital = "capitalCase", e.Param = "paramCase", e.Pascal = "pascalCase", e.Slug = "slugCase", e.Snake = "snakeCase", e))(N || {});
468
+ var P = /* @__PURE__ */ ((e) => (e.Camel = "camelCase", e.Capital = "capitalCase", e.Param = "paramCase", e.Pascal = "pascalCase", e.Slug = "slugCase", e.Snake = "snakeCase", e))(P || {});
469
469
  const Ri = {
470
470
  camelCase: hi,
471
471
  capitalCase: yi,
@@ -584,15 +584,15 @@ function vt() {
584
584
  return _ ? W : W.endOf(S);
585
585
  }, H = function(j, Y) {
586
586
  return v.w(f.toDate()[j].apply(f.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Y)), f);
587
- }, U = this.$W, P = this.$M, K = this.$D, ne = "set" + (this.$u ? "UTC" : "");
587
+ }, U = this.$W, N = this.$M, K = this.$D, ne = "set" + (this.$u ? "UTC" : "");
588
588
  switch (y) {
589
589
  case M:
590
590
  return _ ? D(1, 0) : D(31, 11);
591
591
  case O:
592
- return _ ? D(1, P) : D(0, P + 1);
592
+ return _ ? D(1, N) : D(0, N + 1);
593
593
  case A:
594
594
  var te = this.$locale().weekStart || 0, ce = (U < te ? U + 7 : U) - te;
595
- return D(_ ? K - ce : K + (6 - ce), P);
595
+ return D(_ ? K - ce : K + (6 - ce), N);
596
596
  case S:
597
597
  case C:
598
598
  return H(ne + "Hours", 0);
@@ -621,9 +621,9 @@ function vt() {
621
621
  }, a.add = function(s, l) {
622
622
  var f, _ = this;
623
623
  s = Number(s);
624
- var y = v.p(l), D = function(P) {
624
+ var y = v.p(l), D = function(N) {
625
625
  var K = x(_);
626
- return v.w(K.date(K.date() + Math.round(P * s)), _);
626
+ return v.w(K.date(K.date() + Math.round(N * s)), _);
627
627
  };
628
628
  if (y === O) return this.set(O, this.$M + s);
629
629
  if (y === M) return this.set(M, this.$y + s);
@@ -636,7 +636,7 @@ function vt() {
636
636
  }, a.format = function(s) {
637
637
  var l = this, f = this.$locale();
638
638
  if (!this.isValid()) return f.invalidDate || m;
639
- var _ = s || "YYYY-MM-DDTHH:mm:ssZ", y = v.z(this), D = this.$H, H = this.$m, U = this.$M, P = f.weekdays, K = f.months, ne = f.meridiem, te = function(Y, W, ie, oe) {
639
+ var _ = s || "YYYY-MM-DDTHH:mm:ssZ", y = v.z(this), D = this.$H, H = this.$m, U = this.$M, N = f.weekdays, K = f.months, ne = f.meridiem, te = function(Y, W, ie, oe) {
640
640
  return Y && (Y[W] || Y(l, _)) || ie[W].slice(0, oe);
641
641
  }, ce = function(Y) {
642
642
  return v.s(D % 12 || 12, Y, "0");
@@ -666,11 +666,11 @@ function vt() {
666
666
  case "d":
667
667
  return String(l.$W);
668
668
  case "dd":
669
- return te(f.weekdaysMin, l.$W, P, 2);
669
+ return te(f.weekdaysMin, l.$W, N, 2);
670
670
  case "ddd":
671
- return te(f.weekdaysShort, l.$W, P, 3);
671
+ return te(f.weekdaysShort, l.$W, N, 3);
672
672
  case "dddd":
673
- return P[l.$W];
673
+ return N[l.$W];
674
674
  case "H":
675
675
  return String(D);
676
676
  case "HH":
@@ -702,7 +702,7 @@ function vt() {
702
702
  }, a.utcOffset = function() {
703
703
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
704
704
  }, a.diff = function(s, l, f) {
705
- var _, y = this, D = v.p(l), H = x(s), U = (H.utcOffset() - this.utcOffset()) * i, P = this - H, K = function() {
705
+ var _, y = this, D = v.p(l), H = x(s), U = (H.utcOffset() - this.utcOffset()) * i, N = this - H, K = function() {
706
706
  return v.m(y, H);
707
707
  };
708
708
  switch (D) {
@@ -716,22 +716,22 @@ function vt() {
716
716
  _ = K() / 3;
717
717
  break;
718
718
  case A:
719
- _ = (P - U) / 6048e5;
719
+ _ = (N - U) / 6048e5;
720
720
  break;
721
721
  case S:
722
- _ = (P - U) / 864e5;
722
+ _ = (N - U) / 864e5;
723
723
  break;
724
724
  case h:
725
- _ = P / o;
725
+ _ = N / o;
726
726
  break;
727
727
  case d:
728
- _ = P / i;
728
+ _ = N / i;
729
729
  break;
730
730
  case c:
731
- _ = P / r;
731
+ _ = N / r;
732
732
  break;
733
733
  default:
734
- _ = P;
734
+ _ = N;
735
735
  }
736
736
  return f ? _ : v.a(_);
737
737
  }, a.daysInMonth = function() {
@@ -820,12 +820,12 @@ function Di() {
820
820
  }
821
821
  var vi = Di();
822
822
  const bi = /* @__PURE__ */ Z(vi);
823
- var ke = { exports: {} }, Ni = ke.exports, ut;
824
- function Pi() {
823
+ var ke = { exports: {} }, Pi = ke.exports, ut;
824
+ function Ni() {
825
825
  return ut || (ut = 1, (function(e, t) {
826
826
  (function(r, i) {
827
827
  e.exports = i();
828
- })(Ni, (function() {
828
+ })(Pi, (function() {
829
829
  var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, o = /\d/, u = /\d\d/, c = /\d\d?/, d = /\d*[^-_:/,()\s\d]+/, h = {}, S = function(p) {
830
830
  return (p = +p) + (p > 68 ? 1900 : 2e3);
831
831
  }, A = function(p) {
@@ -920,7 +920,7 @@ function Pi() {
920
920
  v && (V = J[2]), h = this.$locale(), !x && V && (h = T.Ls[V]), this.$d = (function(l, f, _, y) {
921
921
  try {
922
922
  if (["x", "X"].indexOf(f) > -1) return new Date((f === "X" ? 1e3 : 1) * l);
923
- var D = m(f)(l), H = D.year, U = D.month, P = D.day, K = D.hours, ne = D.minutes, te = D.seconds, ce = D.milliseconds, j = D.zone, Y = D.week, W = /* @__PURE__ */ new Date(), ie = P || (H || U ? 1 : W.getDate()), oe = H || W.getFullYear(), ge = 0;
923
+ var D = m(f)(l), H = D.year, U = D.month, N = D.day, K = D.hours, ne = D.minutes, te = D.seconds, ce = D.milliseconds, j = D.zone, Y = D.week, W = /* @__PURE__ */ new Date(), ie = N || (H || U ? 1 : W.getDate()), oe = H || W.getFullYear(), ge = 0;
924
924
  H && !U || (ge = U > 0 ? U - 1 : W.getMonth());
925
925
  var _e, Fe = K || 0, Je = ne || 0, $e = te || 0, Ue = ce || 0;
926
926
  return j ? new Date(Date.UTC(oe, ge, ie, Fe, Je, $e, Ue + 60 * j.offset * 1e3)) : _ ? new Date(Date.UTC(oe, ge, ie, Fe, Je, $e, Ue)) : (_e = new Date(oe, ge, ie, Fe, Je, $e, Ue), Y && (_e = y(_e).week(Y).toDate()), _e);
@@ -943,7 +943,7 @@ function Pi() {
943
943
  }));
944
944
  })(ke)), ke.exports;
945
945
  }
946
- var xi = Pi();
946
+ var xi = Ni();
947
947
  const Ei = /* @__PURE__ */ Z(xi);
948
948
  var Te = { exports: {} }, Bi = Te.exports, dt;
949
949
  function Li() {
@@ -1176,7 +1176,7 @@ function cr() {
1176
1176
  }
1177
1177
  var sr = cr();
1178
1178
  const ur = /* @__PURE__ */ Z(sr);
1179
- var Ne = { exports: {} }, dr = Ne.exports, gt;
1179
+ var Pe = { exports: {} }, dr = Pe.exports, gt;
1180
1180
  function fr() {
1181
1181
  return gt || (gt = 1, (function(e, t) {
1182
1182
  (function(r, i) {
@@ -1237,11 +1237,11 @@ function fr() {
1237
1237
  };
1238
1238
  };
1239
1239
  }));
1240
- })(Ne)), Ne.exports;
1240
+ })(Pe)), Pe.exports;
1241
1241
  }
1242
1242
  var lr = fr();
1243
1243
  const mr = /* @__PURE__ */ Z(lr);
1244
- var Pe = { exports: {} }, hr = Pe.exports, _t;
1244
+ var Ne = { exports: {} }, hr = Ne.exports, _t;
1245
1245
  function pr() {
1246
1246
  return _t || (_t = 1, (function(e, t) {
1247
1247
  (function(r, i) {
@@ -1314,7 +1314,7 @@ function pr() {
1314
1314
  };
1315
1315
  };
1316
1316
  }));
1317
- })(Pe)), Pe.exports;
1317
+ })(Ne)), Ne.exports;
1318
1318
  }
1319
1319
  var yr = pr();
1320
1320
  const gr = /* @__PURE__ */ Z(yr);
@@ -1436,7 +1436,7 @@ function Cr(e, t, r) {
1436
1436
  return wt.randomUUID && !e ? wt.randomUUID() : Mr(e);
1437
1437
  }
1438
1438
  const Ir = 1500;
1439
- class de {
1439
+ class ue {
1440
1440
  static instance = null;
1441
1441
  defaultOptions = {
1442
1442
  callCount: 1,
@@ -1454,7 +1454,7 @@ class de {
1454
1454
  };
1455
1455
  pollings = {};
1456
1456
  static getInstance() {
1457
- return de.instance || (de.instance = new de()), de.instance;
1457
+ return ue.instance || (ue.instance = new ue()), ue.instance;
1458
1458
  }
1459
1459
  on(t, r) {
1460
1460
  this.events[t] = r;
@@ -1494,7 +1494,7 @@ class de {
1494
1494
  this.dispatch("data", t), this.dispatch("complete", t), this.removeCurrentPolling(r);
1495
1495
  }
1496
1496
  async onRequest(t, r, i) {
1497
- const o = b(t ?? {}, N.Camel);
1497
+ const o = b(t ?? {}, P.Camel);
1498
1498
  this.isActivePoller(i) && (this.isInProgress(o) && i.callCount && i.maxCallCount && i.callCount < i.maxCallCount || !this.isInProgress(o) && i.callCount && i.minCallCount && i.callCount < i.minCallCount ? (this.isInProgress(o) || (o.meta = o.meta || {}, o.meta.status = "IN_PROGRESS"), i.callCount += 1, this.dispatch("data", o), i.interval && await this.pause(i), this.poll(r, i)) : this.isInProgress(o) ? (o.meta = o.meta || {}, o.meta.status = "COMPLETE", this.onComplete(o, i)) : this.onComplete(o, i));
1499
1499
  }
1500
1500
  pause(t) {
@@ -1509,8 +1509,8 @@ class de {
1509
1509
  t.type && !t.uuid && (t.uuid = Cr(), this.pollings[t.type] = t.uuid);
1510
1510
  }
1511
1511
  }
1512
- function Nt(e, t, r) {
1513
- const i = de.getInstance();
1512
+ function Pt(e, t, r) {
1513
+ const i = ue.getInstance();
1514
1514
  return i.poll(e, t), r && typeof r == "function" ? (i.on("data", (o) => {
1515
1515
  o instanceof Error ? r(o, void 0, i) : r(null, o, i);
1516
1516
  }), i.on("error", (o) => {
@@ -1523,7 +1523,7 @@ function Nt(e, t, r) {
1523
1523
  }
1524
1524
  const Dr = "http://localhost".replace(/\/+$/, ""), vr = (e) => typeof Blob < "u" && e instanceof Blob;
1525
1525
  class Q {
1526
- constructor(t = new Pt()) {
1526
+ constructor(t = new Nt()) {
1527
1527
  this.configuration = t, this.middleware = t.middleware;
1528
1528
  }
1529
1529
  middleware;
@@ -1598,13 +1598,13 @@ class q extends Error {
1598
1598
  }
1599
1599
  name = "RequiredError";
1600
1600
  }
1601
- const Na = {
1601
+ const Pa = {
1602
1602
  csv: ",",
1603
1603
  ssv: " ",
1604
1604
  tsv: " ",
1605
1605
  pipes: "|"
1606
1606
  };
1607
- class Pt {
1607
+ class Nt {
1608
1608
  constructor(t = {}) {
1609
1609
  this.configuration = t;
1610
1610
  }
@@ -1657,7 +1657,7 @@ function xt(e, t = "") {
1657
1657
  return o instanceof Date ? `${encodeURIComponent(i)}=${encodeURIComponent(o.toISOString())}` : o instanceof Object ? xt(o, i) : `${encodeURIComponent(i)}=${encodeURIComponent(String(o))}`;
1658
1658
  }).filter((r) => r.length > 0).join("&");
1659
1659
  }
1660
- function Pa(e, t) {
1660
+ function Na(e, t) {
1661
1661
  return Object.keys(e).reduce(
1662
1662
  (r, i) => ({ ...r, [i]: t(e[i]) }),
1663
1663
  {}
@@ -1692,7 +1692,7 @@ class Ba {
1692
1692
  return await this.raw.blob();
1693
1693
  }
1694
1694
  }
1695
- class Nr {
1695
+ class Pr {
1696
1696
  constructor(t) {
1697
1697
  this.raw = t;
1698
1698
  }
@@ -1703,7 +1703,7 @@ class Nr {
1703
1703
  const La = {
1704
1704
  CreditCard: "CREDIT_CARD"
1705
1705
  };
1706
- function Pr(e) {
1706
+ function Nr(e) {
1707
1707
  let t = !0;
1708
1708
  return t = t && "name" in e, t;
1709
1709
  }
@@ -1817,7 +1817,7 @@ function Kr(e, t) {
1817
1817
  }
1818
1818
  function za(e) {
1819
1819
  if (e !== void 0)
1820
- return e === null ? null : Pr(e) ? xr(e) : Er(e) ? Br(e) : Lr(e) ? Hr(e) : Ur(e) ? Gr(e) : {};
1820
+ return e === null ? null : Nr(e) ? xr(e) : Er(e) ? Br(e) : Lr(e) ? Hr(e) : Ur(e) ? Gr(e) : {};
1821
1821
  }
1822
1822
  function Va(e) {
1823
1823
  return !0;
@@ -2492,7 +2492,7 @@ function uc(e) {
2492
2492
  let t = !0;
2493
2493
  return t = t && "isHeroImage" in e, t = t && "l" in e, t = t && "m" in e, t = t && "s" in e, t = t && "xl" in e, t = t && "xs" in e, t;
2494
2494
  }
2495
- function fe(e) {
2495
+ function de(e) {
2496
2496
  return an(e);
2497
2497
  }
2498
2498
  function an(e, t) {
@@ -2506,7 +2506,7 @@ function an(e, t) {
2506
2506
  xs: e.xs
2507
2507
  };
2508
2508
  }
2509
- function he(e) {
2509
+ function me(e) {
2510
2510
  if (e !== void 0)
2511
2511
  return e === null ? null : {
2512
2512
  caption: e.caption,
@@ -2535,7 +2535,7 @@ function sn(e, t) {
2535
2535
  highresImages: n(e, "highres_images") ? e.highres_images : void 0,
2536
2536
  id: e.id,
2537
2537
  imageIndexes: n(e, "image_indexes") ? e.image_indexes : void 0,
2538
- images: n(e, "images") ? e.images === null ? null : e.images.map(fe) : void 0,
2538
+ images: n(e, "images") ? e.images === null ? null : e.images.map(de) : void 0,
2539
2539
  lowresImages: n(e, "lowres_images") ? e.lowres_images : void 0,
2540
2540
  occupancy: e.occupancy,
2541
2541
  richDescription: n(e, "rich_description") ? e.rich_description : void 0,
@@ -2555,7 +2555,7 @@ function un(e) {
2555
2555
  highres_images: e.highresImages,
2556
2556
  id: e.id,
2557
2557
  image_indexes: e.imageIndexes,
2558
- images: e.images === void 0 ? void 0 : e.images === null ? null : e.images.map(he),
2558
+ images: e.images === void 0 ? void 0 : e.images === null ? null : e.images.map(me),
2559
2559
  lowres_images: e.lowresImages,
2560
2560
  occupancy: e.occupancy,
2561
2561
  rich_description: e.richDescription,
@@ -2809,7 +2809,7 @@ const fc = {
2809
2809
  Zm: "ZM",
2810
2810
  Zw: "ZW"
2811
2811
  };
2812
- function ue(e) {
2812
+ function he(e) {
2813
2813
  return dn(e);
2814
2814
  }
2815
2815
  function dn(e, t) {
@@ -2900,7 +2900,7 @@ function Sc(e) {
2900
2900
  let t = !0;
2901
2901
  return t = t && "breakfastOption" in e, t = t && "cancellationPolicies" in e, t = t && "currency" in e, t = t && "hotelId" in e, t = t && "hotelRooms" in e, t = t && "price" in e, t = t && "sourceMarket" in e, t = t && "stayTaxesInfo" in e, t = t && "taxIncludedPrice" in e, t;
2902
2902
  }
2903
- function le(e) {
2903
+ function fe(e) {
2904
2904
  return mn(e);
2905
2905
  }
2906
2906
  function mn(e, t) {
@@ -2917,7 +2917,7 @@ function mn(e, t) {
2917
2917
  id: n(e, "id") ? e.id : void 0,
2918
2918
  packageType: n(e, "package_type") ? e.package_type : void 0,
2919
2919
  price: e.price,
2920
- sourceMarket: ue(e.source_market),
2920
+ sourceMarket: he(e.source_market),
2921
2921
  stayTaxesInfo: e.stay_taxes_info,
2922
2922
  tags: n(e, "tags") ? e.tags.map(et) : void 0,
2923
2923
  taxIncludedPrice: e.tax_included_price,
@@ -2925,7 +2925,7 @@ function mn(e, t) {
2925
2925
  type: n(e, "type") ? e.type : void 0
2926
2926
  };
2927
2927
  }
2928
- function me(e) {
2928
+ function le(e) {
2929
2929
  if (e !== void 0)
2930
2930
  return e === null ? null : {
2931
2931
  breakfast_count: e.breakfastCount,
@@ -2965,7 +2965,7 @@ function pn(e, t) {
2965
2965
  highresImages: n(e, "highres_images") ? e.highres_images : void 0,
2966
2966
  id: e.id,
2967
2967
  imageIndexes: n(e, "image_indexes") ? e.image_indexes : void 0,
2968
- images: n(e, "images") ? e.images === null ? null : e.images.map(fe) : void 0,
2968
+ images: n(e, "images") ? e.images === null ? null : e.images.map(de) : void 0,
2969
2969
  lowresImages: n(e, "lowres_images") ? e.lowres_images : void 0,
2970
2970
  occupancy: e.occupancy,
2971
2971
  richDescription: n(e, "rich_description") ? e.rich_description : void 0,
@@ -2985,7 +2985,7 @@ function yn(e) {
2985
2985
  highres_images: e.highresImages,
2986
2986
  id: e.id,
2987
2987
  image_indexes: e.imageIndexes,
2988
- images: e.images === void 0 ? void 0 : e.images === null ? null : e.images.map(he),
2988
+ images: e.images === void 0 ? void 0 : e.images === null ? null : e.images.map(me),
2989
2989
  lowres_images: e.lowresImages,
2990
2990
  occupancy: e.occupancy,
2991
2991
  rich_description: e.richDescription,
@@ -3134,11 +3134,11 @@ function bn(e) {
3134
3134
  const bc = {
3135
3135
  Coupon: "COUPON"
3136
3136
  };
3137
- function Nn(e) {
3137
+ function Pn(e) {
3138
3138
  let t = !0;
3139
3139
  return t = t && "name" in e, t = t && "payload" in e, t;
3140
3140
  }
3141
- function Nc(e) {
3141
+ function Pc(e) {
3142
3142
  return zt(e);
3143
3143
  }
3144
3144
  function zt(e, t) {
@@ -3147,14 +3147,14 @@ function zt(e, t) {
3147
3147
  payload: Dn(e.payload)
3148
3148
  };
3149
3149
  }
3150
- function Pn(e) {
3150
+ function Nn(e) {
3151
3151
  if (e !== void 0)
3152
3152
  return e === null ? null : {
3153
3153
  name: e.name,
3154
3154
  payload: bn(e.payload)
3155
3155
  };
3156
3156
  }
3157
- function Pc(e) {
3157
+ function Nc(e) {
3158
3158
  let t = !0;
3159
3159
  return t = t && "amount" in e, t;
3160
3160
  }
@@ -3259,7 +3259,7 @@ function Kn(e, t) {
3259
3259
  }
3260
3260
  function Yn(e) {
3261
3261
  if (e !== void 0)
3262
- return e === null ? null : Cn(e) ? In(e) : Nn(e) ? Pn(e) : Ln(e) ? Hn(e) : Un(e) ? Gn(e) : {};
3262
+ return e === null ? null : Cn(e) ? In(e) : Pn(e) ? Nn(e) : Ln(e) ? Hn(e) : Un(e) ? Gn(e) : {};
3263
3263
  }
3264
3264
  const Jc = {
3265
3265
  Disabled: "DISABLED",
@@ -3302,7 +3302,7 @@ function zn(e, t) {
3302
3302
  failedAt: n(e, "failed_at") ? e.failed_at : void 0,
3303
3303
  hotelConfirmationId: n(e, "hotel_confirmation_id") ? e.hotel_confirmation_id : void 0,
3304
3304
  hotelId: e.hotel_id,
3305
- hotelRoomOffer: le(e.hotel_room_offer),
3305
+ hotelRoomOffer: fe(e.hotel_room_offer),
3306
3306
  hotelRoomingLists: n(e, "hotel_rooming_lists") ? e.hotel_rooming_lists.map(Kt) : void 0,
3307
3307
  id: n(e, "id") ? e.id : void 0,
3308
3308
  invoices: n(e, "invoices") ? e.invoices === null ? null : e.invoices.map(Sn) : void 0,
@@ -3312,7 +3312,7 @@ function zn(e, t) {
3312
3312
  paymentMethods: n(e, "payment_methods") ? e.payment_methods.map(qn) : void 0,
3313
3313
  penaltyPercentage: n(e, "penalty_percentage") ? e.penalty_percentage : void 0,
3314
3314
  reference: e.reference,
3315
- sourceMarket: ue(e.source_market),
3315
+ sourceMarket: he(e.source_market),
3316
3316
  status: e.status,
3317
3317
  taxAmount: e.tax_amount,
3318
3318
  taxIncludedPrice: e.tax_included_price,
@@ -3342,7 +3342,7 @@ function Vn(e) {
3342
3342
  failed_at: e.failedAt,
3343
3343
  hotel_confirmation_id: e.hotelConfirmationId,
3344
3344
  hotel_id: e.hotelId,
3345
- hotel_room_offer: me(e.hotelRoomOffer),
3345
+ hotel_room_offer: le(e.hotelRoomOffer),
3346
3346
  hotel_rooming_lists: e.hotelRoomingLists === void 0 ? void 0 : e.hotelRoomingLists.map(An),
3347
3347
  id: e.id,
3348
3348
  invoices: e.invoices === void 0 ? void 0 : e.invoices === null ? null : e.invoices.map(Rn),
@@ -3471,7 +3471,7 @@ function ao(e) {
3471
3471
  }
3472
3472
  function Wc(e) {
3473
3473
  let t = !0;
3474
- return t = t && "adultCount" in e, t = t && "cancellationPolicies" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "currency" in e, t = t && "expiresAt" in e, t = t && "hasRoomingLists" in e, t = t && "hotelId" in e, t = t && "hotelRoomOffer" in e, t = t && "id" in e, t = t && "isPriceIncreased" in e, t;
3474
+ return t = t && "adultCount" in e, t = t && "cancellationPolicies" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "currency" in e, t = t && "expiresAt" in e, t = t && "hasRoomingLists" in e, t = t && "hotelId" in e, t = t && "hotelRoomOffer" in e, t = t && "id" in e, t = t && "isCancellationPoliciesUpdated" in e, t = t && "isPriceIncreased" in e, t;
3475
3475
  }
3476
3476
  function Rt(e) {
3477
3477
  return co(e);
@@ -3487,8 +3487,9 @@ function co(e, t) {
3487
3487
  expiresAt: e.expires_at === null ? null : new Date(e.expires_at),
3488
3488
  hasRoomingLists: e.has_rooming_lists,
3489
3489
  hotelId: e.hotel_id,
3490
- hotelRoomOffer: le(e.hotel_room_offer),
3490
+ hotelRoomOffer: fe(e.hotel_room_offer),
3491
3491
  id: e.id,
3492
+ isCancellationPoliciesUpdated: e.is_cancellation_policies_updated,
3492
3493
  isPriceIncreased: e.is_price_increased
3493
3494
  };
3494
3495
  }
@@ -3504,8 +3505,9 @@ function Xc(e) {
3504
3505
  expires_at: e.expiresAt === null ? null : e.expiresAt.toISOString(),
3505
3506
  has_rooming_lists: e.hasRoomingLists,
3506
3507
  hotel_id: e.hotelId,
3507
- hotel_room_offer: me(e.hotelRoomOffer),
3508
+ hotel_room_offer: le(e.hotelRoomOffer),
3508
3509
  id: e.id,
3510
+ is_cancellation_policies_updated: e.isCancellationPoliciesUpdated,
3509
3511
  is_price_increased: e.isPriceIncreased
3510
3512
  };
3511
3513
  }
@@ -3752,7 +3754,7 @@ function To(e, t) {
3752
3754
  distance: n(e, "distance") ? e.distance : void 0,
3753
3755
  email: n(e, "email") ? e.email : void 0,
3754
3756
  fax: n(e, "fax") ? e.fax : void 0,
3755
- hotelImages: n(e, "hotel_images") ? e.hotel_images === null ? null : e.hotel_images.map(fe) : void 0,
3757
+ hotelImages: n(e, "hotel_images") ? e.hotel_images === null ? null : e.hotel_images.map(de) : void 0,
3756
3758
  hotelReviewRatings: n(e, "hotel_review_ratings") ? e.hotel_review_ratings === null ? null : e.hotel_review_ratings.map(ei) : void 0,
3757
3759
  id: e.id,
3758
3760
  images: n(e, "images") ? Qt(e.images) : void 0,
@@ -3787,7 +3789,7 @@ function ms(e) {
3787
3789
  distance: e.distance,
3788
3790
  email: e.email,
3789
3791
  fax: e.fax,
3790
- hotel_images: e.hotelImages === void 0 ? void 0 : e.hotelImages === null ? null : e.hotelImages.map(he),
3792
+ hotel_images: e.hotelImages === void 0 ? void 0 : e.hotelImages === null ? null : e.hotelImages.map(me),
3791
3793
  hotel_review_ratings: e.hotelReviewRatings === void 0 ? void 0 : e.hotelReviewRatings === null ? null : e.hotelReviewRatings.map(ti),
3792
3794
  id: e.id,
3793
3795
  images: jt(e.images),
@@ -3828,7 +3830,7 @@ function Co(e, t) {
3828
3830
  distance: n(e, "distance") ? e.distance : void 0,
3829
3831
  email: n(e, "email") ? e.email : void 0,
3830
3832
  fax: n(e, "fax") ? e.fax : void 0,
3831
- hotelImages: e.hotel_images.map(fe),
3833
+ hotelImages: e.hotel_images.map(de),
3832
3834
  hotelReviewRatings: n(e, "hotel_review_ratings") ? e.hotel_review_ratings === null ? null : e.hotel_review_ratings.map(ei) : void 0,
3833
3835
  id: e.id,
3834
3836
  images: n(e, "images") ? Qt(e.images) : void 0,
@@ -3845,7 +3847,7 @@ function Co(e, t) {
3845
3847
  timezone: e.timezone,
3846
3848
  venues: n(e, "venues") ? e.venues.map(ii) : void 0,
3847
3849
  website: n(e, "website") ? e.website : void 0,
3848
- hotelRoomOffers: e.hotel_room_offers.map(le),
3850
+ hotelRoomOffers: e.hotel_room_offers.map(fe),
3849
3851
  tags: n(e, "tags") ? e.tags.map(et) : void 0
3850
3852
  };
3851
3853
  }
@@ -3865,7 +3867,7 @@ function Io(e) {
3865
3867
  distance: e.distance,
3866
3868
  email: e.email,
3867
3869
  fax: e.fax,
3868
- hotel_images: e.hotelImages.map(he),
3870
+ hotel_images: e.hotelImages.map(me),
3869
3871
  hotel_review_ratings: e.hotelReviewRatings === void 0 ? void 0 : e.hotelReviewRatings === null ? null : e.hotelReviewRatings.map(ti),
3870
3872
  id: e.id,
3871
3873
  images: jt(e.images),
@@ -3882,7 +3884,7 @@ function Io(e) {
3882
3884
  timezone: e.timezone,
3883
3885
  venues: e.venues === void 0 ? void 0 : e.venues.map(ri),
3884
3886
  website: e.website,
3885
- hotel_room_offers: e.hotelRoomOffers.map(me),
3887
+ hotel_room_offers: e.hotelRoomOffers.map(le),
3886
3888
  tags: e.tags === void 0 ? void 0 : e.tags.map(tt)
3887
3889
  };
3888
3890
  }
@@ -3895,16 +3897,16 @@ function ys(e) {
3895
3897
  }
3896
3898
  function Do(e, t) {
3897
3899
  return e == null ? e : {
3898
- hotelImages: e.hotel_images.map(fe),
3899
- hotelRoomOffers: e.hotel_room_offers.map(le),
3900
+ hotelImages: e.hotel_images.map(de),
3901
+ hotelRoomOffers: e.hotel_room_offers.map(fe),
3900
3902
  tags: n(e, "tags") ? e.tags.map(et) : void 0
3901
3903
  };
3902
3904
  }
3903
3905
  function gs(e) {
3904
3906
  if (e !== void 0)
3905
3907
  return e === null ? null : {
3906
- hotel_images: e.hotelImages.map(he),
3907
- hotel_room_offers: e.hotelRoomOffers.map(me),
3908
+ hotel_images: e.hotelImages.map(me),
3909
+ hotel_room_offers: e.hotelRoomOffers.map(le),
3908
3910
  tags: e.tags === void 0 ? void 0 : e.tags.map(tt)
3909
3911
  };
3910
3912
  }
@@ -3928,7 +3930,7 @@ function vo(e, t) {
3928
3930
  latitude: e.latitude,
3929
3931
  longitude: e.longitude,
3930
3932
  roomCount: e.room_count,
3931
- sourceMarket: ue(e.source_market)
3933
+ sourceMarket: he(e.source_market)
3932
3934
  };
3933
3935
  }
3934
3936
  function Os(e) {
@@ -3950,7 +3952,7 @@ function Os(e) {
3950
3952
  }
3951
3953
  function As(e) {
3952
3954
  let t = !0;
3953
- return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "roomCount" in e, t = t && "sourceMarket" in e, t;
3955
+ return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "roomCount" in e, t;
3954
3956
  }
3955
3957
  function Ss(e) {
3956
3958
  return bo(e);
@@ -3965,11 +3967,10 @@ function bo(e, t) {
3965
3967
  eventMetadata: n(e, "event_metadata") ? pe(e.event_metadata) : void 0,
3966
3968
  latitude: n(e, "latitude") ? e.latitude : void 0,
3967
3969
  longitude: n(e, "longitude") ? e.longitude : void 0,
3968
- roomCount: e.room_count,
3969
- sourceMarket: ue(e.source_market)
3970
+ roomCount: e.room_count
3970
3971
  };
3971
3972
  }
3972
- function No(e) {
3973
+ function Po(e) {
3973
3974
  if (e !== void 0)
3974
3975
  return e === null ? null : {
3975
3976
  address: e.address,
@@ -3980,8 +3981,7 @@ function No(e) {
3980
3981
  event_metadata: ye(e.eventMetadata),
3981
3982
  latitude: e.latitude,
3982
3983
  longitude: e.longitude,
3983
- room_count: e.roomCount,
3984
- source_market: e.sourceMarket
3984
+ room_count: e.roomCount
3985
3985
  };
3986
3986
  }
3987
3987
  const ws = {
@@ -3989,9 +3989,9 @@ const ws = {
3989
3989
  InProgress: "IN_PROGRESS"
3990
3990
  };
3991
3991
  function it(e) {
3992
- return Po(e);
3992
+ return No(e);
3993
3993
  }
3994
- function Po(e, t) {
3994
+ function No(e, t) {
3995
3995
  return e;
3996
3996
  }
3997
3997
  function Rs(e) {
@@ -4112,10 +4112,10 @@ function qo(e, t) {
4112
4112
  children: n(e, "children") ? e.children : void 0,
4113
4113
  currency: re(e.currency),
4114
4114
  hotelId: e.hotel_id,
4115
- hotelRoomOffer: le(e.hotel_room_offer)
4115
+ hotelRoomOffer: fe(e.hotel_room_offer)
4116
4116
  };
4117
4117
  }
4118
- function Ns(e) {
4118
+ function Ps(e) {
4119
4119
  if (e !== void 0)
4120
4120
  return e === null ? null : {
4121
4121
  adult_count: e.adultCount,
@@ -4124,12 +4124,12 @@ function Ns(e) {
4124
4124
  children: e.children,
4125
4125
  currency: e.currency,
4126
4126
  hotel_id: e.hotelId,
4127
- hotel_room_offer: me(e.hotelRoomOffer)
4127
+ hotel_room_offer: le(e.hotelRoomOffer)
4128
4128
  };
4129
4129
  }
4130
- function Ps(e) {
4130
+ function Ns(e) {
4131
4131
  let t = !0;
4132
- return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "hotelId" in e, t = t && "roomCount" in e, t = t && "sourceMarket" in e, t = t && "createdAt" in e, t = t && "id" in e, t;
4132
+ return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "hotelId" in e, t = t && "roomCount" in e, t = t && "createdAt" in e, t = t && "id" in e, t = t && "sourceMarket" in e, t;
4133
4133
  }
4134
4134
  function Tt(e) {
4135
4135
  return Ko(e);
@@ -4143,9 +4143,9 @@ function Ko(e, t) {
4143
4143
  eventMetadata: n(e, "event_metadata") ? pe(e.event_metadata) : void 0,
4144
4144
  hotelId: e.hotel_id,
4145
4145
  roomCount: e.room_count,
4146
- sourceMarket: ue(e.source_market),
4147
4146
  createdAt: e.created_at,
4148
- id: e.id
4147
+ id: e.id,
4148
+ sourceMarket: he(e.source_market)
4149
4149
  };
4150
4150
  }
4151
4151
  function xs(e) {
@@ -4158,14 +4158,14 @@ function xs(e) {
4158
4158
  event_metadata: ye(e.eventMetadata),
4159
4159
  hotel_id: e.hotelId,
4160
4160
  room_count: e.roomCount,
4161
- source_market: e.sourceMarket,
4162
4161
  created_at: e.createdAt,
4163
- id: e.id
4162
+ id: e.id,
4163
+ source_market: e.sourceMarket
4164
4164
  };
4165
4165
  }
4166
4166
  function Es(e) {
4167
4167
  let t = !0;
4168
- return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "hotelId" in e, t = t && "roomCount" in e, t = t && "sourceMarket" in e, t;
4168
+ return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "hotelId" in e, t = t && "roomCount" in e, t;
4169
4169
  }
4170
4170
  function Bs(e) {
4171
4171
  return Yo(e);
@@ -4178,8 +4178,7 @@ function Yo(e, t) {
4178
4178
  children: n(e, "children") ? e.children : void 0,
4179
4179
  eventMetadata: n(e, "event_metadata") ? pe(e.event_metadata) : void 0,
4180
4180
  hotelId: e.hotel_id,
4181
- roomCount: e.room_count,
4182
- sourceMarket: ue(e.source_market)
4181
+ roomCount: e.room_count
4183
4182
  };
4184
4183
  }
4185
4184
  function Ls(e) {
@@ -4191,13 +4190,12 @@ function Ls(e) {
4191
4190
  children: e.children,
4192
4191
  event_metadata: ye(e.eventMetadata),
4193
4192
  hotel_id: e.hotelId,
4194
- room_count: e.roomCount,
4195
- source_market: e.sourceMarket
4193
+ room_count: e.roomCount
4196
4194
  };
4197
4195
  }
4198
4196
  function Hs(e) {
4199
4197
  let t = !0;
4200
- return t = t && "createdAt" in e, t = t && "id" in e, t;
4198
+ return t = t && "createdAt" in e, t = t && "id" in e, t = t && "sourceMarket" in e, t;
4201
4199
  }
4202
4200
  function Fs(e) {
4203
4201
  return zo(e);
@@ -4205,19 +4203,21 @@ function Fs(e) {
4205
4203
  function zo(e, t) {
4206
4204
  return e == null ? e : {
4207
4205
  createdAt: e.created_at,
4208
- id: e.id
4206
+ id: e.id,
4207
+ sourceMarket: he(e.source_market)
4209
4208
  };
4210
4209
  }
4211
4210
  function Js(e) {
4212
4211
  if (e !== void 0)
4213
4212
  return e === null ? null : {
4214
4213
  created_at: e.createdAt,
4215
- id: e.id
4214
+ id: e.id,
4215
+ source_market: e.sourceMarket
4216
4216
  };
4217
4217
  }
4218
4218
  function $s(e) {
4219
4219
  let t = !0;
4220
- return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "hotelId" in e, t = t && "roomCount" in e, t = t && "sourceMarket" in e, t;
4220
+ return t = t && "adultCount" in e, t = t && "checkInDate" in e, t = t && "checkOutDate" in e, t = t && "hotelId" in e, t = t && "roomCount" in e, t;
4221
4221
  }
4222
4222
  function Us(e) {
4223
4223
  return Vo(e);
@@ -4230,8 +4230,7 @@ function Vo(e, t) {
4230
4230
  children: n(e, "children") ? e.children : void 0,
4231
4231
  eventMetadata: n(e, "event_metadata") ? pe(e.event_metadata) : void 0,
4232
4232
  hotelId: e.hotel_id,
4233
- roomCount: e.room_count,
4234
- sourceMarket: ue(e.source_market)
4233
+ roomCount: e.room_count
4235
4234
  };
4236
4235
  }
4237
4236
  function Zo(e) {
@@ -4243,8 +4242,7 @@ function Zo(e) {
4243
4242
  children: e.children,
4244
4243
  event_metadata: ye(e.eventMetadata),
4245
4244
  hotel_id: e.hotelId,
4246
- room_count: e.roomCount,
4247
- source_market: e.sourceMarket
4245
+ room_count: e.roomCount
4248
4246
  };
4249
4247
  }
4250
4248
  function Gs(e) {
@@ -4262,7 +4260,7 @@ function Xo(e, t) {
4262
4260
  children: n(e, "children") ? e.children : void 0,
4263
4261
  currency: re(e.currency),
4264
4262
  hotelId: e.hotel_id,
4265
- hotelRoomOffers: e.hotel_room_offers.map(le),
4263
+ hotelRoomOffers: e.hotel_room_offers.map(fe),
4266
4264
  hotelTimezone: e.hotel_timezone
4267
4265
  };
4268
4266
  }
@@ -4275,7 +4273,7 @@ function Qo(e) {
4275
4273
  children: e.children,
4276
4274
  currency: e.currency,
4277
4275
  hotel_id: e.hotelId,
4278
- hotel_room_offers: e.hotelRoomOffers.map(me),
4276
+ hotel_room_offers: e.hotelRoomOffers.map(le),
4279
4277
  hotel_timezone: e.hotelTimezone
4280
4278
  };
4281
4279
  }
@@ -4462,7 +4460,7 @@ class ya extends Q {
4462
4460
  path: "/v1/booking_policies/{id}".replace("{id}", encodeURIComponent(String(t.id))),
4463
4461
  method: "GET",
4464
4462
  headers: o,
4465
- query: b(i, N.Snake)
4463
+ query: b(i, P.Snake)
4466
4464
  }, r);
4467
4465
  return await new G(u, (c) => Rt(c)).value();
4468
4466
  }
@@ -4485,7 +4483,7 @@ class ya extends Q {
4485
4483
  path: "/v1/booking_policies/{id}/payment_methods".replace("{id}", encodeURIComponent(String(t.id))),
4486
4484
  method: "GET",
4487
4485
  headers: o,
4488
- query: b(i, N.Snake)
4486
+ query: b(i, P.Snake)
4489
4487
  }, r);
4490
4488
  return new G(u, (c) => c.map(qr)).value();
4491
4489
  }
@@ -4507,8 +4505,8 @@ class ya extends Q {
4507
4505
  path: "/v1/booking_policies",
4508
4506
  method: "POST",
4509
4507
  headers: o,
4510
- query: b(i, N.Snake),
4511
- body: b(uo(t.bookingPoliciesCreateApi), N.Snake)
4508
+ query: b(i, P.Snake),
4509
+ body: b(uo(t.bookingPoliciesCreateApi), P.Snake)
4512
4510
  }, r);
4513
4511
  return await new G(u, (c) => Rt(c)).value();
4514
4512
  }
@@ -4532,7 +4530,7 @@ class ga extends Q {
4532
4530
  path: "/v1/bookings/{token}".replace("{token}", encodeURIComponent(String(t.token))),
4533
4531
  method: "DELETE",
4534
4532
  headers: o,
4535
- query: b(i, N.Snake)
4533
+ query: b(i, P.Snake)
4536
4534
  }, r);
4537
4535
  return await new G(u, (c) => ee(c)).value();
4538
4536
  }
@@ -4556,7 +4554,7 @@ class ga extends Q {
4556
4554
  path: "/v1/bookings",
4557
4555
  method: "GET",
4558
4556
  headers: o,
4559
- query: b(i, N.Snake)
4557
+ query: b(i, P.Snake)
4560
4558
  }, r);
4561
4559
  return await new G(u, (c) => ho(c)).value();
4562
4560
  }
@@ -4580,7 +4578,7 @@ class ga extends Q {
4580
4578
  path: "/v1/bookings/{id}".replace("{id}", encodeURIComponent(String(t.id))),
4581
4579
  method: "GET",
4582
4580
  headers: o,
4583
- query: b(i, N.Snake)
4581
+ query: b(i, P.Snake)
4584
4582
  }, r);
4585
4583
  return await new G(u, (c) => ee(c)).value();
4586
4584
  }
@@ -4602,7 +4600,7 @@ class ga extends Q {
4602
4600
  path: "/v1/bookings/{token}/public".replace("{token}", encodeURIComponent(String(t.token))),
4603
4601
  method: "GET",
4604
4602
  headers: o,
4605
- query: b(i, N.Snake)
4603
+ query: b(i, P.Snake)
4606
4604
  }, r);
4607
4605
  return await new G(u, (c) => ee(c)).value();
4608
4606
  }
@@ -4624,8 +4622,8 @@ class ga extends Q {
4624
4622
  path: "/v1/bookings",
4625
4623
  method: "POST",
4626
4624
  headers: o,
4627
- query: b(i, N.Snake),
4628
- body: b(ao(t.bookingCreateApi), N.Snake)
4625
+ query: b(i, P.Snake),
4626
+ body: b(ao(t.bookingCreateApi), P.Snake)
4629
4627
  }, r);
4630
4628
  return await new G(u, (c) => ee(c)).value();
4631
4629
  }
@@ -4651,7 +4649,7 @@ class ga extends Q {
4651
4649
  path: "/v1/bookings/{id}/coupons/{coupon_id}/charge".replace("{coupon_id}", encodeURIComponent(String(t.couponId))).replace("{id}", encodeURIComponent(String(t.id))),
4652
4650
  method: "POST",
4653
4651
  headers: o,
4654
- query: b(i, N.Snake)
4652
+ query: b(i, P.Snake)
4655
4653
  }, r);
4656
4654
  return await new G(u, (c) => ee(c)).value();
4657
4655
  }
@@ -4675,7 +4673,7 @@ class ga extends Q {
4675
4673
  path: "/v1/bookings/{id}/pay-later".replace("{id}", encodeURIComponent(String(t.id))),
4676
4674
  method: "POST",
4677
4675
  headers: o,
4678
- query: b(i, N.Snake)
4676
+ query: b(i, P.Snake)
4679
4677
  }, r);
4680
4678
  return await new G(u, (c) => ee(c)).value();
4681
4679
  }
@@ -4699,7 +4697,7 @@ class ga extends Q {
4699
4697
  path: "/v1/bookings/{id}/pay-later/confirm".replace("{id}", encodeURIComponent(String(t.id))),
4700
4698
  method: "POST",
4701
4699
  headers: o,
4702
- query: b(i, N.Snake)
4700
+ query: b(i, P.Snake)
4703
4701
  }, r);
4704
4702
  return await new G(u, (c) => ee(c)).value();
4705
4703
  }
@@ -4723,7 +4721,7 @@ class ga extends Q {
4723
4721
  path: "/v1/bookings/{id}/confirm".replace("{id}", encodeURIComponent(String(t.id))),
4724
4722
  method: "POST",
4725
4723
  headers: o,
4726
- query: b(i, N.Snake)
4724
+ query: b(i, P.Snake)
4727
4725
  }, r);
4728
4726
  return await new G(u, (c) => ee(c)).value();
4729
4727
  }
@@ -4747,8 +4745,8 @@ class ga extends Q {
4747
4745
  path: "/v1/bookings/{id}/payment_methods".replace("{id}", encodeURIComponent(String(t.id))),
4748
4746
  method: "PUT",
4749
4747
  headers: o,
4750
- query: b(i, N.Snake),
4751
- body: b(pa(t.paymentMethodUpdatePayloadApi), N.Snake)
4748
+ query: b(i, P.Snake),
4749
+ body: b(pa(t.paymentMethodUpdatePayloadApi), P.Snake)
4752
4750
  }, r);
4753
4751
  return await new G(u, (c) => ee(c)).value();
4754
4752
  }
@@ -4784,9 +4782,9 @@ class _a extends Q {
4784
4782
  path: "/v1/hotels/{id}/images".replace("{id}", encodeURIComponent(String(t.id))),
4785
4783
  method: "GET",
4786
4784
  headers: o,
4787
- query: b(i, N.Snake)
4785
+ query: b(i, P.Snake)
4788
4786
  }, r);
4789
- return new G(u, (c) => c.map(fe)).value();
4787
+ return new G(u, (c) => c.map(de)).value();
4790
4788
  }
4791
4789
  /**
4792
4790
  * Returns a list of images for an Hotel Id with their content localize into the requested **lang**.
@@ -4810,7 +4808,7 @@ class Oa extends Q {
4810
4808
  path: "/v1/hotel_offer_requests/{id}".replace("{id}", encodeURIComponent(String(t.id))),
4811
4809
  method: "GET",
4812
4810
  headers: o,
4813
- query: b(i, N.Snake)
4811
+ query: b(i, P.Snake)
4814
4812
  }, r);
4815
4813
  return await new G(u, (c) => kt(c)).value();
4816
4814
  }
@@ -4832,8 +4830,8 @@ class Oa extends Q {
4832
4830
  path: "/v1/hotel_offer_requests",
4833
4831
  method: "POST",
4834
4832
  headers: o,
4835
- query: b(i, N.Snake),
4836
- body: b(No(t.hotelOfferRequestCreateApi), N.Snake)
4833
+ query: b(i, P.Snake),
4834
+ body: b(Po(t.hotelOfferRequestCreateApi), P.Snake)
4837
4835
  }, r);
4838
4836
  return await new G(u, (c) => kt(c)).value();
4839
4837
  }
@@ -4863,7 +4861,7 @@ class Aa extends Q {
4863
4861
  path: "/v1/hotel_offers",
4864
4862
  method: "GET",
4865
4863
  headers: o,
4866
- query: b(i, N.Snake)
4864
+ query: b(i, P.Snake)
4867
4865
  }, r);
4868
4866
  return await new G(u, (c) => Jo(c)).value();
4869
4867
  }
@@ -4872,7 +4870,7 @@ class Aa extends Q {
4872
4870
  * ⚛️ Retrieve Hotel Offers
4873
4871
  */
4874
4872
  async list(t, r, i) {
4875
- return await Nt(
4873
+ return await Pt(
4876
4874
  () => this.listRaw(t, i),
4877
4875
  { type: ze.HOTEL_SEARCH_POLLING, minCallCount: i?.minCallCount, maxCallCount: i?.maxCallCount },
4878
4876
  r
@@ -4903,9 +4901,9 @@ class Sa extends Q {
4903
4901
  path: "/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}", encodeURIComponent(String(t.id))).replace("{token}", encodeURIComponent(String(t.token))),
4904
4902
  method: "DELETE",
4905
4903
  headers: o,
4906
- query: b(i, N.Snake)
4904
+ query: b(i, P.Snake)
4907
4905
  }, r);
4908
- return new Nr(u);
4906
+ return new Pr(u);
4909
4907
  }
4910
4908
  /**
4911
4909
  * Delete a hotel rooming list guest from a booking based on a valid token. This endpoint is public and does not require a secret API key.
@@ -4929,8 +4927,8 @@ class Sa extends Q {
4929
4927
  path: "/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}", encodeURIComponent(String(t.id))).replace("{token}", encodeURIComponent(String(t.token))),
4930
4928
  method: "PATCH",
4931
4929
  headers: o,
4932
- query: b(i, N.Snake),
4933
- body: b(la(t.hotelRoomingListGuestsUpdateApi), N.Snake)
4930
+ query: b(i, P.Snake),
4931
+ body: b(la(t.hotelRoomingListGuestsUpdateApi), P.Snake)
4934
4932
  }, r);
4935
4933
  return await new G(u, (c) => Ye(c)).value();
4936
4934
  }
@@ -4954,8 +4952,8 @@ class Sa extends Q {
4954
4952
  path: "/v1/hotel_rooming_list_guests/{token}".replace("{token}", encodeURIComponent(String(t.token))),
4955
4953
  method: "POST",
4956
4954
  headers: o,
4957
- query: b(i, N.Snake),
4958
- body: b(da(t.hotelRoomingListGuestsCreateApi), N.Snake)
4955
+ query: b(i, P.Snake),
4956
+ body: b(da(t.hotelRoomingListGuestsCreateApi), P.Snake)
4959
4957
  }, r);
4960
4958
  return await new G(u, (c) => Ye(c)).value();
4961
4959
  }
@@ -4981,7 +4979,7 @@ class wa extends Q {
4981
4979
  path: "/v1/hotel_rooming_lists/{token}".replace("{token}", encodeURIComponent(String(t.token))),
4982
4980
  method: "GET",
4983
4981
  headers: o,
4984
- query: b(i, N.Snake)
4982
+ query: b(i, P.Snake)
4985
4983
  }, r);
4986
4984
  return new G(u, (c) => c.map(Kt)).value();
4987
4985
  }
@@ -5009,9 +5007,9 @@ class Ra extends Q {
5009
5007
  path: "/v1/hotel_room_offers/{id}/images".replace("{id}", encodeURIComponent(String(t.id))),
5010
5008
  method: "GET",
5011
5009
  headers: o,
5012
- query: b(i, N.Snake)
5010
+ query: b(i, P.Snake)
5013
5011
  }, r);
5014
- return await new G(u, (c) => b(c, N.Camel)).value();
5012
+ return await new G(u, (c) => b(c, P.Camel)).value();
5015
5013
  }
5016
5014
  /**
5017
5015
  * Returns a list of images for an Hotel Room OfferId with their content localize into the requested **lang**.
@@ -5035,7 +5033,7 @@ class ka extends Q {
5035
5033
  path: "/v1/hotel_room_offer_requests/{id}".replace("{id}", encodeURIComponent(String(t.id))),
5036
5034
  method: "GET",
5037
5035
  headers: o,
5038
- query: b(i, N.Snake)
5036
+ query: b(i, P.Snake)
5039
5037
  }, r);
5040
5038
  return await new G(u, (c) => Tt(c)).value();
5041
5039
  }
@@ -5057,8 +5055,8 @@ class ka extends Q {
5057
5055
  path: "/v1/hotel_room_offer_requests",
5058
5056
  method: "POST",
5059
5057
  headers: o,
5060
- query: b(i, N.Snake),
5061
- body: b(Zo(t.hotelRoomOfferRequestCreateApi), N.Snake)
5058
+ query: b(i, P.Snake),
5059
+ body: b(Zo(t.hotelRoomOfferRequestCreateApi), P.Snake)
5062
5060
  }, r);
5063
5061
  return await new G(u, (c) => Tt(c)).value();
5064
5062
  }
@@ -5088,7 +5086,7 @@ class Ta extends Q {
5088
5086
  path: "/v1/hotel_room_offers",
5089
5087
  method: "GET",
5090
5088
  headers: o,
5091
- query: b(i, N.Snake)
5089
+ query: b(i, P.Snake)
5092
5090
  }, r);
5093
5091
  return await new G(u, (c) => ia(c)).value();
5094
5092
  }
@@ -5097,7 +5095,7 @@ class Ta extends Q {
5097
5095
  * ⚛️ Retrieve Hotel Room Offers
5098
5096
  */
5099
5097
  async list(t, r, i) {
5100
- return await Nt(
5098
+ return await Pt(
5101
5099
  () => this.listRaw(t, i),
5102
5100
  { type: ze.HOTEL_ROOM_OFFERS, minCallCount: i?.minCallCount, maxCallCount: i?.maxCallCount },
5103
5101
  r
@@ -5114,8 +5112,8 @@ class Ta extends Q {
5114
5112
  path: "/v1/hotel_room_offers",
5115
5113
  method: "POST",
5116
5114
  headers: o,
5117
- query: b(i, N.Snake),
5118
- body: b(sa(t.hotelRoomOffersCreateApi), N.Snake)
5115
+ query: b(i, P.Snake),
5116
+ body: b(sa(t.hotelRoomOffersCreateApi), P.Snake)
5119
5117
  }, r);
5120
5118
  return await new G(u, (c) => Go(c)).value();
5121
5119
  }
@@ -5143,7 +5141,7 @@ class Ma extends Q {
5143
5141
  path: "/v1/hotels/{id}".replace("{id}", encodeURIComponent(String(t.id))),
5144
5142
  method: "GET",
5145
5143
  headers: o,
5146
- query: b(i, N.Snake)
5144
+ query: b(i, P.Snake)
5147
5145
  }, r);
5148
5146
  return await new G(u, (c) => ko(c)).value();
5149
5147
  }
@@ -5228,7 +5226,7 @@ class uu {
5228
5226
  const i = this.config.apiEnvironment;
5229
5227
  let o = this.config.apiBaseUrl ?? oi[i];
5230
5228
  i === se.Local && process.env.BOOKING_API_BASE_URL && (o = process.env.BOOKING_API_BASE_URL);
5231
- const u = new Pt({
5229
+ const u = new Nt({
5232
5230
  basePath: o,
5233
5231
  fetchApi: si,
5234
5232
  headers: r,
@@ -5337,11 +5335,11 @@ export {
5337
5335
  is as BookingsApiResponseToJSON,
5338
5336
  ou as BookingsSortByEnum,
5339
5337
  au as BookingsSortByOrderEnum,
5340
- Na as COLLECTION_FORMATS,
5338
+ Pa as COLLECTION_FORMATS,
5341
5339
  Xe as CancellationPolicyApiFromJSON,
5342
5340
  Vr as CancellationPolicyApiFromJSONTyped,
5343
5341
  Qe as CancellationPolicyApiToJSON,
5344
- Pt as Configuration,
5342
+ Nt as Configuration,
5345
5343
  $t as ContactPersonApiFromJSON,
5346
5344
  en as ContactPersonApiFromJSONTyped,
5347
5345
  nc as ContactPersonApiSalutationEnum,
@@ -5373,9 +5371,9 @@ export {
5373
5371
  _o as HotelApiImagesFromJSONTyped,
5374
5372
  jt as HotelApiImagesToJSON,
5375
5373
  ms as HotelApiToJSON,
5376
- fe as HotelImageApiFromJSON,
5374
+ de as HotelImageApiFromJSON,
5377
5375
  an as HotelImageApiFromJSONTyped,
5378
- he as HotelImageApiToJSON,
5376
+ me as HotelImageApiToJSON,
5379
5377
  _a as HotelImages,
5380
5378
  ys as HotelOfferApiAllOfFromJSON,
5381
5379
  Do as HotelOfferApiAllOfFromJSONTyped,
@@ -5388,7 +5386,7 @@ export {
5388
5386
  Os as HotelOfferRequestApiResponseToJSON,
5389
5387
  Ss as HotelOfferRequestCreateApiFromJSON,
5390
5388
  bo as HotelOfferRequestCreateApiFromJSONTyped,
5391
- No as HotelOfferRequestCreateApiToJSON,
5389
+ Po as HotelOfferRequestCreateApiToJSON,
5392
5390
  Oa as HotelOfferRequests,
5393
5391
  Aa as HotelOffers,
5394
5392
  Jo as HotelOffersApiResponseFromJSON,
@@ -5412,14 +5410,14 @@ export {
5412
5410
  sn as HotelRoomApiFromJSONTyped,
5413
5411
  un as HotelRoomApiToJSON,
5414
5412
  gc as HotelRoomOfferApiBreakfastOptionEnum,
5415
- le as HotelRoomOfferApiFromJSON,
5413
+ fe as HotelRoomOfferApiFromJSON,
5416
5414
  mn as HotelRoomOfferApiFromJSONTyped,
5417
5415
  _c as HotelRoomOfferApiPackageTypeEnum,
5418
5416
  Go as HotelRoomOfferApiResponseFromJSON,
5419
5417
  qo as HotelRoomOfferApiResponseFromJSONTyped,
5420
- Ns as HotelRoomOfferApiResponseToJSON,
5418
+ Ps as HotelRoomOfferApiResponseToJSON,
5421
5419
  Oc as HotelRoomOfferApiStayTaxesInfoEnum,
5422
- me as HotelRoomOfferApiToJSON,
5420
+ le as HotelRoomOfferApiToJSON,
5423
5421
  Ac as HotelRoomOfferApiTypeEnum,
5424
5422
  Ra as HotelRoomOfferImages,
5425
5423
  Fs as HotelRoomOfferRequestApiResponseAllOf1FromJSON,
@@ -5486,13 +5484,13 @@ export {
5486
5484
  mo as MetaResponseApiToJSON,
5487
5485
  qn as PaymentMethodApiFromJSON,
5488
5486
  Kn as PaymentMethodApiFromJSONTyped,
5489
- Nc as PaymentMethodApiOneOf1FromJSON,
5487
+ Pc as PaymentMethodApiOneOf1FromJSON,
5490
5488
  zt as PaymentMethodApiOneOf1FromJSONTyped,
5491
5489
  bc as PaymentMethodApiOneOf1NameEnum,
5492
5490
  Dn as PaymentMethodApiOneOf1PayloadFromJSON,
5493
5491
  vn as PaymentMethodApiOneOf1PayloadFromJSONTyped,
5494
5492
  bn as PaymentMethodApiOneOf1PayloadToJSON,
5495
- Pn as PaymentMethodApiOneOf1ToJSON,
5493
+ Nn as PaymentMethodApiOneOf1ToJSON,
5496
5494
  Ec as PaymentMethodApiOneOf2FromJSON,
5497
5495
  Vt as PaymentMethodApiOneOf2FromJSONTyped,
5498
5496
  xc as PaymentMethodApiOneOf2NameEnum,
@@ -5528,12 +5526,12 @@ export {
5528
5526
  pa as PaymentMethodUpdatePayloadApiToJSON,
5529
5527
  ws as PollerStatus,
5530
5528
  it as PollerStatusFromJSON,
5531
- Po as PollerStatusFromJSONTyped,
5529
+ No as PollerStatusFromJSONTyped,
5532
5530
  Rs as PollerStatusToJSON,
5533
5531
  q as RequiredError,
5534
5532
  br as ResponseError,
5535
5533
  fc as SourceMarket,
5536
- ue as SourceMarketFromJSON,
5534
+ he as SourceMarketFromJSON,
5537
5535
  dn as SourceMarketFromJSONTyped,
5538
5536
  lc as SourceMarketToJSON,
5539
5537
  et as TagApiFromJSON,
@@ -5544,7 +5542,7 @@ export {
5544
5542
  hc as TaxApiTaxFrequencyEnum,
5545
5543
  pc as TaxApiTaxModeEnum,
5546
5544
  qt as TaxApiToJSON,
5547
- Nr as TextApiResponse,
5545
+ Pr as TextApiResponse,
5548
5546
  ii as TravelTimesApiFromJSON,
5549
5547
  Ro as TravelTimesApiFromJSONTyped,
5550
5548
  ri as TravelTimesApiToJSON,
@@ -5554,7 +5552,7 @@ export {
5554
5552
  Ea as VoidApiResponse,
5555
5553
  xa as canConsumeForm,
5556
5554
  n as exists,
5557
- Pr as instanceOfAllowedPaymentMethodApiOneOf,
5555
+ Nr as instanceOfAllowedPaymentMethodApiOneOf,
5558
5556
  Er as instanceOfAllowedPaymentMethodApiOneOf1,
5559
5557
  Lr as instanceOfAllowedPaymentMethodApiOneOf2,
5560
5558
  Ur as instanceOfAllowedPaymentMethodApiOneOf3,
@@ -5589,7 +5587,7 @@ export {
5589
5587
  dc as instanceOfHotelRoomApi,
5590
5588
  Sc as instanceOfHotelRoomOfferApi,
5591
5589
  bs as instanceOfHotelRoomOfferApiResponse,
5592
- Ps as instanceOfHotelRoomOfferRequestApiResponse,
5590
+ Ns as instanceOfHotelRoomOfferRequestApiResponse,
5593
5591
  Es as instanceOfHotelRoomOfferRequestApiResponseAllOf,
5594
5592
  Hs as instanceOfHotelRoomOfferRequestApiResponseAllOf1,
5595
5593
  $s as instanceOfHotelRoomOfferRequestCreateApi,
@@ -5607,10 +5605,10 @@ export {
5607
5605
  eu as instanceOfMetaPollingResponseApiAllOf,
5608
5606
  es as instanceOfMetaResponseApi,
5609
5607
  Cn as instanceOfPaymentMethodApiOneOf,
5610
- Nn as instanceOfPaymentMethodApiOneOf1,
5608
+ Pn as instanceOfPaymentMethodApiOneOf1,
5611
5609
  vc as instanceOfPaymentMethodApiOneOf1Payload,
5612
5610
  Ln as instanceOfPaymentMethodApiOneOf2,
5613
- Pc as instanceOfPaymentMethodApiOneOf2Payload,
5611
+ Nc as instanceOfPaymentMethodApiOneOf2Payload,
5614
5612
  Un as instanceOfPaymentMethodApiOneOf3,
5615
5613
  Lc as instanceOfPaymentMethodApiOneOf3Payload,
5616
5614
  Cc as instanceOfPaymentMethodApiOneOfPayload,
@@ -5621,7 +5619,7 @@ export {
5621
5619
  yc as instanceOfTaxApi,
5622
5620
  fs as instanceOfTravelTimesApi,
5623
5621
  ds as instanceOfTravelTimesApiTravelTimes,
5624
- Pa as mapValues,
5622
+ Na as mapValues,
5625
5623
  xt as querystring,
5626
5624
  Ca as v1ApiClient
5627
5625
  };