@revolugo/elements 6.8.2 → 6.8.3-beta.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 (171) hide show
  1. package/README.md +1 -1
  2. package/dist/css/fonts.css +1 -1
  3. package/dist/css/{revolugo.webcomponentwrapper.DRCKFwuk.css → revolugo.webcomponentwrapper.DGADlvX0.css} +2 -2
  4. package/dist/index.es.min.js +2081 -2223
  5. package/dist/index.es.min.js.map +1 -1
  6. package/dist/index.min.js +6 -6
  7. package/dist/index.min.js.map +1 -1
  8. package/dist/revolugo.banktransferdetails.C9OqrvmN.min.js +23 -0
  9. package/dist/revolugo.bookingdetailssidebar.V97LTM8j.min.js +23 -0
  10. package/dist/revolugo.bookingmanager.BZERpaf3.min.js +23 -0
  11. package/dist/revolugo.cancellationpoliciesbadge.CUKJ9TsD.min.js +23 -0
  12. package/dist/revolugo.cancellationpolicieslist.C3PJPST4.min.js +23 -0
  13. package/dist/revolugo.creditcardform.D-8j5GCw.min.js +23 -0
  14. package/dist/revolugo.creditcardpayment.DU-WYlhZ.min.js +23 -0
  15. package/dist/revolugo.currencypickerbtn.B7Y3Ok11.min.js +23 -0
  16. package/dist/{revolugo.fastbookingflow.ChNa4jgv.min.js → revolugo.fastbookingflow.BoQVk0eU.min.js} +9 -10
  17. package/dist/revolugo.fullbookingflow.DoXfBawU.min.js +23 -0
  18. package/dist/revolugo.hoteldescriptionview.B-0OAOlZ.min.js +23 -0
  19. package/dist/revolugo.hotelofferlist.CZtxadW_.min.js +23 -0
  20. package/dist/revolugo.hoteloffersearchmenu.BZ2z-tDx.min.js +199 -0
  21. package/dist/revolugo.hoteloffersmap.CKwOA3mF.min.js +23 -0
  22. package/dist/revolugo.hoteloffersview.Bxf47jSF.min.js +18 -0
  23. package/dist/revolugo.hotelroomofferlist.PzbhafeA.min.js +23 -0
  24. package/dist/revolugo.hotelroomoffersbookingflow.BXolY5lJ.min.js +23 -0
  25. package/dist/revolugo.hotelroomoffersearchmenu.BAqeXS0Y.min.js +23 -0
  26. package/dist/revolugo.hotelroomoffersview.Ch8BiNJ_.min.js +23 -0
  27. package/dist/revolugo.index.CVHWSVdZ.min.js +67 -0
  28. package/dist/{revolugo.index.wc.7I5uexuc.min.js → revolugo.index.wc.DxOdmA3C.min.js} +12167 -12364
  29. package/dist/revolugo.langpickerbtn.B5MAr-qc.min.js +28 -0
  30. package/dist/revolugo.min.js +1 -1
  31. package/dist/revolugo.prebookform.9dLTmLrv.min.js +23 -0
  32. package/dist/revolugo.roominglisteditor.CA09WMcG.min.js +23 -0
  33. package/dist/{revolugo.storybooktoolbar.DY_mbXuP.min.js → revolugo.storybooktoolbar.CkwMUZCe.min.js} +212 -227
  34. package/dist/revolugo.termsandconditions.CLIxEOxi.min.js +22 -0
  35. package/dist/revolugo.webcomponentwrapper.Dt-VzVVw.min.js +60489 -0
  36. package/package.json +5 -5
  37. package/dist/css/revolugo.bdaterangepicker.CHUExWGL.css +0 -1
  38. package/dist/css/revolugo.bhoteloffersfilterbar.BcnNI4uS.css +0 -1
  39. package/dist/css/revolugo.bhotelroomsdetails.ZHH0C1yQ.css +0 -1
  40. package/dist/css/revolugo.bhotelsearchbar.Bl5_UFe8.css +0 -1
  41. package/dist/css/revolugo.bimagecarousel.BvgD1yrr.css +0 -1
  42. package/dist/css/revolugo.bookingdetailssidebar.CNP_D5F3.css +0 -1
  43. package/dist/css/revolugo.bstarrating.Dxd1LjMb.css +0 -1
  44. package/dist/css/revolugo.btag.g-q3eChG.css +0 -1
  45. package/dist/css/revolugo.cancellationpoliciesbadge.CwgZ0PpX.css +0 -1
  46. package/dist/css/revolugo.creditcardform.DWne0Lnv.css +0 -1
  47. package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +0 -1
  48. package/dist/css/revolugo.currencypicker.DO0IrmRK.css +0 -1
  49. package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +0 -1
  50. package/dist/css/revolugo.hoteldescriptionview.DWuzEuGF.css +0 -1
  51. package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +0 -1
  52. package/dist/css/revolugo.hoteloffersmap.2oSkomDb.css +0 -1
  53. package/dist/css/revolugo.hoteloffersview.Bo2dQWYt.css +0 -1
  54. package/dist/css/revolugo.hotelroomofferlist.DpLXIpgU.css +0 -1
  55. package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +0 -1
  56. package/dist/css/revolugo.index.DQ3Yd6SO.css +0 -1
  57. package/dist/css/revolugo.langpickerbtn.D2iA6mCb.css +0 -1
  58. package/dist/css/revolugo.position.7fn84IQ5.css +0 -1
  59. package/dist/css/revolugo.prebookform.DmCR7hLv.css +0 -1
  60. package/dist/css/revolugo.termsandconditions.DCvNJQQL.css +0 -1
  61. package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +0 -1
  62. package/dist/css/revolugo.vbadge.BQrRJ9S0.css +0 -1
  63. package/dist/css/revolugo.vbtn.BU0YQ6en.css +0 -1
  64. package/dist/css/revolugo.vcard.B8jNYFn_.css +0 -1
  65. package/dist/css/revolugo.vcheckboxbtn.BQ05xI0T.css +0 -1
  66. package/dist/css/revolugo.vdialog.DwTSAOeg.css +0 -1
  67. package/dist/css/revolugo.vdivider.CTbbZwnv.css +0 -1
  68. package/dist/css/revolugo.vexpansionpanels.RsCANmDP.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.BkGS0yqt.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.vsnackbar.Cj7AcupY.css +0 -1
  77. package/dist/css/revolugo.vtextarea.HYL6WUNS.css +0 -1
  78. package/dist/css/revolugo.vtextfield.BIH_AWWP.css +0 -1
  79. package/dist/css/revolugo.vtoolbar.BZert82L.css +0 -1
  80. package/dist/css/revolugo.vtooltip.O8QDYs1J.css +0 -1
  81. package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +0 -1
  82. package/dist/revolugo._basefor.CodrYJxd.min.js +0 -15
  83. package/dist/revolugo.banktransferdetails.BdulCgI5.min.js +0 -373
  84. package/dist/revolugo.bdaterangepicker.XZNoMSi5.min.js +0 -8435
  85. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.D9Qs1dZa.min.js +0 -61
  86. package/dist/revolugo.bhoteloffersfilterbar.Bryijtf6.min.js +0 -4685
  87. package/dist/revolugo.bhotelroomsdetails.orWBBD_o.min.js +0 -1013
  88. package/dist/revolugo.bhotelsearchbar.DxxqZWkN.min.js +0 -947
  89. package/dist/revolugo.bimagecarousel.DIPN99VA.min.js +0 -598
  90. package/dist/revolugo.bookingdetailssidebar.CD4SMOkC.min.js +0 -24
  91. package/dist/revolugo.bookingdetailssidebar.JOU68R1_.min.js +0 -880
  92. package/dist/revolugo.bookingmanager.B5cM9Mi5.min.js +0 -1789
  93. package/dist/revolugo.bpricesummaryskeleton.YKfKKB5n.min.js +0 -79
  94. package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.2z9RUthr.min.js +0 -623
  95. package/dist/revolugo.btag.DjjDRtQ7.min.js +0 -387
  96. package/dist/revolugo.cancellationpoliciesbadge.D8ou6oFl.min.js +0 -225
  97. package/dist/revolugo.cancellationpoliciesbadge.jgFCG7yZ.min.js +0 -24
  98. package/dist/revolugo.cancellationpolicieslist.CZImqgN3.min.js +0 -24
  99. package/dist/revolugo.cancellationpolicieslist.D097ASNF.min.js +0 -176
  100. package/dist/revolugo.case-transformers.Dr1oSJkZ.min.js +0 -123
  101. package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
  102. package/dist/revolugo.creditcardform.DNOMVOgZ.min.js +0 -2161
  103. package/dist/revolugo.creditcardform.DvHcDx2P.min.js +0 -24
  104. package/dist/revolugo.creditcardpayment.BLP3RXk4.min.js +0 -893
  105. package/dist/revolugo.creditcardpayment.D3lPKmx1.min.js +0 -24
  106. package/dist/revolugo.currencypicker.CzzS1Adp.min.js +0 -330
  107. package/dist/revolugo.currencypickerbtn.ChUEouGw.min.js +0 -163
  108. package/dist/revolugo.currencypickerbtn.DWnyc54P.min.js +0 -24
  109. package/dist/revolugo.dialog-attach.O2HXPGzj.min.js +0 -28
  110. package/dist/revolugo.dialog-transition.C6S7Ci1s.min.js +0 -114
  111. package/dist/revolugo.forwardrefs.-bfQnFea.min.js +0 -71
  112. package/dist/revolugo.fullbookingflow.ByKmNqgi.min.js +0 -451
  113. package/dist/revolugo.hoteldescriptionview.CbtxEPGG.min.js +0 -3091
  114. package/dist/revolugo.hoteldescriptionview.D3JTbFxn.min.js +0 -24
  115. package/dist/revolugo.hotelofferitemlayout.tBOOIdeT.min.js +0 -259
  116. package/dist/revolugo.hotelofferlist.BVySEYbq.min.js +0 -5744
  117. package/dist/revolugo.hotelofferlist.puK2FNBR.min.js +0 -24
  118. package/dist/revolugo.hotelofferrequestcreator.CbCau_4i.min.js +0 -230
  119. package/dist/revolugo.hoteloffersearchmenu.iiAtyddA.min.js +0 -46
  120. package/dist/revolugo.hoteloffersmap.BRVm5s6N.min.js +0 -8394
  121. package/dist/revolugo.hoteloffersmap.DqKpfjbt.min.js +0 -24
  122. package/dist/revolugo.hoteloffersview.3LJ-m6BY.min.js +0 -620
  123. package/dist/revolugo.hoteloffersview.DsGyT5s7.min.js +0 -19
  124. package/dist/revolugo.hotelroomofferlist.DdMr5qEZ.min.js +0 -24
  125. package/dist/revolugo.hotelroomofferlist.M-3bowQa.min.js +0 -2934
  126. package/dist/revolugo.hotelroomofferrequestcreator.props.CUwZUDcm.min.js +0 -171
  127. package/dist/revolugo.hotelroomoffersbookingflow.Bef_aJFl.min.js +0 -1306
  128. package/dist/revolugo.hotelroomoffersearchmenu.D9Zn_Gjy.min.js +0 -25
  129. package/dist/revolugo.hotelroomoffersearchmenu.Fkf-MQ_8.min.js +0 -232
  130. package/dist/revolugo.hotelroomoffersview.BSth8Xsz.min.js +0 -305
  131. package/dist/revolugo.hotelroomoffersview.oxTgBMSk.min.js +0 -24
  132. package/dist/revolugo.index.D0uSQdJV.min.js +0 -13
  133. package/dist/revolugo.index.gIPq0z7C.min.js +0 -1037
  134. package/dist/revolugo.langpicker.CLdiic9k.min.js +0 -107
  135. package/dist/revolugo.langpickerbtn.BIHQAnjv.min.js +0 -24
  136. package/dist/revolugo.langpickerbtn.DF-m4pCF.min.js +0 -178
  137. package/dist/revolugo.position.hqKd4K_h.min.js +0 -322
  138. package/dist/revolugo.prebookform.B8aMLMuG.min.js +0 -1531
  139. package/dist/revolugo.prebookform.CxK0iSDo.min.js +0 -24
  140. package/dist/revolugo.roominglisteditor.D7WzDtw6.min.js +0 -24
  141. package/dist/revolugo.roominglisteditor.Do-pe811.min.js +0 -391
  142. package/dist/revolugo.rounded.Dnxang6X.min.js +0 -68
  143. package/dist/revolugo.ssrboot.ByGq44eI.min.js +0 -18
  144. package/dist/revolugo.termsandconditions.DXNFR45_.min.js +0 -423
  145. package/dist/revolugo.termsandconditions.DfGTVPYa.min.js +0 -23
  146. package/dist/revolugo.use-breakpoint-service.CJltQiSH.min.js +0 -106
  147. package/dist/revolugo.vautocomplete.BjPSa1jg.min.js +0 -466
  148. package/dist/revolugo.vbadge.D1RCkHoZ.min.js +0 -118
  149. package/dist/revolugo.vbtn.CQ9EDLRJ.min.js +0 -417
  150. package/dist/revolugo.vcard.DNU4i52n.min.js +0 -329
  151. package/dist/revolugo.vcheckboxbtn.De-k8-O3.min.js +0 -491
  152. package/dist/revolugo.vdialog.CjEajxIC.min.js +0 -139
  153. package/dist/revolugo.vdivider.Cp9bHPnI.min.js +0 -77
  154. package/dist/revolugo.vexpansionpanels.L2ZpX4zd.min.js +0 -276
  155. package/dist/revolugo.vform.Bw9rddZZ.min.js +0 -50
  156. package/dist/revolugo.vinput.P34xrpIC.min.js +0 -477
  157. package/dist/revolugo.vlabel.CLHrAz78.min.js +0 -51
  158. package/dist/revolugo.vlist.hRQlcp5M.min.js +0 -1348
  159. package/dist/revolugo.vmenu.BRFw3Jzk.min.js +0 -152
  160. package/dist/revolugo.vselect.u2C25NCe.min.js +0 -688
  161. package/dist/revolugo.vsheet.8UeU7qQn.min.js +0 -72
  162. package/dist/revolugo.vskeletonloader.Dk0enVo6.min.js +0 -137
  163. package/dist/revolugo.vsnackbar.18JqJsZ2.min.js +0 -202
  164. package/dist/revolugo.vspacer.CPbtu_-W.min.js +0 -7
  165. package/dist/revolugo.vtextarea.Cjuqcka5.min.js +0 -2102
  166. package/dist/revolugo.vtextfield.BUNcwTRK.min.js +0 -509
  167. package/dist/revolugo.vtoolbar.CvbAGFXR.min.js +0 -188
  168. package/dist/revolugo.vtooltip.CsXJFD-V.min.js +0 -395
  169. package/dist/revolugo.vwindowitem.DGRfRU3q.min.js +0 -329
  170. package/dist/revolugo.watch-list.D0FxBTWy.min.js +0 -16
  171. package/dist/revolugo.webcomponentwrapper.DFYGhYzz.min.js +0 -2148
