@landtrustinc/design-system 1.2.41 → 1.2.43
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.
- package/dist/index.d.ts +85 -1
- package/dist/index.js +432 -258
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -66,6 +66,7 @@ __export(src_exports, {
|
|
|
66
66
|
Navigation: () => Navigation_default,
|
|
67
67
|
PackageCard: () => PackageCard_default,
|
|
68
68
|
PackageHeader: () => PackageHeader_default,
|
|
69
|
+
ProgressBar: () => ProgressBar_default,
|
|
69
70
|
ReviewCard: () => ReviewCard_default,
|
|
70
71
|
Reviews: () => Reviews_default,
|
|
71
72
|
ReviewsShowcase: () => ReviewsShowcase_default,
|
|
@@ -78,6 +79,7 @@ __export(src_exports, {
|
|
|
78
79
|
Text: () => Text_default,
|
|
79
80
|
TextArea: () => TextArea,
|
|
80
81
|
ThemeTokens: () => ThemeTokens,
|
|
82
|
+
Timer: () => Timer_default,
|
|
81
83
|
Tooltip: () => Tooltip_default,
|
|
82
84
|
TopMatchingFieldNote: () => TopMatchingFieldNote,
|
|
83
85
|
TopMatchingReview: () => TopMatchingReview,
|
|
@@ -7822,8 +7824,137 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
7822
7824
|
};
|
|
7823
7825
|
var InfoBox_default = InfoBox;
|
|
7824
7826
|
|
|
7825
|
-
// src/
|
|
7827
|
+
// src/LandownerProfile/LandownerProfile.tsx
|
|
7828
|
+
var import_react52 = require("react");
|
|
7829
|
+
|
|
7830
|
+
// src/ProgressBar/ProgressBar.styles.ts
|
|
7831
|
+
var import_react49 = require("@emotion/react");
|
|
7832
|
+
var progressStyles = import_react49.css`
|
|
7833
|
+
transition: width 0.3s ease-in-out;
|
|
7834
|
+
`;
|
|
7835
|
+
|
|
7836
|
+
// src/ProgressBar/ProgressBar.tsx
|
|
7826
7837
|
var import_jsx_runtime242 = require("@emotion/react/jsx-runtime");
|
|
7838
|
+
var ProgressBar = ({ progress, className }) => {
|
|
7839
|
+
const clampedProgress = Math.min(100, Math.max(0, progress));
|
|
7840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
7841
|
+
Box_default,
|
|
7842
|
+
{
|
|
7843
|
+
width: "100%",
|
|
7844
|
+
height: "10px",
|
|
7845
|
+
backgroundColor: "var(--color-primary-100)",
|
|
7846
|
+
borderRadius: "48px",
|
|
7847
|
+
overflow: "hidden",
|
|
7848
|
+
position: "relative",
|
|
7849
|
+
className,
|
|
7850
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
7851
|
+
Box_default,
|
|
7852
|
+
{
|
|
7853
|
+
height: "100%",
|
|
7854
|
+
borderRadius: "48px",
|
|
7855
|
+
backgroundColor: "var(--color-primary-900)",
|
|
7856
|
+
css: progressStyles,
|
|
7857
|
+
style: { width: `${clampedProgress}%` },
|
|
7858
|
+
role: "progressbar",
|
|
7859
|
+
"aria-valuenow": clampedProgress,
|
|
7860
|
+
"aria-valuemin": 0,
|
|
7861
|
+
"aria-valuemax": 100
|
|
7862
|
+
}
|
|
7863
|
+
)
|
|
7864
|
+
}
|
|
7865
|
+
);
|
|
7866
|
+
};
|
|
7867
|
+
ProgressBar.displayName = "ProgressBar";
|
|
7868
|
+
var ProgressBar_default = ProgressBar;
|
|
7869
|
+
|
|
7870
|
+
// src/Timer/Timer.tsx
|
|
7871
|
+
var import_react51 = require("react");
|
|
7872
|
+
|
|
7873
|
+
// src/Timer/Timer.styles.ts
|
|
7874
|
+
var import_react50 = require("@emotion/react");
|
|
7875
|
+
var rootStyles2 = import_react50.css`
|
|
7876
|
+
display: inline-flex;
|
|
7877
|
+
font-variant-numeric: tabular-nums;
|
|
7878
|
+
`;
|
|
7879
|
+
|
|
7880
|
+
// src/Timer/Timer.tsx
|
|
7881
|
+
var import_jsx_runtime243 = require("@emotion/react/jsx-runtime");
|
|
7882
|
+
var calculateTimeLeft = (expirationTimestamp) => {
|
|
7883
|
+
const now = Math.floor(Date.now() / 1e3);
|
|
7884
|
+
const diff = expirationTimestamp - now;
|
|
7885
|
+
if (diff <= 0) {
|
|
7886
|
+
return null;
|
|
7887
|
+
}
|
|
7888
|
+
const days = Math.floor(diff / (24 * 60 * 60));
|
|
7889
|
+
const hours = Math.floor(diff % (24 * 60 * 60) / (60 * 60));
|
|
7890
|
+
const minutes = Math.floor(diff % (60 * 60) / 60);
|
|
7891
|
+
const seconds = diff % 60;
|
|
7892
|
+
return {
|
|
7893
|
+
days,
|
|
7894
|
+
hours,
|
|
7895
|
+
minutes,
|
|
7896
|
+
seconds,
|
|
7897
|
+
totalSeconds: diff
|
|
7898
|
+
};
|
|
7899
|
+
};
|
|
7900
|
+
var Timer = ({
|
|
7901
|
+
expirationTimestamp,
|
|
7902
|
+
onTimeUpdate,
|
|
7903
|
+
onExpire,
|
|
7904
|
+
className,
|
|
7905
|
+
fontSize = "md",
|
|
7906
|
+
fontWeight = "bold",
|
|
7907
|
+
showSeconds = false
|
|
7908
|
+
}) => {
|
|
7909
|
+
const [timeLeft, setTimeLeft] = (0, import_react51.useState)(
|
|
7910
|
+
() => calculateTimeLeft(expirationTimestamp)
|
|
7911
|
+
);
|
|
7912
|
+
const updateTime = (0, import_react51.useCallback)(() => {
|
|
7913
|
+
const newTimeLeft = calculateTimeLeft(expirationTimestamp);
|
|
7914
|
+
setTimeLeft(newTimeLeft);
|
|
7915
|
+
if (newTimeLeft) {
|
|
7916
|
+
onTimeUpdate == null ? void 0 : onTimeUpdate(newTimeLeft);
|
|
7917
|
+
} else {
|
|
7918
|
+
onExpire == null ? void 0 : onExpire();
|
|
7919
|
+
}
|
|
7920
|
+
return newTimeLeft;
|
|
7921
|
+
}, [expirationTimestamp, onTimeUpdate, onExpire]);
|
|
7922
|
+
(0, import_react51.useEffect)(() => {
|
|
7923
|
+
const initialTime = updateTime();
|
|
7924
|
+
if (!initialTime)
|
|
7925
|
+
return;
|
|
7926
|
+
const interval = setInterval(() => {
|
|
7927
|
+
const remaining = updateTime();
|
|
7928
|
+
if (!remaining) {
|
|
7929
|
+
clearInterval(interval);
|
|
7930
|
+
}
|
|
7931
|
+
}, 1e3);
|
|
7932
|
+
return () => clearInterval(interval);
|
|
7933
|
+
}, [updateTime]);
|
|
7934
|
+
if (!timeLeft) {
|
|
7935
|
+
return null;
|
|
7936
|
+
}
|
|
7937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(Box_default, { css: rootStyles2, className, children: [
|
|
7938
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(Text_default, { as: "span", fontWeight, size: fontSize, children: [
|
|
7939
|
+
timeLeft.days,
|
|
7940
|
+
"d : ",
|
|
7941
|
+
timeLeft.hours,
|
|
7942
|
+
"h : ",
|
|
7943
|
+
timeLeft.minutes,
|
|
7944
|
+
"m"
|
|
7945
|
+
] }),
|
|
7946
|
+
showSeconds && /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(Text_default, { as: "span", fontWeight, size: fontSize, children: [
|
|
7947
|
+
"\xA0: ",
|
|
7948
|
+
timeLeft.seconds,
|
|
7949
|
+
"s"
|
|
7950
|
+
] })
|
|
7951
|
+
] });
|
|
7952
|
+
};
|
|
7953
|
+
Timer.displayName = "Timer";
|
|
7954
|
+
var Timer_default = Timer;
|
|
7955
|
+
|
|
7956
|
+
// src/StarRating/StarRating.tsx
|
|
7957
|
+
var import_jsx_runtime244 = require("@emotion/react/jsx-runtime");
|
|
7827
7958
|
var starSize = {
|
|
7828
7959
|
sm: {
|
|
7829
7960
|
size: "medium",
|
|
@@ -7871,10 +8002,10 @@ var StarRating = ({
|
|
|
7871
8002
|
fill = "var(--color-neutral-100)";
|
|
7872
8003
|
}
|
|
7873
8004
|
stars.push(
|
|
7874
|
-
/* @__PURE__ */ (0,
|
|
8005
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Icon_default, { variant, size: starSize[size].size, fill }, i)
|
|
7875
8006
|
);
|
|
7876
8007
|
}
|
|
7877
|
-
return /* @__PURE__ */ (0,
|
|
8008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
7878
8009
|
Box_default,
|
|
7879
8010
|
{
|
|
7880
8011
|
className,
|
|
@@ -7888,7 +8019,7 @@ var StarRating = ({
|
|
|
7888
8019
|
var StarRating_default = StarRating;
|
|
7889
8020
|
|
|
7890
8021
|
// src/UserCard/UserCard.tsx
|
|
7891
|
-
var
|
|
8022
|
+
var import_jsx_runtime245 = require("@emotion/react/jsx-runtime");
|
|
7892
8023
|
var UserCard = ({
|
|
7893
8024
|
avatarSrc,
|
|
7894
8025
|
title,
|
|
@@ -7898,7 +8029,7 @@ var UserCard = ({
|
|
|
7898
8029
|
isVerified = false,
|
|
7899
8030
|
className
|
|
7900
8031
|
}) => {
|
|
7901
|
-
return /* @__PURE__ */ (0,
|
|
8032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
|
|
7902
8033
|
Box_default,
|
|
7903
8034
|
{
|
|
7904
8035
|
display: "flex",
|
|
@@ -7907,8 +8038,8 @@ var UserCard = ({
|
|
|
7907
8038
|
gap: "var(--spacing-4)",
|
|
7908
8039
|
className,
|
|
7909
8040
|
children: [
|
|
7910
|
-
/* @__PURE__ */ (0,
|
|
7911
|
-
/* @__PURE__ */ (0,
|
|
8041
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(Box_default, { display: "flex", alignItems: "flex-start", gap: "var(--spacing-4)", children: [
|
|
8042
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
7912
8043
|
Avatar_default,
|
|
7913
8044
|
{
|
|
7914
8045
|
type: avatarSrc ? "image" : "text",
|
|
@@ -7917,13 +8048,13 @@ var UserCard = ({
|
|
|
7917
8048
|
alt: `${title}'s avatar`
|
|
7918
8049
|
}
|
|
7919
8050
|
),
|
|
7920
|
-
/* @__PURE__ */ (0,
|
|
7921
|
-
/* @__PURE__ */ (0,
|
|
7922
|
-
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0,
|
|
7923
|
-
showRating && rating !== void 0 && /* @__PURE__ */ (0,
|
|
8051
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
8052
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
|
|
8053
|
+
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }) : subtitle),
|
|
8054
|
+
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(StarRating_default, { rating })
|
|
7924
8055
|
] })
|
|
7925
8056
|
] }),
|
|
7926
|
-
isVerified && /* @__PURE__ */ (0,
|
|
8057
|
+
isVerified && /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
|
|
7927
8058
|
Box_default,
|
|
7928
8059
|
{
|
|
7929
8060
|
display: "flex",
|
|
@@ -7932,8 +8063,8 @@ var UserCard = ({
|
|
|
7932
8063
|
gap: "var(--spacing-1)",
|
|
7933
8064
|
flexShrink: 0,
|
|
7934
8065
|
children: [
|
|
7935
|
-
/* @__PURE__ */ (0,
|
|
7936
|
-
/* @__PURE__ */ (0,
|
|
8066
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Icon_default, { variant: "ShieldCheckSolid", fill: "var(--icon-success)" }),
|
|
8067
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Text_default, { size: "xs", fontWeight: "bold", color: "text-primary", children: "Verified" })
|
|
7937
8068
|
]
|
|
7938
8069
|
}
|
|
7939
8070
|
)
|
|
@@ -7944,19 +8075,19 @@ var UserCard = ({
|
|
|
7944
8075
|
var UserCard_default = UserCard;
|
|
7945
8076
|
|
|
7946
8077
|
// src/LandownerProfile/components/ProfileSubtitle.tsx
|
|
7947
|
-
var
|
|
8078
|
+
var import_jsx_runtime246 = require("@emotion/react/jsx-runtime");
|
|
7948
8079
|
var ProfileSubtitle = ({
|
|
7949
8080
|
yearsHosting = 1,
|
|
7950
8081
|
featureReviewItem
|
|
7951
8082
|
}) => {
|
|
7952
|
-
return /* @__PURE__ */ (0,
|
|
7953
|
-
yearsHosting && yearsHosting > 0 && /* @__PURE__ */ (0,
|
|
8083
|
+
return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
8084
|
+
yearsHosting && yearsHosting > 0 && /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
7954
8085
|
yearsHosting,
|
|
7955
8086
|
" ",
|
|
7956
8087
|
yearsHosting === 1 ? "Year" : "Years",
|
|
7957
8088
|
" Hosting"
|
|
7958
8089
|
] }),
|
|
7959
|
-
featureReviewItem && /* @__PURE__ */ (0,
|
|
8090
|
+
featureReviewItem && /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(FeatureListItem_default, { ...featureReviewItem })
|
|
7960
8091
|
] });
|
|
7961
8092
|
};
|
|
7962
8093
|
var ProfileSubtitle_default = ProfileSubtitle;
|
|
@@ -7971,7 +8102,7 @@ var hasTextContent = (html) => {
|
|
|
7971
8102
|
};
|
|
7972
8103
|
|
|
7973
8104
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
7974
|
-
var
|
|
8105
|
+
var import_jsx_runtime247 = require("@emotion/react/jsx-runtime");
|
|
7975
8106
|
var LandownerProfile = ({
|
|
7976
8107
|
heading,
|
|
7977
8108
|
avatarSrc,
|
|
@@ -7985,8 +8116,25 @@ var LandownerProfile = ({
|
|
|
7985
8116
|
messageButtonText = "Message",
|
|
7986
8117
|
onMessageClick,
|
|
7987
8118
|
isMessageDisabled = false,
|
|
8119
|
+
earlyAccessTimer,
|
|
8120
|
+
onEarlyAccessTimeUpdate,
|
|
8121
|
+
onEarlyAccessExpire,
|
|
7988
8122
|
className
|
|
7989
8123
|
}) => {
|
|
8124
|
+
const calculateProgress = (timeLeft) => {
|
|
8125
|
+
if (!earlyAccessTimer)
|
|
8126
|
+
return 0;
|
|
8127
|
+
const { totalDuration } = earlyAccessTimer;
|
|
8128
|
+
if (totalDuration <= 0)
|
|
8129
|
+
return 100;
|
|
8130
|
+
const progressPercentage = (totalDuration - timeLeft.totalSeconds) / totalDuration * 100;
|
|
8131
|
+
return Math.min(100, Math.max(0, progressPercentage));
|
|
8132
|
+
};
|
|
8133
|
+
const [progress, setProgress] = (0, import_react52.useState)(0);
|
|
8134
|
+
const handleTimeUpdate = (timeLeft) => {
|
|
8135
|
+
setProgress(calculateProgress(timeLeft));
|
|
8136
|
+
onEarlyAccessTimeUpdate == null ? void 0 : onEarlyAccessTimeUpdate(timeLeft);
|
|
8137
|
+
};
|
|
7990
8138
|
const responseRateFeature = responseRate ? {
|
|
7991
8139
|
iconVariant: "IconComment",
|
|
7992
8140
|
label: `Response Rate: ${responseRate}`
|
|
@@ -7995,7 +8143,7 @@ var LandownerProfile = ({
|
|
|
7995
8143
|
iconVariant: "Bolt",
|
|
7996
8144
|
label: `Response Time: ${responseTime}`
|
|
7997
8145
|
} : void 0;
|
|
7998
|
-
return /* @__PURE__ */ (0,
|
|
8146
|
+
return /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
|
|
7999
8147
|
Box_default,
|
|
8000
8148
|
{
|
|
8001
8149
|
display: "flex",
|
|
@@ -8004,8 +8152,8 @@ var LandownerProfile = ({
|
|
|
8004
8152
|
color: "var(--text-primary)",
|
|
8005
8153
|
className,
|
|
8006
8154
|
children: [
|
|
8007
|
-
heading && /* @__PURE__ */ (0,
|
|
8008
|
-
/* @__PURE__ */ (0,
|
|
8155
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
8156
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
|
|
8009
8157
|
Box_default,
|
|
8010
8158
|
{
|
|
8011
8159
|
display: "flex",
|
|
@@ -8015,12 +8163,12 @@ var LandownerProfile = ({
|
|
|
8015
8163
|
p: "var(--spacing-4)",
|
|
8016
8164
|
borderRadius: "var(--radius-lg)",
|
|
8017
8165
|
children: [
|
|
8018
|
-
/* @__PURE__ */ (0,
|
|
8166
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8019
8167
|
UserCard_default,
|
|
8020
8168
|
{
|
|
8021
8169
|
avatarSrc,
|
|
8022
8170
|
title: name,
|
|
8023
|
-
subtitle: /* @__PURE__ */ (0,
|
|
8171
|
+
subtitle: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8024
8172
|
ProfileSubtitle_default,
|
|
8025
8173
|
{
|
|
8026
8174
|
yearsHosting,
|
|
@@ -8031,9 +8179,9 @@ var LandownerProfile = ({
|
|
|
8031
8179
|
isVerified
|
|
8032
8180
|
}
|
|
8033
8181
|
),
|
|
8034
|
-
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0,
|
|
8035
|
-
/* @__PURE__ */ (0,
|
|
8036
|
-
/* @__PURE__ */ (0,
|
|
8182
|
+
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
8183
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Text_default, { fontWeight: "bold", children: "Bio" }),
|
|
8184
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8037
8185
|
Text_default,
|
|
8038
8186
|
{
|
|
8039
8187
|
dangerouslySetInnerHTML: {
|
|
@@ -8042,14 +8190,14 @@ var LandownerProfile = ({
|
|
|
8042
8190
|
}
|
|
8043
8191
|
)
|
|
8044
8192
|
] }),
|
|
8045
|
-
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0,
|
|
8046
|
-
/* @__PURE__ */ (0,
|
|
8047
|
-
/* @__PURE__ */ (0,
|
|
8048
|
-
!!responseRateFeature && /* @__PURE__ */ (0,
|
|
8049
|
-
!!responseTimeFeature && /* @__PURE__ */ (0,
|
|
8193
|
+
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
8194
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Text_default, { fontWeight: "bold", children: "Landowner Details" }),
|
|
8195
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
8196
|
+
!!responseRateFeature && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(FeatureListItem_default, { ...responseRateFeature }),
|
|
8197
|
+
!!responseTimeFeature && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(FeatureListItem_default, { ...responseTimeFeature })
|
|
8050
8198
|
] })
|
|
8051
8199
|
] }),
|
|
8052
|
-
/* @__PURE__ */ (0,
|
|
8200
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Box_default, { alignSelf: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8053
8201
|
Button_default,
|
|
8054
8202
|
{
|
|
8055
8203
|
variant: "secondary",
|
|
@@ -8057,7 +8205,31 @@ var LandownerProfile = ({
|
|
|
8057
8205
|
disabled: isMessageDisabled,
|
|
8058
8206
|
children: messageButtonText
|
|
8059
8207
|
}
|
|
8060
|
-
) })
|
|
8208
|
+
) }),
|
|
8209
|
+
earlyAccessTimer && /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: [
|
|
8210
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(ProgressBar_default, { progress }),
|
|
8211
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
|
|
8212
|
+
Box_default,
|
|
8213
|
+
{
|
|
8214
|
+
display: "flex",
|
|
8215
|
+
flexDirection: "column",
|
|
8216
|
+
gap: "var(--spacing-1)",
|
|
8217
|
+
textAlign: "center",
|
|
8218
|
+
children: [
|
|
8219
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Text_default, { size: "xs", textAlign: "center", children: earlyAccessTimer.labelText }),
|
|
8220
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Text_default, { size: "sm", textAlign: "center", children: earlyAccessTimer.descriptionText }),
|
|
8221
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Box_default, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8222
|
+
Timer_default,
|
|
8223
|
+
{
|
|
8224
|
+
expirationTimestamp: earlyAccessTimer.expirationTimestamp,
|
|
8225
|
+
onTimeUpdate: handleTimeUpdate,
|
|
8226
|
+
onExpire: onEarlyAccessExpire
|
|
8227
|
+
}
|
|
8228
|
+
) })
|
|
8229
|
+
]
|
|
8230
|
+
}
|
|
8231
|
+
)
|
|
8232
|
+
] })
|
|
8061
8233
|
]
|
|
8062
8234
|
}
|
|
8063
8235
|
)
|
|
@@ -8068,11 +8240,11 @@ var LandownerProfile = ({
|
|
|
8068
8240
|
var LandownerProfile_default = LandownerProfile;
|
|
8069
8241
|
|
|
8070
8242
|
// src/ListingChat/ListingChat.tsx
|
|
8071
|
-
var
|
|
8243
|
+
var import_react54 = require("react");
|
|
8072
8244
|
|
|
8073
8245
|
// src/ListingChat/ListingChat.styles.ts
|
|
8074
|
-
var
|
|
8075
|
-
var containerStyles2 =
|
|
8246
|
+
var import_react53 = require("@emotion/react");
|
|
8247
|
+
var containerStyles2 = import_react53.css`
|
|
8076
8248
|
display: flex;
|
|
8077
8249
|
flex-direction: column;
|
|
8078
8250
|
gap: var(--spacing-4);
|
|
@@ -8080,13 +8252,13 @@ var containerStyles2 = import_react49.css`
|
|
|
8080
8252
|
border-radius: var(--radius-lg);
|
|
8081
8253
|
background: var(--surface-success);
|
|
8082
8254
|
`;
|
|
8083
|
-
var headerStyles =
|
|
8255
|
+
var headerStyles = import_react53.css`
|
|
8084
8256
|
display: flex;
|
|
8085
8257
|
align-items: flex-start;
|
|
8086
8258
|
justify-content: space-between;
|
|
8087
8259
|
gap: var(--spacing-2);
|
|
8088
8260
|
`;
|
|
8089
|
-
var chipsContainerStyles =
|
|
8261
|
+
var chipsContainerStyles = import_react53.css`
|
|
8090
8262
|
display: flex;
|
|
8091
8263
|
flex-wrap: wrap;
|
|
8092
8264
|
gap: var(--spacing-4);
|
|
@@ -8099,15 +8271,15 @@ var chipsContainerStyles = import_react49.css`
|
|
|
8099
8271
|
cursor: pointer;
|
|
8100
8272
|
}
|
|
8101
8273
|
`;
|
|
8102
|
-
var textAreaStyles =
|
|
8274
|
+
var textAreaStyles = import_react53.css`
|
|
8103
8275
|
min-height: 62px;
|
|
8104
8276
|
`;
|
|
8105
|
-
var inputWrapperStyles2 =
|
|
8277
|
+
var inputWrapperStyles2 = import_react53.css`
|
|
8106
8278
|
position: relative;
|
|
8107
8279
|
`;
|
|
8108
8280
|
|
|
8109
8281
|
// src/ListingChat/ListingChat.tsx
|
|
8110
|
-
var
|
|
8282
|
+
var import_jsx_runtime248 = require("@emotion/react/jsx-runtime");
|
|
8111
8283
|
var ListingChat = ({
|
|
8112
8284
|
onSubmit,
|
|
8113
8285
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -8117,15 +8289,15 @@ var ListingChat = ({
|
|
|
8117
8289
|
disabled = false,
|
|
8118
8290
|
...rest
|
|
8119
8291
|
}) => {
|
|
8120
|
-
const [value, setValue] = (0,
|
|
8121
|
-
const handleSubmit = (0,
|
|
8292
|
+
const [value, setValue] = (0, import_react54.useState)("");
|
|
8293
|
+
const handleSubmit = (0, import_react54.useCallback)(() => {
|
|
8122
8294
|
const trimmed = value.trim();
|
|
8123
8295
|
if (!trimmed)
|
|
8124
8296
|
return;
|
|
8125
8297
|
onSubmit(trimmed);
|
|
8126
8298
|
setValue("");
|
|
8127
8299
|
}, [onSubmit, value]);
|
|
8128
|
-
const handleTagClick = (0,
|
|
8300
|
+
const handleTagClick = (0, import_react54.useCallback)(
|
|
8129
8301
|
(tag) => () => {
|
|
8130
8302
|
const trimmed = tag.trim();
|
|
8131
8303
|
if (!trimmed)
|
|
@@ -8134,18 +8306,18 @@ var ListingChat = ({
|
|
|
8134
8306
|
},
|
|
8135
8307
|
[onSubmit]
|
|
8136
8308
|
);
|
|
8137
|
-
return /* @__PURE__ */ (0,
|
|
8138
|
-
/* @__PURE__ */ (0,
|
|
8139
|
-
/* @__PURE__ */ (0,
|
|
8140
|
-
/* @__PURE__ */ (0,
|
|
8141
|
-
/* @__PURE__ */ (0,
|
|
8309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(Box_default, { css: containerStyles2, className, ...rest, children: [
|
|
8310
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(Box_default, { css: headerStyles, children: [
|
|
8311
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(Box_default, { children: [
|
|
8312
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Box_default, { mb: "var(--spacing-2)", children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: title }) }),
|
|
8313
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
8142
8314
|
] }),
|
|
8143
|
-
/* @__PURE__ */ (0,
|
|
8144
|
-
/* @__PURE__ */ (0,
|
|
8145
|
-
/* @__PURE__ */ (0,
|
|
8315
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
8316
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
|
|
8317
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
8146
8318
|
] })
|
|
8147
8319
|
] }),
|
|
8148
|
-
/* @__PURE__ */ (0,
|
|
8320
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
|
|
8149
8321
|
TextArea,
|
|
8150
8322
|
{
|
|
8151
8323
|
rows: 1,
|
|
@@ -8160,14 +8332,14 @@ var ListingChat = ({
|
|
|
8160
8332
|
css: textAreaStyles
|
|
8161
8333
|
}
|
|
8162
8334
|
) }),
|
|
8163
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
8164
|
-
/* @__PURE__ */ (0,
|
|
8165
|
-
/* @__PURE__ */ (0,
|
|
8335
|
+
tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(import_jsx_runtime248.Fragment, { children: [
|
|
8336
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Text_default, { as: "div", size: "sm", fontWeight: "bold", children: "Try one of these" }),
|
|
8337
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Box_default, { css: chipsContainerStyles, children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
|
|
8166
8338
|
"button",
|
|
8167
8339
|
{
|
|
8168
8340
|
onClick: handleTagClick(tag),
|
|
8169
8341
|
disabled,
|
|
8170
|
-
children: /* @__PURE__ */ (0,
|
|
8342
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(TagChip_default, { children: tag })
|
|
8171
8343
|
},
|
|
8172
8344
|
tag
|
|
8173
8345
|
)) })
|
|
@@ -8177,11 +8349,11 @@ var ListingChat = ({
|
|
|
8177
8349
|
var ListingChat_default = ListingChat;
|
|
8178
8350
|
|
|
8179
8351
|
// src/Logo/Logo.tsx
|
|
8180
|
-
var
|
|
8352
|
+
var import_react55 = require("@emotion/react");
|
|
8181
8353
|
|
|
8182
8354
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
8183
|
-
var
|
|
8184
|
-
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0,
|
|
8355
|
+
var import_jsx_runtime249 = require("@emotion/react/jsx-runtime");
|
|
8356
|
+
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
|
|
8185
8357
|
"svg",
|
|
8186
8358
|
{
|
|
8187
8359
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8189,14 +8361,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime247.
|
|
|
8189
8361
|
fill: "none",
|
|
8190
8362
|
...props,
|
|
8191
8363
|
children: [
|
|
8192
|
-
/* @__PURE__ */ (0,
|
|
8364
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
8193
8365
|
"path",
|
|
8194
8366
|
{
|
|
8195
8367
|
fill: "#000",
|
|
8196
8368
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
8197
8369
|
}
|
|
8198
8370
|
) }),
|
|
8199
|
-
/* @__PURE__ */ (0,
|
|
8371
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
8200
8372
|
"path",
|
|
8201
8373
|
{
|
|
8202
8374
|
fill: "#FAD44E",
|
|
@@ -8205,14 +8377,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime247.
|
|
|
8205
8377
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
8206
8378
|
}
|
|
8207
8379
|
),
|
|
8208
|
-
/* @__PURE__ */ (0,
|
|
8380
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
8209
8381
|
"path",
|
|
8210
8382
|
{
|
|
8211
8383
|
fill: "#fff",
|
|
8212
8384
|
d: "M376.053 15.765h-9.487V49.36h-11.149V15.876h-9.56V6.608h30.196zM204.29 15.782h-9.487v33.6h-11.149V15.895h-9.56V6.633h30.196zM93.047 6.652l12.637 23.357V6.608h10.179v42.775h-10.488L92.982 25.96v23.402H82.878V6.651zM242.366 35.996l5.154 13.364h-10.781a8334 8334 0 0 0-5.254-13.389h-4.683v13.398h-10.921V6.64h4.836c7.307 0 14.616-.037 21.922.017 2.864.02 4.677 1.613 4.742 4.448q.225 10.12 0 20.244c-.052 2.927-2.075 4.29-5.015 4.648m-15.525-20.1v11.248h8.609a.912.912 0 0 0 .909-.911v-9.428a.905.905 0 0 0-.909-.91zM71.772 49.392H61.244l-1.831-9.098H48.34c-.628 2.995-1.262 6.004-1.91 9.09H36.147c3.07-14.297 6.11-28.505 9.179-42.774h17.268c3.047 14.207 6.101 28.436 9.179 42.782M57.939 30.786 55 15.744h-2.134c-1.012 4.987-2.02 9.974-3.054 15.042zM10.818 40.21H24.46v9.173H0V6.608h10.818zM282.264 6.608v32.466a.92.92 0 0 1-.268.648.9.9 0 0 1-.645.267h-7.445a.9.9 0 0 1-.645-.267.92.92 0 0 1-.267-.648V6.608h-11.025V44.94c0 2.443 1.971 4.424 4.403 4.424h22.506c2.432 0 4.404-1.982 4.404-4.426V6.608zM131.337 49.383V6.657h22.522c5.154 0 8.955 3.645 8.989 8.81q.088 12.542 0 25.086c-.046 5.18-3.85 8.824-8.999 8.824h-22.512zm11.036-33.503v24.2c2.346 0 4.623.092 6.889-.031 1.554-.084 2.589-1.274 2.6-2.912q.067-9.16 0-18.32c-.013-1.644-1.046-2.828-2.596-2.912-2.27-.123-4.549-.03-6.893-.03zM306.214 36.48c0 1.9-.115 3.747.022 5.577.31 4.136 3.799 7.47 7.924 7.539q7.022.116 14.047 0c3.879-.06 7.534-3.112 7.826-6.906.268-3.905.275-7.825.02-11.731-.176-3.002-2.574-5.277-5.55-5.806a766 766 0 0 0-13.834-2.343c-.901-.142-1.186-.527-1.176-1.342.017-1.404 0-2.807.013-4.21 0-.96.462-1.414 1.457-1.405 2.875.027 5.752.021 8.627 0 .992 0 1.425.466 1.412 1.433v2.183h9.117c0-2.078.17-4.067-.036-6.017-.406-3.818-3.896-6.992-7.718-7.057a423 423 0 0 0-14.416 0c-3.784.07-7.434 3.38-7.651 7.124a108 108 0 0 0-.01 11.375c.147 3.103 2.539 5.547 5.567 6.082q6.97 1.233 13.954 2.367c.775.127 1.058.435 1.041 1.195-.031 1.485-.01 2.971-.01 4.458 0 .857-.414 1.298-1.283 1.298h-8.875c-.859 0-1.286-.458-1.304-1.3-.017-.842 0-1.63 0-2.509z"
|
|
8213
8385
|
}
|
|
8214
8386
|
),
|
|
8215
|
-
/* @__PURE__ */ (0,
|
|
8387
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
|
|
8216
8388
|
"filter",
|
|
8217
8389
|
{
|
|
8218
8390
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -8223,8 +8395,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime247.
|
|
|
8223
8395
|
colorInterpolationFilters: "sRGB",
|
|
8224
8396
|
filterUnits: "userSpaceOnUse",
|
|
8225
8397
|
children: [
|
|
8226
|
-
/* @__PURE__ */ (0,
|
|
8227
|
-
/* @__PURE__ */ (0,
|
|
8398
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
8399
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
8228
8400
|
"feColorMatrix",
|
|
8229
8401
|
{
|
|
8230
8402
|
in: "SourceAlpha",
|
|
@@ -8232,18 +8404,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime247.
|
|
|
8232
8404
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
8233
8405
|
}
|
|
8234
8406
|
),
|
|
8235
|
-
/* @__PURE__ */ (0,
|
|
8236
|
-
/* @__PURE__ */ (0,
|
|
8237
|
-
/* @__PURE__ */ (0,
|
|
8238
|
-
/* @__PURE__ */ (0,
|
|
8239
|
-
/* @__PURE__ */ (0,
|
|
8407
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)("feOffset", { dy: 1 }),
|
|
8408
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
8409
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
8410
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
8411
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
8240
8412
|
"feBlend",
|
|
8241
8413
|
{
|
|
8242
8414
|
in2: "BackgroundImageFix",
|
|
8243
8415
|
result: "effect1_dropShadow_257_2540"
|
|
8244
8416
|
}
|
|
8245
8417
|
),
|
|
8246
|
-
/* @__PURE__ */ (0,
|
|
8418
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
8247
8419
|
"feBlend",
|
|
8248
8420
|
{
|
|
8249
8421
|
in: "SourceGraphic",
|
|
@@ -8260,8 +8432,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime247.
|
|
|
8260
8432
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
8261
8433
|
|
|
8262
8434
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
8263
|
-
var
|
|
8264
|
-
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0,
|
|
8435
|
+
var import_jsx_runtime250 = require("@emotion/react/jsx-runtime");
|
|
8436
|
+
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8265
8437
|
"svg",
|
|
8266
8438
|
{
|
|
8267
8439
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8269,14 +8441,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime248
|
|
|
8269
8441
|
fill: "none",
|
|
8270
8442
|
...props,
|
|
8271
8443
|
children: [
|
|
8272
|
-
/* @__PURE__ */ (0,
|
|
8444
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8273
8445
|
"path",
|
|
8274
8446
|
{
|
|
8275
8447
|
fill: "#000",
|
|
8276
8448
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
8277
8449
|
}
|
|
8278
8450
|
) }),
|
|
8279
|
-
/* @__PURE__ */ (0,
|
|
8451
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8280
8452
|
"path",
|
|
8281
8453
|
{
|
|
8282
8454
|
fill: "#FAD44E",
|
|
@@ -8285,14 +8457,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime248
|
|
|
8285
8457
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
8286
8458
|
}
|
|
8287
8459
|
),
|
|
8288
|
-
/* @__PURE__ */ (0,
|
|
8460
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8289
8461
|
"path",
|
|
8290
8462
|
{
|
|
8291
8463
|
fill: "#1A202C",
|
|
8292
8464
|
d: "M376.053 15.765h-9.487V49.36h-11.149V15.876h-9.56V6.608h30.196zM204.29 15.782h-9.487v33.6h-11.149V15.895h-9.56V6.633h30.196zM93.047 6.652l12.637 23.357V6.608h10.179v42.775h-10.488L92.982 25.96v23.402H82.878V6.651zM242.366 35.996l5.154 13.364h-10.781a8334 8334 0 0 0-5.254-13.389h-4.683v13.398h-10.921V6.64h4.836c7.307 0 14.616-.037 21.922.017 2.864.02 4.677 1.613 4.742 4.448q.225 10.12 0 20.244c-.052 2.927-2.075 4.29-5.015 4.648m-15.525-20.1v11.248h8.609a.912.912 0 0 0 .909-.911v-9.428a.905.905 0 0 0-.909-.91zM71.772 49.392H61.244l-1.831-9.098H48.34c-.628 2.995-1.262 6.004-1.91 9.09H36.147c3.07-14.297 6.11-28.505 9.179-42.774h17.268c3.047 14.207 6.101 28.436 9.179 42.782M57.939 30.786 55 15.744h-2.134c-1.012 4.987-2.02 9.974-3.054 15.042zM10.818 40.21H24.46v9.173H0V6.608h10.818zM282.264 6.608v32.466a.92.92 0 0 1-.268.648.9.9 0 0 1-.645.267h-7.445a.9.9 0 0 1-.645-.267.92.92 0 0 1-.267-.648V6.608h-11.025V44.94c0 2.443 1.971 4.424 4.403 4.424h22.506c2.432 0 4.404-1.982 4.404-4.426V6.608zM131.337 49.383V6.657h22.522c5.154 0 8.955 3.645 8.989 8.81q.088 12.542 0 25.086c-.046 5.18-3.85 8.824-8.999 8.824h-22.512zm11.036-33.503v24.2c2.346 0 4.623.092 6.889-.031 1.554-.084 2.589-1.274 2.6-2.912q.067-9.16 0-18.32c-.013-1.644-1.046-2.828-2.596-2.912-2.27-.123-4.549-.03-6.893-.03zM306.214 36.48c0 1.9-.115 3.747.022 5.577.31 4.136 3.799 7.47 7.924 7.539q7.022.116 14.047 0c3.879-.06 7.534-3.112 7.826-6.906.268-3.905.275-7.825.02-11.731-.176-3.002-2.574-5.277-5.55-5.806a766 766 0 0 0-13.834-2.343c-.901-.142-1.186-.527-1.176-1.342.017-1.404 0-2.807.013-4.21 0-.96.462-1.414 1.457-1.405 2.875.027 5.752.021 8.627 0 .992 0 1.425.466 1.412 1.433v2.183h9.117c0-2.078.17-4.067-.036-6.017-.406-3.818-3.896-6.992-7.718-7.057a423 423 0 0 0-14.416 0c-3.784.07-7.434 3.38-7.651 7.124a108 108 0 0 0-.01 11.375c.147 3.103 2.539 5.547 5.567 6.082q6.97 1.233 13.954 2.367c.775.127 1.058.435 1.041 1.195-.031 1.485-.01 2.971-.01 4.458 0 .857-.414 1.298-1.283 1.298h-8.875c-.859 0-1.286-.458-1.304-1.3-.017-.842 0-1.63 0-2.509z"
|
|
8293
8465
|
}
|
|
8294
8466
|
),
|
|
8295
|
-
/* @__PURE__ */ (0,
|
|
8467
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8296
8468
|
"filter",
|
|
8297
8469
|
{
|
|
8298
8470
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -8303,8 +8475,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime248
|
|
|
8303
8475
|
colorInterpolationFilters: "sRGB",
|
|
8304
8476
|
filterUnits: "userSpaceOnUse",
|
|
8305
8477
|
children: [
|
|
8306
|
-
/* @__PURE__ */ (0,
|
|
8307
|
-
/* @__PURE__ */ (0,
|
|
8478
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
8479
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8308
8480
|
"feColorMatrix",
|
|
8309
8481
|
{
|
|
8310
8482
|
in: "SourceAlpha",
|
|
@@ -8312,18 +8484,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime248
|
|
|
8312
8484
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
8313
8485
|
}
|
|
8314
8486
|
),
|
|
8315
|
-
/* @__PURE__ */ (0,
|
|
8316
|
-
/* @__PURE__ */ (0,
|
|
8317
|
-
/* @__PURE__ */ (0,
|
|
8318
|
-
/* @__PURE__ */ (0,
|
|
8319
|
-
/* @__PURE__ */ (0,
|
|
8487
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)("feOffset", { dy: 1 }),
|
|
8488
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
8489
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
8490
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
8491
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8320
8492
|
"feBlend",
|
|
8321
8493
|
{
|
|
8322
8494
|
in2: "BackgroundImageFix",
|
|
8323
8495
|
result: "effect1_dropShadow_257_2538"
|
|
8324
8496
|
}
|
|
8325
8497
|
),
|
|
8326
|
-
/* @__PURE__ */ (0,
|
|
8498
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8327
8499
|
"feBlend",
|
|
8328
8500
|
{
|
|
8329
8501
|
in: "SourceGraphic",
|
|
@@ -8340,8 +8512,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime248
|
|
|
8340
8512
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
8341
8513
|
|
|
8342
8514
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
8343
|
-
var
|
|
8344
|
-
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0,
|
|
8515
|
+
var import_jsx_runtime251 = require("@emotion/react/jsx-runtime");
|
|
8516
|
+
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
|
|
8345
8517
|
"svg",
|
|
8346
8518
|
{
|
|
8347
8519
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8349,14 +8521,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
8349
8521
|
fill: "none",
|
|
8350
8522
|
...props,
|
|
8351
8523
|
children: [
|
|
8352
|
-
/* @__PURE__ */ (0,
|
|
8524
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8353
8525
|
"path",
|
|
8354
8526
|
{
|
|
8355
8527
|
fill: "#E2430C",
|
|
8356
8528
|
d: "m0 0 .037 47.582q-.003 1.401.186 2.79a15.6 15.6 0 0 0 1.223 4.315c1.787 3.934 3.9 6.263 5.914 8.25 4.047 4 8.07 6.023 10.83 7.383A50 50 0 0 0 28.29 74a50 50 0 0 0 10.103-3.68c2.76-1.36 6.783-3.384 10.83-7.383 2.014-1.987 4.126-4.316 5.921-8.25a15.7 15.7 0 0 0 1.223-4.316q.189-1.387.186-2.79L56.59 0zm51.397 5.141-.01 14.061H5.197l-.011-14.06zm-.023 31.322a30 30 0 0 0-3.911-.876c-.822-.126-4.159-.603-8.867-.05-2.086.248-3.97.712-7.736 1.64a197 197 0 0 0-6.62 1.774c-3.427 1.195-9.065 2.541-15.502 1.125a26 26 0 0 1-3.526-1.051L5.2 24.337h46.183zM36.542 65.57a41 41 0 0 1-8.252 3.009 41 41 0 0 1-8.249-3.009 69 69 0 0 1-1.53-.773l9.768-5.588 9.778 5.608c-.55.277-1.054.525-1.515.753m14.823-18.4q.001.736-.072 1.467a13.2 13.2 0 0 1-1.076 4.17c-1.46 3.213-3.182 5.114-4.83 6.739a28 28 0 0 1-2.348 2.074l-.235-.133-14.525-8.327-14.544 8.324-.203.115a28 28 0 0 1-2.328-2.057c-1.642-1.624-3.369-3.526-4.829-6.74A13.2 13.2 0 0 1 5.3 48.636a15 15 0 0 1-.073-1.467v-2.774q1.9.561 3.86.86c.82.127 4.16.603 8.87.05 2.083-.246 3.967-.712 7.732-1.639a184 184 0 0 0 6.62-1.766c3.428-1.197 9.064-2.541 15.503-1.125q1.823.399 3.569 1.051z"
|
|
8357
8529
|
}
|
|
8358
8530
|
),
|
|
8359
|
-
/* @__PURE__ */ (0,
|
|
8531
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8360
8532
|
"path",
|
|
8361
8533
|
{
|
|
8362
8534
|
fill: "#fff",
|
|
@@ -8369,8 +8541,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
8369
8541
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
8370
8542
|
|
|
8371
8543
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
8372
|
-
var
|
|
8373
|
-
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0,
|
|
8544
|
+
var import_jsx_runtime252 = require("@emotion/react/jsx-runtime");
|
|
8545
|
+
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
8374
8546
|
"svg",
|
|
8375
8547
|
{
|
|
8376
8548
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8378,14 +8550,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
8378
8550
|
fill: "none",
|
|
8379
8551
|
...props,
|
|
8380
8552
|
children: [
|
|
8381
|
-
/* @__PURE__ */ (0,
|
|
8553
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8382
8554
|
"path",
|
|
8383
8555
|
{
|
|
8384
8556
|
fill: "#E2430C",
|
|
8385
8557
|
d: "m0 0 .037 47.582q-.003 1.401.186 2.79a15.6 15.6 0 0 0 1.223 4.315c1.787 3.934 3.9 6.263 5.914 8.25 4.047 4 8.07 6.023 10.83 7.383A50 50 0 0 0 28.29 74a50 50 0 0 0 10.103-3.68c2.76-1.36 6.783-3.384 10.83-7.383 2.014-1.987 4.126-4.316 5.921-8.25a15.7 15.7 0 0 0 1.223-4.316q.189-1.387.186-2.79L56.59 0zm51.397 5.141-.01 14.061H5.197l-.011-14.06zm-.023 31.322a30 30 0 0 0-3.911-.876c-.822-.126-4.159-.603-8.867-.05-2.086.248-3.97.712-7.736 1.64a197 197 0 0 0-6.62 1.774c-3.427 1.195-9.065 2.541-15.502 1.125a26 26 0 0 1-3.526-1.051L5.2 24.337h46.183zM36.542 65.57a41 41 0 0 1-8.252 3.009 41 41 0 0 1-8.249-3.009 69 69 0 0 1-1.53-.773l9.768-5.588 9.778 5.608c-.55.277-1.054.525-1.515.753m14.823-18.4q.001.736-.072 1.467a13.2 13.2 0 0 1-1.076 4.17c-1.46 3.213-3.182 5.114-4.83 6.739a28 28 0 0 1-2.348 2.074l-.235-.133-14.525-8.327-14.544 8.324-.203.115a28 28 0 0 1-2.328-2.057c-1.642-1.624-3.369-3.526-4.829-6.74A13.2 13.2 0 0 1 5.3 48.636a15 15 0 0 1-.073-1.467v-2.774q1.9.561 3.86.86c.82.127 4.16.603 8.87.05 2.083-.246 3.967-.712 7.732-1.639a184 184 0 0 0 6.62-1.766c3.428-1.197 9.064-2.541 15.503-1.125q1.823.399 3.569 1.051z"
|
|
8386
8558
|
}
|
|
8387
8559
|
),
|
|
8388
|
-
/* @__PURE__ */ (0,
|
|
8560
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8389
8561
|
"path",
|
|
8390
8562
|
{
|
|
8391
8563
|
fill: "#000",
|
|
@@ -8398,8 +8570,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
8398
8570
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
8399
8571
|
|
|
8400
8572
|
// src/Logo/Logo.tsx
|
|
8401
|
-
var
|
|
8402
|
-
var logoStyles = (size) =>
|
|
8573
|
+
var import_jsx_runtime253 = require("@emotion/react/jsx-runtime");
|
|
8574
|
+
var logoStyles = (size) => import_react55.css`
|
|
8403
8575
|
width: ${space[size]};
|
|
8404
8576
|
height: auto;
|
|
8405
8577
|
display: block;
|
|
@@ -8427,18 +8599,18 @@ var Logo = ({
|
|
|
8427
8599
|
return LandtrustStandardLight_default;
|
|
8428
8600
|
};
|
|
8429
8601
|
const LogoComponent = getLogoComponent();
|
|
8430
|
-
return /* @__PURE__ */ (0,
|
|
8602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
8431
8603
|
};
|
|
8432
8604
|
var Logo_default = Logo;
|
|
8433
8605
|
|
|
8434
8606
|
// src/Navigation/Navigation.styles.ts
|
|
8435
|
-
var
|
|
8436
|
-
var navigationStyles =
|
|
8607
|
+
var import_react56 = require("@emotion/react");
|
|
8608
|
+
var navigationStyles = import_react56.css`
|
|
8437
8609
|
width: 100%;
|
|
8438
8610
|
background-color: white;
|
|
8439
8611
|
border-bottom: 1px solid #e5e5e5;
|
|
8440
8612
|
`;
|
|
8441
|
-
var hamburgerButtonStyles =
|
|
8613
|
+
var hamburgerButtonStyles = import_react56.css`
|
|
8442
8614
|
cursor: pointer;
|
|
8443
8615
|
&:focus {
|
|
8444
8616
|
outline: 2px solid #4f46e5;
|
|
@@ -8449,7 +8621,7 @@ var hamburgerButtonStyles = import_react52.css`
|
|
|
8449
8621
|
display: none;
|
|
8450
8622
|
}
|
|
8451
8623
|
`;
|
|
8452
|
-
var centeredLogoStyles =
|
|
8624
|
+
var centeredLogoStyles = import_react56.css`
|
|
8453
8625
|
transform: translate(-50%, -50%);
|
|
8454
8626
|
max-width: 150px;
|
|
8455
8627
|
|
|
@@ -8457,27 +8629,27 @@ var centeredLogoStyles = import_react52.css`
|
|
|
8457
8629
|
display: none;
|
|
8458
8630
|
}
|
|
8459
8631
|
`;
|
|
8460
|
-
var desktopLogoStyles =
|
|
8632
|
+
var desktopLogoStyles = import_react56.css`
|
|
8461
8633
|
display: none;
|
|
8462
8634
|
|
|
8463
8635
|
@media (min-width: 768px) {
|
|
8464
8636
|
display: block;
|
|
8465
8637
|
}
|
|
8466
8638
|
`;
|
|
8467
|
-
var containerStyles3 =
|
|
8639
|
+
var containerStyles3 = import_react56.css`
|
|
8468
8640
|
@media (min-width: 768px) {
|
|
8469
8641
|
justify-content: space-between;
|
|
8470
8642
|
position: static;
|
|
8471
8643
|
}
|
|
8472
8644
|
`;
|
|
8473
|
-
var logoStyles2 =
|
|
8645
|
+
var logoStyles2 = import_react56.css`
|
|
8474
8646
|
width: 100%;
|
|
8475
8647
|
|
|
8476
8648
|
@media (min-width: 768px) {
|
|
8477
8649
|
width: initial;
|
|
8478
8650
|
}
|
|
8479
8651
|
`;
|
|
8480
|
-
var desktopNavStyles =
|
|
8652
|
+
var desktopNavStyles = import_react56.css`
|
|
8481
8653
|
display: none;
|
|
8482
8654
|
|
|
8483
8655
|
@media (min-width: 768px) {
|
|
@@ -8486,7 +8658,7 @@ var desktopNavStyles = import_react52.css`
|
|
|
8486
8658
|
gap: 32px;
|
|
8487
8659
|
}
|
|
8488
8660
|
`;
|
|
8489
|
-
var navLinksStyles =
|
|
8661
|
+
var navLinksStyles = import_react56.css`
|
|
8490
8662
|
display: flex;
|
|
8491
8663
|
align-items: center;
|
|
8492
8664
|
gap: 24px;
|
|
@@ -8494,7 +8666,7 @@ var navLinksStyles = import_react52.css`
|
|
|
8494
8666
|
margin: 0;
|
|
8495
8667
|
padding: 0;
|
|
8496
8668
|
`;
|
|
8497
|
-
var navLinkStyles =
|
|
8669
|
+
var navLinkStyles = import_react56.css`
|
|
8498
8670
|
text-decoration: none;
|
|
8499
8671
|
color: #374151;
|
|
8500
8672
|
font-weight: 500;
|
|
@@ -8510,7 +8682,7 @@ var navLinkStyles = import_react52.css`
|
|
|
8510
8682
|
outline-offset: 2px;
|
|
8511
8683
|
}
|
|
8512
8684
|
`;
|
|
8513
|
-
var avatarPlaceholderStyles =
|
|
8685
|
+
var avatarPlaceholderStyles = import_react56.css`
|
|
8514
8686
|
width: 32px;
|
|
8515
8687
|
height: 32px;
|
|
8516
8688
|
border-radius: 50%;
|
|
@@ -8535,7 +8707,7 @@ var avatarPlaceholderStyles = import_react52.css`
|
|
|
8535
8707
|
`;
|
|
8536
8708
|
|
|
8537
8709
|
// src/Navigation/Navigation.tsx
|
|
8538
|
-
var
|
|
8710
|
+
var import_jsx_runtime254 = require("@emotion/react/jsx-runtime");
|
|
8539
8711
|
var Navigation = ({
|
|
8540
8712
|
onMenuToggle,
|
|
8541
8713
|
className,
|
|
@@ -8549,7 +8721,7 @@ var Navigation = ({
|
|
|
8549
8721
|
onAvatarClick,
|
|
8550
8722
|
...rest
|
|
8551
8723
|
}) => {
|
|
8552
|
-
return /* @__PURE__ */ (0,
|
|
8724
|
+
return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
|
|
8553
8725
|
Box_default,
|
|
8554
8726
|
{
|
|
8555
8727
|
display: "flex",
|
|
@@ -8558,7 +8730,7 @@ var Navigation = ({
|
|
|
8558
8730
|
position: "relative",
|
|
8559
8731
|
css: containerStyles3,
|
|
8560
8732
|
children: [
|
|
8561
|
-
/* @__PURE__ */ (0,
|
|
8733
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
8562
8734
|
Box_default,
|
|
8563
8735
|
{
|
|
8564
8736
|
as: "button",
|
|
@@ -8570,11 +8742,11 @@ var Navigation = ({
|
|
|
8570
8742
|
border: "none",
|
|
8571
8743
|
padding: space[2],
|
|
8572
8744
|
css: hamburgerButtonStyles,
|
|
8573
|
-
children: /* @__PURE__ */ (0,
|
|
8745
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
8574
8746
|
}
|
|
8575
8747
|
),
|
|
8576
|
-
/* @__PURE__ */ (0,
|
|
8577
|
-
/* @__PURE__ */ (0,
|
|
8748
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
8749
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Box_default, { position: "absolute", left: "50%", top: "50%", css: centeredLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
8578
8750
|
Logo_default,
|
|
8579
8751
|
{
|
|
8580
8752
|
variant: logoVariant,
|
|
@@ -8583,8 +8755,8 @@ var Navigation = ({
|
|
|
8583
8755
|
css: logoStyles2
|
|
8584
8756
|
}
|
|
8585
8757
|
) }),
|
|
8586
|
-
/* @__PURE__ */ (0,
|
|
8587
|
-
/* @__PURE__ */ (0,
|
|
8758
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(Box_default, { css: desktopNavStyles, children: [
|
|
8759
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Box_default, { as: "nav", children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Box_default, { as: "ul", css: navLinksStyles, children: navLinks.map((link) => /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Box_default, { as: "li", children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
8588
8760
|
"a",
|
|
8589
8761
|
{
|
|
8590
8762
|
href: link.href,
|
|
@@ -8593,7 +8765,7 @@ var Navigation = ({
|
|
|
8593
8765
|
children: link.label
|
|
8594
8766
|
}
|
|
8595
8767
|
) }, link.href)) }) }),
|
|
8596
|
-
/* @__PURE__ */ (0,
|
|
8768
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
8597
8769
|
Box_default,
|
|
8598
8770
|
{
|
|
8599
8771
|
as: "button",
|
|
@@ -8612,21 +8784,21 @@ var Navigation = ({
|
|
|
8612
8784
|
var Navigation_default = Navigation;
|
|
8613
8785
|
|
|
8614
8786
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
8615
|
-
var
|
|
8787
|
+
var import_react59 = require("react");
|
|
8616
8788
|
var import_react_intersection_observer = require("react-intersection-observer");
|
|
8617
8789
|
|
|
8618
8790
|
// src/ScrollingCarousel/context/CarouselContext.tsx
|
|
8619
|
-
var
|
|
8620
|
-
var CarouselContext =
|
|
8791
|
+
var import_react57 = __toESM(require("react"));
|
|
8792
|
+
var CarouselContext = import_react57.default.createContext(
|
|
8621
8793
|
null
|
|
8622
8794
|
);
|
|
8623
8795
|
|
|
8624
8796
|
// src/ScrollingCarousel/ScrollingCarousel.styles.ts
|
|
8625
|
-
var
|
|
8626
|
-
var carouselRoot =
|
|
8797
|
+
var import_react58 = require("@emotion/react");
|
|
8798
|
+
var carouselRoot = import_react58.css`
|
|
8627
8799
|
position: relative;
|
|
8628
8800
|
`;
|
|
8629
|
-
var carousel =
|
|
8801
|
+
var carousel = import_react58.css`
|
|
8630
8802
|
display: flex;
|
|
8631
8803
|
overflow-y: hidden;
|
|
8632
8804
|
overflow-x: scroll;
|
|
@@ -8638,7 +8810,7 @@ var carousel = import_react54.css`
|
|
|
8638
8810
|
display: none;
|
|
8639
8811
|
}
|
|
8640
8812
|
`;
|
|
8641
|
-
var step =
|
|
8813
|
+
var step = import_react58.css`
|
|
8642
8814
|
scroll-snap-align: center;
|
|
8643
8815
|
flex-basis: 100%;
|
|
8644
8816
|
flex-shrink: 0;
|
|
@@ -8651,7 +8823,7 @@ var step = import_react54.css`
|
|
|
8651
8823
|
flex-basis: 100%;
|
|
8652
8824
|
}
|
|
8653
8825
|
`;
|
|
8654
|
-
var controls = (position2) =>
|
|
8826
|
+
var controls = (position2) => import_react58.css`
|
|
8655
8827
|
${(position2 === "left-right" || position2 === "top-right") && `
|
|
8656
8828
|
display: none;
|
|
8657
8829
|
|
|
@@ -8660,7 +8832,7 @@ var controls = (position2) => import_react54.css`
|
|
|
8660
8832
|
}
|
|
8661
8833
|
`}
|
|
8662
8834
|
`;
|
|
8663
|
-
var iconWrapper =
|
|
8835
|
+
var iconWrapper = import_react58.css`
|
|
8664
8836
|
display: flex;
|
|
8665
8837
|
width: var(--spacing-7);
|
|
8666
8838
|
height: var(--spacing-7);
|
|
@@ -8670,7 +8842,7 @@ var iconWrapper = import_react54.css`
|
|
|
8670
8842
|
justify-content: center;
|
|
8671
8843
|
box-shadow: var(--shadow-md);
|
|
8672
8844
|
`;
|
|
8673
|
-
var button = (position2) =>
|
|
8845
|
+
var button = (position2) => import_react58.css`
|
|
8674
8846
|
background: transparent;
|
|
8675
8847
|
border-color: transparent;
|
|
8676
8848
|
outline: none;
|
|
@@ -8702,7 +8874,7 @@ var button = (position2) => import_react54.css`
|
|
|
8702
8874
|
bottom: calc(-1 * var(--spacing-1));
|
|
8703
8875
|
`}
|
|
8704
8876
|
`;
|
|
8705
|
-
var buttonLeft = (position2) =>
|
|
8877
|
+
var buttonLeft = (position2) => import_react58.css`
|
|
8706
8878
|
${button(position2)}
|
|
8707
8879
|
|
|
8708
8880
|
${position2 === "left-right" && `
|
|
@@ -8722,7 +8894,7 @@ var buttonLeft = (position2) => import_react54.css`
|
|
|
8722
8894
|
left: calc(50% - var(--spacing-16));
|
|
8723
8895
|
`}
|
|
8724
8896
|
`;
|
|
8725
|
-
var customButtonLeft = (position2) =>
|
|
8897
|
+
var customButtonLeft = (position2) => import_react58.css`
|
|
8726
8898
|
${button(position2)}
|
|
8727
8899
|
|
|
8728
8900
|
${position2 === "left-right" && `
|
|
@@ -8742,7 +8914,7 @@ var customButtonLeft = (position2) => import_react54.css`
|
|
|
8742
8914
|
left: calc(50% - var(--spacing-16));
|
|
8743
8915
|
`}
|
|
8744
8916
|
`;
|
|
8745
|
-
var buttonRight = (position2) =>
|
|
8917
|
+
var buttonRight = (position2) => import_react58.css`
|
|
8746
8918
|
${button(position2)}
|
|
8747
8919
|
|
|
8748
8920
|
${position2 === "left-right" && `
|
|
@@ -8762,12 +8934,12 @@ var buttonRight = (position2) => import_react54.css`
|
|
|
8762
8934
|
right: calc(50% - var(--spacing-16));
|
|
8763
8935
|
`}
|
|
8764
8936
|
`;
|
|
8765
|
-
var icon =
|
|
8937
|
+
var icon = import_react58.css`
|
|
8766
8938
|
width: var(--spacing-3);
|
|
8767
8939
|
height: var(--spacing-3);
|
|
8768
8940
|
color: var(--color-base-black);
|
|
8769
8941
|
`;
|
|
8770
|
-
var dots =
|
|
8942
|
+
var dots = import_react58.css`
|
|
8771
8943
|
position: absolute;
|
|
8772
8944
|
bottom: var(--spacing-2);
|
|
8773
8945
|
left: 0;
|
|
@@ -8777,11 +8949,11 @@ var dots = import_react54.css`
|
|
|
8777
8949
|
align-items: center;
|
|
8778
8950
|
justify-content: center;
|
|
8779
8951
|
`;
|
|
8780
|
-
var dotsInner =
|
|
8952
|
+
var dotsInner = import_react58.css`
|
|
8781
8953
|
display: flex;
|
|
8782
8954
|
overflow: hidden;
|
|
8783
8955
|
`;
|
|
8784
|
-
var dot = (dotsColor) =>
|
|
8956
|
+
var dot = (dotsColor) => import_react58.css`
|
|
8785
8957
|
position: relative;
|
|
8786
8958
|
flex-shrink: 0;
|
|
8787
8959
|
flex-grow: 0;
|
|
@@ -8820,22 +8992,22 @@ var dot = (dotsColor) => import_react54.css`
|
|
|
8820
8992
|
`}
|
|
8821
8993
|
}
|
|
8822
8994
|
`;
|
|
8823
|
-
var dotDistance2 =
|
|
8995
|
+
var dotDistance2 = import_react58.css`
|
|
8824
8996
|
&::after {
|
|
8825
8997
|
transform: translate(-50%, -50%) scale(0.9);
|
|
8826
8998
|
}
|
|
8827
8999
|
`;
|
|
8828
|
-
var dotDistance3 =
|
|
9000
|
+
var dotDistance3 = import_react58.css`
|
|
8829
9001
|
&::after {
|
|
8830
9002
|
transform: translate(-50%, -50%) scale(0.8);
|
|
8831
9003
|
}
|
|
8832
9004
|
`;
|
|
8833
|
-
var dotDistanceGreaterThan3 =
|
|
9005
|
+
var dotDistanceGreaterThan3 = import_react58.css`
|
|
8834
9006
|
&::after {
|
|
8835
9007
|
transform: translate(-50%, -50%) scale(0.7);
|
|
8836
9008
|
}
|
|
8837
9009
|
`;
|
|
8838
|
-
var dotVisible =
|
|
9010
|
+
var dotVisible = import_react58.css`
|
|
8839
9011
|
&::after {
|
|
8840
9012
|
opacity: 1;
|
|
8841
9013
|
transform: translate(-50%, -50%) scale(1.2);
|
|
@@ -8843,7 +9015,7 @@ var dotVisible = import_react54.css`
|
|
|
8843
9015
|
`;
|
|
8844
9016
|
|
|
8845
9017
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
8846
|
-
var
|
|
9018
|
+
var import_jsx_runtime255 = require("@emotion/react/jsx-runtime");
|
|
8847
9019
|
var ScrollingCarouselStep = ({
|
|
8848
9020
|
children,
|
|
8849
9021
|
index,
|
|
@@ -8851,7 +9023,7 @@ var ScrollingCarouselStep = ({
|
|
|
8851
9023
|
parentId,
|
|
8852
9024
|
onClick
|
|
8853
9025
|
}) => {
|
|
8854
|
-
const context = (0,
|
|
9026
|
+
const context = (0, import_react59.useContext)(CarouselContext);
|
|
8855
9027
|
if (!context) {
|
|
8856
9028
|
throw new Error(
|
|
8857
9029
|
"ScrollingCarouselStep must be used within ScrollingCarousel"
|
|
@@ -8862,7 +9034,7 @@ var ScrollingCarouselStep = ({
|
|
|
8862
9034
|
threshold: 0.75,
|
|
8863
9035
|
root: carousel2.current
|
|
8864
9036
|
});
|
|
8865
|
-
(0,
|
|
9037
|
+
(0, import_react59.useEffect)(() => {
|
|
8866
9038
|
if (typeof index !== "undefined") {
|
|
8867
9039
|
dispatch({
|
|
8868
9040
|
type: "set_child_visibility",
|
|
@@ -8870,7 +9042,7 @@ var ScrollingCarouselStep = ({
|
|
|
8870
9042
|
});
|
|
8871
9043
|
}
|
|
8872
9044
|
}, [inView, index, dispatch]);
|
|
8873
|
-
return /* @__PURE__ */ (0,
|
|
9045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
|
|
8874
9046
|
"div",
|
|
8875
9047
|
{
|
|
8876
9048
|
ref,
|
|
@@ -8888,10 +9060,10 @@ var ScrollingCarouselStep = ({
|
|
|
8888
9060
|
ScrollingCarouselStep.displayName = "ScrollingCarouselStep";
|
|
8889
9061
|
|
|
8890
9062
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
8891
|
-
var
|
|
9063
|
+
var import_react63 = __toESM(require("react"));
|
|
8892
9064
|
|
|
8893
9065
|
// src/ScrollingCarousel/hooks/useCarouselDots.ts
|
|
8894
|
-
var
|
|
9066
|
+
var import_react60 = require("react");
|
|
8895
9067
|
|
|
8896
9068
|
// src/ScrollingCarousel/ScrollingCarousel.helpers.ts
|
|
8897
9069
|
var childVisibilityReducer = (state, action) => {
|
|
@@ -8922,7 +9094,7 @@ var useCarouselDots = ({
|
|
|
8922
9094
|
anyItemsVisible,
|
|
8923
9095
|
numberOfDots
|
|
8924
9096
|
}) => {
|
|
8925
|
-
const dotOffset = (0,
|
|
9097
|
+
const dotOffset = (0, import_react60.useRef)(0);
|
|
8926
9098
|
const dotWidth = 12;
|
|
8927
9099
|
const totalDots = childVisibility.length;
|
|
8928
9100
|
const dotToCenterIndex = Math.round(
|
|
@@ -8954,7 +9126,7 @@ var useCarouselDots = ({
|
|
|
8954
9126
|
};
|
|
8955
9127
|
|
|
8956
9128
|
// src/ScrollingCarousel/hooks/useCarouselNavigation.ts
|
|
8957
|
-
var
|
|
9129
|
+
var import_react61 = require("react");
|
|
8958
9130
|
|
|
8959
9131
|
// src/shared/helpers.ts
|
|
8960
9132
|
var import_seamless_scroll_polyfill = require("seamless-scroll-polyfill");
|
|
@@ -8988,7 +9160,7 @@ var useCarouselNavigation = ({
|
|
|
8988
9160
|
infiniteScroll,
|
|
8989
9161
|
childVisibilityLength
|
|
8990
9162
|
}) => {
|
|
8991
|
-
const getStepEl = (0,
|
|
9163
|
+
const getStepEl = (0, import_react61.useCallback)(
|
|
8992
9164
|
(index) => {
|
|
8993
9165
|
if (carousel2.current) {
|
|
8994
9166
|
const selector = `[data-carousel-id="${id}"][data-carousel-index="${index}"]`;
|
|
@@ -8998,7 +9170,7 @@ var useCarouselNavigation = ({
|
|
|
8998
9170
|
},
|
|
8999
9171
|
[carousel2, id]
|
|
9000
9172
|
);
|
|
9001
|
-
const next = (0,
|
|
9173
|
+
const next = (0, import_react61.useCallback)(
|
|
9002
9174
|
(e) => {
|
|
9003
9175
|
e.preventDefault();
|
|
9004
9176
|
if (lastItemIsVisible && !infiniteScroll)
|
|
@@ -9026,7 +9198,7 @@ var useCarouselNavigation = ({
|
|
|
9026
9198
|
carousel2
|
|
9027
9199
|
]
|
|
9028
9200
|
);
|
|
9029
|
-
const back = (0,
|
|
9201
|
+
const back = (0, import_react61.useCallback)(
|
|
9030
9202
|
(e) => {
|
|
9031
9203
|
e.preventDefault();
|
|
9032
9204
|
if (firstItemIsVisible && !infiniteScroll)
|
|
@@ -9054,7 +9226,7 @@ var useCarouselNavigation = ({
|
|
|
9054
9226
|
carousel2
|
|
9055
9227
|
]
|
|
9056
9228
|
);
|
|
9057
|
-
const goTo = (0,
|
|
9229
|
+
const goTo = (0, import_react61.useCallback)(
|
|
9058
9230
|
(e, i) => {
|
|
9059
9231
|
e.preventDefault();
|
|
9060
9232
|
const el = getStepEl(i);
|
|
@@ -9072,12 +9244,12 @@ var useCarouselNavigation = ({
|
|
|
9072
9244
|
};
|
|
9073
9245
|
|
|
9074
9246
|
// src/ScrollingCarousel/hooks/useCarouselVisibility.ts
|
|
9075
|
-
var
|
|
9247
|
+
var import_react62 = require("react");
|
|
9076
9248
|
var useCarouselVisibility = (carousel2) => {
|
|
9077
|
-
const [state, dispatch] = (0,
|
|
9249
|
+
const [state, dispatch] = (0, import_react62.useReducer)(childVisibilityReducer, {
|
|
9078
9250
|
childVisibility: []
|
|
9079
9251
|
});
|
|
9080
|
-
const carouselContextApi = (0,
|
|
9252
|
+
const carouselContextApi = (0, import_react62.useMemo)(
|
|
9081
9253
|
() => ({ carousel: carousel2, dispatch }),
|
|
9082
9254
|
[carousel2]
|
|
9083
9255
|
);
|
|
@@ -9098,7 +9270,7 @@ var useCarouselVisibility = (carousel2) => {
|
|
|
9098
9270
|
};
|
|
9099
9271
|
|
|
9100
9272
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
9101
|
-
var
|
|
9273
|
+
var import_jsx_runtime256 = require("@emotion/react/jsx-runtime");
|
|
9102
9274
|
var ScrollingCarousel = ({
|
|
9103
9275
|
className,
|
|
9104
9276
|
children,
|
|
@@ -9115,8 +9287,8 @@ var ScrollingCarousel = ({
|
|
|
9115
9287
|
id,
|
|
9116
9288
|
current
|
|
9117
9289
|
}) => {
|
|
9118
|
-
const carousel2 = (0,
|
|
9119
|
-
const [isHovering, setIsHovering] = (0,
|
|
9290
|
+
const carousel2 = (0, import_react63.useRef)(null);
|
|
9291
|
+
const [isHovering, setIsHovering] = (0, import_react63.useState)(false);
|
|
9120
9292
|
const {
|
|
9121
9293
|
state,
|
|
9122
9294
|
carouselContextApi,
|
|
@@ -9136,7 +9308,7 @@ var ScrollingCarousel = ({
|
|
|
9136
9308
|
infiniteScroll,
|
|
9137
9309
|
childVisibilityLength: state.childVisibility.length
|
|
9138
9310
|
});
|
|
9139
|
-
(0,
|
|
9311
|
+
(0, import_react63.useEffect)(() => {
|
|
9140
9312
|
if (carousel2.current && typeof current === "number" && current >= 0) {
|
|
9141
9313
|
const childrenArray = Array.from(carousel2.current.children);
|
|
9142
9314
|
const selectedItem = childrenArray[current];
|
|
@@ -9151,9 +9323,9 @@ var ScrollingCarousel = ({
|
|
|
9151
9323
|
}
|
|
9152
9324
|
}
|
|
9153
9325
|
}, [current]);
|
|
9154
|
-
const childrenWithIndex =
|
|
9326
|
+
const childrenWithIndex = import_react63.default.Children.map(
|
|
9155
9327
|
children,
|
|
9156
|
-
(child, index) =>
|
|
9328
|
+
(child, index) => import_react63.default.cloneElement(child, { index })
|
|
9157
9329
|
);
|
|
9158
9330
|
const { dotOffset, dotDistances, dotWidth } = useCarouselDots({
|
|
9159
9331
|
childVisibility: state.childVisibility,
|
|
@@ -9164,7 +9336,7 @@ var ScrollingCarousel = ({
|
|
|
9164
9336
|
});
|
|
9165
9337
|
const hasMultipleChildren = state.childVisibility.length > 1;
|
|
9166
9338
|
const shouldShowNavigation = showNavigationOnHover ? isHovering : true;
|
|
9167
|
-
return /* @__PURE__ */ (0,
|
|
9339
|
+
return /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
|
|
9168
9340
|
"div",
|
|
9169
9341
|
{
|
|
9170
9342
|
css: carouselRoot,
|
|
@@ -9172,7 +9344,7 @@ var ScrollingCarousel = ({
|
|
|
9172
9344
|
onMouseEnter: () => setIsHovering(true),
|
|
9173
9345
|
onMouseLeave: () => setIsHovering(false),
|
|
9174
9346
|
children: [
|
|
9175
|
-
/* @__PURE__ */ (0,
|
|
9347
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
9176
9348
|
"div",
|
|
9177
9349
|
{
|
|
9178
9350
|
css: carousel,
|
|
@@ -9181,11 +9353,11 @@ var ScrollingCarousel = ({
|
|
|
9181
9353
|
role: "region",
|
|
9182
9354
|
"aria-roledescription": "carousel",
|
|
9183
9355
|
"aria-label": "Scrolling carousel",
|
|
9184
|
-
children: /* @__PURE__ */ (0,
|
|
9356
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(CarouselContext.Provider, { value: carouselContextApi, children: childrenWithIndex })
|
|
9185
9357
|
}
|
|
9186
9358
|
),
|
|
9187
|
-
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0,
|
|
9188
|
-
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
9359
|
+
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)("div", { css: controls(buttonsPosition), children: [
|
|
9360
|
+
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
9189
9361
|
"button",
|
|
9190
9362
|
{
|
|
9191
9363
|
"aria-label": "Previous",
|
|
@@ -9197,10 +9369,10 @@ var ScrollingCarousel = ({
|
|
|
9197
9369
|
},
|
|
9198
9370
|
css: customLeftButton ? customButtonLeft(buttonsPosition) : buttonLeft(buttonsPosition),
|
|
9199
9371
|
"data-testid": `scrolling-carousel-button-back-${id}`,
|
|
9200
|
-
children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0,
|
|
9372
|
+
children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0, import_jsx_runtime256.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon_default, { variant: "AngleLeft", css: icon }) })
|
|
9201
9373
|
}
|
|
9202
9374
|
),
|
|
9203
|
-
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
9375
|
+
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
9204
9376
|
"button",
|
|
9205
9377
|
{
|
|
9206
9378
|
"aria-label": "Next",
|
|
@@ -9212,11 +9384,11 @@ var ScrollingCarousel = ({
|
|
|
9212
9384
|
},
|
|
9213
9385
|
css: buttonRight(buttonsPosition),
|
|
9214
9386
|
"data-testid": `scrolling-carousel-button-next-${id}`,
|
|
9215
|
-
children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0,
|
|
9387
|
+
children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0, import_jsx_runtime256.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon_default, { variant: "AngleRight", css: icon }) })
|
|
9216
9388
|
}
|
|
9217
9389
|
)
|
|
9218
9390
|
] }),
|
|
9219
|
-
showDots && /* @__PURE__ */ (0,
|
|
9391
|
+
showDots && /* @__PURE__ */ (0, import_jsx_runtime256.jsx)("div", { css: dots, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
9220
9392
|
"div",
|
|
9221
9393
|
{
|
|
9222
9394
|
css: dotsInner,
|
|
@@ -9224,7 +9396,7 @@ var ScrollingCarousel = ({
|
|
|
9224
9396
|
children: state.childVisibility.map((childVisibility, i) => {
|
|
9225
9397
|
var _a;
|
|
9226
9398
|
const distance = (_a = dotDistances[i]) != null ? _a : 0;
|
|
9227
|
-
return /* @__PURE__ */ (0,
|
|
9399
|
+
return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
9228
9400
|
"button",
|
|
9229
9401
|
{
|
|
9230
9402
|
type: "button",
|
|
@@ -9255,8 +9427,8 @@ var ScrollingCarousel = ({
|
|
|
9255
9427
|
ScrollingCarousel.displayName = "ScrollingCarousel";
|
|
9256
9428
|
|
|
9257
9429
|
// src/PackageCard/PackageCard.styles.ts
|
|
9258
|
-
var
|
|
9259
|
-
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) =>
|
|
9430
|
+
var import_react64 = require("@emotion/react");
|
|
9431
|
+
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) => import_react64.css`
|
|
9260
9432
|
${hasClickHandler && `
|
|
9261
9433
|
cursor: pointer;
|
|
9262
9434
|
`}
|
|
@@ -9274,7 +9446,7 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
9274
9446
|
flex-direction: column;
|
|
9275
9447
|
gap: var(--spacing-2);
|
|
9276
9448
|
|
|
9277
|
-
${orientation === "horizontal" &&
|
|
9449
|
+
${orientation === "horizontal" && import_react64.css`
|
|
9278
9450
|
/* Apply horizontal layout only on tablet and up */
|
|
9279
9451
|
${media.md} {
|
|
9280
9452
|
flex-direction: row;
|
|
@@ -9302,60 +9474,60 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
9302
9474
|
}
|
|
9303
9475
|
`}
|
|
9304
9476
|
`;
|
|
9305
|
-
var imageContainerStyles = (orientation) =>
|
|
9477
|
+
var imageContainerStyles = (orientation) => import_react64.css`
|
|
9306
9478
|
width: 100%;
|
|
9307
9479
|
height: 260px;
|
|
9308
9480
|
|
|
9309
|
-
${orientation === "horizontal" &&
|
|
9481
|
+
${orientation === "horizontal" && import_react64.css`
|
|
9310
9482
|
${media.md} {
|
|
9311
9483
|
width: 40%;
|
|
9312
9484
|
height: 200px;
|
|
9313
9485
|
}
|
|
9314
9486
|
`}
|
|
9315
9487
|
`;
|
|
9316
|
-
var imageBoxStyles = (orientation) =>
|
|
9488
|
+
var imageBoxStyles = (orientation) => import_react64.css`
|
|
9317
9489
|
height: 260px;
|
|
9318
9490
|
|
|
9319
|
-
${orientation === "horizontal" &&
|
|
9491
|
+
${orientation === "horizontal" && import_react64.css`
|
|
9320
9492
|
${media.md} {
|
|
9321
9493
|
height: 200px;
|
|
9322
9494
|
}
|
|
9323
9495
|
`}
|
|
9324
9496
|
`;
|
|
9325
|
-
var contentContainerStyles = (orientation, hasContentBackground) =>
|
|
9497
|
+
var contentContainerStyles = (orientation, hasContentBackground) => import_react64.css`
|
|
9326
9498
|
${hasContentBackground ? contentWithBackgroundStyles : contentWithoutBackgroundStyles}
|
|
9327
9499
|
width: 100%;
|
|
9328
9500
|
display: flex;
|
|
9329
9501
|
flex-direction: column;
|
|
9330
9502
|
justify-content: flex-start;
|
|
9331
9503
|
|
|
9332
|
-
${orientation === "horizontal" &&
|
|
9504
|
+
${orientation === "horizontal" && import_react64.css`
|
|
9333
9505
|
${media.md} {
|
|
9334
9506
|
width: 60%;
|
|
9335
9507
|
justify-content: center;
|
|
9336
9508
|
}
|
|
9337
9509
|
`}
|
|
9338
9510
|
`;
|
|
9339
|
-
var imageStyles2 =
|
|
9511
|
+
var imageStyles2 = import_react64.css`
|
|
9340
9512
|
background-size: cover;
|
|
9341
9513
|
background-position: center;
|
|
9342
9514
|
background-repeat: no-repeat;
|
|
9343
9515
|
position: relative;
|
|
9344
9516
|
background-color: lightgray;
|
|
9345
9517
|
`;
|
|
9346
|
-
var badgeTopLeftStyles =
|
|
9518
|
+
var badgeTopLeftStyles = import_react64.css`
|
|
9347
9519
|
position: absolute;
|
|
9348
9520
|
top: var(--spacing-3);
|
|
9349
9521
|
left: var(--spacing-3);
|
|
9350
9522
|
z-index: 2;
|
|
9351
9523
|
`;
|
|
9352
|
-
var badgeBottomRightStyles =
|
|
9524
|
+
var badgeBottomRightStyles = import_react64.css`
|
|
9353
9525
|
position: absolute;
|
|
9354
9526
|
bottom: var(--spacing-3);
|
|
9355
9527
|
right: var(--spacing-3);
|
|
9356
9528
|
z-index: 2;
|
|
9357
9529
|
`;
|
|
9358
|
-
var heartIconStyles =
|
|
9530
|
+
var heartIconStyles = import_react64.css`
|
|
9359
9531
|
position: absolute;
|
|
9360
9532
|
top: var(--spacing-3);
|
|
9361
9533
|
right: var(--spacing-3);
|
|
@@ -9377,20 +9549,20 @@ var heartIconStyles = import_react60.css`
|
|
|
9377
9549
|
transform: scale(1.1);
|
|
9378
9550
|
}
|
|
9379
9551
|
`;
|
|
9380
|
-
var actionMenuStyles =
|
|
9552
|
+
var actionMenuStyles = import_react64.css`
|
|
9381
9553
|
position: absolute;
|
|
9382
9554
|
top: var(--spacing-3);
|
|
9383
9555
|
right: var(--spacing-3);
|
|
9384
9556
|
z-index: 3;
|
|
9385
9557
|
`;
|
|
9386
|
-
var contentWithBackgroundStyles =
|
|
9558
|
+
var contentWithBackgroundStyles = import_react64.css`
|
|
9387
9559
|
padding: 0 var(--spacing-3) var(--spacing-4) var(--spacing-3);
|
|
9388
9560
|
background-color: var(--surface-page);
|
|
9389
9561
|
`;
|
|
9390
|
-
var contentWithoutBackgroundStyles =
|
|
9562
|
+
var contentWithoutBackgroundStyles = import_react64.css`
|
|
9391
9563
|
padding-top: 0 var(--spacing-2) var(--spacing-2) var(--spacing-2);
|
|
9392
9564
|
`;
|
|
9393
|
-
var overlayStyles =
|
|
9565
|
+
var overlayStyles = import_react64.css`
|
|
9394
9566
|
position: absolute;
|
|
9395
9567
|
top: 0;
|
|
9396
9568
|
left: 0;
|
|
@@ -9404,7 +9576,7 @@ var overlayStyles = import_react60.css`
|
|
|
9404
9576
|
`;
|
|
9405
9577
|
|
|
9406
9578
|
// src/PackageCard/PackageCard.tsx
|
|
9407
|
-
var
|
|
9579
|
+
var import_jsx_runtime257 = require("@emotion/react/jsx-runtime");
|
|
9408
9580
|
var PackageCard = ({
|
|
9409
9581
|
images,
|
|
9410
9582
|
title,
|
|
@@ -9426,7 +9598,7 @@ var PackageCard = ({
|
|
|
9426
9598
|
const shouldShowOverlay = availabilityBadges == null ? void 0 : availabilityBadges.some(
|
|
9427
9599
|
(badge2) => badge2.showOverlay
|
|
9428
9600
|
);
|
|
9429
|
-
return /* @__PURE__ */ (0,
|
|
9601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
|
|
9430
9602
|
Box_default,
|
|
9431
9603
|
{
|
|
9432
9604
|
position: "relative",
|
|
@@ -9435,7 +9607,7 @@ var PackageCard = ({
|
|
|
9435
9607
|
onClick,
|
|
9436
9608
|
...rest,
|
|
9437
9609
|
children: [
|
|
9438
|
-
/* @__PURE__ */ (0,
|
|
9610
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
|
|
9439
9611
|
Box_default,
|
|
9440
9612
|
{
|
|
9441
9613
|
position: "relative",
|
|
@@ -9443,7 +9615,7 @@ var PackageCard = ({
|
|
|
9443
9615
|
borderRadius: "var(--spacing-4)",
|
|
9444
9616
|
css: imageContainerStyles(orientation),
|
|
9445
9617
|
children: [
|
|
9446
|
-
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
9618
|
+
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9447
9619
|
AvailabilityBadge_default,
|
|
9448
9620
|
{
|
|
9449
9621
|
variant: badge2.variant,
|
|
@@ -9452,18 +9624,18 @@ var PackageCard = ({
|
|
|
9452
9624
|
},
|
|
9453
9625
|
`availability-${index}`
|
|
9454
9626
|
)),
|
|
9455
|
-
shouldShowOverlay && /* @__PURE__ */ (0,
|
|
9456
|
-
/* @__PURE__ */ (0,
|
|
9627
|
+
shouldShowOverlay && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { css: overlayStyles }),
|
|
9628
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9457
9629
|
ScrollingCarousel,
|
|
9458
9630
|
{
|
|
9459
9631
|
showDots: images.length > 1,
|
|
9460
9632
|
showNavigationOnHover: true,
|
|
9461
9633
|
id: carouselId,
|
|
9462
|
-
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0,
|
|
9634
|
+
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9463
9635
|
ScrollingCarouselStep,
|
|
9464
9636
|
{
|
|
9465
9637
|
parentId: carouselId,
|
|
9466
|
-
children: /* @__PURE__ */ (0,
|
|
9638
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9467
9639
|
Box_default,
|
|
9468
9640
|
{
|
|
9469
9641
|
width: "100%",
|
|
@@ -9481,7 +9653,7 @@ var PackageCard = ({
|
|
|
9481
9653
|
))
|
|
9482
9654
|
}
|
|
9483
9655
|
),
|
|
9484
|
-
onFavoriteClick && /* @__PURE__ */ (0,
|
|
9656
|
+
onFavoriteClick && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9485
9657
|
Box_default,
|
|
9486
9658
|
{
|
|
9487
9659
|
css: heartIconStyles,
|
|
@@ -9490,14 +9662,14 @@ var PackageCard = ({
|
|
|
9490
9662
|
e.stopPropagation();
|
|
9491
9663
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
9492
9664
|
},
|
|
9493
|
-
children: isFavorited ? /* @__PURE__ */ (0,
|
|
9665
|
+
children: isFavorited ? /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9494
9666
|
Icon_default,
|
|
9495
9667
|
{
|
|
9496
9668
|
variant: "HeartSolid",
|
|
9497
9669
|
size: "small",
|
|
9498
9670
|
fill: "var(--color-error-500)"
|
|
9499
9671
|
}
|
|
9500
|
-
) : /* @__PURE__ */ (0,
|
|
9672
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9501
9673
|
Icon_default,
|
|
9502
9674
|
{
|
|
9503
9675
|
variant: "Heart",
|
|
@@ -9507,13 +9679,13 @@ var PackageCard = ({
|
|
|
9507
9679
|
)
|
|
9508
9680
|
}
|
|
9509
9681
|
),
|
|
9510
|
-
actions && actions.length > 0 && orientation === "vertical" && /* @__PURE__ */ (0,
|
|
9682
|
+
actions && actions.length > 0 && orientation === "vertical" && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { css: actionMenuStyles, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(ActionMenu_default, { actions }) })
|
|
9511
9683
|
]
|
|
9512
9684
|
}
|
|
9513
9685
|
),
|
|
9514
|
-
actions && actions.length > 0 && orientation === "horizontal" && /* @__PURE__ */ (0,
|
|
9515
|
-
/* @__PURE__ */ (0,
|
|
9516
|
-
/* @__PURE__ */ (0,
|
|
9686
|
+
actions && actions.length > 0 && orientation === "horizontal" && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { css: actionMenuStyles, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(ActionMenu_default, { actions }) }),
|
|
9687
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(Box_default, { css: contentContainerStyles(orientation, hasContentBackground), children: [
|
|
9688
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
|
|
9517
9689
|
Box_default,
|
|
9518
9690
|
{
|
|
9519
9691
|
display: "flex",
|
|
@@ -9521,9 +9693,9 @@ var PackageCard = ({
|
|
|
9521
9693
|
gap: "var(--spacing-1)",
|
|
9522
9694
|
mb: "var(--spacing-1)",
|
|
9523
9695
|
children: [
|
|
9524
|
-
/* @__PURE__ */ (0,
|
|
9525
|
-
/* @__PURE__ */ (0,
|
|
9526
|
-
startingPrice && /* @__PURE__ */ (0,
|
|
9696
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }) }),
|
|
9697
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Text_default, { size: "sm", fontWeight: "bold", children: subtitle }) }),
|
|
9698
|
+
startingPrice && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(Text_default, { size: "sm", fontWeight: "normal", children: [
|
|
9527
9699
|
"Starting Price ",
|
|
9528
9700
|
startingPrice,
|
|
9529
9701
|
" / Guest"
|
|
@@ -9531,14 +9703,14 @@ var PackageCard = ({
|
|
|
9531
9703
|
]
|
|
9532
9704
|
}
|
|
9533
9705
|
),
|
|
9534
|
-
badges && badges.length > 0 && /* @__PURE__ */ (0,
|
|
9706
|
+
badges && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9535
9707
|
Box_default,
|
|
9536
9708
|
{
|
|
9537
9709
|
display: "flex",
|
|
9538
9710
|
gap: "var(--spacing-2) var(--spacing-4)",
|
|
9539
9711
|
alignItems: "center",
|
|
9540
9712
|
flexWrap: "wrap",
|
|
9541
|
-
children: badges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
9713
|
+
children: badges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9542
9714
|
IconLabel_default,
|
|
9543
9715
|
{
|
|
9544
9716
|
iconSize: badge2.iconSize || "medium",
|
|
@@ -9557,14 +9729,14 @@ var PackageCard = ({
|
|
|
9557
9729
|
var PackageCard_default = PackageCard;
|
|
9558
9730
|
|
|
9559
9731
|
// src/PackageHeader/PackageHeader.tsx
|
|
9560
|
-
var
|
|
9732
|
+
var import_jsx_runtime258 = require("@emotion/react/jsx-runtime");
|
|
9561
9733
|
var PackageHeader = ({
|
|
9562
9734
|
header,
|
|
9563
9735
|
subheader,
|
|
9564
9736
|
features,
|
|
9565
9737
|
className
|
|
9566
9738
|
}) => {
|
|
9567
|
-
return /* @__PURE__ */ (0,
|
|
9739
|
+
return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
|
|
9568
9740
|
Box_default,
|
|
9569
9741
|
{
|
|
9570
9742
|
display: "flex",
|
|
@@ -9573,9 +9745,9 @@ var PackageHeader = ({
|
|
|
9573
9745
|
color: "var(--text-primary)",
|
|
9574
9746
|
className,
|
|
9575
9747
|
children: [
|
|
9576
|
-
/* @__PURE__ */ (0,
|
|
9577
|
-
subheader && /* @__PURE__ */ (0,
|
|
9578
|
-
features && /* @__PURE__ */ (0,
|
|
9748
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsx)(Heading_default, { size: "xs", fontWeight: "bold", children: header }),
|
|
9749
|
+
subheader && /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(Text_default, { children: subheader }),
|
|
9750
|
+
features && /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(FeatureList_default, { items: features })
|
|
9579
9751
|
]
|
|
9580
9752
|
}
|
|
9581
9753
|
);
|
|
@@ -9583,8 +9755,8 @@ var PackageHeader = ({
|
|
|
9583
9755
|
var PackageHeader_default = PackageHeader;
|
|
9584
9756
|
|
|
9585
9757
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
9586
|
-
var
|
|
9587
|
-
var imageStyles3 =
|
|
9758
|
+
var import_react65 = require("@emotion/react");
|
|
9759
|
+
var imageStyles3 = import_react65.css`
|
|
9588
9760
|
flex: 1;
|
|
9589
9761
|
min-width: 0;
|
|
9590
9762
|
max-width: 100%;
|
|
@@ -9595,13 +9767,13 @@ var imageStyles3 = import_react61.css`
|
|
|
9595
9767
|
`;
|
|
9596
9768
|
|
|
9597
9769
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
9598
|
-
var
|
|
9770
|
+
var import_jsx_runtime259 = require("@emotion/react/jsx-runtime");
|
|
9599
9771
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
9600
9772
|
const displayImages = images.slice(0, maxImages);
|
|
9601
9773
|
if (displayImages.length === 0) {
|
|
9602
9774
|
return null;
|
|
9603
9775
|
}
|
|
9604
|
-
return /* @__PURE__ */ (0,
|
|
9776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Box_default, { display: "flex", gap: "var(--spacing-2)", flexWrap: "wrap", children: displayImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9605
9777
|
"img",
|
|
9606
9778
|
{
|
|
9607
9779
|
src: image,
|
|
@@ -9614,7 +9786,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
9614
9786
|
var ReviewImages_default = ReviewImages;
|
|
9615
9787
|
|
|
9616
9788
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
9617
|
-
var
|
|
9789
|
+
var import_jsx_runtime260 = require("@emotion/react/jsx-runtime");
|
|
9618
9790
|
var ReviewReply = ({
|
|
9619
9791
|
avatarSrc,
|
|
9620
9792
|
name,
|
|
@@ -9623,7 +9795,7 @@ var ReviewReply = ({
|
|
|
9623
9795
|
label,
|
|
9624
9796
|
rating
|
|
9625
9797
|
}) => {
|
|
9626
|
-
return /* @__PURE__ */ (0,
|
|
9798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
9627
9799
|
Box_default,
|
|
9628
9800
|
{
|
|
9629
9801
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -9633,7 +9805,7 @@ var ReviewReply = ({
|
|
|
9633
9805
|
flexDirection: "column",
|
|
9634
9806
|
gap: "var(--spacing-3)",
|
|
9635
9807
|
children: [
|
|
9636
|
-
/* @__PURE__ */ (0,
|
|
9808
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
9637
9809
|
Box_default,
|
|
9638
9810
|
{
|
|
9639
9811
|
display: "flex",
|
|
@@ -9641,7 +9813,7 @@ var ReviewReply = ({
|
|
|
9641
9813
|
justifyContent: "space-between",
|
|
9642
9814
|
gap: "var(--spacing-2)",
|
|
9643
9815
|
children: [
|
|
9644
|
-
/* @__PURE__ */ (0,
|
|
9816
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
9645
9817
|
UserCard_default,
|
|
9646
9818
|
{
|
|
9647
9819
|
avatarSrc,
|
|
@@ -9650,11 +9822,11 @@ var ReviewReply = ({
|
|
|
9650
9822
|
rating
|
|
9651
9823
|
}
|
|
9652
9824
|
),
|
|
9653
|
-
/* @__PURE__ */ (0,
|
|
9825
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
9654
9826
|
]
|
|
9655
9827
|
}
|
|
9656
9828
|
),
|
|
9657
|
-
/* @__PURE__ */ (0,
|
|
9829
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Text_default, { children: content })
|
|
9658
9830
|
]
|
|
9659
9831
|
}
|
|
9660
9832
|
);
|
|
@@ -9662,7 +9834,7 @@ var ReviewReply = ({
|
|
|
9662
9834
|
var ReviewReply_default = ReviewReply;
|
|
9663
9835
|
|
|
9664
9836
|
// src/ReviewCard/ReviewCard.tsx
|
|
9665
|
-
var
|
|
9837
|
+
var import_jsx_runtime261 = require("@emotion/react/jsx-runtime");
|
|
9666
9838
|
var ReviewCard = ({
|
|
9667
9839
|
avatarSrc,
|
|
9668
9840
|
name,
|
|
@@ -9674,7 +9846,7 @@ var ReviewCard = ({
|
|
|
9674
9846
|
replies = [],
|
|
9675
9847
|
className
|
|
9676
9848
|
}) => {
|
|
9677
|
-
return /* @__PURE__ */ (0,
|
|
9849
|
+
return /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
|
|
9678
9850
|
Box_default,
|
|
9679
9851
|
{
|
|
9680
9852
|
backgroundColor: "white",
|
|
@@ -9685,7 +9857,7 @@ var ReviewCard = ({
|
|
|
9685
9857
|
gap: "var(--spacing-4)",
|
|
9686
9858
|
className,
|
|
9687
9859
|
children: [
|
|
9688
|
-
/* @__PURE__ */ (0,
|
|
9860
|
+
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
|
|
9689
9861
|
UserCard_default,
|
|
9690
9862
|
{
|
|
9691
9863
|
avatarSrc,
|
|
@@ -9694,10 +9866,10 @@ var ReviewCard = ({
|
|
|
9694
9866
|
rating
|
|
9695
9867
|
}
|
|
9696
9868
|
),
|
|
9697
|
-
availabilityBadge && /* @__PURE__ */ (0,
|
|
9698
|
-
/* @__PURE__ */ (0,
|
|
9699
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
9700
|
-
replies.length > 0 && /* @__PURE__ */ (0,
|
|
9869
|
+
availabilityBadge && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(AvailabilityBadge_default, { variant: availabilityBadge.variant, children: availabilityBadge.text }) }),
|
|
9870
|
+
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Text_default, { size: "md", children: content }),
|
|
9871
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(ReviewImages_default, { images }),
|
|
9872
|
+
replies.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: replies.map((reply, index) => /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
|
|
9701
9873
|
ReviewReply_default,
|
|
9702
9874
|
{
|
|
9703
9875
|
avatarSrc: reply.avatarSrc,
|
|
@@ -9716,12 +9888,12 @@ var ReviewCard = ({
|
|
|
9716
9888
|
var ReviewCard_default = ReviewCard;
|
|
9717
9889
|
|
|
9718
9890
|
// src/Reviews/Reviews.tsx
|
|
9719
|
-
var
|
|
9891
|
+
var import_react66 = require("@emotion/react");
|
|
9720
9892
|
|
|
9721
9893
|
// src/Reviews/components/ReviewItem.tsx
|
|
9722
|
-
var
|
|
9894
|
+
var import_jsx_runtime262 = require("@emotion/react/jsx-runtime");
|
|
9723
9895
|
var ReviewItem = ({ label, rating }) => {
|
|
9724
|
-
return /* @__PURE__ */ (0,
|
|
9896
|
+
return /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
|
|
9725
9897
|
Box_default,
|
|
9726
9898
|
{
|
|
9727
9899
|
display: "flex",
|
|
@@ -9729,10 +9901,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
9729
9901
|
alignItems: "center",
|
|
9730
9902
|
width: "100%",
|
|
9731
9903
|
children: [
|
|
9732
|
-
/* @__PURE__ */ (0,
|
|
9733
|
-
/* @__PURE__ */ (0,
|
|
9734
|
-
/* @__PURE__ */ (0,
|
|
9735
|
-
/* @__PURE__ */ (0,
|
|
9904
|
+
/* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Text_default, { fontWeight: "semibold", children: label }),
|
|
9905
|
+
/* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
9906
|
+
/* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Icon_default, { variant: "StarSolid", size: "large", fill: "var(--surface-action-2)" }),
|
|
9907
|
+
/* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Text_default, { fontWeight: "semibold", children: rating.toFixed(1) })
|
|
9736
9908
|
] })
|
|
9737
9909
|
]
|
|
9738
9910
|
}
|
|
@@ -9741,14 +9913,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
9741
9913
|
var ReviewItem_default = ReviewItem;
|
|
9742
9914
|
|
|
9743
9915
|
// src/Reviews/Reviews.tsx
|
|
9744
|
-
var
|
|
9916
|
+
var import_jsx_runtime263 = require("@emotion/react/jsx-runtime");
|
|
9745
9917
|
var Reviews = ({
|
|
9746
9918
|
averageRating,
|
|
9747
9919
|
totalReviews,
|
|
9748
9920
|
items,
|
|
9749
9921
|
className
|
|
9750
9922
|
}) => {
|
|
9751
|
-
return /* @__PURE__ */ (0,
|
|
9923
|
+
return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
|
|
9752
9924
|
Box_default,
|
|
9753
9925
|
{
|
|
9754
9926
|
width: "100%",
|
|
@@ -9761,7 +9933,7 @@ var Reviews = ({
|
|
|
9761
9933
|
p: "var(--spacing-4)",
|
|
9762
9934
|
className,
|
|
9763
9935
|
children: [
|
|
9764
|
-
/* @__PURE__ */ (0,
|
|
9936
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
|
|
9765
9937
|
Box_default,
|
|
9766
9938
|
{
|
|
9767
9939
|
display: "flex",
|
|
@@ -9769,12 +9941,12 @@ var Reviews = ({
|
|
|
9769
9941
|
alignItems: "center",
|
|
9770
9942
|
gap: "var(--spacing-2)",
|
|
9771
9943
|
children: [
|
|
9772
|
-
/* @__PURE__ */ (0,
|
|
9773
|
-
/* @__PURE__ */ (0,
|
|
9944
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
9945
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
|
|
9774
9946
|
StarRating_default,
|
|
9775
9947
|
{
|
|
9776
9948
|
rating: averageRating,
|
|
9777
|
-
css:
|
|
9949
|
+
css: import_react66.css`
|
|
9778
9950
|
> svg {
|
|
9779
9951
|
height: 40px;
|
|
9780
9952
|
width: 40px;
|
|
@@ -9782,7 +9954,7 @@ var Reviews = ({
|
|
|
9782
9954
|
`
|
|
9783
9955
|
}
|
|
9784
9956
|
),
|
|
9785
|
-
/* @__PURE__ */ (0,
|
|
9957
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
9786
9958
|
"Overall Rating \u2022 ",
|
|
9787
9959
|
totalReviews,
|
|
9788
9960
|
" Review",
|
|
@@ -9791,14 +9963,14 @@ var Reviews = ({
|
|
|
9791
9963
|
]
|
|
9792
9964
|
}
|
|
9793
9965
|
),
|
|
9794
|
-
/* @__PURE__ */ (0,
|
|
9966
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
|
|
9795
9967
|
Box_default,
|
|
9796
9968
|
{
|
|
9797
9969
|
display: "flex",
|
|
9798
9970
|
flexDirection: "column",
|
|
9799
9971
|
gap: "var(--spacing-2)",
|
|
9800
9972
|
width: "100%",
|
|
9801
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
9973
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(ReviewItem_default, { label: item.label, rating: item.rating }, index))
|
|
9802
9974
|
}
|
|
9803
9975
|
)
|
|
9804
9976
|
]
|
|
@@ -9808,7 +9980,7 @@ var Reviews = ({
|
|
|
9808
9980
|
var Reviews_default = Reviews;
|
|
9809
9981
|
|
|
9810
9982
|
// src/Reviews/ReviewsShowcase.tsx
|
|
9811
|
-
var
|
|
9983
|
+
var import_jsx_runtime264 = require("@emotion/react/jsx-runtime");
|
|
9812
9984
|
var ReviewsShowcase = () => {
|
|
9813
9985
|
const sampleData = {
|
|
9814
9986
|
averageRating: 4,
|
|
@@ -9830,7 +10002,7 @@ var ReviewsShowcase = () => {
|
|
|
9830
10002
|
{ label: "Game Abundance", rating: 5 }
|
|
9831
10003
|
]
|
|
9832
10004
|
};
|
|
9833
|
-
return /* @__PURE__ */ (0,
|
|
10005
|
+
return /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
|
|
9834
10006
|
Box_default,
|
|
9835
10007
|
{
|
|
9836
10008
|
display: "flex",
|
|
@@ -9838,24 +10010,24 @@ var ReviewsShowcase = () => {
|
|
|
9838
10010
|
gap: "var(--spacing-8)",
|
|
9839
10011
|
p: "var(--spacing-6)",
|
|
9840
10012
|
children: [
|
|
9841
|
-
/* @__PURE__ */ (0,
|
|
9842
|
-
/* @__PURE__ */ (0,
|
|
9843
|
-
/* @__PURE__ */ (0,
|
|
9844
|
-
/* @__PURE__ */ (0,
|
|
10013
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Heading_default, { size: "lg", children: "Reviews Component Showcase" }),
|
|
10014
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
10015
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Heading_default, { size: "md", children: "Default Reviews" }),
|
|
10016
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Reviews_default, { ...sampleData }) })
|
|
9845
10017
|
] }),
|
|
9846
|
-
/* @__PURE__ */ (0,
|
|
9847
|
-
/* @__PURE__ */ (0,
|
|
9848
|
-
/* @__PURE__ */ (0,
|
|
10018
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
10019
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Heading_default, { size: "md", children: "High Rating Reviews" }),
|
|
10020
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Reviews_default, { ...highRatingData }) })
|
|
9849
10021
|
] }),
|
|
9850
|
-
/* @__PURE__ */ (0,
|
|
9851
|
-
/* @__PURE__ */ (0,
|
|
9852
|
-
/* @__PURE__ */ (0,
|
|
10022
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
10023
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Heading_default, { size: "md", children: "Mobile Layout (320px width)" }),
|
|
10024
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
9853
10025
|
Box_default,
|
|
9854
10026
|
{
|
|
9855
10027
|
maxWidth: "320px",
|
|
9856
10028
|
border: "1px solid var(--color-neutral-200)",
|
|
9857
10029
|
p: "var(--spacing-4)",
|
|
9858
|
-
children: /* @__PURE__ */ (0,
|
|
10030
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Reviews_default, { ...sampleData })
|
|
9859
10031
|
}
|
|
9860
10032
|
)
|
|
9861
10033
|
] })
|
|
@@ -9902,6 +10074,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
9902
10074
|
Navigation,
|
|
9903
10075
|
PackageCard,
|
|
9904
10076
|
PackageHeader,
|
|
10077
|
+
ProgressBar,
|
|
9905
10078
|
ReviewCard,
|
|
9906
10079
|
Reviews,
|
|
9907
10080
|
ReviewsShowcase,
|
|
@@ -9914,6 +10087,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
9914
10087
|
Text,
|
|
9915
10088
|
TextArea,
|
|
9916
10089
|
ThemeTokens,
|
|
10090
|
+
Timer,
|
|
9917
10091
|
Tooltip,
|
|
9918
10092
|
TopMatchingFieldNote,
|
|
9919
10093
|
TopMatchingReview,
|