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