@landtrustinc/design-system 1.2.48 → 1.2.50
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 +42 -1
- package/dist/index.js +557 -489
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __export(src_exports, {
|
|
|
42
42
|
Column: () => Column_default,
|
|
43
43
|
ContactLandownerButton: () => ContactLandownerButton,
|
|
44
44
|
Container: () => Container_default,
|
|
45
|
+
CtaCard: () => CtaCard_default,
|
|
45
46
|
Divider: () => Divider_default,
|
|
46
47
|
FeatureList: () => FeatureList_default,
|
|
47
48
|
FeatureListItem: () => FeatureListItem_default,
|
|
@@ -6119,6 +6120,10 @@ var contentStyles = import_react28.css`
|
|
|
6119
6120
|
flex: 1 1 auto;
|
|
6120
6121
|
min-width: 1px;
|
|
6121
6122
|
min-height: 1px;
|
|
6123
|
+
text-wrap: wrap;
|
|
6124
|
+
word-break: break-word;
|
|
6125
|
+
white-space: pre-wrap;
|
|
6126
|
+
overflow-wrap: break-word;
|
|
6122
6127
|
`;
|
|
6123
6128
|
|
|
6124
6129
|
// src/MessageBubble/MessageBubble.tsx
|
|
@@ -6645,6 +6650,7 @@ var ChatWidget = ({
|
|
|
6645
6650
|
const scrollRef = (0, import_react35.useRef)(null);
|
|
6646
6651
|
const savedScrollPosition = (0, import_react35.useRef)(0);
|
|
6647
6652
|
const previousMessagesLength = (0, import_react35.useRef)(messages.length);
|
|
6653
|
+
const previousMessagesRef = (0, import_react35.useRef)(messages);
|
|
6648
6654
|
const isControlled = typeof expanded === "boolean";
|
|
6649
6655
|
const [internalExpanded, setInternalExpanded] = (0, import_react35.useState)(defaultExpanded);
|
|
6650
6656
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
@@ -6673,9 +6679,11 @@ var ChatWidget = ({
|
|
|
6673
6679
|
const el = scrollRef.current;
|
|
6674
6680
|
if (!el || !isExpanded)
|
|
6675
6681
|
return;
|
|
6676
|
-
const
|
|
6682
|
+
const messagesLengthChanged = messages.length !== previousMessagesLength.current;
|
|
6683
|
+
const messagesContentChanged = messages !== previousMessagesRef.current;
|
|
6677
6684
|
previousMessagesLength.current = messages.length;
|
|
6678
|
-
|
|
6685
|
+
previousMessagesRef.current = messages;
|
|
6686
|
+
if (messagesLengthChanged || messagesContentChanged || isThinking) {
|
|
6679
6687
|
requestAnimationFrame(() => {
|
|
6680
6688
|
el.scrollTo({ top: el.scrollHeight, behavior: "smooth" });
|
|
6681
6689
|
savedScrollPosition.current = el.scrollHeight;
|
|
@@ -6833,10 +6841,69 @@ var ChatWidget = ({
|
|
|
6833
6841
|
};
|
|
6834
6842
|
var ChatWidget_default = ChatWidget;
|
|
6835
6843
|
|
|
6836
|
-
// src/
|
|
6844
|
+
// src/CtaCard/CtaCard.tsx
|
|
6845
|
+
var import_react37 = require("react");
|
|
6846
|
+
|
|
6847
|
+
// src/CtaCard/CtaCard.styles.ts
|
|
6837
6848
|
var import_react36 = require("@emotion/react");
|
|
6838
|
-
var
|
|
6849
|
+
var containerStyles2 = import_react36.css`
|
|
6850
|
+
display: flex;
|
|
6851
|
+
flex-direction: column;
|
|
6852
|
+
gap: var(--spacing-3);
|
|
6853
|
+
padding: var(--spacing-4);
|
|
6854
|
+
border-radius: var(--radius-lg);
|
|
6855
|
+
background-color: var(--surface-success);
|
|
6856
|
+
text-align: center;
|
|
6857
|
+
`;
|
|
6858
|
+
var titleStyles = import_react36.css`
|
|
6859
|
+
color: var(--color-primary-500);
|
|
6860
|
+
`;
|
|
6861
|
+
var descriptionStyles = import_react36.css`
|
|
6862
|
+
color: var(--color-primary-400);
|
|
6863
|
+
`;
|
|
6864
|
+
var buttonWrapperStyles = import_react36.css`
|
|
6865
|
+
display: flex;
|
|
6866
|
+
justify-content: center;
|
|
6867
|
+
margin-top: var(--spacing-2);
|
|
6868
|
+
`;
|
|
6869
|
+
|
|
6870
|
+
// src/CtaCard/CtaCard.tsx
|
|
6839
6871
|
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6872
|
+
var CtaCard = ({
|
|
6873
|
+
title,
|
|
6874
|
+
description,
|
|
6875
|
+
ctaLabel,
|
|
6876
|
+
ctaUrl,
|
|
6877
|
+
onDisplay,
|
|
6878
|
+
onCtaClick,
|
|
6879
|
+
className
|
|
6880
|
+
}) => {
|
|
6881
|
+
(0, import_react37.useEffect)(() => {
|
|
6882
|
+
onDisplay == null ? void 0 : onDisplay();
|
|
6883
|
+
}, [onDisplay]);
|
|
6884
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(Box_default, { css: containerStyles2, className, children: [
|
|
6885
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Text_default, { size: "sm", fontWeight: "bold", css: titleStyles, children: title }),
|
|
6886
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Text_default, { size: "xs", fontWeight: "semibold", css: descriptionStyles, children: description }),
|
|
6887
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Box_default, { css: buttonWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6888
|
+
Button_default,
|
|
6889
|
+
{
|
|
6890
|
+
as: "a",
|
|
6891
|
+
href: ctaUrl,
|
|
6892
|
+
variant: "primary",
|
|
6893
|
+
size: "base",
|
|
6894
|
+
onClick: onCtaClick,
|
|
6895
|
+
children: ctaLabel
|
|
6896
|
+
}
|
|
6897
|
+
) })
|
|
6898
|
+
] });
|
|
6899
|
+
};
|
|
6900
|
+
CtaCard.displayName = "CtaCard";
|
|
6901
|
+
var CtaCard_default = CtaCard;
|
|
6902
|
+
|
|
6903
|
+
// src/FeatureList/components/FeatureListItem.tsx
|
|
6904
|
+
var import_react38 = require("@emotion/react");
|
|
6905
|
+
var import_react_loading_skeleton = __toESM(require("react-loading-skeleton"));
|
|
6906
|
+
var import_jsx_runtime232 = require("@emotion/react/jsx-runtime");
|
|
6840
6907
|
var FeatureListItem = ({
|
|
6841
6908
|
iconVariant,
|
|
6842
6909
|
label,
|
|
@@ -6851,8 +6918,8 @@ var FeatureListItem = ({
|
|
|
6851
6918
|
}) => {
|
|
6852
6919
|
const iconDimensions = IconSizeMap[iconSize];
|
|
6853
6920
|
if (isLoading) {
|
|
6854
|
-
return /* @__PURE__ */ (0,
|
|
6855
|
-
/* @__PURE__ */ (0,
|
|
6921
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: [
|
|
6922
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6856
6923
|
Box_default,
|
|
6857
6924
|
{
|
|
6858
6925
|
display: "flex",
|
|
@@ -6862,7 +6929,7 @@ var FeatureListItem = ({
|
|
|
6862
6929
|
className,
|
|
6863
6930
|
...rest,
|
|
6864
6931
|
children: [
|
|
6865
|
-
/* @__PURE__ */ (0,
|
|
6932
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6866
6933
|
import_react_loading_skeleton.default,
|
|
6867
6934
|
{
|
|
6868
6935
|
circle: true,
|
|
@@ -6871,24 +6938,24 @@ var FeatureListItem = ({
|
|
|
6871
6938
|
borderRadius: 4
|
|
6872
6939
|
}
|
|
6873
6940
|
),
|
|
6874
|
-
/* @__PURE__ */ (0,
|
|
6941
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_loading_skeleton.default, { width: 120, height: 16, borderRadius: 4 })
|
|
6875
6942
|
]
|
|
6876
6943
|
}
|
|
6877
6944
|
),
|
|
6878
|
-
subtitle && /* @__PURE__ */ (0,
|
|
6879
|
-
/* @__PURE__ */ (0,
|
|
6880
|
-
/* @__PURE__ */ (0,
|
|
6945
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
6946
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { minWidth: "var(--spacing-6)", children: "\xA0" }),
|
|
6947
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_loading_skeleton.default, { width: 150, height: 14, borderRadius: 4 })
|
|
6881
6948
|
] })
|
|
6882
6949
|
] });
|
|
6883
6950
|
}
|
|
6884
|
-
return /* @__PURE__ */ (0,
|
|
6885
|
-
/* @__PURE__ */ (0,
|
|
6951
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: isInline ? /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Text_default, { as: "span", children: [
|
|
6952
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Text_default, { as: "span", fontWeight: "bold", children: [
|
|
6886
6953
|
label,
|
|
6887
6954
|
" "
|
|
6888
6955
|
] }),
|
|
6889
6956
|
subtitle
|
|
6890
|
-
] }) }) : /* @__PURE__ */ (0,
|
|
6891
|
-
/* @__PURE__ */ (0,
|
|
6957
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(import_jsx_runtime232.Fragment, { children: [
|
|
6958
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6892
6959
|
Box_default,
|
|
6893
6960
|
{
|
|
6894
6961
|
display: "flex",
|
|
@@ -6897,33 +6964,33 @@ var FeatureListItem = ({
|
|
|
6897
6964
|
className,
|
|
6898
6965
|
...rest,
|
|
6899
6966
|
children: [
|
|
6900
|
-
iconVariant && /* @__PURE__ */ (0,
|
|
6967
|
+
iconVariant && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6901
6968
|
Icon_default,
|
|
6902
6969
|
{
|
|
6903
6970
|
variant: iconVariant,
|
|
6904
6971
|
size: iconSize,
|
|
6905
6972
|
fill: iconColor,
|
|
6906
|
-
css:
|
|
6973
|
+
css: import_react38.css`
|
|
6907
6974
|
flex-shrink: 0;
|
|
6908
6975
|
`
|
|
6909
6976
|
}
|
|
6910
6977
|
),
|
|
6911
|
-
/* @__PURE__ */ (0,
|
|
6978
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { fontWeight: "semibold", size: labelSize, children: label })
|
|
6912
6979
|
]
|
|
6913
6980
|
}
|
|
6914
6981
|
),
|
|
6915
|
-
subtitle && /* @__PURE__ */ (0,
|
|
6916
|
-
/* @__PURE__ */ (0,
|
|
6917
|
-
/* @__PURE__ */ (0,
|
|
6982
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
6983
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { minWidth: "var(--spacing-6)", children: "\xA0" }),
|
|
6984
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { size: "sm", children: subtitle })
|
|
6918
6985
|
] })
|
|
6919
6986
|
] }) });
|
|
6920
6987
|
};
|
|
6921
6988
|
var FeatureListItem_default = FeatureListItem;
|
|
6922
6989
|
|
|
6923
6990
|
// src/FeatureList/FeatureList.tsx
|
|
6924
|
-
var
|
|
6991
|
+
var import_jsx_runtime233 = require("@emotion/react/jsx-runtime");
|
|
6925
6992
|
var FeatureList = ({ heading, items, className }) => {
|
|
6926
|
-
return /* @__PURE__ */ (0,
|
|
6993
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
|
|
6927
6994
|
Box_default,
|
|
6928
6995
|
{
|
|
6929
6996
|
display: "flex",
|
|
@@ -6931,8 +6998,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
6931
6998
|
gap: "var(--spacing-2)",
|
|
6932
6999
|
className,
|
|
6933
7000
|
children: [
|
|
6934
|
-
heading && /* @__PURE__ */ (0,
|
|
6935
|
-
/* @__PURE__ */ (0,
|
|
7001
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Text_default, { fontWeight: "bold", children: heading }),
|
|
7002
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(FeatureListItem_default, { ...item }, `${item.iconVariant}-${index}`)) })
|
|
6936
7003
|
]
|
|
6937
7004
|
}
|
|
6938
7005
|
);
|
|
@@ -6940,8 +7007,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
6940
7007
|
var FeatureList_default = FeatureList;
|
|
6941
7008
|
|
|
6942
7009
|
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
6943
|
-
var
|
|
6944
|
-
var cardContainerStyles =
|
|
7010
|
+
var import_react39 = require("@emotion/react");
|
|
7011
|
+
var cardContainerStyles = import_react39.css`
|
|
6945
7012
|
position: relative;
|
|
6946
7013
|
height: 335px;
|
|
6947
7014
|
|
|
@@ -6949,12 +7016,12 @@ var cardContainerStyles = import_react37.css`
|
|
|
6949
7016
|
height: 480px;
|
|
6950
7017
|
}
|
|
6951
7018
|
`;
|
|
6952
|
-
var cardContentStyles =
|
|
7019
|
+
var cardContentStyles = import_react39.css`
|
|
6953
7020
|
position: relative;
|
|
6954
7021
|
border-radius: var(--spacing-4);
|
|
6955
7022
|
overflow: hidden;
|
|
6956
7023
|
`;
|
|
6957
|
-
var getBackgroundWithGradient = (imageUrl) =>
|
|
7024
|
+
var getBackgroundWithGradient = (imageUrl) => import_react39.css`
|
|
6958
7025
|
background-image: linear-gradient(
|
|
6959
7026
|
180deg,
|
|
6960
7027
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -6968,7 +7035,7 @@ var getBackgroundWithGradient = (imageUrl) => import_react37.css`
|
|
|
6968
7035
|
`;
|
|
6969
7036
|
|
|
6970
7037
|
// src/FieldNoteCard/FieldNoteCard.tsx
|
|
6971
|
-
var
|
|
7038
|
+
var import_jsx_runtime234 = require("@emotion/react/jsx-runtime");
|
|
6972
7039
|
var FieldNoteCard = ({
|
|
6973
7040
|
backgroundImage,
|
|
6974
7041
|
title,
|
|
@@ -6977,14 +7044,14 @@ var FieldNoteCard = ({
|
|
|
6977
7044
|
className,
|
|
6978
7045
|
...rest
|
|
6979
7046
|
}) => {
|
|
6980
|
-
return /* @__PURE__ */ (0,
|
|
7047
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6981
7048
|
Box_default,
|
|
6982
7049
|
{
|
|
6983
7050
|
display: "flex",
|
|
6984
7051
|
css: cardContainerStyles,
|
|
6985
7052
|
className,
|
|
6986
7053
|
...rest,
|
|
6987
|
-
children: /* @__PURE__ */ (0,
|
|
7054
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6988
7055
|
Box_default,
|
|
6989
7056
|
{
|
|
6990
7057
|
display: "flex",
|
|
@@ -6992,9 +7059,9 @@ var FieldNoteCard = ({
|
|
|
6992
7059
|
justifyContent: "flex-end",
|
|
6993
7060
|
p: 6,
|
|
6994
7061
|
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
6995
|
-
children: /* @__PURE__ */ (0,
|
|
6996
|
-
/* @__PURE__ */ (0,
|
|
6997
|
-
/* @__PURE__ */ (0,
|
|
7062
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
7063
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
7064
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
6998
7065
|
] })
|
|
6999
7066
|
}
|
|
7000
7067
|
)
|
|
@@ -7004,14 +7071,14 @@ var FieldNoteCard = ({
|
|
|
7004
7071
|
var FieldNoteCard_default = FieldNoteCard;
|
|
7005
7072
|
|
|
7006
7073
|
// src/Form/FormField.tsx
|
|
7007
|
-
var
|
|
7008
|
-
var
|
|
7009
|
-
var fieldContainerStyles =
|
|
7074
|
+
var import_react40 = require("@emotion/react");
|
|
7075
|
+
var import_jsx_runtime235 = require("@emotion/react/jsx-runtime");
|
|
7076
|
+
var fieldContainerStyles = import_react40.css`
|
|
7010
7077
|
display: flex;
|
|
7011
7078
|
flex-direction: column;
|
|
7012
7079
|
gap: ${space["2"]};
|
|
7013
7080
|
`;
|
|
7014
|
-
var labelStyles2 =
|
|
7081
|
+
var labelStyles2 = import_react40.css`
|
|
7015
7082
|
font-family: ${fonts.base};
|
|
7016
7083
|
font-size: ${fontSizes.sm};
|
|
7017
7084
|
font-weight: ${fontWeights.medium};
|
|
@@ -7019,17 +7086,17 @@ var labelStyles2 = import_react38.css`
|
|
|
7019
7086
|
color: ${colors.gray["900"]};
|
|
7020
7087
|
margin-bottom: ${space["1"]};
|
|
7021
7088
|
`;
|
|
7022
|
-
var requiredIndicatorStyles =
|
|
7089
|
+
var requiredIndicatorStyles = import_react40.css`
|
|
7023
7090
|
color: ${colors.red["500"]};
|
|
7024
7091
|
margin-left: ${space["1"]};
|
|
7025
7092
|
`;
|
|
7026
|
-
var helpTextStyles =
|
|
7093
|
+
var helpTextStyles = import_react40.css`
|
|
7027
7094
|
font-family: ${fonts.base};
|
|
7028
7095
|
font-size: ${fontSizes.sm};
|
|
7029
7096
|
line-height: ${lineHeights.tight};
|
|
7030
7097
|
color: ${colors.gray["600"]};
|
|
7031
7098
|
`;
|
|
7032
|
-
var errorTextStyles =
|
|
7099
|
+
var errorTextStyles = import_react40.css`
|
|
7033
7100
|
font-family: ${fonts.base};
|
|
7034
7101
|
font-size: ${fontSizes.sm};
|
|
7035
7102
|
line-height: ${lineHeights.tight};
|
|
@@ -7038,7 +7105,7 @@ var errorTextStyles = import_react38.css`
|
|
|
7038
7105
|
align-items: center;
|
|
7039
7106
|
gap: ${space["1"]};
|
|
7040
7107
|
`;
|
|
7041
|
-
var successTextStyles =
|
|
7108
|
+
var successTextStyles = import_react40.css`
|
|
7042
7109
|
font-family: ${fonts.base};
|
|
7043
7110
|
font-size: ${fontSizes.sm};
|
|
7044
7111
|
line-height: ${lineHeights.tight};
|
|
@@ -7047,7 +7114,7 @@ var successTextStyles = import_react38.css`
|
|
|
7047
7114
|
align-items: center;
|
|
7048
7115
|
gap: ${space["1"]};
|
|
7049
7116
|
`;
|
|
7050
|
-
var visuallyHiddenStyles =
|
|
7117
|
+
var visuallyHiddenStyles = import_react40.css`
|
|
7051
7118
|
position: absolute;
|
|
7052
7119
|
width: 1px;
|
|
7053
7120
|
height: 1px;
|
|
@@ -7072,21 +7139,21 @@ var FormField = ({
|
|
|
7072
7139
|
const hasError = !!error;
|
|
7073
7140
|
const hasSuccess = !!success && !hasError;
|
|
7074
7141
|
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
7075
|
-
return /* @__PURE__ */ (0,
|
|
7076
|
-
label && /* @__PURE__ */ (0,
|
|
7142
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
7143
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(
|
|
7077
7144
|
"label",
|
|
7078
7145
|
{
|
|
7079
7146
|
htmlFor,
|
|
7080
7147
|
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
7081
7148
|
children: [
|
|
7082
7149
|
label,
|
|
7083
|
-
required && /* @__PURE__ */ (0,
|
|
7150
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
7084
7151
|
]
|
|
7085
7152
|
}
|
|
7086
7153
|
),
|
|
7087
7154
|
children,
|
|
7088
|
-
hasError && /* @__PURE__ */ (0,
|
|
7089
|
-
/* @__PURE__ */ (0,
|
|
7155
|
+
hasError && /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("div", { css: errorTextStyles, role: "alert", children: [
|
|
7156
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7090
7157
|
"path",
|
|
7091
7158
|
{
|
|
7092
7159
|
fillRule: "evenodd",
|
|
@@ -7096,8 +7163,8 @@ var FormField = ({
|
|
|
7096
7163
|
) }),
|
|
7097
7164
|
error
|
|
7098
7165
|
] }),
|
|
7099
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
7100
|
-
/* @__PURE__ */ (0,
|
|
7166
|
+
hasSuccess && /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("div", { css: successTextStyles, children: [
|
|
7167
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7101
7168
|
"path",
|
|
7102
7169
|
{
|
|
7103
7170
|
fillRule: "evenodd",
|
|
@@ -7107,15 +7174,15 @@ var FormField = ({
|
|
|
7107
7174
|
) }),
|
|
7108
7175
|
success
|
|
7109
7176
|
] }),
|
|
7110
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
7177
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
7111
7178
|
] });
|
|
7112
7179
|
};
|
|
7113
7180
|
|
|
7114
7181
|
// src/Form/Input.tsx
|
|
7115
|
-
var
|
|
7116
|
-
var
|
|
7117
|
-
var
|
|
7118
|
-
var inputStyles =
|
|
7182
|
+
var import_react41 = require("@emotion/react");
|
|
7183
|
+
var import_react42 = require("react");
|
|
7184
|
+
var import_jsx_runtime236 = require("@emotion/react/jsx-runtime");
|
|
7185
|
+
var inputStyles = import_react41.css`
|
|
7119
7186
|
position: relative;
|
|
7120
7187
|
width: 100%;
|
|
7121
7188
|
font-family: ${fonts.base};
|
|
@@ -7152,19 +7219,19 @@ var inputStyles = import_react39.css`
|
|
|
7152
7219
|
}
|
|
7153
7220
|
`;
|
|
7154
7221
|
var sizeStyles = {
|
|
7155
|
-
sm:
|
|
7222
|
+
sm: import_react41.css`
|
|
7156
7223
|
padding: ${space["2"]} ${space["3"]};
|
|
7157
7224
|
font-size: ${fontSizes.sm};
|
|
7158
7225
|
line-height: ${lineHeights.tight};
|
|
7159
7226
|
height: ${space["8"]};
|
|
7160
7227
|
`,
|
|
7161
|
-
md:
|
|
7228
|
+
md: import_react41.css`
|
|
7162
7229
|
padding: ${space["3"]} ${space["4"]};
|
|
7163
7230
|
font-size: ${fontSizes.base};
|
|
7164
7231
|
line-height: ${lineHeights.normal};
|
|
7165
7232
|
height: ${space["10"]};
|
|
7166
7233
|
`,
|
|
7167
|
-
lg:
|
|
7234
|
+
lg: import_react41.css`
|
|
7168
7235
|
padding: ${space["4"]} ${space["5"]};
|
|
7169
7236
|
font-size: ${fontSizes.lg};
|
|
7170
7237
|
line-height: ${lineHeights.normal};
|
|
@@ -7172,8 +7239,8 @@ var sizeStyles = {
|
|
|
7172
7239
|
`
|
|
7173
7240
|
};
|
|
7174
7241
|
var variantStyles = {
|
|
7175
|
-
default:
|
|
7176
|
-
error:
|
|
7242
|
+
default: import_react41.css``,
|
|
7243
|
+
error: import_react41.css`
|
|
7177
7244
|
border-color: ${colors.red["500"]};
|
|
7178
7245
|
|
|
7179
7246
|
&:focus {
|
|
@@ -7181,7 +7248,7 @@ var variantStyles = {
|
|
|
7181
7248
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
7182
7249
|
}
|
|
7183
7250
|
`,
|
|
7184
|
-
success:
|
|
7251
|
+
success: import_react41.css`
|
|
7185
7252
|
border-color: ${colors.accent.green};
|
|
7186
7253
|
|
|
7187
7254
|
&:focus {
|
|
@@ -7190,7 +7257,7 @@ var variantStyles = {
|
|
|
7190
7257
|
}
|
|
7191
7258
|
`
|
|
7192
7259
|
};
|
|
7193
|
-
var inputWithIconStyles =
|
|
7260
|
+
var inputWithIconStyles = import_react41.css`
|
|
7194
7261
|
padding-left: ${space["10"]};
|
|
7195
7262
|
|
|
7196
7263
|
&.has-end-icon {
|
|
@@ -7201,7 +7268,7 @@ var inputWithIconStyles = import_react39.css`
|
|
|
7201
7268
|
padding-left: ${space["10"]};
|
|
7202
7269
|
}
|
|
7203
7270
|
`;
|
|
7204
|
-
var iconContainerStyles =
|
|
7271
|
+
var iconContainerStyles = import_react41.css`
|
|
7205
7272
|
position: absolute;
|
|
7206
7273
|
top: 50%;
|
|
7207
7274
|
transform: translateY(-50%);
|
|
@@ -7212,20 +7279,20 @@ var iconContainerStyles = import_react39.css`
|
|
|
7212
7279
|
pointer-events: none;
|
|
7213
7280
|
z-index: 1;
|
|
7214
7281
|
`;
|
|
7215
|
-
var startIconStyles =
|
|
7282
|
+
var startIconStyles = import_react41.css`
|
|
7216
7283
|
${iconContainerStyles}
|
|
7217
7284
|
left: ${space["3"]};
|
|
7218
7285
|
`;
|
|
7219
|
-
var endIconStyles =
|
|
7286
|
+
var endIconStyles = import_react41.css`
|
|
7220
7287
|
${iconContainerStyles}
|
|
7221
7288
|
right: ${space["3"]};
|
|
7222
7289
|
`;
|
|
7223
|
-
var inputWrapperStyles =
|
|
7290
|
+
var inputWrapperStyles = import_react41.css`
|
|
7224
7291
|
position: relative;
|
|
7225
7292
|
display: inline-block;
|
|
7226
7293
|
width: 100%;
|
|
7227
7294
|
`;
|
|
7228
|
-
var Input = (0,
|
|
7295
|
+
var Input = (0, import_react42.forwardRef)(
|
|
7229
7296
|
({
|
|
7230
7297
|
size = "md",
|
|
7231
7298
|
variant = "default",
|
|
@@ -7244,9 +7311,9 @@ var Input = (0, import_react40.forwardRef)(
|
|
|
7244
7311
|
hasEndIcon && "has-end-icon",
|
|
7245
7312
|
className
|
|
7246
7313
|
].filter(Boolean).join(" ");
|
|
7247
|
-
return /* @__PURE__ */ (0,
|
|
7248
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
7249
|
-
/* @__PURE__ */ (0,
|
|
7314
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)("div", { css: inputWrapperStyles, children: [
|
|
7315
|
+
hasStartIcon && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)("div", { css: startIconStyles, children: startIcon }),
|
|
7316
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
|
|
7250
7317
|
"input",
|
|
7251
7318
|
{
|
|
7252
7319
|
ref,
|
|
@@ -7263,17 +7330,17 @@ var Input = (0, import_react40.forwardRef)(
|
|
|
7263
7330
|
...props
|
|
7264
7331
|
}
|
|
7265
7332
|
),
|
|
7266
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
7333
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
7267
7334
|
] });
|
|
7268
7335
|
}
|
|
7269
7336
|
);
|
|
7270
7337
|
Input.displayName = "Input";
|
|
7271
7338
|
|
|
7272
7339
|
// src/Form/Select.tsx
|
|
7273
|
-
var
|
|
7274
|
-
var
|
|
7275
|
-
var
|
|
7276
|
-
var selectStyles =
|
|
7340
|
+
var import_react43 = require("@emotion/react");
|
|
7341
|
+
var import_react44 = require("react");
|
|
7342
|
+
var import_jsx_runtime237 = require("@emotion/react/jsx-runtime");
|
|
7343
|
+
var selectStyles = import_react43.css`
|
|
7277
7344
|
position: relative;
|
|
7278
7345
|
width: 100%;
|
|
7279
7346
|
font-family: ${fonts.base};
|
|
@@ -7312,19 +7379,19 @@ var selectStyles = import_react41.css`
|
|
|
7312
7379
|
}
|
|
7313
7380
|
`;
|
|
7314
7381
|
var sizeStyles2 = {
|
|
7315
|
-
sm:
|
|
7382
|
+
sm: import_react43.css`
|
|
7316
7383
|
padding: ${space["2"]} ${space["3"]};
|
|
7317
7384
|
font-size: ${fontSizes.sm};
|
|
7318
7385
|
line-height: ${lineHeights.tight};
|
|
7319
7386
|
height: ${space["8"]};
|
|
7320
7387
|
`,
|
|
7321
|
-
md:
|
|
7388
|
+
md: import_react43.css`
|
|
7322
7389
|
padding: ${space["3"]} ${space["4"]};
|
|
7323
7390
|
font-size: ${fontSizes.base};
|
|
7324
7391
|
line-height: ${lineHeights.normal};
|
|
7325
7392
|
height: ${space["10"]};
|
|
7326
7393
|
`,
|
|
7327
|
-
lg:
|
|
7394
|
+
lg: import_react43.css`
|
|
7328
7395
|
padding: ${space["4"]} ${space["5"]};
|
|
7329
7396
|
font-size: ${fontSizes.lg};
|
|
7330
7397
|
line-height: ${lineHeights.normal};
|
|
@@ -7332,8 +7399,8 @@ var sizeStyles2 = {
|
|
|
7332
7399
|
`
|
|
7333
7400
|
};
|
|
7334
7401
|
var variantStyles2 = {
|
|
7335
|
-
default:
|
|
7336
|
-
error:
|
|
7402
|
+
default: import_react43.css``,
|
|
7403
|
+
error: import_react43.css`
|
|
7337
7404
|
border-color: ${colors.red["500"]};
|
|
7338
7405
|
|
|
7339
7406
|
&:focus {
|
|
@@ -7341,7 +7408,7 @@ var variantStyles2 = {
|
|
|
7341
7408
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
7342
7409
|
}
|
|
7343
7410
|
`,
|
|
7344
|
-
success:
|
|
7411
|
+
success: import_react43.css`
|
|
7345
7412
|
border-color: ${colors.accent.green};
|
|
7346
7413
|
|
|
7347
7414
|
&:focus {
|
|
@@ -7350,7 +7417,7 @@ var variantStyles2 = {
|
|
|
7350
7417
|
}
|
|
7351
7418
|
`
|
|
7352
7419
|
};
|
|
7353
|
-
var optionStyles =
|
|
7420
|
+
var optionStyles = import_react43.css`
|
|
7354
7421
|
background-color: ${colors.light["100"]};
|
|
7355
7422
|
color: ${colors.gray["900"]};
|
|
7356
7423
|
|
|
@@ -7359,7 +7426,7 @@ var optionStyles = import_react41.css`
|
|
|
7359
7426
|
background-color: ${colors.gray["100"]};
|
|
7360
7427
|
}
|
|
7361
7428
|
`;
|
|
7362
|
-
var Select = (0,
|
|
7429
|
+
var Select = (0, import_react44.forwardRef)(
|
|
7363
7430
|
({
|
|
7364
7431
|
size = "md",
|
|
7365
7432
|
variant = "default",
|
|
@@ -7369,7 +7436,7 @@ var Select = (0, import_react42.forwardRef)(
|
|
|
7369
7436
|
className = "",
|
|
7370
7437
|
...props
|
|
7371
7438
|
}, ref) => {
|
|
7372
|
-
return /* @__PURE__ */ (0,
|
|
7439
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(
|
|
7373
7440
|
"select",
|
|
7374
7441
|
{
|
|
7375
7442
|
ref,
|
|
@@ -7378,8 +7445,8 @@ var Select = (0, import_react42.forwardRef)(
|
|
|
7378
7445
|
className,
|
|
7379
7446
|
...props,
|
|
7380
7447
|
children: [
|
|
7381
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
7382
|
-
options.map((option) => /* @__PURE__ */ (0,
|
|
7448
|
+
placeholderOption && /* @__PURE__ */ (0, import_jsx_runtime237.jsx)("option", { value: "", disabled: true, css: optionStyles, children: placeholderOption }),
|
|
7449
|
+
options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
|
|
7383
7450
|
"option",
|
|
7384
7451
|
{
|
|
7385
7452
|
value: option.value,
|
|
@@ -7397,10 +7464,10 @@ var Select = (0, import_react42.forwardRef)(
|
|
|
7397
7464
|
Select.displayName = "Select";
|
|
7398
7465
|
|
|
7399
7466
|
// src/Grid/Column.tsx
|
|
7400
|
-
var
|
|
7467
|
+
var import_react46 = require("@emotion/react");
|
|
7401
7468
|
|
|
7402
7469
|
// src/Grid/utils.ts
|
|
7403
|
-
var
|
|
7470
|
+
var import_react45 = require("@emotion/react");
|
|
7404
7471
|
var LayoutTokens = {
|
|
7405
7472
|
containers: {
|
|
7406
7473
|
sm: screens.sm,
|
|
@@ -7440,11 +7507,11 @@ var getResponsiveValue = (value) => {
|
|
|
7440
7507
|
var generateGridColumns = (columns) => {
|
|
7441
7508
|
const baseColumns = getResponsiveValue(columns);
|
|
7442
7509
|
if (typeof columns === "number") {
|
|
7443
|
-
return
|
|
7510
|
+
return import_react45.css`
|
|
7444
7511
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
7445
7512
|
`;
|
|
7446
7513
|
}
|
|
7447
|
-
return
|
|
7514
|
+
return import_react45.css`
|
|
7448
7515
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
7449
7516
|
|
|
7450
7517
|
${media.sm} {
|
|
@@ -7476,11 +7543,11 @@ var generateGridColumns = (columns) => {
|
|
|
7476
7543
|
var generateGapStyles = (gap2) => {
|
|
7477
7544
|
const baseGap = getResponsiveValue(gap2);
|
|
7478
7545
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
7479
|
-
return
|
|
7546
|
+
return import_react45.css`
|
|
7480
7547
|
gap: ${space[gap2]};
|
|
7481
7548
|
`;
|
|
7482
7549
|
}
|
|
7483
|
-
return
|
|
7550
|
+
return import_react45.css`
|
|
7484
7551
|
gap: ${space[baseGap]};
|
|
7485
7552
|
|
|
7486
7553
|
${media.sm} {
|
|
@@ -7503,11 +7570,11 @@ var generateGapStyles = (gap2) => {
|
|
|
7503
7570
|
var generateRowGapStyles = (rowGap) => {
|
|
7504
7571
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
7505
7572
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
7506
|
-
return
|
|
7573
|
+
return import_react45.css`
|
|
7507
7574
|
row-gap: ${space[rowGap]};
|
|
7508
7575
|
`;
|
|
7509
7576
|
}
|
|
7510
|
-
return
|
|
7577
|
+
return import_react45.css`
|
|
7511
7578
|
row-gap: ${space[baseRowGap]};
|
|
7512
7579
|
|
|
7513
7580
|
${media.sm} {
|
|
@@ -7530,11 +7597,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
7530
7597
|
var generateColumnGapStyles = (columnGap) => {
|
|
7531
7598
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
7532
7599
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
7533
|
-
return
|
|
7600
|
+
return import_react45.css`
|
|
7534
7601
|
column-gap: ${space[columnGap]};
|
|
7535
7602
|
`;
|
|
7536
7603
|
}
|
|
7537
|
-
return
|
|
7604
|
+
return import_react45.css`
|
|
7538
7605
|
column-gap: ${space[baseColumnGap]};
|
|
7539
7606
|
|
|
7540
7607
|
${media.sm} {
|
|
@@ -7557,11 +7624,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
7557
7624
|
var generateColumnSpan = (span) => {
|
|
7558
7625
|
const baseSpan = getResponsiveValue(span);
|
|
7559
7626
|
if (typeof span === "string" || typeof span === "number") {
|
|
7560
|
-
return
|
|
7627
|
+
return import_react45.css`
|
|
7561
7628
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
7562
7629
|
`;
|
|
7563
7630
|
}
|
|
7564
|
-
return
|
|
7631
|
+
return import_react45.css`
|
|
7565
7632
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
7566
7633
|
|
|
7567
7634
|
${media.sm} {
|
|
@@ -7584,11 +7651,11 @@ var generateColumnSpan = (span) => {
|
|
|
7584
7651
|
var generateAlignItems = (alignItems) => {
|
|
7585
7652
|
const baseAlign = getResponsiveValue(alignItems);
|
|
7586
7653
|
if (typeof alignItems === "string") {
|
|
7587
|
-
return
|
|
7654
|
+
return import_react45.css`
|
|
7588
7655
|
align-items: ${alignItems};
|
|
7589
7656
|
`;
|
|
7590
7657
|
}
|
|
7591
|
-
return
|
|
7658
|
+
return import_react45.css`
|
|
7592
7659
|
align-items: ${baseAlign};
|
|
7593
7660
|
|
|
7594
7661
|
${media.sm} {
|
|
@@ -7611,11 +7678,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
7611
7678
|
var generateJustifyItems = (justifyItems) => {
|
|
7612
7679
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
7613
7680
|
if (typeof justifyItems === "string") {
|
|
7614
|
-
return
|
|
7681
|
+
return import_react45.css`
|
|
7615
7682
|
justify-items: ${justifyItems};
|
|
7616
7683
|
`;
|
|
7617
7684
|
}
|
|
7618
|
-
return
|
|
7685
|
+
return import_react45.css`
|
|
7619
7686
|
justify-items: ${baseJustify};
|
|
7620
7687
|
|
|
7621
7688
|
${media.sm} {
|
|
@@ -7637,7 +7704,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
7637
7704
|
};
|
|
7638
7705
|
|
|
7639
7706
|
// src/Grid/Column.tsx
|
|
7640
|
-
var
|
|
7707
|
+
var import_jsx_runtime238 = require("@emotion/react/jsx-runtime");
|
|
7641
7708
|
var Column = ({
|
|
7642
7709
|
span,
|
|
7643
7710
|
start,
|
|
@@ -7650,30 +7717,30 @@ var Column = ({
|
|
|
7650
7717
|
}) => {
|
|
7651
7718
|
const columnStyles = [
|
|
7652
7719
|
span && generateColumnSpan(span),
|
|
7653
|
-
start &&
|
|
7720
|
+
start && import_react46.css`
|
|
7654
7721
|
grid-column-start: ${start};
|
|
7655
7722
|
`,
|
|
7656
|
-
end &&
|
|
7723
|
+
end && import_react46.css`
|
|
7657
7724
|
grid-column-end: ${end};
|
|
7658
7725
|
`,
|
|
7659
|
-
row &&
|
|
7726
|
+
row && import_react46.css`
|
|
7660
7727
|
grid-row: ${row};
|
|
7661
7728
|
`,
|
|
7662
|
-
rowSpan &&
|
|
7729
|
+
rowSpan && import_react46.css`
|
|
7663
7730
|
grid-row: span ${rowSpan};
|
|
7664
7731
|
`,
|
|
7665
|
-
area &&
|
|
7732
|
+
area && import_react46.css`
|
|
7666
7733
|
grid-area: ${area};
|
|
7667
7734
|
`
|
|
7668
7735
|
].filter(Boolean);
|
|
7669
|
-
return /* @__PURE__ */ (0,
|
|
7736
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
7670
7737
|
};
|
|
7671
7738
|
var Column_default = Column;
|
|
7672
7739
|
|
|
7673
7740
|
// src/Grid/Grid.tsx
|
|
7674
|
-
var
|
|
7675
|
-
var
|
|
7676
|
-
var baseGridStyles =
|
|
7741
|
+
var import_react47 = require("@emotion/react");
|
|
7742
|
+
var import_jsx_runtime239 = require("@emotion/react/jsx-runtime");
|
|
7743
|
+
var baseGridStyles = import_react47.css`
|
|
7677
7744
|
display: grid;
|
|
7678
7745
|
`;
|
|
7679
7746
|
var Grid = ({
|
|
@@ -7698,27 +7765,27 @@ var Grid = ({
|
|
|
7698
7765
|
columnGap && generateColumnGapStyles(columnGap),
|
|
7699
7766
|
alignItems && generateAlignItems(alignItems),
|
|
7700
7767
|
justifyItems && generateJustifyItems(justifyItems),
|
|
7701
|
-
autoRows &&
|
|
7768
|
+
autoRows && import_react47.css`
|
|
7702
7769
|
grid-auto-rows: ${autoRows};
|
|
7703
7770
|
`,
|
|
7704
|
-
autoColumns &&
|
|
7771
|
+
autoColumns && import_react47.css`
|
|
7705
7772
|
grid-auto-columns: ${autoColumns};
|
|
7706
7773
|
`,
|
|
7707
|
-
templateAreas &&
|
|
7774
|
+
templateAreas && import_react47.css`
|
|
7708
7775
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
7709
7776
|
`,
|
|
7710
|
-
justifyContent &&
|
|
7777
|
+
justifyContent && import_react47.css`
|
|
7711
7778
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
7712
7779
|
`
|
|
7713
7780
|
].filter(Boolean);
|
|
7714
|
-
return /* @__PURE__ */ (0,
|
|
7781
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
7715
7782
|
};
|
|
7716
7783
|
var Grid_default = Grid;
|
|
7717
7784
|
|
|
7718
7785
|
// src/Grid/GridContainer.tsx
|
|
7719
|
-
var
|
|
7720
|
-
var
|
|
7721
|
-
var baseContainerStyles =
|
|
7786
|
+
var import_react48 = require("@emotion/react");
|
|
7787
|
+
var import_jsx_runtime240 = require("@emotion/react/jsx-runtime");
|
|
7788
|
+
var baseContainerStyles = import_react48.css`
|
|
7722
7789
|
width: 100%;
|
|
7723
7790
|
margin: 0 auto;
|
|
7724
7791
|
padding-left: 1rem;
|
|
@@ -7726,14 +7793,14 @@ var baseContainerStyles = import_react46.css`
|
|
|
7726
7793
|
`;
|
|
7727
7794
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
7728
7795
|
if (maxWidth === "full") {
|
|
7729
|
-
return
|
|
7796
|
+
return import_react48.css`
|
|
7730
7797
|
max-width: 100%;
|
|
7731
7798
|
padding-left: 0;
|
|
7732
7799
|
padding-right: 0;
|
|
7733
7800
|
`;
|
|
7734
7801
|
}
|
|
7735
7802
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
7736
|
-
return
|
|
7803
|
+
return import_react48.css`
|
|
7737
7804
|
max-width: ${width2};
|
|
7738
7805
|
|
|
7739
7806
|
${media.sm} {
|
|
@@ -7758,17 +7825,17 @@ var GridContainer = ({
|
|
|
7758
7825
|
className,
|
|
7759
7826
|
...props
|
|
7760
7827
|
}) => {
|
|
7761
|
-
const
|
|
7828
|
+
const containerStyles6 = [
|
|
7762
7829
|
baseContainerStyles,
|
|
7763
7830
|
generateMaxWidthStyles(maxWidth)
|
|
7764
7831
|
];
|
|
7765
|
-
return /* @__PURE__ */ (0,
|
|
7832
|
+
return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Box_default, { css: containerStyles6, className, ...props, children });
|
|
7766
7833
|
};
|
|
7767
7834
|
var GridContainer_default = GridContainer;
|
|
7768
7835
|
|
|
7769
7836
|
// src/HuntCard/HuntCard.styles.ts
|
|
7770
|
-
var
|
|
7771
|
-
var cardContainerStyles2 =
|
|
7837
|
+
var import_react49 = require("@emotion/react");
|
|
7838
|
+
var cardContainerStyles2 = import_react49.css`
|
|
7772
7839
|
position: relative;
|
|
7773
7840
|
height: 335px;
|
|
7774
7841
|
|
|
@@ -7776,12 +7843,12 @@ var cardContainerStyles2 = import_react47.css`
|
|
|
7776
7843
|
height: 480px;
|
|
7777
7844
|
}
|
|
7778
7845
|
`;
|
|
7779
|
-
var cardContentStyles2 =
|
|
7846
|
+
var cardContentStyles2 = import_react49.css`
|
|
7780
7847
|
position: relative;
|
|
7781
7848
|
border-radius: var(--spacing-4);
|
|
7782
7849
|
overflow: hidden;
|
|
7783
7850
|
`;
|
|
7784
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
7851
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react49.css`
|
|
7785
7852
|
background-image: linear-gradient(
|
|
7786
7853
|
180deg,
|
|
7787
7854
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -7795,7 +7862,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react47.css`
|
|
|
7795
7862
|
`;
|
|
7796
7863
|
|
|
7797
7864
|
// src/HuntCard/HuntCard.tsx
|
|
7798
|
-
var
|
|
7865
|
+
var import_jsx_runtime241 = require("@emotion/react/jsx-runtime");
|
|
7799
7866
|
var HuntCard = ({
|
|
7800
7867
|
backgroundImage,
|
|
7801
7868
|
title,
|
|
@@ -7804,14 +7871,14 @@ var HuntCard = ({
|
|
|
7804
7871
|
className,
|
|
7805
7872
|
...rest
|
|
7806
7873
|
}) => {
|
|
7807
|
-
return /* @__PURE__ */ (0,
|
|
7874
|
+
return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
7808
7875
|
Box_default,
|
|
7809
7876
|
{
|
|
7810
7877
|
display: "flex",
|
|
7811
7878
|
css: cardContainerStyles2,
|
|
7812
7879
|
className,
|
|
7813
7880
|
...rest,
|
|
7814
|
-
children: /* @__PURE__ */ (0,
|
|
7881
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
7815
7882
|
Box_default,
|
|
7816
7883
|
{
|
|
7817
7884
|
display: "flex",
|
|
@@ -7819,9 +7886,9 @@ var HuntCard = ({
|
|
|
7819
7886
|
justifyContent: "flex-end",
|
|
7820
7887
|
p: 6,
|
|
7821
7888
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
7822
|
-
children: /* @__PURE__ */ (0,
|
|
7823
|
-
/* @__PURE__ */ (0,
|
|
7824
|
-
/* @__PURE__ */ (0,
|
|
7889
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
7890
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
7891
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
7825
7892
|
] })
|
|
7826
7893
|
}
|
|
7827
7894
|
)
|
|
@@ -7831,15 +7898,15 @@ var HuntCard = ({
|
|
|
7831
7898
|
var HuntCard_default = HuntCard;
|
|
7832
7899
|
|
|
7833
7900
|
// src/ImageGalleryModal/ImageGalleryModal.tsx
|
|
7834
|
-
var
|
|
7901
|
+
var import_react53 = require("react");
|
|
7835
7902
|
|
|
7836
7903
|
// src/Modal/Modal.tsx
|
|
7837
|
-
var
|
|
7904
|
+
var import_react51 = require("react");
|
|
7838
7905
|
var import_react_dom3 = __toESM(require("react-dom"));
|
|
7839
7906
|
|
|
7840
7907
|
// src/Modal/Modal.styles.ts
|
|
7841
|
-
var
|
|
7842
|
-
var fadeIn =
|
|
7908
|
+
var import_react50 = require("@emotion/react");
|
|
7909
|
+
var fadeIn = import_react50.keyframes`
|
|
7843
7910
|
from {
|
|
7844
7911
|
opacity: 0;
|
|
7845
7912
|
}
|
|
@@ -7847,7 +7914,7 @@ var fadeIn = import_react48.keyframes`
|
|
|
7847
7914
|
opacity: 1;
|
|
7848
7915
|
}
|
|
7849
7916
|
`;
|
|
7850
|
-
var fadeInScale =
|
|
7917
|
+
var fadeInScale = import_react50.keyframes`
|
|
7851
7918
|
from {
|
|
7852
7919
|
opacity: 0;
|
|
7853
7920
|
transform: scale(0.95);
|
|
@@ -7857,7 +7924,7 @@ var fadeInScale = import_react48.keyframes`
|
|
|
7857
7924
|
transform: scale(1);
|
|
7858
7925
|
}
|
|
7859
7926
|
`;
|
|
7860
|
-
var scrollLayerStyles =
|
|
7927
|
+
var scrollLayerStyles = import_react50.css`
|
|
7861
7928
|
background-color: rgba(0, 0, 0, 0.6);
|
|
7862
7929
|
backdrop-filter: blur(4px);
|
|
7863
7930
|
animation: ${fadeIn} 0.15s ease-out forwards;
|
|
@@ -7866,7 +7933,7 @@ var scrollLayerStyles = import_react48.css`
|
|
|
7866
7933
|
animation: none;
|
|
7867
7934
|
}
|
|
7868
7935
|
`;
|
|
7869
|
-
var
|
|
7936
|
+
var containerStyles3 = import_react50.css`
|
|
7870
7937
|
background-color: var(--surface-primary, #ffffff);
|
|
7871
7938
|
border-radius: var(--radius-lg, 12px);
|
|
7872
7939
|
max-height: calc(100dvh - var(--spacing-8));
|
|
@@ -7878,17 +7945,17 @@ var containerStyles2 = import_react48.css`
|
|
|
7878
7945
|
}
|
|
7879
7946
|
`;
|
|
7880
7947
|
var sizeStyles3 = {
|
|
7881
|
-
sm:
|
|
7948
|
+
sm: import_react50.css`
|
|
7882
7949
|
width: 100%;
|
|
7883
7950
|
max-width: 24rem; /* 384px */
|
|
7884
7951
|
padding: var(--spacing-5);
|
|
7885
7952
|
`,
|
|
7886
|
-
md:
|
|
7953
|
+
md: import_react50.css`
|
|
7887
7954
|
width: 100%;
|
|
7888
7955
|
max-width: 32rem; /* 512px */
|
|
7889
7956
|
padding: var(--spacing-6);
|
|
7890
7957
|
`,
|
|
7891
|
-
lg:
|
|
7958
|
+
lg: import_react50.css`
|
|
7892
7959
|
width: 100%;
|
|
7893
7960
|
max-width: 48rem; /* 768px */
|
|
7894
7961
|
padding: var(--spacing-6);
|
|
@@ -7897,7 +7964,7 @@ var sizeStyles3 = {
|
|
|
7897
7964
|
padding: var(--spacing-8);
|
|
7898
7965
|
}
|
|
7899
7966
|
`,
|
|
7900
|
-
xl:
|
|
7967
|
+
xl: import_react50.css`
|
|
7901
7968
|
width: 100%;
|
|
7902
7969
|
max-width: 64rem; /* 1024px */
|
|
7903
7970
|
padding: var(--spacing-6);
|
|
@@ -7906,7 +7973,7 @@ var sizeStyles3 = {
|
|
|
7906
7973
|
padding: var(--spacing-8);
|
|
7907
7974
|
}
|
|
7908
7975
|
`,
|
|
7909
|
-
full:
|
|
7976
|
+
full: import_react50.css`
|
|
7910
7977
|
width: calc(100vw - var(--spacing-8));
|
|
7911
7978
|
height: calc(100dvh - var(--spacing-8));
|
|
7912
7979
|
max-width: none;
|
|
@@ -7915,13 +7982,13 @@ var sizeStyles3 = {
|
|
|
7915
7982
|
border-radius: var(--radius-md, 8px);
|
|
7916
7983
|
`
|
|
7917
7984
|
};
|
|
7918
|
-
var closeButtonStyles =
|
|
7985
|
+
var closeButtonStyles = import_react50.css`
|
|
7919
7986
|
position: absolute;
|
|
7920
7987
|
top: var(--spacing-4);
|
|
7921
7988
|
right: var(--spacing-4);
|
|
7922
7989
|
z-index: 1;
|
|
7923
7990
|
`;
|
|
7924
|
-
var closeButtonFullStyles =
|
|
7991
|
+
var closeButtonFullStyles = import_react50.css`
|
|
7925
7992
|
top: var(--spacing-3);
|
|
7926
7993
|
right: var(--spacing-3);
|
|
7927
7994
|
background-color: rgba(255, 255, 255, 0.9);
|
|
@@ -7934,7 +8001,7 @@ var closeButtonFullStyles = import_react48.css`
|
|
|
7934
8001
|
`;
|
|
7935
8002
|
|
|
7936
8003
|
// src/Modal/Modal.tsx
|
|
7937
|
-
var
|
|
8004
|
+
var import_jsx_runtime242 = require("@emotion/react/jsx-runtime");
|
|
7938
8005
|
var Modal = ({
|
|
7939
8006
|
id,
|
|
7940
8007
|
isOpen,
|
|
@@ -7953,10 +8020,10 @@ var Modal = ({
|
|
|
7953
8020
|
ariaLabel,
|
|
7954
8021
|
ariaDescribedBy
|
|
7955
8022
|
}) => {
|
|
7956
|
-
const containerRef = (0,
|
|
7957
|
-
const previousScrollY = (0,
|
|
7958
|
-
const previousActiveElement = (0,
|
|
7959
|
-
const handleKeyDown = (0,
|
|
8023
|
+
const containerRef = (0, import_react51.useRef)(null);
|
|
8024
|
+
const previousScrollY = (0, import_react51.useRef)(0);
|
|
8025
|
+
const previousActiveElement = (0, import_react51.useRef)(null);
|
|
8026
|
+
const handleKeyDown = (0, import_react51.useCallback)(
|
|
7960
8027
|
(event) => {
|
|
7961
8028
|
if (closeOnEscape && event.key === "Escape" && onClose) {
|
|
7962
8029
|
onClose(event);
|
|
@@ -7964,7 +8031,7 @@ var Modal = ({
|
|
|
7964
8031
|
},
|
|
7965
8032
|
[closeOnEscape, onClose]
|
|
7966
8033
|
);
|
|
7967
|
-
(0,
|
|
8034
|
+
(0, import_react51.useEffect)(() => {
|
|
7968
8035
|
if (isOpen) {
|
|
7969
8036
|
previousScrollY.current = window.scrollY;
|
|
7970
8037
|
previousActiveElement.current = document.activeElement;
|
|
@@ -7994,7 +8061,7 @@ var Modal = ({
|
|
|
7994
8061
|
document.body.style.top = "";
|
|
7995
8062
|
};
|
|
7996
8063
|
}, [isOpen, handleKeyDown]);
|
|
7997
|
-
const handleClose = (0,
|
|
8064
|
+
const handleClose = (0, import_react51.useCallback)(
|
|
7998
8065
|
(event) => {
|
|
7999
8066
|
if (onClose) {
|
|
8000
8067
|
onClose(event);
|
|
@@ -8002,7 +8069,7 @@ var Modal = ({
|
|
|
8002
8069
|
},
|
|
8003
8070
|
[onClose]
|
|
8004
8071
|
);
|
|
8005
|
-
const handleBackdropClick = (0,
|
|
8072
|
+
const handleBackdropClick = (0, import_react51.useCallback)(
|
|
8006
8073
|
(event) => {
|
|
8007
8074
|
if (!closeOnOutsideClick || !containerRef.current || containerRef.current.contains(event.target)) {
|
|
8008
8075
|
return;
|
|
@@ -8017,7 +8084,7 @@ var Modal = ({
|
|
|
8017
8084
|
if (typeof document === "undefined") {
|
|
8018
8085
|
return null;
|
|
8019
8086
|
}
|
|
8020
|
-
const closeButton = showCloseButton && /* @__PURE__ */ (0,
|
|
8087
|
+
const closeButton = showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8021
8088
|
Button_default,
|
|
8022
8089
|
{
|
|
8023
8090
|
onClick: handleClose,
|
|
@@ -8030,7 +8097,7 @@ var Modal = ({
|
|
|
8030
8097
|
"aria-label": "Close modal",
|
|
8031
8098
|
variant: "text",
|
|
8032
8099
|
size: "xs",
|
|
8033
|
-
children: /* @__PURE__ */ (0,
|
|
8100
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
|
|
8034
8101
|
Box_default,
|
|
8035
8102
|
{
|
|
8036
8103
|
as: "span",
|
|
@@ -8038,15 +8105,15 @@ var Modal = ({
|
|
|
8038
8105
|
alignItems: "center",
|
|
8039
8106
|
gap: "var(--spacing-2)",
|
|
8040
8107
|
children: [
|
|
8041
|
-
/* @__PURE__ */ (0,
|
|
8042
|
-
/* @__PURE__ */ (0,
|
|
8108
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Icon_default, { variant: closeButtonIcon, size: "medium" }),
|
|
8109
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)("span", { children: "Close" })
|
|
8043
8110
|
]
|
|
8044
8111
|
}
|
|
8045
8112
|
)
|
|
8046
8113
|
}
|
|
8047
8114
|
);
|
|
8048
8115
|
return import_react_dom3.default.createPortal(
|
|
8049
|
-
/* @__PURE__ */ (0,
|
|
8116
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8050
8117
|
Box_default,
|
|
8051
8118
|
{
|
|
8052
8119
|
display: "flex",
|
|
@@ -8061,7 +8128,7 @@ var Modal = ({
|
|
|
8061
8128
|
className,
|
|
8062
8129
|
role: "presentation",
|
|
8063
8130
|
"data-testid": `modal-${id}`,
|
|
8064
|
-
children: /* @__PURE__ */ (0,
|
|
8131
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8065
8132
|
Box_default,
|
|
8066
8133
|
{
|
|
8067
8134
|
display: "flex",
|
|
@@ -8075,7 +8142,7 @@ var Modal = ({
|
|
|
8075
8142
|
onKeyDown: (e) => e.key === "Escape" && handleClose(e),
|
|
8076
8143
|
role: "presentation",
|
|
8077
8144
|
"data-testid": `modal-backdrop-${id}`,
|
|
8078
|
-
children: /* @__PURE__ */ (0,
|
|
8145
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
|
|
8079
8146
|
Box_default,
|
|
8080
8147
|
{
|
|
8081
8148
|
ref: containerRef,
|
|
@@ -8084,7 +8151,7 @@ var Modal = ({
|
|
|
8084
8151
|
position: "relative",
|
|
8085
8152
|
overflow: "hidden",
|
|
8086
8153
|
css: [
|
|
8087
|
-
|
|
8154
|
+
containerStyles3,
|
|
8088
8155
|
sizeStyles3[size],
|
|
8089
8156
|
customContainerStyles
|
|
8090
8157
|
],
|
|
@@ -8095,7 +8162,7 @@ var Modal = ({
|
|
|
8095
8162
|
tabIndex: -1,
|
|
8096
8163
|
children: [
|
|
8097
8164
|
closeButton,
|
|
8098
|
-
/* @__PURE__ */ (0,
|
|
8165
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Box_default, { flex: "1", overflow: "auto", css: customContentStyles, children })
|
|
8099
8166
|
]
|
|
8100
8167
|
}
|
|
8101
8168
|
)
|
|
@@ -8110,11 +8177,11 @@ Modal.displayName = "Modal";
|
|
|
8110
8177
|
var Modal_default = Modal;
|
|
8111
8178
|
|
|
8112
8179
|
// src/ImageGalleryModal/ImageGalleryModal.styles.ts
|
|
8113
|
-
var
|
|
8114
|
-
var galleryBackgroundStyles =
|
|
8180
|
+
var import_react52 = require("@emotion/react");
|
|
8181
|
+
var galleryBackgroundStyles = import_react52.css`
|
|
8115
8182
|
background-color: var(--color-base-black, #000000);
|
|
8116
8183
|
`;
|
|
8117
|
-
var imageStyles2 =
|
|
8184
|
+
var imageStyles2 = import_react52.css`
|
|
8118
8185
|
max-width: 100%;
|
|
8119
8186
|
max-height: 100%;
|
|
8120
8187
|
width: auto;
|
|
@@ -8126,14 +8193,14 @@ var imageStyles2 = import_react50.css`
|
|
|
8126
8193
|
max-height: calc(100vh - var(--spacing-32));
|
|
8127
8194
|
}
|
|
8128
8195
|
`;
|
|
8129
|
-
var counterStyles =
|
|
8196
|
+
var counterStyles = import_react52.css`
|
|
8130
8197
|
transform: translateX(-50%);
|
|
8131
8198
|
color: var(--color-base-white, #ffffff);
|
|
8132
8199
|
background-color: rgba(0, 0, 0, 0.5);
|
|
8133
8200
|
padding: var(--spacing-2) var(--spacing-4);
|
|
8134
8201
|
border-radius: var(--radius-full, 9999px);
|
|
8135
8202
|
`;
|
|
8136
|
-
var captionStyles =
|
|
8203
|
+
var captionStyles = import_react52.css`
|
|
8137
8204
|
transform: translateX(-50%);
|
|
8138
8205
|
color: var(--color-base-white, #ffffff);
|
|
8139
8206
|
text-align: center;
|
|
@@ -8142,7 +8209,7 @@ var captionStyles = import_react50.css`
|
|
|
8142
8209
|
border-radius: var(--radius-md, 8px);
|
|
8143
8210
|
max-width: 80%;
|
|
8144
8211
|
`;
|
|
8145
|
-
var navigationButtonStyles =
|
|
8212
|
+
var navigationButtonStyles = import_react52.css`
|
|
8146
8213
|
position: absolute;
|
|
8147
8214
|
top: 50%;
|
|
8148
8215
|
transform: translateY(-50%);
|
|
@@ -8173,18 +8240,18 @@ var navigationButtonStyles = import_react50.css`
|
|
|
8173
8240
|
outline-offset: 2px;
|
|
8174
8241
|
}
|
|
8175
8242
|
`;
|
|
8176
|
-
var prevButtonStyles =
|
|
8243
|
+
var prevButtonStyles = import_react52.css`
|
|
8177
8244
|
${navigationButtonStyles}
|
|
8178
8245
|
left: var(--spacing-4);
|
|
8179
8246
|
`;
|
|
8180
|
-
var nextButtonStyles =
|
|
8247
|
+
var nextButtonStyles = import_react52.css`
|
|
8181
8248
|
${navigationButtonStyles}
|
|
8182
8249
|
right: var(--spacing-4);
|
|
8183
8250
|
`;
|
|
8184
|
-
var dotsContainerPositionStyles =
|
|
8251
|
+
var dotsContainerPositionStyles = import_react52.css`
|
|
8185
8252
|
transform: translateX(-50%);
|
|
8186
8253
|
`;
|
|
8187
|
-
var dotStyles =
|
|
8254
|
+
var dotStyles = import_react52.css`
|
|
8188
8255
|
width: var(--spacing-2);
|
|
8189
8256
|
height: var(--spacing-2);
|
|
8190
8257
|
border-radius: var(--radius-round, 50%);
|
|
@@ -8199,11 +8266,11 @@ var dotStyles = import_react50.css`
|
|
|
8199
8266
|
transform: scale(1.2);
|
|
8200
8267
|
}
|
|
8201
8268
|
`;
|
|
8202
|
-
var dotActiveStyles =
|
|
8269
|
+
var dotActiveStyles = import_react52.css`
|
|
8203
8270
|
background-color: var(--color-base-white, #ffffff);
|
|
8204
8271
|
transform: scale(1.2);
|
|
8205
8272
|
`;
|
|
8206
|
-
var closeButtonOverrideStyles =
|
|
8273
|
+
var closeButtonOverrideStyles = import_react52.css`
|
|
8207
8274
|
top: var(--spacing-4);
|
|
8208
8275
|
right: var(--spacing-4);
|
|
8209
8276
|
z-index: 20;
|
|
@@ -8215,23 +8282,23 @@ var closeButtonOverrideStyles = import_react50.css`
|
|
|
8215
8282
|
background-color: var(--color-base-white, #ffffff);
|
|
8216
8283
|
}
|
|
8217
8284
|
`;
|
|
8218
|
-
var scrollLayerOverrideStyles =
|
|
8285
|
+
var scrollLayerOverrideStyles = import_react52.css`
|
|
8219
8286
|
padding: 0;
|
|
8220
8287
|
background-color: rgba(0, 0, 0, 0.95);
|
|
8221
8288
|
`;
|
|
8222
|
-
var containerOverrideStyles =
|
|
8289
|
+
var containerOverrideStyles = import_react52.css`
|
|
8223
8290
|
background-color: transparent;
|
|
8224
8291
|
box-shadow: none;
|
|
8225
8292
|
border-radius: 0;
|
|
8226
8293
|
max-height: 100dvh;
|
|
8227
8294
|
`;
|
|
8228
|
-
var contentOverrideStyles =
|
|
8295
|
+
var contentOverrideStyles = import_react52.css`
|
|
8229
8296
|
height: 100%;
|
|
8230
8297
|
padding: 0;
|
|
8231
8298
|
`;
|
|
8232
8299
|
|
|
8233
8300
|
// src/ImageGalleryModal/ImageGalleryModal.tsx
|
|
8234
|
-
var
|
|
8301
|
+
var import_jsx_runtime243 = require("@emotion/react/jsx-runtime");
|
|
8235
8302
|
var ImageGalleryModal = ({
|
|
8236
8303
|
id,
|
|
8237
8304
|
isOpen,
|
|
@@ -8244,30 +8311,30 @@ var ImageGalleryModal = ({
|
|
|
8244
8311
|
className,
|
|
8245
8312
|
ariaLabel = "Image gallery"
|
|
8246
8313
|
}) => {
|
|
8247
|
-
const [currentIndex, setCurrentIndex] = (0,
|
|
8248
|
-
(0,
|
|
8314
|
+
const [currentIndex, setCurrentIndex] = (0, import_react53.useState)(initialIndex);
|
|
8315
|
+
(0, import_react53.useEffect)(() => {
|
|
8249
8316
|
if (isOpen) {
|
|
8250
8317
|
setCurrentIndex(initialIndex);
|
|
8251
8318
|
}
|
|
8252
8319
|
}, [isOpen, initialIndex]);
|
|
8253
|
-
const handlePrev = (0,
|
|
8320
|
+
const handlePrev = (0, import_react53.useCallback)(
|
|
8254
8321
|
(e) => {
|
|
8255
8322
|
e == null ? void 0 : e.stopPropagation();
|
|
8256
8323
|
setCurrentIndex((prev) => prev > 0 ? prev - 1 : images.length - 1);
|
|
8257
8324
|
},
|
|
8258
8325
|
[images.length]
|
|
8259
8326
|
);
|
|
8260
|
-
const handleNext = (0,
|
|
8327
|
+
const handleNext = (0, import_react53.useCallback)(
|
|
8261
8328
|
(e) => {
|
|
8262
8329
|
e == null ? void 0 : e.stopPropagation();
|
|
8263
8330
|
setCurrentIndex((prev) => prev < images.length - 1 ? prev + 1 : 0);
|
|
8264
8331
|
},
|
|
8265
8332
|
[images.length]
|
|
8266
8333
|
);
|
|
8267
|
-
const handleGoTo = (0,
|
|
8334
|
+
const handleGoTo = (0, import_react53.useCallback)((index) => {
|
|
8268
8335
|
setCurrentIndex(index);
|
|
8269
8336
|
}, []);
|
|
8270
|
-
(0,
|
|
8337
|
+
(0, import_react53.useEffect)(() => {
|
|
8271
8338
|
if (!isOpen)
|
|
8272
8339
|
return;
|
|
8273
8340
|
const handleKeyDown = (e) => {
|
|
@@ -8284,7 +8351,7 @@ var ImageGalleryModal = ({
|
|
|
8284
8351
|
}, [isOpen, handlePrev, handleNext]);
|
|
8285
8352
|
const currentImage = images[currentIndex];
|
|
8286
8353
|
const hasMultipleImages = images.length > 1;
|
|
8287
|
-
return /* @__PURE__ */ (0,
|
|
8354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8288
8355
|
Modal_default,
|
|
8289
8356
|
{
|
|
8290
8357
|
id: `image-gallery-${id}`,
|
|
@@ -8300,7 +8367,7 @@ var ImageGalleryModal = ({
|
|
|
8300
8367
|
contentStyles: contentOverrideStyles,
|
|
8301
8368
|
className,
|
|
8302
8369
|
ariaLabel,
|
|
8303
|
-
children: /* @__PURE__ */ (0,
|
|
8370
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
|
|
8304
8371
|
Box_default,
|
|
8305
8372
|
{
|
|
8306
8373
|
display: "flex",
|
|
@@ -8310,7 +8377,7 @@ var ImageGalleryModal = ({
|
|
|
8310
8377
|
position: "relative",
|
|
8311
8378
|
css: galleryBackgroundStyles,
|
|
8312
8379
|
children: [
|
|
8313
|
-
showCounter && hasMultipleImages && /* @__PURE__ */ (0,
|
|
8380
|
+
showCounter && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8314
8381
|
Box_default,
|
|
8315
8382
|
{
|
|
8316
8383
|
position: "absolute",
|
|
@@ -8318,14 +8385,14 @@ var ImageGalleryModal = ({
|
|
|
8318
8385
|
left: "50%",
|
|
8319
8386
|
zIndex: 10,
|
|
8320
8387
|
css: counterStyles,
|
|
8321
|
-
children: /* @__PURE__ */ (0,
|
|
8388
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(Text_default, { size: "sm", color: "inherit", children: [
|
|
8322
8389
|
currentIndex + 1,
|
|
8323
8390
|
" / ",
|
|
8324
8391
|
images.length
|
|
8325
8392
|
] })
|
|
8326
8393
|
}
|
|
8327
8394
|
),
|
|
8328
|
-
/* @__PURE__ */ (0,
|
|
8395
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
|
|
8329
8396
|
Box_default,
|
|
8330
8397
|
{
|
|
8331
8398
|
display: "flex",
|
|
@@ -8335,17 +8402,17 @@ var ImageGalleryModal = ({
|
|
|
8335
8402
|
overflow: "hidden",
|
|
8336
8403
|
position: "relative",
|
|
8337
8404
|
children: [
|
|
8338
|
-
showArrows && hasMultipleImages && /* @__PURE__ */ (0,
|
|
8405
|
+
showArrows && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8339
8406
|
"button",
|
|
8340
8407
|
{
|
|
8341
8408
|
type: "button",
|
|
8342
8409
|
onClick: handlePrev,
|
|
8343
8410
|
css: prevButtonStyles,
|
|
8344
8411
|
"aria-label": "Previous image",
|
|
8345
|
-
children: /* @__PURE__ */ (0,
|
|
8412
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Icon_default, { variant: "AngleLeft", size: "medium" })
|
|
8346
8413
|
}
|
|
8347
8414
|
),
|
|
8348
|
-
/* @__PURE__ */ (0,
|
|
8415
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8349
8416
|
Box_default,
|
|
8350
8417
|
{
|
|
8351
8418
|
display: "flex",
|
|
@@ -8354,7 +8421,7 @@ var ImageGalleryModal = ({
|
|
|
8354
8421
|
width: "100%",
|
|
8355
8422
|
height: "100%",
|
|
8356
8423
|
p: "var(--spacing-4)",
|
|
8357
|
-
children: currentImage && /* @__PURE__ */ (0,
|
|
8424
|
+
children: currentImage && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8358
8425
|
"img",
|
|
8359
8426
|
{
|
|
8360
8427
|
src: currentImage.src,
|
|
@@ -8364,20 +8431,20 @@ var ImageGalleryModal = ({
|
|
|
8364
8431
|
)
|
|
8365
8432
|
}
|
|
8366
8433
|
),
|
|
8367
|
-
showArrows && hasMultipleImages && /* @__PURE__ */ (0,
|
|
8434
|
+
showArrows && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8368
8435
|
"button",
|
|
8369
8436
|
{
|
|
8370
8437
|
type: "button",
|
|
8371
8438
|
onClick: handleNext,
|
|
8372
8439
|
css: nextButtonStyles,
|
|
8373
8440
|
"aria-label": "Next image",
|
|
8374
|
-
children: /* @__PURE__ */ (0,
|
|
8441
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Icon_default, { variant: "AngleRight", size: "medium" })
|
|
8375
8442
|
}
|
|
8376
8443
|
)
|
|
8377
8444
|
]
|
|
8378
8445
|
}
|
|
8379
8446
|
),
|
|
8380
|
-
(currentImage == null ? void 0 : currentImage.caption) && /* @__PURE__ */ (0,
|
|
8447
|
+
(currentImage == null ? void 0 : currentImage.caption) && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8381
8448
|
Box_default,
|
|
8382
8449
|
{
|
|
8383
8450
|
position: "absolute",
|
|
@@ -8385,10 +8452,10 @@ var ImageGalleryModal = ({
|
|
|
8385
8452
|
left: "50%",
|
|
8386
8453
|
zIndex: 10,
|
|
8387
8454
|
css: captionStyles,
|
|
8388
|
-
children: /* @__PURE__ */ (0,
|
|
8455
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Text_default, { size: "sm", color: "inherit", children: currentImage.caption })
|
|
8389
8456
|
}
|
|
8390
8457
|
),
|
|
8391
|
-
showDots && hasMultipleImages && /* @__PURE__ */ (0,
|
|
8458
|
+
showDots && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8392
8459
|
Box_default,
|
|
8393
8460
|
{
|
|
8394
8461
|
display: "flex",
|
|
@@ -8398,7 +8465,7 @@ var ImageGalleryModal = ({
|
|
|
8398
8465
|
gap: "var(--spacing-2)",
|
|
8399
8466
|
zIndex: 10,
|
|
8400
8467
|
css: dotsContainerPositionStyles,
|
|
8401
|
-
children: images.map((_, index) => /* @__PURE__ */ (0,
|
|
8468
|
+
children: images.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8402
8469
|
"button",
|
|
8403
8470
|
{
|
|
8404
8471
|
type: "button",
|
|
@@ -8424,9 +8491,9 @@ ImageGalleryModal.displayName = "ImageGalleryModal";
|
|
|
8424
8491
|
var ImageGalleryModal_default = ImageGalleryModal;
|
|
8425
8492
|
|
|
8426
8493
|
// src/InfoBox/InfoBox.tsx
|
|
8427
|
-
var
|
|
8494
|
+
var import_jsx_runtime244 = require("@emotion/react/jsx-runtime");
|
|
8428
8495
|
var InfoBox = ({ heading, features, className }) => {
|
|
8429
|
-
return /* @__PURE__ */ (0,
|
|
8496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(
|
|
8430
8497
|
Box_default,
|
|
8431
8498
|
{
|
|
8432
8499
|
display: "flex",
|
|
@@ -8435,8 +8502,8 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
8435
8502
|
className,
|
|
8436
8503
|
color: "var(--text-primary)",
|
|
8437
8504
|
children: [
|
|
8438
|
-
/* @__PURE__ */ (0,
|
|
8439
|
-
/* @__PURE__ */ (0,
|
|
8505
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
8506
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
8440
8507
|
Box_default,
|
|
8441
8508
|
{
|
|
8442
8509
|
display: "flex",
|
|
@@ -8446,7 +8513,7 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
8446
8513
|
borderRadius: "var(--radius-lg)",
|
|
8447
8514
|
bg: "var(--surface-neutral)",
|
|
8448
8515
|
className,
|
|
8449
|
-
children: features.map((section, index) => /* @__PURE__ */ (0,
|
|
8516
|
+
children: features.map((section, index) => /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
8450
8517
|
FeatureList_default,
|
|
8451
8518
|
{
|
|
8452
8519
|
heading: section.heading,
|
|
@@ -8463,16 +8530,16 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
8463
8530
|
var InfoBox_default = InfoBox;
|
|
8464
8531
|
|
|
8465
8532
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
8466
|
-
var
|
|
8533
|
+
var import_react57 = require("react");
|
|
8467
8534
|
|
|
8468
8535
|
// src/ProgressBar/ProgressBar.styles.ts
|
|
8469
|
-
var
|
|
8470
|
-
var progressStyles =
|
|
8536
|
+
var import_react54 = require("@emotion/react");
|
|
8537
|
+
var progressStyles = import_react54.css`
|
|
8471
8538
|
transition: width 0.3s ease-in-out;
|
|
8472
8539
|
`;
|
|
8473
8540
|
|
|
8474
8541
|
// src/ProgressBar/ProgressBar.tsx
|
|
8475
|
-
var
|
|
8542
|
+
var import_jsx_runtime245 = require("@emotion/react/jsx-runtime");
|
|
8476
8543
|
var ProgressBar = ({
|
|
8477
8544
|
progress,
|
|
8478
8545
|
className,
|
|
@@ -8480,7 +8547,7 @@ var ProgressBar = ({
|
|
|
8480
8547
|
height = "10px"
|
|
8481
8548
|
}) => {
|
|
8482
8549
|
const clampedProgress = Math.min(100, Math.max(0, progress));
|
|
8483
|
-
return /* @__PURE__ */ (0,
|
|
8550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
8484
8551
|
Box_default,
|
|
8485
8552
|
{
|
|
8486
8553
|
width: "100%",
|
|
@@ -8490,7 +8557,7 @@ var ProgressBar = ({
|
|
|
8490
8557
|
overflow: "hidden",
|
|
8491
8558
|
position: "relative",
|
|
8492
8559
|
className,
|
|
8493
|
-
children: /* @__PURE__ */ (0,
|
|
8560
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
8494
8561
|
Box_default,
|
|
8495
8562
|
{
|
|
8496
8563
|
height: "100%",
|
|
@@ -8511,17 +8578,17 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
8511
8578
|
var ProgressBar_default = ProgressBar;
|
|
8512
8579
|
|
|
8513
8580
|
// src/Timer/Timer.tsx
|
|
8514
|
-
var
|
|
8581
|
+
var import_react56 = require("react");
|
|
8515
8582
|
|
|
8516
8583
|
// src/Timer/Timer.styles.ts
|
|
8517
|
-
var
|
|
8518
|
-
var rootStyles2 =
|
|
8584
|
+
var import_react55 = require("@emotion/react");
|
|
8585
|
+
var rootStyles2 = import_react55.css`
|
|
8519
8586
|
display: inline-flex;
|
|
8520
8587
|
font-variant-numeric: tabular-nums;
|
|
8521
8588
|
`;
|
|
8522
8589
|
|
|
8523
8590
|
// src/Timer/Timer.tsx
|
|
8524
|
-
var
|
|
8591
|
+
var import_jsx_runtime246 = require("@emotion/react/jsx-runtime");
|
|
8525
8592
|
var calculateTimeLeft = (expirationTimestamp) => {
|
|
8526
8593
|
const now = Math.floor(Date.now() / 1e3);
|
|
8527
8594
|
const diff = expirationTimestamp - now;
|
|
@@ -8549,10 +8616,10 @@ var Timer = ({
|
|
|
8549
8616
|
fontWeight = "bold",
|
|
8550
8617
|
showSeconds = false
|
|
8551
8618
|
}) => {
|
|
8552
|
-
const [timeLeft, setTimeLeft] = (0,
|
|
8619
|
+
const [timeLeft, setTimeLeft] = (0, import_react56.useState)(
|
|
8553
8620
|
() => calculateTimeLeft(expirationTimestamp)
|
|
8554
8621
|
);
|
|
8555
|
-
const updateTime = (0,
|
|
8622
|
+
const updateTime = (0, import_react56.useCallback)(() => {
|
|
8556
8623
|
const newTimeLeft = calculateTimeLeft(expirationTimestamp);
|
|
8557
8624
|
setTimeLeft(newTimeLeft);
|
|
8558
8625
|
if (newTimeLeft) {
|
|
@@ -8562,7 +8629,7 @@ var Timer = ({
|
|
|
8562
8629
|
}
|
|
8563
8630
|
return newTimeLeft;
|
|
8564
8631
|
}, [expirationTimestamp, onTimeUpdate, onExpire]);
|
|
8565
|
-
(0,
|
|
8632
|
+
(0, import_react56.useEffect)(() => {
|
|
8566
8633
|
const initialTime = updateTime();
|
|
8567
8634
|
if (!initialTime)
|
|
8568
8635
|
return;
|
|
@@ -8577,8 +8644,8 @@ var Timer = ({
|
|
|
8577
8644
|
if (!timeLeft) {
|
|
8578
8645
|
return null;
|
|
8579
8646
|
}
|
|
8580
|
-
return /* @__PURE__ */ (0,
|
|
8581
|
-
/* @__PURE__ */ (0,
|
|
8647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(Box_default, { css: rootStyles2, className, children: [
|
|
8648
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(Text_default, { as: "span", fontWeight, size: fontSize, children: [
|
|
8582
8649
|
timeLeft.days,
|
|
8583
8650
|
"d : ",
|
|
8584
8651
|
timeLeft.hours,
|
|
@@ -8586,7 +8653,7 @@ var Timer = ({
|
|
|
8586
8653
|
timeLeft.minutes,
|
|
8587
8654
|
"m"
|
|
8588
8655
|
] }),
|
|
8589
|
-
showSeconds && /* @__PURE__ */ (0,
|
|
8656
|
+
showSeconds && /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(Text_default, { as: "span", fontWeight, size: fontSize, children: [
|
|
8590
8657
|
"\xA0: ",
|
|
8591
8658
|
timeLeft.seconds,
|
|
8592
8659
|
"s"
|
|
@@ -8597,7 +8664,7 @@ Timer.displayName = "Timer";
|
|
|
8597
8664
|
var Timer_default = Timer;
|
|
8598
8665
|
|
|
8599
8666
|
// src/StarRating/StarRating.tsx
|
|
8600
|
-
var
|
|
8667
|
+
var import_jsx_runtime247 = require("@emotion/react/jsx-runtime");
|
|
8601
8668
|
var starSize = {
|
|
8602
8669
|
sm: {
|
|
8603
8670
|
size: "medium",
|
|
@@ -8645,10 +8712,10 @@ var StarRating = ({
|
|
|
8645
8712
|
fill = "var(--color-neutral-100)";
|
|
8646
8713
|
}
|
|
8647
8714
|
stars.push(
|
|
8648
|
-
/* @__PURE__ */ (0,
|
|
8715
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Icon_default, { variant, size: starSize[size].size, fill }, i)
|
|
8649
8716
|
);
|
|
8650
8717
|
}
|
|
8651
|
-
return /* @__PURE__ */ (0,
|
|
8718
|
+
return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8652
8719
|
Box_default,
|
|
8653
8720
|
{
|
|
8654
8721
|
className,
|
|
@@ -8662,7 +8729,7 @@ var StarRating = ({
|
|
|
8662
8729
|
var StarRating_default = StarRating;
|
|
8663
8730
|
|
|
8664
8731
|
// src/UserCard/UserCard.tsx
|
|
8665
|
-
var
|
|
8732
|
+
var import_jsx_runtime248 = require("@emotion/react/jsx-runtime");
|
|
8666
8733
|
var UserCard = ({
|
|
8667
8734
|
avatarSrc,
|
|
8668
8735
|
title,
|
|
@@ -8672,7 +8739,7 @@ var UserCard = ({
|
|
|
8672
8739
|
isVerified = false,
|
|
8673
8740
|
className
|
|
8674
8741
|
}) => {
|
|
8675
|
-
return /* @__PURE__ */ (0,
|
|
8742
|
+
return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
|
|
8676
8743
|
Box_default,
|
|
8677
8744
|
{
|
|
8678
8745
|
display: "flex",
|
|
@@ -8681,8 +8748,8 @@ var UserCard = ({
|
|
|
8681
8748
|
gap: "var(--spacing-4)",
|
|
8682
8749
|
className,
|
|
8683
8750
|
children: [
|
|
8684
|
-
/* @__PURE__ */ (0,
|
|
8685
|
-
/* @__PURE__ */ (0,
|
|
8751
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(Box_default, { display: "flex", alignItems: "flex-start", gap: "var(--spacing-4)", children: [
|
|
8752
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
|
|
8686
8753
|
Avatar_default,
|
|
8687
8754
|
{
|
|
8688
8755
|
type: avatarSrc ? "image" : "text",
|
|
@@ -8692,13 +8759,13 @@ var UserCard = ({
|
|
|
8692
8759
|
alt: `${title}'s avatar`
|
|
8693
8760
|
}
|
|
8694
8761
|
),
|
|
8695
|
-
/* @__PURE__ */ (0,
|
|
8696
|
-
/* @__PURE__ */ (0,
|
|
8697
|
-
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0,
|
|
8698
|
-
showRating && rating !== void 0 && /* @__PURE__ */ (0,
|
|
8762
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
8763
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
|
|
8764
|
+
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }) : subtitle),
|
|
8765
|
+
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(StarRating_default, { rating })
|
|
8699
8766
|
] })
|
|
8700
8767
|
] }),
|
|
8701
|
-
isVerified && /* @__PURE__ */ (0,
|
|
8768
|
+
isVerified && /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
|
|
8702
8769
|
Box_default,
|
|
8703
8770
|
{
|
|
8704
8771
|
display: "flex",
|
|
@@ -8707,8 +8774,8 @@ var UserCard = ({
|
|
|
8707
8774
|
gap: "var(--spacing-1)",
|
|
8708
8775
|
flexShrink: 0,
|
|
8709
8776
|
children: [
|
|
8710
|
-
/* @__PURE__ */ (0,
|
|
8711
|
-
/* @__PURE__ */ (0,
|
|
8777
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Icon_default, { variant: "ShieldCheckSolid", fill: "var(--icon-success)" }),
|
|
8778
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Text_default, { size: "xs", fontWeight: "bold", color: "text-primary", children: "Verified" })
|
|
8712
8779
|
]
|
|
8713
8780
|
}
|
|
8714
8781
|
)
|
|
@@ -8719,19 +8786,19 @@ var UserCard = ({
|
|
|
8719
8786
|
var UserCard_default = UserCard;
|
|
8720
8787
|
|
|
8721
8788
|
// src/LandownerProfile/components/ProfileSubtitle.tsx
|
|
8722
|
-
var
|
|
8789
|
+
var import_jsx_runtime249 = require("@emotion/react/jsx-runtime");
|
|
8723
8790
|
var ProfileSubtitle = ({
|
|
8724
8791
|
yearsHosting = 1,
|
|
8725
8792
|
featureReviewItem
|
|
8726
8793
|
}) => {
|
|
8727
|
-
return /* @__PURE__ */ (0,
|
|
8728
|
-
yearsHosting && yearsHosting > 0 && /* @__PURE__ */ (0,
|
|
8794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
8795
|
+
yearsHosting && yearsHosting > 0 && /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
8729
8796
|
yearsHosting,
|
|
8730
8797
|
" ",
|
|
8731
8798
|
yearsHosting === 1 ? "Year" : "Years",
|
|
8732
8799
|
" Hosting"
|
|
8733
8800
|
] }),
|
|
8734
|
-
featureReviewItem && /* @__PURE__ */ (0,
|
|
8801
|
+
featureReviewItem && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(FeatureListItem_default, { ...featureReviewItem })
|
|
8735
8802
|
] });
|
|
8736
8803
|
};
|
|
8737
8804
|
var ProfileSubtitle_default = ProfileSubtitle;
|
|
@@ -8746,7 +8813,7 @@ var hasTextContent = (html) => {
|
|
|
8746
8813
|
};
|
|
8747
8814
|
|
|
8748
8815
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
8749
|
-
var
|
|
8816
|
+
var import_jsx_runtime250 = require("@emotion/react/jsx-runtime");
|
|
8750
8817
|
var LandownerProfile = ({
|
|
8751
8818
|
heading,
|
|
8752
8819
|
avatarSrc,
|
|
@@ -8774,7 +8841,7 @@ var LandownerProfile = ({
|
|
|
8774
8841
|
const progressPercentage = (totalDuration - timeLeft.totalSeconds) / totalDuration * 100;
|
|
8775
8842
|
return Math.min(100, Math.max(0, progressPercentage));
|
|
8776
8843
|
};
|
|
8777
|
-
const [progress, setProgress] = (0,
|
|
8844
|
+
const [progress, setProgress] = (0, import_react57.useState)(0);
|
|
8778
8845
|
const handleTimeUpdate = (timeLeft) => {
|
|
8779
8846
|
setProgress(calculateProgress(timeLeft));
|
|
8780
8847
|
onEarlyAccessTimeUpdate == null ? void 0 : onEarlyAccessTimeUpdate(timeLeft);
|
|
@@ -8787,7 +8854,7 @@ var LandownerProfile = ({
|
|
|
8787
8854
|
iconVariant: "Bolt",
|
|
8788
8855
|
label: `Response Time: ${responseTime}`
|
|
8789
8856
|
} : void 0;
|
|
8790
|
-
return /* @__PURE__ */ (0,
|
|
8857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8791
8858
|
Box_default,
|
|
8792
8859
|
{
|
|
8793
8860
|
display: "flex",
|
|
@@ -8796,8 +8863,8 @@ var LandownerProfile = ({
|
|
|
8796
8863
|
color: "var(--text-primary)",
|
|
8797
8864
|
className,
|
|
8798
8865
|
children: [
|
|
8799
|
-
heading && /* @__PURE__ */ (0,
|
|
8800
|
-
/* @__PURE__ */ (0,
|
|
8866
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
8867
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8801
8868
|
Box_default,
|
|
8802
8869
|
{
|
|
8803
8870
|
display: "flex",
|
|
@@ -8807,12 +8874,12 @@ var LandownerProfile = ({
|
|
|
8807
8874
|
p: "var(--spacing-4)",
|
|
8808
8875
|
borderRadius: "var(--radius-lg)",
|
|
8809
8876
|
children: [
|
|
8810
|
-
/* @__PURE__ */ (0,
|
|
8877
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8811
8878
|
UserCard_default,
|
|
8812
8879
|
{
|
|
8813
8880
|
avatarSrc,
|
|
8814
8881
|
title: name,
|
|
8815
|
-
subtitle: /* @__PURE__ */ (0,
|
|
8882
|
+
subtitle: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8816
8883
|
ProfileSubtitle_default,
|
|
8817
8884
|
{
|
|
8818
8885
|
yearsHosting,
|
|
@@ -8823,9 +8890,9 @@ var LandownerProfile = ({
|
|
|
8823
8890
|
isVerified
|
|
8824
8891
|
}
|
|
8825
8892
|
),
|
|
8826
|
-
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0,
|
|
8827
|
-
/* @__PURE__ */ (0,
|
|
8828
|
-
/* @__PURE__ */ (0,
|
|
8893
|
+
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
8894
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Text_default, { fontWeight: "bold", children: "Bio" }),
|
|
8895
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8829
8896
|
Text_default,
|
|
8830
8897
|
{
|
|
8831
8898
|
dangerouslySetInnerHTML: {
|
|
@@ -8834,14 +8901,14 @@ var LandownerProfile = ({
|
|
|
8834
8901
|
}
|
|
8835
8902
|
)
|
|
8836
8903
|
] }),
|
|
8837
|
-
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0,
|
|
8838
|
-
/* @__PURE__ */ (0,
|
|
8839
|
-
/* @__PURE__ */ (0,
|
|
8840
|
-
!!responseRateFeature && /* @__PURE__ */ (0,
|
|
8841
|
-
!!responseTimeFeature && /* @__PURE__ */ (0,
|
|
8904
|
+
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
8905
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Text_default, { fontWeight: "bold", children: "Landowner Details" }),
|
|
8906
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
8907
|
+
!!responseRateFeature && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(FeatureListItem_default, { ...responseRateFeature }),
|
|
8908
|
+
!!responseTimeFeature && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(FeatureListItem_default, { ...responseTimeFeature })
|
|
8842
8909
|
] })
|
|
8843
8910
|
] }),
|
|
8844
|
-
/* @__PURE__ */ (0,
|
|
8911
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { alignSelf: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8845
8912
|
Button_default,
|
|
8846
8913
|
{
|
|
8847
8914
|
variant: "secondary",
|
|
@@ -8850,9 +8917,9 @@ var LandownerProfile = ({
|
|
|
8850
8917
|
children: messageButtonText
|
|
8851
8918
|
}
|
|
8852
8919
|
) }),
|
|
8853
|
-
earlyAccessTimer && /* @__PURE__ */ (0,
|
|
8854
|
-
/* @__PURE__ */ (0,
|
|
8855
|
-
/* @__PURE__ */ (0,
|
|
8920
|
+
earlyAccessTimer && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: [
|
|
8921
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(ProgressBar_default, { progress }),
|
|
8922
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8856
8923
|
Box_default,
|
|
8857
8924
|
{
|
|
8858
8925
|
display: "flex",
|
|
@@ -8860,9 +8927,9 @@ var LandownerProfile = ({
|
|
|
8860
8927
|
gap: "var(--spacing-1)",
|
|
8861
8928
|
textAlign: "center",
|
|
8862
8929
|
children: [
|
|
8863
|
-
/* @__PURE__ */ (0,
|
|
8864
|
-
/* @__PURE__ */ (0,
|
|
8865
|
-
/* @__PURE__ */ (0,
|
|
8930
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Text_default, { size: "xs", textAlign: "center", children: earlyAccessTimer.labelText }),
|
|
8931
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Text_default, { size: "sm", textAlign: "center", children: earlyAccessTimer.descriptionText }),
|
|
8932
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8866
8933
|
Timer_default,
|
|
8867
8934
|
{
|
|
8868
8935
|
expirationTimestamp: earlyAccessTimer.expirationTimestamp,
|
|
@@ -8884,11 +8951,11 @@ var LandownerProfile = ({
|
|
|
8884
8951
|
var LandownerProfile_default = LandownerProfile;
|
|
8885
8952
|
|
|
8886
8953
|
// src/ListingChat/ListingChat.tsx
|
|
8887
|
-
var
|
|
8954
|
+
var import_react59 = require("react");
|
|
8888
8955
|
|
|
8889
8956
|
// src/ListingChat/ListingChat.styles.ts
|
|
8890
|
-
var
|
|
8891
|
-
var
|
|
8957
|
+
var import_react58 = require("@emotion/react");
|
|
8958
|
+
var containerStyles4 = import_react58.css`
|
|
8892
8959
|
display: flex;
|
|
8893
8960
|
flex-direction: column;
|
|
8894
8961
|
gap: var(--spacing-4);
|
|
@@ -8896,13 +8963,13 @@ var containerStyles3 = import_react56.css`
|
|
|
8896
8963
|
border-radius: var(--radius-lg);
|
|
8897
8964
|
background: var(--surface-success);
|
|
8898
8965
|
`;
|
|
8899
|
-
var headerStyles =
|
|
8966
|
+
var headerStyles = import_react58.css`
|
|
8900
8967
|
display: flex;
|
|
8901
8968
|
align-items: flex-start;
|
|
8902
8969
|
justify-content: space-between;
|
|
8903
8970
|
gap: var(--spacing-2);
|
|
8904
8971
|
`;
|
|
8905
|
-
var chipsContainerStyles =
|
|
8972
|
+
var chipsContainerStyles = import_react58.css`
|
|
8906
8973
|
display: flex;
|
|
8907
8974
|
flex-wrap: wrap;
|
|
8908
8975
|
gap: var(--spacing-4);
|
|
@@ -8915,15 +8982,15 @@ var chipsContainerStyles = import_react56.css`
|
|
|
8915
8982
|
cursor: pointer;
|
|
8916
8983
|
}
|
|
8917
8984
|
`;
|
|
8918
|
-
var textAreaStyles =
|
|
8985
|
+
var textAreaStyles = import_react58.css`
|
|
8919
8986
|
min-height: 62px;
|
|
8920
8987
|
`;
|
|
8921
|
-
var inputWrapperStyles2 =
|
|
8988
|
+
var inputWrapperStyles2 = import_react58.css`
|
|
8922
8989
|
position: relative;
|
|
8923
8990
|
`;
|
|
8924
8991
|
|
|
8925
8992
|
// src/ListingChat/ListingChat.tsx
|
|
8926
|
-
var
|
|
8993
|
+
var import_jsx_runtime251 = require("@emotion/react/jsx-runtime");
|
|
8927
8994
|
var ListingChat = ({
|
|
8928
8995
|
onSubmit,
|
|
8929
8996
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -8933,15 +9000,15 @@ var ListingChat = ({
|
|
|
8933
9000
|
disabled = false,
|
|
8934
9001
|
...rest
|
|
8935
9002
|
}) => {
|
|
8936
|
-
const [value, setValue] = (0,
|
|
8937
|
-
const handleSubmit = (0,
|
|
9003
|
+
const [value, setValue] = (0, import_react59.useState)("");
|
|
9004
|
+
const handleSubmit = (0, import_react59.useCallback)(() => {
|
|
8938
9005
|
const trimmed = value.trim();
|
|
8939
9006
|
if (!trimmed)
|
|
8940
9007
|
return;
|
|
8941
9008
|
onSubmit(trimmed);
|
|
8942
9009
|
setValue("");
|
|
8943
9010
|
}, [onSubmit, value]);
|
|
8944
|
-
const handleTagClick = (0,
|
|
9011
|
+
const handleTagClick = (0, import_react59.useCallback)(
|
|
8945
9012
|
(tag) => () => {
|
|
8946
9013
|
const trimmed = tag.trim();
|
|
8947
9014
|
if (!trimmed)
|
|
@@ -8950,18 +9017,18 @@ var ListingChat = ({
|
|
|
8950
9017
|
},
|
|
8951
9018
|
[onSubmit]
|
|
8952
9019
|
);
|
|
8953
|
-
return /* @__PURE__ */ (0,
|
|
8954
|
-
/* @__PURE__ */ (0,
|
|
8955
|
-
/* @__PURE__ */ (0,
|
|
8956
|
-
/* @__PURE__ */ (0,
|
|
8957
|
-
/* @__PURE__ */ (0,
|
|
9020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { css: containerStyles4, className, ...rest, children: [
|
|
9021
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { css: headerStyles, children: [
|
|
9022
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { children: [
|
|
9023
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Box_default, { mb: "var(--spacing-2)", children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: title }) }),
|
|
9024
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
8958
9025
|
] }),
|
|
8959
|
-
/* @__PURE__ */ (0,
|
|
8960
|
-
/* @__PURE__ */ (0,
|
|
8961
|
-
/* @__PURE__ */ (0,
|
|
9026
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
9027
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
|
|
9028
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
8962
9029
|
] })
|
|
8963
9030
|
] }),
|
|
8964
|
-
/* @__PURE__ */ (0,
|
|
9031
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8965
9032
|
TextArea,
|
|
8966
9033
|
{
|
|
8967
9034
|
rows: 1,
|
|
@@ -8976,14 +9043,14 @@ var ListingChat = ({
|
|
|
8976
9043
|
css: textAreaStyles
|
|
8977
9044
|
}
|
|
8978
9045
|
) }),
|
|
8979
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
8980
|
-
/* @__PURE__ */ (0,
|
|
8981
|
-
/* @__PURE__ */ (0,
|
|
9046
|
+
tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(import_jsx_runtime251.Fragment, { children: [
|
|
9047
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Text_default, { as: "div", size: "sm", fontWeight: "bold", children: "Try one of these" }),
|
|
9048
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Box_default, { css: chipsContainerStyles, children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8982
9049
|
"button",
|
|
8983
9050
|
{
|
|
8984
9051
|
onClick: handleTagClick(tag),
|
|
8985
9052
|
disabled,
|
|
8986
|
-
children: /* @__PURE__ */ (0,
|
|
9053
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(TagChip_default, { children: tag })
|
|
8987
9054
|
},
|
|
8988
9055
|
tag
|
|
8989
9056
|
)) })
|
|
@@ -8993,11 +9060,11 @@ var ListingChat = ({
|
|
|
8993
9060
|
var ListingChat_default = ListingChat;
|
|
8994
9061
|
|
|
8995
9062
|
// src/Logo/Logo.tsx
|
|
8996
|
-
var
|
|
9063
|
+
var import_react60 = require("@emotion/react");
|
|
8997
9064
|
|
|
8998
9065
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
8999
|
-
var
|
|
9000
|
-
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0,
|
|
9066
|
+
var import_jsx_runtime252 = require("@emotion/react/jsx-runtime");
|
|
9067
|
+
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
9001
9068
|
"svg",
|
|
9002
9069
|
{
|
|
9003
9070
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9005,14 +9072,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.
|
|
|
9005
9072
|
fill: "none",
|
|
9006
9073
|
...props,
|
|
9007
9074
|
children: [
|
|
9008
|
-
/* @__PURE__ */ (0,
|
|
9075
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9009
9076
|
"path",
|
|
9010
9077
|
{
|
|
9011
9078
|
fill: "#000",
|
|
9012
9079
|
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"
|
|
9013
9080
|
}
|
|
9014
9081
|
) }),
|
|
9015
|
-
/* @__PURE__ */ (0,
|
|
9082
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9016
9083
|
"path",
|
|
9017
9084
|
{
|
|
9018
9085
|
fill: "#FAD44E",
|
|
@@ -9021,14 +9088,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.
|
|
|
9021
9088
|
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"
|
|
9022
9089
|
}
|
|
9023
9090
|
),
|
|
9024
|
-
/* @__PURE__ */ (0,
|
|
9091
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9025
9092
|
"path",
|
|
9026
9093
|
{
|
|
9027
9094
|
fill: "#fff",
|
|
9028
9095
|
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"
|
|
9029
9096
|
}
|
|
9030
9097
|
),
|
|
9031
|
-
/* @__PURE__ */ (0,
|
|
9098
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
9032
9099
|
"filter",
|
|
9033
9100
|
{
|
|
9034
9101
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -9039,8 +9106,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.
|
|
|
9039
9106
|
colorInterpolationFilters: "sRGB",
|
|
9040
9107
|
filterUnits: "userSpaceOnUse",
|
|
9041
9108
|
children: [
|
|
9042
|
-
/* @__PURE__ */ (0,
|
|
9043
|
-
/* @__PURE__ */ (0,
|
|
9109
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
9110
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9044
9111
|
"feColorMatrix",
|
|
9045
9112
|
{
|
|
9046
9113
|
in: "SourceAlpha",
|
|
@@ -9048,18 +9115,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.
|
|
|
9048
9115
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
9049
9116
|
}
|
|
9050
9117
|
),
|
|
9051
|
-
/* @__PURE__ */ (0,
|
|
9052
|
-
/* @__PURE__ */ (0,
|
|
9053
|
-
/* @__PURE__ */ (0,
|
|
9054
|
-
/* @__PURE__ */ (0,
|
|
9055
|
-
/* @__PURE__ */ (0,
|
|
9118
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feOffset", { dy: 1 }),
|
|
9119
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
9120
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
9121
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
9122
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9056
9123
|
"feBlend",
|
|
9057
9124
|
{
|
|
9058
9125
|
in2: "BackgroundImageFix",
|
|
9059
9126
|
result: "effect1_dropShadow_257_2540"
|
|
9060
9127
|
}
|
|
9061
9128
|
),
|
|
9062
|
-
/* @__PURE__ */ (0,
|
|
9129
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9063
9130
|
"feBlend",
|
|
9064
9131
|
{
|
|
9065
9132
|
in: "SourceGraphic",
|
|
@@ -9076,8 +9143,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.
|
|
|
9076
9143
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
9077
9144
|
|
|
9078
9145
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
9079
|
-
var
|
|
9080
|
-
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0,
|
|
9146
|
+
var import_jsx_runtime253 = require("@emotion/react/jsx-runtime");
|
|
9147
|
+
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
9081
9148
|
"svg",
|
|
9082
9149
|
{
|
|
9083
9150
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9085,14 +9152,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252
|
|
|
9085
9152
|
fill: "none",
|
|
9086
9153
|
...props,
|
|
9087
9154
|
children: [
|
|
9088
|
-
/* @__PURE__ */ (0,
|
|
9155
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9089
9156
|
"path",
|
|
9090
9157
|
{
|
|
9091
9158
|
fill: "#000",
|
|
9092
9159
|
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"
|
|
9093
9160
|
}
|
|
9094
9161
|
) }),
|
|
9095
|
-
/* @__PURE__ */ (0,
|
|
9162
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9096
9163
|
"path",
|
|
9097
9164
|
{
|
|
9098
9165
|
fill: "#FAD44E",
|
|
@@ -9101,14 +9168,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252
|
|
|
9101
9168
|
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"
|
|
9102
9169
|
}
|
|
9103
9170
|
),
|
|
9104
|
-
/* @__PURE__ */ (0,
|
|
9171
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9105
9172
|
"path",
|
|
9106
9173
|
{
|
|
9107
9174
|
fill: "#1A202C",
|
|
9108
9175
|
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"
|
|
9109
9176
|
}
|
|
9110
9177
|
),
|
|
9111
|
-
/* @__PURE__ */ (0,
|
|
9178
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
9112
9179
|
"filter",
|
|
9113
9180
|
{
|
|
9114
9181
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -9119,8 +9186,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252
|
|
|
9119
9186
|
colorInterpolationFilters: "sRGB",
|
|
9120
9187
|
filterUnits: "userSpaceOnUse",
|
|
9121
9188
|
children: [
|
|
9122
|
-
/* @__PURE__ */ (0,
|
|
9123
|
-
/* @__PURE__ */ (0,
|
|
9189
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
9190
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9124
9191
|
"feColorMatrix",
|
|
9125
9192
|
{
|
|
9126
9193
|
in: "SourceAlpha",
|
|
@@ -9128,18 +9195,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252
|
|
|
9128
9195
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
9129
9196
|
}
|
|
9130
9197
|
),
|
|
9131
|
-
/* @__PURE__ */ (0,
|
|
9132
|
-
/* @__PURE__ */ (0,
|
|
9133
|
-
/* @__PURE__ */ (0,
|
|
9134
|
-
/* @__PURE__ */ (0,
|
|
9135
|
-
/* @__PURE__ */ (0,
|
|
9198
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("feOffset", { dy: 1 }),
|
|
9199
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
9200
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
9201
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
9202
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9136
9203
|
"feBlend",
|
|
9137
9204
|
{
|
|
9138
9205
|
in2: "BackgroundImageFix",
|
|
9139
9206
|
result: "effect1_dropShadow_257_2538"
|
|
9140
9207
|
}
|
|
9141
9208
|
),
|
|
9142
|
-
/* @__PURE__ */ (0,
|
|
9209
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9143
9210
|
"feBlend",
|
|
9144
9211
|
{
|
|
9145
9212
|
in: "SourceGraphic",
|
|
@@ -9156,8 +9223,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252
|
|
|
9156
9223
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
9157
9224
|
|
|
9158
9225
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
9159
|
-
var
|
|
9160
|
-
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0,
|
|
9226
|
+
var import_jsx_runtime254 = require("@emotion/react/jsx-runtime");
|
|
9227
|
+
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
|
|
9161
9228
|
"svg",
|
|
9162
9229
|
{
|
|
9163
9230
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9165,14 +9232,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
9165
9232
|
fill: "none",
|
|
9166
9233
|
...props,
|
|
9167
9234
|
children: [
|
|
9168
|
-
/* @__PURE__ */ (0,
|
|
9235
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
9169
9236
|
"path",
|
|
9170
9237
|
{
|
|
9171
9238
|
fill: "#E2430C",
|
|
9172
9239
|
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"
|
|
9173
9240
|
}
|
|
9174
9241
|
),
|
|
9175
|
-
/* @__PURE__ */ (0,
|
|
9242
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
9176
9243
|
"path",
|
|
9177
9244
|
{
|
|
9178
9245
|
fill: "#fff",
|
|
@@ -9185,8 +9252,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
9185
9252
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
9186
9253
|
|
|
9187
9254
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
9188
|
-
var
|
|
9189
|
-
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0,
|
|
9255
|
+
var import_jsx_runtime255 = require("@emotion/react/jsx-runtime");
|
|
9256
|
+
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(
|
|
9190
9257
|
"svg",
|
|
9191
9258
|
{
|
|
9192
9259
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9194,14 +9261,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
9194
9261
|
fill: "none",
|
|
9195
9262
|
...props,
|
|
9196
9263
|
children: [
|
|
9197
|
-
/* @__PURE__ */ (0,
|
|
9264
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
|
|
9198
9265
|
"path",
|
|
9199
9266
|
{
|
|
9200
9267
|
fill: "#E2430C",
|
|
9201
9268
|
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"
|
|
9202
9269
|
}
|
|
9203
9270
|
),
|
|
9204
|
-
/* @__PURE__ */ (0,
|
|
9271
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
|
|
9205
9272
|
"path",
|
|
9206
9273
|
{
|
|
9207
9274
|
fill: "#000",
|
|
@@ -9214,8 +9281,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
9214
9281
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
9215
9282
|
|
|
9216
9283
|
// src/Logo/Logo.tsx
|
|
9217
|
-
var
|
|
9218
|
-
var logoStyles = (size) =>
|
|
9284
|
+
var import_jsx_runtime256 = require("@emotion/react/jsx-runtime");
|
|
9285
|
+
var logoStyles = (size) => import_react60.css`
|
|
9219
9286
|
width: ${space[size]};
|
|
9220
9287
|
height: auto;
|
|
9221
9288
|
display: block;
|
|
@@ -9243,18 +9310,18 @@ var Logo = ({
|
|
|
9243
9310
|
return LandtrustStandardLight_default;
|
|
9244
9311
|
};
|
|
9245
9312
|
const LogoComponent = getLogoComponent();
|
|
9246
|
-
return /* @__PURE__ */ (0,
|
|
9313
|
+
return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
9247
9314
|
};
|
|
9248
9315
|
var Logo_default = Logo;
|
|
9249
9316
|
|
|
9250
9317
|
// src/Navigation/Navigation.styles.ts
|
|
9251
|
-
var
|
|
9252
|
-
var navigationStyles =
|
|
9318
|
+
var import_react61 = require("@emotion/react");
|
|
9319
|
+
var navigationStyles = import_react61.css`
|
|
9253
9320
|
width: 100%;
|
|
9254
9321
|
background-color: white;
|
|
9255
9322
|
border-bottom: 1px solid #e5e5e5;
|
|
9256
9323
|
`;
|
|
9257
|
-
var hamburgerButtonStyles =
|
|
9324
|
+
var hamburgerButtonStyles = import_react61.css`
|
|
9258
9325
|
cursor: pointer;
|
|
9259
9326
|
&:focus {
|
|
9260
9327
|
outline: 2px solid #4f46e5;
|
|
@@ -9265,7 +9332,7 @@ var hamburgerButtonStyles = import_react59.css`
|
|
|
9265
9332
|
display: none;
|
|
9266
9333
|
}
|
|
9267
9334
|
`;
|
|
9268
|
-
var centeredLogoStyles =
|
|
9335
|
+
var centeredLogoStyles = import_react61.css`
|
|
9269
9336
|
transform: translate(-50%, -50%);
|
|
9270
9337
|
max-width: 150px;
|
|
9271
9338
|
|
|
@@ -9273,27 +9340,27 @@ var centeredLogoStyles = import_react59.css`
|
|
|
9273
9340
|
display: none;
|
|
9274
9341
|
}
|
|
9275
9342
|
`;
|
|
9276
|
-
var desktopLogoStyles =
|
|
9343
|
+
var desktopLogoStyles = import_react61.css`
|
|
9277
9344
|
display: none;
|
|
9278
9345
|
|
|
9279
9346
|
@media (min-width: 768px) {
|
|
9280
9347
|
display: block;
|
|
9281
9348
|
}
|
|
9282
9349
|
`;
|
|
9283
|
-
var
|
|
9350
|
+
var containerStyles5 = import_react61.css`
|
|
9284
9351
|
@media (min-width: 768px) {
|
|
9285
9352
|
justify-content: space-between;
|
|
9286
9353
|
position: static;
|
|
9287
9354
|
}
|
|
9288
9355
|
`;
|
|
9289
|
-
var logoStyles2 =
|
|
9356
|
+
var logoStyles2 = import_react61.css`
|
|
9290
9357
|
width: 100%;
|
|
9291
9358
|
|
|
9292
9359
|
@media (min-width: 768px) {
|
|
9293
9360
|
width: initial;
|
|
9294
9361
|
}
|
|
9295
9362
|
`;
|
|
9296
|
-
var desktopNavStyles =
|
|
9363
|
+
var desktopNavStyles = import_react61.css`
|
|
9297
9364
|
display: none;
|
|
9298
9365
|
|
|
9299
9366
|
@media (min-width: 768px) {
|
|
@@ -9302,7 +9369,7 @@ var desktopNavStyles = import_react59.css`
|
|
|
9302
9369
|
gap: 32px;
|
|
9303
9370
|
}
|
|
9304
9371
|
`;
|
|
9305
|
-
var navLinksStyles =
|
|
9372
|
+
var navLinksStyles = import_react61.css`
|
|
9306
9373
|
display: flex;
|
|
9307
9374
|
align-items: center;
|
|
9308
9375
|
gap: 24px;
|
|
@@ -9310,7 +9377,7 @@ var navLinksStyles = import_react59.css`
|
|
|
9310
9377
|
margin: 0;
|
|
9311
9378
|
padding: 0;
|
|
9312
9379
|
`;
|
|
9313
|
-
var navLinkStyles =
|
|
9380
|
+
var navLinkStyles = import_react61.css`
|
|
9314
9381
|
text-decoration: none;
|
|
9315
9382
|
color: #374151;
|
|
9316
9383
|
font-weight: 500;
|
|
@@ -9326,7 +9393,7 @@ var navLinkStyles = import_react59.css`
|
|
|
9326
9393
|
outline-offset: 2px;
|
|
9327
9394
|
}
|
|
9328
9395
|
`;
|
|
9329
|
-
var avatarPlaceholderStyles =
|
|
9396
|
+
var avatarPlaceholderStyles = import_react61.css`
|
|
9330
9397
|
width: 32px;
|
|
9331
9398
|
height: 32px;
|
|
9332
9399
|
border-radius: 50%;
|
|
@@ -9351,7 +9418,7 @@ var avatarPlaceholderStyles = import_react59.css`
|
|
|
9351
9418
|
`;
|
|
9352
9419
|
|
|
9353
9420
|
// src/Navigation/Navigation.tsx
|
|
9354
|
-
var
|
|
9421
|
+
var import_jsx_runtime257 = require("@emotion/react/jsx-runtime");
|
|
9355
9422
|
var Navigation = ({
|
|
9356
9423
|
onMenuToggle,
|
|
9357
9424
|
className,
|
|
@@ -9365,16 +9432,16 @@ var Navigation = ({
|
|
|
9365
9432
|
onAvatarClick,
|
|
9366
9433
|
...rest
|
|
9367
9434
|
}) => {
|
|
9368
|
-
return /* @__PURE__ */ (0,
|
|
9435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
|
|
9369
9436
|
Box_default,
|
|
9370
9437
|
{
|
|
9371
9438
|
display: "flex",
|
|
9372
9439
|
alignItems: "center",
|
|
9373
9440
|
padding: space[4],
|
|
9374
9441
|
position: "relative",
|
|
9375
|
-
css:
|
|
9442
|
+
css: containerStyles5,
|
|
9376
9443
|
children: [
|
|
9377
|
-
/* @__PURE__ */ (0,
|
|
9444
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9378
9445
|
Box_default,
|
|
9379
9446
|
{
|
|
9380
9447
|
as: "button",
|
|
@@ -9386,11 +9453,11 @@ var Navigation = ({
|
|
|
9386
9453
|
border: "none",
|
|
9387
9454
|
padding: space[2],
|
|
9388
9455
|
css: hamburgerButtonStyles,
|
|
9389
|
-
children: /* @__PURE__ */ (0,
|
|
9456
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
9390
9457
|
}
|
|
9391
9458
|
),
|
|
9392
|
-
/* @__PURE__ */ (0,
|
|
9393
|
-
/* @__PURE__ */ (0,
|
|
9459
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
9460
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { position: "absolute", left: "50%", top: "50%", css: centeredLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9394
9461
|
Logo_default,
|
|
9395
9462
|
{
|
|
9396
9463
|
variant: logoVariant,
|
|
@@ -9399,8 +9466,8 @@ var Navigation = ({
|
|
|
9399
9466
|
css: logoStyles2
|
|
9400
9467
|
}
|
|
9401
9468
|
) }),
|
|
9402
|
-
/* @__PURE__ */ (0,
|
|
9403
|
-
/* @__PURE__ */ (0,
|
|
9469
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(Box_default, { css: desktopNavStyles, children: [
|
|
9470
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { as: "nav", children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { as: "ul", css: navLinksStyles, children: navLinks.map((link) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { as: "li", children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9404
9471
|
"a",
|
|
9405
9472
|
{
|
|
9406
9473
|
href: link.href,
|
|
@@ -9409,7 +9476,7 @@ var Navigation = ({
|
|
|
9409
9476
|
children: link.label
|
|
9410
9477
|
}
|
|
9411
9478
|
) }, link.href)) }) }),
|
|
9412
|
-
/* @__PURE__ */ (0,
|
|
9479
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9413
9480
|
Box_default,
|
|
9414
9481
|
{
|
|
9415
9482
|
as: "button",
|
|
@@ -9428,21 +9495,21 @@ var Navigation = ({
|
|
|
9428
9495
|
var Navigation_default = Navigation;
|
|
9429
9496
|
|
|
9430
9497
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
9431
|
-
var
|
|
9498
|
+
var import_react64 = require("react");
|
|
9432
9499
|
var import_react_intersection_observer = require("react-intersection-observer");
|
|
9433
9500
|
|
|
9434
9501
|
// src/ScrollingCarousel/context/CarouselContext.tsx
|
|
9435
|
-
var
|
|
9436
|
-
var CarouselContext =
|
|
9502
|
+
var import_react62 = __toESM(require("react"));
|
|
9503
|
+
var CarouselContext = import_react62.default.createContext(
|
|
9437
9504
|
null
|
|
9438
9505
|
);
|
|
9439
9506
|
|
|
9440
9507
|
// src/ScrollingCarousel/ScrollingCarousel.styles.ts
|
|
9441
|
-
var
|
|
9442
|
-
var carouselRoot =
|
|
9508
|
+
var import_react63 = require("@emotion/react");
|
|
9509
|
+
var carouselRoot = import_react63.css`
|
|
9443
9510
|
position: relative;
|
|
9444
9511
|
`;
|
|
9445
|
-
var carousel =
|
|
9512
|
+
var carousel = import_react63.css`
|
|
9446
9513
|
display: flex;
|
|
9447
9514
|
overflow-y: hidden;
|
|
9448
9515
|
overflow-x: scroll;
|
|
@@ -9454,7 +9521,7 @@ var carousel = import_react61.css`
|
|
|
9454
9521
|
display: none;
|
|
9455
9522
|
}
|
|
9456
9523
|
`;
|
|
9457
|
-
var step =
|
|
9524
|
+
var step = import_react63.css`
|
|
9458
9525
|
scroll-snap-align: center;
|
|
9459
9526
|
flex-basis: 100%;
|
|
9460
9527
|
flex-shrink: 0;
|
|
@@ -9467,7 +9534,7 @@ var step = import_react61.css`
|
|
|
9467
9534
|
flex-basis: 100%;
|
|
9468
9535
|
}
|
|
9469
9536
|
`;
|
|
9470
|
-
var controls = (position2) =>
|
|
9537
|
+
var controls = (position2) => import_react63.css`
|
|
9471
9538
|
${(position2 === "left-right" || position2 === "top-right") && `
|
|
9472
9539
|
display: none;
|
|
9473
9540
|
|
|
@@ -9476,7 +9543,7 @@ var controls = (position2) => import_react61.css`
|
|
|
9476
9543
|
}
|
|
9477
9544
|
`}
|
|
9478
9545
|
`;
|
|
9479
|
-
var iconWrapper =
|
|
9546
|
+
var iconWrapper = import_react63.css`
|
|
9480
9547
|
display: flex;
|
|
9481
9548
|
width: var(--spacing-7);
|
|
9482
9549
|
height: var(--spacing-7);
|
|
@@ -9486,7 +9553,7 @@ var iconWrapper = import_react61.css`
|
|
|
9486
9553
|
justify-content: center;
|
|
9487
9554
|
box-shadow: var(--shadow-md);
|
|
9488
9555
|
`;
|
|
9489
|
-
var button = (position2) =>
|
|
9556
|
+
var button = (position2) => import_react63.css`
|
|
9490
9557
|
background: transparent;
|
|
9491
9558
|
border-color: transparent;
|
|
9492
9559
|
outline: none;
|
|
@@ -9518,7 +9585,7 @@ var button = (position2) => import_react61.css`
|
|
|
9518
9585
|
bottom: calc(-1 * var(--spacing-1));
|
|
9519
9586
|
`}
|
|
9520
9587
|
`;
|
|
9521
|
-
var buttonLeft = (position2) =>
|
|
9588
|
+
var buttonLeft = (position2) => import_react63.css`
|
|
9522
9589
|
${button(position2)}
|
|
9523
9590
|
|
|
9524
9591
|
${position2 === "left-right" && `
|
|
@@ -9538,7 +9605,7 @@ var buttonLeft = (position2) => import_react61.css`
|
|
|
9538
9605
|
left: calc(50% - var(--spacing-16));
|
|
9539
9606
|
`}
|
|
9540
9607
|
`;
|
|
9541
|
-
var customButtonLeft = (position2) =>
|
|
9608
|
+
var customButtonLeft = (position2) => import_react63.css`
|
|
9542
9609
|
${button(position2)}
|
|
9543
9610
|
|
|
9544
9611
|
${position2 === "left-right" && `
|
|
@@ -9558,7 +9625,7 @@ var customButtonLeft = (position2) => import_react61.css`
|
|
|
9558
9625
|
left: calc(50% - var(--spacing-16));
|
|
9559
9626
|
`}
|
|
9560
9627
|
`;
|
|
9561
|
-
var buttonRight = (position2) =>
|
|
9628
|
+
var buttonRight = (position2) => import_react63.css`
|
|
9562
9629
|
${button(position2)}
|
|
9563
9630
|
|
|
9564
9631
|
${position2 === "left-right" && `
|
|
@@ -9578,12 +9645,12 @@ var buttonRight = (position2) => import_react61.css`
|
|
|
9578
9645
|
right: calc(50% - var(--spacing-16));
|
|
9579
9646
|
`}
|
|
9580
9647
|
`;
|
|
9581
|
-
var icon =
|
|
9648
|
+
var icon = import_react63.css`
|
|
9582
9649
|
width: var(--spacing-3);
|
|
9583
9650
|
height: var(--spacing-3);
|
|
9584
9651
|
color: var(--color-base-black);
|
|
9585
9652
|
`;
|
|
9586
|
-
var dots =
|
|
9653
|
+
var dots = import_react63.css`
|
|
9587
9654
|
position: absolute;
|
|
9588
9655
|
bottom: var(--spacing-2);
|
|
9589
9656
|
left: 0;
|
|
@@ -9593,11 +9660,11 @@ var dots = import_react61.css`
|
|
|
9593
9660
|
align-items: center;
|
|
9594
9661
|
justify-content: center;
|
|
9595
9662
|
`;
|
|
9596
|
-
var dotsInner =
|
|
9663
|
+
var dotsInner = import_react63.css`
|
|
9597
9664
|
display: flex;
|
|
9598
9665
|
overflow: hidden;
|
|
9599
9666
|
`;
|
|
9600
|
-
var dot = (dotsColor) =>
|
|
9667
|
+
var dot = (dotsColor) => import_react63.css`
|
|
9601
9668
|
position: relative;
|
|
9602
9669
|
flex-shrink: 0;
|
|
9603
9670
|
flex-grow: 0;
|
|
@@ -9636,22 +9703,22 @@ var dot = (dotsColor) => import_react61.css`
|
|
|
9636
9703
|
`}
|
|
9637
9704
|
}
|
|
9638
9705
|
`;
|
|
9639
|
-
var dotDistance2 =
|
|
9706
|
+
var dotDistance2 = import_react63.css`
|
|
9640
9707
|
&::after {
|
|
9641
9708
|
transform: translate(-50%, -50%) scale(0.9);
|
|
9642
9709
|
}
|
|
9643
9710
|
`;
|
|
9644
|
-
var dotDistance3 =
|
|
9711
|
+
var dotDistance3 = import_react63.css`
|
|
9645
9712
|
&::after {
|
|
9646
9713
|
transform: translate(-50%, -50%) scale(0.8);
|
|
9647
9714
|
}
|
|
9648
9715
|
`;
|
|
9649
|
-
var dotDistanceGreaterThan3 =
|
|
9716
|
+
var dotDistanceGreaterThan3 = import_react63.css`
|
|
9650
9717
|
&::after {
|
|
9651
9718
|
transform: translate(-50%, -50%) scale(0.7);
|
|
9652
9719
|
}
|
|
9653
9720
|
`;
|
|
9654
|
-
var dotVisible =
|
|
9721
|
+
var dotVisible = import_react63.css`
|
|
9655
9722
|
&::after {
|
|
9656
9723
|
opacity: 1;
|
|
9657
9724
|
transform: translate(-50%, -50%) scale(1.2);
|
|
@@ -9659,7 +9726,7 @@ var dotVisible = import_react61.css`
|
|
|
9659
9726
|
`;
|
|
9660
9727
|
|
|
9661
9728
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
9662
|
-
var
|
|
9729
|
+
var import_jsx_runtime258 = require("@emotion/react/jsx-runtime");
|
|
9663
9730
|
var ScrollingCarouselStep = ({
|
|
9664
9731
|
children,
|
|
9665
9732
|
index,
|
|
@@ -9667,7 +9734,7 @@ var ScrollingCarouselStep = ({
|
|
|
9667
9734
|
parentId,
|
|
9668
9735
|
onClick
|
|
9669
9736
|
}) => {
|
|
9670
|
-
const context = (0,
|
|
9737
|
+
const context = (0, import_react64.useContext)(CarouselContext);
|
|
9671
9738
|
if (!context) {
|
|
9672
9739
|
throw new Error(
|
|
9673
9740
|
"ScrollingCarouselStep must be used within ScrollingCarousel"
|
|
@@ -9678,7 +9745,7 @@ var ScrollingCarouselStep = ({
|
|
|
9678
9745
|
threshold: 0.75,
|
|
9679
9746
|
root: carousel2.current
|
|
9680
9747
|
});
|
|
9681
|
-
(0,
|
|
9748
|
+
(0, import_react64.useEffect)(() => {
|
|
9682
9749
|
if (typeof index !== "undefined") {
|
|
9683
9750
|
dispatch({
|
|
9684
9751
|
type: "set_child_visibility",
|
|
@@ -9686,7 +9753,7 @@ var ScrollingCarouselStep = ({
|
|
|
9686
9753
|
});
|
|
9687
9754
|
}
|
|
9688
9755
|
}, [inView, index, dispatch]);
|
|
9689
|
-
return /* @__PURE__ */ (0,
|
|
9756
|
+
return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
9690
9757
|
"div",
|
|
9691
9758
|
{
|
|
9692
9759
|
ref,
|
|
@@ -9704,10 +9771,10 @@ var ScrollingCarouselStep = ({
|
|
|
9704
9771
|
ScrollingCarouselStep.displayName = "ScrollingCarouselStep";
|
|
9705
9772
|
|
|
9706
9773
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
9707
|
-
var
|
|
9774
|
+
var import_react68 = __toESM(require("react"));
|
|
9708
9775
|
|
|
9709
9776
|
// src/ScrollingCarousel/hooks/useCarouselDots.ts
|
|
9710
|
-
var
|
|
9777
|
+
var import_react65 = require("react");
|
|
9711
9778
|
|
|
9712
9779
|
// src/ScrollingCarousel/ScrollingCarousel.helpers.ts
|
|
9713
9780
|
var childVisibilityReducer = (state, action) => {
|
|
@@ -9738,7 +9805,7 @@ var useCarouselDots = ({
|
|
|
9738
9805
|
anyItemsVisible,
|
|
9739
9806
|
numberOfDots
|
|
9740
9807
|
}) => {
|
|
9741
|
-
const dotOffset = (0,
|
|
9808
|
+
const dotOffset = (0, import_react65.useRef)(0);
|
|
9742
9809
|
const dotWidth = 12;
|
|
9743
9810
|
const totalDots = childVisibility.length;
|
|
9744
9811
|
const dotToCenterIndex = Math.round(
|
|
@@ -9770,7 +9837,7 @@ var useCarouselDots = ({
|
|
|
9770
9837
|
};
|
|
9771
9838
|
|
|
9772
9839
|
// src/ScrollingCarousel/hooks/useCarouselNavigation.ts
|
|
9773
|
-
var
|
|
9840
|
+
var import_react66 = require("react");
|
|
9774
9841
|
|
|
9775
9842
|
// src/shared/helpers.ts
|
|
9776
9843
|
var import_seamless_scroll_polyfill = require("seamless-scroll-polyfill");
|
|
@@ -9804,7 +9871,7 @@ var useCarouselNavigation = ({
|
|
|
9804
9871
|
infiniteScroll,
|
|
9805
9872
|
childVisibilityLength
|
|
9806
9873
|
}) => {
|
|
9807
|
-
const getStepEl = (0,
|
|
9874
|
+
const getStepEl = (0, import_react66.useCallback)(
|
|
9808
9875
|
(index) => {
|
|
9809
9876
|
if (carousel2.current) {
|
|
9810
9877
|
const selector = `[data-carousel-id="${id}"][data-carousel-index="${index}"]`;
|
|
@@ -9814,7 +9881,7 @@ var useCarouselNavigation = ({
|
|
|
9814
9881
|
},
|
|
9815
9882
|
[carousel2, id]
|
|
9816
9883
|
);
|
|
9817
|
-
const next = (0,
|
|
9884
|
+
const next = (0, import_react66.useCallback)(
|
|
9818
9885
|
(e) => {
|
|
9819
9886
|
e.preventDefault();
|
|
9820
9887
|
if (lastItemIsVisible && !infiniteScroll)
|
|
@@ -9842,7 +9909,7 @@ var useCarouselNavigation = ({
|
|
|
9842
9909
|
carousel2
|
|
9843
9910
|
]
|
|
9844
9911
|
);
|
|
9845
|
-
const back = (0,
|
|
9912
|
+
const back = (0, import_react66.useCallback)(
|
|
9846
9913
|
(e) => {
|
|
9847
9914
|
e.preventDefault();
|
|
9848
9915
|
if (firstItemIsVisible && !infiniteScroll)
|
|
@@ -9870,7 +9937,7 @@ var useCarouselNavigation = ({
|
|
|
9870
9937
|
carousel2
|
|
9871
9938
|
]
|
|
9872
9939
|
);
|
|
9873
|
-
const goTo = (0,
|
|
9940
|
+
const goTo = (0, import_react66.useCallback)(
|
|
9874
9941
|
(e, i) => {
|
|
9875
9942
|
e.preventDefault();
|
|
9876
9943
|
const el = getStepEl(i);
|
|
@@ -9888,12 +9955,12 @@ var useCarouselNavigation = ({
|
|
|
9888
9955
|
};
|
|
9889
9956
|
|
|
9890
9957
|
// src/ScrollingCarousel/hooks/useCarouselVisibility.ts
|
|
9891
|
-
var
|
|
9958
|
+
var import_react67 = require("react");
|
|
9892
9959
|
var useCarouselVisibility = (carousel2) => {
|
|
9893
|
-
const [state, dispatch] = (0,
|
|
9960
|
+
const [state, dispatch] = (0, import_react67.useReducer)(childVisibilityReducer, {
|
|
9894
9961
|
childVisibility: []
|
|
9895
9962
|
});
|
|
9896
|
-
const carouselContextApi = (0,
|
|
9963
|
+
const carouselContextApi = (0, import_react67.useMemo)(
|
|
9897
9964
|
() => ({ carousel: carousel2, dispatch }),
|
|
9898
9965
|
[carousel2]
|
|
9899
9966
|
);
|
|
@@ -9914,7 +9981,7 @@ var useCarouselVisibility = (carousel2) => {
|
|
|
9914
9981
|
};
|
|
9915
9982
|
|
|
9916
9983
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
9917
|
-
var
|
|
9984
|
+
var import_jsx_runtime259 = require("@emotion/react/jsx-runtime");
|
|
9918
9985
|
var ScrollingCarousel = ({
|
|
9919
9986
|
className,
|
|
9920
9987
|
children,
|
|
@@ -9931,8 +9998,8 @@ var ScrollingCarousel = ({
|
|
|
9931
9998
|
id,
|
|
9932
9999
|
current
|
|
9933
10000
|
}) => {
|
|
9934
|
-
const carousel2 = (0,
|
|
9935
|
-
const [isHovering, setIsHovering] = (0,
|
|
10001
|
+
const carousel2 = (0, import_react68.useRef)(null);
|
|
10002
|
+
const [isHovering, setIsHovering] = (0, import_react68.useState)(false);
|
|
9936
10003
|
const {
|
|
9937
10004
|
state,
|
|
9938
10005
|
carouselContextApi,
|
|
@@ -9952,7 +10019,7 @@ var ScrollingCarousel = ({
|
|
|
9952
10019
|
infiniteScroll,
|
|
9953
10020
|
childVisibilityLength: state.childVisibility.length
|
|
9954
10021
|
});
|
|
9955
|
-
(0,
|
|
10022
|
+
(0, import_react68.useEffect)(() => {
|
|
9956
10023
|
if (carousel2.current && typeof current === "number" && current >= 0) {
|
|
9957
10024
|
const childrenArray = Array.from(carousel2.current.children);
|
|
9958
10025
|
const selectedItem = childrenArray[current];
|
|
@@ -9967,9 +10034,9 @@ var ScrollingCarousel = ({
|
|
|
9967
10034
|
}
|
|
9968
10035
|
}
|
|
9969
10036
|
}, [current]);
|
|
9970
|
-
const childrenWithIndex =
|
|
10037
|
+
const childrenWithIndex = import_react68.default.Children.map(
|
|
9971
10038
|
children,
|
|
9972
|
-
(child, index) =>
|
|
10039
|
+
(child, index) => import_react68.default.cloneElement(child, { index })
|
|
9973
10040
|
);
|
|
9974
10041
|
const { dotOffset, dotDistances, dotWidth } = useCarouselDots({
|
|
9975
10042
|
childVisibility: state.childVisibility,
|
|
@@ -9980,7 +10047,7 @@ var ScrollingCarousel = ({
|
|
|
9980
10047
|
});
|
|
9981
10048
|
const hasMultipleChildren = state.childVisibility.length > 1;
|
|
9982
10049
|
const shouldShowNavigation = showNavigationOnHover ? isHovering : true;
|
|
9983
|
-
return /* @__PURE__ */ (0,
|
|
10050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
9984
10051
|
"div",
|
|
9985
10052
|
{
|
|
9986
10053
|
css: carouselRoot,
|
|
@@ -9988,7 +10055,7 @@ var ScrollingCarousel = ({
|
|
|
9988
10055
|
onMouseEnter: () => setIsHovering(true),
|
|
9989
10056
|
onMouseLeave: () => setIsHovering(false),
|
|
9990
10057
|
children: [
|
|
9991
|
-
/* @__PURE__ */ (0,
|
|
10058
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9992
10059
|
"div",
|
|
9993
10060
|
{
|
|
9994
10061
|
css: carousel,
|
|
@@ -9997,11 +10064,11 @@ var ScrollingCarousel = ({
|
|
|
9997
10064
|
role: "region",
|
|
9998
10065
|
"aria-roledescription": "carousel",
|
|
9999
10066
|
"aria-label": "Scrolling carousel",
|
|
10000
|
-
children: /* @__PURE__ */ (0,
|
|
10067
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(CarouselContext.Provider, { value: carouselContextApi, children: childrenWithIndex })
|
|
10001
10068
|
}
|
|
10002
10069
|
),
|
|
10003
|
-
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0,
|
|
10004
|
-
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
10070
|
+
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("div", { css: controls(buttonsPosition), children: [
|
|
10071
|
+
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
10005
10072
|
"button",
|
|
10006
10073
|
{
|
|
10007
10074
|
"aria-label": "Previous",
|
|
@@ -10013,10 +10080,10 @@ var ScrollingCarousel = ({
|
|
|
10013
10080
|
},
|
|
10014
10081
|
css: customLeftButton ? customButtonLeft(buttonsPosition) : buttonLeft(buttonsPosition),
|
|
10015
10082
|
"data-testid": `scrolling-carousel-button-back-${id}`,
|
|
10016
|
-
children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0,
|
|
10083
|
+
children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Icon_default, { variant: "AngleLeft", css: icon }) })
|
|
10017
10084
|
}
|
|
10018
10085
|
),
|
|
10019
|
-
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
10086
|
+
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
10020
10087
|
"button",
|
|
10021
10088
|
{
|
|
10022
10089
|
"aria-label": "Next",
|
|
@@ -10028,11 +10095,11 @@ var ScrollingCarousel = ({
|
|
|
10028
10095
|
},
|
|
10029
10096
|
css: buttonRight(buttonsPosition),
|
|
10030
10097
|
"data-testid": `scrolling-carousel-button-next-${id}`,
|
|
10031
|
-
children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0,
|
|
10098
|
+
children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Icon_default, { variant: "AngleRight", css: icon }) })
|
|
10032
10099
|
}
|
|
10033
10100
|
)
|
|
10034
10101
|
] }),
|
|
10035
|
-
showDots && /* @__PURE__ */ (0,
|
|
10102
|
+
showDots && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("div", { css: dots, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
10036
10103
|
"div",
|
|
10037
10104
|
{
|
|
10038
10105
|
css: dotsInner,
|
|
@@ -10040,7 +10107,7 @@ var ScrollingCarousel = ({
|
|
|
10040
10107
|
children: state.childVisibility.map((childVisibility, i) => {
|
|
10041
10108
|
var _a;
|
|
10042
10109
|
const distance = (_a = dotDistances[i]) != null ? _a : 0;
|
|
10043
|
-
return /* @__PURE__ */ (0,
|
|
10110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
10044
10111
|
"button",
|
|
10045
10112
|
{
|
|
10046
10113
|
type: "button",
|
|
@@ -10071,8 +10138,8 @@ var ScrollingCarousel = ({
|
|
|
10071
10138
|
ScrollingCarousel.displayName = "ScrollingCarousel";
|
|
10072
10139
|
|
|
10073
10140
|
// src/PackageCard/PackageCard.styles.ts
|
|
10074
|
-
var
|
|
10075
|
-
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) =>
|
|
10141
|
+
var import_react69 = require("@emotion/react");
|
|
10142
|
+
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) => import_react69.css`
|
|
10076
10143
|
${hasClickHandler && `
|
|
10077
10144
|
cursor: pointer;
|
|
10078
10145
|
`}
|
|
@@ -10090,7 +10157,7 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
10090
10157
|
flex-direction: column;
|
|
10091
10158
|
gap: var(--spacing-2);
|
|
10092
10159
|
|
|
10093
|
-
${orientation === "horizontal" &&
|
|
10160
|
+
${orientation === "horizontal" && import_react69.css`
|
|
10094
10161
|
/* Apply horizontal layout only on tablet and up */
|
|
10095
10162
|
${media.md} {
|
|
10096
10163
|
flex-direction: row;
|
|
@@ -10118,60 +10185,60 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
10118
10185
|
}
|
|
10119
10186
|
`}
|
|
10120
10187
|
`;
|
|
10121
|
-
var imageContainerStyles = (orientation) =>
|
|
10188
|
+
var imageContainerStyles = (orientation) => import_react69.css`
|
|
10122
10189
|
width: 100%;
|
|
10123
10190
|
height: 260px;
|
|
10124
10191
|
|
|
10125
|
-
${orientation === "horizontal" &&
|
|
10192
|
+
${orientation === "horizontal" && import_react69.css`
|
|
10126
10193
|
${media.md} {
|
|
10127
10194
|
width: 40%;
|
|
10128
10195
|
height: 200px;
|
|
10129
10196
|
}
|
|
10130
10197
|
`}
|
|
10131
10198
|
`;
|
|
10132
|
-
var imageBoxStyles = (orientation) =>
|
|
10199
|
+
var imageBoxStyles = (orientation) => import_react69.css`
|
|
10133
10200
|
height: 260px;
|
|
10134
10201
|
|
|
10135
|
-
${orientation === "horizontal" &&
|
|
10202
|
+
${orientation === "horizontal" && import_react69.css`
|
|
10136
10203
|
${media.md} {
|
|
10137
10204
|
height: 200px;
|
|
10138
10205
|
}
|
|
10139
10206
|
`}
|
|
10140
10207
|
`;
|
|
10141
|
-
var contentContainerStyles = (orientation, hasContentBackground) =>
|
|
10208
|
+
var contentContainerStyles = (orientation, hasContentBackground) => import_react69.css`
|
|
10142
10209
|
${hasContentBackground ? contentWithBackgroundStyles : contentWithoutBackgroundStyles}
|
|
10143
10210
|
width: 100%;
|
|
10144
10211
|
display: flex;
|
|
10145
10212
|
flex-direction: column;
|
|
10146
10213
|
justify-content: flex-start;
|
|
10147
10214
|
|
|
10148
|
-
${orientation === "horizontal" &&
|
|
10215
|
+
${orientation === "horizontal" && import_react69.css`
|
|
10149
10216
|
${media.md} {
|
|
10150
10217
|
width: 60%;
|
|
10151
10218
|
justify-content: center;
|
|
10152
10219
|
}
|
|
10153
10220
|
`}
|
|
10154
10221
|
`;
|
|
10155
|
-
var imageStyles3 =
|
|
10222
|
+
var imageStyles3 = import_react69.css`
|
|
10156
10223
|
background-size: cover;
|
|
10157
10224
|
background-position: center;
|
|
10158
10225
|
background-repeat: no-repeat;
|
|
10159
10226
|
position: relative;
|
|
10160
10227
|
background-color: lightgray;
|
|
10161
10228
|
`;
|
|
10162
|
-
var badgeTopLeftStyles =
|
|
10229
|
+
var badgeTopLeftStyles = import_react69.css`
|
|
10163
10230
|
position: absolute;
|
|
10164
10231
|
top: var(--spacing-3);
|
|
10165
10232
|
left: var(--spacing-3);
|
|
10166
10233
|
z-index: 2;
|
|
10167
10234
|
`;
|
|
10168
|
-
var badgeBottomRightStyles =
|
|
10235
|
+
var badgeBottomRightStyles = import_react69.css`
|
|
10169
10236
|
position: absolute;
|
|
10170
10237
|
bottom: var(--spacing-3);
|
|
10171
10238
|
right: var(--spacing-3);
|
|
10172
10239
|
z-index: 2;
|
|
10173
10240
|
`;
|
|
10174
|
-
var heartIconStyles =
|
|
10241
|
+
var heartIconStyles = import_react69.css`
|
|
10175
10242
|
position: absolute;
|
|
10176
10243
|
top: var(--spacing-3);
|
|
10177
10244
|
right: var(--spacing-3);
|
|
@@ -10193,20 +10260,20 @@ var heartIconStyles = import_react67.css`
|
|
|
10193
10260
|
transform: scale(1.1);
|
|
10194
10261
|
}
|
|
10195
10262
|
`;
|
|
10196
|
-
var actionMenuStyles =
|
|
10263
|
+
var actionMenuStyles = import_react69.css`
|
|
10197
10264
|
position: absolute;
|
|
10198
10265
|
top: var(--spacing-3);
|
|
10199
10266
|
right: var(--spacing-3);
|
|
10200
10267
|
z-index: 3;
|
|
10201
10268
|
`;
|
|
10202
|
-
var contentWithBackgroundStyles =
|
|
10269
|
+
var contentWithBackgroundStyles = import_react69.css`
|
|
10203
10270
|
padding: 0 var(--spacing-3) var(--spacing-4) var(--spacing-3);
|
|
10204
10271
|
background-color: var(--surface-page);
|
|
10205
10272
|
`;
|
|
10206
|
-
var contentWithoutBackgroundStyles =
|
|
10273
|
+
var contentWithoutBackgroundStyles = import_react69.css`
|
|
10207
10274
|
padding-top: 0 var(--spacing-2) var(--spacing-2) var(--spacing-2);
|
|
10208
10275
|
`;
|
|
10209
|
-
var overlayStyles =
|
|
10276
|
+
var overlayStyles = import_react69.css`
|
|
10210
10277
|
position: absolute;
|
|
10211
10278
|
top: 0;
|
|
10212
10279
|
left: 0;
|
|
@@ -10220,7 +10287,7 @@ var overlayStyles = import_react67.css`
|
|
|
10220
10287
|
`;
|
|
10221
10288
|
|
|
10222
10289
|
// src/PackageCard/PackageCard.tsx
|
|
10223
|
-
var
|
|
10290
|
+
var import_jsx_runtime260 = require("@emotion/react/jsx-runtime");
|
|
10224
10291
|
var PackageCard = ({
|
|
10225
10292
|
images,
|
|
10226
10293
|
title,
|
|
@@ -10242,7 +10309,7 @@ var PackageCard = ({
|
|
|
10242
10309
|
const shouldShowOverlay = availabilityBadges == null ? void 0 : availabilityBadges.some(
|
|
10243
10310
|
(badge2) => badge2.showOverlay
|
|
10244
10311
|
);
|
|
10245
|
-
return /* @__PURE__ */ (0,
|
|
10312
|
+
return /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
10246
10313
|
Box_default,
|
|
10247
10314
|
{
|
|
10248
10315
|
position: "relative",
|
|
@@ -10251,7 +10318,7 @@ var PackageCard = ({
|
|
|
10251
10318
|
onClick,
|
|
10252
10319
|
...rest,
|
|
10253
10320
|
children: [
|
|
10254
|
-
/* @__PURE__ */ (0,
|
|
10321
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
10255
10322
|
Box_default,
|
|
10256
10323
|
{
|
|
10257
10324
|
position: "relative",
|
|
@@ -10259,7 +10326,7 @@ var PackageCard = ({
|
|
|
10259
10326
|
borderRadius: "var(--spacing-4)",
|
|
10260
10327
|
css: imageContainerStyles(orientation),
|
|
10261
10328
|
children: [
|
|
10262
|
-
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
10329
|
+
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10263
10330
|
AvailabilityBadge_default,
|
|
10264
10331
|
{
|
|
10265
10332
|
variant: badge2.variant,
|
|
@@ -10268,18 +10335,18 @@ var PackageCard = ({
|
|
|
10268
10335
|
},
|
|
10269
10336
|
`availability-${index}`
|
|
10270
10337
|
)),
|
|
10271
|
-
shouldShowOverlay && /* @__PURE__ */ (0,
|
|
10272
|
-
/* @__PURE__ */ (0,
|
|
10338
|
+
shouldShowOverlay && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { css: overlayStyles }),
|
|
10339
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10273
10340
|
ScrollingCarousel,
|
|
10274
10341
|
{
|
|
10275
10342
|
showDots: images.length > 1,
|
|
10276
10343
|
showNavigationOnHover: true,
|
|
10277
10344
|
id: carouselId,
|
|
10278
|
-
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0,
|
|
10345
|
+
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10279
10346
|
ScrollingCarouselStep,
|
|
10280
10347
|
{
|
|
10281
10348
|
parentId: carouselId,
|
|
10282
|
-
children: /* @__PURE__ */ (0,
|
|
10349
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10283
10350
|
Box_default,
|
|
10284
10351
|
{
|
|
10285
10352
|
width: "100%",
|
|
@@ -10297,7 +10364,7 @@ var PackageCard = ({
|
|
|
10297
10364
|
))
|
|
10298
10365
|
}
|
|
10299
10366
|
),
|
|
10300
|
-
onFavoriteClick && /* @__PURE__ */ (0,
|
|
10367
|
+
onFavoriteClick && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10301
10368
|
Box_default,
|
|
10302
10369
|
{
|
|
10303
10370
|
css: heartIconStyles,
|
|
@@ -10306,14 +10373,14 @@ var PackageCard = ({
|
|
|
10306
10373
|
e.stopPropagation();
|
|
10307
10374
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
10308
10375
|
},
|
|
10309
|
-
children: isFavorited ? /* @__PURE__ */ (0,
|
|
10376
|
+
children: isFavorited ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10310
10377
|
Icon_default,
|
|
10311
10378
|
{
|
|
10312
10379
|
variant: "HeartSolid",
|
|
10313
10380
|
size: "small",
|
|
10314
10381
|
fill: "var(--color-error-500)"
|
|
10315
10382
|
}
|
|
10316
|
-
) : /* @__PURE__ */ (0,
|
|
10383
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10317
10384
|
Icon_default,
|
|
10318
10385
|
{
|
|
10319
10386
|
variant: "Heart",
|
|
@@ -10323,13 +10390,13 @@ var PackageCard = ({
|
|
|
10323
10390
|
)
|
|
10324
10391
|
}
|
|
10325
10392
|
),
|
|
10326
|
-
actions && actions.length > 0 && orientation === "vertical" && /* @__PURE__ */ (0,
|
|
10393
|
+
actions && actions.length > 0 && orientation === "vertical" && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { css: actionMenuStyles, children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(ActionMenu_default, { actions }) })
|
|
10327
10394
|
]
|
|
10328
10395
|
}
|
|
10329
10396
|
),
|
|
10330
|
-
actions && actions.length > 0 && orientation === "horizontal" && /* @__PURE__ */ (0,
|
|
10331
|
-
/* @__PURE__ */ (0,
|
|
10332
|
-
/* @__PURE__ */ (0,
|
|
10397
|
+
actions && actions.length > 0 && orientation === "horizontal" && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { css: actionMenuStyles, children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(ActionMenu_default, { actions }) }),
|
|
10398
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Box_default, { css: contentContainerStyles(orientation, hasContentBackground), children: [
|
|
10399
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
10333
10400
|
Box_default,
|
|
10334
10401
|
{
|
|
10335
10402
|
display: "flex",
|
|
@@ -10337,9 +10404,9 @@ var PackageCard = ({
|
|
|
10337
10404
|
gap: "var(--spacing-1)",
|
|
10338
10405
|
mb: "var(--spacing-1)",
|
|
10339
10406
|
children: [
|
|
10340
|
-
/* @__PURE__ */ (0,
|
|
10341
|
-
/* @__PURE__ */ (0,
|
|
10342
|
-
startingPrice && /* @__PURE__ */ (0,
|
|
10407
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }) }),
|
|
10408
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Text_default, { size: "sm", fontWeight: "bold", children: subtitle }) }),
|
|
10409
|
+
startingPrice && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Text_default, { size: "sm", fontWeight: "normal", children: [
|
|
10343
10410
|
"Starting Price ",
|
|
10344
10411
|
startingPrice,
|
|
10345
10412
|
" / Guest"
|
|
@@ -10347,14 +10414,14 @@ var PackageCard = ({
|
|
|
10347
10414
|
]
|
|
10348
10415
|
}
|
|
10349
10416
|
),
|
|
10350
|
-
badges && badges.length > 0 && /* @__PURE__ */ (0,
|
|
10417
|
+
badges && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10351
10418
|
Box_default,
|
|
10352
10419
|
{
|
|
10353
10420
|
display: "flex",
|
|
10354
10421
|
gap: "var(--spacing-2) var(--spacing-4)",
|
|
10355
10422
|
alignItems: "center",
|
|
10356
10423
|
flexWrap: "wrap",
|
|
10357
|
-
children: badges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
10424
|
+
children: badges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10358
10425
|
IconLabel_default,
|
|
10359
10426
|
{
|
|
10360
10427
|
iconSize: badge2.iconSize || "medium",
|
|
@@ -10373,14 +10440,14 @@ var PackageCard = ({
|
|
|
10373
10440
|
var PackageCard_default = PackageCard;
|
|
10374
10441
|
|
|
10375
10442
|
// src/PackageHeader/PackageHeader.tsx
|
|
10376
|
-
var
|
|
10443
|
+
var import_jsx_runtime261 = require("@emotion/react/jsx-runtime");
|
|
10377
10444
|
var PackageHeader = ({
|
|
10378
10445
|
header,
|
|
10379
10446
|
subheader,
|
|
10380
10447
|
features,
|
|
10381
10448
|
className
|
|
10382
10449
|
}) => {
|
|
10383
|
-
return /* @__PURE__ */ (0,
|
|
10450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
|
|
10384
10451
|
Box_default,
|
|
10385
10452
|
{
|
|
10386
10453
|
display: "flex",
|
|
@@ -10389,9 +10456,9 @@ var PackageHeader = ({
|
|
|
10389
10456
|
color: "var(--text-primary)",
|
|
10390
10457
|
className,
|
|
10391
10458
|
children: [
|
|
10392
|
-
/* @__PURE__ */ (0,
|
|
10393
|
-
subheader && /* @__PURE__ */ (0,
|
|
10394
|
-
features && /* @__PURE__ */ (0,
|
|
10459
|
+
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Heading_default, { size: "xs", fontWeight: "bold", children: header }),
|
|
10460
|
+
subheader && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Text_default, { children: subheader }),
|
|
10461
|
+
features && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(FeatureList_default, { items: features })
|
|
10395
10462
|
]
|
|
10396
10463
|
}
|
|
10397
10464
|
);
|
|
@@ -10399,8 +10466,8 @@ var PackageHeader = ({
|
|
|
10399
10466
|
var PackageHeader_default = PackageHeader;
|
|
10400
10467
|
|
|
10401
10468
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
10402
|
-
var
|
|
10403
|
-
var imageStyles4 =
|
|
10469
|
+
var import_react70 = require("@emotion/react");
|
|
10470
|
+
var imageStyles4 = import_react70.css`
|
|
10404
10471
|
flex: 1;
|
|
10405
10472
|
min-width: 0;
|
|
10406
10473
|
max-width: 100%;
|
|
@@ -10411,13 +10478,13 @@ var imageStyles4 = import_react68.css`
|
|
|
10411
10478
|
`;
|
|
10412
10479
|
|
|
10413
10480
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
10414
|
-
var
|
|
10481
|
+
var import_jsx_runtime262 = require("@emotion/react/jsx-runtime");
|
|
10415
10482
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
10416
10483
|
const displayImages = images.slice(0, maxImages);
|
|
10417
10484
|
if (displayImages.length === 0) {
|
|
10418
10485
|
return null;
|
|
10419
10486
|
}
|
|
10420
|
-
return /* @__PURE__ */ (0,
|
|
10487
|
+
return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Box_default, { display: "flex", gap: "var(--spacing-2)", flexWrap: "wrap", children: displayImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
|
|
10421
10488
|
"img",
|
|
10422
10489
|
{
|
|
10423
10490
|
src: image,
|
|
@@ -10430,7 +10497,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
10430
10497
|
var ReviewImages_default = ReviewImages;
|
|
10431
10498
|
|
|
10432
10499
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
10433
|
-
var
|
|
10500
|
+
var import_jsx_runtime263 = require("@emotion/react/jsx-runtime");
|
|
10434
10501
|
var ReviewReply = ({
|
|
10435
10502
|
avatarSrc,
|
|
10436
10503
|
name,
|
|
@@ -10439,7 +10506,7 @@ var ReviewReply = ({
|
|
|
10439
10506
|
label,
|
|
10440
10507
|
rating
|
|
10441
10508
|
}) => {
|
|
10442
|
-
return /* @__PURE__ */ (0,
|
|
10509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
|
|
10443
10510
|
Box_default,
|
|
10444
10511
|
{
|
|
10445
10512
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -10449,7 +10516,7 @@ var ReviewReply = ({
|
|
|
10449
10516
|
flexDirection: "column",
|
|
10450
10517
|
gap: "var(--spacing-3)",
|
|
10451
10518
|
children: [
|
|
10452
|
-
/* @__PURE__ */ (0,
|
|
10519
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
|
|
10453
10520
|
Box_default,
|
|
10454
10521
|
{
|
|
10455
10522
|
display: "flex",
|
|
@@ -10457,7 +10524,7 @@ var ReviewReply = ({
|
|
|
10457
10524
|
justifyContent: "space-between",
|
|
10458
10525
|
gap: "var(--spacing-2)",
|
|
10459
10526
|
children: [
|
|
10460
|
-
/* @__PURE__ */ (0,
|
|
10527
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
|
|
10461
10528
|
UserCard_default,
|
|
10462
10529
|
{
|
|
10463
10530
|
avatarSrc,
|
|
@@ -10466,11 +10533,11 @@ var ReviewReply = ({
|
|
|
10466
10533
|
rating
|
|
10467
10534
|
}
|
|
10468
10535
|
),
|
|
10469
|
-
/* @__PURE__ */ (0,
|
|
10536
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
10470
10537
|
]
|
|
10471
10538
|
}
|
|
10472
10539
|
),
|
|
10473
|
-
/* @__PURE__ */ (0,
|
|
10540
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Text_default, { children: content })
|
|
10474
10541
|
]
|
|
10475
10542
|
}
|
|
10476
10543
|
);
|
|
@@ -10478,7 +10545,7 @@ var ReviewReply = ({
|
|
|
10478
10545
|
var ReviewReply_default = ReviewReply;
|
|
10479
10546
|
|
|
10480
10547
|
// src/ReviewCard/ReviewCard.tsx
|
|
10481
|
-
var
|
|
10548
|
+
var import_jsx_runtime264 = require("@emotion/react/jsx-runtime");
|
|
10482
10549
|
var ReviewCard = ({
|
|
10483
10550
|
avatarSrc,
|
|
10484
10551
|
name,
|
|
@@ -10490,7 +10557,7 @@ var ReviewCard = ({
|
|
|
10490
10557
|
replies = [],
|
|
10491
10558
|
className
|
|
10492
10559
|
}) => {
|
|
10493
|
-
return /* @__PURE__ */ (0,
|
|
10560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
|
|
10494
10561
|
Box_default,
|
|
10495
10562
|
{
|
|
10496
10563
|
backgroundColor: "white",
|
|
@@ -10501,7 +10568,7 @@ var ReviewCard = ({
|
|
|
10501
10568
|
gap: "var(--spacing-4)",
|
|
10502
10569
|
className,
|
|
10503
10570
|
children: [
|
|
10504
|
-
/* @__PURE__ */ (0,
|
|
10571
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
10505
10572
|
UserCard_default,
|
|
10506
10573
|
{
|
|
10507
10574
|
avatarSrc,
|
|
@@ -10510,10 +10577,10 @@ var ReviewCard = ({
|
|
|
10510
10577
|
rating
|
|
10511
10578
|
}
|
|
10512
10579
|
),
|
|
10513
|
-
availabilityBadge && /* @__PURE__ */ (0,
|
|
10514
|
-
/* @__PURE__ */ (0,
|
|
10515
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
10516
|
-
replies.length > 0 && /* @__PURE__ */ (0,
|
|
10580
|
+
availabilityBadge && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(AvailabilityBadge_default, { variant: availabilityBadge.variant, children: availabilityBadge.text }) }),
|
|
10581
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Text_default, { size: "md", children: content }),
|
|
10582
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(ReviewImages_default, { images }),
|
|
10583
|
+
replies.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: replies.map((reply, index) => /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
10517
10584
|
ReviewReply_default,
|
|
10518
10585
|
{
|
|
10519
10586
|
avatarSrc: reply.avatarSrc,
|
|
@@ -10532,12 +10599,12 @@ var ReviewCard = ({
|
|
|
10532
10599
|
var ReviewCard_default = ReviewCard;
|
|
10533
10600
|
|
|
10534
10601
|
// src/Reviews/Reviews.tsx
|
|
10535
|
-
var
|
|
10602
|
+
var import_react71 = require("@emotion/react");
|
|
10536
10603
|
|
|
10537
10604
|
// src/Reviews/components/ReviewItem.tsx
|
|
10538
|
-
var
|
|
10605
|
+
var import_jsx_runtime265 = require("@emotion/react/jsx-runtime");
|
|
10539
10606
|
var ReviewItem = ({ label, rating }) => {
|
|
10540
|
-
return /* @__PURE__ */ (0,
|
|
10607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
|
|
10541
10608
|
Box_default,
|
|
10542
10609
|
{
|
|
10543
10610
|
display: "flex",
|
|
@@ -10545,10 +10612,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
10545
10612
|
alignItems: "center",
|
|
10546
10613
|
width: "100%",
|
|
10547
10614
|
children: [
|
|
10548
|
-
/* @__PURE__ */ (0,
|
|
10549
|
-
/* @__PURE__ */ (0,
|
|
10550
|
-
/* @__PURE__ */ (0,
|
|
10551
|
-
/* @__PURE__ */ (0,
|
|
10615
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Text_default, { fontWeight: "semibold", children: label }),
|
|
10616
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
10617
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Icon_default, { variant: "StarSolid", size: "large", fill: "var(--surface-action-2)" }),
|
|
10618
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Text_default, { fontWeight: "semibold", children: rating.toFixed(1) })
|
|
10552
10619
|
] })
|
|
10553
10620
|
]
|
|
10554
10621
|
}
|
|
@@ -10557,14 +10624,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
10557
10624
|
var ReviewItem_default = ReviewItem;
|
|
10558
10625
|
|
|
10559
10626
|
// src/Reviews/Reviews.tsx
|
|
10560
|
-
var
|
|
10627
|
+
var import_jsx_runtime266 = require("@emotion/react/jsx-runtime");
|
|
10561
10628
|
var Reviews = ({
|
|
10562
10629
|
averageRating,
|
|
10563
10630
|
totalReviews,
|
|
10564
10631
|
items,
|
|
10565
10632
|
className
|
|
10566
10633
|
}) => {
|
|
10567
|
-
return /* @__PURE__ */ (0,
|
|
10634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
|
|
10568
10635
|
Box_default,
|
|
10569
10636
|
{
|
|
10570
10637
|
width: "100%",
|
|
@@ -10577,7 +10644,7 @@ var Reviews = ({
|
|
|
10577
10644
|
p: "var(--spacing-4)",
|
|
10578
10645
|
className,
|
|
10579
10646
|
children: [
|
|
10580
|
-
/* @__PURE__ */ (0,
|
|
10647
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
|
|
10581
10648
|
Box_default,
|
|
10582
10649
|
{
|
|
10583
10650
|
display: "flex",
|
|
@@ -10585,12 +10652,12 @@ var Reviews = ({
|
|
|
10585
10652
|
alignItems: "center",
|
|
10586
10653
|
gap: "var(--spacing-2)",
|
|
10587
10654
|
children: [
|
|
10588
|
-
/* @__PURE__ */ (0,
|
|
10589
|
-
/* @__PURE__ */ (0,
|
|
10655
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
10656
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
|
|
10590
10657
|
StarRating_default,
|
|
10591
10658
|
{
|
|
10592
10659
|
rating: averageRating,
|
|
10593
|
-
css:
|
|
10660
|
+
css: import_react71.css`
|
|
10594
10661
|
> svg {
|
|
10595
10662
|
height: 40px;
|
|
10596
10663
|
width: 40px;
|
|
@@ -10598,7 +10665,7 @@ var Reviews = ({
|
|
|
10598
10665
|
`
|
|
10599
10666
|
}
|
|
10600
10667
|
),
|
|
10601
|
-
/* @__PURE__ */ (0,
|
|
10668
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
10602
10669
|
"Overall Rating \u2022 ",
|
|
10603
10670
|
totalReviews,
|
|
10604
10671
|
" Review",
|
|
@@ -10607,14 +10674,14 @@ var Reviews = ({
|
|
|
10607
10674
|
]
|
|
10608
10675
|
}
|
|
10609
10676
|
),
|
|
10610
|
-
/* @__PURE__ */ (0,
|
|
10677
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
|
|
10611
10678
|
Box_default,
|
|
10612
10679
|
{
|
|
10613
10680
|
display: "flex",
|
|
10614
10681
|
flexDirection: "column",
|
|
10615
10682
|
gap: "var(--spacing-2)",
|
|
10616
10683
|
width: "100%",
|
|
10617
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
10684
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(ReviewItem_default, { label: item.label, rating: item.rating }, index))
|
|
10618
10685
|
}
|
|
10619
10686
|
)
|
|
10620
10687
|
]
|
|
@@ -10624,7 +10691,7 @@ var Reviews = ({
|
|
|
10624
10691
|
var Reviews_default = Reviews;
|
|
10625
10692
|
|
|
10626
10693
|
// src/Reviews/ReviewsShowcase.tsx
|
|
10627
|
-
var
|
|
10694
|
+
var import_jsx_runtime267 = require("@emotion/react/jsx-runtime");
|
|
10628
10695
|
var ReviewsShowcase = () => {
|
|
10629
10696
|
const sampleData = {
|
|
10630
10697
|
averageRating: 4,
|
|
@@ -10646,7 +10713,7 @@ var ReviewsShowcase = () => {
|
|
|
10646
10713
|
{ label: "Game Abundance", rating: 5 }
|
|
10647
10714
|
]
|
|
10648
10715
|
};
|
|
10649
|
-
return /* @__PURE__ */ (0,
|
|
10716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(
|
|
10650
10717
|
Box_default,
|
|
10651
10718
|
{
|
|
10652
10719
|
display: "flex",
|
|
@@ -10654,24 +10721,24 @@ var ReviewsShowcase = () => {
|
|
|
10654
10721
|
gap: "var(--spacing-8)",
|
|
10655
10722
|
p: "var(--spacing-6)",
|
|
10656
10723
|
children: [
|
|
10657
|
-
/* @__PURE__ */ (0,
|
|
10658
|
-
/* @__PURE__ */ (0,
|
|
10659
|
-
/* @__PURE__ */ (0,
|
|
10660
|
-
/* @__PURE__ */ (0,
|
|
10724
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Heading_default, { size: "lg", children: "Reviews Component Showcase" }),
|
|
10725
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
10726
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Heading_default, { size: "md", children: "Default Reviews" }),
|
|
10727
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Reviews_default, { ...sampleData }) })
|
|
10661
10728
|
] }),
|
|
10662
|
-
/* @__PURE__ */ (0,
|
|
10663
|
-
/* @__PURE__ */ (0,
|
|
10664
|
-
/* @__PURE__ */ (0,
|
|
10729
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
10730
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Heading_default, { size: "md", children: "High Rating Reviews" }),
|
|
10731
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Reviews_default, { ...highRatingData }) })
|
|
10665
10732
|
] }),
|
|
10666
|
-
/* @__PURE__ */ (0,
|
|
10667
|
-
/* @__PURE__ */ (0,
|
|
10668
|
-
/* @__PURE__ */ (0,
|
|
10733
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
10734
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Heading_default, { size: "md", children: "Mobile Layout (320px width)" }),
|
|
10735
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
|
|
10669
10736
|
Box_default,
|
|
10670
10737
|
{
|
|
10671
10738
|
maxWidth: "320px",
|
|
10672
10739
|
border: "1px solid var(--color-neutral-200)",
|
|
10673
10740
|
p: "var(--spacing-4)",
|
|
10674
|
-
children: /* @__PURE__ */ (0,
|
|
10741
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Reviews_default, { ...sampleData })
|
|
10675
10742
|
}
|
|
10676
10743
|
)
|
|
10677
10744
|
] })
|
|
@@ -10694,6 +10761,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
10694
10761
|
Column,
|
|
10695
10762
|
ContactLandownerButton,
|
|
10696
10763
|
Container,
|
|
10764
|
+
CtaCard,
|
|
10697
10765
|
Divider,
|
|
10698
10766
|
FeatureList,
|
|
10699
10767
|
FeatureListItem,
|