@revolugo/elements 6.8.3-beta.2 → 6.8.3-beta.20

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 (182) hide show
  1. package/dist/css/fonts.css +1 -1
  2. package/dist/css/revolugo.cancellationpoliciesbadge.BF6W5Rkn.css +1 -0
  3. package/dist/css/{revolugo.webcomponentwrapper.cFJPP6Rp.css → revolugo.webcomponentwrapper.CLc1qFgq.css} +1 -1
  4. package/dist/index.es.min.js +1 -0
  5. package/dist/index.es.min.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist/revolugo.banktransferdetails.BySITPec.min.js +36 -0
  9. package/dist/revolugo.bookingdetailssidebar.BYzRYS22.min.js +37 -0
  10. package/dist/revolugo.bookingmanager.nw9gGNh_.min.js +24 -0
  11. package/dist/revolugo.cancellationpoliciesbadge.BeG993YZ.min.js +24 -0
  12. package/dist/revolugo.cancellationpoliciesbadge.props.Dr18g1D_.min.js +31886 -0
  13. package/dist/revolugo.cancellationpolicieslist.Ds8oi3Ea.min.js +24 -0
  14. package/dist/revolugo.creditcardform.By79p0Bj.min.js +24 -0
  15. package/dist/revolugo.creditcardpayment.DvO9zT4V.min.js +24 -0
  16. package/dist/revolugo.currencypickerbtn.CLC1mWT8.min.js +24 -0
  17. package/dist/revolugo.fastbookingflow.Di2jU8_z.min.js +34 -0
  18. package/dist/revolugo.fullbookingflow.DCtMc-R_.min.js +24 -0
  19. package/dist/revolugo.hoteldescriptionview.BjSUnjIh.min.js +24 -0
  20. package/dist/revolugo.hotelofferlist.DAIv1qMO.min.js +24 -0
  21. package/dist/revolugo.hoteloffersearchmenu.wFDKLBxy.min.js +71 -0
  22. package/dist/revolugo.hoteloffersmap.BKHy0T4U.min.js +24 -0
  23. package/dist/revolugo.hoteloffersview.V2L1odGh.min.js +19 -0
  24. package/dist/revolugo.hotelroomofferlist.Kxi2PaU-.min.js +24 -0
  25. package/dist/revolugo.hotelroomoffersbookingflow.DVwHWQoy.min.js +24 -0
  26. package/dist/revolugo.hotelroomoffersearchmenu.CzlGeOLh.min.js +24 -0
  27. package/dist/revolugo.hotelroomoffersview.b_5VDEUw.min.js +24 -0
  28. package/dist/{revolugo.index.wc.C1h_M397.min.js → revolugo.index.wc.CH4CMunP.min.js} +5866 -5933
  29. package/dist/revolugo.langpickerbtn.DMvledll.min.js +29 -0
  30. package/dist/revolugo.min.js +1 -1
  31. package/dist/revolugo.prebookform.Ct2YhDa5.min.js +24 -0
  32. package/dist/revolugo.roominglisteditor.BAH1K08N.min.js +24 -0
  33. package/dist/revolugo.storybooktoolbar.DRJbNUi1.min.js +845 -0
  34. package/dist/revolugo.termsandconditions.D7d-mv52.min.js +23 -0
  35. package/dist/revolugo.webcomponentwrapper.umNfPHAE.min.js +28713 -0
  36. package/package.json +1 -1
  37. package/dist/css/revolugo.bdaterangepicker.B6KA5TYs.css +0 -1
  38. package/dist/css/revolugo.bhoteloffersfilterbar.CekxoJmW.css +0 -1
  39. package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +0 -1
  40. package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +0 -1
  41. package/dist/css/revolugo.bookingdetailssidebar.CNP_D5F3.css +0 -1
  42. package/dist/css/revolugo.bstarrating.CPHKEfup.css +0 -1
  43. package/dist/css/revolugo.btag.T7X_iIkW.css +0 -1
  44. package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +0 -1
  45. package/dist/css/revolugo.creditcardform.DWne0Lnv.css +0 -1
  46. package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +0 -1
  47. package/dist/css/revolugo.currencypicker.DO0IrmRK.css +0 -1
  48. package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +0 -1
  49. package/dist/css/revolugo.hoteldescriptionview.Dfi-84To.css +0 -1
  50. package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +0 -1
  51. package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +0 -1
  52. package/dist/css/revolugo.hoteloffersmap.Cp2vN-VQ.css +0 -1
  53. package/dist/css/revolugo.hoteloffersview.Xw1flMYo.css +0 -1
  54. package/dist/css/revolugo.hotelroomofferlist.BYvQZ5P2.css +0 -1
  55. package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +0 -1
  56. package/dist/css/revolugo.index.DK7d_h6O.css +0 -1
  57. package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +0 -1
  58. package/dist/css/revolugo.prebookform.DmCR7hLv.css +0 -1
  59. package/dist/css/revolugo.termsandconditions.D8IMR9da.css +0 -1
  60. package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +0 -1
  61. package/dist/css/revolugo.vbadge.C45eZpxy.css +0 -1
  62. package/dist/css/revolugo.vbtn.DpMO1Ky2.css +0 -1
  63. package/dist/css/revolugo.vcard.TERzfknI.css +0 -1
  64. package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +0 -1
  65. package/dist/css/revolugo.vdialog.DwTSAOeg.css +0 -1
  66. package/dist/css/revolugo.vdivider.CTbbZwnv.css +0 -1
  67. package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +0 -1
  68. package/dist/css/revolugo.vicon.eIkh7vVK.css +0 -1
  69. package/dist/css/revolugo.vinput.BPiFMorL.css +0 -1
  70. package/dist/css/revolugo.vlabel.BvKaKg7Y.css +0 -1
  71. package/dist/css/revolugo.vlist.-Y4qkukF.css +0 -1
  72. package/dist/css/revolugo.vmenu.DvKwEp1j.css +0 -1
  73. package/dist/css/revolugo.vselect.C5CKHFYB.css +0 -1
  74. package/dist/css/revolugo.vsheet.Dmcoj8cr.css +0 -1
  75. package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +0 -1
  76. package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +0 -1
  77. package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +0 -1
  78. package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +0 -1
  79. package/dist/css/revolugo.vtextfield.BIH_AWWP.css +0 -1
  80. package/dist/css/revolugo.vtoolbar.BZert82L.css +0 -1
  81. package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +0 -1
  82. package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +0 -1
  83. package/dist/revolugo._baseiteratee.Dil0w9e0.min.js +0 -247
  84. package/dist/revolugo.banktransferdetails.DiwVMsA1.min.js +0 -373
  85. package/dist/revolugo.bdaterangepicker.DDEGZVT0.min.js +0 -8324
  86. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.CPnoXVaZ.min.js +0 -143
  87. package/dist/revolugo.bhoteloffersfilterbar.B_hcAZxX.min.js +0 -4896
  88. package/dist/revolugo.bhotelroomsdetails.DDHY2lbs.min.js +0 -965
  89. package/dist/revolugo.bimagecarousel.DpROkQNr.min.js +0 -566
  90. package/dist/revolugo.bookingdetailssidebar.5S5oPc1U.min.js +0 -24
  91. package/dist/revolugo.bookingdetailssidebar.l8IDCkox.min.js +0 -866
  92. package/dist/revolugo.bookingmanager.-BQEM4EN.min.js +0 -1755
  93. package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.BzDggP5H.min.js +0 -91
  94. package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CQgG-2B5.min.js +0 -604
  95. package/dist/revolugo.btag.yxmSLIpZ.min.js +0 -375
  96. package/dist/revolugo.cancellationpoliciesbadge.3dDx89si.min.js +0 -28
  97. package/dist/revolugo.cancellationpoliciesbadge.Bu_3zPF6.min.js +0 -198
  98. package/dist/revolugo.cancellationpolicieslist.D558ZjJj.min.js +0 -25
  99. package/dist/revolugo.cancellationpolicieslist.EOsSrPjA.min.js +0 -148
  100. package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +0 -21
  101. package/dist/revolugo.case-transformers.DGnXS0Cp.min.js +0 -123
  102. package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
  103. package/dist/revolugo.creditcardform.DZXQZuRo.min.js +0 -2148
  104. package/dist/revolugo.creditcardform.DkLcGTUe.min.js +0 -24
  105. package/dist/revolugo.creditcardpayment.BCKTbLQO.min.js +0 -24
  106. package/dist/revolugo.creditcardpayment.DS5TEf7I.min.js +0 -885
  107. package/dist/revolugo.currencypicker.DzOZVdqj.min.js +0 -330
  108. package/dist/revolugo.currencypickerbtn.BFa4yMym.min.js +0 -24
  109. package/dist/revolugo.currencypickerbtn.XX3uUfVo.min.js +0 -157
  110. package/dist/revolugo.dates.BZrB2-ya.min.js +0 -31
  111. package/dist/revolugo.defaultsdeep.DkkJx-tU.min.js +0 -104
  112. package/dist/revolugo.dialog-attach.Cr22Se10.min.js +0 -27
  113. package/dist/revolugo.dialog-transition.D5NECTJF.min.js +0 -111
  114. package/dist/revolugo.fastbookingflow.BzBjZ3LE.min.js +0 -34
  115. package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +0 -70
  116. package/dist/revolugo.fullbookingflow.DdY_jXGE.min.js +0 -429
  117. package/dist/revolugo.hotel-offer-request.D14Rm4x5.min.js +0 -98
  118. package/dist/revolugo.hoteldescriptionview.BgYZ2vmV.min.js +0 -24
  119. package/dist/revolugo.hoteldescriptionview.C_jOcLK_.min.js +0 -2955
  120. package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.B7oYjB-Q.min.js +0 -241
  121. package/dist/revolugo.hotelofferlist.BYkJEK3j.min.js +0 -5639
  122. package/dist/revolugo.hotelofferlist.Dko1gIDn.min.js +0 -24
  123. package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +0 -44
  124. package/dist/revolugo.hoteloffersearchmenu.B8ncJahc.min.js +0 -202
  125. package/dist/revolugo.hoteloffersearchmenuui.C1nrtxip.min.js +0 -829
  126. package/dist/revolugo.hoteloffersmap.CRI3Jttb.min.js +0 -8329
  127. package/dist/revolugo.hoteloffersmap.D_lQobL7.min.js +0 -24
  128. package/dist/revolugo.hoteloffersview.1h25yRqJ.min.js +0 -614
  129. package/dist/revolugo.hoteloffersview.DzB-e4H1.min.js +0 -19
  130. package/dist/revolugo.hotelroomofferlist.CDSzTTou.min.js +0 -24
  131. package/dist/revolugo.hotelroomofferlist.DdmwJDYN.min.js +0 -2811
  132. package/dist/revolugo.hotelroomofferrequestcreator.props.C_frxq0W.min.js +0 -171
  133. package/dist/revolugo.hotelroomoffersbookingflow.76yvftsv.min.js +0 -1281
  134. package/dist/revolugo.hotelroomoffersearchmenu.BJTJFnmG.min.js +0 -25
  135. package/dist/revolugo.hotelroomoffersearchmenu.D6Vyfjfp.min.js +0 -231
  136. package/dist/revolugo.hotelroomoffersview.CkGUZ5LE.min.js +0 -290
  137. package/dist/revolugo.hotelroomoffersview.CrexMnSs.min.js +0 -24
  138. package/dist/revolugo.index.3XJPtYDq.min.js +0 -67
  139. package/dist/revolugo.index.Cgeh5pQG.min.js +0 -1232
  140. package/dist/revolugo.langpicker.BEu5Dcmi.min.js +0 -99
  141. package/dist/revolugo.langpickerbtn.CIldopN_.min.js +0 -131
  142. package/dist/revolugo.langpickerbtn.PS3df2DW.min.js +0 -29
  143. package/dist/revolugo.pathify.DvfN0v8G.min.js +0 -36
  144. package/dist/revolugo.prebookform.CQkoP-VV.min.js +0 -1527
  145. package/dist/revolugo.prebookform.CV1s2FGH.min.js +0 -24
  146. package/dist/revolugo.roominglisteditor.8ernakg_.min.js +0 -385
  147. package/dist/revolugo.roominglisteditor.DxJ2OBqY.min.js +0 -24
  148. package/dist/revolugo.rounded.BOHYNseH.min.js +0 -68
  149. package/dist/revolugo.ssrboot.DElAuRmu.min.js +0 -18
  150. package/dist/revolugo.storybooktoolbar.CHfZ7EvT.min.js +0 -881
  151. package/dist/revolugo.termsandconditions.BvRlB7pE.min.js +0 -405
  152. package/dist/revolugo.termsandconditions.r61WJG2h.min.js +0 -23
  153. package/dist/revolugo.use-breakpoint-service.BXTJsL7a.min.js +0 -39
  154. package/dist/revolugo.use-dialog-attach._Ffb31mm.min.js +0 -16
  155. package/dist/revolugo.use-html-element.DTDLV1SN.min.js +0 -11
  156. package/dist/revolugo.vautocomplete.CQYvC8_q.min.js +0 -445
  157. package/dist/revolugo.vbadge.Dqf0g4rP.min.js +0 -112
  158. package/dist/revolugo.vbtn.1GlaUjid.min.js +0 -398
  159. package/dist/revolugo.vcard.BkeYpsDj.min.js +0 -313
  160. package/dist/revolugo.vcheckboxbtn.B-9q-Vt_.min.js +0 -478
  161. package/dist/revolugo.vdialog.BtJzWlDm.min.js +0 -133
  162. package/dist/revolugo.vdivider.DjAkTZXY.min.js +0 -77
  163. package/dist/revolugo.vexpansionpanels.ChRz3Vw3.min.js +0 -262
  164. package/dist/revolugo.vform.BfCyAbBX.min.js +0 -46
  165. package/dist/revolugo.vicon.0J-whoPd.min.js +0 -105
  166. package/dist/revolugo.vinput.DruJiU7m.min.js +0 -463
  167. package/dist/revolugo.vlabel.DrAIoL0X.min.js +0 -48
  168. package/dist/revolugo.vlist.DSr8wDRX.min.js +0 -1299
  169. package/dist/revolugo.vmenu.DnNDzmnm.min.js +0 -145
  170. package/dist/revolugo.vselect.V-p2AqIC.min.js +0 -660
  171. package/dist/revolugo.vsheet.Bq0fXKd0.min.js +0 -72
  172. package/dist/revolugo.vskeletonloader.CGHKwSZc.min.js +0 -136
  173. package/dist/revolugo.vslidegroup.CfQX__qs.min.js +0 -325
  174. package/dist/revolugo.vsnackbar.Dv0mQ14N.min.js +0 -198
  175. package/dist/revolugo.vspacer.DqyaaVSV.min.js +0 -7
  176. package/dist/revolugo.vtextarea.CYUE9_OL.min.js +0 -2092
  177. package/dist/revolugo.vtextfield.DVdqMySD.min.js +0 -501
  178. package/dist/revolugo.vtoolbar.CvvYVWAF.min.js +0 -180
  179. package/dist/revolugo.vtooltip.Cc-DGbrS.min.js +0 -89
  180. package/dist/revolugo.vwindowitem._RpClcFn.min.js +0 -317
  181. package/dist/revolugo.watch-list.Bg0Ch7_v.min.js +0 -16
  182. package/dist/revolugo.webcomponentwrapper.BMVPGxCQ.min.js +0 -2088
