@revolugo/elements 6.8.3-beta.16 → 6.8.3-beta.18

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 (39) hide show
  1. package/dist/css/{revolugo.cancellationpoliciesbadge.CcLw1eDZ.css → revolugo.cancellationpoliciesbadge.BF6W5Rkn.css} +1 -1
  2. package/dist/css/{revolugo.webcomponentwrapper.CmjarAgQ.css → revolugo.webcomponentwrapper.CLc1qFgq.css} +1 -1
  3. package/dist/index.es.min.js +1 -0
  4. package/dist/index.es.min.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist/{revolugo.banktransferdetails.Cvzg5_Ic.min.js → revolugo.banktransferdetails.BySITPec.min.js} +4 -4
  8. package/dist/{revolugo.bookingdetailssidebar.k46HDmg6.min.js → revolugo.bookingdetailssidebar.BYzRYS22.min.js} +4 -4
  9. package/dist/{revolugo.bookingmanager.Bp3Iq-CV.min.js → revolugo.bookingmanager.nw9gGNh_.min.js} +4 -4
  10. package/dist/{revolugo.cancellationpoliciesbadge.D94ditk5.min.js → revolugo.cancellationpoliciesbadge.BeG993YZ.min.js} +4 -4
  11. package/dist/{revolugo.cancellationpoliciesbadge.props.BnLjFL5s.min.js → revolugo.cancellationpoliciesbadge.props.Dr18g1D_.min.js} +7787 -7613
  12. package/dist/{revolugo.cancellationpolicieslist.ofFI9Dx1.min.js → revolugo.cancellationpolicieslist.Ds8oi3Ea.min.js} +4 -4
  13. package/dist/{revolugo.creditcardform.DNY-xKYV.min.js → revolugo.creditcardform.By79p0Bj.min.js} +4 -4
  14. package/dist/{revolugo.creditcardpayment.DoH0pwLm.min.js → revolugo.creditcardpayment.DvO9zT4V.min.js} +4 -4
  15. package/dist/{revolugo.currencypickerbtn.DcoR1F1Y.min.js → revolugo.currencypickerbtn.CLC1mWT8.min.js} +4 -4
  16. package/dist/{revolugo.fastbookingflow.DdfGwiWZ.min.js → revolugo.fastbookingflow.Di2jU8_z.min.js} +4 -4
  17. package/dist/{revolugo.fullbookingflow.BbqC4qQ1.min.js → revolugo.fullbookingflow.DCtMc-R_.min.js} +4 -4
  18. package/dist/{revolugo.hoteldescriptionview.CBhuNO9_.min.js → revolugo.hoteldescriptionview.BjSUnjIh.min.js} +4 -4
  19. package/dist/{revolugo.hotelofferlist.DgZhb92H.min.js → revolugo.hotelofferlist.DAIv1qMO.min.js} +4 -4
  20. package/dist/revolugo.hoteloffersearchmenu.wFDKLBxy.min.js +71 -0
  21. package/dist/{revolugo.hoteloffersmap.95AMizbv.min.js → revolugo.hoteloffersmap.BKHy0T4U.min.js} +6 -6
  22. package/dist/revolugo.hoteloffersview.V2L1odGh.min.js +19 -0
  23. package/dist/{revolugo.hotelroomofferlist.deuoRfWR.min.js → revolugo.hotelroomofferlist.Kxi2PaU-.min.js} +6 -6
  24. package/dist/{revolugo.hotelroomoffersbookingflow.dTr1ET_n.min.js → revolugo.hotelroomoffersbookingflow.DVwHWQoy.min.js} +4 -4
  25. package/dist/{revolugo.hotelroomoffersearchmenu.DDi3cRLS.min.js → revolugo.hotelroomoffersearchmenu.CzlGeOLh.min.js} +6 -6
  26. package/dist/{revolugo.hotelroomoffersview.CFseu6Pj.min.js → revolugo.hotelroomoffersview.b_5VDEUw.min.js} +4 -4
  27. package/dist/{revolugo.index.wc.DevpsraD.min.js → revolugo.index.wc.CH4CMunP.min.js} +262 -295
  28. package/dist/{revolugo.langpickerbtn.B9byfQqd.min.js → revolugo.langpickerbtn.DMvledll.min.js} +4 -4
  29. package/dist/revolugo.min.js +1 -1
  30. package/dist/{revolugo.prebookform.BDFY-Ks_.min.js → revolugo.prebookform.Ct2YhDa5.min.js} +5 -5
  31. package/dist/{revolugo.roominglisteditor.B_AOuHI_.min.js → revolugo.roominglisteditor.BAH1K08N.min.js} +4 -4
  32. package/dist/revolugo.storybooktoolbar.DRJbNUi1.min.js +845 -0
  33. package/dist/{revolugo.termsandconditions.Dfp652uY.min.js → revolugo.termsandconditions.D7d-mv52.min.js} +4 -4
  34. package/dist/{revolugo.webcomponentwrapper.CEjK8-cS.min.js → revolugo.webcomponentwrapper.umNfPHAE.min.js} +1452 -1421
  35. package/package.json +1 -1
  36. package/dist/revolugo.hoteloffersearchmenu.Ojiuc5KP.min.js +0 -200
  37. package/dist/revolugo.hoteloffersview.CUcJpz15.min.js +0 -19
  38. package/dist/revolugo.index.Bz-n9tuq.min.js +0 -67
  39. package/dist/revolugo.storybooktoolbar.BamIltF8.min.js +0 -867
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revolugo/elements",
3
- "version": "6.8.3-beta.16",
3
+ "version": "6.8.3-beta.18",
4
4
  "private": false,
