@revolugo/elements 6.7.2 → 6.7.3-beta.1

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 (112) hide show
  1. package/dist/index.es.min.js +2618 -2553
  2. package/dist/index.es.min.js.map +1 -1
  3. package/dist/index.min.js +6 -6
  4. package/dist/index.min.js.map +1 -1
  5. package/dist/revolugo._basefor.CodrYJxd.min.js +15 -0
  6. package/dist/{revolugo.banktransferdetails.arP5j__o.min.js → revolugo.banktransferdetails.ES8H8TdX.min.js} +24 -23
  7. package/dist/{revolugo.bdaterangepicker.Ba26rd5I.min.js → revolugo.bdaterangepicker.FofU3mwm.min.js} +121 -6
  8. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.Er0BOzhm.min.js +61 -0
  9. package/dist/{revolugo.bhoteloffersfilterbar.CwCd9oox.min.js → revolugo.bhoteloffersfilterbar.o301OMGn.min.js} +173 -169
  10. package/dist/{revolugo.bpricesummaryskeleton.DH-Kuge7.min.js → revolugo.bhotelroomsdetails.V_1vhP4H.min.js} +169 -241
  11. package/dist/{revolugo.bhotelsearchbar.DaX-iQTB.min.js → revolugo.bhotelsearchbar.B9IrrAQm.min.js} +77 -76
  12. package/dist/{revolugo.bimagecarousel.CgrOcU1C.min.js → revolugo.bimagecarousel.BbOESSh5.min.js} +36 -36
  13. package/dist/{revolugo.bookingdetailssidebar.CXHn5MDn.min.js → revolugo.bookingdetailssidebar.DJCyHj6W.min.js} +184 -202
  14. package/dist/revolugo.bookingdetailssidebar.YExbkGzc.min.js +24 -0
  15. package/dist/{revolugo.bookingmanager.BIFir20P.min.js → revolugo.bookingmanager.dEjhzT2A.min.js} +51 -48
  16. package/dist/revolugo.bpricesummaryskeleton.t8bYETzP.min.js +79 -0
  17. package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.ACZ7Rna9.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CmgO29ZN.min.js} +28 -27
  18. package/dist/{revolugo.btag.0ugEj-2W.min.js → revolugo.btag.HV2MY7n9.min.js} +70 -69
  19. package/dist/{revolugo.cancellationpoliciesbadge.BakDGPnx.min.js → revolugo.cancellationpoliciesbadge.BlxYDvQM.min.js} +51 -70
  20. package/dist/revolugo.cancellationpoliciesbadge.FhiHeLu9.min.js +24 -0
  21. package/dist/{revolugo.cancellationpolicieslist.C_FFhkUD.min.js → revolugo.cancellationpolicieslist.BMKPdB9z.min.js} +28 -47
  22. package/dist/revolugo.cancellationpolicieslist.C4GBKaw8.min.js +24 -0
  23. package/dist/revolugo.case-transformers.Ddd0DZeI.min.js +123 -0
  24. package/dist/revolugo.common.D-l8b0V5.min.js +10 -0
  25. package/dist/revolugo.creditcardform.CJnUNQmx.min.js +24 -0
  26. package/dist/{revolugo.creditcardform.B5bfYD6z.min.js → revolugo.creditcardform.KPRkwSVZ.min.js} +650 -901
  27. package/dist/revolugo.creditcardpayment.DGWBaIYP.min.js +24 -0
  28. package/dist/{revolugo.creditcardpayment.DzD24_nR.min.js → revolugo.creditcardpayment.gPcfsEC5.min.js} +138 -154
  29. package/dist/{revolugo.currencypicker.LtjCHf9r.min.js → revolugo.currencypicker.CEQB4l-T.min.js} +19 -18
  30. package/dist/revolugo.currencypickerbtn.D3t6zODt.min.js +24 -0
  31. package/dist/revolugo.currencypickerbtn.drvXcNoD.min.js +163 -0
  32. package/dist/revolugo.dialog-attach.CEqY6W2u.min.js +28 -0
  33. package/dist/revolugo.dialog-transition.DjCJstCa.min.js +114 -0
  34. package/dist/revolugo.fastbookingflow.rfdQQDxx.min.js +34 -0
  35. package/dist/revolugo.forwardrefs.-bfQnFea.min.js +71 -0
  36. package/dist/{revolugo.fullbookingflow.CkMmSkIU.min.js → revolugo.fullbookingflow.rmAHR_IC.min.js} +77 -75
  37. package/dist/{revolugo.hoteldescriptionview.Cp5ZgFcV.min.js → revolugo.hoteldescriptionview.BU8Q37ZC.min.js} +363 -379
  38. package/dist/revolugo.hoteldescriptionview.Ctcmbxkx.min.js +24 -0
  39. package/dist/{revolugo.hotelofferitemlayout.Bhhi0sg3.min.js → revolugo.hotelofferitemlayout.yfMiZs8-.min.js} +9 -9
  40. package/dist/revolugo.hotelofferlist.Dt7FXhVI.min.js +24 -0
  41. package/dist/{revolugo.hotelofferlist.BTgDe-tp.min.js → revolugo.hotelofferlist.Il2LjMCL.min.js} +1005 -1053
  42. package/dist/{revolugo.hotelofferrequestcreator.B17qgpU2.min.js → revolugo.hotelofferrequestcreator.BpgknOPE.min.js} +7 -7
  43. package/dist/revolugo.hoteloffersearchmenu.MzJ49afx.min.js +46 -0
  44. package/dist/revolugo.hoteloffersmap.BMFBMh12.min.js +24 -0
  45. package/dist/revolugo.hoteloffersmap.CObm7hoD.min.js +8394 -0
  46. package/dist/{revolugo.hoteloffersview.D1-F8ONF.min.js → revolugo.hoteloffersview.Bpu61_EH.min.js} +161 -176
  47. package/dist/revolugo.hoteloffersview.Cn-wbBGn.min.js +19 -0
  48. package/dist/revolugo.hotelroomofferlist.Cvw5drkG.min.js +24 -0
  49. package/dist/{revolugo.hotelroomofferlist.BpTAFyMO.min.js → revolugo.hotelroomofferlist.DyMNPEmJ.min.js} +468 -485
  50. package/dist/revolugo.hotelroomofferrequestcreator.props.UhEzU-Eo.min.js +171 -0
  51. package/dist/{revolugo.hotelroomoffersbookingflow.BNm52u6c.min.js → revolugo.hotelroomoffersbookingflow.BhZHfo79.min.js} +40 -39
  52. package/dist/{revolugo.hotelroomoffersearchmenu.Bysb279d.min.js → revolugo.hotelroomoffersearchmenu.BDYUJlri.min.js} +29 -49
  53. package/dist/revolugo.hotelroomoffersearchmenu.D7QyRteS.min.js +25 -0
  54. package/dist/revolugo.hotelroomoffersview.BpiOqbeg.min.js +24 -0
  55. package/dist/{revolugo.hotelroomoffersview.BVbajWFv.min.js → revolugo.hotelroomoffersview.DI54bcEi.min.js} +71 -91
  56. package/dist/revolugo.index.CHVqFiWo.min.js +1037 -0
  57. package/dist/{revolugo.index.BX4WZjgg.min.js → revolugo.index.DlCArqY2.min.js} +6 -6
  58. package/dist/{revolugo.rounded.u4maswiM.min.js → revolugo.index.wc.U-Ds0Ud7.min.js} +7732 -7859
  59. package/dist/{revolugo.langpicker.BTmjf3Hy.min.js → revolugo.langpicker.Bfd4GXeG.min.js} +15 -15
  60. package/dist/{revolugo.langpickerbtn.DthGIqyz.min.js → revolugo.langpickerbtn.Bx3onVJO.min.js} +53 -71
  61. package/dist/revolugo.langpickerbtn.Dj9aqzUa.min.js +24 -0
  62. package/dist/revolugo.min.js +1 -1
  63. package/dist/{revolugo.position.CEExVEE8.min.js → revolugo.position.DG21FbXr.min.js} +45 -44
  64. package/dist/revolugo.prebookform.DZiQ5M3q.min.js +24 -0
  65. package/dist/{revolugo.prebookform.By-V1bl9.min.js → revolugo.prebookform.hUDmprdU.min.js} +94 -114
  66. package/dist/revolugo.roominglisteditor.CqHUrQ4g.min.js +24 -0
  67. package/dist/{revolugo.roominglisteditor.BTk6Ieu-.min.js → revolugo.roominglisteditor.meQaCKaE.min.js} +82 -101
  68. package/dist/revolugo.rounded.CDKzGlV8.min.js +68 -0
  69. package/dist/revolugo.ssrboot.me6E0cRY.min.js +18 -0
  70. package/dist/{revolugo.storybooktoolbar.CFuRMVxX.min.js → revolugo.storybooktoolbar.CmOqTdGz.min.js} +110 -108
  71. package/dist/revolugo.termsandconditions.CSbVW2DS.min.js +23 -0
  72. package/dist/{revolugo.termsandconditions.B1itHoql.min.js → revolugo.termsandconditions.CcWZ66ul.min.js} +90 -108
  73. package/dist/revolugo.use-breakpoint-service.DzP23XZi.min.js +106 -0
  74. package/dist/{revolugo.vautocomplete.bQzOaYWm.min.js → revolugo.vautocomplete.1eBdqerb.min.js} +133 -132
  75. package/dist/{revolugo.vbadge.Cm6IZIUx.min.js → revolugo.vbadge.3HWnFhqm.min.js} +33 -32
  76. package/dist/{revolugo.vbtn.D3Vm2ZlS.min.js → revolugo.vbtn.D5oMY_p5.min.js} +82 -81
  77. package/dist/{revolugo.vcard.D7M0YovD.min.js → revolugo.vcard.CLsvQwyI.min.js} +50 -49
  78. package/dist/{revolugo.vcheckboxbtn.DxJuZdU5.min.js → revolugo.vcheckboxbtn.BkLi1Y04.min.js} +72 -71
  79. package/dist/{revolugo.vdialog.B3aAN6LZ.min.js → revolugo.vdialog.8XLsV5dc.min.js} +26 -25
  80. package/dist/revolugo.vdivider.jj-AdUyd.min.js +77 -0
  81. package/dist/{revolugo.vexpansionpanels.Cio1oHcQ.min.js → revolugo.vexpansionpanels.Cc3RP1rh.min.js} +42 -41
  82. package/dist/{revolugo.vform.1YZ7pPUG.min.js → revolugo.vform.Db-PE5B0.min.js} +15 -15
  83. package/dist/{revolugo.vinput.8rjbvXX2.min.js → revolugo.vinput.86caOzy1.min.js} +91 -91
  84. package/dist/{revolugo.vlabel.DYs_A1Ji.min.js → revolugo.vlabel.CVuILaZ8.min.js} +5 -5
  85. package/dist/{revolugo.vlist.DCvg08Wu.min.js → revolugo.vlist.Dyah7BiI.min.js} +90 -88
  86. package/dist/revolugo.vmenu.CXAeU_qi.min.js +152 -0
  87. package/dist/{revolugo.vselect.C8g3avwV.min.js → revolugo.vselect.BsnagCGW.min.js} +133 -132
  88. package/dist/revolugo.vsheet.BG1meZTM.min.js +72 -0
  89. package/dist/{revolugo.vskeletonloader.lUzEuSvU.min.js → revolugo.vskeletonloader.BORzy4_m.min.js} +14 -13
  90. package/dist/{revolugo.vsnackbar.vZBrE3Q7.min.js → revolugo.vsnackbar.CxMxY-0P.min.js} +46 -44
  91. package/dist/revolugo.vspacer.BiUgatwg.min.js +7 -0
  92. package/dist/{revolugo.vtextarea.DQrxw1ua.min.js → revolugo.vtextarea.BkNy6mLm.min.js} +48 -39
  93. package/dist/{revolugo.vtextfield.DPMmhQ6a.min.js → revolugo.vtextfield.DlfEz4JN.min.js} +109 -107
  94. package/dist/{revolugo.vtoolbar.Bzh8TXIO.min.js → revolugo.vtoolbar.2imDjYnr.min.js} +21 -20
  95. package/dist/{revolugo.vtooltip.DMjpxOcA.min.js → revolugo.vtooltip.vIYDBJ4s.min.js} +118 -109
  96. package/dist/{revolugo.vwindowitem.yFpV6WTQ.min.js → revolugo.vwindowitem.CIEwtCBy.min.js} +41 -41
  97. package/dist/revolugo.watch-list.C39H03pK.min.js +16 -0
  98. package/dist/{revolugo.webcomponentwrapper.CfhsVy34.min.js → revolugo.webcomponentwrapper.BzrBNp7K.min.js} +484 -541
  99. package/package.json +5 -5
  100. package/dist/revolugo.currencypickerbtn.D02DHRmR.min.js +0 -181
  101. package/dist/revolugo.dialog-transition.DyO6FFbo.min.js +0 -216
  102. package/dist/revolugo.hoteloffersearchmenu.CQyxBtRu.min.js +0 -46
  103. package/dist/revolugo.hoteloffersmap.Bp9l3_9T.min.js +0 -8409
  104. package/dist/revolugo.hotelroomofferrequestcreator.props.Dj5-GfCx.min.js +0 -317
  105. package/dist/revolugo.index.Ds7GPsGI.min.js +0 -1127
  106. package/dist/revolugo.ssrboot.DrkbeeFe.min.js +0 -91
  107. package/dist/revolugo.vsheet.BeVVp2B7.min.js +0 -71
  108. package/dist/revolugo.vspacer.B9TRu3hb.min.js +0 -14
  109. /package/dist/css/{revolugo.bpricesummaryskeleton.ZHH0C1yQ.css → revolugo.bhotelroomsdetails.ZHH0C1yQ.css} +0 -0
  110. /package/dist/css/{revolugo.rounded.XNPQF1ia.css → revolugo.index.XNPQF1ia.css} +0 -0
  111. /package/dist/css/{revolugo.ssrboot.CTbbZwnv.css → revolugo.vdivider.CTbbZwnv.css} +0 -0
  112. /package/dist/css/{revolugo.hotelroomofferrequestcreator.DvKwEp1j.css → revolugo.vmenu.DvKwEp1j.css} +0 -0
