@revolugo/elements 6.9.3-beta.9 → 6.9.4-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.
Files changed (190) hide show
  1. package/dist/css/fonts.css +1 -1
  2. package/dist/css/revolugo.bdaterangepicker.OLspTh_0.css +1 -0
  3. package/dist/css/revolugo.bhoteloffersfilterbar.BebBKpCh.css +1 -0
  4. package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +1 -0
  5. package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +1 -0
  6. package/dist/css/revolugo.bookingdetailssidebar.Cp4sLBjD.css +1 -0
  7. package/dist/css/revolugo.bstarrating.CPHKEfup.css +1 -0
  8. package/dist/css/revolugo.btag.T7X_iIkW.css +1 -0
  9. package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +1 -0
  10. package/dist/css/revolugo.creditcardform.DWne0Lnv.css +1 -0
  11. package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +1 -0
  12. package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +1 -0
  13. package/dist/css/revolugo.hoteldescriptionview.B-RiiuPY.css +1 -0
  14. package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +1 -0
  15. package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +1 -0
  16. package/dist/css/revolugo.hoteloffersmap.Z5DFtK0_.css +1 -0
  17. package/dist/css/revolugo.hoteloffersview.CLbnSww6.css +1 -0
  18. package/dist/css/revolugo.hotelroomofferlist.D8JlZt_N.css +1 -0
  19. package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +1 -0
  20. package/dist/css/revolugo.index.DK7d_h6O.css +1 -0
  21. package/dist/css/revolugo.index.XNPQF1ia.css +5 -0
  22. package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +1 -0
  23. package/dist/css/revolugo.prebookform.DmCR7hLv.css +1 -0
  24. package/dist/css/revolugo.preferencesmenu.fPv_7j-1.css +1 -0
  25. package/dist/css/revolugo.termsandconditions.D8IMR9da.css +1 -0
  26. package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +1 -0
  27. package/dist/css/revolugo.vbadge.C45eZpxy.css +1 -0
  28. package/dist/css/revolugo.vbtn.DpMO1Ky2.css +1 -0
  29. package/dist/css/revolugo.vcard.TERzfknI.css +1 -0
  30. package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +1 -0
  31. package/dist/css/revolugo.vdialog.DwTSAOeg.css +1 -0
  32. package/dist/css/revolugo.vdivider.CTbbZwnv.css +1 -0
  33. package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +1 -0
  34. package/dist/css/revolugo.vicon.eIkh7vVK.css +1 -0
  35. package/dist/css/revolugo.vinput.BPiFMorL.css +1 -0
  36. package/dist/css/revolugo.vlabel.BvKaKg7Y.css +1 -0
  37. package/dist/css/revolugo.vlist.-Y4qkukF.css +1 -0
  38. package/dist/css/revolugo.vmenu.DvKwEp1j.css +1 -0
  39. package/dist/css/revolugo.vselect.C5CKHFYB.css +1 -0
  40. package/dist/css/revolugo.vsheet.Dmcoj8cr.css +1 -0
  41. package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +1 -0
  42. package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +1 -0
  43. package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +1 -0
  44. package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +1 -0
  45. package/dist/css/revolugo.vtextfield.BIH_AWWP.css +1 -0
  46. package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +1 -0
  47. package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +1 -0
  48. package/dist/css/{revolugo.webcomponentwrapper.BQSUxe3K.css → revolugo.webcomponentwrapper.cFJPP6Rp.css} +1 -1
  49. package/dist/index.es.min.js +1518 -1275
  50. package/dist/index.es.min.js.map +1 -1
  51. package/dist/index.min.js +5 -5
  52. package/dist/index.min.js.map +1 -1
  53. package/dist/revolugo._baseiteratee.C9fSfygW.min.js +247 -0
  54. package/dist/revolugo.banktransferdetails.HF-5whLi.min.js +373 -0
  55. package/dist/revolugo.bdaterangepicker.Dztdr7of.min.js +8327 -0
  56. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.WRP6nh8U.min.js +146 -0
  57. package/dist/revolugo.bhoteloffersfilterbar.riRikxpD.min.js +4901 -0
  58. package/dist/revolugo.bhotelroomsdetails.DSVvK0I7.min.js +965 -0
  59. package/dist/revolugo.bimagecarousel.0DDXWSsX.min.js +566 -0
  60. package/dist/revolugo.bookingdetailssidebar.B3nJVjzT.min.js +24 -0
  61. package/dist/revolugo.bookingdetailssidebar.HR95sw2v.min.js +870 -0
  62. package/dist/revolugo.bookingmanager.CHhySvbL.min.js +1755 -0
  63. package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.DCBOxir-.min.js +66 -0
  64. package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.D7d1JNOc.min.js +570 -0
  65. package/dist/revolugo.btag.C27GlEZ3.min.js +375 -0
  66. package/dist/revolugo.cancellationpoliciesbadge.CQ9NQZ7F.min.js +28 -0
  67. package/dist/revolugo.cancellationpoliciesbadge.D7VDRPmO.min.js +198 -0
  68. package/dist/revolugo.cancellationpolicieslist.DUrr7Myp.min.js +25 -0
  69. package/dist/revolugo.cancellationpolicieslist.IKkTYxdE.min.js +148 -0
  70. package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +21 -0
  71. package/dist/revolugo.case-transformers.Blb5hegY.min.js +123 -0
  72. package/dist/revolugo.common.D-l8b0V5.min.js +10 -0
  73. package/dist/{revolugo.creditcardstripeform.B8KtVBUI.min.js → revolugo.creditcardform.CejFX150.min.js} +886 -888
  74. package/dist/revolugo.creditcardform.Dx00l01z.min.js +24 -0
  75. package/dist/revolugo.creditcardpayment.CkfC2xTo.min.js +885 -0
  76. package/dist/revolugo.creditcardpayment.DZf0q5_n.min.js +24 -0
  77. package/dist/revolugo.currencypicker.B9c-AV8V.min.js +328 -0
  78. package/dist/revolugo.currencypickerbtn.B_lw6N3Y.min.js +24 -0
  79. package/dist/revolugo.currencypickerbtn.edi3iO6h.min.js +157 -0
  80. package/dist/revolugo.dates.DiE5ynTe.min.js +31 -0
  81. package/dist/revolugo.defaultsdeep.EmfuGqBQ.min.js +104 -0
  82. package/dist/{revolugo.dialog-attach.e4eWyf04.min.js → revolugo.dialog-attach.C4Yvk6WJ.min.js} +2 -2
  83. package/dist/revolugo.dialog-transition.Dly9KKqO.min.js +111 -0
  84. package/dist/revolugo.fastbookingflow.DPOX_gos.min.js +34 -0
  85. package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +70 -0
  86. package/dist/revolugo.fullbookingflow.DSJE_kaM.min.js +429 -0
  87. package/dist/revolugo.hotel-offer-request.C9zwgVPt.min.js +98 -0
  88. package/dist/revolugo.hoteldescriptionview.Dtd-_3_8.min.js +24 -0
  89. package/dist/revolugo.hoteldescriptionview.kERJQPWm.min.js +2738 -0
  90. package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.CiHBAV7m.min.js +239 -0
  91. package/dist/revolugo.hotelofferlist.BC-TSjS6.min.js +24 -0
  92. package/dist/revolugo.hotelofferlist.D2AXSf4v.min.js +5640 -0
  93. package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +44 -0
  94. package/dist/revolugo.hoteloffersearchmenu.BODV4ZIe.min.js +202 -0
  95. package/dist/revolugo.hoteloffersearchmenuui.DqWHAurZ.min.js +829 -0
  96. package/dist/revolugo.hoteloffersmap.C6nn7LXn.min.js +8330 -0
  97. package/dist/revolugo.hoteloffersmap.Db9NNgcN.min.js +24 -0
  98. package/dist/revolugo.hoteloffersview.BAwQcocI.min.js +19 -0
  99. package/dist/revolugo.hoteloffersview.CIVNGmGO.min.js +616 -0
  100. package/dist/revolugo.hotelroomofferlist.C9y91Ya3.min.js +2799 -0
  101. package/dist/revolugo.hotelroomofferlist.CiBIB0Pb.min.js +24 -0
  102. package/dist/revolugo.hotelroomofferrequestcreator.props.2Sq_iptZ.min.js +171 -0
  103. package/dist/revolugo.hotelroomoffersbookingflow.BS4Fa2EH.min.js +1281 -0
  104. package/dist/revolugo.hotelroomoffersearchmenu.CXgExPhR.min.js +25 -0
  105. package/dist/revolugo.hotelroomoffersearchmenu.x_--4RXV.min.js +231 -0
  106. package/dist/revolugo.hotelroomoffersview.BzmRXy0a.min.js +290 -0
  107. package/dist/revolugo.hotelroomoffersview.CFo6k7zm.min.js +24 -0
  108. package/dist/revolugo.index.CDNx7Tg4.min.js +67 -0
  109. package/dist/revolugo.index.DZEISB0K.min.js +1232 -0
  110. package/dist/{revolugo.index.wc.CiJw1SpW.min.js → revolugo.index.wc.DLkeXtka.min.js} +4659 -4637
  111. package/dist/revolugo.langpicker.D7zIuy78.min.js +99 -0
  112. package/dist/revolugo.langpickerbtn.BF7sml8K.min.js +29 -0
  113. package/dist/revolugo.langpickerbtn.DMcy_gHZ.min.js +131 -0
  114. package/dist/revolugo.min.js +1 -1
  115. package/dist/revolugo.parsed-props.B5g9_9k5.min.js +40 -0
  116. package/dist/revolugo.pathify.DL0POvNz.min.js +36 -0
  117. package/dist/revolugo.prebookform.BMEaruyl.min.js +1527 -0
  118. package/dist/revolugo.prebookform.BVyTAnc9.min.js +24 -0
  119. package/dist/revolugo.preferencesmenu.5pUjkA0F.min.js +24 -0
  120. package/dist/revolugo.preferencesmenu.CfUC3L6C.min.js +261 -0
  121. package/dist/revolugo.roominglisteditor.DLWeU6Ct.min.js +385 -0
  122. package/dist/revolugo.roominglisteditor.L6CmotRz.min.js +24 -0
  123. package/dist/revolugo.rounded.C-2ilaaW.min.js +68 -0
  124. package/dist/revolugo.ssrboot.D7k4-YG4.min.js +18 -0
  125. package/dist/revolugo.storybooktoolbar.CTe_QwGW.min.js +881 -0
  126. package/dist/revolugo.termsandconditions.Cue6Dsm7.min.js +404 -0
  127. package/dist/revolugo.termsandconditions.DBq-dEuI.min.js +23 -0
  128. package/dist/revolugo.use-breakpoint-service.DsQuZJRM.min.js +39 -0
  129. package/dist/revolugo.use-dialog-attach.DLdl8iIG.min.js +16 -0
  130. package/dist/revolugo.use-html-element.c9F9oVPw.min.js +11 -0
  131. package/dist/revolugo.vautocomplete.Q2U5ECgn.min.js +445 -0
  132. package/dist/revolugo.vbadge.D-lbOD0r.min.js +112 -0
  133. package/dist/revolugo.vbtn.B-LYC8rJ.min.js +398 -0
  134. package/dist/revolugo.vcard.ZlYB5HOk.min.js +313 -0
  135. package/dist/revolugo.vcheckboxbtn.BGpOwRWV.min.js +478 -0
  136. package/dist/revolugo.vdialog.DlAgRbIv.min.js +133 -0
  137. package/dist/revolugo.vdivider.D1ITKKuu.min.js +77 -0
  138. package/dist/revolugo.vexpansionpanels.D8TtnQrF.min.js +262 -0
  139. package/dist/revolugo.vform.gu3frP5W.min.js +46 -0
  140. package/dist/revolugo.vicon.mrg8OisO.min.js +105 -0
  141. package/dist/revolugo.vinput.BowTI8jK.min.js +463 -0
  142. package/dist/revolugo.vlabel.BjtrjyZZ.min.js +48 -0
  143. package/dist/revolugo.vlist.BwlPoH0e.min.js +1299 -0
  144. package/dist/revolugo.vmenu.Dasw1a1s.min.js +145 -0
  145. package/dist/revolugo.vselect.B4IzM260.min.js +660 -0
  146. package/dist/revolugo.vsheet.CDgBUxHk.min.js +72 -0
  147. package/dist/revolugo.vskeletonloader.DgIjR-8k.min.js +136 -0
  148. package/dist/revolugo.vslidegroup.BV7NJuLN.min.js +325 -0
  149. package/dist/revolugo.vsnackbar.DFnMGJQg.min.js +198 -0
  150. package/dist/revolugo.vspacer.DqnVrVYg.min.js +7 -0
  151. package/dist/revolugo.vtextarea.CgekaBze.min.js +2092 -0
  152. package/dist/revolugo.vtextfield.BhmuZsP7.min.js +501 -0
  153. package/dist/{revolugo.vtoolbar.Ctwu8OKs.min.js → revolugo.vtoolbar.CMwcpp3v.min.js} +44 -42
  154. package/dist/revolugo.vtooltip.a-r5BxqW.min.js +89 -0
  155. package/dist/revolugo.vwindowitem.BHzrfo73.min.js +317 -0
  156. package/dist/revolugo.watch-list.BSqnQNdl.min.js +16 -0
  157. package/dist/revolugo.webcomponentwrapper.BNmjcBmh.min.js +2088 -0
  158. package/package.json +5 -5
  159. package/dist/css/revolugo.cancellationpoliciesbadge.DM3Cgr8A.css +0 -1
  160. package/dist/css/revolugo.creditcardstripeform.DN5YJSMj.css +0 -1
  161. package/dist/css/revolugo.index.ClC0OVqq.css +0 -5
  162. package/dist/css/revolugo.preferencesmenu.D2263Vn6.css +0 -1
  163. package/dist/revolugo.banktransferdetails.DFskPIBN.min.js +0 -47
  164. package/dist/revolugo.bookingdetailssidebar.BOs76Qod.min.js +0 -43
  165. package/dist/revolugo.bookingmanager.DzzQLMr9.min.js +0 -26
  166. package/dist/revolugo.cancellationpoliciesbadge.BRcM9UUl.min.js +0 -26
  167. package/dist/revolugo.cancellationpoliciesbadge.props.YZrc252e.min.js +0 -28756
  168. package/dist/revolugo.cancellationpolicieslist.B7Mf5bmE.min.js +0 -26
  169. package/dist/revolugo.creditcardstripeform.DkNqhTcH.min.js +0 -50
  170. package/dist/revolugo.currencypickerbtn.C1B6gpLV.min.js +0 -26
  171. package/dist/revolugo.fastbookingflow.VfdAOD-j.min.js +0 -36
  172. package/dist/revolugo.fullbookingflow.CFl16ykj.min.js +0 -26
  173. package/dist/revolugo.hoteldescriptionview.DTByBiNZ.min.js +0 -26
  174. package/dist/revolugo.hotelofferlist.HS8rTNwv.min.js +0 -26
  175. package/dist/revolugo.hoteloffersearchmenu.DLC5yEDD.min.js +0 -115
  176. package/dist/revolugo.hoteloffersmap.l4UaNpun.min.js +0 -26
  177. package/dist/revolugo.hoteloffersview.DxUc5TlW.min.js +0 -21
  178. package/dist/revolugo.hotelroomofferlist.ryYBtMFY.min.js +0 -26
  179. package/dist/revolugo.hotelroomoffersbookingflow.BWIa87mZ.min.js +0 -26
  180. package/dist/revolugo.hotelroomoffersearchmenu.4-HSRz_y.min.js +0 -26
  181. package/dist/revolugo.hotelroomoffersview.Df2SYo4D.min.js +0 -26
  182. package/dist/revolugo.index.Qn3FvgFh.min.js +0 -106
  183. package/dist/revolugo.langpickerbtn.rFwls9XZ.min.js +0 -31
  184. package/dist/revolugo.prebookform.D33OnpHn.min.js +0 -26
  185. package/dist/revolugo.preferencesmenu.BOWFkVY9.min.js +0 -24
  186. package/dist/revolugo.preferencesmenu.PVSL2fWE.min.js +0 -949
  187. package/dist/revolugo.roominglisteditor.gLjgOdGD.min.js +0 -26
  188. package/dist/revolugo.storybooktoolbar.DZrgGX1X.min.js +0 -838
  189. package/dist/revolugo.termsandconditions.3W9GTrVc.min.js +0 -31
  190. package/dist/revolugo.webcomponentwrapper.PTHIHE3G.min.js +0 -28624