5
5
  "description": "Revolugo Elements UI library",
6
6
  "author": "Revolugo",
@@ -1,200 +0,0 @@
1
- import { r as q, s as _ } from "./revolugo.cancellationpoliciesbadge.props.BnLjFL5s.min.js";
2
- import { b as p, e as f, f as H, E as S, s as b, h as m, i as u, M as C, j as d, k as O, d as g, l as v, c as k, p as w, u as E, o as D, w as y, a as A, n as B, g as I, r as R } from "./revolugo.index.wc.DevpsraD.min.js";
3
- import { s as Y, g as P, W, _ as $ } from "./revolugo.webcomponentwrapper.CEjK8-cS.min.js";
4
- import { w as N } from "./revolugo.index.Bz-n9tuq.min.js";
5
- const U = p(
6
- "hotelOfferRequest",
7
- () => {
8
- const a = f(), r = f(!1), l = f(!1);
9
- return {
10
- createHotelOfferRequest: async (o) => {
11
- const s = H();
12
- if (s) {
13
- a.value = void 0, r.value = !1, l.value = !0;
14
- try {
15
- const { eventMetadata: t } = window.RevolugoElements.config, e = {
16
- hotelOfferRequestCreateApi: {
17
- ...o,
18
- eventMetadata: t
19
- }
20
- }, i = await s?.hotelOfferRequests.create(
21
- e
22
- );
23
- return a.value = i, window.RevolugoElements.eventBus.$emit(
24
- S.HotelOfferRequestCreated,
25
- a.value
26
- ), a.value;
27
- } catch (t) {
28
- r.value = !0, console.error("Cannot create hotel offer request:", t);
29
- return;
30
- } finally {
31
- l.value = !1;
32
- }
33
- }
34
- },
35
- hasError: r,
36
- hotelOfferRequest: a,
37
- isFetching: l
38
- };
39
- }
40
- );
41
- function T(a) {
42
- const r = U(), { hasError: l, hotelOfferRequest: c, isFetching: o } = b(
43
- r
44
- ), s = Y(
45
- a.checkInDate || m().format("YYYY-MM-DD"),
46
- a.checkOutDate || m().add(1, "day").format("YYYY-MM-DD")
47
- ), t = f({
48
- address: a.address,
49
- adultCount: a.adultCount,
50
- checkInDate: s[0],
51
- checkOutDate: s[1],
52
- children: a.children,
53
- latitude: a.latitude,
54
- longitude: a.longitude,
55
- roomCount: a.roomCount,
56
- sourceMarket: a.sourceMarket
57
- });
58
- return u(
59
- t,
60
- r.createHotelOfferRequest,
61
- {
62
- deep: !0,
63
- immediate: !0
64
- }
65
- ), N(
66
- () => a.address,
67
- (e) => {
68
- t.value.address = e;
69
- },
70
- {
71
- debounce: 500
72
- }
73
- ), u(
74
- () => a.adultCount,
75
- (e) => {
76
- e > C ? t.value.adultCount = C : e > t.value.roomCount * d ? t.value = {
77
- ...t.value,
78
- adultCount: e,
79
- roomCount: Math.ceil(e / d)
80
- } : t.value.adultCount = e;
81
- }
82
- ), u(
83
- () => a.checkInDate,
84
- (e) => {
85
- t.value.checkInDate = e;
86
- }
87
- ), u(
88
- () => a.checkOutDate,
89
- (e) => {
90
- t.value.checkOutDate = e;
91
- }
92
- ), u(
93
- () => a.children,
94
- (e) => {
95
- t.value.children = e;
96
- }
97
- ), u(
98
- () => a.latitude,
99
- (e) => {
100
- t.value.latitude = e;
101
- }
102
- ), u(
103
- () => a.longitude,
104
- (e) => {
105
- t.value.longitude = e;
106
- }
107
- ), u(
108
- () => a.roomCount,
109
- (e) => {
110
- e > O ? t.value.roomCount = O : e > t.value.adultCount ? t.value = {
111
- ...t.value,
112
- adultCount: e,
113
- roomCount: e
114
- } : e < t.value.adultCount / d ? t.value = {
115
- ...t.value,
116
- adultCount: e * d,
117
- roomCount: e
118
- } : t.value.roomCount = e;
119
- }
120
- ), u(
121
- () => a.sourceMarket,
122
- (e) => {
123
- t.value.sourceMarket = e;
124
- }
125
- ), {
126
- createHotelOfferRequest: r.createHotelOfferRequest,
127
- hasError: l,
128
- hotelOfferRequest: c,
129
- hotelOfferRequestParams: t,
130
- isFetching: o
131
- };
132
- }
133
- const V = /* @__PURE__ */ g({
134
- __name: "HotelOfferSearchMenu",
135
- props: {
136
- address: {},
137
- adultCount: {},
138
- checkInDate: {},
139
- checkOutDate: {},
140
- children: {},
141
- isLoadingBarEnabled: { type: Boolean, default: !0 },
142
- latitude: {},
143
- longitude: {},
144
- roomCount: {},
145
- sourceMarket: {}
146
- },
147
- emits: ["hotelOfferRequest:updated"],
148
- setup(a, { emit: r }) {
149
- const l = a, { hotelOfferRequest: c, hotelOfferRequestParams: o, isFetching: s } = T(l), t = r, e = v({
150
- get() {
151
- return {
152
- adultCount: o.value.adultCount,
153
- checkInDate: o.value.checkInDate,
154
- checkOutDate: o.value.checkOutDate,
155
- children: o.value.children,
156
- roomCount: o.value.roomCount
157
- };
158
- },
159
- set(n) {
160
- o.value = {
161
- ...o.value,
162
- ...n
163
- };
164
- }
165
- }), i = v(() => {
166
- const { eventMetadata: n } = window.RevolugoElements.config;
167
- return n?.dateStart && n?.dateEnd ? P(n.dateStart, n.dateEnd) : [];
168
- });
169
- return u(c, (n) => {
170
- t("hotelOfferRequest:updated", n);
171
- }), (n, h) => n.isBookingApiClientDefined ? (D(), k(q, {
172
- key: 0,
173
- modelValue: e.value,
174
- "onUpdate:modelValue": h[0] || (h[0] = (M) => e.value = M),
175
- "is-loading": E(s),
176
- "is-loading-bar-enabled": n.isLoadingBarEnabled,
177
- "marker-dates": i.value
178
- }, null, 8, ["modelValue", "is-loading", "is-loading-bar-enabled", "marker-dates"])) : w("", !0);
179
- }
180
- }), x = g({
181
- components: {
182
- HotelOfferSearchMenu: V,
183
- WebComponentWrapper: W
184
- },
185
- props: _
186
- });
187
- function L(a, r, l, c, o, s) {
188
- const t = R("HotelOfferSearchMenu", !0), e = R("WebComponentWrapper");
189
- return D(), k(e, null, {
190
- default: y(() => [
191
- A(t, B(I(a.$props)), null, 16)
192
- ]),
193
- _: 1
194
- });
195
- }
196
- const G = /* @__PURE__ */ $(x, [["render", L]]);
197
- export {
198
- G as default
199
- };
200
- //# sourceMappingURL=revolugo.hoteloffersearchmenu.Ojiuc5KP.min.js.map
@@ -1,19 +0,0 @@
1
- import { t as o, u as r } from "./revolugo.cancellationpoliciesbadge.props.BnLjFL5s.min.js";
2
- import { d as a, c as s, w as t, a as p, n, g as f, u as l, o as i } from "./revolugo.index.wc.DevpsraD.min.js";
3
- import { W as m } from "./revolugo.webcomponentwrapper.CEjK8-cS.min.js";
4
- const V = /* @__PURE__ */ a({
5
- __name: "HotelOffersView",
6
- props: o,
7
- setup(u) {
8
- return (e, c) => (i(), s(m, null, {
9
- default: t(() => [
10
- p(l(r), n(f(e.$props)), null, 16)
11
- ]),
12
- _: 1
13
- }));
14
- }
15
- });
16
- export {
17
- V as default
18
- };
19
- //# sourceMappingURL=revolugo.hoteloffersview.CUcJpz15.min.js.map
@@ -1,67 +0,0 @@
1
- import { G as h, H as d, i as w, I as f } from "./revolugo.index.wc.DevpsraD.min.js";
2
- function S(t) {
3
- return h() ? (d(t), !0) : !1;
4
- }
5
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
6
- const p = () => {
7
- };
8
- function b(t, o) {
9
- function r(...e) {
10
- return new Promise((i, n) => {
11
- Promise.resolve(t(() => o.apply(this, e), { fn: o, thisArg: this, args: e })).then(i).catch(n);
12
- });
13
- }
14
- return r;
15
- }
16
- const v = (t) => t();
17
- function F(t, o = {}) {
18
- let r, e, i = p;
19
- const n = (c) => {
20
- clearTimeout(c), i(), i = p;
21
- };
22
- let u;
23
- return (c) => {
24
- const l = f(t), a = f(o.maxWait);
25
- return r && n(r), l <= 0 || a !== void 0 && a <= 0 ? (e && (n(e), e = void 0), Promise.resolve(c())) : new Promise((s, m) => {
26
- i = o.rejectOnCancel ? m : s, u = c, a && !e && (e = setTimeout(() => {
27
- r && n(r), e = void 0, s(u());
28
- }, a)), r = setTimeout(() => {
29
- e && n(e), e = void 0, s(c());
30
- }, l);
31
- });
32
- };
33
- }
34
- function T(t, o, r = {}) {
35
- const {
36
- eventFilter: e = v,
37
- ...i
38
- } = r;
39
- return w(
40
- t,
41
- b(
42
- e,
43
- o
44
- ),
45
- i
46
- );
47
- }
48
- function y(t, o, r = {}) {
49
- const {
50
- debounce: e = 0,
51
- maxWait: i = void 0,
52
- ...n
53
- } = r;
54
- return T(
55
- t,
56
- o,
57
- {
58
- ...n,
59
- eventFilter: F(e, { maxWait: i })
60
- }
61
- );
62
- }
63
- export {
64
- S as t,
65
- y as w
66
- };
67
- //# sourceMappingURL=revolugo.index.Bz-n9tuq.min.js.map