@@ -1,14 +1,17 @@
1
- import { bA as Y, bB as K, bC as Z, bD as J, bE as Q, j as U, G as X, bx as m, aq as M, bF as L, n as p, K as F, w as o, c as a, M as u, ao as b, O as d, C as x, q as f, s as y, x as N, y as q, R as ee, Q as D, aT as te, v as l } from "./revolugo.rounded.u4maswiM.min.js";
2
- import { x as oe, B as ae, z as ie, _ as O, r as h, q as k, V as ne, W as re } from "./revolugo.webcomponentwrapper.CfhsVy34.min.js";
3
- import { B as se } from "./revolugo.bookingdetailssidebar.CXHn5MDn.min.js";
4
- import { C as de, V as le } from "./revolugo.creditcardform.B5bfYD6z.min.js";
5
- import { p as ue } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.ACZ7Rna9.min.js";
6
- import { v as ce, w as me, V as v, c as pe } from "./revolugo.index.Ds7GPsGI.min.js";
7
- import { V as A, a as P, b as be } from "./revolugo.vcard.D7M0YovD.min.js";
8
- import { V as w, a as ge } from "./revolugo.vbtn.D3Vm2ZlS.min.js";
9
- import { V as he } from "./revolugo.vsnackbar.vZBrE3Q7.min.js";
10
- import { V } from "./revolugo.vtoolbar.Bzh8TXIO.min.js";
11
- function W(e) {
1
+ import { aW as $, aX as G, aY as j, aZ as Y, a_ as H, d as Z, u as K, a$ as c, E as B, b0 as M, c as p, i as L, w as o, a, e as l, f as b, t as s, y as J, g as y, r as v, n as W, h as X, x as Q, F as V, aq as x, o as u } from "./revolugo.index.wc.U-Ds0Ud7.min.js";
2
+ import { _ as ee, f as te } from "./revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.Er0BOzhm.min.js";
3
+ import { B as oe } from "./revolugo.bookingdetailssidebar.DJCyHj6W.min.js";
4
+ import { C as ae, V as ie } from "./revolugo.creditcardform.KPRkwSVZ.min.js";
5
+ import { B as ne, _ as re, a as h, V as f, l as se } from "./revolugo.webcomponentwrapper.BzrBNp7K.min.js";
6
+ import { p as de } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CmgO29ZN.min.js";
7
+ import { w as le } from "./revolugo.watch-list.C39H03pK.min.js";
8
+ import { b as ue } from "./revolugo._basefor.CodrYJxd.min.js";
9
+ import { V as k, f as ce } from "./revolugo.index.CHVqFiWo.min.js";
10
+ import { a as F, V as C, b as me } from "./revolugo.vcard.CLsvQwyI.min.js";
11
+ import { a as P, V as pe } from "./revolugo.vbtn.D5oMY_p5.min.js";
12
+ import { V as be } from "./revolugo.vsnackbar.CxMxY-0P.min.js";
13
+ import { V as _ } from "./revolugo.vtoolbar.2imDjYnr.min.js";
14
+ function O(e) {
12
15
  try {
13
16
  if (typeof document < "u") {
14
17
  window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
@@ -28,72 +31,72 @@ function W(e) {
28
31
  console.error("[revolugo-elements] ", t);
29
32
  }
30
33
  }
31
- function ye(e, t, i, n) {
32
- for (var r = -1, s = e == null ? 0 : e.length; ++r < s; ) {
33
- var c = e[r];
34
- t(n, c, i(c), e);
34
+ function ge(e, t, i, n) {
35
+ for (var r = -1, d = e == null ? 0 : e.length; ++r < d; ) {
36
+ var m = e[r];
37
+ t(n, m, i(m), e);
35
38
  }
36
39
  return n;
37
40
  }
38
- function fe(e, t) {
39
- return e && ce(e, t, Y);
41
+ function he(e, t) {
42
+ return e && ue(e, t, $);
40
43
  }
41
- function ke(e, t) {
44
+ function ye(e, t) {
42
45
  return function(i, n) {
43
46
  if (i == null)
44
47
  return i;
45
- if (!K(i))
48
+ if (!G(i))
46
49
  return e(i, n);
47
- for (var r = i.length, s = -1, c = Object(i); ++s < r && n(c[s], s, c) !== !1; )
50
+ for (var r = i.length, d = -1, m = Object(i); ++d < r && n(m[d], d, m) !== !1; )
48
51
  ;
49
52
  return i;
50
53
  };
51
54
  }
52
- var ve = ke(fe);
53
- function Ce(e, t, i, n) {
54
- return ve(e, function(r, s, c) {
55
- t(n, r, i(r), c);
55
+ var fe = ye(he);
56
+ function ke(e, t, i, n) {
57
+ return fe(e, function(r, d, m) {
58
+ t(n, r, i(r), m);
56
59
  }), n;
57
60
  }
58
- function Pe(e, t) {
61
+ function ve(e, t) {
59
62
  return function(i, n) {
60
- var r = J(i) ? ye : Ce, s = {};
61
- return r(i, e, Z(n), s);
63
+ var r = Y(i) ? ge : ke, d = {};
64
+ return r(i, e, j(n), d);
62
65
  };
63
66
  }
64
- var we = Pe(function(e, t, i) {
65
- Q(e, i, t);
67
+ var Ce = ve(function(e, t, i) {
68
+ H(e, i, t);
66
69
  });
67
- const Be = {
70
+ const Pe = {
68
71
  BookingDetails: !0
69
- }, $ = {
72
+ }, we = {
70
73
  features: {
71
- default: () => Be,
74
+ default: () => Pe,
72
75
  type: [Object, String]
73
76
  },
74
77
  token: { type: String }
75
- }, j = U({
78
+ }, U = Z({
76
79
  components: {
77
- BErrorOverlay: ae,
78
- BFormattedAmount: oe,
79
- BookingDetailsSidebar: se,
80
- CreditCardForm: de
80
+ BErrorOverlay: ne,
81
+ BFormattedAmount: ee,
82
+ BookingDetailsSidebar: oe,
83
+ CreditCardForm: ae
81
84
  },
82
85
  computed: {
83
86
  isPayLaterForced() {
84
87
  var e;
85
- return ((e = this.booking) == null ? void 0 : e.payLater) === L.Forced;
88
+ return ((e = this.booking) == null ? void 0 : e.payLater) === M.Forced;
86
89
  },
87
90
  payLaterAllowed() {
88
91
  var e, t;
89
92
  return ((e = this.booking) == null ? void 0 : e.payLater) && [
90
- L.Enabled,
91
- L.Forced
93
+ M.Enabled,
94
+ M.Forced
92
95
  ].includes((t = this.booking) == null ? void 0 : t.payLater);
93
96
  },
94
97
  paymentMethods() {
95
98
  var e;
96
- return we(((e = this.booking) == null ? void 0 : e.paymentMethods) ?? [], "name");
99
+ return Ce(((e = this.booking) == null ? void 0 : e.paymentMethods) ?? [], "name");
97
100
  },
98
101
  termsAndConditionsUrl() {
99
102
  return this.t("CreditCardPayment.termsURL");
@@ -118,7 +121,7 @@ const Be = {
118
121
  methods: {
119
122
  onCouponIdCleared() {
120
123
  var e, t;
121
- this.couponId = null, (t = (e = this.paymentMethods[m.Coupon]) == null ? void 0 : e.payload) != null && t.amount && this.updatePaymentMethods();
124
+ this.couponId = null, (t = (e = this.paymentMethods[c.Coupon]) == null ? void 0 : e.payload) != null && t.amount && this.updatePaymentMethods();
122
125
  },
123
126
  onCreditCardFormChange(e) {
124
127
  this.isCreditCardFormCompleted = e, this.error = "";
@@ -127,15 +130,15 @@ const Be = {
127
130
  this.error = e, this.isPaymentLoading = !1;
128
131
  },
129
132
  onCreditCardFormSuccess() {
130
- this.isPaymentLoading = !1, this.isPaymentSuccess = !0, this.$eventBus.$emit(M.PaymentSuccess, this.booking);
133
+ this.isPaymentLoading = !1, this.isPaymentSuccess = !0, this.$eventBus.$emit(B.PaymentSuccess, this.booking);
131
134
  },
132
135
  async pay() {
133
136
  var t, i, n, r;
134
- if (((i = (t = this.paymentMethods[m.Coupon]) == null ? void 0 : t.payload) == null ? void 0 : i.amount) === ((n = this.booking) == null ? void 0 : n.taxIncludedPrice)) {
137
+ if (((i = (t = this.paymentMethods[c.Coupon]) == null ? void 0 : t.payload) == null ? void 0 : i.amount) === ((n = this.booking) == null ? void 0 : n.taxIncludedPrice)) {
135
138
  this.isPaymentLoading = !0, await ((r = this.bookingApiClient) == null ? void 0 : r.bookings.couponCharge({
136
- couponId: this.paymentMethods[m.Coupon].payload.couponId,
139
+ couponId: this.paymentMethods[c.Coupon].payload.couponId,
137
140
  id: this.booking.id
138
- })), this.isPaymentSuccess = !0, this.$eventBus.$emit(M.PaymentSuccess, this.booking);
141
+ })), this.isPaymentSuccess = !0, this.$eventBus.$emit(B.PaymentSuccess, this.booking);
139
142
  return;
140
143
  }
141
144
  if (!this.$refs.payment)
@@ -155,7 +158,7 @@ const Be = {
155
158
  }
156
159
  await ((t = this.bookingApiClient) == null ? void 0 : t.bookings.paylater({
157
160
  id: this.booking.id
158
- })), this.isPaymentSuccess = !0, this.$eventBus.$emit(M.PaymentSuccess, this.booking);
161
+ })), this.isPaymentSuccess = !0, this.$eventBus.$emit(B.PaymentSuccess, this.booking);
159
162
  } catch {
160
163
  this.snackbar = !0;
161
164
  } finally {
@@ -175,7 +178,7 @@ const Be = {
175
178
  paymentMethodUpdatePayloadApi: {
176
179
  paymentMethods: [
177
180
  {
178
- name: m.CreditCard
181
+ name: c.CreditCard
179
182
  }
180
183
  ]
181
184
  }
@@ -193,33 +196,33 @@ const Be = {
193
196
  var e, t, i, n, r;
194
197
  try {
195
198
  this.couponSuccessMessage = "", this.isUpdatingPaymentMethods = !0;
196
- const s = [
199
+ const d = [
197
200
  {
198
- name: m.CreditCard
201
+ name: c.CreditCard
199
202
  }
200
203
  ];
201
- if (this.couponId && s.push({
202
- name: m.Coupon,
204
+ if (this.couponId && d.push({
205
+ name: c.Coupon,
203
206
  payload: {
204
207
  couponId: this.couponId
205
208
  }
206
209
  }), this.toggleCreditCardForm(!1), this.booking = await ((e = this.bookingApiClient) == null ? void 0 : e.bookings.updatePaymentMethods({
207
210
  id: this.booking.id,
208
211
  paymentMethodUpdatePayloadApi: {
209
- paymentMethods: s
212
+ paymentMethods: d
210
213
  }
211
- })), this.toggleCreditCardForm(!0), !this.paymentMethods[m.Coupon] || !((t = this.paymentMethods[m.Coupon].payload) != null && t.amount)) {
214
+ })), this.toggleCreditCardForm(!0), !this.paymentMethods[c.Coupon] || !((t = this.paymentMethods[c.Coupon].payload) != null && t.amount)) {
212
215
  if (!this.couponId)
213
216
  return;
214
217
  this.couponErrorMessage = this.t(
215
218
  "CreditCardPayment.paymentMethods.coupon.error"
216
219
  );
217
220
  } else
218
- ((i = this.paymentMethods[m.Coupon].payload) == null ? void 0 : i.amount) === ((n = this.booking) == null ? void 0 : n.taxIncludedPrice) && (this.isCreditCardFormCompleted = !0), this.couponErrorMessage = "", this.couponSuccessMessage = this.t(
221
+ ((i = this.paymentMethods[c.Coupon].payload) == null ? void 0 : i.amount) === ((n = this.booking) == null ? void 0 : n.taxIncludedPrice) && (this.isCreditCardFormCompleted = !0), this.couponErrorMessage = "", this.couponSuccessMessage = this.t(
219
222
  "CreditCardPayment.paymentMethods.coupon.success",
220
223
  {
221
- price: ie({
222
- amount: this.paymentMethods[m.Coupon].payload.amount,
224
+ price: te({
225
+ amount: this.paymentMethods[c.Coupon].payload.amount,
223
226
  currency: (r = this.booking) == null ? void 0 : r.currency
224
227
  })
225
228
  }
@@ -232,18 +235,18 @@ const Be = {
232
235
  }
233
236
  },
234
237
  mixins: [
235
- ue({
238
+ de({
236
239
  fallbackValue: {},
237
240
  propsName: "features"
238
241
  }),
239
- me(["$i18n.locale", "bookingApiClient"], "retrieveBooking", {
242
+ le(["$i18n.locale", "bookingApiClient"], "retrieveBooking", {
240
243
  immediate: !0
241
244
  })
242
245
  ],
243
246
  name: "CreditCardPayment",
244
- props: $,
247
+ props: we,
245
248
  setup() {
246
- const { t: e } = X();
249
+ const { t: e } = K();
247
250
  return {
248
251
  t: e
249
252
  };
@@ -520,17 +523,17 @@ function T(e) {
520
523
  }
521
524
  });
522
525
  }
523
- const Me = { class: "text-green" }, Le = { key: 1 }, Fe = { class: "w-100 d-flex justify-space-between items-center" }, Ae = ["innerHTML"], Se = { class: "ml-1 text-caption" }, Ee = { class: "mr-1" }, ze = { class: "mr-1" }, _e = { class: "mx-2" }, Ie = { class: "mr-1" };
524
- function Re(e, t, i, n, r, s) {
525
- const c = y("BookingDetailsSidebar"), C = y("BFormattedAmount"), G = y("CreditCardForm"), H = y("BErrorOverlay");
526
- return e.isPaymentSuccess ? (l(), p(P, {
526
+ const Be = { class: "text-green" }, Me = { key: 1 }, Le = { class: "w-100 d-flex justify-space-between items-center" }, Fe = ["innerHTML"], Ae = { class: "ml-1 text-caption" }, Ee = { class: "mr-1" }, Se = { class: "mr-1" }, ze = { class: "mx-2" }, Ie = { class: "mr-1" };
527
+ function Re(e, t, i, n, r, d) {
528
+ const m = v("BookingDetailsSidebar"), A = v("BFormattedAmount"), N = v("CreditCardForm"), q = v("BErrorOverlay");
529
+ return e.isPaymentSuccess ? (u(), p(C, {
527
530
  key: 0,
528
531
  elevation: "0"
529
532
  }, {
530
533
  default: o(() => [
531
- a(A, { class: "py-6 d-flex flex-column justify-center align-center" }, {
534
+ a(F, { class: "py-6 d-flex flex-column justify-center align-center" }, {
532
535
  default: o(() => [
533
- a(v, {
536
+ a(k, {
534
537
  class: "mb-4",
535
538
  color: "green",
536
539
  size: "x-large"
@@ -541,14 +544,14 @@ function Re(e, t, i, n, r, s) {
541
544
  _: 1,
542
545
  __: [4]
543
546
  }),
544
- u("h3", Me, d(e.t("CreditCardPayment.paymentSuccess.subtitle")), 1)
547
+ l("h3", Be, s(e.t("CreditCardPayment.paymentSuccess.subtitle")), 1)
545
548
  ]),
546
549
  _: 1
547
550
  })
548
551
  ]),
549
552
  _: 1
550
- })) : e.booking && e.booking.id ? (l(), F("div", Le, [
551
- a(he, {
553
+ })) : e.booking && e.booking.id ? (u(), L("div", Me, [
554
+ a(be, {
552
555
  modelValue: e.snackbar,
553
556
  "onUpdate:modelValue": t[1] || (t[1] = (g) => e.snackbar = g),
554
557
  color: "error",
@@ -556,14 +559,14 @@ function Re(e, t, i, n, r, s) {
556
559
  location: "top"
557
560
  }, {
558
561
  action: o(({ attrs: g }) => [
559
- a(w, x({
562
+ a(P, J({
560
563
  color: "pink",
561
564
  variant: "text"
562
565
  }, g, {
563
- onClick: t[0] || (t[0] = (B) => e.snackbar = !1)
566
+ onClick: t[0] || (t[0] = (w) => e.snackbar = !1)
564
567
  }), {
565
568
  default: o(() => [
566
- a(v, null, {
569
+ a(k, null, {
567
570
  default: o(() => t[5] || (t[5] = [
568
571
  b(" fas fa-times ")
569
572
  ])),
@@ -575,13 +578,13 @@ function Re(e, t, i, n, r, s) {
575
578
  }, 1040)
576
579
  ]),
577
580
  default: o(() => [
578
- b(d(e.t("CreditCardPayment.error")) + " ", 1)
581
+ b(s(e.t("CreditCardPayment.error")) + " ", 1)
579
582
  ]),
580
583
  _: 1
581
584
  }, 8, ["modelValue"]),
582
- a(k, { dense: "" }, {
585
+ a(f, { dense: "" }, {
583
586
  default: o(() => [
584
- e.parsedFeatures.BookingDetails ? (l(), p(h, {
587
+ e.parsedFeatures.BookingDetails ? (u(), p(h, {
585
588
  key: 0,
586
589
  cols: "12",
587
590
  lg: "4",
@@ -589,20 +592,20 @@ function Re(e, t, i, n, r, s) {
589
592
  xl: "4"
590
593
  }, {
591
594
  default: o(() => [
592
- a(c, N(q(e.booking)), null, 16)
595
+ a(m, W(X(e.booking)), null, 16)
593
596
  ]),
594
597
  _: 1
595
- })) : f("", !0),
598
+ })) : y("", !0),
596
599
  a(h, {
597
- class: ee(e.parsedFeatures.BookingDetails ? "col-sm-8 col-12" : "w-100")
600
+ class: Q(e.parsedFeatures.BookingDetails ? "col-sm-8 col-12" : "w-100")
598
601
  }, {
599
602
  default: o(() => [
600
- a(P, {
603
+ a(C, {
601
604
  elevation: "0",
602
605
  border: ""
603
606
  }, {
604
607
  default: o(() => [
605
- e.parsedFeatures.BookingDetails ? f("", !0) : (l(), p(V, {
608
+ e.parsedFeatures.BookingDetails ? y("", !0) : (u(), p(_, {
606
609
  key: 0,
607
610
  color: "primary",
608
611
  dark: "",
@@ -610,9 +613,9 @@ function Re(e, t, i, n, r, s) {
610
613
  elevation: "0"
611
614
  }, {
612
615
  default: o(() => [
613
- u("h4", null, [
614
- b(d(e.t("CreditCardPayment.pay")) + ": ", 1),
615
- a(C, {
616
+ l("h4", null, [
617
+ b(s(e.t("CreditCardPayment.pay")) + ": ", 1),
618
+ a(A, {
616
619
  amount: e.booking.taxIncludedPrice,
617
620
  class: "font-weight-bold",
618
621
  currency: e.booking.currency
@@ -621,9 +624,9 @@ function Re(e, t, i, n, r, s) {
621
624
  ]),
622
625
  _: 1
623
626
  })),
624
- a(A, null, {
627
+ a(F, null, {
625
628
  default: o(() => [
626
- e.isPayLaterForced ? (l(), p(P, {
629
+ e.isPayLaterForced ? (u(), p(C, {
627
630
  key: 0,
628
631
  elevation: "0",
629
632
  border: "",
@@ -632,41 +635,41 @@ function Re(e, t, i, n, r, s) {
632
635
  }
633
636
  }, {
634
637
  default: o(() => [
635
- a(V, {
638
+ a(_, {
636
639
  class: "text-white",
637
640
  color: "primary",
638
641
  dense: "",
639
642
  elevation: "0"
640
643
  }, {
641
644
  default: o(() => [
642
- u("div", Fe, [
643
- u("h4", null, d(e.t("CreditCardPayment.payLaterForced.title")), 1)
645
+ l("div", Le, [
646
+ l("h4", null, s(e.t("CreditCardPayment.payLaterForced.title")), 1)
644
647
  ])
645
648
  ]),
646
649
  _: 1
647
650
  }),
648
- a(A, null, {
651
+ a(F, null, {
649
652
  default: o(() => [
650
- u("h4", null, d(e.t("CreditCardPayment.payLaterForced.subtitle")), 1)
653
+ l("h4", null, s(e.t("CreditCardPayment.payLaterForced.subtitle")), 1)
651
654
  ]),
652
655
  _: 1
653
656
  })
654
657
  ]),
655
658
  _: 1
656
- })) : (l(), F(D, { key: 1 }, [
657
- a(k, null, {
659
+ })) : (u(), L(V, { key: 1 }, [
660
+ a(f, null, {
658
661
  default: o(() => [
659
662
  a(h, null, {
660
663
  default: o(() => {
661
- var g, B, S, E, z, _, I, R;
664
+ var g, w, E, S, z, I, R, D;
662
665
  return [
663
- a(G, {
666
+ a(N, {
664
667
  ref: "payment",
665
- amount: ((B = (g = e.paymentMethods.CREDIT_CARD) == null ? void 0 : g.payload) == null ? void 0 : B.amount) || 0,
668
+ amount: ((w = (g = e.paymentMethods.CREDIT_CARD) == null ? void 0 : g.payload) == null ? void 0 : w.amount) || 0,
666
669
  currency: e.booking.currency,
667
- disabled: !((E = (S = e.paymentMethods.CREDIT_CARD) == null ? void 0 : S.payload) != null && E.amount) || !((_ = (z = e.paymentMethods.CREDIT_CARD) == null ? void 0 : z.payload) != null && _.token),
670
+ disabled: !((S = (E = e.paymentMethods.CREDIT_CARD) == null ? void 0 : E.payload) != null && S.amount) || !((I = (z = e.paymentMethods.CREDIT_CARD) == null ? void 0 : z.payload) != null && I.token),
668
671
  loading: !e.isCreditCardFormMounted,
669
- token: (R = (I = e.paymentMethods.CREDIT_CARD) == null ? void 0 : I.payload) == null ? void 0 : R.token,
672
+ token: (D = (R = e.paymentMethods.CREDIT_CARD) == null ? void 0 : R.payload) == null ? void 0 : D.token,
670
673
  onChange: e.onCreditCardFormChange,
671
674
  onError: e.onCreditCardFormError,
672
675
  onSuccess: e.onCreditCardFormSuccess
@@ -678,11 +681,11 @@ function Re(e, t, i, n, r, s) {
678
681
  ]),
679
682
  _: 1
680
683
  }),
681
- a(k, null, {
684
+ a(f, null, {
682
685
  default: o(() => [
683
686
  a(h, { class: "d-flex align-center" }, {
684
687
  default: o(() => [
685
- a(v, {
688
+ a(k, {
686
689
  start: "",
687
690
  color: "grey",
688
691
  size: "small"
@@ -693,7 +696,7 @@ function Re(e, t, i, n, r, s) {
693
696
  _: 1,
694
697
  __: [6]
695
698
  }),
696
- u("small", null, d(e.t("CreditCardPayment.subtitle")), 1)
699
+ l("small", null, s(e.t("CreditCardPayment.subtitle")), 1)
697
700
  ]),
698
701
  _: 1
699
702
  })
@@ -701,11 +704,11 @@ function Re(e, t, i, n, r, s) {
701
704
  _: 1
702
705
  })
703
706
  ], 64)),
704
- a(k, { class: "mt-2" }, {
707
+ a(f, { class: "mt-2" }, {
705
708
  default: o(() => [
706
709
  a(h, null, {
707
710
  default: o(() => [
708
- a(le, {
711
+ a(ie, {
709
712
  ref: "testing",
710
713
  modelValue: e.isTermsAccepted,
711
714
  "onUpdate:modelValue": t[3] || (t[3] = (g) => e.isTermsAccepted = g),
@@ -714,13 +717,13 @@ function Re(e, t, i, n, r, s) {
714
717
  color: "primary"
715
718
  }, {
716
719
  label: o(() => [
717
- u("span", {
718
- onClick: t[2] || (t[2] = te(() => {
720
+ l("span", {
721
+ onClick: t[2] || (t[2] = x(() => {
719
722
  }, ["stop"])),
720
723
  innerHTML: e.t("CreditCardPayment.termsAndConditions", {
721
724
  url: e.termsAndConditionsUrl
722
725
  })
723
- }, null, 8, Ae)
726
+ }, null, 8, Fe)
724
727
  ]),
725
728
  _: 1
726
729
  }, 8, ["modelValue", "error"])
@@ -733,9 +736,9 @@ function Re(e, t, i, n, r, s) {
733
736
  ]),
734
737
  _: 1
735
738
  }),
736
- a(be, { class: "mt-n6" }, {
739
+ a(me, { class: "mt-n6" }, {
737
740
  default: o(() => [
738
- a(k, {
741
+ a(f, {
739
742
  align: "end",
740
743
  class: "flex-column flex-sm-row",
741
744
  "no-gutters": ""
@@ -743,8 +746,8 @@ function Re(e, t, i, n, r, s) {
743
746
  default: o(() => [
744
747
  a(h, null, {
745
748
  default: o(() => [
746
- u("small", Se, d(e.t("CreditCardPayment.acceptedPaymentMethods")), 1),
747
- a(pe, {
749
+ l("small", Ae, s(e.t("CreditCardPayment.acceptedPaymentMethods")), 1),
750
+ a(ce, {
748
751
  class: "mt-n1",
749
752
  height: "45",
750
753
  src: "https://revolugo.s3.eu-west-3.amazonaws.com/payment-methods.png",
@@ -755,7 +758,7 @@ function Re(e, t, i, n, r, s) {
755
758
  }),
756
759
  a(h, { class: "d-flex justify-end flex-column flex-sm-row mb-1 align-center mt-4 mt-sm-0" }, {
757
760
  default: o(() => [
758
- e.isPayLaterForced ? (l(), p(w, {
761
+ e.isPayLaterForced ? (u(), p(P, {
759
762
  key: 0,
760
763
  class: "w-100 w-sm-auto",
761
764
  color: "primary",
@@ -765,11 +768,11 @@ function Re(e, t, i, n, r, s) {
765
768
  onClick: e.payLater
766
769
  }, {
767
770
  default: o(() => [
768
- u("span", Ee, d(e.t("CreditCardPayment.completeBookingNow")), 1)
771
+ l("span", Ee, s(e.t("CreditCardPayment.completeBookingNow")), 1)
769
772
  ]),
770
773
  _: 1
771
- }, 8, ["disabled", "loading", "onClick"])) : e.payLaterAllowed ? (l(), F(D, { key: 1 }, [
772
- a(w, {
774
+ }, 8, ["disabled", "loading", "onClick"])) : e.payLaterAllowed ? (u(), L(V, { key: 1 }, [
775
+ a(P, {
773
776
  class: "w-100 w-sm-auto",
774
777
  color: "primary",
775
778
  disabled: e.isPaymentLoading || !e.isTermsAccepted,
@@ -778,7 +781,7 @@ function Re(e, t, i, n, r, s) {
778
781
  onClick: e.payLater
779
782
  }, {
780
783
  default: o(() => [
781
- a(v, {
784
+ a(k, {
782
785
  start: "",
783
786
  class: "ml-1"
784
787
  }, {
@@ -788,8 +791,8 @@ function Re(e, t, i, n, r, s) {
788
791
  _: 1,
789
792
  __: [7]
790
793
  }),
791
- u("span", ze, d(e.t("CreditCardPayment.completeBookingLater")), 1),
792
- e.isPayLaterForced ? f("", !0) : (l(), p(C, {
794
+ l("span", Se, s(e.t("CreditCardPayment.completeBookingLater")), 1),
795
+ e.isPayLaterForced ? y("", !0) : (u(), p(A, {
793
796
  key: 0,
794
797
  amount: e.booking.taxIncludedPrice,
795
798
  class: "font-weight-bold",
@@ -798,9 +801,9 @@ function Re(e, t, i, n, r, s) {
798
801
  ]),
799
802
  _: 1
800
803
  }, 8, ["disabled", "loading", "onClick"]),
801
- u("span", _e, d(e.t("CreditCardPayment.or")), 1)
802
- ], 64)) : f("", !0),
803
- e.isPayLaterForced ? f("", !0) : (l(), p(w, {
804
+ l("span", ze, s(e.t("CreditCardPayment.or")), 1)
805
+ ], 64)) : y("", !0),
806
+ e.isPayLaterForced ? y("", !0) : (u(), p(P, {
804
807
  key: 2,
805
808
  class: "w-100 w-sm-auto",
806
809
  color: "primary",
@@ -810,7 +813,7 @@ function Re(e, t, i, n, r, s) {
810
813
  onClick: e.pay
811
814
  }, {
812
815
  default: o(() => [
813
- a(v, {
816
+ a(k, {
814
817
  start: "",
815
818
  class: "ml-1"
816
819
  }, {
@@ -820,7 +823,7 @@ function Re(e, t, i, n, r, s) {
820
823
  _: 1,
821
824
  __: [8]
822
825
  }),
823
- u("span", Ie, d(e.t("CreditCardPayment.completeBookingNow")), 1)
826
+ l("span", Ie, s(e.t("CreditCardPayment.completeBookingNow")), 1)
824
827
  ]),
825
828
  _: 1
826
829
  }, 8, ["disabled", "loading", "onClick"]))
@@ -842,7 +845,7 @@ function Re(e, t, i, n, r, s) {
842
845
  ]),
843
846
  _: 1
844
847
  })
845
- ])) : e.isFetchingBooking ? (l(), p(P, {
848
+ ])) : e.isFetchingBooking ? (u(), p(C, {
846
849
  key: 2,
847
850
  class: "mx-auto",
848
851
  elevation: "0",
@@ -850,13 +853,13 @@ function Re(e, t, i, n, r, s) {
850
853
  width: "100%"
851
854
  }, {
852
855
  default: o(() => [
853
- a(ne, {
856
+ a(se, {
854
857
  absolute: "",
855
858
  class: "align-center justify-center",
856
859
  opacity: "0.1"
857
860
  }, {
858
861
  default: o(() => [
859
- a(ge, {
862
+ a(pe, {
860
863
  color: "primary",
861
864
  indeterminate: "",
862
865
  size: "64"
@@ -866,44 +869,25 @@ function Re(e, t, i, n, r, s) {
866
869
  })
867
870
  ]),
868
871
  _: 1
869
- })) : (l(), p(H, {
872
+ })) : (u(), p(q, {
870
873
  key: 3,
871
874
  "min-height": "200px"
872
875
  }, {
873
876
  title: o(() => [
874
- b(d(e.t("CreditCardPayment.bookingNotFound.title")), 1)
877
+ b(s(e.t("CreditCardPayment.bookingNotFound.title")), 1)
875
878
  ]),
876
879
  description: o(() => [
877
- b(d(e.t("CreditCardPayment.bookingNotFound.description")), 1)
880
+ b(s(e.t("CreditCardPayment.bookingNotFound.description")), 1)
878
881
  ]),
879
882
  _: 1
880
883
  }));
881
884
  }
882
- typeof T == "function" && T(j);
883
- const De = /* @__PURE__ */ O(j, [["render", Re], ["__scopeId", "data-v-fa4fcd2f"]]), Ve = U({
884
- components: {
885
- CreditCardPayment: De,
886
- WebComponentWrapper: re
887
- },
888
- props: $
889
- });
890
- function Te(e, t, i, n, r, s) {
891
- const c = y("CreditCardPayment", !0), C = y("WebComponentWrapper");
892
- return l(), p(C, null, {
893
- default: o(() => [
894
- a(c, N(q(e.$props)), null, 16)
895
- ]),
896
- _: 1
897
- });
898
- }
899
- const Ue = /* @__PURE__ */ O(Ve, [["render", Te]]), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
900
- __proto__: null,
901
- default: Ue
902
- }, Symbol.toStringTag, { value: "Module" }));
903
- W("css/revolugo.creditcardpayment.D2PE5FCt.css");
885
+ typeof T == "function" && T(U);
886
+ const Ze = /* @__PURE__ */ re(U, [["render", Re], ["__scopeId", "data-v-fa4fcd2f"]]);
887
+ O("css/revolugo.creditcardpayment.D2PE5FCt.css");
904
888
  export {
905
- Be as C,
906
- De as a,
907
- Ze as b
889
+ Ze as C,
890
+ Pe as a,
891
+ we as c
908
892
  };
909
- //# sourceMappingURL=revolugo.creditcardpayment.DzD24_nR.min.js.map
893
+ //# sourceMappingURL=revolugo.creditcardpayment.gPcfsEC5.min.js.map