@revolugo/elements 6.9.3-beta.9 → 6.9.4-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/dist/css/fonts.css +1 -1
  2. package/dist/css/revolugo.bdaterangepicker.OLspTh_0.css +1 -0
  3. package/dist/css/revolugo.bhoteloffersfilterbar.BebBKpCh.css +1 -0
  4. package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +1 -0
  5. package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +1 -0
  6. package/dist/css/revolugo.bookingdetailssidebar.Cp4sLBjD.css +1 -0
  7. package/dist/css/revolugo.bstarrating.CPHKEfup.css +1 -0
  8. package/dist/css/revolugo.btag.T7X_iIkW.css +1 -0
  9. package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +1 -0
  10. package/dist/css/revolugo.creditcardform.DWne0Lnv.css +1 -0
  11. package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +1 -0
  12. package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +1 -0
  13. package/dist/css/revolugo.hoteldescriptionview.B-RiiuPY.css +1 -0
  14. package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +1 -0
  15. package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +1 -0
  16. package/dist/css/revolugo.hoteloffersmap.Z5DFtK0_.css +1 -0
  17. package/dist/css/revolugo.hoteloffersview.CLbnSww6.css +1 -0
  18. package/dist/css/revolugo.hotelroomofferlist.D8JlZt_N.css +1 -0
  19. package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +1 -0
  20. package/dist/css/revolugo.index.DK7d_h6O.css +1 -0
  21. package/dist/css/revolugo.index.XNPQF1ia.css +5 -0
  22. package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +1 -0
  23. package/dist/css/revolugo.prebookform.DmCR7hLv.css +1 -0
  24. package/dist/css/revolugo.preferencesmenu.fPv_7j-1.css +1 -0
  25. package/dist/css/revolugo.termsandconditions.D8IMR9da.css +1 -0
  26. package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +1 -0
  27. package/dist/css/revolugo.vbadge.C45eZpxy.css +1 -0
  28. package/dist/css/revolugo.vbtn.DpMO1Ky2.css +1 -0
  29. package/dist/css/revolugo.vcard.TERzfknI.css +1 -0
  30. package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +1 -0
  31. package/dist/css/revolugo.vdialog.DwTSAOeg.css +1 -0
  32. package/dist/css/revolugo.vdivider.CTbbZwnv.css +1 -0
  33. package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +1 -0
  34. package/dist/css/revolugo.vicon.eIkh7vVK.css +1 -0
  35. package/dist/css/revolugo.vinput.BPiFMorL.css +1 -0
  36. package/dist/css/revolugo.vlabel.BvKaKg7Y.css +1 -0
  37. package/dist/css/revolugo.vlist.-Y4qkukF.css +1 -0
  38. package/dist/css/revolugo.vmenu.DvKwEp1j.css +1 -0
  39. package/dist/css/revolugo.vselect.C5CKHFYB.css +1 -0
  40. package/dist/css/revolugo.vsheet.Dmcoj8cr.css +1 -0
  41. package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +1 -0
  42. package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +1 -0
  43. package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +1 -0
  44. package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +1 -0
  45. package/dist/css/revolugo.vtextfield.BIH_AWWP.css +1 -0
  46. package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +1 -0
  47. package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +1 -0
  48. package/dist/css/{revolugo.webcomponentwrapper.BQSUxe3K.css → revolugo.webcomponentwrapper.cFJPP6Rp.css} +1 -1
  49. package/dist/index.es.min.js +1518 -1275
  50. package/dist/index.es.min.js.map +1 -1
  51. package/dist/index.min.js +5 -5
  52. package/dist/index.min.js.map +1 -1
  53. package/dist/revolugo._baseiteratee.C9fSfygW.min.js +247 -0
  54. package/dist/revolugo.banktransferdetails.HF-5whLi.min.js +373 -0
  55. package/dist/revolugo.bdaterangepicker.Dztdr7of.min.js +8327 -0
  56. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.WRP6nh8U.min.js +146 -0
  57. package/dist/revolugo.bhoteloffersfilterbar.riRikxpD.min.js +4901 -0
  58. package/dist/revolugo.bhotelroomsdetails.DSVvK0I7.min.js +965 -0
  59. package/dist/revolugo.bimagecarousel.0DDXWSsX.min.js +566 -0
  60. package/dist/revolugo.bookingdetailssidebar.B3nJVjzT.min.js +24 -0
  61. package/dist/revolugo.bookingdetailssidebar.HR95sw2v.min.js +870 -0
  62. package/dist/revolugo.bookingmanager.CHhySvbL.min.js +1755 -0
  63. package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.DCBOxir-.min.js +66 -0
  64. package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.D7d1JNOc.min.js +570 -0
  65. package/dist/revolugo.btag.C27GlEZ3.min.js +375 -0
  66. package/dist/revolugo.cancellationpoliciesbadge.CQ9NQZ7F.min.js +28 -0
  67. package/dist/revolugo.cancellationpoliciesbadge.D7VDRPmO.min.js +198 -0
  68. package/dist/revolugo.cancellationpolicieslist.DUrr7Myp.min.js +25 -0
  69. package/dist/revolugo.cancellationpolicieslist.IKkTYxdE.min.js +148 -0
  70. package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +21 -0
  71. package/dist/revolugo.case-transformers.Blb5hegY.min.js +123 -0
  72. package/dist/revolugo.common.D-l8b0V5.min.js +10 -0
  73. package/dist/{revolugo.creditcardstripeform.B8KtVBUI.min.js → revolugo.creditcardform.CejFX150.min.js} +886 -888
  74. package/dist/revolugo.creditcardform.Dx00l01z.min.js +24 -0
  75. package/dist/revolugo.creditcardpayment.CkfC2xTo.min.js +885 -0
  76. package/dist/revolugo.creditcardpayment.DZf0q5_n.min.js +24 -0
  77. package/dist/revolugo.currencypicker.B9c-AV8V.min.js +328 -0
  78. package/dist/revolugo.currencypickerbtn.B_lw6N3Y.min.js +24 -0
  79. package/dist/revolugo.currencypickerbtn.edi3iO6h.min.js +157 -0
  80. package/dist/revolugo.dates.DiE5ynTe.min.js +31 -0
  81. package/dist/revolugo.defaultsdeep.EmfuGqBQ.min.js +104 -0
  82. package/dist/{revolugo.dialog-attach.e4eWyf04.min.js → revolugo.dialog-attach.C4Yvk6WJ.min.js} +2 -2
  83. package/dist/revolugo.dialog-transition.Dly9KKqO.min.js +111 -0
  84. package/dist/revolugo.fastbookingflow.DPOX_gos.min.js +34 -0
  85. package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +70 -0
  86. package/dist/revolugo.fullbookingflow.DSJE_kaM.min.js +429 -0
  87. package/dist/revolugo.hotel-offer-request.C9zwgVPt.min.js +98 -0
  88. package/dist/revolugo.hoteldescriptionview.Dtd-_3_8.min.js +24 -0
  89. package/dist/revolugo.hoteldescriptionview.kERJQPWm.min.js +2738 -0
  90. package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.CiHBAV7m.min.js +239 -0
  91. package/dist/revolugo.hotelofferlist.BC-TSjS6.min.js +24 -0
  92. package/dist/revolugo.hotelofferlist.D2AXSf4v.min.js +5640 -0
  93. package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +44 -0
  94. package/dist/revolugo.hoteloffersearchmenu.BODV4ZIe.min.js +202 -0
  95. package/dist/revolugo.hoteloffersearchmenuui.DqWHAurZ.min.js +829 -0
  96. package/dist/revolugo.hoteloffersmap.C6nn7LXn.min.js +8330 -0
  97. package/dist/revolugo.hoteloffersmap.Db9NNgcN.min.js +24 -0
  98. package/dist/revolugo.hoteloffersview.BAwQcocI.min.js +19 -0
  99. package/dist/revolugo.hoteloffersview.CIVNGmGO.min.js +616 -0
  100. package/dist/revolugo.hotelroomofferlist.C9y91Ya3.min.js +2799 -0
  101. package/dist/revolugo.hotelroomofferlist.CiBIB0Pb.min.js +24 -0
  102. package/dist/revolugo.hotelroomofferrequestcreator.props.2Sq_iptZ.min.js +171 -0
  103. package/dist/revolugo.hotelroomoffersbookingflow.BS4Fa2EH.min.js +1281 -0
  104. package/dist/revolugo.hotelroomoffersearchmenu.CXgExPhR.min.js +25 -0
  105. package/dist/revolugo.hotelroomoffersearchmenu.x_--4RXV.min.js +231 -0
  106. package/dist/revolugo.hotelroomoffersview.BzmRXy0a.min.js +290 -0
  107. package/dist/revolugo.hotelroomoffersview.CFo6k7zm.min.js +24 -0
  108. package/dist/revolugo.index.CDNx7Tg4.min.js +67 -0
  109. package/dist/revolugo.index.DZEISB0K.min.js +1232 -0
  110. package/dist/{revolugo.index.wc.CiJw1SpW.min.js → revolugo.index.wc.DLkeXtka.min.js} +4659 -4637
  111. package/dist/revolugo.langpicker.D7zIuy78.min.js +99 -0
  112. package/dist/revolugo.langpickerbtn.BF7sml8K.min.js +29 -0
  113. package/dist/revolugo.langpickerbtn.DMcy_gHZ.min.js +131 -0
  114. package/dist/revolugo.min.js +1 -1
  115. package/dist/revolugo.parsed-props.B5g9_9k5.min.js +40 -0
  116. package/dist/revolugo.pathify.DL0POvNz.min.js +36 -0
  117. package/dist/revolugo.prebookform.BMEaruyl.min.js +1527 -0
  118. package/dist/revolugo.prebookform.BVyTAnc9.min.js +24 -0
  119. package/dist/revolugo.preferencesmenu.5pUjkA0F.min.js +24 -0
  120. package/dist/revolugo.preferencesmenu.CfUC3L6C.min.js +261 -0
  121. package/dist/revolugo.roominglisteditor.DLWeU6Ct.min.js +385 -0
  122. package/dist/revolugo.roominglisteditor.L6CmotRz.min.js +24 -0
  123. package/dist/revolugo.rounded.C-2ilaaW.min.js +68 -0
  124. package/dist/revolugo.ssrboot.D7k4-YG4.min.js +18 -0
  125. package/dist/revolugo.storybooktoolbar.CTe_QwGW.min.js +881 -0
  126. package/dist/revolugo.termsandconditions.Cue6Dsm7.min.js +404 -0
  127. package/dist/revolugo.termsandconditions.DBq-dEuI.min.js +23 -0
  128. package/dist/revolugo.use-breakpoint-service.DsQuZJRM.min.js +39 -0
  129. package/dist/revolugo.use-dialog-attach.DLdl8iIG.min.js +16 -0
  130. package/dist/revolugo.use-html-element.c9F9oVPw.min.js +11 -0
  131. package/dist/revolugo.vautocomplete.Q2U5ECgn.min.js +445 -0
  132. package/dist/revolugo.vbadge.D-lbOD0r.min.js +112 -0
  133. package/dist/revolugo.vbtn.B-LYC8rJ.min.js +398 -0
  134. package/dist/revolugo.vcard.ZlYB5HOk.min.js +313 -0
  135. package/dist/revolugo.vcheckboxbtn.BGpOwRWV.min.js +478 -0
  136. package/dist/revolugo.vdialog.DlAgRbIv.min.js +133 -0
  137. package/dist/revolugo.vdivider.D1ITKKuu.min.js +77 -0
  138. package/dist/revolugo.vexpansionpanels.D8TtnQrF.min.js +262 -0
  139. package/dist/revolugo.vform.gu3frP5W.min.js +46 -0
  140. package/dist/revolugo.vicon.mrg8OisO.min.js +105 -0
  141. package/dist/revolugo.vinput.BowTI8jK.min.js +463 -0
  142. package/dist/revolugo.vlabel.BjtrjyZZ.min.js +48 -0
  143. package/dist/revolugo.vlist.BwlPoH0e.min.js +1299 -0
  144. package/dist/revolugo.vmenu.Dasw1a1s.min.js +145 -0
  145. package/dist/revolugo.vselect.B4IzM260.min.js +660 -0
  146. package/dist/revolugo.vsheet.CDgBUxHk.min.js +72 -0
  147. package/dist/revolugo.vskeletonloader.DgIjR-8k.min.js +136 -0
  148. package/dist/revolugo.vslidegroup.BV7NJuLN.min.js +325 -0
  149. package/dist/revolugo.vsnackbar.DFnMGJQg.min.js +198 -0
  150. package/dist/revolugo.vspacer.DqnVrVYg.min.js +7 -0
  151. package/dist/revolugo.vtextarea.CgekaBze.min.js +2092 -0
  152. package/dist/revolugo.vtextfield.BhmuZsP7.min.js +501 -0
  153. package/dist/{revolugo.vtoolbar.Ctwu8OKs.min.js → revolugo.vtoolbar.CMwcpp3v.min.js} +44 -42
  154. package/dist/revolugo.vtooltip.a-r5BxqW.min.js +89 -0
  155. package/dist/revolugo.vwindowitem.BHzrfo73.min.js +317 -0
  156. package/dist/revolugo.watch-list.BSqnQNdl.min.js +16 -0
  157. package/dist/revolugo.webcomponentwrapper.BNmjcBmh.min.js +2088 -0
  158. package/package.json +5 -5
  159. package/dist/css/revolugo.cancellationpoliciesbadge.DM3Cgr8A.css +0 -1
  160. package/dist/css/revolugo.creditcardstripeform.DN5YJSMj.css +0 -1
  161. package/dist/css/revolugo.index.ClC0OVqq.css +0 -5
  162. package/dist/css/revolugo.preferencesmenu.D2263Vn6.css +0 -1
  163. package/dist/revolugo.banktransferdetails.DFskPIBN.min.js +0 -47
  164. package/dist/revolugo.bookingdetailssidebar.BOs76Qod.min.js +0 -43
  165. package/dist/revolugo.bookingmanager.DzzQLMr9.min.js +0 -26
  166. package/dist/revolugo.cancellationpoliciesbadge.BRcM9UUl.min.js +0 -26
  167. package/dist/revolugo.cancellationpoliciesbadge.props.YZrc252e.min.js +0 -28756
  168. package/dist/revolugo.cancellationpolicieslist.B7Mf5bmE.min.js +0 -26
  169. package/dist/revolugo.creditcardstripeform.DkNqhTcH.min.js +0 -50
  170. package/dist/revolugo.currencypickerbtn.C1B6gpLV.min.js +0 -26
  171. package/dist/revolugo.fastbookingflow.VfdAOD-j.min.js +0 -36
  172. package/dist/revolugo.fullbookingflow.CFl16ykj.min.js +0 -26
  173. package/dist/revolugo.hoteldescriptionview.DTByBiNZ.min.js +0 -26
  174. package/dist/revolugo.hotelofferlist.HS8rTNwv.min.js +0 -26
  175. package/dist/revolugo.hoteloffersearchmenu.DLC5yEDD.min.js +0 -115
  176. package/dist/revolugo.hoteloffersmap.l4UaNpun.min.js +0 -26
  177. package/dist/revolugo.hoteloffersview.DxUc5TlW.min.js +0 -21
  178. package/dist/revolugo.hotelroomofferlist.ryYBtMFY.min.js +0 -26
  179. package/dist/revolugo.hotelroomoffersbookingflow.BWIa87mZ.min.js +0 -26
  180. package/dist/revolugo.hotelroomoffersearchmenu.4-HSRz_y.min.js +0 -26
  181. package/dist/revolugo.hotelroomoffersview.Df2SYo4D.min.js +0 -26
  182. package/dist/revolugo.index.Qn3FvgFh.min.js +0 -106
  183. package/dist/revolugo.langpickerbtn.rFwls9XZ.min.js +0 -31
  184. package/dist/revolugo.prebookform.D33OnpHn.min.js +0 -26
  185. package/dist/revolugo.preferencesmenu.BOWFkVY9.min.js +0 -24
  186. package/dist/revolugo.preferencesmenu.PVSL2fWE.min.js +0 -949
  187. package/dist/revolugo.roominglisteditor.gLjgOdGD.min.js +0 -26
  188. package/dist/revolugo.storybooktoolbar.DZrgGX1X.min.js +0 -838
  189. package/dist/revolugo.termsandconditions.3W9GTrVc.min.js +0 -31
  190. package/dist/revolugo.webcomponentwrapper.PTHIHE3G.min.js +0 -28624
