@revolugo/elements 6.8.3 → 6.9.0-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 (179) hide show
  1. package/README.md +1 -1
  2. package/dist/css/fonts.css +1 -1
  3. package/dist/css/revolugo.cancellationpoliciesbadge.BCmMv5CR.css +1 -0
  4. package/dist/css/revolugo.index.ClC0OVqq.css +5 -0
  5. package/dist/css/{revolugo.vtoolbar.BZert82L.css → revolugo.preferencesmenu.7UfG9ius.css} +1 -1
  6. package/dist/css/{revolugo.webcomponentwrapper.DRCKFwuk.css → revolugo.webcomponentwrapper.C3K3E5wv.css} +2 -2
  7. package/dist/index.es.min.js +2033 -2172
  8. package/dist/index.es.min.js.map +1 -1
  9. package/dist/index.min.js +6 -6
  10. package/dist/index.min.js.map +1 -1
  11. package/dist/revolugo.banktransferdetails.DIwmwiki.min.js +37 -0
  12. package/dist/revolugo.bookingdetailssidebar.CURYxT7w.min.js +38 -0
  13. package/dist/revolugo.bookingmanager.BgJVEAba.min.js +25 -0
  14. package/dist/revolugo.cancellationpoliciesbadge.CxO1HyOA.min.js +25 -0
  15. package/dist/revolugo.cancellationpoliciesbadge.props.D3C9w_OV.min.js +30875 -0
  16. package/dist/revolugo.cancellationpolicieslist.CClF7R0p.min.js +25 -0
  17. package/dist/revolugo.creditcardform.BLv484O_.min.js +25 -0
  18. package/dist/revolugo.creditcardpayment.BB0ucanh.min.js +25 -0
  19. package/dist/revolugo.currencypickerbtn.DMgpKcz0.min.js +25 -0
  20. package/dist/revolugo.fastbookingflow.D2tOZmpu.min.js +35 -0
  21. package/dist/revolugo.fullbookingflow.BIfijAae.min.js +25 -0
  22. package/dist/revolugo.hoteldescriptionview.C8P4XIvR.min.js +25 -0
  23. package/dist/revolugo.hotelofferlist.CXHGfElj.min.js +25 -0
  24. package/dist/revolugo.hoteloffersearchmenu.CcjkzhZJ.min.js +73 -0
  25. package/dist/revolugo.hoteloffersmap.BsVCYroc.min.js +25 -0
  26. package/dist/revolugo.hoteloffersview.B64f1wvS.min.js +20 -0
  27. package/dist/revolugo.hotelroomofferlist.CfDXaxwp.min.js +25 -0
  28. package/dist/revolugo.hotelroomoffersbookingflow.DH6meEzW.min.js +25 -0
  29. package/dist/revolugo.hotelroomoffersearchmenu.C6m4k_Rr.min.js +25 -0
  30. package/dist/revolugo.hotelroomoffersview.6hxfrH3M.min.js +25 -0
  31. package/dist/revolugo.index.UaUDIMS5.min.js +106 -0
  32. package/dist/{revolugo.index.wc.7I5uexuc.min.js → revolugo.index.wc.DEo_xTvj.min.js} +12071 -12302
  33. package/dist/revolugo.langpickerbtn.B_B4BQwa.min.js +30 -0
  34. package/dist/revolugo.min.js +1 -1
  35. package/dist/revolugo.prebookform.Btuuk21Q.min.js +25 -0
  36. package/dist/revolugo.preferencesmenu.BDPlWGes.min.js +24 -0
  37. package/dist/revolugo.preferencesmenu.BVPHimYi.min.js +1098 -0
  38. package/dist/revolugo.roominglisteditor.B55oRlzf.min.js +25 -0
  39. package/dist/revolugo.storybooktoolbar.DFiFAYLL.min.js +846 -0
  40. package/dist/revolugo.termsandconditions.C2oiRbjY.min.js +24 -0
  41. package/dist/revolugo.webcomponentwrapper.CKFKL54u.min.js +28590 -0
  42. package/package.json +5 -5
  43. package/dist/css/revolugo.bdaterangepicker.CHUExWGL.css +0 -1
  44. package/dist/css/revolugo.bhoteloffersfilterbar.BcnNI4uS.css +0 -1
  45. package/dist/css/revolugo.bhotelroomsdetails.ZHH0C1yQ.css +0 -1
  46. package/dist/css/revolugo.bhotelsearchbar.Bl5_UFe8.css +0 -1
  47. package/dist/css/revolugo.bimagecarousel.BvgD1yrr.css +0 -1
  48. package/dist/css/revolugo.bookingdetailssidebar.CNP_D5F3.css +0 -1
  49. package/dist/css/revolugo.bstarrating.Dxd1LjMb.css +0 -1
  50. package/dist/css/revolugo.btag.g-q3eChG.css +0 -1
  51. package/dist/css/revolugo.cancellationpoliciesbadge.CwgZ0PpX.css +0 -1
  52. package/dist/css/revolugo.creditcardform.DWne0Lnv.css +0 -1
  53. package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +0 -1
  54. package/dist/css/revolugo.currencypicker.DO0IrmRK.css +0 -1
  55. package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +0 -1
  56. package/dist/css/revolugo.hoteldescriptionview.DWuzEuGF.css +0 -1
  57. package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +0 -1
  58. package/dist/css/revolugo.hoteloffersmap.2oSkomDb.css +0 -1
  59. package/dist/css/revolugo.hoteloffersview.Bo2dQWYt.css +0 -1
  60. package/dist/css/revolugo.hotelroomofferlist.DpLXIpgU.css +0 -1
  61. package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +0 -1
  62. package/dist/css/revolugo.index.DQ3Yd6SO.css +0 -1
  63. package/dist/css/revolugo.index.XNPQF1ia.css +0 -5
  64. package/dist/css/revolugo.langpickerbtn.D2iA6mCb.css +0 -1
  65. package/dist/css/revolugo.position.7fn84IQ5.css +0 -1
  66. package/dist/css/revolugo.prebookform.DmCR7hLv.css +0 -1
  67. package/dist/css/revolugo.termsandconditions.DCvNJQQL.css +0 -1
  68. package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +0 -1
  69. package/dist/css/revolugo.vbadge.BQrRJ9S0.css +0 -1
  70. package/dist/css/revolugo.vbtn.BU0YQ6en.css +0 -1
  71. package/dist/css/revolugo.vcard.B8jNYFn_.css +0 -1
  72. package/dist/css/revolugo.vcheckboxbtn.BQ05xI0T.css +0 -1
  73. package/dist/css/revolugo.vdialog.DwTSAOeg.css +0 -1
  74. package/dist/css/revolugo.vdivider.CTbbZwnv.css +0 -1
  75. package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +0 -1
  76. package/dist/css/revolugo.vinput.BPiFMorL.css +0 -1
  77. package/dist/css/revolugo.vlabel.BvKaKg7Y.css +0 -1
  78. package/dist/css/revolugo.vlist.BkGS0yqt.css +0 -1
  79. package/dist/css/revolugo.vmenu.DvKwEp1j.css +0 -1
  80. package/dist/css/revolugo.vselect.C5CKHFYB.css +0 -1
  81. package/dist/css/revolugo.vsheet.Dmcoj8cr.css +0 -1
  82. package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +0 -1
  83. package/dist/css/revolugo.vsnackbar.Cj7AcupY.css +0 -1
  84. package/dist/css/revolugo.vtextarea.HYL6WUNS.css +0 -1
  85. package/dist/css/revolugo.vtextfield.BIH_AWWP.css +0 -1
  86. package/dist/css/revolugo.vtooltip.O8QDYs1J.css +0 -1
  87. package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +0 -1
  88. package/dist/revolugo._basefor.CodrYJxd.min.js +0 -15
  89. package/dist/revolugo.banktransferdetails.BdulCgI5.min.js +0 -373
  90. package/dist/revolugo.bdaterangepicker.XZNoMSi5.min.js +0 -8435
  91. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.D9Qs1dZa.min.js +0 -61
  92. package/dist/revolugo.bhoteloffersfilterbar.Bryijtf6.min.js +0 -4685
  93. package/dist/revolugo.bhotelroomsdetails.orWBBD_o.min.js +0 -1013
  94. package/dist/revolugo.bhotelsearchbar.DxxqZWkN.min.js +0 -947
  95. package/dist/revolugo.bimagecarousel.DIPN99VA.min.js +0 -598
  96. package/dist/revolugo.bookingdetailssidebar.CD4SMOkC.min.js +0 -24
  97. package/dist/revolugo.bookingdetailssidebar.JOU68R1_.min.js +0 -880
  98. package/dist/revolugo.bookingmanager.B5cM9Mi5.min.js +0 -1789
  99. package/dist/revolugo.bpricesummaryskeleton.YKfKKB5n.min.js +0 -79
  100. package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.2z9RUthr.min.js +0 -623
  101. package/dist/revolugo.btag.DjjDRtQ7.min.js +0 -387
  102. package/dist/revolugo.cancellationpoliciesbadge.D8ou6oFl.min.js +0 -225
  103. package/dist/revolugo.cancellationpoliciesbadge.jgFCG7yZ.min.js +0 -24
  104. package/dist/revolugo.cancellationpolicieslist.CZImqgN3.min.js +0 -24
  105. package/dist/revolugo.cancellationpolicieslist.D097ASNF.min.js +0 -176
  106. package/dist/revolugo.case-transformers.Dr1oSJkZ.min.js +0 -123
  107. package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
  108. package/dist/revolugo.creditcardform.DNOMVOgZ.min.js +0 -2161
  109. package/dist/revolugo.creditcardform.DvHcDx2P.min.js +0 -24
  110. package/dist/revolugo.creditcardpayment.BLP3RXk4.min.js +0 -893
  111. package/dist/revolugo.creditcardpayment.D3lPKmx1.min.js +0 -24
  112. package/dist/revolugo.currencypicker.CzzS1Adp.min.js +0 -330
  113. package/dist/revolugo.currencypickerbtn.ChUEouGw.min.js +0 -163
  114. package/dist/revolugo.currencypickerbtn.DWnyc54P.min.js +0 -24
  115. package/dist/revolugo.dialog-attach.O2HXPGzj.min.js +0 -28
  116. package/dist/revolugo.dialog-transition.C6S7Ci1s.min.js +0 -114
  117. package/dist/revolugo.fastbookingflow.ChNa4jgv.min.js +0 -34
  118. package/dist/revolugo.forwardrefs.-bfQnFea.min.js +0 -71
  119. package/dist/revolugo.fullbookingflow.ByKmNqgi.min.js +0 -451
  120. package/dist/revolugo.hoteldescriptionview.CbtxEPGG.min.js +0 -3091
  121. package/dist/revolugo.hoteldescriptionview.D3JTbFxn.min.js +0 -24
  122. package/dist/revolugo.hotelofferitemlayout.tBOOIdeT.min.js +0 -259
  123. package/dist/revolugo.hotelofferlist.BVySEYbq.min.js +0 -5744
  124. package/dist/revolugo.hotelofferlist.puK2FNBR.min.js +0 -24
  125. package/dist/revolugo.hotelofferrequestcreator.CbCau_4i.min.js +0 -230
  126. package/dist/revolugo.hoteloffersearchmenu.iiAtyddA.min.js +0 -46
  127. package/dist/revolugo.hoteloffersmap.BRVm5s6N.min.js +0 -8394
  128. package/dist/revolugo.hoteloffersmap.DqKpfjbt.min.js +0 -24
  129. package/dist/revolugo.hoteloffersview.3LJ-m6BY.min.js +0 -620
  130. package/dist/revolugo.hoteloffersview.DsGyT5s7.min.js +0 -19
  131. package/dist/revolugo.hotelroomofferlist.DdMr5qEZ.min.js +0 -24
  132. package/dist/revolugo.hotelroomofferlist.M-3bowQa.min.js +0 -2934
  133. package/dist/revolugo.hotelroomofferrequestcreator.props.CUwZUDcm.min.js +0 -171
  134. package/dist/revolugo.hotelroomoffersbookingflow.Bef_aJFl.min.js +0 -1306
  135. package/dist/revolugo.hotelroomoffersearchmenu.D9Zn_Gjy.min.js +0 -25
  136. package/dist/revolugo.hotelroomoffersearchmenu.Fkf-MQ_8.min.js +0 -232
  137. package/dist/revolugo.hotelroomoffersview.BSth8Xsz.min.js +0 -305
  138. package/dist/revolugo.hotelroomoffersview.oxTgBMSk.min.js +0 -24
  139. package/dist/revolugo.index.D0uSQdJV.min.js +0 -13
  140. package/dist/revolugo.index.gIPq0z7C.min.js +0 -1037
  141. package/dist/revolugo.langpicker.CLdiic9k.min.js +0 -107
  142. package/dist/revolugo.langpickerbtn.BIHQAnjv.min.js +0 -24
  143. package/dist/revolugo.langpickerbtn.DF-m4pCF.min.js +0 -178
  144. package/dist/revolugo.position.hqKd4K_h.min.js +0 -322
  145. package/dist/revolugo.prebookform.B8aMLMuG.min.js +0 -1531
  146. package/dist/revolugo.prebookform.CxK0iSDo.min.js +0 -24
  147. package/dist/revolugo.roominglisteditor.D7WzDtw6.min.js +0 -24
  148. package/dist/revolugo.roominglisteditor.Do-pe811.min.js +0 -391
  149. package/dist/revolugo.rounded.Dnxang6X.min.js +0 -68
  150. package/dist/revolugo.ssrboot.ByGq44eI.min.js +0 -18
  151. package/dist/revolugo.storybooktoolbar.DY_mbXuP.min.js +0 -882
  152. package/dist/revolugo.termsandconditions.DXNFR45_.min.js +0 -423
  153. package/dist/revolugo.termsandconditions.DfGTVPYa.min.js +0 -23
  154. package/dist/revolugo.use-breakpoint-service.CJltQiSH.min.js +0 -106
  155. package/dist/revolugo.vautocomplete.BjPSa1jg.min.js +0 -466
  156. package/dist/revolugo.vbadge.D1RCkHoZ.min.js +0 -118
  157. package/dist/revolugo.vbtn.CQ9EDLRJ.min.js +0 -417
  158. package/dist/revolugo.vcard.DNU4i52n.min.js +0 -329
  159. package/dist/revolugo.vcheckboxbtn.De-k8-O3.min.js +0 -491
  160. package/dist/revolugo.vdialog.CjEajxIC.min.js +0 -139
  161. package/dist/revolugo.vdivider.Cp9bHPnI.min.js +0 -77
  162. package/dist/revolugo.vexpansionpanels.L2ZpX4zd.min.js +0 -276
  163. package/dist/revolugo.vform.Bw9rddZZ.min.js +0 -50
  164. package/dist/revolugo.vinput.P34xrpIC.min.js +0 -477
  165. package/dist/revolugo.vlabel.CLHrAz78.min.js +0 -51
  166. package/dist/revolugo.vlist.hRQlcp5M.min.js +0 -1348
  167. package/dist/revolugo.vmenu.BRFw3Jzk.min.js +0 -152
  168. package/dist/revolugo.vselect.u2C25NCe.min.js +0 -688
  169. package/dist/revolugo.vsheet.8UeU7qQn.min.js +0 -72
  170. package/dist/revolugo.vskeletonloader.Dk0enVo6.min.js +0 -137
  171. package/dist/revolugo.vsnackbar.18JqJsZ2.min.js +0 -202
  172. package/dist/revolugo.vspacer.CPbtu_-W.min.js +0 -7
  173. package/dist/revolugo.vtextarea.Cjuqcka5.min.js +0 -2102
  174. package/dist/revolugo.vtextfield.BUNcwTRK.min.js +0 -509
  175. package/dist/revolugo.vtoolbar.CvbAGFXR.min.js +0 -188
  176. package/dist/revolugo.vtooltip.CsXJFD-V.min.js +0 -395
  177. package/dist/revolugo.vwindowitem.DGRfRU3q.min.js +0 -329
  178. package/dist/revolugo.watch-list.D0FxBTWy.min.js +0 -16
  179. package/dist/revolugo.webcomponentwrapper.DFYGhYzz.min.js +0 -2148
