@revolugo/elements 6.9.0 → 6.9.1-beta.1

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 (191) hide show
  1. package/dist/css/fonts.css +1 -1
  2. package/dist/css/revolugo.cancellationpoliciesbadge.DvipOlva.css +1 -0
  3. package/dist/css/revolugo.creditcardstripeform.zWRVQ06X.css +1 -0
  4. package/dist/css/revolugo.index.ClC0OVqq.css +5 -0
  5. package/dist/css/revolugo.preferencesmenu.D2263Vn6.css +1 -0
  6. package/dist/css/{revolugo.webcomponentwrapper.cFJPP6Rp.css → revolugo.webcomponentwrapper.BQSUxe3K.css} +1 -1
  7. package/dist/index.es.min.js +424 -424
  8. package/dist/index.es.min.js.map +1 -1
  9. package/dist/index.min.js +5 -5
  10. package/dist/index.min.js.map +1 -1
  11. package/dist/revolugo.banktransferdetails.D1iR-F5R.min.js +38 -0
  12. package/dist/revolugo.bookingdetailssidebar.sSnL-vcO.min.js +39 -0
  13. package/dist/revolugo.bookingmanager.rHBfJMnI.min.js +26 -0
  14. package/dist/revolugo.cancellationpoliciesbadge.CrCcYabk.min.js +26 -0
  15. package/dist/revolugo.cancellationpoliciesbadge.props.Bxl-d5XT.min.js +28687 -0
  16. package/dist/revolugo.cancellationpolicieslist.CNJzXSR4.min.js +26 -0
  17. package/dist/revolugo.creditcardpayment.Dfv8UAgb.min.js +26 -0
  18. package/dist/{revolugo.creditcardform.BSipIYOP.min.js → revolugo.creditcardstripeform.CxRLrubA.min.js} +887 -883
  19. package/dist/revolugo.creditcardstripeform.D4kKydEW.min.js +44 -0
  20. package/dist/revolugo.currencypickerbtn.BmcBc0IC.min.js +26 -0
  21. package/dist/{revolugo.dialog-attach.Csh39Lda.min.js → revolugo.dialog-attach.Cr0OUlw6.min.js} +2 -2
  22. package/dist/revolugo.fastbookingflow.Bdz4pa0T.min.js +36 -0
  23. package/dist/revolugo.fullbookingflow.ohac6tUx.min.js +26 -0
  24. package/dist/revolugo.hoteldescriptionview.B_nGmoZs.min.js +26 -0
  25. package/dist/revolugo.hotelofferlist.B6apIX81.min.js +26 -0
  26. package/dist/revolugo.hoteloffersearchmenu.AZRBLP4G.min.js +74 -0
  27. package/dist/revolugo.hoteloffersmap.i1WtPlNI.min.js +26 -0
  28. package/dist/revolugo.hoteloffersview.G7XP8Bzo.min.js +21 -0
  29. package/dist/revolugo.hotelroomofferlist.DWQr0d76.min.js +26 -0
  30. package/dist/revolugo.hotelroomoffersbookingflow.Cvsrp6id.min.js +26 -0
  31. package/dist/revolugo.hotelroomoffersearchmenu.BbTRwC7x.min.js +26 -0
  32. package/dist/revolugo.hotelroomoffersview.qYiGz4kX.min.js +26 -0
  33. package/dist/revolugo.index.Dysug6o7.min.js +106 -0
  34. package/dist/{revolugo.index.wc.B5w57MVj.min.js → revolugo.index.wc.BHJYhPnI.min.js} +4582 -4611
  35. package/dist/revolugo.langpickerbtn.DKDu0J7l.min.js +31 -0
  36. package/dist/revolugo.min.js +1 -1
  37. package/dist/revolugo.prebookform.cP3ZXhvp.min.js +26 -0
  38. package/dist/revolugo.preferencesmenu.C5eh5ZdC.min.js +24 -0
  39. package/dist/revolugo.preferencesmenu.DU7_qN7M.min.js +949 -0
  40. package/dist/revolugo.roominglisteditor.C7zNx4E4.min.js +26 -0
  41. package/dist/revolugo.storybooktoolbar.Dt6W2K50.min.js +837 -0
  42. package/dist/revolugo.termsandconditions.Bg0vIbzv.min.js +25 -0
  43. package/dist/{revolugo.vtoolbar.CSb5X7Fx.min.js → revolugo.vtoolbar.pnUblJ0B.min.js} +44 -46
  44. package/dist/revolugo.webcomponentwrapper.C5rCsvgP.min.js +28609 -0
  45. package/package.json +5 -5
  46. package/dist/css/revolugo.bdaterangepicker.OLspTh_0.css +0 -1
  47. package/dist/css/revolugo.bhoteloffersfilterbar.BebBKpCh.css +0 -1
  48. package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +0 -1
  49. package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +0 -1
  50. package/dist/css/revolugo.bookingdetailssidebar.CNP_D5F3.css +0 -1
  51. package/dist/css/revolugo.bstarrating.CPHKEfup.css +0 -1
  52. package/dist/css/revolugo.btag.T7X_iIkW.css +0 -1
  53. package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +0 -1
  54. package/dist/css/revolugo.creditcardform.DWne0Lnv.css +0 -1
  55. package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +0 -1
  56. package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +0 -1
  57. package/dist/css/revolugo.hoteldescriptionview.B-RiiuPY.css +0 -1
  58. package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +0 -1
  59. package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +0 -1
  60. package/dist/css/revolugo.hoteloffersmap.Z5DFtK0_.css +0 -1
  61. package/dist/css/revolugo.hoteloffersview.CLbnSww6.css +0 -1
  62. package/dist/css/revolugo.hotelroomofferlist.D8JlZt_N.css +0 -1
  63. package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +0 -1
  64. package/dist/css/revolugo.index.DK7d_h6O.css +0 -1
  65. package/dist/css/revolugo.index.XNPQF1ia.css +0 -5
  66. package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +0 -1
  67. package/dist/css/revolugo.prebookform.DmCR7hLv.css +0 -1
  68. package/dist/css/revolugo.preferencesmenu.fPv_7j-1.css +0 -1
  69. package/dist/css/revolugo.termsandconditions.D8IMR9da.css +0 -1
  70. package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +0 -1
  71. package/dist/css/revolugo.vbadge.C45eZpxy.css +0 -1
  72. package/dist/css/revolugo.vbtn.DpMO1Ky2.css +0 -1
  73. package/dist/css/revolugo.vcard.TERzfknI.css +0 -1
  74. package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +0 -1
  75. package/dist/css/revolugo.vdialog.DwTSAOeg.css +0 -1
  76. package/dist/css/revolugo.vdivider.CTbbZwnv.css +0 -1
  77. package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +0 -1
  78. package/dist/css/revolugo.vicon.eIkh7vVK.css +0 -1
  79. package/dist/css/revolugo.vinput.BPiFMorL.css +0 -1
  80. package/dist/css/revolugo.vlabel.BvKaKg7Y.css +0 -1
  81. package/dist/css/revolugo.vlist.-Y4qkukF.css +0 -1
  82. package/dist/css/revolugo.vmenu.DvKwEp1j.css +0 -1
  83. package/dist/css/revolugo.vselect.C5CKHFYB.css +0 -1
  84. package/dist/css/revolugo.vsheet.Dmcoj8cr.css +0 -1
  85. package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +0 -1
  86. package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +0 -1
  87. package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +0 -1
  88. package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +0 -1
  89. package/dist/css/revolugo.vtextfield.BIH_AWWP.css +0 -1
  90. package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +0 -1
  91. package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +0 -1
  92. package/dist/revolugo._baseiteratee.BNTrudNz.min.js +0 -247
  93. package/dist/revolugo.banktransferdetails.CSBeZCMH.min.js +0 -373
  94. package/dist/revolugo.bdaterangepicker.DxjM2ZhP.min.js +0 -8327
  95. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.6MmXQngv.min.js +0 -143
  96. package/dist/revolugo.bhoteloffersfilterbar.BMSggMNQ.min.js +0 -4901
  97. package/dist/revolugo.bhotelroomsdetails.Dy58ap6y.min.js +0 -965
  98. package/dist/revolugo.bimagecarousel.D2kDC3SL.min.js +0 -566
  99. package/dist/revolugo.bookingdetailssidebar.D_T2s2ef.min.js +0 -24
  100. package/dist/revolugo.bookingdetailssidebar.z6-uHtpz.min.js +0 -867
  101. package/dist/revolugo.bookingmanager.9jQBXiSg.min.js +0 -1755
  102. package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.ByRHbTSk.min.js +0 -66
  103. package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CDrVermB.min.js +0 -570
  104. package/dist/revolugo.btag.DeY2USse.min.js +0 -375
  105. package/dist/revolugo.cancellationpoliciesbadge.B9nrlzWh.min.js +0 -198
  106. package/dist/revolugo.cancellationpoliciesbadge.iy6w5cCy.min.js +0 -28
  107. package/dist/revolugo.cancellationpolicieslist.CuRO2YGE.min.js +0 -25
  108. package/dist/revolugo.cancellationpolicieslist.jzFe1dFe.min.js +0 -148
  109. package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +0 -21
  110. package/dist/revolugo.case-transformers.CLDyhumY.min.js +0 -123
  111. package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
  112. package/dist/revolugo.creditcardform.BLt4RL8u.min.js +0 -24
  113. package/dist/revolugo.creditcardpayment.DGBEaBVo.min.js +0 -885
  114. package/dist/revolugo.creditcardpayment.ri5O9Y0R.min.js +0 -24
  115. package/dist/revolugo.currencypicker.BHxj0ske.min.js +0 -328
  116. package/dist/revolugo.currencypickerbtn.DkGwNDrZ.min.js +0 -24
  117. package/dist/revolugo.currencypickerbtn.WiV6iGHa.min.js +0 -157
  118. package/dist/revolugo.dates.CSTMvLSu.min.js +0 -31
  119. package/dist/revolugo.defaultsdeep.BDzCei18.min.js +0 -104
  120. package/dist/revolugo.dialog-transition.i0LvwiKa.min.js +0 -111
  121. package/dist/revolugo.fastbookingflow.B8FSXUnJ.min.js +0 -34
  122. package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +0 -70
  123. package/dist/revolugo.fullbookingflow.8C6zgp-h.min.js +0 -429
  124. package/dist/revolugo.hotel-offer-request.7ONhRsN6.min.js +0 -98
  125. package/dist/revolugo.hoteldescriptionview.C0xUtXux.min.js +0 -24
  126. package/dist/revolugo.hoteldescriptionview.aN-zXtyj.min.js +0 -2738
  127. package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.CtA2RbME.min.js +0 -239
  128. package/dist/revolugo.hotelofferlist.BvKGfilp.min.js +0 -24
  129. package/dist/revolugo.hotelofferlist.DfVSA0cI.min.js +0 -5640
  130. package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +0 -44
  131. package/dist/revolugo.hoteloffersearchmenu.DifwQFnl.min.js +0 -202
  132. package/dist/revolugo.hoteloffersearchmenuui.BxtpoR6c.min.js +0 -829
  133. package/dist/revolugo.hoteloffersmap.5TZ3ihCX.min.js +0 -8330
  134. package/dist/revolugo.hoteloffersmap.9oE_G8tN.min.js +0 -24
  135. package/dist/revolugo.hoteloffersview.BLO25-H2.min.js +0 -19
  136. package/dist/revolugo.hoteloffersview.CagWc49U.min.js +0 -616
  137. package/dist/revolugo.hotelroomofferlist.BujulIIq.min.js +0 -24
  138. package/dist/revolugo.hotelroomofferlist.aB6E2Yma.min.js +0 -2799
  139. package/dist/revolugo.hotelroomofferrequestcreator.props.ABMFjBSt.min.js +0 -171
  140. package/dist/revolugo.hotelroomoffersbookingflow.CZu1UUFz.min.js +0 -1281
  141. package/dist/revolugo.hotelroomoffersearchmenu.DD9opK9F.min.js +0 -231
  142. package/dist/revolugo.hotelroomoffersearchmenu.JelxSD8z.min.js +0 -25
  143. package/dist/revolugo.hotelroomoffersview.D-XmaDjJ.min.js +0 -24
  144. package/dist/revolugo.hotelroomoffersview.Dccr--hS.min.js +0 -290
  145. package/dist/revolugo.index.CVDLehFP.min.js +0 -1232
  146. package/dist/revolugo.index.DZF1zb-Q.min.js +0 -67
  147. package/dist/revolugo.langpicker.UuyPueP1.min.js +0 -99
  148. package/dist/revolugo.langpickerbtn.Cfth49Hz.min.js +0 -29
  149. package/dist/revolugo.langpickerbtn.CqViAaPH.min.js +0 -131
  150. package/dist/revolugo.parsed-props.CgT6zw61.min.js +0 -40
  151. package/dist/revolugo.pathify.Dd900P8D.min.js +0 -36
  152. package/dist/revolugo.prebookform.BRuqvdxQ.min.js +0 -1527
  153. package/dist/revolugo.prebookform.CMH57Wzk.min.js +0 -24
  154. package/dist/revolugo.preferencesmenu.1aT8mPop.min.js +0 -261
  155. package/dist/revolugo.preferencesmenu.DNoUuKkX.min.js +0 -24
  156. package/dist/revolugo.roominglisteditor.BILaUlMP.min.js +0 -24
  157. package/dist/revolugo.roominglisteditor.xmopqjqP.min.js +0 -385
  158. package/dist/revolugo.rounded.AHSatDl-.min.js +0 -68
  159. package/dist/revolugo.ssrboot.DeMi_oOP.min.js +0 -18
  160. package/dist/revolugo.storybooktoolbar.BcvgDyg2.min.js +0 -881
  161. package/dist/revolugo.termsandconditions.CGKBy5-o.min.js +0 -23
  162. package/dist/revolugo.termsandconditions.CzWDtP8F.min.js +0 -404
  163. package/dist/revolugo.use-breakpoint-service.Bxdx9aK_.min.js +0 -39
  164. package/dist/revolugo.use-dialog-attach.Dkx9tSlr.min.js +0 -16
  165. package/dist/revolugo.use-html-element.B2hxGZaS.min.js +0 -11
  166. package/dist/revolugo.vautocomplete.pI69lWXt.min.js +0 -445
  167. package/dist/revolugo.vbadge.BcMYa50_.min.js +0 -112
  168. package/dist/revolugo.vbtn.U2MKWRpI.min.js +0 -398
  169. package/dist/revolugo.vcard.C9RZUnnv.min.js +0 -313
  170. package/dist/revolugo.vcheckboxbtn.DSYfop2k.min.js +0 -478
  171. package/dist/revolugo.vdialog.BALM4jpJ.min.js +0 -133
  172. package/dist/revolugo.vdivider.B9ui--a3.min.js +0 -77
  173. package/dist/revolugo.vexpansionpanels.DiIu3_Jv.min.js +0 -262
  174. package/dist/revolugo.vform.Dl-DC485.min.js +0 -46
  175. package/dist/revolugo.vicon.DxOHot3-.min.js +0 -105
  176. package/dist/revolugo.vinput.CswQS7NJ.min.js +0 -463
  177. package/dist/revolugo.vlabel._ZQf_XFQ.min.js +0 -48
  178. package/dist/revolugo.vlist.DJFHbM-9.min.js +0 -1299
  179. package/dist/revolugo.vmenu.D6TfhAZa.min.js +0 -145
  180. package/dist/revolugo.vselect.B1y6cURA.min.js +0 -660
  181. package/dist/revolugo.vsheet.CwVdRlGQ.min.js +0 -72
  182. package/dist/revolugo.vskeletonloader.CE1Y41vH.min.js +0 -136
  183. package/dist/revolugo.vslidegroup.g9dn2dsC.min.js +0 -325
  184. package/dist/revolugo.vsnackbar.D8bdniAR.min.js +0 -198
  185. package/dist/revolugo.vspacer.eZ29eow0.min.js +0 -7
  186. package/dist/revolugo.vtextarea.B3elGOHD.min.js +0 -2092
  187. package/dist/revolugo.vtextfield.DE6UHY3P.min.js +0 -501
  188. package/dist/revolugo.vtooltip.BQNsazxP.min.js +0 -89
  189. package/dist/revolugo.vwindowitem.Dukm7VML.min.js +0 -317
  190. package/dist/revolugo.watch-list.Crski9oR.min.js +0 -16
  191. package/dist/revolugo.webcomponentwrapper.9iqy4u1a.min.js +0 -2088
@@ -1,385 +0,0 @@
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.B5w57MVj.min.js";
2
- import { _ as C } from "./revolugo.webcomponentwrapper.9iqy4u1a.min.js";
3
- import { V as E } from "./revolugo.vdivider.B9ui--a3.min.js";
4
- import { V as A } from "./revolugo.vcard.C9RZUnnv.min.js";
5
- import { V as p } from "./revolugo.vskeletonloader.CE1Y41vH.min.js";
6
- import { V as H, a as M, b as P, c as B } from "./revolugo.vexpansionpanels.DiIu3_Jv.min.js";
7
- import { V as D } from "./revolugo.vsnackbar.D8bdniAR.min.js";
8
- import { V as F } from "./revolugo.vtextfield.DE6UHY3P.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 👤 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 👤 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 👤 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 👤 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 👤 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 👤 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 👤 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.xmopqjqP.min.js.map
@@ -1,68 +0,0 @@
1
- import { a2 as u, cI as d, H as l, _ as a } from "./revolugo.index.wc.B5w57MVj.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.AHSatDl-.min.js.map
@@ -1,18 +0,0 @@
1
- import { a9 as t, X as e, H as s, cq as n } from "./revolugo.index.wc.B5w57MVj.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.DeMi_oOP.min.js.map