@@ -0,0 +1,24 @@
1
+ import { p, a as s } from "./revolugo.prebookform.BMEaruyl.min.js";
2
+ import { W as t, _ as a } from "./revolugo.webcomponentwrapper.BNmjcBmh.min.js";
3
+ import { d as m, c, w as _, a as f, n as i, h as l, r as o, o as b } from "./revolugo.index.wc.DLkeXtka.min.js";
4
+ const d = m({
5
+ components: {
6
+ PrebookForm: s,
7
+ WebComponentWrapper: t
8
+ },
9
+ props: p
10
+ });
11
+ function u(e, k, P, W, C, F) {
12
+ const r = o("PrebookForm", !0), n = o("WebComponentWrapper");
13
+ return b(), c(n, null, {
14
+ default: _(() => [
15
+ f(r, i(l(e.$props)), null, 16)
16
+ ]),
17
+ _: 1
18
+ });
19
+ }
20
+ const v = /* @__PURE__ */ a(d, [["render", u]]);
21
+ export {
22
+ v as default
23
+ };
24
+ //# sourceMappingURL=revolugo.prebookform.BVyTAnc9.min.js.map
@@ -0,0 +1,24 @@
1
+ import { p as s, P as p } from "./revolugo.preferencesmenu.CfUC3L6C.min.js";
2
+ import { W as t, _ as a } from "./revolugo.webcomponentwrapper.BNmjcBmh.min.js";
3
+ import { d as c, c as f, w as m, a as u, n as _, h as i, r as e, o as l } from "./revolugo.index.wc.DLkeXtka.min.js";
4
+ const d = c({
5
+ components: {
6
+ PreferencesMenu: p,
7
+ WebComponentWrapper: t
8
+ },
9
+ props: s
10
+ });
11
+ function P(n, W, C, M, $, b) {
12
+ const r = e("PreferencesMenu", !0), o = e("WebComponentWrapper");
13
+ return l(), f(o, null, {
14
+ default: m(() => [
15
+ u(r, _(i(n.$props)), null, 16)
16
+ ]),
17
+ _: 1
18
+ });
19
+ }
20
+ const v = /* @__PURE__ */ a(d, [["render", P]]);
21
+ export {
22
+ v as default
23
+ };
24
+ //# sourceMappingURL=revolugo.preferencesmenu.5pUjkA0F.min.js.map
@@ -0,0 +1,261 @@
1
+ import { d as h, u as E, c4 as L, c5 as v, c6 as S, i as u, a as t, w as n, r as i, D as V, e as p, t as M, o as f } from "./revolugo.index.wc.DLkeXtka.min.js";
2
+ import { a as _, C as b } from "./revolugo.currencypickerbtn.edi3iO6h.min.js";
3
+ import { L as B } from "./revolugo.langpickerbtn.DMcy_gHZ.min.js";
4
+ import { p as w } from "./revolugo.parsed-props.B5g9_9k5.min.js";
5
+ import { _ as O, V as m, a as g } from "./revolugo.webcomponentwrapper.BNmjcBmh.min.js";
6
+ import { V as T, a as R } from "./revolugo.vcard.ZlYB5HOk.min.js";
7
+ import { a as U } from "./revolugo.vbtn.B-LYC8rJ.min.js";
8
+ import { h as N, f as $ } from "./revolugo.index.DZEISB0K.min.js";
9
+ import { V as D } from "./revolugo.vmenu.Dasw1a1s.min.js";
10
+ function C(e) {
11
+ try {
12
+ if (typeof document < "u") {
13
+ window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
14
+ sheets: [],
15
+ components: []
16
+ };
17
+ const o = import.meta.url, a = o.slice(0, o.lastIndexOf("/") + 1) + e;
18
+ window.REVOLUGO_ELEMENTS_STYLES.sheets.push(a);
19
+ for (const l of REVOLUGO_ELEMENTS_STYLES.components)
20
+ l(a);
21
+ if (e.indexOf("fonts") >= 0) {
22
+ const l = document.createElement("link");
23
+ l.rel = "stylesheet", linK.href = a, document.head.appendChild(l);
24
+ }
25
+ }
26
+ } catch (o) {
27
+ console.error("[revolugo-elements] ", o);
28
+ }
29
+ }
30
+ var s = /* @__PURE__ */ ((e) => (e.Top = "top", e.Bottom = "bottom", e.Left = "left", e.Right = "right", e))(s || {});
31
+ const I = {
32
+ block: {
33
+ default: !1,
34
+ type: Boolean
35
+ },
36
+ color: {
37
+ default: "secondary",
38
+ type: String
39
+ },
40
+ compact: {
41
+ default: !1,
42
+ type: Boolean
43
+ },
44
+ direction: {
45
+ default: "top",
46
+ type: String
47
+ }
48
+ }, y = h({
49
+ components: {
50
+ CurrencyPickerBtn: b,
51
+ CurrencyPickerDialog: _,
52
+ LangPickerBtn: B
53
+ },
54
+ computed: {
55
+ activeCurrency() {
56
+ return S[this.config.currency];
57
+ },
58
+ langPickerModel: {
59
+ get() {
60
+ return this.$i18n.locale;
61
+ },
62
+ set(e) {
63
+ v(this.config, e, this.$eventBus);
64
+ }
65
+ },
66
+ transition() {
67
+ switch (this.direction) {
68
+ case s.Top:
69
+ return "slide-y-reverse-transition";
70
+ case s.Bottom:
71
+ return "slide-y-transition";
72
+ case s.Left:
73
+ return "slide-x-reverse-transition";
74
+ case s.Right:
75
+ return "slide-x-transition";
76
+ case void 0:
77
+ default:
78
+ return "slide-y-transition";
79
+ }
80
+ }
81
+ },
82
+ data() {
83
+ return {
84
+ LOCALES: L,
85
+ currencyPickerDialog: !1
86
+ };
87
+ },
88
+ methods: {
89
+ onCurrencyPickerBtnClicked() {
90
+ this.currencyPickerDialog = !0;
91
+ }
92
+ },
93
+ mixins: [
94
+ w({
95
+ fallbackValue: !1,
96
+ propsName: "compact"
97
+ })
98
+ ],
99
+ name: "PreferencesMenu",
100
+ props: I,
101
+ setup() {
102
+ const { t: e } = E();
103
+ return {
104
+ t: e
105
+ };
106
+ }
107
+ });
108
+ function k(e) {
109
+ const o = e;
110
+ o.__i18n = o.__i18n || [], o.__i18n.push({
111
+ locale: "",
112
+ resource: {
113
+ "en-US": {
114
+ PreferencesMenu: {
115
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pick your language and currency" } }
116
+ }
117
+ },
118
+ "fr-FR": {
119
+ PreferencesMenu: {
120
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Choisissez votre langue et votre devise" } }
121
+ }
122
+ },
123
+ "de-DE": {
124
+ PreferencesMenu: {
125
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Wähle deine Sprache und Währung" } }
126
+ }
127
+ },
128
+ "es-ES": {
129
+ PreferencesMenu: {
130
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Elige tu idioma y divisa" } }
131
+ }
132
+ },
133
+ "it-IT": {
134
+ PreferencesMenu: {
135
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Scegli la tua lingua e valuta" } }
136
+ }
137
+ },
138
+ "nl-NL": {
139
+ PreferencesMenu: {
140
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kies je taal en valuta" } }
141
+ }
142
+ },
143
+ "pt-PT": {
144
+ PreferencesMenu: {
145
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Escolha o seu idioma e moeda" } }
146
+ }
147
+ }
148
+ }
149
+ });
150
+ }
151
+ const A = { key: 0 }, j = { class: "pr-1" }, G = { key: 1 };
152
+ function Y(e, o, a, l, z, K) {
153
+ const c = i("CurrencyPickerBtn"), d = i("LangPickerBtn"), P = i("CurrencyPickerDialog");
154
+ return e.parsedCompact ? (f(), u("div", A, [
155
+ t(D, {
156
+ "content-class": "elevation-0",
157
+ elevation: "0",
158
+ location: e.direction,
159
+ transition: e.transition
160
+ }, {
161
+ activator: n(({ props: r }) => [
162
+ t(U, V({
163
+ block: e.block,
164
+ class: "elevation-0 px-1",
165
+ color: e.color,
166
+ size: "small"
167
+ }, r, { style: { "max-width": "62px", width: "62px" } }), {
168
+ default: n(() => [
169
+ p("small", j, M(e.activeCurrency.code) + " / ", 1),
170
+ t(N, { size: "16" }, {
171
+ default: n(() => [
172
+ t($, {
173
+ "max-height": "16",
174
+ "max-width": "16",
175
+ src: `https://flagcdn.com/h60/${e.LOCALES[e.langPickerModel].countryCode.toLowerCase()}.png`,
176
+ srcset: `https://flagcdn.com/h80/${e.LOCALES[e.langPickerModel].countryCode.toLowerCase()}.png 2x,
177
+ https://flagcdn.com/h120/${e.LOCALES[e.langPickerModel].countryCode.toLowerCase()}.png 3x`
178
+ }, null, 8, ["src", "srcset"])
179
+ ]),
180
+ _: 1
181
+ })
182
+ ]),
183
+ _: 2
184
+ }, 1040, ["block", "color"])
185
+ ]),
186
+ default: n(() => [
187
+ t(T, {
188
+ elevation: "0",
189
+ class: "bg-transparent"
190
+ }, {
191
+ default: n(() => [
192
+ t(R, { class: "px-3" }, {
193
+ default: n(() => [
194
+ t(m, null, {
195
+ default: n(() => [
196
+ t(g, { class: "d-flex justify-center" }, {
197
+ default: n(() => [
198
+ t(c, {
199
+ color: e.color,
200
+ elevation: "7",
201
+ onClick: e.onCurrencyPickerBtnClicked
202
+ }, null, 8, ["color", "onClick"])
203
+ ]),
204
+ _: 1
205
+ })
206
+ ]),
207
+ _: 1
208
+ }),
209
+ t(m, { dense: "" }, {
210
+ default: n(() => [
211
+ t(g, { class: "d-flex justify-center" }, {
212
+ default: n(() => [
213
+ t(d, {
214
+ modelValue: e.langPickerModel,
215
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => e.langPickerModel = r),
216
+ elevation: "7",
217
+ locales: e.config.locales
218
+ }, null, 8, ["modelValue", "locales"])
219
+ ]),
220
+ _: 1
221
+ })
222
+ ]),
223
+ _: 1
224
+ })
225
+ ]),
226
+ _: 1
227
+ })
228
+ ]),
229
+ _: 1
230
+ })
231
+ ]),
232
+ _: 1
233
+ }, 8, ["location", "transition"]),
234
+ t(P, {
235
+ modelValue: e.currencyPickerDialog,
236
+ "onUpdate:modelValue": o[1] || (o[1] = (r) => e.currencyPickerDialog = r)
237
+ }, null, 8, ["modelValue"])
238
+ ])) : (f(), u("div", G, [
239
+ t(c, {
240
+ class: "d-inline-block",
241
+ color: e.color,
242
+ dialog: ""
243
+ }, null, 8, ["color"]),
244
+ o[3] || (o[3] = p("span", { class: "pr-1" }, null, -1)),
245
+ t(d, {
246
+ modelValue: e.langPickerModel,
247
+ "onUpdate:modelValue": o[2] || (o[2] = (r) => e.langPickerModel = r),
248
+ class: "d-inline-block",
249
+ locales: e.config.locales
250
+ }, null, 8, ["modelValue", "locales"])
251
+ ]));
252
+ }
253
+ typeof k == "function" && k(y);
254
+ const ee = /* @__PURE__ */ O(y, [["render", Y], ["__scopeId", "data-v-dd3c6869"]]);
255
+ C("css/revolugo.preferencesmenu.fPv_7j-1.css");
256
+ export {
257
+ ee as P,
258
+ s as a,
259
+ I as p
260
+ };
261
+ //# sourceMappingURL=revolugo.preferencesmenu.CfUC3L6C.min.js.map
@@ -0,0 +1,385 @@
1
+ import { d as v, b as G, u as x, c as m, w as n, e as l, a as o, j as f, o as a, S, A as $, f as h, t as d, i as c, B as L, F as R, r as I, g as y } from "./revolugo.index.wc.DLkeXtka.min.js";
2
+ import { _ as C } from "./revolugo.webcomponentwrapper.BNmjcBmh.min.js";
3
+ import { V as E } from "./revolugo.vdivider.D1ITKKuu.min.js";
4
+ import { V as A } from "./revolugo.vcard.ZlYB5HOk.min.js";
5
+ import { V as p } from "./revolugo.vskeletonloader.DgIjR-8k.min.js";
6
+ import { V as H, a as M, b as P, c as B } from "./revolugo.vexpansionpanels.D8TtnQrF.min.js";
7
+ import { V as D } from "./revolugo.vsnackbar.DFnMGJQg.min.js";
8
+ import { V as F } from "./revolugo.vtextfield.BhmuZsP7.min.js";
9
+ const U = v({
10
+ mixins: [G],
11
+ name: "RoomingListEditorLayout",
12
+ props: {
13
+ boilerplate: { type: Boolean }
14
+ },
15
+ setup() {
16
+ const { t } = x();
17
+ return {
18
+ t
19
+ };
20
+ }
21
+ }), j = { class: "px-4 py-2 bg-grey-lighten-4" }, q = { class: "px-4 py-2 d-flex justify-center" }, K = { class: "px-4 py-2" };
22
+ function Z(t, e, s, r, u, N) {
23
+ return a(), m(A, { border: "" }, {
24
+ default: n(() => [
25
+ l("div", j, [
26
+ l("div", q, [
27
+ f(t.$slots, "rooming-title", {}, () => [
28
+ o(p, {
29
+ boilerplate: t.boilerplate,
30
+ height: "22px",
31
+ tile: "",
32
+ type: "heading",
33
+ width: "160px"
34
+ }, null, 8, ["boilerplate"])
35
+ ])
36
+ ])
37
+ ]),
38
+ o(E),
39
+ l("div", K, [
40
+ f(t.$slots, "rooming-list", {}, () => [
41
+ o(p, {
42
+ boilerplate: t.boilerplate,
43
+ class: "mb-2",
44
+ height: "18px",
45
+ tile: "",
46
+ type: "heading",
47
+ width: "120px"
48
+ }, null, 8, ["boilerplate"]),
49
+ o(p, {
50
+ boilerplate: t.boilerplate,
51
+ class: "mb-2",
52
+ height: "18px",
53
+ tile: "",
54
+ type: "heading",
55
+ width: "400px"
56
+ }, null, 8, ["boilerplate"]),
57
+ o(p, {
58
+ boilerplate: t.boilerplate,
59
+ height: "18px",
60
+ tile: "",
61
+ type: "heading",
62
+ width: "400px"
63
+ }, null, 8, ["boilerplate"])
64
+ ])
65
+ ])
66
+ ]),
67
+ _: 3
68
+ });
69
+ }
70
+ const O = /* @__PURE__ */ C(U, [["render", Z]]), z = {
71
+ token: {
72
+ required: !0,
73
+ type: String
74
+ }
75
+ }, V = v({
76
+ components: {
77
+ RoomingListEditorLayout: O
78
+ },
79
+ created() {
80
+ this.updateRoomingListDebounced = S(
81
+ (t) => this.updateRoomingList(t),
82
+ 1e3
83
+ );
84
+ },
85
+ data: () => ({
86
+ hasError: !1,
87
+ hotelRoomingLists: null,
88
+ listToGuests: {},
89
+ mappedHotelRoomingLists: [],
90
+ showSnackbar: !1,
91
+ snackbarColor: "",
92
+ snackbarText: "",
93
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
94
+ updateRoomingListDebounced: () => {
95
+ }
96
+ }),
97
+ methods: {
98
+ buildMappedLists() {
99
+ return this.hotelRoomingLists ? this.hotelRoomingLists.map((t) => {
100
+ if (this.listToGuests[t.id]) {
101
+ if (t.hotelRoomingListGuests)
102
+ for (const s of t.hotelRoomingListGuests)
103
+ this.updateMappedGuest(t.id, s);
104
+ return {
105
+ ...t,
106
+ hotelRoomingListGuests: this.listToGuests[t.id]
107
+ };
108
+ }
109
+ const e = this.initMappedGuests(t);
110
+ return {
111
+ ...t,
112
+ hotelRoomingListGuests: e
113
+ };
114
+ }) : [];
115
+ },
116
+ initMappedGuests(t) {
117
+ const e = t.hotelRoom, s = t.hotelRoomingListGuests?.length && e?.occupancy ? e.occupancy - t.hotelRoomingListGuests.length : e?.occupancy || 0, r = Array.from(
118
+ { length: s },
119
+ () => ({
120
+ fullname: "",
121
+ id: ""
122
+ })
123
+ ), u = t.hotelRoomingListGuests ?? [];
124
+ return u.push(...r), this.listToGuests[t.id] = u, u;
125
+ },
126
+ async retrieveHotelRoomingLists(t) {
127
+ let e = null;
128
+ this.hasError = !1;
129
+ try {
130
+ e = await this.bookingApiClient?.hotelRoomingLists.list(
131
+ {
132
+ token: t
133
+ }
134
+ );
135
+ } catch (s) {
136
+ this.hasError = !0, console.error(s);
137
+ }
138
+ return e;
139
+ },
140
+ updateMappedGuest(t, e) {
141
+ const s = this.listToGuests[t].findIndex((r) => r.id === e.id);
142
+ s !== -1 && (this.listToGuests[t][s] = {
143
+ ...this.listToGuests[t][s],
144
+ ...e
145
+ });
146
+ },
147
+ async updateRoomingList(t) {
148
+ this.showSnackbar = !1, this.snackbarText = "";
149
+ try {
150
+ if (t.guestId && t.fullName)
151
+ await this.bookingApiClient?.hotelRoomingListGuests.update({
152
+ hotelRoomingListGuestsUpdateApi: { fullname: t.fullName },
153
+ id: t.guestId,
154
+ token: this.token
155
+ });
156
+ else if (!t.guestId && t.fullName) {
157
+ const e = await this.bookingApiClient?.hotelRoomingListGuests.create({
158
+ hotelRoomingListGuestsCreateApi: {
159
+ fullname: t.fullName,
160
+ hotelRoomingListId: t.roomingListId
161
+ },
162
+ token: this.token
163
+ }), s = this.listToGuests[t.roomingListId]?.[t.index];
164
+ e && s && (s.id = e.id);
165
+ } else if (t.guestId && !t.fullName) {
166
+ await this.bookingApiClient?.hotelRoomingListGuests.delete({
167
+ id: t.guestId,
168
+ token: this.token
169
+ });
170
+ const e = this.listToGuests[t.roomingListId]?.[t.index];
171
+ e && (e.id = "");
172
+ }
173
+ this.snackbarText = this.t(
174
+ "RoomingListEditor.saveRoomingList.success"
175
+ ), this.snackbarColor = "success", this.hotelRoomingLists = await this.retrieveHotelRoomingLists(
176
+ this.token
177
+ ), this.mappedHotelRoomingLists = this.buildMappedLists();
178
+ } catch (e) {
179
+ this.snackbarColor = "error", this.snackbarText = e.message;
180
+ } finally {
181
+ this.showSnackbar = !0;
182
+ }
183
+ }
184
+ },
185
+ mixins: [G],
186
+ name: "RoomingListEditor",
187
+ props: z,
188
+ setup() {
189
+ const { t } = x();
190
+ return {
191
+ t
192
+ };
193
+ },
194
+ watch: {
195
+ token: {
196
+ async handler(t) {
197
+ t && (this.listToGuests = {}, this.hotelRoomingLists = await this.retrieveHotelRoomingLists(t), this.mappedHotelRoomingLists = this.buildMappedLists());
198
+ },
199
+ immediate: !0
200
+ }
201
+ }
202
+ });
203
+ function k(t) {
204
+ const e = t;
205
+ e.__i18n = e.__i18n || [], e.__i18n.push({
206
+ locale: "",
207
+ resource: {
208
+ "en-US": {
209
+ RoomingListEditor: {
210
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Rooming list" } },
211
+ guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Guest " }, { t: 4, k: "guestCount" }] } },
212
+ occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Suitable for " }, { t: 4, k: "occupancy" }, { t: 3, v: " x &#128100; max" }] } },
213
+ fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "First name & Last name" } },
214
+ saveRoomingList: {
215
+ success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Rooming list saved!" } }
216
+ }
217
+ }
218
+ },
219
+ "fr-FR": {
220
+ RoomingListEditor: {
221
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Rooming list" } },
222
+ guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Participant " }, { t: 4, k: "guestCount" }] } },
223
+ occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Convient pour " }, { t: 4, k: "occupancy" }, { t: 3, v: " x &#128100; max" }] } },
224
+ fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nom et prénom du participant" } },
225
+ saveRoomingList: {
226
+ success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Rooming list sauvegardée !" } }
227
+ }
228
+ }
229
+ },
230
+ "de-DE": {
231
+ RoomingListEditor: {
232
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zimmerliste" } },
233
+ guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Gast " }, { t: 4, k: "guestCount" }] } },
234
+ occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Geeignet für " }, { t: 4, k: "occupancy" }, { t: 3, v: " x &#128100; max" }] } },
235
+ fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Vorname & Nachname" } },
236
+ saveRoomingList: {
237
+ success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zimmerliste gespeichert!" } }
238
+ }
239
+ }
240
+ },
241
+ "es-ES": {
242
+ RoomingListEditor: {
243
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lista de habitaciones" } },
244
+ guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Huésped " }, { t: 4, k: "guestCount" }] } },
245
+ occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Adecuado para " }, { t: 4, k: "occupancy" }, { t: 3, v: " x &#128100; max" }] } },
246
+ fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nombre y apellido" } },
247
+ saveRoomingList: {
248
+ success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "¡Lista de habitaciones guardada!" } }
249
+ }
250
+ }
251
+ },
252
+ "it-IT": {
253
+ RoomingListEditor: {
254
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lista delle camere" } },
255
+ guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Ospite " }, { t: 4, k: "guestCount" }] } },
256
+ occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Adatto per " }, { t: 4, k: "occupancy" }, { t: 3, v: " x &#128100; max" }] } },
257
+ fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nome e cognome" } },
258
+ saveRoomingList: {
259
+ success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lista delle camere salvata!" } }
260
+ }
261
+ }
262
+ },
263
+ "nl-NL": {
264
+ RoomingListEditor: {
265
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kamerlijst" } },
266
+ guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Gast " }, { t: 4, k: "guestCount" }] } },
267
+ occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Geschikt voor " }, { t: 4, k: "occupancy" }, { t: 3, v: " x &#128100; max" }] } },
268
+ fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Voornaam & Achternaam" } },
269
+ saveRoomingList: {
270
+ success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kamerlijst opgeslagen!" } }
271
+ }
272
+ }
273
+ },
274
+ "pt-PT": {
275
+ RoomingListEditor: {
276
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lista de quartos" } },
277
+ guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Hóspede " }, { t: 4, k: "guestCount" }] } },
278
+ occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Adequado para " }, { t: 4, k: "occupancy" }, { t: 3, v: " x &#128100; max" }] } },
279
+ fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nome próprio e apelido" } },
280
+ saveRoomingList: {
281
+ success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lista de quartos gravada!" } }
282
+ }
283
+ }
284
+ }
285
+ }
286
+ });
287
+ }
288
+ const J = {
289
+ key: 0,
290
+ class: "font-weight-bold mb-1"
291
+ }, Q = ["innerHTML"], W = { class: "text-body-2" };
292
+ function X(t, e, s, r, u, N) {
293
+ const T = I("RoomingListEditorLayout");
294
+ return a(), m(T, null, $({ _: 2 }, [
295
+ t.hotelRoomingLists ? {
296
+ name: "rooming-title",
297
+ fn: n(() => [
298
+ h(d(t.t("RoomingListEditor.title")), 1)
299
+ ]),
300
+ key: "0"
301
+ } : void 0,
302
+ t.hotelRoomingLists ? {
303
+ name: "rooming-list",
304
+ fn: n(() => [
305
+ o(H, {
306
+ variant: "accordion",
307
+ flat: ""
308
+ }, {
309
+ default: n(() => [
310
+ (a(!0), c(R, null, L(t.mappedHotelRoomingLists, (i, _) => (a(), m(M, {
311
+ key: i.id
312
+ }, {
313
+ default: n(() => [
314
+ o(P, null, {
315
+ default: n(() => [
316
+ l("div", null, [
317
+ i.hotelRoom?.description ? (a(), c("div", J, d(i.hotelRoom?.description), 1)) : y("", !0),
318
+ l("div", null, [
319
+ h(d(i.hotelRoom?.bedsPretty) + " ", 1),
320
+ l("span", {
321
+ class: "ml-2 text-caption text--secondary",
322
+ innerHTML: t.t("RoomingListEditor.occupancy", {
323
+ occupancy: i.hotelRoom?.occupancy
324
+ })
325
+ }, null, 8, Q)
326
+ ])
327
+ ])
328
+ ]),
329
+ _: 2
330
+ }, 1024),
331
+ o(B, null, {
332
+ default: n(() => [
333
+ (a(!0), c(R, null, L(i.hotelRoomingListGuests, (b, g) => (a(), c("div", { key: g }, [
334
+ l("span", W, d(t.t("RoomingListEditor.guestCount", {
335
+ guestCount: g + 1
336
+ })), 1),
337
+ o(F, {
338
+ class: "w-sm-50",
339
+ clearable: "",
340
+ variant: "outlined",
341
+ placeholder: t.t("RoomingListEditor.fullName"),
342
+ "prepend-inner-icon": "fas fa-user",
343
+ "model-value": b.fullname,
344
+ "onUpdate:modelValue": (w) => t.updateRoomingListDebounced({
345
+ roomingListId: i.id,
346
+ guestId: b.id,
347
+ fullName: w,
348
+ index: g
349
+ })
350
+ }, null, 8, ["placeholder", "model-value", "onUpdate:modelValue"])
351
+ ]))), 128))
352
+ ]),
353
+ _: 2
354
+ }, 1024),
355
+ _ != t.mappedHotelRoomingLists.length - 1 ? (a(), m(E, { key: 0 })) : y("", !0)
356
+ ]),
357
+ _: 2
358
+ }, 1024))), 128))
359
+ ]),
360
+ _: 1
361
+ }),
362
+ o(D, {
363
+ modelValue: t.showSnackbar,
364
+ "onUpdate:modelValue": e[0] || (e[0] = (i) => t.showSnackbar = i),
365
+ color: t.snackbarColor,
366
+ class: "elevation-24",
367
+ location: "right top"
368
+ }, {
369
+ default: n(() => [
370
+ h(d(t.snackbarText), 1)
371
+ ]),
372
+ _: 1
373
+ }, 8, ["modelValue", "color"])
374
+ ]),
375
+ key: "1"
376
+ } : void 0
377
+ ]), 1024);
378
+ }
379
+ typeof k == "function" && k(V);
380
+ const lt = /* @__PURE__ */ C(V, [["render", X]]);
381
+ export {
382
+ lt as R,
383
+ z as r
384
+ };
385
+ //# sourceMappingURL=revolugo.roominglisteditor.DLWeU6Ct.min.js.map