@@ -1,24 +0,0 @@
1
- import { p, a as s } from "./revolugo.prebookform.B8aMLMuG.min.js";
2
- import { W as t, _ as a } from "./revolugo.webcomponentwrapper.DFYGhYzz.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.7I5uexuc.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.CxK0iSDo.min.js.map
@@ -1,24 +0,0 @@
1
- import { r as n, R as s } from "./revolugo.roominglisteditor.Do-pe811.min.js";
2
- import { W as p, _ as a } from "./revolugo.webcomponentwrapper.DFYGhYzz.min.js";
3
- import { d as i, c as m, w as c, a as d, n as _, h as f, r as o, o as l } from "./revolugo.index.wc.7I5uexuc.min.js";
4
- const u = i({
5
- components: {
6
- RoomingListEditor: s,
7
- WebComponentWrapper: p
8
- },
9
- props: n
10
- });
11
- function g(t, R, W, C, E, L) {
12
- const r = o("RoomingListEditor", !0), e = o("WebComponentWrapper");
13
- return l(), m(e, null, {
14
- default: c(() => [
15
- d(r, _(f(t.$props)), null, 16)
16
- ]),
17
- _: 1
18
- });
19
- }
20
- const x = /* @__PURE__ */ a(u, [["render", g]]);
21
- export {
22
- x as default
23
- };
24
- //# sourceMappingURL=revolugo.roominglisteditor.D7WzDtw6.min.js.map
@@ -1,391 +0,0 @@
1
- import { d as E, b as V, u as N, c as L, w as r, e as c, a as n, j as k, o as u, N as $, q as I, f as R, t as g, i as b, v, F as G, r as H, g as x } from "./revolugo.index.wc.7I5uexuc.min.js";
2
- import { _ as T } from "./revolugo.webcomponentwrapper.DFYGhYzz.min.js";
3
- import { V as _ } from "./revolugo.vdivider.Cp9bHPnI.min.js";
4
- import { V as A } from "./revolugo.vcard.DNU4i52n.min.js";
5
- import { V as f } from "./revolugo.vskeletonloader.Dk0enVo6.min.js";
6
- import { V as M, a as P, b as D, c as q } from "./revolugo.vexpansionpanels.L2ZpX4zd.min.js";
7
- import { V as B } from "./revolugo.vsnackbar.18JqJsZ2.min.js";
8
- import { V as F } from "./revolugo.vtextfield.BUNcwTRK.min.js";
9
- const U = E({
10
- mixins: [V],
11
- name: "RoomingListEditorLayout",
12
- props: {
13
- boilerplate: { type: Boolean }
14
- },
15
- setup() {
16
- const { t } = N();
17
- return {
18
- t
19
- };
20
- }
21
- }), j = { class: "px-4 py-2 bg-grey-lighten-4" }, K = { class: "px-4 py-2 d-flex justify-center" }, Z = { class: "px-4 py-2" };
22
- function O(t, e, s, o, l, d) {
23
- return u(), L(A, { border: "" }, {
24
- default: r(() => [
25
- c("div", j, [
26
- c("div", K, [
27
- k(t.$slots, "rooming-title", {}, () => [
28
- n(f, {
29
- boilerplate: t.boilerplate,
30
- height: "22px",
31
- tile: "",
32
- type: "heading",
33
- width: "160px"
34
- }, null, 8, ["boilerplate"])
35
- ])
36
- ])
37
- ]),
38
- n(_),
39
- c("div", Z, [
40
- k(t.$slots, "rooming-list", {}, () => [
41
- n(f, {
42
- boilerplate: t.boilerplate,
43
- class: "mb-2",
44
- height: "18px",
45
- tile: "",
46
- type: "heading",
47
- width: "120px"
48
- }, null, 8, ["boilerplate"]),
49
- n(f, {
50
- boilerplate: t.boilerplate,
51
- class: "mb-2",
52
- height: "18px",
53
- tile: "",
54
- type: "heading",
55
- width: "400px"
56
- }, null, 8, ["boilerplate"]),
57
- n(f, {
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 z = /* @__PURE__ */ T(U, [["render", O]]), J = {
71
- token: {
72
- required: !0,
73
- type: String
74
- }
75
- }, w = E({
76
- components: {
77
- RoomingListEditorLayout: z
78
- },
79
- created() {
80
- this.updateRoomingListDebounced = $(
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
- var d;
118
- const e = t.hotelRoom, s = (d = t.hotelRoomingListGuests) != null && d.length && (e != null && e.occupancy) ? e.occupancy - t.hotelRoomingListGuests.length : (e == null ? void 0 : e.occupancy) || 0, o = Array.from(
119
- { length: s },
120
- () => ({
121
- fullname: "",
122
- id: ""
123
- })
124
- ), l = t.hotelRoomingListGuests ?? [];
125
- return l.push(...o), this.listToGuests[t.id] = l, l;
126
- },
127
- async retrieveHotelRoomingLists(t) {
128
- var s;
129
- let e = null;
130
- this.hasError = !1;
131
- try {
132
- e = await ((s = this.bookingApiClient) == null ? void 0 : s.hotelRoomingLists.list(
133
- {
134
- token: t
135
- }
136
- ));
137
- } catch (o) {
138
- this.hasError = !0, console.error(o);
139
- }
140
- return e;
141
- },
142
- updateMappedGuest(t, e) {
143
- const s = this.listToGuests[t].findIndex((o) => o.id === e.id);
144
- s !== -1 && (this.listToGuests[t][s] = {
145
- ...this.listToGuests[t][s],
146
- ...e
147
- });
148
- },
149
- async updateRoomingList(t) {
150
- var e, s, o, l, d;
151
- this.showSnackbar = !1, this.snackbarText = "";
152
- try {
153
- if (t.guestId && t.fullName)
154
- await ((e = this.bookingApiClient) == null ? void 0 : e.hotelRoomingListGuests.update({
155
- hotelRoomingListGuestsUpdateApi: { fullname: t.fullName },
156
- id: t.guestId,
157
- token: this.token
158
- }));
159
- else if (!t.guestId && t.fullName) {
160
- const a = await ((s = this.bookingApiClient) == null ? void 0 : s.hotelRoomingListGuests.create({
161
- hotelRoomingListGuestsCreateApi: {
162
- fullname: t.fullName,
163
- hotelRoomingListId: t.roomingListId
164
- },
165
- token: this.token
166
- })), i = (o = this.listToGuests[t.roomingListId]) == null ? void 0 : o[t.index];
167
- a && i && (i.id = a.id);
168
- } else if (t.guestId && !t.fullName) {
169
- await ((l = this.bookingApiClient) == null ? void 0 : l.hotelRoomingListGuests.delete({
170
- id: t.guestId,
171
- token: this.token
172
- }));
173
- const a = (d = this.listToGuests[t.roomingListId]) == null ? void 0 : d[t.index];
174
- a && (a.id = "");
175
- }
176
- this.snackbarText = this.t(
177
- "RoomingListEditor.saveRoomingList.success"
178
- ), this.snackbarColor = "success", this.hotelRoomingLists = await this.retrieveHotelRoomingLists(
179
- this.token
180
- ), this.mappedHotelRoomingLists = this.buildMappedLists();
181
- } catch (a) {
182
- this.snackbarColor = "error", this.snackbarText = a.message;
183
- } finally {
184
- this.showSnackbar = !0;
185
- }
186
- }
187
- },
188
- mixins: [V],
189
- name: "RoomingListEditor",
190
- props: J,
191
- setup() {
192
- const { t } = N();
193
- return {
194
- t
195
- };
196
- },
197
- watch: {
198
- token: {
199
- async handler(t) {
200
- t && (this.listToGuests = {}, this.hotelRoomingLists = await this.retrieveHotelRoomingLists(t), this.mappedHotelRoomingLists = this.buildMappedLists());
201
- },
202
- immediate: !0
203
- }
204
- }
205
- });
206
- function C(t) {
207
- const e = t;
208
- e.__i18n = e.__i18n || [], e.__i18n.push({
209
- locale: "",
210
- resource: {
211
- "en-US": {
212
- RoomingListEditor: {
213
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Rooming list" } },
214
- guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Guest " }, { t: 4, k: "guestCount" }] } },
215
- occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Suitable for " }, { t: 4, k: "occupancy" }, { t: 3, v: " x 👤 max" }] } },
216
- fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "First name & Last name" } },
217
- saveRoomingList: {
218
- success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Rooming list saved!" } }
219
- }
220
- }
221
- },
222
- "fr-FR": {
223
- RoomingListEditor: {
224
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Rooming list" } },
225
- guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Participant " }, { t: 4, k: "guestCount" }] } },
226
- occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Convient pour " }, { t: 4, k: "occupancy" }, { t: 3, v: " x 👤 max" }] } },
227
- fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nom et prénom du participant" } },
228
- saveRoomingList: {
229
- success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Rooming list sauvegardée !" } }
230
- }
231
- }
232
- },
233
- "de-DE": {
234
- RoomingListEditor: {
235
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zimmerliste" } },
236
- guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Gast " }, { t: 4, k: "guestCount" }] } },
237
- occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Geeignet für " }, { t: 4, k: "occupancy" }, { t: 3, v: " x 👤 max" }] } },
238
- fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Vorname & Nachname" } },
239
- saveRoomingList: {
240
- success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zimmerliste gespeichert!" } }
241
- }
242
- }
243
- },
244
- "es-ES": {
245
- RoomingListEditor: {
246
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lista de habitaciones" } },
247
- guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Huésped " }, { t: 4, k: "guestCount" }] } },
248
- occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Adecuado para " }, { t: 4, k: "occupancy" }, { t: 3, v: " x 👤 max" }] } },
249
- fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nombre y apellido" } },
250
- saveRoomingList: {
251
- success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "¡Lista de habitaciones guardada!" } }
252
- }
253
- }
254
- },
255
- "it-IT": {
256
- RoomingListEditor: {
257
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lista delle camere" } },
258
- guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Ospite " }, { t: 4, k: "guestCount" }] } },
259
- occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Adatto per " }, { t: 4, k: "occupancy" }, { t: 3, v: " x 👤 max" }] } },
260
- fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nome e cognome" } },
261
- saveRoomingList: {
262
- success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lista delle camere salvata!" } }
263
- }
264
- }
265
- },
266
- "nl-NL": {
267
- RoomingListEditor: {
268
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kamerlijst" } },
269
- guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Gast " }, { t: 4, k: "guestCount" }] } },
270
- occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Geschikt voor " }, { t: 4, k: "occupancy" }, { t: 3, v: " x 👤 max" }] } },
271
- fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Voornaam & Achternaam" } },
272
- saveRoomingList: {
273
- success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kamerlijst opgeslagen!" } }
274
- }
275
- }
276
- },
277
- "pt-PT": {
278
- RoomingListEditor: {
279
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lista de quartos" } },
280
- guestCount: { t: 0, b: { t: 2, i: [{ t: 3, v: "Hóspede " }, { t: 4, k: "guestCount" }] } },
281
- occupancy: { t: 0, b: { t: 2, i: [{ t: 3, v: "Adequado para " }, { t: 4, k: "occupancy" }, { t: 3, v: " x 👤 max" }] } },
282
- fullName: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nome próprio e apelido" } },
283
- saveRoomingList: {
284
- success: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Lista de quartos gravada!" } }
285
- }
286
- }
287
- }
288
- }
289
- });
290
- }
291
- const Q = {
292
- key: 0,
293
- class: "font-weight-bold mb-1"
294
- }, W = ["innerHTML"], X = { class: "text-body-2" };
295
- function Y(t, e, s, o, l, d) {
296
- const a = H("RoomingListEditorLayout");
297
- return u(), L(a, null, I({ _: 2 }, [
298
- t.hotelRoomingLists ? {
299
- name: "rooming-title",
300
- fn: r(() => [
301
- R(g(t.t("RoomingListEditor.title")), 1)
302
- ]),
303
- key: "0"
304
- } : void 0,
305
- t.hotelRoomingLists ? {
306
- name: "rooming-list",
307
- fn: r(() => [
308
- n(M, {
309
- variant: "accordion",
310
- flat: ""
311
- }, {
312
- default: r(() => [
313
- (u(!0), b(G, null, v(t.mappedHotelRoomingLists, (i, S) => (u(), L(P, {
314
- key: i.id
315
- }, {
316
- default: r(() => [
317
- n(D, null, {
318
- default: r(() => {
319
- var m, p, h, y;
320
- return [
321
- c("div", null, [
322
- (m = i.hotelRoom) != null && m.description ? (u(), b("div", Q, g((p = i.hotelRoom) == null ? void 0 : p.description), 1)) : x("", !0),
323
- c("div", null, [
324
- R(g((h = i.hotelRoom) == null ? void 0 : h.bedsPretty) + " ", 1),
325
- c("span", {
326
- class: "ml-2 text-caption text--secondary",
327
- innerHTML: t.t("RoomingListEditor.occupancy", {
328
- occupancy: (y = i.hotelRoom) == null ? void 0 : y.occupancy
329
- })
330
- }, null, 8, W)
331
- ])
332
- ])
333
- ];
334
- }),
335
- _: 2
336
- }, 1024),
337
- n(q, null, {
338
- default: r(() => [
339
- (u(!0), b(G, null, v(i.hotelRoomingListGuests, (m, p) => (u(), b("div", { key: p }, [
340
- c("span", X, g(t.t("RoomingListEditor.guestCount", {
341
- guestCount: p + 1
342
- })), 1),
343
- n(F, {
344
- class: "w-sm-50",
345
- clearable: "",
346
- variant: "outlined",
347
- placeholder: t.t("RoomingListEditor.fullName"),
348
- "prepend-inner-icon": "fas fa-user",
349
- "model-value": m.fullname,
350
- "onUpdate:modelValue": (h) => t.updateRoomingListDebounced({
351
- roomingListId: i.id,
352
- guestId: m.id,
353
- fullName: h,
354
- index: p
355
- })
356
- }, null, 8, ["placeholder", "model-value", "onUpdate:modelValue"])
357
- ]))), 128))
358
- ]),
359
- _: 2
360
- }, 1024),
361
- S != t.mappedHotelRoomingLists.length - 1 ? (u(), L(_, { key: 0 })) : x("", !0)
362
- ]),
363
- _: 2
364
- }, 1024))), 128))
365
- ]),
366
- _: 1
367
- }),
368
- n(B, {
369
- modelValue: t.showSnackbar,
370
- "onUpdate:modelValue": e[0] || (e[0] = (i) => t.showSnackbar = i),
371
- color: t.snackbarColor,
372
- class: "elevation-24",
373
- location: "right top"
374
- }, {
375
- default: r(() => [
376
- R(g(t.snackbarText), 1)
377
- ]),
378
- _: 1
379
- }, 8, ["modelValue", "color"])
380
- ]),
381
- key: "1"
382
- } : void 0
383
- ]), 1024);
384
- }
385
- typeof C == "function" && C(w);
386
- const rt = /* @__PURE__ */ T(w, [["render", Y]]);
387
- export {
388
- rt as R,
389
- J as r
390
- };
391
- //# sourceMappingURL=revolugo.roominglisteditor.Do-pe811.min.js.map
@@ -1,68 +0,0 @@
1
- import { _ as u, ce as d, D as l, X as a } from "./revolugo.index.wc.7I5uexuc.min.js";
2
- const f = u({
3
- border: [Boolean, Number, String]
4
- }, "border");
5
- function m(e) {
6
- let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : d();
7
- return {
8
- borderClasses: l(() => {
9
- const n = a(e) ? e.value : e.border, r = [];
10
- if (n === !0 || n === "")
11
- r.push(`${s}--border`);
12
- else if (typeof n == "string" || n === 0)
13
- for (const t of String(n).split(" "))
14
- r.push(`border-${t}`);
15
- return r;
16
- })
17
- };
18
- }
19
- const v = u({
20
- elevation: {
21
- type: [Number, String],
22
- validator(e) {
23
- const s = parseInt(e);
24
- return !isNaN(s) && s >= 0 && // Material Design has a maximum elevation of 24
25
- // https://material.io/design/environment/elevation.html#default-elevations
26
- s <= 24;
27
- }
28
- }
29
- }, "elevation");
30
- function g(e) {
31
- return {
32
- elevationClasses: l(() => {
33
- const o = a(e) ? e.value : e.elevation, n = [];
34
- return o == null || n.push(`elevation-${o}`), n;
35
- })
36
- };
37
- }
38
- const b = u({
39
- rounded: {
40
- type: [Boolean, Number, String],
41
- default: void 0
42
- },
43
- tile: Boolean
44
- }, "rounded");
45
- function h(e) {
46
- let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : d();
47
- return {
48
- roundedClasses: l(() => {
49
- const n = a(e) ? e.value : e.rounded, r = a(e) ? e.value : e.tile, t = [];
50
- if (n === !0 || n === "")
51
- t.push(`${s}--rounded`);
52
- else if (typeof n == "string" || n === 0)
53
- for (const i of String(n).split(" "))
54
- t.push(`rounded-${i}`);
55
- else (r || n === !1) && t.push("rounded-0");
56
- return t;
57
- })
58
- };
59
- }
60
- export {
61
- b as a,
62
- h as b,
63
- m as c,
64
- f as d,
65
- v as m,
66
- g as u
67
- };
68
- //# sourceMappingURL=revolugo.rounded.Dnxang6X.min.js.map
@@ -1,18 +0,0 @@
1
- import { a5 as t, V as e, D as s, bZ as n } from "./revolugo.index.wc.7I5uexuc.min.js";
2
- function i() {
3
- const o = t(!1);
4
- return e(() => {
5
- window.requestAnimationFrame(() => {
6
- o.value = !0;
7
- });
8
- }), {
9
- ssrBootStyles: s(() => o.value ? void 0 : {
10
- transition: "none !important"
11
- }),
12
- isBooted: n(o)
13
- };
14
- }
15
- export {
16
- i as u
17
- };
18
- //# sourceMappingURL=revolugo.ssrboot.ByGq44eI.min.js.map