@@ -1,1281 +0,0 @@
1
- import { a as Ve, h as Ee, H as Be } from "./revolugo.hotelroomoffersview.CkGUZ5LE.min.js";
2
- import { P as Oe, p as Ie, a as Te } from "./revolugo.prebookform.CQkoP-VV.min.js";
3
- import { G as Re, d as x, al as Ce, u as _e, E as S, a2 as V, a1 as _, ag as Fe, a as t, H as d, J as Me, aH as De, a3 as P, an as He, a6 as Le, D as C, aa as $e, aU as Ae, aY as Ne, aZ as J, aV as ze, a_ as We, aW as qe, F as pe, c as g, w as i, i as X, B as Ue, g as B, e as f, f as y, t as h, r as T, aX as Ge, o as p, n as xe, h as Ye } from "./revolugo.index.wc.C1h_M397.min.js";
4
- import { a as je } from "./revolugo.hotelroomoffersearchmenu.D6Vyfjfp.min.js";
5
- import { C as Ke } from "./revolugo.creditcardpayment.DS5TEf7I.min.js";
6
- import { p as Ze } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CQgG-2B5.min.js";
7
- import { s as Q } from "./revolugo.common.D-l8b0V5.min.js";
8
- import { a as ee } from "./revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.CPnoXVaZ.min.js";
9
- import { u as F, _ as fe, V as O, a as w, W as Je } from "./revolugo.webcomponentwrapper.BMVPGxCQ.min.js";
10
- import { V as I } from "./revolugo.vicon.0J-whoPd.min.js";
11
- import { a as z } from "./revolugo.vbtn.1GlaUjid.min.js";
12
- import { V as te } from "./revolugo.vsnackbar.Dv0mQ14N.min.js";
13
- import { a as oe, c as Xe, R as Qe, u as et, g as tt, h as ot, i as st, j as it, k as nt } from "./revolugo.index.Cgeh5pQG.min.js";
14
- import { V as se, m as at, a as ie, b as rt } from "./revolugo.vwindowitem._RpClcFn.min.js";
15
- import { V as ne, m as lt } from "./revolugo.vsheet.Bq0fXKd0.min.js";
16
- import { V as G } from "./revolugo.vdivider.DjAkTZXY.min.js";
17
- import { V as ut } from "./revolugo.vcheckboxbtn.B-9q-Vt_.min.js";
18
- function Pe(e) {
19
- try {
20
- if (typeof document < "u") {
21
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
22
- sheets: [],
23
- components: []
24
- };
25
- const o = import.meta.url, s = o.slice(0, o.lastIndexOf("/") + 1) + e;
26
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(s);
27
- for (const n of REVOLUGO_ELEMENTS_STYLES.components)
28
- n(s);
29
- if (e.indexOf("fonts") >= 0) {
30
- const n = document.createElement("link");
31
- n.rel = "stylesheet", linK.href = s, document.head.appendChild(n);
32
- }
33
- }
34
- } catch (o) {
35
- console.error("[revolugo-elements] ", o);
36
- }
37
- }
38
- const he = {
39
- HotelRoomOffersView: Ve,
40
- PrebookForm: Oe
41
- }, ve = {
42
- ...Ee,
43
- ...Re(Ie, ["bookingId", "bookingPolicyId", "hotelRoomOffer"]),
44
- features: {
45
- default: () => he,
46
- type: [Object, String]
47
- }
48
- }, L = 1e3, $ = 60 * L, A = 60 * $, ae = 24 * A, re = "abort", le = "end", ue = "progress", ce = "start", de = "visibilitychange", ct = x({
49
- beforeUnmount() {
50
- document.removeEventListener(
51
- de,
52
- this.handleVisibilityChange
53
- ), this.pause();
54
- },
55
- computed: {
56
- /**
57
- * Remaining days.
58
- * @returns {number} The computed value.
59
- */
60
- days() {
61
- return Math.floor(this.totalMilliseconds / ae);
62
- },
63
- /**
64
- * Remaining hours.
65
- * @returns {number} The computed value.
66
- */
67
- hours() {
68
- return Math.floor(
69
- this.totalMilliseconds % ae / A
70
- );
71
- },
72
- /**
73
- * Remaining milliseconds.
74
- * @returns {number} The computed value.
75
- */
76
- milliseconds() {
77
- return Math.floor(this.totalMilliseconds % L);
78
- },
79
- /**
80
- * Remaining minutes.
81
- * @returns {number} The computed value.
82
- */
83
- minutes() {
84
- return Math.floor(
85
- this.totalMilliseconds % A / $
86
- );
87
- },
88
- /**
89
- * Remaining seconds.
90
- * @returns {number} The computed value.
91
- */
92
- seconds() {
93
- return Math.floor(
94
- this.totalMilliseconds % $ / L
95
- );
96
- },
97
- /**
98
- * Total remaining days.
99
- * @returns {number} The computed value.
100
- */
101
- totalDays() {
102
- return this.days;
103
- },
104
- /**
105
- * Total remaining hours.
106
- * @returns {number} The computed value.
107
- */
108
- totalHours() {
109
- return Math.floor(this.totalMilliseconds / A);
110
- },
111
- /**
112
- * Total remaining minutes.
113
- * @returns {number} The computed value.
114
- */
115
- totalMinutes() {
116
- return Math.floor(this.totalMilliseconds / $);
117
- },
118
- /**
119
- * Total remaining seconds.
120
- * @returns {number} The computed value.
121
- */
122
- totalSeconds() {
123
- return Math.floor(this.totalMilliseconds / L);
124
- }
125
- },
126
- data() {
127
- return {
128
- /**
129
- * Automatically pause the countdown when the document is hidden.
130
- * @type {boolean}
131
- */
132
- autoPauseOnHide: !1,
133
- /**
134
- * It is counting down.
135
- * @type {boolean}
136
- */
137
- counting: !1,
138
- /**
139
- * The absolute end time.
140
- * @type {number}
141
- */
142
- endTime: 0,
143
- /**
144
- * The request ID of the requestAnimationFrame.
145
- * @type {number}
146
- */
147
- requestId: 0,
148
- /**
149
- * The remaining milliseconds.
150
- * @type {number}
151
- */
152
- totalMilliseconds: 0
153
- };
154
- },
155
- emits: [re, le, ue, ce],
156
- methods: {
157
- /**
158
- * Aborts the countdown.
159
- * @public
160
- * @emits Countdown#abort
161
- */
162
- abort() {
163
- this.counting && (this.pause(), this.counting = !1, this.emitEvents && this.$emit(re));
164
- },
165
- /**
166
- * Continues the countdown.
167
- * @private
168
- */
169
- continue() {
170
- if (!this.counting)
171
- return;
172
- const e = Math.min(this.totalMilliseconds, this.interval);
173
- if (e > 0) {
174
- let o, s;
175
- const n = (a) => {
176
- o || (o = a), s || (s = a);
177
- const r = a - o;
178
- r >= e || // Avoid losing time about one second per minute (now - prev ≈ 16ms) (#43)
179
- r + (a - s) / 2 >= e ? this.progress() : this.requestId = requestAnimationFrame(n), s = a;
180
- };
181
- this.requestId = requestAnimationFrame(n);
182
- } else
183
- this.end();
184
- },
185
- /**
186
- * Ends the countdown.
187
- * @public
188
- * @emits Countdown#end
189
- */
190
- end() {
191
- this.counting && (this.pause(), this.totalMilliseconds = 0, this.counting = !1, this.emitEvents && this.$emit(le));
192
- },
193
- /**
194
- * visibility change event handler.
195
- * @private
196
- */
197
- handleVisibilityChange() {
198
- switch (document.visibilityState) {
199
- case "visible":
200
- this.requestId === 0 && this.autoPauseOnHide && (this.update(), this.continue()), this.autoPauseOnHide = !1;
201
- break;
202
- case "hidden":
203
- this.requestId > 0 && (this.autoPauseOnHide = !0, this.pause());
204
- break;
205
- }
206
- },
207
- /**
208
- * Pauses the countdown.
209
- * @private
210
- */
211
- pause() {
212
- cancelAnimationFrame(this.requestId), this.requestId = 0;
213
- },
214
- /**
215
- * Progresses to countdown.
216
- * @private
217
- * @emits Countdown#progress
218
- */
219
- progress() {
220
- this.counting && (this.update(), this.emitEvents && this.totalMilliseconds > 0 && this.$emit(ue, {
221
- days: this.days,
222
- hours: this.hours,
223
- milliseconds: this.milliseconds,
224
- minutes: this.minutes,
225
- seconds: this.seconds,
226
- totalDays: this.totalDays,
227
- totalHours: this.totalHours,
228
- totalMilliseconds: this.totalMilliseconds,
229
- totalMinutes: this.totalMinutes,
230
- totalSeconds: this.totalSeconds
231
- }), this.continue());
232
- },
233
- /**
234
- * Restarts the count.
235
- * @public
236
- */
237
- restart() {
238
- this.pause(), this.totalMilliseconds = this.time, this.endTime = this.now() + this.time, this.counting = !1, this.start();
239
- },
240
- /**
241
- * Starts to countdown.
242
- * @public
243
- * @emits Countdown#start
244
- */
245
- start() {
246
- this.counting || (this.counting = !0, this.autoStart || (this.totalMilliseconds = this.time, this.endTime = this.now() + this.time), this.emitEvents && this.$emit(ce), document.visibilityState === "visible" && this.continue());
247
- },
248
- /**
249
- * Updates the count.
250
- * @private
251
- */
252
- update() {
253
- this.counting && (this.totalMilliseconds = Math.max(0, this.endTime - this.now()));
254
- }
255
- },
256
- mounted() {
257
- document.addEventListener(
258
- de,
259
- this.handleVisibilityChange
260
- );
261
- },
262
- name: "VueCountdown",
263
- props: {
264
- /**
265
- * Starts the countdown automatically when initialized.
266
- */
267
- autoStart: {
268
- default: !0,
269
- type: Boolean
270
- },
271
- /**
272
- * Emits the countdown events.
273
- */
274
- emitEvents: {
275
- default: !0,
276
- type: Boolean
277
- },
278
- /**
279
- * The interval time (in milliseconds) of the countdown progress.
280
- */
281
- interval: {
282
- default: 1e3,
283
- type: Number,
284
- validator: (e) => e >= 0
285
- },
286
- /**
287
- * Generate the current time of a specific time zone.
288
- */
289
- now: {
290
- default: () => Date.now(),
291
- type: Function
292
- },
293
- /**
294
- * The tag name of the component's root element.
295
- */
296
- tag: {
297
- default: "span",
298
- type: String
299
- },
300
- /**
301
- * The time (in milliseconds) to count down from.
302
- */
303
- time: {
304
- default: 0,
305
- type: Number,
306
- validator: (e) => e >= 0
307
- },
308
- /**
309
- * Transforms the output props before rendering.
310
- */
311
- transform: {
312
- default: (e) => e,
313
- type: Function
314
- }
315
- },
316
- render() {
317
- return Ce(
318
- this.tag,
319
- this.$slots.default ? [
320
- this.$slots.default(
321
- this.transform({
322
- days: this.days,
323
- hours: this.hours,
324
- milliseconds: this.milliseconds,
325
- minutes: this.minutes,
326
- seconds: this.seconds,
327
- totalDays: this.totalDays,
328
- totalHours: this.totalHours,
329
- totalMilliseconds: this.totalMilliseconds,
330
- totalMinutes: this.totalMinutes,
331
- totalSeconds: this.totalSeconds
332
- })
333
- )
334
- ] : void 0
335
- );
336
- },
337
- watch: {
338
- $props: {
339
- deep: !0,
340
- /**
341
- * Update the countdown when props changed.
342
- */
343
- handler() {
344
- this.totalMilliseconds = this.time, this.endTime = this.now() + this.time, this.autoStart && this.start();
345
- },
346
- immediate: !0
347
- }
348
- }
349
- });
350
- var ge = /* @__PURE__ */ ((e) => (e[e.Idle = 1] = "Idle", e[e.Payment = 3] = "Payment", e[e.PaymentRequested = 4] = "PaymentRequested", e[e.PaymentSuccessful = 5] = "PaymentSuccessful", e[e.PreBook = 2] = "PreBook", e))(ge || {});
351
- const be = x({
352
- components: {
353
- CreditCardPayment: Ke,
354
- HotelRoomOffersView: Be,
355
- PrebookForm: Te,
356
- VueCountdown: ct
357
- },
358
- computed: {
359
- backButtonLabel() {
360
- return [
361
- 2,
362
- 3
363
- /* Payment */
364
- ].includes(this.step) ? this.t("HotelRoomOffersBookingFlow.back") : this.t("HotelRoomOffersBookingFlow.makeNewBooking");
365
- },
366
- hotelRoomOffersViewProps() {
367
- const e = {
368
- ...this.lastRequest,
369
- ...this.$props,
370
- features: this.$props.features?.HotelRoomOffersView
371
- };
372
- return this.bookingPolicy && (e.adultCount = this.bookingPolicy.adultCount, e.children = this.bookingPolicy.children ?? null, e.checkInDate = this.bookingPolicy.checkInDate, e.checkOutDate = this.bookingPolicy.checkOutDate), e;
373
- },
374
- isWarningSnackarDisplayed() {
375
- return this.warningSnackbarMessages.length > 0;
376
- },
377
- prebookFormProps() {
378
- const e = {
379
- ...this.$props,
380
- ...this.lastRequest,
381
- ...this.formdata,
382
- features: this.$props.features?.PrebookForm
383
- };
384
- return this.bookingPolicy && (e.adultCount = this.bookingPolicy.adultCount, e.children = this.bookingPolicy.children ?? null, e.checkInDate = this.bookingPolicy.checkInDate, e.checkOutDate = this.bookingPolicy.checkOutDate), e;
385
- },
386
- transitionName() {
387
- return this.direction > 0 ? "slide-in" : "slide-out";
388
- }
389
- },
390
- created() {
391
- this.$eventBus.$on(
392
- S.BookingPolicyCreated,
393
- this.onBookingPolicyCreated
394
- ), this.$eventBus.$on(
395
- S.HotelRoomOffersPriceIncreased,
396
- ([e, o]) => {
397
- this.warningSnackbarMessages.push(
398
- this.t("HotelRoomOffersBookingFlow.warnings.price", {
399
- from: ee({
400
- amount: o.taxIncludedPrice,
401
- currency: this.config.currency,
402
- locale: this.$i18n.locale
403
- }),
404
- to: ee({
405
- amount: e.taxIncludedPrice,
406
- currency: this.config.currency,
407
- locale: this.$i18n.locale
408
- })
409
- }).toString()
410
- );
411
- }
412
- ), this.$eventBus.$on(S.CancellationPoliciesUpdated, () => {
413
- this.warningSnackbarMessages.push(
414
- this.t(
415
- "HotelRoomOffersBookingFlow.warnings.cancellationPolicies"
416
- ).toString()
417
- );
418
- }), this.$eventBus.$on(
419
- S.HotelRoomOfferRequestCreated,
420
- (e) => {
421
- this.lastRequest = e;
422
- }
423
- ), this.$eventBus.$on(S.CurrencyUpdated, () => this.cancelBooking()), this.$eventBus.$on(S.BookingCreated, this.onBookingCreated), this.$eventBus.$on(S.PaymentSuccess, this.onPaymentSuccess), this.$eventBus.$on(S.PrebookForm, (e) => {
424
- this.formdata = e;
425
- });
426
- },
427
- data: () => ({
428
- STEPS: ge,
429
- booking: void 0,
430
- bookingPolicy: void 0,
431
- countdownSnackbar: !1,
432
- direction: 1,
433
- formdata: void 0,
434
- lastRequest: void 0,
435
- step: 1,
436
- warningSnackbarMessages: []
437
- }),
438
- methods: {
439
- cancelBooking() {
440
- this.direction = -1, this.step = 1, this.bookingPolicy = void 0, this.booking = void 0, this.warningSnackbarMessages = [];
441
- },
442
- cancelPayment() {
443
- this.direction = -1, this.step = 2;
444
- },
445
- onAfterLeave() {
446
- this.direction = 1;
447
- },
448
- onBackButtonClick() {
449
- [
450
- 2,
451
- 5
452
- /* PaymentSuccessful */
453
- ].includes(this.step) ? this.cancelBooking() : this.step === 3 && this.cancelPayment();
454
- },
455
- onBookingCreated(e) {
456
- this.booking = e, e && (Q(), this.direction = 1, this.step = 3);
457
- },
458
- onBookingPolicyCreated(e) {
459
- this.bookingPolicy = e, e && (Q(), this.direction = 1, this.step = 2);
460
- },
461
- onCountdownEnd() {
462
- this.countdownSnackbar = !0, this.cancelBooking();
463
- },
464
- onPaymentSuccess() {
465
- this.direction = 1, this.step = 5;
466
- },
467
- transformCountdownTimer(e) {
468
- const o = {};
469
- for (const [s, n] of Object.entries(e)) {
470
- const a = n < 10 ? `0${n}` : n;
471
- o[s] = `${a}`;
472
- }
473
- return o;
474
- }
475
- },
476
- mixins: [
477
- je,
478
- Ze({
479
- fallbackValue: he,
480
- propsName: "features"
481
- })
482
- ],
483
- props: ve,
484
- setup() {
485
- const { t: e } = _e();
486
- return {
487
- t: e
488
- };
489
- }
490
- });
491
- function me(e) {
492
- const o = e;
493
- o.__i18n = o.__i18n || [], o.__i18n.push({
494
- locale: "",
495
- resource: {
496
- "en-US": {
497
- HotelRoomOffersBookingFlow: {
498
- back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Go back" } },
499
- makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Make a new reservation" } },
500
- steps: {
501
- yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Your Selection" } },
502
- yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Your Details" } },
503
- finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Final Step" } }
504
- },
505
- timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Please complete registration and payment within 15 minutes." } },
506
- timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "After 15 minutes, the reservation we're holding will be released to others." } },
507
- timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sorry, you took too long to complete your reservation. You can still choose an offer." } },
508
- warnings: {
509
- cancellationPolicies: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "The selected rate's cancellation policies have changed and are more restrictive than previously stated." } },
510
- price: { t: 0, b: { t: 2, i: [{ t: 3, v: "The selected rate's increased compared to the previous step from " }, { t: 4, k: "from" }, { t: 3, v: " to " }, { t: 4, k: "to" }, { t: 3, v: "." }] } }
511
- }
512
- }
513
- },
514
- "fr-FR": {
515
- HotelRoomOffersBookingFlow: {
516
- back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Revenir en arrière" } },
517
- makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Effectuer une nouvelle reservation" } },
518
- steps: {
519
- yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Votre Sélection" } },
520
- yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Vos Informations" } },
521
- finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Dernière Étape" } }
522
- },
523
- timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Veuillez terminer votre réservation dans les 15 prochaines minutes." } },
524
- timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Au-delà de 15 minutes, la réservation que nous retenons sera à nouveau disponible pour les autres." } },
525
- timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Désolé, vous avez dépassé le délai pour finaliser votre réservation. Veuillez sélectionner de nouveau une offre." } },
526
- warnings: {
527
- cancellationPolicies: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Les conditions d'annulation de l'offre sélectionnée ont changées et sont plus contraignantes que celles de l'offre initialement sélectionnée." } },
528
- price: { t: 0, b: { t: 2, i: [{ t: 3, v: "Le prix de l'offre sélectionnée a augmenté par rapport à l'étape précédente de " }, { t: 4, k: "from" }, { t: 3, v: " à " }, { t: 4, k: "to" }, { t: 3, v: "." }] } }
529
- }
530
- }
531
- },
532
- "de-DE": {
533
- HotelRoomOffersBookingFlow: {
534
- back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zurück" } },
535
- makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Neue Reservierung erstellen" } },
536
- steps: {
537
- yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ihre Auswahl" } },
538
- yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ihre Angaben" } },
539
- finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Letzter Schritt" } }
540
- },
541
- timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bitte schließen Sie die Registrierung und Zahlung innerhalb von 15 Minuten ab." } },
542
- timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nach 15 Minuten wird die Reservierung, die wir halten, für andere freigegeben." } },
543
- timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Es tut uns leid, Sie haben zu lange gebraucht, um Ihre Reservierung abzuschließen. Sie können trotzdem noch ein Angebot auswählen." } },
544
- warnings: {
545
- cancellationPolicies: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Die Stornierungsbedingungen des ausgewählten Tarifs haben sich geändert und sind restriktiver als zuvor angegeben." } },
546
- price: { t: 0, b: { t: 2, i: [{ t: 3, v: "Der Preis des ausgewählten Tarifs hat sich im Vergleich zum vorherigen Schritt von " }, { t: 4, k: "from" }, { t: 3, v: " auf " }, { t: 4, k: "to" }, { t: 3, v: " erhöht." }] } }
547
- }
548
- }
549
- },
550
- "es-ES": {
551
- HotelRoomOffersBookingFlow: {
552
- back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Volver atrás" } },
553
- makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Hacer una nueva reserva" } },
554
- steps: {
555
- yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Tu Selección" } },
556
- yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Tus Datos" } },
557
- finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Paso Final" } }
558
- },
559
- timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, complete el registro y el pago en 15 minutos." } },
560
- timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Después de 15 minutos, la reserva que estamos reteniendo se liberará para otros." } },
561
- timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lo sentimos, tardaste demasiado en completar tu reserva. Aún puedes elegir una oferta." } },
562
- warnings: {
563
- cancellationPolicies: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Las políticas de cancelación de la tarifa seleccionada han cambiado y son más restrictivas de lo que se indicó anteriormente." } },
564
- price: { t: 0, b: { t: 2, i: [{ t: 3, v: "El precio de la tarifa seleccionada ha aumentado en comparación con el paso anterior de " }, { t: 4, k: "from" }, { t: 3, v: " a " }, { t: 4, k: "to" }, { t: 3, v: "." }] } }
565
- }
566
- }
567
- },
568
- "it-IT": {
569
- HotelRoomOffersBookingFlow: {
570
- back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Torna indietro" } },
571
- makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Effettua una nuova prenotazione" } },
572
- steps: {
573
- yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "La Tua Selezione" } },
574
- yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "I Tuoi Dettagli" } },
575
- finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Passaggio Finale" } }
576
- },
577
- timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Si prega di completare la registrazione e il pagamento entro 15 minuti." } },
578
- timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Dopo 15 minuti, la prenotazione che stiamo trattenendo verrà rilasciata ad altri clienti." } },
579
- timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Siamo spiacenti, hai impiegato troppo tempo per completare la prenotazione. Puoi comunque scegliere un'offerta." } },
580
- warnings: {
581
- cancellationPolicies: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Le politiche di cancellazione della tariffa selezionata sono cambiate e sono più restrittive di quanto dichiarato in precedenza." } },
582
- price: { t: 0, b: { t: 2, i: [{ t: 3, v: "Il prezzo della tariffa selezionata è aumentato rispetto al passaggio precedente da " }, { t: 4, k: "from" }, { t: 3, v: " a " }, { t: 4, k: "to" }, { t: 3, v: "." }] } }
583
- }
584
- }
585
- },
586
- "nl-NL": {
587
- HotelRoomOffersBookingFlow: {
588
- back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ga terug" } },
589
- makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Maak een nieuwe reservering" } },
590
- steps: {
591
- yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Uw Selectie" } },
592
- yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Uw Gegevens" } },
593
- finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Laatste Stap" } }
594
- },
595
- timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Voltooi de registratie en betaling binnen 15 minuten." } },
596
- timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Na 15 minuten wordt de reservering die we vasthouden vrijgegeven aan anderen." } },
597
- timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sorry, u hebt er te lang over gedaan om uw reservering te voltooien. U kunt nog steeds een aanbieding kiezen." } },
598
- warnings: {
599
- cancellationPolicies: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Het annuleringsbeleid van het geselecteerde tarief is gewijzigd en is restrictiever dan eerder vermeld." } },
600
- price: { t: 0, b: { t: 2, i: [{ t: 3, v: "De prijs van het geselecteerde tarief is verhoogd ten opzichte van de vorige stap van " }, { t: 4, k: "from" }, { t: 3, v: " naar " }, { t: 4, k: "to" }, { t: 3, v: "." }] } }
601
- }
602
- }
603
- },
604
- "pt-PT": {
605
- HotelRoomOffersBookingFlow: {
606
- back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Voltar" } },
607
- makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Fazer uma nova reserva" } },
608
- steps: {
609
- yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "A Sua Seleção" } },
610
- yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Os Seus Dados" } },
611
- finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Passo Final" } }
612
- },
613
- timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, complete o registo e o pagamento dentro de 15 minutos." } },
614
- timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Após 15 minutos, a reserva que estamos a guardar será libertada para outros." } },
615
- timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Desculpe, demorou demasiado tempo a concluir a sua reserva. Ainda pode escolher uma oferta." } },
616
- warnings: {
617
- cancellationPolicies: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "As políticas de cancelamento da tarifa selecionada foram alteradas e são mais restritivas do que o indicado anteriormente." } },
618
- price: { t: 0, b: { t: 2, i: [{ t: 3, v: "O preço da tarifa selecionada aumentou em comparação com o passo anterior de " }, { t: 4, k: "from" }, { t: 3, v: " para " }, { t: 4, k: "to" }, { t: 3, v: "." }] } }
619
- }
620
- }
621
- }
622
- }
623
- });
624
- }
625
- const Y = Symbol.for("vuetify:v-stepper"), ke = V({
626
- color: String,
627
- disabled: {
628
- type: [Boolean, String],
629
- default: !1
630
- },
631
- prevText: {
632
- type: String,
633
- default: "$vuetify.stepper.prev"
634
- },
635
- nextText: {
636
- type: String,
637
- default: "$vuetify.stepper.next"
638
- }
639
- }, "VStepperActions"), dt = _()({
640
- name: "VStepperActions",
641
- props: ke(),
642
- emits: {
643
- "click:prev": () => !0,
644
- "click:next": () => !0
645
- },
646
- setup(e, o) {
647
- let {
648
- emit: s,
649
- slots: n
650
- } = o;
651
- const {
652
- t: a
653
- } = Fe();
654
- function r() {
655
- s("click:prev");
656
- }
657
- function u() {
658
- s("click:next");
659
- }
660
- return F(() => {
661
- const c = {
662
- onClick: r
663
- }, m = {
664
- onClick: u
665
- };
666
- return t("div", {
667
- class: "v-stepper-actions"
668
- }, [t(oe, {
669
- defaults: {
670
- VBtn: {
671
- disabled: ["prev", !0].includes(e.disabled),
672
- text: a(e.prevText),
673
- variant: "text"
674
- }
675
- }
676
- }, {
677
- default: () => [n.prev?.({
678
- props: c
679
- }) ?? t(z, c, null)]
680
- }), t(oe, {
681
- defaults: {
682
- VBtn: {
683
- color: e.color,
684
- disabled: ["next", !0].includes(e.disabled),
685
- text: a(e.nextText),
686
- variant: "tonal"
687
- }
688
- }
689
- }, {
690
- default: () => [n.next?.({
691
- props: m
692
- }) ?? t(z, m, null)]
693
- })]);
694
- }), {};
695
- }
696
- }), Se = Xe("v-stepper-header"), mt = V({
697
- color: String,
698
- title: String,
699
- subtitle: String,
700
- complete: Boolean,
701
- completeIcon: {
702
- type: P,
703
- default: "$complete"
704
- },
705
- editable: Boolean,
706
- editIcon: {
707
- type: P,
708
- default: "$edit"
709
- },
710
- error: Boolean,
711
- errorIcon: {
712
- type: P,
713
- default: "$error"
714
- },
715
- icon: P,
716
- ripple: {
717
- type: [Boolean, Object],
718
- default: !0
719
- },
720
- rules: {
721
- type: Array,
722
- default: () => []
723
- }
724
- }, "StepperItem"), pt = V({
725
- ...mt(),
726
- ...st()
727
- }, "VStepperItem"), N = _()({
728
- name: "VStepperItem",
729
- directives: {
730
- Ripple: Qe
731
- },
732
- props: pt(),
733
- emits: {
734
- "group:selected": (e) => !0
735
- },
736
- setup(e, o) {
737
- let {
738
- slots: s
739
- } = o;
740
- const n = et(e, Y, !0), a = d(() => n?.value.value ?? e.value), r = d(() => e.rules.every((R) => R() === !0)), u = d(() => !e.disabled && e.editable), c = d(() => !e.disabled && e.editable), m = d(() => e.error || !r.value), b = d(() => e.complete || e.rules.length > 0 && r.value), l = d(() => m.value ? e.errorIcon : b.value ? e.completeIcon : n.isSelected.value && e.editable ? e.editIcon : e.icon), v = d(() => ({
741
- canEdit: c.value,
742
- hasError: m.value,
743
- hasCompleted: b.value,
744
- title: e.title,
745
- subtitle: e.subtitle,
746
- step: a.value,
747
- value: e.value
748
- }));
749
- return F(() => {
750
- const R = (!n || n.isSelected.value || b.value || c.value) && !m.value && !e.disabled, W = !!(e.title != null || s.title), M = !!(e.subtitle != null || s.subtitle);
751
- function D() {
752
- n?.toggle();
753
- }
754
- return Me(t("button", {
755
- class: ["v-stepper-item", {
756
- "v-stepper-item--complete": b.value,
757
- "v-stepper-item--disabled": e.disabled,
758
- "v-stepper-item--error": m.value
759
- }, n?.selectedClass.value],
760
- disabled: !e.editable,
761
- type: "button",
762
- onClick: D
763
- }, [u.value && tt(!0, "v-stepper-item"), t(ot, {
764
- key: "stepper-avatar",
765
- class: "v-stepper-item__avatar",
766
- color: R ? e.color : void 0,
767
- size: 24
768
- }, {
769
- default: () => [s.icon?.(v.value) ?? (l.value ? t(I, {
770
- icon: l.value
771
- }, null) : a.value)]
772
- }), t("div", {
773
- class: "v-stepper-item__content"
774
- }, [W && t("div", {
775
- key: "title",
776
- class: "v-stepper-item__title"
777
- }, [s.title?.(v.value) ?? e.title]), M && t("div", {
778
- key: "subtitle",
779
- class: "v-stepper-item__subtitle"
780
- }, [s.subtitle?.(v.value) ?? e.subtitle]), s.default?.(v.value)])]), [[De("ripple"), e.ripple && e.editable, null]]);
781
- }), {};
782
- }
783
- }), ft = V({
784
- ...$e(at(), ["continuous", "nextIcon", "prevIcon", "showArrows", "touch", "mandatory"])
785
- }, "VStepperWindow"), ht = _()({
786
- name: "VStepperWindow",
787
- props: ft(),
788
- emits: {
789
- "update:modelValue": (e) => !0
790
- },
791
- setup(e, o) {
792
- let {
793
- slots: s
794
- } = o;
795
- const n = He(Y, null), a = Le(e, "modelValue"), r = d({
796
- get() {
797
- return a.value != null || !n ? a.value : n.items.value.find((u) => n.selected.value.includes(u.id))?.value;
798
- },
799
- set(u) {
800
- a.value = u;
801
- }
802
- });
803
- return F(() => {
804
- const u = se.filterProps(e);
805
- return t(se, C({
806
- _as: "VStepperWindow"
807
- }, u, {
808
- modelValue: r.value,
809
- "onUpdate:modelValue": (c) => r.value = c,
810
- class: ["v-stepper-window", e.class],
811
- style: e.style,
812
- mandatory: !1,
813
- touch: !1
814
- }), s);
815
- }), {};
816
- }
817
- }), vt = V({
818
- ...rt()
819
- }, "VStepperWindowItem"), gt = _()({
820
- name: "VStepperWindowItem",
821
- props: vt(),
822
- setup(e, o) {
823
- let {
824
- slots: s
825
- } = o;
826
- return F(() => {
827
- const n = ie.filterProps(e);
828
- return t(ie, C({
829
- _as: "VStepperWindowItem"
830
- }, n, {
831
- class: ["v-stepper-window-item", e.class],
832
- style: e.style
833
- }), s);
834
- }), {};
835
- }
836
- }), bt = V({
837
- altLabels: Boolean,
838
- bgColor: String,
839
- completeIcon: P,
840
- editIcon: P,
841
- editable: Boolean,
842
- errorIcon: P,
843
- hideActions: Boolean,
844
- items: {
845
- type: Array,
846
- default: () => []
847
- },
848
- itemTitle: {
849
- type: String,
850
- default: "title"
851
- },
852
- itemValue: {
853
- type: String,
854
- default: "value"
855
- },
856
- nonLinear: Boolean,
857
- flat: Boolean,
858
- ...qe()
859
- }, "Stepper"), kt = V({
860
- ...bt(),
861
- ...nt({
862
- mandatory: "force",
863
- selectedClass: "v-stepper-item--selected"
864
- }),
865
- ...lt(),
866
- ...We(ke(), ["prevText", "nextText"])
867
- }, "VStepper"), St = _()({
868
- name: "VStepper",
869
- props: kt(),
870
- emits: {
871
- "update:modelValue": (e) => !0
872
- },
873
- setup(e, o) {
874
- let {
875
- slots: s
876
- } = o;
877
- const {
878
- items: n,
879
- next: a,
880
- prev: r,
881
- selected: u
882
- } = it(e, Y), {
883
- displayClasses: c,
884
- mobile: m
885
- } = Ae(e), {
886
- completeIcon: b,
887
- editIcon: l,
888
- errorIcon: v,
889
- color: R,
890
- editable: W,
891
- prevText: M,
892
- nextText: D
893
- } = Ne(e), j = d(() => e.items.map((k, q) => {
894
- const H = J(k, e.itemTitle, k), U = J(k, e.itemValue, q + 1);
895
- return {
896
- title: H,
897
- value: U,
898
- raw: k
899
- };
900
- })), K = d(() => n.value.findIndex((k) => u.value.includes(k.id))), ye = d(() => e.disabled ? e.disabled : K.value === 0 ? "prev" : K.value === n.value.length - 1 ? "next" : !1);
901
- return ze({
902
- VStepperItem: {
903
- editable: W,
904
- errorIcon: v,
905
- completeIcon: b,
906
- editIcon: l,
907
- prevText: M,
908
- nextText: D
909
- },
910
- VStepperActions: {
911
- color: R,
912
- disabled: ye,
913
- prevText: M,
914
- nextText: D
915
- }
916
- }), F(() => {
917
- const k = ne.filterProps(e), q = !!(s.header || e.items.length), H = e.items.length > 0, U = !e.hideActions && !!(H || s.actions);
918
- return t(ne, C(k, {
919
- color: e.bgColor,
920
- class: ["v-stepper", {
921
- "v-stepper--alt-labels": e.altLabels,
922
- "v-stepper--flat": e.flat,
923
- "v-stepper--non-linear": e.nonLinear,
924
- "v-stepper--mobile": m.value
925
- }, c.value, e.class],
926
- style: e.style
927
- }), {
928
- default: () => [q && t(Se, {
929
- key: "stepper-header"
930
- }, {
931
- default: () => [j.value.map((E, we) => {
932
- let {
933
- raw: Ft,
934
- ...Z
935
- } = E;
936
- return t(pe, null, [!!we && t(G, null, null), t(N, Z, {
937
- default: s[`header-item.${Z.value}`] ?? s.header,
938
- icon: s.icon,
939
- title: s.title,
940
- subtitle: s.subtitle
941
- })]);
942
- })]
943
- }), H && t(ht, {
944
- key: "stepper-window"
945
- }, {
946
- default: () => [j.value.map((E) => t(gt, {
947
- value: E.value
948
- }, {
949
- default: () => s[`item.${E.value}`]?.(E) ?? s.item?.(E)
950
- }))]
951
- }), s.default?.({
952
- prev: r,
953
- next: a
954
- }), U && (s.actions?.({
955
- next: a,
956
- prev: r
957
- }) ?? t(dt, {
958
- key: "stepper-actions",
959
- "onClick:prev": r,
960
- "onClick:next": a
961
- }, s))]
962
- });
963
- }), {
964
- prev: r,
965
- next: a
966
- };
967
- }
968
- }), yt = { class: "pl-3" }, wt = { class: "text-grey-darken-3 font-weight-bold" }, Pt = { class: "text-grey-darken-3 font-weight-bold" }, Vt = { class: "text-grey-darken-3 font-weight-bold" }, Et = { class: "text-h5 mx-sm-2 px-sm-2 mx-md-6 px-md-6 mx-lg-10 px-lg-10 mx-xl-16 px-xl-16" }, Bt = { class: "pl-5 ma-0" }, Ot = { class: "font-weight-bold" }, It = { class: "font-weight-bold" };
969
- function Tt(e, o, s, n, a, r) {
970
- const u = T("VueCountdown"), c = T("PrebookForm"), m = T("CreditCardPayment"), b = T("HotelRoomOffersView");
971
- return p(), g(O, { dense: "" }, {
972
- default: i(() => [
973
- t(te, {
974
- modelValue: e.isWarningSnackarDisplayed,
975
- "onUpdate:modelValue": o[0] || (o[0] = (l) => e.isWarningSnackarDisplayed = l),
976
- color: "warning",
977
- class: "elevation-0",
978
- "max-width": "1000px",
979
- timeout: -1,
980
- location: "top"
981
- }, {
982
- actions: i(({ isActive: l }) => [
983
- t(z, {
984
- color: "white",
985
- variant: "text",
986
- onClick: () => {
987
- l.value = !1, e.warningSnackbarMessages = [];
988
- }
989
- }, {
990
- default: i(() => [
991
- t(I, {
992
- color: "white",
993
- size: "16"
994
- }, {
995
- default: i(() => o[4] || (o[4] = [
996
- y(" fas fa-times ")
997
- ])),
998
- _: 1,
999
- __: [4]
1000
- })
1001
- ]),
1002
- _: 2
1003
- }, 1032, ["onClick"])
1004
- ]),
1005
- default: i(() => [
1006
- (p(!0), X(pe, null, Ue(e.warningSnackbarMessages, (l, v) => (p(), X("p", {
1007
- key: v,
1008
- class: "text-white ma-0"
1009
- }, [
1010
- v === 0 ? (p(), g(I, {
1011
- key: 0,
1012
- color: "white",
1013
- size: "20"
1014
- }, {
1015
- default: i(() => o[3] || (o[3] = [
1016
- y(" fas fa-triangle-exclamation ")
1017
- ])),
1018
- _: 1,
1019
- __: [3]
1020
- })) : B("", !0),
1021
- f("span", yt, h(l), 1)
1022
- ]))), 128))
1023
- ]),
1024
- _: 1
1025
- }, 8, ["modelValue"]),
1026
- t(w, null, {
1027
- default: i(() => [
1028
- [e.STEPS.PreBook, e.STEPS.Payment, e.STEPS.PaymentSuccessful].includes(e.step) ? (p(), g(O, {
1029
- key: 0,
1030
- dense: ""
1031
- }, {
1032
- default: i(() => [
1033
- t(w, {
1034
- "align-self": "center",
1035
- cols: "12",
1036
- sm: "3"
1037
- }, {
1038
- default: i(() => [
1039
- t(z, {
1040
- variant: "text",
1041
- size: "x-small",
1042
- onClick: e.onBackButtonClick
1043
- }, {
1044
- default: i(() => [
1045
- t(I, {
1046
- start: "",
1047
- size: "x-small"
1048
- }, {
1049
- default: i(() => o[5] || (o[5] = [
1050
- y(" fas fa-arrow-left ")
1051
- ])),
1052
- _: 1,
1053
- __: [5]
1054
- }),
1055
- y(" " + h(e.backButtonLabel), 1)
1056
- ]),
1057
- _: 1
1058
- }, 8, ["onClick"])
1059
- ]),
1060
- _: 1
1061
- }),
1062
- [e.STEPS.PreBook, e.STEPS.Payment, e.STEPS.PaymentSuccessful].includes(
1063
- e.step
1064
- ) ? (p(), g(w, {
1065
- key: 0,
1066
- cols: "12",
1067
- sm: "9"
1068
- }, {
1069
- default: i(() => [
1070
- t(St, {
1071
- class: "bg-transparent",
1072
- modelValue: e.step,
1073
- "onUpdate:modelValue": o[1] || (o[1] = (l) => e.step = l),
1074
- elevation: "0"
1075
- }, {
1076
- default: i(() => [
1077
- t(Se, { color: "primary" }, {
1078
- default: i(() => [
1079
- t(N, {
1080
- color: "primary",
1081
- complete: "",
1082
- value: e.STEPS.Idle
1083
- }, {
1084
- default: i(() => [
1085
- f("small", wt, h(e.t("HotelRoomOffersBookingFlow.steps.yourSelection")), 1)
1086
- ]),
1087
- _: 1
1088
- }, 8, ["value"]),
1089
- t(G),
1090
- t(N, {
1091
- color: "primary",
1092
- complete: [e.STEPS.PaymentSuccessful, e.STEPS.Payment].includes(e.step),
1093
- value: e.STEPS.PreBook
1094
- }, {
1095
- default: i(() => [
1096
- f("small", Pt, h(e.t("HotelRoomOffersBookingFlow.steps.yourDetails")), 1)
1097
- ]),
1098
- _: 1
1099
- }, 8, ["complete", "value"]),
1100
- t(G),
1101
- t(N, {
1102
- color: "primary",
1103
- complete: e.step === e.STEPS.PaymentSuccessful,
1104
- value: e.STEPS.Payment
1105
- }, {
1106
- default: i(() => [
1107
- f("small", Vt, h(e.t("HotelRoomOffersBookingFlow.steps.finalStep")), 1)
1108
- ]),
1109
- _: 1
1110
- }, 8, ["complete", "value"])
1111
- ]),
1112
- _: 1
1113
- })
1114
- ]),
1115
- _: 1
1116
- }, 8, ["modelValue"])
1117
- ]),
1118
- _: 1
1119
- })) : B("", !0)
1120
- ]),
1121
- _: 1
1122
- })) : B("", !0),
1123
- [e.STEPS.PreBook, e.STEPS.Payment].includes(e.step) ? (p(), g(O, {
1124
- key: 1,
1125
- dense: ""
1126
- }, {
1127
- default: i(() => [
1128
- t(w, null, {
1129
- default: i(() => [
1130
- t(ut, {
1131
- color: "primary",
1132
- border: "start",
1133
- "border-color": "primary",
1134
- variant: "tonal",
1135
- prominent: "",
1136
- type: "info"
1137
- }, {
1138
- prepend: i(() => [
1139
- f("b", Et, [
1140
- t(I, {
1141
- class: "d-none d-md-inline-block mr-2 mb-1",
1142
- color: "primary",
1143
- size: "24px"
1144
- }, {
1145
- default: i(() => o[6] || (o[6] = [
1146
- y(" fas fa-stopwatch")
1147
- ])),
1148
- _: 1,
1149
- __: [6]
1150
- }),
1151
- t(u, {
1152
- time: 15 * 60 * 1e3,
1153
- transform: e.transformCountdownTimer,
1154
- onEnd: e.onCountdownEnd
1155
- }, {
1156
- default: i((l) => [
1157
- y(h(l.minutes) + ":" + h(l.seconds), 1)
1158
- ]),
1159
- _: 1
1160
- }, 8, ["transform", "onEnd"])
1161
- ])
1162
- ]),
1163
- default: i(() => [
1164
- f("p", Bt, [
1165
- f("span", Ot, h(e.t("HotelRoomOffersBookingFlow.timer1")), 1),
1166
- o[7] || (o[7] = f("br", null, null, -1)),
1167
- f("span", It, h(e.t("HotelRoomOffersBookingFlow.timer2")), 1)
1168
- ])
1169
- ]),
1170
- _: 1
1171
- })
1172
- ]),
1173
- _: 1
1174
- })
1175
- ]),
1176
- _: 1
1177
- })) : B("", !0),
1178
- t(te, {
1179
- modelValue: e.countdownSnackbar,
1180
- "onUpdate:modelValue": o[2] || (o[2] = (l) => e.countdownSnackbar = l),
1181
- color: "warning",
1182
- class: "elevation-0",
1183
- timeout: "10000",
1184
- location: "top"
1185
- }, {
1186
- default: i(() => [
1187
- t(I, { class: "px-4" }, {
1188
- default: i(() => o[8] || (o[8] = [
1189
- y(" fas fa-hourglass-end ")
1190
- ])),
1191
- _: 1,
1192
- __: [8]
1193
- }),
1194
- f("span", null, h(e.t("HotelRoomOffersBookingFlow.timerEnd")), 1)
1195
- ]),
1196
- _: 1
1197
- }, 8, ["modelValue"]),
1198
- t(Ge, {
1199
- name: e.transitionName,
1200
- onAfterLeave: e.onAfterLeave
1201
- }, {
1202
- default: i(() => [
1203
- t(O, { "no-gutters": "" }, {
1204
- default: i(() => [
1205
- t(w, null, {
1206
- default: i(() => [
1207
- e.step === e.STEPS.PreBook ? (p(), g(O, {
1208
- key: 0,
1209
- "no-gutters": ""
1210
- }, {
1211
- default: i(() => [
1212
- t(w, null, {
1213
- default: i(() => [
1214
- t(c, C(e.prebookFormProps, {
1215
- "booking-policy-id": e.bookingPolicy?.id,
1216
- features: e.parsedFeatures.PrebookForm,
1217
- "hotel-room-offer": e.bookingPolicy?.hotelRoomOffer
1218
- }), null, 16, ["booking-policy-id", "features", "hotel-room-offer"])
1219
- ]),
1220
- _: 1
1221
- })
1222
- ]),
1223
- _: 1
1224
- })) : B("", !0),
1225
- [e.STEPS.Payment, e.STEPS.PaymentSuccessful].includes(e.step) ? (p(), g(O, {
1226
- key: 1,
1227
- "no-gutters": ""
1228
- }, {
1229
- default: i(() => [
1230
- t(w, null, {
1231
- default: i(() => [
1232
- t(m, {
1233
- token: e.booking?.token
1234
- }, null, 8, ["token"])
1235
- ]),
1236
- _: 1
1237
- })
1238
- ]),
1239
- _: 1
1240
- })) : e.step === e.STEPS.Idle ? (p(), g(b, C({ key: 2 }, e.hotelRoomOffersViewProps, {
1241
- features: e.parsedFeatures.HotelRoomOffersView
1242
- }), null, 16, ["features"])) : B("", !0)
1243
- ]),
1244
- _: 1
1245
- })
1246
- ]),
1247
- _: 1
1248
- })
1249
- ]),
1250
- _: 1
1251
- }, 8, ["name", "onAfterLeave"])
1252
- ]),
1253
- _: 1
1254
- })
1255
- ]),
1256
- _: 1
1257
- });
1258
- }
1259
- typeof me == "function" && me(be);
1260
- const Rt = /* @__PURE__ */ fe(be, [["render", Tt], ["__scopeId", "data-v-17bd38d1"]]), Ct = x({
1261
- components: {
1262
- HotelRoomOffersBookingFlow: Rt,
1263
- WebComponentWrapper: Je
1264
- },
1265
- props: ve
1266
- });
1267
- function _t(e, o, s, n, a, r) {
1268
- const u = T("HotelRoomOffersBookingFlow", !0), c = T("WebComponentWrapper");
1269
- return p(), g(c, null, {
1270
- default: i(() => [
1271
- t(u, xe(Ye(e.$props)), null, 16)
1272
- ]),
1273
- _: 1
1274
- });
1275
- }
1276
- const Jt = /* @__PURE__ */ fe(Ct, [["render", _t]]);
1277
- Pe("css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css");
1278
- export {
1279
- Jt as default
1280
- };
1281
- //# sourceMappingURL=revolugo.hotelroomoffersbookingflow.76yvftsv.min.js.map