@odynn/awayz-hotels 0.12.2 → 0.12.3
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.
|
@@ -30,10 +30,10 @@ const rA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAGiCAYAAAAfl6KSAA
|
|
|
30
30
|
showNightsFreeTag: N = !0,
|
|
31
31
|
customBookableTag: F = $.TOP_PICKS,
|
|
32
32
|
customFallbackImage: L = rA,
|
|
33
|
-
showBestValueTag:
|
|
33
|
+
showBestValueTag: s = !0
|
|
34
34
|
}) => {
|
|
35
35
|
var i, S, p, w;
|
|
36
|
-
const [e,
|
|
36
|
+
const [e, f] = q(E), d = x(null), [j, T] = q(""), { featureFlags: g } = k(), c = AA(A.images)[0], P = ((p = (S = (i = A.cashBookingOffers) == null ? void 0 : i.photos) == null ? void 0 : S[0]) == null ? void 0 : p.url) ?? "", O = async () => {
|
|
37
37
|
const o = await gA(
|
|
38
38
|
c,
|
|
39
39
|
P,
|
|
@@ -52,7 +52,7 @@ const rA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAGiCAYAAAAfl6KSAA
|
|
|
52
52
|
cashCurrency: H
|
|
53
53
|
} = QA(A), W = (a == null ? void 0 : a.value) > 0 || (n == null ? void 0 : n.value) > 0 || l > 0;
|
|
54
54
|
v(() => {
|
|
55
|
-
E !== void 0 &&
|
|
55
|
+
E !== void 0 && f(E);
|
|
56
56
|
}, [E]), v(() => {
|
|
57
57
|
e && d.current.scrollIntoView({
|
|
58
58
|
behavior: "smooth",
|
|
@@ -83,7 +83,7 @@ const rA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAGiCAYAAAAfl6KSAA
|
|
|
83
83
|
I(A);
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
f(!0), t(A);
|
|
87
87
|
},
|
|
88
88
|
children: [
|
|
89
89
|
/* @__PURE__ */ C("div", { className: "details", children: [
|
|
@@ -144,14 +144,21 @@ const rA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAGiCAYAAAAfl6KSAA
|
|
|
144
144
|
},
|
|
145
145
|
children: [
|
|
146
146
|
/* @__PURE__ */ C("label", { children: [
|
|
147
|
-
A.bestValue === "cash" &&
|
|
147
|
+
A.bestValue === "cash" && s && g.amountsDisplayFeature === B.CASH_AND_TRAVEL_PARTNER_POINTS && /* @__PURE__ */ C("span", { className: "best-value tip", children: [
|
|
148
148
|
/* @__PURE__ */ Q(u, {}),
|
|
149
149
|
/* @__PURE__ */ Q("span", { children: "Best Value" })
|
|
150
150
|
] }),
|
|
151
151
|
"From"
|
|
152
152
|
] }),
|
|
153
153
|
/* @__PURE__ */ C("span", { children: [
|
|
154
|
-
/* @__PURE__ */ Q(
|
|
154
|
+
/* @__PURE__ */ Q(
|
|
155
|
+
G,
|
|
156
|
+
{
|
|
157
|
+
amount: l,
|
|
158
|
+
currency: H,
|
|
159
|
+
showOriginal: !1
|
|
160
|
+
}
|
|
161
|
+
),
|
|
155
162
|
g.amountsDisplayFeature === B.CASH_AND_CLIENT_POINTS && /* @__PURE__ */ C(R, { children: [
|
|
156
163
|
"/",
|
|
157
164
|
" ",
|
|
@@ -175,7 +182,7 @@ const rA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAGiCAYAAAAfl6KSAA
|
|
|
175
182
|
},
|
|
176
183
|
children: [
|
|
177
184
|
/* @__PURE__ */ C("label", { children: [
|
|
178
|
-
A.bestValue === "points" &&
|
|
185
|
+
A.bestValue === "points" && s && /* @__PURE__ */ C("span", { className: "best-value tip", children: [
|
|
179
186
|
/* @__PURE__ */ Q(u, {}),
|
|
180
187
|
/* @__PURE__ */ Q("span", { children: "Best Value" })
|
|
181
188
|
] }),
|