@@ -0,0 +1,885 @@
1
+ import { a$ as _, b0 as T, b1 as U, d as N, u as q, b2 as u, E as w, b3 as B, c as p, i as M, w as o, a, e as s, f as b, t as r, D as O, g as y, r as v, n as $, h as G, C as j, F as A, aB as H, o as d } from "./revolugo.index.wc.DLkeXtka.min.js";
2
+ import { _ as Y, a as Z } from "./revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.WRP6nh8U.min.js";
3
+ import { B as K } from "./revolugo.bookingdetailssidebar.HR95sw2v.min.js";
4
+ import { C as J, V as Q } from "./revolugo.creditcardform.CejFX150.min.js";
5
+ import { B as W, _ as X, a as g, V as f, l as x } from "./revolugo.webcomponentwrapper.BNmjcBmh.min.js";
6
+ import { p as ee } from "./revolugo.parsed-props.B5g9_9k5.min.js";
7
+ import { w as te } from "./revolugo.watch-list.BSqnQNdl.min.js";
8
+ import { b as oe } from "./revolugo.defaultsdeep.EmfuGqBQ.min.js";
9
+ import { k as ae, b as ie } from "./revolugo._baseiteratee.C9fSfygW.min.js";
10
+ import { V as k } from "./revolugo.vicon.mrg8OisO.min.js";
11
+ import { a as L, V as C, b as ne } from "./revolugo.vcard.ZlYB5HOk.min.js";
12
+ import { a as P, V as re } from "./revolugo.vbtn.B-LYC8rJ.min.js";
13
+ import { V as se } from "./revolugo.vsnackbar.DFnMGJQg.min.js";
14
+ import { V as E } from "./revolugo.vtoolbar.CMwcpp3v.min.js";
15
+ import { f as de } from "./revolugo.index.DZEISB0K.min.js";
16
+ function V(e) {
17
+ try {
18
+ if (typeof document < "u") {
19
+ window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
20
+ sheets: [],
21
+ components: []
22
+ };
23
+ const t = import.meta.url, i = t.slice(0, t.lastIndexOf("/") + 1) + e;
24
+ window.REVOLUGO_ELEMENTS_STYLES.sheets.push(i);
25
+ for (const n of REVOLUGO_ELEMENTS_STYLES.components)
26
+ n(i);
27
+ if (e.indexOf("fonts") >= 0) {
28
+ const n = document.createElement("link");
29
+ n.rel = "stylesheet", linK.href = i, document.head.appendChild(n);
30
+ }
31
+ }
32
+ } catch (t) {
33
+ console.error("[revolugo-elements] ", t);
34
+ }
35
+ }
36
+ function le(e, t, i, n) {
37
+ for (var l = -1, c = e == null ? 0 : e.length; ++l < c; ) {
38
+ var m = e[l];
39
+ t(n, m, i(m), e);
40
+ }
41
+ return n;
42
+ }
43
+ function ue(e, t) {
44
+ return e && oe(e, t, ae);
45
+ }
46
+ function ce(e, t) {
47
+ return function(i, n) {
48
+ if (i == null)
49
+ return i;
50
+ if (!_(i))
51
+ return e(i, n);
52
+ for (var l = i.length, c = -1, m = Object(i); ++c < l && n(m[c], c, m) !== !1; )
53
+ ;
54
+ return i;
55
+ };
56
+ }
57
+ var me = ce(ue);
58
+ function pe(e, t, i, n) {
59
+ return me(e, function(l, c, m) {
60
+ t(n, l, i(l), m);
61
+ }), n;
62
+ }
63
+ function be(e, t) {
64
+ return function(i, n) {
65
+ var l = T(i) ? le : pe, c = {};
66
+ return l(i, e, ie(n), c);
67
+ };
68
+ }
69
+ var ge = be(function(e, t, i) {
70
+ U(e, i, t);
71
+ });
72
+ const z = {
73
+ BookingDetails: !0
74
+ }, he = {
75
+ features: {
76
+ default: () => z,
77
+ type: [Object, String]
78
+ },
79
+ token: { type: String }
80
+ }, I = N({
81
+ components: {
82
+ BErrorOverlay: W,
83
+ BFormattedAmount: Y,
84
+ BookingDetailsSidebar: K,
85
+ CreditCardForm: J
86
+ },
87
+ computed: {
88
+ isPayLaterForced() {
89
+ return this.booking?.payLater === B.Forced;
90
+ },
91
+ payLaterAllowed() {
92
+ return this.booking?.payLater && [
93
+ B.Enabled,
94
+ B.Forced
95
+ ].includes(this.booking?.payLater);
96
+ },
97
+ paymentMethods() {
98
+ return ge(this.booking?.paymentMethods ?? [], "name");
99
+ },
100
+ termsAndConditionsUrl() {
101
+ return this.t("CreditCardPayment.termsURL");
102
+ }
103
+ },
104
+ data: () => ({
105
+ booking: void 0,
106
+ couponErrorMessage: "",
107
+ couponId: null,
108
+ couponSuccessMessage: "",
109
+ error: "",
110
+ isCreditCardFormCompleted: !1,
111
+ isCreditCardFormMounted: !1,
112
+ isFetchingBooking: !1,
113
+ isPaymentLoading: !1,
114
+ isPaymentSuccess: !1,
115
+ isTermsAccepted: !1,
116
+ isUpdatingPaymentMethods: !1,
117
+ snackbar: !1,
118
+ termsError: !1
119
+ }),
120
+ methods: {
121
+ onCouponIdCleared() {
122
+ this.couponId = null, this.paymentMethods[u.Coupon]?.payload?.amount && this.updatePaymentMethods();
123
+ },
124
+ onCreditCardFormChange(e) {
125
+ this.isCreditCardFormCompleted = e, this.error = "";
126
+ },
127
+ onCreditCardFormError(e) {
128
+ this.error = e, this.isPaymentLoading = !1;
129
+ },
130
+ onCreditCardFormSuccess() {
131
+ this.isPaymentLoading = !1, this.isPaymentSuccess = !0, this.$eventBus.$emit(w.PaymentSuccess, this.booking);
132
+ },
133
+ async pay() {
134
+ if (this.paymentMethods[u.Coupon]?.payload?.amount === this.booking?.taxIncludedPrice) {
135
+ this.isPaymentLoading = !0, await this.bookingApiClient?.bookings.couponCharge({
136
+ couponId: this.paymentMethods[u.Coupon].payload.couponId,
137
+ id: this.booking.id
138
+ }), this.isPaymentSuccess = !0, this.$eventBus.$emit(w.PaymentSuccess, this.booking);
139
+ return;
140
+ }
141
+ if (!this.$refs.payment)
142
+ return;
143
+ this.isPaymentLoading = !0, this.$refs.payment.pay();
144
+ },
145
+ async payLater() {
146
+ try {
147
+ if (this.isPaymentLoading = !0, !this.isTermsAccepted) {
148
+ this.termsError = !0, this.isPaymentLoading = !1;
149
+ return;
150
+ }
151
+ if (!this.booking?.id) {
152
+ this.isPaymentLoading = !1;
153
+ return;
154
+ }
155
+ await this.bookingApiClient?.bookings.paylater({
156
+ id: this.booking.id
157
+ }), this.isPaymentSuccess = !0, this.$eventBus.$emit(w.PaymentSuccess, this.booking);
158
+ } catch {
159
+ this.snackbar = !0;
160
+ } finally {
161
+ this.isPaymentLoading = !1;
162
+ }
163
+ },
164
+ async retrieveBooking() {
165
+ try {
166
+ if (!this.token) {
167
+ this.booking = void 0;
168
+ return;
169
+ }
170
+ this.isFetchingBooking = !0, this.toggleCreditCardForm(!1), this.booking = await this.bookingApiClient.bookings.retrievePublic({
171
+ token: this.token
172
+ }), (!this.booking.paymentMethods || !this.booking.paymentMethods.length || this.booking.paymentMethods.length > 1) && (this.booking = await this.bookingApiClient.bookings.updatePaymentMethods({
173
+ id: this.booking.id,
174
+ paymentMethodUpdatePayloadApi: {
175
+ paymentMethods: [
176
+ {
177
+ name: u.CreditCard
178
+ }
179
+ ]
180
+ }
181
+ })), this.toggleCreditCardForm(!0), this.isFetchingBooking = !1;
182
+ } catch {
183
+ this.booking = void 0;
184
+ } finally {
185
+ this.isFetchingBooking = !1;
186
+ }
187
+ },
188
+ toggleCreditCardForm(e) {
189
+ this.error = "", this.isCreditCardFormMounted = e, this.isPaymentLoading = !e;
190
+ },
191
+ async updatePaymentMethods() {
192
+ try {
193
+ this.couponSuccessMessage = "", this.isUpdatingPaymentMethods = !0;
194
+ const e = [
195
+ {
196
+ name: u.CreditCard
197
+ }
198
+ ];
199
+ if (this.couponId && e.push({
200
+ name: u.Coupon,
201
+ payload: {
202
+ couponId: this.couponId
203
+ }
204
+ }), this.toggleCreditCardForm(!1), this.booking = await this.bookingApiClient?.bookings.updatePaymentMethods({
205
+ id: this.booking.id,
206
+ paymentMethodUpdatePayloadApi: {
207
+ paymentMethods: e
208
+ }
209
+ }), this.toggleCreditCardForm(!0), !this.paymentMethods[u.Coupon] || !this.paymentMethods[u.Coupon].payload?.amount) {
210
+ if (!this.couponId)
211
+ return;
212
+ this.couponErrorMessage = this.t(
213
+ "CreditCardPayment.paymentMethods.coupon.error"
214
+ );
215
+ } else
216
+ this.paymentMethods[u.Coupon].payload?.amount === this.booking?.taxIncludedPrice && (this.isCreditCardFormCompleted = !0), this.couponErrorMessage = "", this.couponSuccessMessage = this.t(
217
+ "CreditCardPayment.paymentMethods.coupon.success",
218
+ {
219
+ price: Z({
220
+ amount: this.paymentMethods[u.Coupon].payload.amount,
221
+ currency: this.booking?.currency
222
+ })
223
+ }
224
+ );
225
+ } catch {
226
+ this.booking = void 0;
227
+ } finally {
228
+ this.isUpdatingPaymentMethods = !1;
229
+ }
230
+ }
231
+ },
232
+ mixins: [
233
+ ee({
234
+ fallbackValue: z,
235
+ propsName: "features"
236
+ }),
237
+ te(["$i18n.locale", "bookingApiClient"], "retrieveBooking", {
238
+ immediate: !0
239
+ })
240
+ ],
241
+ name: "CreditCardPayment",
242
+ props: he,
243
+ setup() {
244
+ const { t: e } = q();
245
+ return {
246
+ t: e
247
+ };
248
+ },
249
+ watch: {
250
+ couponId() {
251
+ this.couponErrorMessage = "";
252
+ },
253
+ token: {
254
+ handler() {
255
+ return this.retrieveBooking();
256
+ },
257
+ immediate: !0
258
+ }
259
+ }
260
+ });
261
+ function S(e) {
262
+ const t = e;
263
+ t.__i18n = t.__i18n || [], t.__i18n.push({
264
+ locale: "",
265
+ resource: {
266
+ "en-US": {
267
+ CreditCardPayment: {
268
+ acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payment Methods Accepted:" } },
269
+ bookingNotFound: {
270
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Booking not found" } },
271
+ description: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "The booking you are trying to pay is not found. Please contact us for more information." } }
272
+ },
273
+ completeBookingNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Book" } },
274
+ completeBookingLater: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pay later" } },
275
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "An error occurred while processing your booking. Please try again later." } },
276
+ or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "or" } },
277
+ expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Exp. date" } },
278
+ pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total price to pay" } },
279
+ paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payment declined" } },
280
+ paymentMethods: {
281
+ coupon: {
282
+ button: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Apply" } },
283
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "The coupon code you entered is not valid or no amount left to use." } },
284
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Enter your coupon code here" } },
285
+ success: { t: 0, b: { t: 2, i: [{ t: 3, v: "Amount that will be deducted from your payment: " }, { t: 4, k: "price" }] } },
286
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Do you have a coupon code?" } }
287
+ }
288
+ },
289
+ paymentSuccess: {
290
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payment Completed Successfully" } },
291
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Thank you for your booking! You'll receive an email following your purchase with the booking details and invoice." } }
292
+ },
293
+ payLaterForced: {
294
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Confirm My Booking/I am Invited" } },
295
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: 'By clicking on "Book", your reservation request will be duly noted. A member of the Revolugo team will get back to you promptly.' } }
296
+ },
297
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Your payment method(s) won't be charged until the booking is confirmed by email." } },
298
+ termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'By continuing with your reservation you agree to the terms and conditions: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Click here to read it</a></b>' }] } },
299
+ termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } }
300
+ }
301
+ },
302
+ "fr-FR": {
303
+ CreditCardPayment: {
304
+ acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Moyens de Paiement Acceptés:" } },
305
+ bookingNotFound: {
306
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Réservation introuvable" } },
307
+ description: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "La réservation que vous essayez de payer est introuvable. Veuillez contacter le support." } }
308
+ },
309
+ completeBookingNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Réserver" } },
310
+ completeBookingLater: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payer plus tard" } },
311
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Une erreur est survenue lors du booking. Veuillez réessayer plus tard ou contacter le support." } },
312
+ or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "ou" } },
313
+ expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Date d'exp." } },
314
+ pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Montant total à régler" } },
315
+ paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Paiement refusé" } },
316
+ paymentMethods: {
317
+ coupon: {
318
+ button: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Appliquer" } },
319
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Le code coupon est invalide ou aucun montant n'est disponible pour ce code coupon." } },
320
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Saisissez votre code coupon ici" } },
321
+ success: { t: 0, b: { t: 2, i: [{ t: 3, v: "Montant déduit du montant total à payer: " }, { t: 4, k: "price" }] } },
322
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Avez-vous un code coupon ?" } }
323
+ }
324
+ },
325
+ paymentSuccess: {
326
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Paiement complété avec succès !" } },
327
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Merci pour votre réservation ! Vous recevrez un email dans les prochaines minutes suite à votre achat avec les détails de la réservation ainsi que la facture." } }
328
+ },
329
+ payLaterForced: {
330
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Confirmer ma réservation / Je suis invité" } },
331
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: `En cliquant sur "Réserver", votre demande de réservation sera bien prise en compte. Un membre de l'équipe revolugo reviendra rapidement vers vous.` } }
332
+ },
333
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Votre moyen de paiement ne sera débité qu'au moment de la confirmation de votre réservation par email" } },
334
+ termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'En poursuivant votre réservation, vous acceptez les conditions générales: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Cliquez ici pour les consulter</a></b>' }] } },
335
+ termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo_fr.pdf" } }
336
+ }
337
+ },
338
+ "de-DE": {
339
+ CreditCardPayment: {
340
+ acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Akzeptierte Zahlungsmethoden:" } },
341
+ bookingNotFound: {
342
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Buchung nicht gefunden" } },
343
+ description: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Die Buchung, die Sie bezahlen möchten, wurde nicht gefunden. Bitte kontaktieren Sie uns für weitere Informationen." } }
344
+ },
345
+ completeBookingNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Buchen" } },
346
+ completeBookingLater: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Später bezahlen" } },
347
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bei der Bearbeitung Ihrer Buchung ist ein Fehler aufgetreten. Bitte versuchen Sie es später noch einmal." } },
348
+ or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "oder" } },
349
+ expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ablaufdatum" } },
350
+ pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zu zahlender Gesamtpreis" } },
351
+ paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zahlung abgelehnt" } },
352
+ paymentMethods: {
353
+ coupon: {
354
+ button: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Anwenden" } },
355
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Der eingegebene Gutscheincode ist ungültig oder es ist kein Betrag mehr zur Verwendung verfügbar." } },
356
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Geben Sie hier Ihren Gutscheincode ein" } },
357
+ success: { t: 0, b: { t: 2, i: [{ t: 3, v: "Betrag, der von Ihrer Zahlung abgezogen wird: " }, { t: 4, k: "price" }] } },
358
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Haben Sie einen Gutscheincode?" } }
359
+ }
360
+ },
361
+ paymentSuccess: {
362
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zahlung erfolgreich abgeschlossen" } },
363
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Vielen Dank für Ihre Buchung! Sie erhalten nach Ihrem Kauf eine E-Mail mit den Buchungsdetails und der Rechnung." } }
364
+ },
365
+ payLaterForced: {
366
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Meine Buchung bestätigen/Ich bin eingeladen" } },
367
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: 'Indem Sie auf "Buchen" klicken, wird Ihre Reservierungsanfrage zur Kenntnis genommen. Ein Mitglied des Revolugo-Teams wird sich umgehend bei Ihnen melden.' } }
368
+ },
369
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ihre Zahlungsmethode(n) wird/werden erst belastet, wenn die Buchung per E-Mail bestätigt wurde." } },
370
+ termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'Indem Sie mit Ihrer Reservierung fortfahren, stimmen Sie den Allgemeinen Geschäftsbedingungen zu: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Klicken Sie hier, um sie zu lesen</a></b>' }] } },
371
+ termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } }
372
+ }
373
+ },
374
+ "es-ES": {
375
+ CreditCardPayment: {
376
+ acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Métodos de pago aceptados:" } },
377
+ bookingNotFound: {
378
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reserva no encontrada" } },
379
+ description: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "No se encuentra la reserva que intenta pagar. Póngase en contacto con nosotros para obtener más información." } }
380
+ },
381
+ completeBookingNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reservar" } },
382
+ completeBookingLater: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagar más tarde" } },
383
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Se ha producido un error al procesar su reserva. Por favor, inténtelo de nuevo más tarde." } },
384
+ or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "o" } },
385
+ expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Fecha de cad." } },
386
+ pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Precio total a pagar" } },
387
+ paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pago rechazado" } },
388
+ paymentMethods: {
389
+ coupon: {
390
+ button: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Aplicar" } },
391
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "El código de cupón que ha introducido no es válido o no queda importe para utilizar." } },
392
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Introduzca aquí su código de cupón" } },
393
+ success: { t: 0, b: { t: 2, i: [{ t: 3, v: "Importe que se deducirá de su pago: " }, { t: 4, k: "price" }] } },
394
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "¿Tiene un código de cupón?" } }
395
+ }
396
+ },
397
+ paymentSuccess: {
398
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pago completado con éxito" } },
399
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "¡Gracias por su reserva! Recibirá un correo electrónico después de su compra con los detalles de la reserva y la factura." } }
400
+ },
401
+ payLaterForced: {
402
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Confirmar mi reserva/Estoy Huésped" } },
403
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: 'Al hacer clic en "Reservar", se tomará nota de su solicitud de reserva. Un miembro del equipo de Revolugo se pondrá en contacto con usted lo antes posible.' } }
404
+ },
405
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "No se cargará su(s) método(s) de pago hasta que la reserva sea confirmada por correo electrónico." } },
406
+ termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'Al continuar con su reserva, acepta los términos y condiciones: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Haga clic aquí para leerlos</a></b>' }] } },
407
+ termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } }
408
+ }
409
+ },
410
+ "it-IT": {
411
+ CreditCardPayment: {
412
+ acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Metodi di pagamento accettati:" } },
413
+ bookingNotFound: {
414
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prenotazione non trovata" } },
415
+ description: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "La prenotazione che stai cercando di pagare non è stata trovata. Contattaci per maggiori informazioni." } }
416
+ },
417
+ completeBookingNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prenota" } },
418
+ completeBookingLater: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Paga più tardi" } },
419
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Si è verificato un errore durante l'elaborazione della tua prenotazione. Riprova più tardi." } },
420
+ or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "o" } },
421
+ expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Data scad." } },
422
+ pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prezzo totale da pagare" } },
423
+ paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagamento rifiutato" } },
424
+ paymentMethods: {
425
+ coupon: {
426
+ button: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Applica" } },
427
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Il codice coupon inserito non è valido o non è rimasto alcun importo da utilizzare." } },
428
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Inserisci qui il tuo codice coupon" } },
429
+ success: { t: 0, b: { t: 2, i: [{ t: 3, v: "Importo che verrà detratto dal tuo pagamento: " }, { t: 4, k: "price" }] } },
430
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Hai un codice coupon?" } }
431
+ }
432
+ },
433
+ paymentSuccess: {
434
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagamento completato con successo" } },
435
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Grazie per la tua prenotazione! Riceverai un'e-mail dopo l'acquisto con i dettagli della prenotazione e la fattura." } }
436
+ },
437
+ payLaterForced: {
438
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Conferma la mia prenotazione/Sono invitato" } },
439
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: 'Cliccando su "Prenota", la tua richiesta di prenotazione sarà debitamente presa in nota. Un membro del team Revolugo ti ricontatterà prontamente.' } }
440
+ },
441
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Il/i tuo/i metodo/i di pagamento non verrà/verranno addebitato/i fino a quando la prenotazione non sarà confermata via e-mail." } },
442
+ termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'Continuando con la tua prenotazione, accetti i termini e le condizioni: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Clicca qui per leggerli</a></b>' }] } },
443
+ termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } }
444
+ }
445
+ },
446
+ "nl-NL": {
447
+ CreditCardPayment: {
448
+ acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Geaccepteerde betaalmethoden:" } },
449
+ bookingNotFound: {
450
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Boeking niet gevonden" } },
451
+ description: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "De boeking die u probeert te betalen, is niet gevonden. Neem contact met ons op voor meer informatie." } }
452
+ },
453
+ completeBookingNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Boek" } },
454
+ completeBookingLater: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Later betalen" } },
455
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Er is een fout opgetreden tijdens het verwerken van uw boeking. Probeer het later opnieuw." } },
456
+ or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "of" } },
457
+ expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Vervaldatum" } },
458
+ pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Totale prijs te betalen" } },
459
+ paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Betaling geweigerd" } },
460
+ paymentMethods: {
461
+ coupon: {
462
+ button: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Toepassen" } },
463
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "De couponcode die u hebt ingevoerd, is ongeldig of er is geen bedrag meer over om te gebruiken." } },
464
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Voer hier uw couponcode in" } },
465
+ success: { t: 0, b: { t: 2, i: [{ t: 3, v: "Bedrag dat van uw betaling wordt afgetrokken: " }, { t: 4, k: "price" }] } },
466
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Heeft u een couponcode?" } }
467
+ }
468
+ },
469
+ paymentSuccess: {
470
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Betaling succesvol voltooid" } },
471
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bedankt voor uw boeking! U ontvangt na uw aankoop een e-mail met de boekingsgegevens en de factuur." } }
472
+ },
473
+ payLaterForced: {
474
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bevestig mijn boeking/Ik ben uitgenodigd" } },
475
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: 'Door op "Boek" te klikken, wordt uw reserveringsaanvraag genoteerd. Een lid van het Revolugo-team neemt zo snel mogelijk contact met u op.' } }
476
+ },
477
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Uw betaalmethode(n) wordt/worden pas belast nadat de boeking per e-mail is bevestigd." } },
478
+ termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'Door verder te gaan met uw reservering gaat u akkoord met de algemene voorwaarden: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Klik hier om ze te lezen</a></b>' }] } },
479
+ termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } }
480
+ }
481
+ },
482
+ "pt-PT": {
483
+ CreditCardPayment: {
484
+ acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Métodos de pagamento aceites:" } },
485
+ bookingNotFound: {
486
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reserva não encontrada" } },
487
+ description: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "A reserva que está a tentar pagar não foi encontrada. Por favor, contacte-nos para mais informações." } }
488
+ },
489
+ completeBookingNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reservar" } },
490
+ completeBookingLater: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagar mais tarde" } },
491
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ocorreu um erro ao processar a sua reserva. Por favor, tente novamente mais tarde." } },
492
+ or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "ou" } },
493
+ expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Data de validade" } },
494
+ pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Preço total a pagar" } },
495
+ paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagamento recusado" } },
496
+ paymentMethods: {
497
+ coupon: {
498
+ button: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Aplicar" } },
499
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "O código de cupão que introduziu não é válido ou não existe valor remanescente para utilizar." } },
500
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Introduza aqui o seu código de cupão" } },
501
+ success: { t: 0, b: { t: 2, i: [{ t: 3, v: "Valor que será deduzido do seu pagamento: " }, { t: 4, k: "price" }] } },
502
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Tem um código de cupão?" } }
503
+ }
504
+ },
505
+ paymentSuccess: {
506
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagamento concluído com sucesso" } },
507
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Obrigado pela sua reserva! Irá receber um e-mail após a sua compra com os detalhes da reserva e a fatura." } }
508
+ },
509
+ payLaterForced: {
510
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Confirmar a minha reserva/Fui convidado" } },
511
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: 'Ao clicar em "Reservar", o seu pedido de reserva será devidamente registado. Um membro da equipa Revolugo entrará em contacto consigo brevemente.' } }
512
+ },
513
+ subtitle: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "O(s) seu(s) método(s) de pagamento não será(ão) cobrado(s) até que a reserva seja confirmada por e-mail." } },
514
+ termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'Ao continuar com a sua reserva, concorda com os termos e condições: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Clique aqui para ler</a></b>' }] } },
515
+ termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } }
516
+ }
517
+ }
518
+ }
519
+ });
520
+ }
521
+ const ye = { class: "text-green" }, fe = { key: 1 }, ke = { class: "w-100 d-flex justify-space-between items-center" }, ve = ["innerHTML"], Ce = { class: "ml-1 text-caption" }, Pe = { class: "mr-1" }, we = { class: "mr-1" }, Be = { class: "mx-2" }, Me = { class: "mr-1" };
522
+ function Le(e, t, i, n, l, c) {
523
+ const m = v("BookingDetailsSidebar"), F = v("BFormattedAmount"), R = v("CreditCardForm"), D = v("BErrorOverlay");
524
+ return e.isPaymentSuccess ? (d(), p(C, {
525
+ key: 0,
526
+ elevation: "0"
527
+ }, {
528
+ default: o(() => [
529
+ a(L, { class: "py-6 d-flex flex-column justify-center align-center" }, {
530
+ default: o(() => [
531
+ a(k, {
532
+ class: "mb-4",
533
+ color: "green",
534
+ size: "x-large"
535
+ }, {
536
+ default: o(() => t[4] || (t[4] = [
537
+ b(" fas fa-check-circle ")
538
+ ])),
539
+ _: 1,
540
+ __: [4]
541
+ }),
542
+ s("h3", ye, r(e.t("CreditCardPayment.paymentSuccess.subtitle")), 1)
543
+ ]),
544
+ _: 1
545
+ })
546
+ ]),
547
+ _: 1
548
+ })) : e.booking && e.booking.id ? (d(), M("div", fe, [
549
+ a(se, {
550
+ modelValue: e.snackbar,
551
+ "onUpdate:modelValue": t[1] || (t[1] = (h) => e.snackbar = h),
552
+ color: "error",
553
+ timeout: "-1",
554
+ location: "top"
555
+ }, {
556
+ action: o(({ attrs: h }) => [
557
+ a(P, O({
558
+ color: "pink",
559
+ variant: "text"
560
+ }, h, {
561
+ onClick: t[0] || (t[0] = (Fe) => e.snackbar = !1)
562
+ }), {
563
+ default: o(() => [
564
+ a(k, null, {
565
+ default: o(() => t[5] || (t[5] = [
566
+ b(" fas fa-times ")
567
+ ])),
568
+ _: 1,
569
+ __: [5]
570
+ })
571
+ ]),
572
+ _: 2
573
+ }, 1040)
574
+ ]),
575
+ default: o(() => [
576
+ b(r(e.t("CreditCardPayment.error")) + " ", 1)
577
+ ]),
578
+ _: 1
579
+ }, 8, ["modelValue"]),
580
+ a(f, { dense: "" }, {
581
+ default: o(() => [
582
+ e.parsedFeatures.BookingDetails ? (d(), p(g, {
583
+ key: 0,
584
+ cols: "12",
585
+ lg: "4",
586
+ sm: "4",
587
+ xl: "4"
588
+ }, {
589
+ default: o(() => [
590
+ a(m, $(G(e.booking)), null, 16)
591
+ ]),
592
+ _: 1
593
+ })) : y("", !0),
594
+ a(g, {
595
+ class: j(e.parsedFeatures.BookingDetails ? "col-sm-8 col-12" : "w-100")
596
+ }, {
597
+ default: o(() => [
598
+ a(C, {
599
+ elevation: "0",
600
+ border: ""
601
+ }, {
602
+ default: o(() => [
603
+ e.parsedFeatures.BookingDetails ? y("", !0) : (d(), p(E, {
604
+ key: 0,
605
+ color: "primary",
606
+ dark: "",
607
+ dense: "",
608
+ elevation: "0"
609
+ }, {
610
+ default: o(() => [
611
+ s("h4", null, [
612
+ b(r(e.t("CreditCardPayment.pay")) + ": ", 1),
613
+ a(F, {
614
+ amount: e.booking.taxIncludedPrice,
615
+ class: "font-weight-bold",
616
+ currency: e.booking.currency
617
+ }, null, 8, ["amount", "currency"])
618
+ ])
619
+ ]),
620
+ _: 1
621
+ })),
622
+ a(L, null, {
623
+ default: o(() => [
624
+ e.isPayLaterForced ? (d(), p(C, {
625
+ key: 0,
626
+ elevation: "0",
627
+ border: "",
628
+ style: {
629
+ borderColor: "rgb(var(--v-theme-primary))"
630
+ }
631
+ }, {
632
+ default: o(() => [
633
+ a(E, {
634
+ class: "text-white",
635
+ color: "primary",
636
+ dense: "",
637
+ elevation: "0"
638
+ }, {
639
+ default: o(() => [
640
+ s("div", ke, [
641
+ s("h4", null, r(e.t("CreditCardPayment.payLaterForced.title")), 1)
642
+ ])
643
+ ]),
644
+ _: 1
645
+ }),
646
+ a(L, null, {
647
+ default: o(() => [
648
+ s("h4", null, r(e.t("CreditCardPayment.payLaterForced.subtitle")), 1)
649
+ ]),
650
+ _: 1
651
+ })
652
+ ]),
653
+ _: 1
654
+ })) : (d(), M(A, { key: 1 }, [
655
+ a(f, null, {
656
+ default: o(() => [
657
+ a(g, null, {
658
+ default: o(() => [
659
+ a(R, {
660
+ ref: "payment",
661
+ amount: e.paymentMethods.CREDIT_CARD?.payload?.amount || 0,
662
+ currency: e.booking.currency,
663
+ disabled: !e.paymentMethods.CREDIT_CARD?.payload?.amount || !e.paymentMethods.CREDIT_CARD?.payload?.token,
664
+ loading: !e.isCreditCardFormMounted,
665
+ token: e.paymentMethods.CREDIT_CARD?.payload?.token,
666
+ onChange: e.onCreditCardFormChange,
667
+ onError: e.onCreditCardFormError,
668
+ onSuccess: e.onCreditCardFormSuccess
669
+ }, null, 8, ["amount", "currency", "disabled", "loading", "token", "onChange", "onError", "onSuccess"])
670
+ ]),
671
+ _: 1
672
+ })
673
+ ]),
674
+ _: 1
675
+ }),
676
+ a(f, null, {
677
+ default: o(() => [
678
+ a(g, { class: "d-flex align-center" }, {
679
+ default: o(() => [
680
+ a(k, {
681
+ start: "",
682
+ color: "grey",
683
+ size: "small"
684
+ }, {
685
+ default: o(() => t[6] || (t[6] = [
686
+ b(" fas fa-info-circle ")
687
+ ])),
688
+ _: 1,
689
+ __: [6]
690
+ }),
691
+ s("small", null, r(e.t("CreditCardPayment.subtitle")), 1)
692
+ ]),
693
+ _: 1
694
+ })
695
+ ]),
696
+ _: 1
697
+ })
698
+ ], 64)),
699
+ a(f, { class: "mt-2" }, {
700
+ default: o(() => [
701
+ a(g, null, {
702
+ default: o(() => [
703
+ a(Q, {
704
+ ref: "testing",
705
+ modelValue: e.isTermsAccepted,
706
+ "onUpdate:modelValue": t[3] || (t[3] = (h) => e.isTermsAccepted = h),
707
+ class: "mt-0",
708
+ error: e.termsError && !e.isTermsAccepted,
709
+ color: "primary"
710
+ }, {
711
+ label: o(() => [
712
+ s("span", {
713
+ onClick: t[2] || (t[2] = H(() => {
714
+ }, ["stop"])),
715
+ innerHTML: e.t("CreditCardPayment.termsAndConditions", {
716
+ url: e.termsAndConditionsUrl
717
+ })
718
+ }, null, 8, ve)
719
+ ]),
720
+ _: 1
721
+ }, 8, ["modelValue", "error"])
722
+ ]),
723
+ _: 1
724
+ })
725
+ ]),
726
+ _: 1
727
+ })
728
+ ]),
729
+ _: 1
730
+ }),
731
+ a(ne, { class: "mt-n6" }, {
732
+ default: o(() => [
733
+ a(f, {
734
+ align: "end",
735
+ class: "flex-column flex-sm-row",
736
+ "no-gutters": ""
737
+ }, {
738
+ default: o(() => [
739
+ a(g, null, {
740
+ default: o(() => [
741
+ s("small", Ce, r(e.t("CreditCardPayment.acceptedPaymentMethods")), 1),
742
+ a(de, {
743
+ class: "mt-n1",
744
+ height: "45",
745
+ src: "https://revolugo.s3.eu-west-3.amazonaws.com/payment-methods.png",
746
+ width: "240"
747
+ })
748
+ ]),
749
+ _: 1
750
+ }),
751
+ a(g, { class: "d-flex justify-end flex-column flex-sm-row mb-1 align-center mt-4 mt-sm-0" }, {
752
+ default: o(() => [
753
+ e.isPayLaterForced ? (d(), p(P, {
754
+ key: 0,
755
+ class: "w-100 w-sm-auto",
756
+ color: "primary",
757
+ disabled: e.isPaymentLoading || !e.isTermsAccepted,
758
+ loading: e.isPaymentLoading,
759
+ variant: "outlined",
760
+ onClick: e.payLater
761
+ }, {
762
+ default: o(() => [
763
+ s("span", Pe, r(e.t("CreditCardPayment.completeBookingNow")), 1)
764
+ ]),
765
+ _: 1
766
+ }, 8, ["disabled", "loading", "onClick"])) : e.payLaterAllowed ? (d(), M(A, { key: 1 }, [
767
+ a(P, {
768
+ class: "w-100 w-sm-auto",
769
+ color: "primary",
770
+ disabled: e.isPaymentLoading || !e.isTermsAccepted,
771
+ loading: e.isPaymentLoading,
772
+ variant: "outlined",
773
+ onClick: e.payLater
774
+ }, {
775
+ default: o(() => [
776
+ a(k, {
777
+ start: "",
778
+ class: "ml-1"
779
+ }, {
780
+ default: o(() => t[7] || (t[7] = [
781
+ b(" fas fa-clock ")
782
+ ])),
783
+ _: 1,
784
+ __: [7]
785
+ }),
786
+ s("span", we, r(e.t("CreditCardPayment.completeBookingLater")), 1),
787
+ e.isPayLaterForced ? y("", !0) : (d(), p(F, {
788
+ key: 0,
789
+ amount: e.booking.taxIncludedPrice,
790
+ class: "font-weight-bold",
791
+ currency: e.booking.currency
792
+ }, null, 8, ["amount", "currency"]))
793
+ ]),
794
+ _: 1
795
+ }, 8, ["disabled", "loading", "onClick"]),
796
+ s("span", Be, r(e.t("CreditCardPayment.or")), 1)
797
+ ], 64)) : y("", !0),
798
+ e.isPayLaterForced ? y("", !0) : (d(), p(P, {
799
+ key: 2,
800
+ class: "w-100 w-sm-auto",
801
+ color: "primary",
802
+ variant: "flat",
803
+ disabled: e.isPaymentLoading || !e.isTermsAccepted || !e.isCreditCardFormCompleted || e.isUpdatingPaymentMethods,
804
+ loading: e.isPaymentLoading,
805
+ onClick: e.pay
806
+ }, {
807
+ default: o(() => [
808
+ a(k, {
809
+ start: "",
810
+ class: "ml-1"
811
+ }, {
812
+ default: o(() => t[8] || (t[8] = [
813
+ b(" fas fa-lock ")
814
+ ])),
815
+ _: 1,
816
+ __: [8]
817
+ }),
818
+ s("span", Me, r(e.t("CreditCardPayment.completeBookingNow")), 1)
819
+ ]),
820
+ _: 1
821
+ }, 8, ["disabled", "loading", "onClick"]))
822
+ ]),
823
+ _: 1
824
+ })
825
+ ]),
826
+ _: 1
827
+ })
828
+ ]),
829
+ _: 1
830
+ })
831
+ ]),
832
+ _: 1
833
+ })
834
+ ]),
835
+ _: 1
836
+ }, 8, ["class"])
837
+ ]),
838
+ _: 1
839
+ })
840
+ ])) : e.isFetchingBooking ? (d(), p(C, {
841
+ key: 2,
842
+ class: "mx-auto",
843
+ elevation: "0",
844
+ height: "350px",
845
+ width: "100%"
846
+ }, {
847
+ default: o(() => [
848
+ a(x, {
849
+ absolute: "",
850
+ class: "align-center justify-center",
851
+ opacity: "0.1"
852
+ }, {
853
+ default: o(() => [
854
+ a(re, {
855
+ color: "primary",
856
+ indeterminate: "",
857
+ size: "64"
858
+ })
859
+ ]),
860
+ _: 1
861
+ })
862
+ ]),
863
+ _: 1
864
+ })) : (d(), p(D, {
865
+ key: 3,
866
+ "min-height": "200px"
867
+ }, {
868
+ title: o(() => [
869
+ b(r(e.t("CreditCardPayment.bookingNotFound.title")), 1)
870
+ ]),
871
+ description: o(() => [
872
+ b(r(e.t("CreditCardPayment.bookingNotFound.description")), 1)
873
+ ]),
874
+ _: 1
875
+ }));
876
+ }
877
+ typeof S == "function" && S(I);
878
+ const Ge = /* @__PURE__ */ X(I, [["render", Le], ["__scopeId", "data-v-fa4fcd2f"]]);
879
+ V("css/revolugo.creditcardpayment.D2PE5FCt.css");
880
+ export {
881
+ Ge as C,
882
+ z as a,
883
+ he as c
884
+ };
885
+ //# sourceMappingURL=revolugo.creditcardpayment.CkfC2xTo.min.js.map