@@ -1,1306 +0,0 @@
1
- import { a as Be, h as Oe, H as Ie } from "./revolugo.hotelroomoffersview.BSth8Xsz.min.js";
2
- import { P as Te, p as Re, a as Ce } from "./revolugo.prebookform.B8aMLMuG.min.js";
3
- import { z as _e, d as Q, ag as Fe, u as Me, E as S, _ as V, Z as M, ac as De, a as i, D as p, H as He, aA as $e, $ as P, ai as Le, a2 as Ae, y as F, a6 as Ne, aP as ze, aT as We, aU as oe, aQ as qe, aV as Ue, aS as Ge, F as ge, c as k, w as n, i as ie, v as xe, g as B, e as b, f as y, t as g, r as T, aR as je, o as v, n as Ye, h as Ke } from "./revolugo.index.wc.7I5uexuc.min.js";
4
- import { a as Ze } from "./revolugo.hotelroomoffersearchmenu.Fkf-MQ_8.min.js";
5
- import { C as Qe } from "./revolugo.creditcardpayment.BLP3RXk4.min.js";
6
- import { p as Je } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.2z9RUthr.min.js";
7
- import { s as se } from "./revolugo.common.D-l8b0V5.min.js";
8
- import { f as ne } from "./revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.D9Qs1dZa.min.js";
9
- import { u as D, _ as ke, V as O, a as w, W as Xe } from "./revolugo.webcomponentwrapper.DFYGhYzz.min.js";
10
- import { a as ae, R as et, u as tt, g as ot, h as it, V as I, i as st, j as nt, k as at } from "./revolugo.index.gIPq0z7C.min.js";
11
- import { a as G } from "./revolugo.vbtn.CQ9EDLRJ.min.js";
12
- import { V as re } from "./revolugo.vsnackbar.18JqJsZ2.min.js";
13
- import { c as rt } from "./revolugo.position.hqKd4K_h.min.js";
14
- import { V as le, m as lt, a as ue, b as ut } from "./revolugo.vwindowitem.DGRfRU3q.min.js";
15
- import { V as ce, m as ct } from "./revolugo.vsheet.8UeU7qQn.min.js";
16
- import { V as Z } from "./revolugo.vdivider.Cp9bHPnI.min.js";
17
- import { V as dt } from "./revolugo.vcheckboxbtn.De-k8-O3.min.js";
18
- function Ee(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, t = o.slice(0, o.lastIndexOf("/") + 1) + e;
26
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(t);
27
- for (const s of REVOLUGO_ELEMENTS_STYLES.components)
28
- s(t);
29
- if (e.indexOf("fonts") >= 0) {
30
- const s = document.createElement("link");
31
- s.rel = "stylesheet", linK.href = t, document.head.appendChild(s);
32
- }
33
- }
34
- } catch (o) {
35
- console.error("[revolugo-elements] ", o);
36
- }
37
- }
38
- const mt = {
39
- HotelRoomOffersView: Be,
40
- PrebookForm: Te
41
- }, Se = {
42
- ...Oe,
43
- ..._e(Re, ["bookingId", "bookingPolicyId", "hotelRoomOffer"]),
44
- features: {
45
- default: () => mt,
46
- type: [Object, String]
47
- }
48
- }, z = 1e3, W = 60 * z, q = 60 * W, de = 24 * q, me = "abort", pe = "end", fe = "progress", he = "start", ve = "visibilitychange", pt = Q({
49
- beforeUnmount() {
50
- document.removeEventListener(
51
- ve,
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 / de);
62
- },
63
- /**
64
- * Remaining hours.
65
- * @returns {number} The computed value.
66
- */
67
- hours() {
68
- return Math.floor(
69
- this.totalMilliseconds % de / q
70
- );
71
- },
72
- /**
73
- * Remaining milliseconds.
74
- * @returns {number} The computed value.
75
- */
76
- milliseconds() {
77
- return Math.floor(this.totalMilliseconds % z);
78
- },
79
- /**
80
- * Remaining minutes.
81
- * @returns {number} The computed value.
82
- */
83
- minutes() {
84
- return Math.floor(
85
- this.totalMilliseconds % q / W
86
- );
87
- },
88
- /**
89
- * Remaining seconds.
90
- * @returns {number} The computed value.
91
- */
92
- seconds() {
93
- return Math.floor(
94
- this.totalMilliseconds % W / z
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 / q);
110
- },
111
- /**
112
- * Total remaining minutes.
113
- * @returns {number} The computed value.
114
- */
115
- totalMinutes() {
116
- return Math.floor(this.totalMilliseconds / W);
117
- },
118
- /**
119
- * Total remaining seconds.
120
- * @returns {number} The computed value.
121
- */
122
- totalSeconds() {
123
- return Math.floor(this.totalMilliseconds / z);
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: [me, pe, fe, he],
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(me));
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, t;
175
- const s = (a) => {
176
- o || (o = a), t || (t = a);
177
- const l = a - o;
178
- l >= e || // Avoid losing time about one second per minute (now - prev ≈ 16ms) (#43)
179
- l + (a - t) / 2 >= e ? this.progress() : this.requestId = requestAnimationFrame(s), t = a;
180
- };
181
- this.requestId = requestAnimationFrame(s);
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(pe));
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(fe, {
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(he), 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
- ve,
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 Fe(
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 ye = /* @__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))(ye || {});
351
- const we = Q({
352
- components: {
353
- CreditCardPayment: Qe,
354
- HotelRoomOffersView: Ie,
355
- PrebookForm: Ce,
356
- VueCountdown: pt
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
- var o;
368
- const e = {
369
- ...this.lastRequest,
370
- ...this.$props,
371
- features: (o = this.$props.features) == null ? void 0 : o.HotelRoomOffersView
372
- };
373
- 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;
374
- },
375
- isWarningSnackarDisplayed() {
376
- return this.warningSnackbarMessages.length > 0;
377
- },
378
- prebookFormProps() {
379
- var o;
380
- const e = {
381
- ...this.$props,
382
- ...this.lastRequest,
383
- ...this.formdata,
384
- features: (o = this.$props.features) == null ? void 0 : o.PrebookForm
385
- };
386
- 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;
387
- },
388
- transitionName() {
389
- return this.direction > 0 ? "slide-in" : "slide-out";
390
- }
391
- },
392
- created() {
393
- this.$eventBus.$on(
394
- S.BookingPolicyCreated,
395
- this.onBookingPolicyCreated
396
- ), this.$eventBus.$on(
397
- S.HotelRoomOffersPriceIncreased,
398
- ([e, o]) => {
399
- this.warningSnackbarMessages.push(
400
- this.t("HotelRoomOffersBookingFlow.warnings.price", {
401
- from: ne({
402
- amount: o.taxIncludedPrice,
403
- currency: this.config.currency,
404
- locale: this.$i18n.locale
405
- }),
406
- to: ne({
407
- amount: e.taxIncludedPrice,
408
- currency: this.config.currency,
409
- locale: this.$i18n.locale
410
- })
411
- }).toString()
412
- );
413
- }
414
- ), this.$eventBus.$on(S.CancellationPoliciesUpdated, () => {
415
- this.warningSnackbarMessages.push(
416
- this.t(
417
- "HotelRoomOffersBookingFlow.warnings.cancellationPolicies"
418
- ).toString()
419
- );
420
- }), this.$eventBus.$on(
421
- S.HotelRoomOfferRequestCreated,
422
- (e) => {
423
- this.lastRequest = e;
424
- }
425
- ), 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) => {
426
- this.formdata = e;
427
- });
428
- },
429
- data: () => ({
430
- STEPS: ye,
431
- booking: void 0,
432
- bookingPolicy: void 0,
433
- countdownSnackbar: !1,
434
- direction: 1,
435
- formdata: void 0,
436
- lastRequest: void 0,
437
- step: 1,
438
- warningSnackbarMessages: []
439
- }),
440
- methods: {
441
- cancelBooking() {
442
- this.direction = -1, this.step = 1, this.bookingPolicy = void 0, this.booking = void 0, this.warningSnackbarMessages = [];
443
- },
444
- cancelPayment() {
445
- this.direction = -1, this.step = 2;
446
- },
447
- onAfterLeave() {
448
- this.direction = 1;
449
- },
450
- onBackButtonClick() {
451
- [
452
- 2,
453
- 5
454
- /* PaymentSuccessful */
455
- ].includes(this.step) ? this.cancelBooking() : this.step === 3 && this.cancelPayment();
456
- },
457
- onBookingCreated(e) {
458
- this.booking = e, e && (se(), this.direction = 1, this.step = 3);
459
- },
460
- onBookingPolicyCreated(e) {
461
- this.bookingPolicy = e, e && (se(), this.direction = 1, this.step = 2);
462
- },
463
- onCountdownEnd() {
464
- this.countdownSnackbar = !0, this.cancelBooking();
465
- },
466
- onPaymentSuccess() {
467
- this.direction = 1, this.step = 5;
468
- },
469
- transformCountdownTimer(e) {
470
- const o = {};
471
- for (const [t, s] of Object.entries(e)) {
472
- const a = s < 10 ? `0${s}` : s;
473
- o[t] = `${a}`;
474
- }
475
- return o;
476
- }
477
- },
478
- mixins: [
479
- Ze,
480
- Je({
481
- fallbackValue: {},
482
- propsName: "features"
483
- })
484
- ],
485
- props: Se,
486
- setup() {
487
- const { t: e } = Me();
488
- return {
489
- t: e
490
- };
491
- }
492
- });
493
- function be(e) {
494
- const o = e;
495
- o.__i18n = o.__i18n || [], o.__i18n.push({
496
- locale: "",
497
- resource: {
498
- "en-US": {
499
- HotelRoomOffersBookingFlow: {
500
- back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Go back" } },
501
- makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Make a new reservation" } },
502
- steps: {
503
- yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Your Selection" } },
504
- yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Your Details" } },
505
- finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Final Step" } }
506
- },
507
- timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Please complete registration and payment within 15 minutes." } },
508
- timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "After 15 minutes, the reservation we're holding will be released to others." } },
509
- 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." } },
510
- warnings: {
511
- 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." } },
512
- 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: "." }] } }
513
- }
514
- }
515
- },
516
- "fr-FR": {
517
- HotelRoomOffersBookingFlow: {
518
- back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Revenir en arrière" } },
519
- makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Effectuer une nouvelle reservation" } },
520
- steps: {
521
- yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Votre Sélection" } },
522
- yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Vos Informations" } },
523
- finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Dernière Étape" } }
524
- },
525
- timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Veuillez terminer votre réservation dans les 15 prochaines minutes." } },
526
- 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." } },
527
- 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." } },
528
- warnings: {
529
- 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." } },
530
- 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: "." }] } }
531
- }
532
- }
533
- },
534
- "de-DE": {
535
- HotelRoomOffersBookingFlow: {
536
- back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zurück" } },
537
- makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Neue Reservierung erstellen" } },
538
- steps: {
539
- yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ihre Auswahl" } },
540
- yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ihre Angaben" } },
541
- finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Letzter Schritt" } }
542
- },
543
- timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bitte schließen Sie die Registrierung und Zahlung innerhalb von 15 Minuten ab." } },
544
- timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nach 15 Minuten wird die Reservierung, die wir halten, für andere freigegeben." } },
545
- 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." } },
546
- warnings: {
547
- 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." } },
548
- 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." }] } }
549
- }
550
- }
551
- },
552
- "es-ES": {
553
- HotelRoomOffersBookingFlow: {
554
- back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Volver atrás" } },
555
- makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Hacer una nueva reserva" } },
556
- steps: {
557
- yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Tu Selección" } },
558
- yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Tus Datos" } },
559
- finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Paso Final" } }
560
- },
561
- timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, complete el registro y el pago en 15 minutos." } },
562
- timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Después de 15 minutos, la reserva que estamos reteniendo se liberará para otros." } },
563
- timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lo sentimos, tardaste demasiado en completar tu reserva. Aún puedes elegir una oferta." } },
564
- warnings: {
565
- 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." } },
566
- 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: "." }] } }
567
- }
568
- }
569
- },
570
- "it-IT": {
571
- HotelRoomOffersBookingFlow: {
572
- back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Torna indietro" } },
573
- makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Effettua una nuova prenotazione" } },
574
- steps: {
575
- yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "La Tua Selezione" } },
576
- yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "I Tuoi Dettagli" } },
577
- finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Passaggio Finale" } }
578
- },
579
- timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Si prega di completare la registrazione e il pagamento entro 15 minuti." } },
580
- timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Dopo 15 minuti, la prenotazione che stiamo trattenendo verrà rilasciata ad altri clienti." } },
581
- 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." } },
582
- warnings: {
583
- 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." } },
584
- 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: "." }] } }
585
- }
586
- }
587
- },
588
- "nl-NL": {
589
- HotelRoomOffersBookingFlow: {
590
- back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ga terug" } },
591
- makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Maak een nieuwe reservering" } },
592
- steps: {
593
- yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Uw Selectie" } },
594
- yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Uw Gegevens" } },
595
- finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Laatste Stap" } }
596
- },
597
- timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Voltooi de registratie en betaling binnen 15 minuten." } },
598
- timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Na 15 minuten wordt de reservering die we vasthouden vrijgegeven aan anderen." } },
599
- 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." } },
600
- warnings: {
601
- cancellationPolicies: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Het annuleringsbeleid van het geselecteerde tarief is gewijzigd en is restrictiever dan eerder vermeld." } },
602
- 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: "." }] } }
603
- }
604
- }
605
- },
606
- "pt-PT": {
607
- HotelRoomOffersBookingFlow: {
608
- back: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Voltar" } },
609
- makeNewBooking: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Fazer uma nova reserva" } },
610
- steps: {
611
- yourSelection: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "A Sua Seleção" } },
612
- yourDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Os Seus Dados" } },
613
- finalStep: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Passo Final" } }
614
- },
615
- timer1: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, complete o registo e o pagamento dentro de 15 minutos." } },
616
- timer2: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Após 15 minutos, a reserva que estamos a guardar será libertada para outros." } },
617
- timerEnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Desculpe, demorou demasiado tempo a concluir a sua reserva. Ainda pode escolher uma oferta." } },
618
- warnings: {
619
- 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." } },
620
- 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: "." }] } }
621
- }
622
- }
623
- }
624
- }
625
- });
626
- }
627
- const J = Symbol.for("vuetify:v-stepper"), Pe = V({
628
- color: String,
629
- disabled: {
630
- type: [Boolean, String],
631
- default: !1
632
- },
633
- prevText: {
634
- type: String,
635
- default: "$vuetify.stepper.prev"
636
- },
637
- nextText: {
638
- type: String,
639
- default: "$vuetify.stepper.next"
640
- }
641
- }, "VStepperActions"), ft = M()({
642
- name: "VStepperActions",
643
- props: Pe(),
644
- emits: {
645
- "click:prev": () => !0,
646
- "click:next": () => !0
647
- },
648
- setup(e, o) {
649
- let {
650
- emit: t,
651
- slots: s
652
- } = o;
653
- const {
654
- t: a
655
- } = De();
656
- function l() {
657
- t("click:prev");
658
- }
659
- function u() {
660
- t("click:next");
661
- }
662
- return D(() => {
663
- const c = {
664
- onClick: l
665
- }, f = {
666
- onClick: u
667
- };
668
- return i("div", {
669
- class: "v-stepper-actions"
670
- }, [i(ae, {
671
- defaults: {
672
- VBtn: {
673
- disabled: ["prev", !0].includes(e.disabled),
674
- text: a(e.prevText),
675
- variant: "text"
676
- }
677
- }
678
- }, {
679
- default: () => {
680
- var d;
681
- return [((d = s.prev) == null ? void 0 : d.call(s, {
682
- props: c
683
- })) ?? i(G, c, null)];
684
- }
685
- }), i(ae, {
686
- defaults: {
687
- VBtn: {
688
- color: e.color,
689
- disabled: ["next", !0].includes(e.disabled),
690
- text: a(e.nextText),
691
- variant: "tonal"
692
- }
693
- }
694
- }, {
695
- default: () => {
696
- var d;
697
- return [((d = s.next) == null ? void 0 : d.call(s, {
698
- props: f
699
- })) ?? i(G, f, null)];
700
- }
701
- })]);
702
- }), {};
703
- }
704
- }), Ve = rt("v-stepper-header"), ht = V({
705
- color: String,
706
- title: String,
707
- subtitle: String,
708
- complete: Boolean,
709
- completeIcon: {
710
- type: P,
711
- default: "$complete"
712
- },
713
- editable: Boolean,
714
- editIcon: {
715
- type: P,
716
- default: "$edit"
717
- },
718
- error: Boolean,
719
- errorIcon: {
720
- type: P,
721
- default: "$error"
722
- },
723
- icon: P,
724
- ripple: {
725
- type: [Boolean, Object],
726
- default: !0
727
- },
728
- rules: {
729
- type: Array,
730
- default: () => []
731
- }
732
- }, "StepperItem"), vt = V({
733
- ...ht(),
734
- ...st()
735
- }, "VStepperItem"), U = M()({
736
- name: "VStepperItem",
737
- directives: {
738
- Ripple: et
739
- },
740
- props: vt(),
741
- emits: {
742
- "group:selected": (e) => !0
743
- },
744
- setup(e, o) {
745
- let {
746
- slots: t
747
- } = o;
748
- const s = tt(e, J, !0), a = p(() => (s == null ? void 0 : s.value.value) ?? e.value), l = p(() => e.rules.every((R) => R() === !0)), u = p(() => !e.disabled && e.editable), c = p(() => !e.disabled && e.editable), f = p(() => e.error || !l.value), d = p(() => e.complete || e.rules.length > 0 && l.value), r = p(() => f.value ? e.errorIcon : d.value ? e.completeIcon : s.isSelected.value && e.editable ? e.editIcon : e.icon), m = p(() => ({
749
- canEdit: c.value,
750
- hasError: f.value,
751
- hasCompleted: d.value,
752
- title: e.title,
753
- subtitle: e.subtitle,
754
- step: a.value,
755
- value: e.value
756
- }));
757
- return D(() => {
758
- var C, _, L;
759
- const R = (!s || s.isSelected.value || d.value || c.value) && !f.value && !e.disabled, x = !!(e.title != null || t.title), H = !!(e.subtitle != null || t.subtitle);
760
- function $() {
761
- s == null || s.toggle();
762
- }
763
- return He(i("button", {
764
- class: ["v-stepper-item", {
765
- "v-stepper-item--complete": d.value,
766
- "v-stepper-item--disabled": e.disabled,
767
- "v-stepper-item--error": f.value
768
- }, s == null ? void 0 : s.selectedClass.value],
769
- disabled: !e.editable,
770
- type: "button",
771
- onClick: $
772
- }, [u.value && ot(!0, "v-stepper-item"), i(it, {
773
- key: "stepper-avatar",
774
- class: "v-stepper-item__avatar",
775
- color: R ? e.color : void 0,
776
- size: 24
777
- }, {
778
- default: () => {
779
- var h;
780
- return [((h = t.icon) == null ? void 0 : h.call(t, m.value)) ?? (r.value ? i(I, {
781
- icon: r.value
782
- }, null) : a.value)];
783
- }
784
- }), i("div", {
785
- class: "v-stepper-item__content"
786
- }, [x && i("div", {
787
- key: "title",
788
- class: "v-stepper-item__title"
789
- }, [((C = t.title) == null ? void 0 : C.call(t, m.value)) ?? e.title]), H && i("div", {
790
- key: "subtitle",
791
- class: "v-stepper-item__subtitle"
792
- }, [((_ = t.subtitle) == null ? void 0 : _.call(t, m.value)) ?? e.subtitle]), (L = t.default) == null ? void 0 : L.call(t, m.value)])]), [[$e("ripple"), e.ripple && e.editable, null]]);
793
- }), {};
794
- }
795
- }), bt = V({
796
- ...Ne(lt(), ["continuous", "nextIcon", "prevIcon", "showArrows", "touch", "mandatory"])
797
- }, "VStepperWindow"), gt = M()({
798
- name: "VStepperWindow",
799
- props: bt(),
800
- emits: {
801
- "update:modelValue": (e) => !0
802
- },
803
- setup(e, o) {
804
- let {
805
- slots: t
806
- } = o;
807
- const s = Le(J, null), a = Ae(e, "modelValue"), l = p({
808
- get() {
809
- var u;
810
- return a.value != null || !s ? a.value : (u = s.items.value.find((c) => s.selected.value.includes(c.id))) == null ? void 0 : u.value;
811
- },
812
- set(u) {
813
- a.value = u;
814
- }
815
- });
816
- return D(() => {
817
- const u = le.filterProps(e);
818
- return i(le, F({
819
- _as: "VStepperWindow"
820
- }, u, {
821
- modelValue: l.value,
822
- "onUpdate:modelValue": (c) => l.value = c,
823
- class: ["v-stepper-window", e.class],
824
- style: e.style,
825
- mandatory: !1,
826
- touch: !1
827
- }), t);
828
- }), {};
829
- }
830
- }), kt = V({
831
- ...ut()
832
- }, "VStepperWindowItem"), St = M()({
833
- name: "VStepperWindowItem",
834
- props: kt(),
835
- setup(e, o) {
836
- let {
837
- slots: t
838
- } = o;
839
- return D(() => {
840
- const s = ue.filterProps(e);
841
- return i(ue, F({
842
- _as: "VStepperWindowItem"
843
- }, s, {
844
- class: ["v-stepper-window-item", e.class],
845
- style: e.style
846
- }), t);
847
- }), {};
848
- }
849
- }), yt = V({
850
- altLabels: Boolean,
851
- bgColor: String,
852
- completeIcon: P,
853
- editIcon: P,
854
- editable: Boolean,
855
- errorIcon: P,
856
- hideActions: Boolean,
857
- items: {
858
- type: Array,
859
- default: () => []
860
- },
861
- itemTitle: {
862
- type: String,
863
- default: "title"
864
- },
865
- itemValue: {
866
- type: String,
867
- default: "value"
868
- },
869
- nonLinear: Boolean,
870
- flat: Boolean,
871
- ...Ge()
872
- }, "Stepper"), wt = V({
873
- ...yt(),
874
- ...at({
875
- mandatory: "force",
876
- selectedClass: "v-stepper-item--selected"
877
- }),
878
- ...ct(),
879
- ...Ue(Pe(), ["prevText", "nextText"])
880
- }, "VStepper"), Pt = M()({
881
- name: "VStepper",
882
- props: wt(),
883
- emits: {
884
- "update:modelValue": (e) => !0
885
- },
886
- setup(e, o) {
887
- let {
888
- slots: t
889
- } = o;
890
- const {
891
- items: s,
892
- next: a,
893
- prev: l,
894
- selected: u
895
- } = nt(e, J), {
896
- displayClasses: c,
897
- mobile: f
898
- } = ze(e), {
899
- completeIcon: d,
900
- editIcon: r,
901
- errorIcon: m,
902
- color: R,
903
- editable: x,
904
- prevText: H,
905
- nextText: $
906
- } = We(e), C = p(() => e.items.map((h, j) => {
907
- const A = oe(h, e.itemTitle, h), Y = oe(h, e.itemValue, j + 1);
908
- return {
909
- title: A,
910
- value: Y,
911
- raw: h
912
- };
913
- })), _ = p(() => s.value.findIndex((h) => u.value.includes(h.id))), L = p(() => e.disabled ? e.disabled : _.value === 0 ? "prev" : _.value === s.value.length - 1 ? "next" : !1);
914
- return qe({
915
- VStepperItem: {
916
- editable: x,
917
- errorIcon: m,
918
- completeIcon: d,
919
- editIcon: r,
920
- prevText: H,
921
- nextText: $
922
- },
923
- VStepperActions: {
924
- color: R,
925
- disabled: L,
926
- prevText: H,
927
- nextText: $
928
- }
929
- }), D(() => {
930
- const h = ce.filterProps(e), j = !!(t.header || e.items.length), A = e.items.length > 0, Y = !e.hideActions && !!(A || t.actions);
931
- return i(ce, F(h, {
932
- color: e.bgColor,
933
- class: ["v-stepper", {
934
- "v-stepper--alt-labels": e.altLabels,
935
- "v-stepper--flat": e.flat,
936
- "v-stepper--non-linear": e.nonLinear,
937
- "v-stepper--mobile": f.value
938
- }, c.value, e.class],
939
- style: e.style
940
- }), {
941
- default: () => {
942
- var X, ee;
943
- return [j && i(Ve, {
944
- key: "stepper-header"
945
- }, {
946
- default: () => [C.value.map((E, N) => {
947
- let {
948
- raw: K,
949
- ...te
950
- } = E;
951
- return i(ge, null, [!!N && i(Z, null, null), i(U, te, {
952
- default: t[`header-item.${te.value}`] ?? t.header,
953
- icon: t.icon,
954
- title: t.title,
955
- subtitle: t.subtitle
956
- })]);
957
- })]
958
- }), A && i(gt, {
959
- key: "stepper-window"
960
- }, {
961
- default: () => [C.value.map((E) => i(St, {
962
- value: E.value
963
- }, {
964
- default: () => {
965
- var N, K;
966
- return ((N = t[`item.${E.value}`]) == null ? void 0 : N.call(t, E)) ?? ((K = t.item) == null ? void 0 : K.call(t, E));
967
- }
968
- }))]
969
- }), (X = t.default) == null ? void 0 : X.call(t, {
970
- prev: l,
971
- next: a
972
- }), Y && (((ee = t.actions) == null ? void 0 : ee.call(t, {
973
- next: a,
974
- prev: l
975
- })) ?? i(ft, {
976
- key: "stepper-actions",
977
- "onClick:prev": l,
978
- "onClick:next": a
979
- }, t))];
980
- }
981
- });
982
- }), {
983
- prev: l,
984
- next: a
985
- };
986
- }
987
- }), Vt = { class: "pl-3" }, Et = { class: "text-grey-darken-3 font-weight-bold" }, Bt = { class: "text-grey-darken-3 font-weight-bold" }, Ot = { class: "text-grey-darken-3 font-weight-bold" }, It = { 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" }, Tt = { class: "pl-5 ma-0" }, Rt = { class: "font-weight-bold" }, Ct = { class: "font-weight-bold" };
988
- function _t(e, o, t, s, a, l) {
989
- const u = T("VueCountdown"), c = T("PrebookForm"), f = T("CreditCardPayment"), d = T("HotelRoomOffersView");
990
- return v(), k(O, { dense: "" }, {
991
- default: n(() => [
992
- i(re, {
993
- modelValue: e.isWarningSnackarDisplayed,
994
- "onUpdate:modelValue": o[0] || (o[0] = (r) => e.isWarningSnackarDisplayed = r),
995
- color: "warning",
996
- class: "elevation-0",
997
- "max-width": "1000px",
998
- timeout: -1,
999
- location: "top"
1000
- }, {
1001
- actions: n(({ isActive: r }) => [
1002
- i(G, {
1003
- color: "white",
1004
- variant: "text",
1005
- onClick: () => {
1006
- r.value = !1, e.warningSnackbarMessages = [];
1007
- }
1008
- }, {
1009
- default: n(() => [
1010
- i(I, {
1011
- color: "white",
1012
- size: "16"
1013
- }, {
1014
- default: n(() => o[4] || (o[4] = [
1015
- y(" fas fa-times ")
1016
- ])),
1017
- _: 1,
1018
- __: [4]
1019
- })
1020
- ]),
1021
- _: 2
1022
- }, 1032, ["onClick"])
1023
- ]),
1024
- default: n(() => [
1025
- (v(!0), ie(ge, null, xe(e.warningSnackbarMessages, (r, m) => (v(), ie("p", {
1026
- key: m,
1027
- class: "text-white ma-0"
1028
- }, [
1029
- m === 0 ? (v(), k(I, {
1030
- key: 0,
1031
- color: "white",
1032
- size: "20"
1033
- }, {
1034
- default: n(() => o[3] || (o[3] = [
1035
- y(" fas fa-triangle-exclamation ")
1036
- ])),
1037
- _: 1,
1038
- __: [3]
1039
- })) : B("", !0),
1040
- b("span", Vt, g(r), 1)
1041
- ]))), 128))
1042
- ]),
1043
- _: 1
1044
- }, 8, ["modelValue"]),
1045
- i(w, null, {
1046
- default: n(() => [
1047
- [e.STEPS.PreBook, e.STEPS.Payment, e.STEPS.PaymentSuccessful].includes(e.step) ? (v(), k(O, {
1048
- key: 0,
1049
- dense: ""
1050
- }, {
1051
- default: n(() => [
1052
- i(w, {
1053
- "align-self": "center",
1054
- cols: "12",
1055
- sm: "3"
1056
- }, {
1057
- default: n(() => [
1058
- i(G, {
1059
- variant: "text",
1060
- size: "x-small",
1061
- onClick: e.onBackButtonClick
1062
- }, {
1063
- default: n(() => [
1064
- i(I, {
1065
- start: "",
1066
- size: "x-small"
1067
- }, {
1068
- default: n(() => o[5] || (o[5] = [
1069
- y(" fas fa-arrow-left ")
1070
- ])),
1071
- _: 1,
1072
- __: [5]
1073
- }),
1074
- y(" " + g(e.backButtonLabel), 1)
1075
- ]),
1076
- _: 1
1077
- }, 8, ["onClick"])
1078
- ]),
1079
- _: 1
1080
- }),
1081
- [e.STEPS.PreBook, e.STEPS.Payment, e.STEPS.PaymentSuccessful].includes(
1082
- e.step
1083
- ) ? (v(), k(w, {
1084
- key: 0,
1085
- cols: "12",
1086
- sm: "9"
1087
- }, {
1088
- default: n(() => [
1089
- i(Pt, {
1090
- class: "bg-transparent",
1091
- modelValue: e.step,
1092
- "onUpdate:modelValue": o[1] || (o[1] = (r) => e.step = r),
1093
- elevation: "0"
1094
- }, {
1095
- default: n(() => [
1096
- i(Ve, { color: "primary" }, {
1097
- default: n(() => [
1098
- i(U, {
1099
- color: "primary",
1100
- complete: "",
1101
- value: e.STEPS.Idle
1102
- }, {
1103
- default: n(() => [
1104
- b("small", Et, g(e.t("HotelRoomOffersBookingFlow.steps.yourSelection")), 1)
1105
- ]),
1106
- _: 1
1107
- }, 8, ["value"]),
1108
- i(Z),
1109
- i(U, {
1110
- color: "primary",
1111
- complete: [e.STEPS.PaymentSuccessful, e.STEPS.Payment].includes(e.step),
1112
- value: e.STEPS.PreBook
1113
- }, {
1114
- default: n(() => [
1115
- b("small", Bt, g(e.t("HotelRoomOffersBookingFlow.steps.yourDetails")), 1)
1116
- ]),
1117
- _: 1
1118
- }, 8, ["complete", "value"]),
1119
- i(Z),
1120
- i(U, {
1121
- color: "primary",
1122
- complete: e.step === e.STEPS.PaymentSuccessful,
1123
- value: e.STEPS.Payment
1124
- }, {
1125
- default: n(() => [
1126
- b("small", Ot, g(e.t("HotelRoomOffersBookingFlow.steps.finalStep")), 1)
1127
- ]),
1128
- _: 1
1129
- }, 8, ["complete", "value"])
1130
- ]),
1131
- _: 1
1132
- })
1133
- ]),
1134
- _: 1
1135
- }, 8, ["modelValue"])
1136
- ]),
1137
- _: 1
1138
- })) : B("", !0)
1139
- ]),
1140
- _: 1
1141
- })) : B("", !0),
1142
- [e.STEPS.PreBook, e.STEPS.Payment].includes(e.step) ? (v(), k(O, {
1143
- key: 1,
1144
- dense: ""
1145
- }, {
1146
- default: n(() => [
1147
- i(w, null, {
1148
- default: n(() => [
1149
- i(dt, {
1150
- color: "primary",
1151
- border: "start",
1152
- "border-color": "primary",
1153
- variant: "tonal",
1154
- prominent: "",
1155
- type: "info"
1156
- }, {
1157
- prepend: n(() => [
1158
- b("b", It, [
1159
- i(I, {
1160
- class: "d-none d-md-inline-block mr-2 mb-1",
1161
- color: "primary",
1162
- size: "24px"
1163
- }, {
1164
- default: n(() => o[6] || (o[6] = [
1165
- y(" fas fa-stopwatch")
1166
- ])),
1167
- _: 1,
1168
- __: [6]
1169
- }),
1170
- i(u, {
1171
- time: 15 * 60 * 1e3,
1172
- transform: e.transformCountdownTimer,
1173
- onEnd: e.onCountdownEnd
1174
- }, {
1175
- default: n((r) => [
1176
- y(g(r.minutes) + ":" + g(r.seconds), 1)
1177
- ]),
1178
- _: 1
1179
- }, 8, ["transform", "onEnd"])
1180
- ])
1181
- ]),
1182
- default: n(() => [
1183
- b("p", Tt, [
1184
- b("span", Rt, g(e.t("HotelRoomOffersBookingFlow.timer1")), 1),
1185
- o[7] || (o[7] = b("br", null, null, -1)),
1186
- b("span", Ct, g(e.t("HotelRoomOffersBookingFlow.timer2")), 1)
1187
- ])
1188
- ]),
1189
- _: 1
1190
- })
1191
- ]),
1192
- _: 1
1193
- })
1194
- ]),
1195
- _: 1
1196
- })) : B("", !0),
1197
- i(re, {
1198
- modelValue: e.countdownSnackbar,
1199
- "onUpdate:modelValue": o[2] || (o[2] = (r) => e.countdownSnackbar = r),
1200
- color: "warning",
1201
- class: "elevation-0",
1202
- timeout: "10000",
1203
- location: "top"
1204
- }, {
1205
- default: n(() => [
1206
- i(I, { class: "px-4" }, {
1207
- default: n(() => o[8] || (o[8] = [
1208
- y(" fas fa-hourglass-end ")
1209
- ])),
1210
- _: 1,
1211
- __: [8]
1212
- }),
1213
- b("span", null, g(e.t("HotelRoomOffersBookingFlow.timerEnd")), 1)
1214
- ]),
1215
- _: 1
1216
- }, 8, ["modelValue"]),
1217
- i(je, {
1218
- name: e.transitionName,
1219
- onAfterLeave: e.onAfterLeave
1220
- }, {
1221
- default: n(() => [
1222
- i(O, { "no-gutters": "" }, {
1223
- default: n(() => [
1224
- i(w, null, {
1225
- default: n(() => [
1226
- e.step === e.STEPS.PreBook ? (v(), k(O, {
1227
- key: 0,
1228
- "no-gutters": ""
1229
- }, {
1230
- default: n(() => [
1231
- i(w, null, {
1232
- default: n(() => {
1233
- var r, m;
1234
- return [
1235
- i(c, F(e.prebookFormProps, {
1236
- "booking-policy-id": (r = e.bookingPolicy) == null ? void 0 : r.id,
1237
- features: e.parsedFeatures.PrebookForm,
1238
- "hotel-room-offer": (m = e.bookingPolicy) == null ? void 0 : m.hotelRoomOffer
1239
- }), null, 16, ["booking-policy-id", "features", "hotel-room-offer"])
1240
- ];
1241
- }),
1242
- _: 1
1243
- })
1244
- ]),
1245
- _: 1
1246
- })) : B("", !0),
1247
- [e.STEPS.Payment, e.STEPS.PaymentSuccessful].includes(e.step) ? (v(), k(O, {
1248
- key: 1,
1249
- "no-gutters": ""
1250
- }, {
1251
- default: n(() => [
1252
- i(w, null, {
1253
- default: n(() => {
1254
- var r;
1255
- return [
1256
- i(f, {
1257
- token: (r = e.booking) == null ? void 0 : r.token
1258
- }, null, 8, ["token"])
1259
- ];
1260
- }),
1261
- _: 1
1262
- })
1263
- ]),
1264
- _: 1
1265
- })) : e.step === e.STEPS.Idle ? (v(), k(d, F({ key: 2 }, e.hotelRoomOffersViewProps, {
1266
- features: e.parsedFeatures.HotelRoomOffersView
1267
- }), null, 16, ["features"])) : B("", !0)
1268
- ]),
1269
- _: 1
1270
- })
1271
- ]),
1272
- _: 1
1273
- })
1274
- ]),
1275
- _: 1
1276
- }, 8, ["name", "onAfterLeave"])
1277
- ]),
1278
- _: 1
1279
- })
1280
- ]),
1281
- _: 1
1282
- });
1283
- }
1284
- typeof be == "function" && be(we);
1285
- const Ft = /* @__PURE__ */ ke(we, [["render", _t], ["__scopeId", "data-v-17bd38d1"]]), Mt = Q({
1286
- components: {
1287
- HotelRoomOffersBookingFlow: Ft,
1288
- WebComponentWrapper: Xe
1289
- },
1290
- props: Se
1291
- });
1292
- function Dt(e, o, t, s, a, l) {
1293
- const u = T("HotelRoomOffersBookingFlow", !0), c = T("WebComponentWrapper");
1294
- return v(), k(c, null, {
1295
- default: n(() => [
1296
- i(u, Ye(Ke(e.$props)), null, 16)
1297
- ]),
1298
- _: 1
1299
- });
1300
- }
1301
- const Xt = /* @__PURE__ */ ke(Mt, [["render", Dt]]);
1302
- Ee("css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css");
1303
- export {
1304
- Xt as default
1305
- };
1306
- //# sourceMappingURL=revolugo.hotelroomoffersbookingflow.Bef_aJFl.min.js.map