@landtrustinc/design-system 1.2.45 → 1.2.46-beta.1
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 +548 -487
- 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,
|
|
@@ -6792,10 +6793,69 @@ var ChatWidget = ({
|
|
|
6792
6793
|
};
|
|
6793
6794
|
var ChatWidget_default = ChatWidget;
|
|
6794
6795
|
|
|
6795
|
-
// src/
|
|
6796
|
+
// src/CtaCard/CtaCard.tsx
|
|
6797
|
+
var import_react38 = require("react");
|
|
6798
|
+
|
|
6799
|
+
// src/CtaCard/CtaCard.styles.ts
|
|
6796
6800
|
var import_react37 = require("@emotion/react");
|
|
6797
|
-
var
|
|
6801
|
+
var containerStyles2 = import_react37.css`
|
|
6802
|
+
display: flex;
|
|
6803
|
+
flex-direction: column;
|
|
6804
|
+
gap: var(--spacing-3);
|
|
6805
|
+
padding: var(--spacing-4);
|
|
6806
|
+
border-radius: var(--radius-lg);
|
|
6807
|
+
background-color: var(--surface-success);
|
|
6808
|
+
text-align: center;
|
|
6809
|
+
`;
|
|
6810
|
+
var titleStyles = import_react37.css`
|
|
6811
|
+
color: var(--color-primary-500);
|
|
6812
|
+
`;
|
|
6813
|
+
var descriptionStyles = import_react37.css`
|
|
6814
|
+
color: var(--color-primary-400);
|
|
6815
|
+
`;
|
|
6816
|
+
var buttonWrapperStyles = import_react37.css`
|
|
6817
|
+
display: flex;
|
|
6818
|
+
justify-content: center;
|
|
6819
|
+
margin-top: var(--spacing-2);
|
|
6820
|
+
`;
|
|
6821
|
+
|
|
6822
|
+
// src/CtaCard/CtaCard.tsx
|
|
6798
6823
|
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6824
|
+
var CtaCard = ({
|
|
6825
|
+
title,
|
|
6826
|
+
description,
|
|
6827
|
+
ctaLabel,
|
|
6828
|
+
ctaUrl,
|
|
6829
|
+
onDisplay,
|
|
6830
|
+
onCtaClick,
|
|
6831
|
+
className
|
|
6832
|
+
}) => {
|
|
6833
|
+
(0, import_react38.useEffect)(() => {
|
|
6834
|
+
onDisplay == null ? void 0 : onDisplay();
|
|
6835
|
+
}, [onDisplay]);
|
|
6836
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(Box_default, { css: containerStyles2, className, children: [
|
|
6837
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Text_default, { size: "sm", fontWeight: "bold", css: titleStyles, children: title }),
|
|
6838
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Text_default, { size: "xs", fontWeight: "semibold", css: descriptionStyles, children: description }),
|
|
6839
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Box_default, { css: buttonWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6840
|
+
Button_default,
|
|
6841
|
+
{
|
|
6842
|
+
as: "a",
|
|
6843
|
+
href: ctaUrl,
|
|
6844
|
+
variant: "primary",
|
|
6845
|
+
size: "base",
|
|
6846
|
+
onClick: onCtaClick,
|
|
6847
|
+
children: ctaLabel
|
|
6848
|
+
}
|
|
6849
|
+
) })
|
|
6850
|
+
] });
|
|
6851
|
+
};
|
|
6852
|
+
CtaCard.displayName = "CtaCard";
|
|
6853
|
+
var CtaCard_default = CtaCard;
|
|
6854
|
+
|
|
6855
|
+
// src/FeatureList/components/FeatureListItem.tsx
|
|
6856
|
+
var import_react39 = require("@emotion/react");
|
|
6857
|
+
var import_react_loading_skeleton = __toESM(require("react-loading-skeleton"));
|
|
6858
|
+
var import_jsx_runtime232 = require("@emotion/react/jsx-runtime");
|
|
6799
6859
|
var FeatureListItem = ({
|
|
6800
6860
|
iconVariant,
|
|
6801
6861
|
label,
|
|
@@ -6810,8 +6870,8 @@ var FeatureListItem = ({
|
|
|
6810
6870
|
}) => {
|
|
6811
6871
|
const iconDimensions = IconSizeMap[iconSize];
|
|
6812
6872
|
if (isLoading) {
|
|
6813
|
-
return /* @__PURE__ */ (0,
|
|
6814
|
-
/* @__PURE__ */ (0,
|
|
6873
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: [
|
|
6874
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6815
6875
|
Box_default,
|
|
6816
6876
|
{
|
|
6817
6877
|
display: "flex",
|
|
@@ -6821,7 +6881,7 @@ var FeatureListItem = ({
|
|
|
6821
6881
|
className,
|
|
6822
6882
|
...rest,
|
|
6823
6883
|
children: [
|
|
6824
|
-
/* @__PURE__ */ (0,
|
|
6884
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6825
6885
|
import_react_loading_skeleton.default,
|
|
6826
6886
|
{
|
|
6827
6887
|
circle: true,
|
|
@@ -6830,24 +6890,24 @@ var FeatureListItem = ({
|
|
|
6830
6890
|
borderRadius: 4
|
|
6831
6891
|
}
|
|
6832
6892
|
),
|
|
6833
|
-
/* @__PURE__ */ (0,
|
|
6893
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_loading_skeleton.default, { width: 120, height: 16, borderRadius: 4 })
|
|
6834
6894
|
]
|
|
6835
6895
|
}
|
|
6836
6896
|
),
|
|
6837
|
-
subtitle && /* @__PURE__ */ (0,
|
|
6838
|
-
/* @__PURE__ */ (0,
|
|
6839
|
-
/* @__PURE__ */ (0,
|
|
6897
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
6898
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { minWidth: "var(--spacing-6)", children: "\xA0" }),
|
|
6899
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_loading_skeleton.default, { width: 150, height: 14, borderRadius: 4 })
|
|
6840
6900
|
] })
|
|
6841
6901
|
] });
|
|
6842
6902
|
}
|
|
6843
|
-
return /* @__PURE__ */ (0,
|
|
6844
|
-
/* @__PURE__ */ (0,
|
|
6903
|
+
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: [
|
|
6904
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Text_default, { as: "span", fontWeight: "bold", children: [
|
|
6845
6905
|
label,
|
|
6846
6906
|
" "
|
|
6847
6907
|
] }),
|
|
6848
6908
|
subtitle
|
|
6849
|
-
] }) }) : /* @__PURE__ */ (0,
|
|
6850
|
-
/* @__PURE__ */ (0,
|
|
6909
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(import_jsx_runtime232.Fragment, { children: [
|
|
6910
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6851
6911
|
Box_default,
|
|
6852
6912
|
{
|
|
6853
6913
|
display: "flex",
|
|
@@ -6856,33 +6916,33 @@ var FeatureListItem = ({
|
|
|
6856
6916
|
className,
|
|
6857
6917
|
...rest,
|
|
6858
6918
|
children: [
|
|
6859
|
-
iconVariant && /* @__PURE__ */ (0,
|
|
6919
|
+
iconVariant && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6860
6920
|
Icon_default,
|
|
6861
6921
|
{
|
|
6862
6922
|
variant: iconVariant,
|
|
6863
6923
|
size: iconSize,
|
|
6864
6924
|
fill: iconColor,
|
|
6865
|
-
css:
|
|
6925
|
+
css: import_react39.css`
|
|
6866
6926
|
flex-shrink: 0;
|
|
6867
6927
|
`
|
|
6868
6928
|
}
|
|
6869
6929
|
),
|
|
6870
|
-
/* @__PURE__ */ (0,
|
|
6930
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { fontWeight: "semibold", size: labelSize, children: label })
|
|
6871
6931
|
]
|
|
6872
6932
|
}
|
|
6873
6933
|
),
|
|
6874
|
-
subtitle && /* @__PURE__ */ (0,
|
|
6875
|
-
/* @__PURE__ */ (0,
|
|
6876
|
-
/* @__PURE__ */ (0,
|
|
6934
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
6935
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { minWidth: "var(--spacing-6)", children: "\xA0" }),
|
|
6936
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { size: "sm", children: subtitle })
|
|
6877
6937
|
] })
|
|
6878
6938
|
] }) });
|
|
6879
6939
|
};
|
|
6880
6940
|
var FeatureListItem_default = FeatureListItem;
|
|
6881
6941
|
|
|
6882
6942
|
// src/FeatureList/FeatureList.tsx
|
|
6883
|
-
var
|
|
6943
|
+
var import_jsx_runtime233 = require("@emotion/react/jsx-runtime");
|
|
6884
6944
|
var FeatureList = ({ heading, items, className }) => {
|
|
6885
|
-
return /* @__PURE__ */ (0,
|
|
6945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
|
|
6886
6946
|
Box_default,
|
|
6887
6947
|
{
|
|
6888
6948
|
display: "flex",
|
|
@@ -6890,8 +6950,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
6890
6950
|
gap: "var(--spacing-2)",
|
|
6891
6951
|
className,
|
|
6892
6952
|
children: [
|
|
6893
|
-
heading && /* @__PURE__ */ (0,
|
|
6894
|
-
/* @__PURE__ */ (0,
|
|
6953
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Text_default, { fontWeight: "bold", children: heading }),
|
|
6954
|
+
/* @__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}`)) })
|
|
6895
6955
|
]
|
|
6896
6956
|
}
|
|
6897
6957
|
);
|
|
@@ -6899,8 +6959,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
6899
6959
|
var FeatureList_default = FeatureList;
|
|
6900
6960
|
|
|
6901
6961
|
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
6902
|
-
var
|
|
6903
|
-
var cardContainerStyles =
|
|
6962
|
+
var import_react40 = require("@emotion/react");
|
|
6963
|
+
var cardContainerStyles = import_react40.css`
|
|
6904
6964
|
position: relative;
|
|
6905
6965
|
height: 335px;
|
|
6906
6966
|
|
|
@@ -6908,12 +6968,12 @@ var cardContainerStyles = import_react38.css`
|
|
|
6908
6968
|
height: 480px;
|
|
6909
6969
|
}
|
|
6910
6970
|
`;
|
|
6911
|
-
var cardContentStyles =
|
|
6971
|
+
var cardContentStyles = import_react40.css`
|
|
6912
6972
|
position: relative;
|
|
6913
6973
|
border-radius: var(--spacing-4);
|
|
6914
6974
|
overflow: hidden;
|
|
6915
6975
|
`;
|
|
6916
|
-
var getBackgroundWithGradient = (imageUrl) =>
|
|
6976
|
+
var getBackgroundWithGradient = (imageUrl) => import_react40.css`
|
|
6917
6977
|
background-image: linear-gradient(
|
|
6918
6978
|
180deg,
|
|
6919
6979
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -6927,7 +6987,7 @@ var getBackgroundWithGradient = (imageUrl) => import_react38.css`
|
|
|
6927
6987
|
`;
|
|
6928
6988
|
|
|
6929
6989
|
// src/FieldNoteCard/FieldNoteCard.tsx
|
|
6930
|
-
var
|
|
6990
|
+
var import_jsx_runtime234 = require("@emotion/react/jsx-runtime");
|
|
6931
6991
|
var FieldNoteCard = ({
|
|
6932
6992
|
backgroundImage,
|
|
6933
6993
|
title,
|
|
@@ -6936,14 +6996,14 @@ var FieldNoteCard = ({
|
|
|
6936
6996
|
className,
|
|
6937
6997
|
...rest
|
|
6938
6998
|
}) => {
|
|
6939
|
-
return /* @__PURE__ */ (0,
|
|
6999
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6940
7000
|
Box_default,
|
|
6941
7001
|
{
|
|
6942
7002
|
display: "flex",
|
|
6943
7003
|
css: cardContainerStyles,
|
|
6944
7004
|
className,
|
|
6945
7005
|
...rest,
|
|
6946
|
-
children: /* @__PURE__ */ (0,
|
|
7006
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6947
7007
|
Box_default,
|
|
6948
7008
|
{
|
|
6949
7009
|
display: "flex",
|
|
@@ -6951,9 +7011,9 @@ var FieldNoteCard = ({
|
|
|
6951
7011
|
justifyContent: "flex-end",
|
|
6952
7012
|
p: 6,
|
|
6953
7013
|
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
6954
|
-
children: /* @__PURE__ */ (0,
|
|
6955
|
-
/* @__PURE__ */ (0,
|
|
6956
|
-
/* @__PURE__ */ (0,
|
|
7014
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
7015
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
7016
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
6957
7017
|
] })
|
|
6958
7018
|
}
|
|
6959
7019
|
)
|
|
@@ -6963,14 +7023,14 @@ var FieldNoteCard = ({
|
|
|
6963
7023
|
var FieldNoteCard_default = FieldNoteCard;
|
|
6964
7024
|
|
|
6965
7025
|
// src/Form/FormField.tsx
|
|
6966
|
-
var
|
|
6967
|
-
var
|
|
6968
|
-
var fieldContainerStyles =
|
|
7026
|
+
var import_react41 = require("@emotion/react");
|
|
7027
|
+
var import_jsx_runtime235 = require("@emotion/react/jsx-runtime");
|
|
7028
|
+
var fieldContainerStyles = import_react41.css`
|
|
6969
7029
|
display: flex;
|
|
6970
7030
|
flex-direction: column;
|
|
6971
7031
|
gap: ${space["2"]};
|
|
6972
7032
|
`;
|
|
6973
|
-
var labelStyles2 =
|
|
7033
|
+
var labelStyles2 = import_react41.css`
|
|
6974
7034
|
font-family: ${fonts.base};
|
|
6975
7035
|
font-size: ${fontSizes.sm};
|
|
6976
7036
|
font-weight: ${fontWeights.medium};
|
|
@@ -6978,17 +7038,17 @@ var labelStyles2 = import_react39.css`
|
|
|
6978
7038
|
color: ${colors.gray["900"]};
|
|
6979
7039
|
margin-bottom: ${space["1"]};
|
|
6980
7040
|
`;
|
|
6981
|
-
var requiredIndicatorStyles =
|
|
7041
|
+
var requiredIndicatorStyles = import_react41.css`
|
|
6982
7042
|
color: ${colors.red["500"]};
|
|
6983
7043
|
margin-left: ${space["1"]};
|
|
6984
7044
|
`;
|
|
6985
|
-
var helpTextStyles =
|
|
7045
|
+
var helpTextStyles = import_react41.css`
|
|
6986
7046
|
font-family: ${fonts.base};
|
|
6987
7047
|
font-size: ${fontSizes.sm};
|
|
6988
7048
|
line-height: ${lineHeights.tight};
|
|
6989
7049
|
color: ${colors.gray["600"]};
|
|
6990
7050
|
`;
|
|
6991
|
-
var errorTextStyles =
|
|
7051
|
+
var errorTextStyles = import_react41.css`
|
|
6992
7052
|
font-family: ${fonts.base};
|
|
6993
7053
|
font-size: ${fontSizes.sm};
|
|
6994
7054
|
line-height: ${lineHeights.tight};
|
|
@@ -6997,7 +7057,7 @@ var errorTextStyles = import_react39.css`
|
|
|
6997
7057
|
align-items: center;
|
|
6998
7058
|
gap: ${space["1"]};
|
|
6999
7059
|
`;
|
|
7000
|
-
var successTextStyles =
|
|
7060
|
+
var successTextStyles = import_react41.css`
|
|
7001
7061
|
font-family: ${fonts.base};
|
|
7002
7062
|
font-size: ${fontSizes.sm};
|
|
7003
7063
|
line-height: ${lineHeights.tight};
|
|
@@ -7006,7 +7066,7 @@ var successTextStyles = import_react39.css`
|
|
|
7006
7066
|
align-items: center;
|
|
7007
7067
|
gap: ${space["1"]};
|
|
7008
7068
|
`;
|
|
7009
|
-
var visuallyHiddenStyles =
|
|
7069
|
+
var visuallyHiddenStyles = import_react41.css`
|
|
7010
7070
|
position: absolute;
|
|
7011
7071
|
width: 1px;
|
|
7012
7072
|
height: 1px;
|
|
@@ -7031,21 +7091,21 @@ var FormField = ({
|
|
|
7031
7091
|
const hasError = !!error;
|
|
7032
7092
|
const hasSuccess = !!success && !hasError;
|
|
7033
7093
|
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
7034
|
-
return /* @__PURE__ */ (0,
|
|
7035
|
-
label && /* @__PURE__ */ (0,
|
|
7094
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
7095
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(
|
|
7036
7096
|
"label",
|
|
7037
7097
|
{
|
|
7038
7098
|
htmlFor,
|
|
7039
7099
|
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
7040
7100
|
children: [
|
|
7041
7101
|
label,
|
|
7042
|
-
required && /* @__PURE__ */ (0,
|
|
7102
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
7043
7103
|
]
|
|
7044
7104
|
}
|
|
7045
7105
|
),
|
|
7046
7106
|
children,
|
|
7047
|
-
hasError && /* @__PURE__ */ (0,
|
|
7048
|
-
/* @__PURE__ */ (0,
|
|
7107
|
+
hasError && /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("div", { css: errorTextStyles, role: "alert", children: [
|
|
7108
|
+
/* @__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)(
|
|
7049
7109
|
"path",
|
|
7050
7110
|
{
|
|
7051
7111
|
fillRule: "evenodd",
|
|
@@ -7055,8 +7115,8 @@ var FormField = ({
|
|
|
7055
7115
|
) }),
|
|
7056
7116
|
error
|
|
7057
7117
|
] }),
|
|
7058
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
7059
|
-
/* @__PURE__ */ (0,
|
|
7118
|
+
hasSuccess && /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("div", { css: successTextStyles, children: [
|
|
7119
|
+
/* @__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)(
|
|
7060
7120
|
"path",
|
|
7061
7121
|
{
|
|
7062
7122
|
fillRule: "evenodd",
|
|
@@ -7066,15 +7126,15 @@ var FormField = ({
|
|
|
7066
7126
|
) }),
|
|
7067
7127
|
success
|
|
7068
7128
|
] }),
|
|
7069
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
7129
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
7070
7130
|
] });
|
|
7071
7131
|
};
|
|
7072
7132
|
|
|
7073
7133
|
// src/Form/Input.tsx
|
|
7074
|
-
var
|
|
7075
|
-
var
|
|
7076
|
-
var
|
|
7077
|
-
var inputStyles =
|
|
7134
|
+
var import_react42 = require("@emotion/react");
|
|
7135
|
+
var import_react43 = require("react");
|
|
7136
|
+
var import_jsx_runtime236 = require("@emotion/react/jsx-runtime");
|
|
7137
|
+
var inputStyles = import_react42.css`
|
|
7078
7138
|
position: relative;
|
|
7079
7139
|
width: 100%;
|
|
7080
7140
|
font-family: ${fonts.base};
|
|
@@ -7111,19 +7171,19 @@ var inputStyles = import_react40.css`
|
|
|
7111
7171
|
}
|
|
7112
7172
|
`;
|
|
7113
7173
|
var sizeStyles = {
|
|
7114
|
-
sm:
|
|
7174
|
+
sm: import_react42.css`
|
|
7115
7175
|
padding: ${space["2"]} ${space["3"]};
|
|
7116
7176
|
font-size: ${fontSizes.sm};
|
|
7117
7177
|
line-height: ${lineHeights.tight};
|
|
7118
7178
|
height: ${space["8"]};
|
|
7119
7179
|
`,
|
|
7120
|
-
md:
|
|
7180
|
+
md: import_react42.css`
|
|
7121
7181
|
padding: ${space["3"]} ${space["4"]};
|
|
7122
7182
|
font-size: ${fontSizes.base};
|
|
7123
7183
|
line-height: ${lineHeights.normal};
|
|
7124
7184
|
height: ${space["10"]};
|
|
7125
7185
|
`,
|
|
7126
|
-
lg:
|
|
7186
|
+
lg: import_react42.css`
|
|
7127
7187
|
padding: ${space["4"]} ${space["5"]};
|
|
7128
7188
|
font-size: ${fontSizes.lg};
|
|
7129
7189
|
line-height: ${lineHeights.normal};
|
|
@@ -7131,8 +7191,8 @@ var sizeStyles = {
|
|
|
7131
7191
|
`
|
|
7132
7192
|
};
|
|
7133
7193
|
var variantStyles = {
|
|
7134
|
-
default:
|
|
7135
|
-
error:
|
|
7194
|
+
default: import_react42.css``,
|
|
7195
|
+
error: import_react42.css`
|
|
7136
7196
|
border-color: ${colors.red["500"]};
|
|
7137
7197
|
|
|
7138
7198
|
&:focus {
|
|
@@ -7140,7 +7200,7 @@ var variantStyles = {
|
|
|
7140
7200
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
7141
7201
|
}
|
|
7142
7202
|
`,
|
|
7143
|
-
success:
|
|
7203
|
+
success: import_react42.css`
|
|
7144
7204
|
border-color: ${colors.accent.green};
|
|
7145
7205
|
|
|
7146
7206
|
&:focus {
|
|
@@ -7149,7 +7209,7 @@ var variantStyles = {
|
|
|
7149
7209
|
}
|
|
7150
7210
|
`
|
|
7151
7211
|
};
|
|
7152
|
-
var inputWithIconStyles =
|
|
7212
|
+
var inputWithIconStyles = import_react42.css`
|
|
7153
7213
|
padding-left: ${space["10"]};
|
|
7154
7214
|
|
|
7155
7215
|
&.has-end-icon {
|
|
@@ -7160,7 +7220,7 @@ var inputWithIconStyles = import_react40.css`
|
|
|
7160
7220
|
padding-left: ${space["10"]};
|
|
7161
7221
|
}
|
|
7162
7222
|
`;
|
|
7163
|
-
var iconContainerStyles =
|
|
7223
|
+
var iconContainerStyles = import_react42.css`
|
|
7164
7224
|
position: absolute;
|
|
7165
7225
|
top: 50%;
|
|
7166
7226
|
transform: translateY(-50%);
|
|
@@ -7171,20 +7231,20 @@ var iconContainerStyles = import_react40.css`
|
|
|
7171
7231
|
pointer-events: none;
|
|
7172
7232
|
z-index: 1;
|
|
7173
7233
|
`;
|
|
7174
|
-
var startIconStyles =
|
|
7234
|
+
var startIconStyles = import_react42.css`
|
|
7175
7235
|
${iconContainerStyles}
|
|
7176
7236
|
left: ${space["3"]};
|
|
7177
7237
|
`;
|
|
7178
|
-
var endIconStyles =
|
|
7238
|
+
var endIconStyles = import_react42.css`
|
|
7179
7239
|
${iconContainerStyles}
|
|
7180
7240
|
right: ${space["3"]};
|
|
7181
7241
|
`;
|
|
7182
|
-
var inputWrapperStyles =
|
|
7242
|
+
var inputWrapperStyles = import_react42.css`
|
|
7183
7243
|
position: relative;
|
|
7184
7244
|
display: inline-block;
|
|
7185
7245
|
width: 100%;
|
|
7186
7246
|
`;
|
|
7187
|
-
var Input = (0,
|
|
7247
|
+
var Input = (0, import_react43.forwardRef)(
|
|
7188
7248
|
({
|
|
7189
7249
|
size = "md",
|
|
7190
7250
|
variant = "default",
|
|
@@ -7203,9 +7263,9 @@ var Input = (0, import_react41.forwardRef)(
|
|
|
7203
7263
|
hasEndIcon && "has-end-icon",
|
|
7204
7264
|
className
|
|
7205
7265
|
].filter(Boolean).join(" ");
|
|
7206
|
-
return /* @__PURE__ */ (0,
|
|
7207
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
7208
|
-
/* @__PURE__ */ (0,
|
|
7266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)("div", { css: inputWrapperStyles, children: [
|
|
7267
|
+
hasStartIcon && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)("div", { css: startIconStyles, children: startIcon }),
|
|
7268
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
|
|
7209
7269
|
"input",
|
|
7210
7270
|
{
|
|
7211
7271
|
ref,
|
|
@@ -7222,17 +7282,17 @@ var Input = (0, import_react41.forwardRef)(
|
|
|
7222
7282
|
...props
|
|
7223
7283
|
}
|
|
7224
7284
|
),
|
|
7225
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
7285
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
7226
7286
|
] });
|
|
7227
7287
|
}
|
|
7228
7288
|
);
|
|
7229
7289
|
Input.displayName = "Input";
|
|
7230
7290
|
|
|
7231
7291
|
// src/Form/Select.tsx
|
|
7232
|
-
var
|
|
7233
|
-
var
|
|
7234
|
-
var
|
|
7235
|
-
var selectStyles =
|
|
7292
|
+
var import_react44 = require("@emotion/react");
|
|
7293
|
+
var import_react45 = require("react");
|
|
7294
|
+
var import_jsx_runtime237 = require("@emotion/react/jsx-runtime");
|
|
7295
|
+
var selectStyles = import_react44.css`
|
|
7236
7296
|
position: relative;
|
|
7237
7297
|
width: 100%;
|
|
7238
7298
|
font-family: ${fonts.base};
|
|
@@ -7271,19 +7331,19 @@ var selectStyles = import_react42.css`
|
|
|
7271
7331
|
}
|
|
7272
7332
|
`;
|
|
7273
7333
|
var sizeStyles2 = {
|
|
7274
|
-
sm:
|
|
7334
|
+
sm: import_react44.css`
|
|
7275
7335
|
padding: ${space["2"]} ${space["3"]};
|
|
7276
7336
|
font-size: ${fontSizes.sm};
|
|
7277
7337
|
line-height: ${lineHeights.tight};
|
|
7278
7338
|
height: ${space["8"]};
|
|
7279
7339
|
`,
|
|
7280
|
-
md:
|
|
7340
|
+
md: import_react44.css`
|
|
7281
7341
|
padding: ${space["3"]} ${space["4"]};
|
|
7282
7342
|
font-size: ${fontSizes.base};
|
|
7283
7343
|
line-height: ${lineHeights.normal};
|
|
7284
7344
|
height: ${space["10"]};
|
|
7285
7345
|
`,
|
|
7286
|
-
lg:
|
|
7346
|
+
lg: import_react44.css`
|
|
7287
7347
|
padding: ${space["4"]} ${space["5"]};
|
|
7288
7348
|
font-size: ${fontSizes.lg};
|
|
7289
7349
|
line-height: ${lineHeights.normal};
|
|
@@ -7291,8 +7351,8 @@ var sizeStyles2 = {
|
|
|
7291
7351
|
`
|
|
7292
7352
|
};
|
|
7293
7353
|
var variantStyles2 = {
|
|
7294
|
-
default:
|
|
7295
|
-
error:
|
|
7354
|
+
default: import_react44.css``,
|
|
7355
|
+
error: import_react44.css`
|
|
7296
7356
|
border-color: ${colors.red["500"]};
|
|
7297
7357
|
|
|
7298
7358
|
&:focus {
|
|
@@ -7300,7 +7360,7 @@ var variantStyles2 = {
|
|
|
7300
7360
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
7301
7361
|
}
|
|
7302
7362
|
`,
|
|
7303
|
-
success:
|
|
7363
|
+
success: import_react44.css`
|
|
7304
7364
|
border-color: ${colors.accent.green};
|
|
7305
7365
|
|
|
7306
7366
|
&:focus {
|
|
@@ -7309,7 +7369,7 @@ var variantStyles2 = {
|
|
|
7309
7369
|
}
|
|
7310
7370
|
`
|
|
7311
7371
|
};
|
|
7312
|
-
var optionStyles =
|
|
7372
|
+
var optionStyles = import_react44.css`
|
|
7313
7373
|
background-color: ${colors.light["100"]};
|
|
7314
7374
|
color: ${colors.gray["900"]};
|
|
7315
7375
|
|
|
@@ -7318,7 +7378,7 @@ var optionStyles = import_react42.css`
|
|
|
7318
7378
|
background-color: ${colors.gray["100"]};
|
|
7319
7379
|
}
|
|
7320
7380
|
`;
|
|
7321
|
-
var Select = (0,
|
|
7381
|
+
var Select = (0, import_react45.forwardRef)(
|
|
7322
7382
|
({
|
|
7323
7383
|
size = "md",
|
|
7324
7384
|
variant = "default",
|
|
@@ -7328,7 +7388,7 @@ var Select = (0, import_react43.forwardRef)(
|
|
|
7328
7388
|
className = "",
|
|
7329
7389
|
...props
|
|
7330
7390
|
}, ref) => {
|
|
7331
|
-
return /* @__PURE__ */ (0,
|
|
7391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(
|
|
7332
7392
|
"select",
|
|
7333
7393
|
{
|
|
7334
7394
|
ref,
|
|
@@ -7337,8 +7397,8 @@ var Select = (0, import_react43.forwardRef)(
|
|
|
7337
7397
|
className,
|
|
7338
7398
|
...props,
|
|
7339
7399
|
children: [
|
|
7340
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
7341
|
-
options.map((option) => /* @__PURE__ */ (0,
|
|
7400
|
+
placeholderOption && /* @__PURE__ */ (0, import_jsx_runtime237.jsx)("option", { value: "", disabled: true, css: optionStyles, children: placeholderOption }),
|
|
7401
|
+
options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
|
|
7342
7402
|
"option",
|
|
7343
7403
|
{
|
|
7344
7404
|
value: option.value,
|
|
@@ -7356,10 +7416,10 @@ var Select = (0, import_react43.forwardRef)(
|
|
|
7356
7416
|
Select.displayName = "Select";
|
|
7357
7417
|
|
|
7358
7418
|
// src/Grid/Column.tsx
|
|
7359
|
-
var
|
|
7419
|
+
var import_react47 = require("@emotion/react");
|
|
7360
7420
|
|
|
7361
7421
|
// src/Grid/utils.ts
|
|
7362
|
-
var
|
|
7422
|
+
var import_react46 = require("@emotion/react");
|
|
7363
7423
|
var LayoutTokens = {
|
|
7364
7424
|
containers: {
|
|
7365
7425
|
sm: screens.sm,
|
|
@@ -7399,11 +7459,11 @@ var getResponsiveValue = (value) => {
|
|
|
7399
7459
|
var generateGridColumns = (columns) => {
|
|
7400
7460
|
const baseColumns = getResponsiveValue(columns);
|
|
7401
7461
|
if (typeof columns === "number") {
|
|
7402
|
-
return
|
|
7462
|
+
return import_react46.css`
|
|
7403
7463
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
7404
7464
|
`;
|
|
7405
7465
|
}
|
|
7406
|
-
return
|
|
7466
|
+
return import_react46.css`
|
|
7407
7467
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
7408
7468
|
|
|
7409
7469
|
${media.sm} {
|
|
@@ -7435,11 +7495,11 @@ var generateGridColumns = (columns) => {
|
|
|
7435
7495
|
var generateGapStyles = (gap2) => {
|
|
7436
7496
|
const baseGap = getResponsiveValue(gap2);
|
|
7437
7497
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
7438
|
-
return
|
|
7498
|
+
return import_react46.css`
|
|
7439
7499
|
gap: ${space[gap2]};
|
|
7440
7500
|
`;
|
|
7441
7501
|
}
|
|
7442
|
-
return
|
|
7502
|
+
return import_react46.css`
|
|
7443
7503
|
gap: ${space[baseGap]};
|
|
7444
7504
|
|
|
7445
7505
|
${media.sm} {
|
|
@@ -7462,11 +7522,11 @@ var generateGapStyles = (gap2) => {
|
|
|
7462
7522
|
var generateRowGapStyles = (rowGap) => {
|
|
7463
7523
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
7464
7524
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
7465
|
-
return
|
|
7525
|
+
return import_react46.css`
|
|
7466
7526
|
row-gap: ${space[rowGap]};
|
|
7467
7527
|
`;
|
|
7468
7528
|
}
|
|
7469
|
-
return
|
|
7529
|
+
return import_react46.css`
|
|
7470
7530
|
row-gap: ${space[baseRowGap]};
|
|
7471
7531
|
|
|
7472
7532
|
${media.sm} {
|
|
@@ -7489,11 +7549,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
7489
7549
|
var generateColumnGapStyles = (columnGap) => {
|
|
7490
7550
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
7491
7551
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
7492
|
-
return
|
|
7552
|
+
return import_react46.css`
|
|
7493
7553
|
column-gap: ${space[columnGap]};
|
|
7494
7554
|
`;
|
|
7495
7555
|
}
|
|
7496
|
-
return
|
|
7556
|
+
return import_react46.css`
|
|
7497
7557
|
column-gap: ${space[baseColumnGap]};
|
|
7498
7558
|
|
|
7499
7559
|
${media.sm} {
|
|
@@ -7516,11 +7576,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
7516
7576
|
var generateColumnSpan = (span) => {
|
|
7517
7577
|
const baseSpan = getResponsiveValue(span);
|
|
7518
7578
|
if (typeof span === "string" || typeof span === "number") {
|
|
7519
|
-
return
|
|
7579
|
+
return import_react46.css`
|
|
7520
7580
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
7521
7581
|
`;
|
|
7522
7582
|
}
|
|
7523
|
-
return
|
|
7583
|
+
return import_react46.css`
|
|
7524
7584
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
7525
7585
|
|
|
7526
7586
|
${media.sm} {
|
|
@@ -7543,11 +7603,11 @@ var generateColumnSpan = (span) => {
|
|
|
7543
7603
|
var generateAlignItems = (alignItems) => {
|
|
7544
7604
|
const baseAlign = getResponsiveValue(alignItems);
|
|
7545
7605
|
if (typeof alignItems === "string") {
|
|
7546
|
-
return
|
|
7606
|
+
return import_react46.css`
|
|
7547
7607
|
align-items: ${alignItems};
|
|
7548
7608
|
`;
|
|
7549
7609
|
}
|
|
7550
|
-
return
|
|
7610
|
+
return import_react46.css`
|
|
7551
7611
|
align-items: ${baseAlign};
|
|
7552
7612
|
|
|
7553
7613
|
${media.sm} {
|
|
@@ -7570,11 +7630,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
7570
7630
|
var generateJustifyItems = (justifyItems) => {
|
|
7571
7631
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
7572
7632
|
if (typeof justifyItems === "string") {
|
|
7573
|
-
return
|
|
7633
|
+
return import_react46.css`
|
|
7574
7634
|
justify-items: ${justifyItems};
|
|
7575
7635
|
`;
|
|
7576
7636
|
}
|
|
7577
|
-
return
|
|
7637
|
+
return import_react46.css`
|
|
7578
7638
|
justify-items: ${baseJustify};
|
|
7579
7639
|
|
|
7580
7640
|
${media.sm} {
|
|
@@ -7596,7 +7656,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
7596
7656
|
};
|
|
7597
7657
|
|
|
7598
7658
|
// src/Grid/Column.tsx
|
|
7599
|
-
var
|
|
7659
|
+
var import_jsx_runtime238 = require("@emotion/react/jsx-runtime");
|
|
7600
7660
|
var Column = ({
|
|
7601
7661
|
span,
|
|
7602
7662
|
start,
|
|
@@ -7609,30 +7669,30 @@ var Column = ({
|
|
|
7609
7669
|
}) => {
|
|
7610
7670
|
const columnStyles = [
|
|
7611
7671
|
span && generateColumnSpan(span),
|
|
7612
|
-
start &&
|
|
7672
|
+
start && import_react47.css`
|
|
7613
7673
|
grid-column-start: ${start};
|
|
7614
7674
|
`,
|
|
7615
|
-
end &&
|
|
7675
|
+
end && import_react47.css`
|
|
7616
7676
|
grid-column-end: ${end};
|
|
7617
7677
|
`,
|
|
7618
|
-
row &&
|
|
7678
|
+
row && import_react47.css`
|
|
7619
7679
|
grid-row: ${row};
|
|
7620
7680
|
`,
|
|
7621
|
-
rowSpan &&
|
|
7681
|
+
rowSpan && import_react47.css`
|
|
7622
7682
|
grid-row: span ${rowSpan};
|
|
7623
7683
|
`,
|
|
7624
|
-
area &&
|
|
7684
|
+
area && import_react47.css`
|
|
7625
7685
|
grid-area: ${area};
|
|
7626
7686
|
`
|
|
7627
7687
|
].filter(Boolean);
|
|
7628
|
-
return /* @__PURE__ */ (0,
|
|
7688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
7629
7689
|
};
|
|
7630
7690
|
var Column_default = Column;
|
|
7631
7691
|
|
|
7632
7692
|
// src/Grid/Grid.tsx
|
|
7633
|
-
var
|
|
7634
|
-
var
|
|
7635
|
-
var baseGridStyles =
|
|
7693
|
+
var import_react48 = require("@emotion/react");
|
|
7694
|
+
var import_jsx_runtime239 = require("@emotion/react/jsx-runtime");
|
|
7695
|
+
var baseGridStyles = import_react48.css`
|
|
7636
7696
|
display: grid;
|
|
7637
7697
|
`;
|
|
7638
7698
|
var Grid = ({
|
|
@@ -7657,27 +7717,27 @@ var Grid = ({
|
|
|
7657
7717
|
columnGap && generateColumnGapStyles(columnGap),
|
|
7658
7718
|
alignItems && generateAlignItems(alignItems),
|
|
7659
7719
|
justifyItems && generateJustifyItems(justifyItems),
|
|
7660
|
-
autoRows &&
|
|
7720
|
+
autoRows && import_react48.css`
|
|
7661
7721
|
grid-auto-rows: ${autoRows};
|
|
7662
7722
|
`,
|
|
7663
|
-
autoColumns &&
|
|
7723
|
+
autoColumns && import_react48.css`
|
|
7664
7724
|
grid-auto-columns: ${autoColumns};
|
|
7665
7725
|
`,
|
|
7666
|
-
templateAreas &&
|
|
7726
|
+
templateAreas && import_react48.css`
|
|
7667
7727
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
7668
7728
|
`,
|
|
7669
|
-
justifyContent &&
|
|
7729
|
+
justifyContent && import_react48.css`
|
|
7670
7730
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
7671
7731
|
`
|
|
7672
7732
|
].filter(Boolean);
|
|
7673
|
-
return /* @__PURE__ */ (0,
|
|
7733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
7674
7734
|
};
|
|
7675
7735
|
var Grid_default = Grid;
|
|
7676
7736
|
|
|
7677
7737
|
// src/Grid/GridContainer.tsx
|
|
7678
|
-
var
|
|
7679
|
-
var
|
|
7680
|
-
var baseContainerStyles =
|
|
7738
|
+
var import_react49 = require("@emotion/react");
|
|
7739
|
+
var import_jsx_runtime240 = require("@emotion/react/jsx-runtime");
|
|
7740
|
+
var baseContainerStyles = import_react49.css`
|
|
7681
7741
|
width: 100%;
|
|
7682
7742
|
margin: 0 auto;
|
|
7683
7743
|
padding-left: 1rem;
|
|
@@ -7685,14 +7745,14 @@ var baseContainerStyles = import_react47.css`
|
|
|
7685
7745
|
`;
|
|
7686
7746
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
7687
7747
|
if (maxWidth === "full") {
|
|
7688
|
-
return
|
|
7748
|
+
return import_react49.css`
|
|
7689
7749
|
max-width: 100%;
|
|
7690
7750
|
padding-left: 0;
|
|
7691
7751
|
padding-right: 0;
|
|
7692
7752
|
`;
|
|
7693
7753
|
}
|
|
7694
7754
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
7695
|
-
return
|
|
7755
|
+
return import_react49.css`
|
|
7696
7756
|
max-width: ${width2};
|
|
7697
7757
|
|
|
7698
7758
|
${media.sm} {
|
|
@@ -7717,17 +7777,17 @@ var GridContainer = ({
|
|
|
7717
7777
|
className,
|
|
7718
7778
|
...props
|
|
7719
7779
|
}) => {
|
|
7720
|
-
const
|
|
7780
|
+
const containerStyles6 = [
|
|
7721
7781
|
baseContainerStyles,
|
|
7722
7782
|
generateMaxWidthStyles(maxWidth)
|
|
7723
7783
|
];
|
|
7724
|
-
return /* @__PURE__ */ (0,
|
|
7784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Box_default, { css: containerStyles6, className, ...props, children });
|
|
7725
7785
|
};
|
|
7726
7786
|
var GridContainer_default = GridContainer;
|
|
7727
7787
|
|
|
7728
7788
|
// src/HuntCard/HuntCard.styles.ts
|
|
7729
|
-
var
|
|
7730
|
-
var cardContainerStyles2 =
|
|
7789
|
+
var import_react50 = require("@emotion/react");
|
|
7790
|
+
var cardContainerStyles2 = import_react50.css`
|
|
7731
7791
|
position: relative;
|
|
7732
7792
|
height: 335px;
|
|
7733
7793
|
|
|
@@ -7735,12 +7795,12 @@ var cardContainerStyles2 = import_react48.css`
|
|
|
7735
7795
|
height: 480px;
|
|
7736
7796
|
}
|
|
7737
7797
|
`;
|
|
7738
|
-
var cardContentStyles2 =
|
|
7798
|
+
var cardContentStyles2 = import_react50.css`
|
|
7739
7799
|
position: relative;
|
|
7740
7800
|
border-radius: var(--spacing-4);
|
|
7741
7801
|
overflow: hidden;
|
|
7742
7802
|
`;
|
|
7743
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
7803
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react50.css`
|
|
7744
7804
|
background-image: linear-gradient(
|
|
7745
7805
|
180deg,
|
|
7746
7806
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -7754,7 +7814,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react48.css`
|
|
|
7754
7814
|
`;
|
|
7755
7815
|
|
|
7756
7816
|
// src/HuntCard/HuntCard.tsx
|
|
7757
|
-
var
|
|
7817
|
+
var import_jsx_runtime241 = require("@emotion/react/jsx-runtime");
|
|
7758
7818
|
var HuntCard = ({
|
|
7759
7819
|
backgroundImage,
|
|
7760
7820
|
title,
|
|
@@ -7763,14 +7823,14 @@ var HuntCard = ({
|
|
|
7763
7823
|
className,
|
|
7764
7824
|
...rest
|
|
7765
7825
|
}) => {
|
|
7766
|
-
return /* @__PURE__ */ (0,
|
|
7826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
7767
7827
|
Box_default,
|
|
7768
7828
|
{
|
|
7769
7829
|
display: "flex",
|
|
7770
7830
|
css: cardContainerStyles2,
|
|
7771
7831
|
className,
|
|
7772
7832
|
...rest,
|
|
7773
|
-
children: /* @__PURE__ */ (0,
|
|
7833
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
7774
7834
|
Box_default,
|
|
7775
7835
|
{
|
|
7776
7836
|
display: "flex",
|
|
@@ -7778,9 +7838,9 @@ var HuntCard = ({
|
|
|
7778
7838
|
justifyContent: "flex-end",
|
|
7779
7839
|
p: 6,
|
|
7780
7840
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
7781
|
-
children: /* @__PURE__ */ (0,
|
|
7782
|
-
/* @__PURE__ */ (0,
|
|
7783
|
-
/* @__PURE__ */ (0,
|
|
7841
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
7842
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
7843
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
7784
7844
|
] })
|
|
7785
7845
|
}
|
|
7786
7846
|
)
|
|
@@ -7790,15 +7850,15 @@ var HuntCard = ({
|
|
|
7790
7850
|
var HuntCard_default = HuntCard;
|
|
7791
7851
|
|
|
7792
7852
|
// src/ImageGalleryModal/ImageGalleryModal.tsx
|
|
7793
|
-
var
|
|
7853
|
+
var import_react54 = require("react");
|
|
7794
7854
|
|
|
7795
7855
|
// src/Modal/Modal.tsx
|
|
7796
|
-
var
|
|
7856
|
+
var import_react52 = require("react");
|
|
7797
7857
|
var import_react_dom3 = __toESM(require("react-dom"));
|
|
7798
7858
|
|
|
7799
7859
|
// src/Modal/Modal.styles.ts
|
|
7800
|
-
var
|
|
7801
|
-
var fadeIn =
|
|
7860
|
+
var import_react51 = require("@emotion/react");
|
|
7861
|
+
var fadeIn = import_react51.keyframes`
|
|
7802
7862
|
from {
|
|
7803
7863
|
opacity: 0;
|
|
7804
7864
|
}
|
|
@@ -7806,7 +7866,7 @@ var fadeIn = import_react49.keyframes`
|
|
|
7806
7866
|
opacity: 1;
|
|
7807
7867
|
}
|
|
7808
7868
|
`;
|
|
7809
|
-
var fadeInScale =
|
|
7869
|
+
var fadeInScale = import_react51.keyframes`
|
|
7810
7870
|
from {
|
|
7811
7871
|
opacity: 0;
|
|
7812
7872
|
transform: scale(0.95);
|
|
@@ -7816,7 +7876,7 @@ var fadeInScale = import_react49.keyframes`
|
|
|
7816
7876
|
transform: scale(1);
|
|
7817
7877
|
}
|
|
7818
7878
|
`;
|
|
7819
|
-
var scrollLayerStyles =
|
|
7879
|
+
var scrollLayerStyles = import_react51.css`
|
|
7820
7880
|
background-color: rgba(0, 0, 0, 0.6);
|
|
7821
7881
|
backdrop-filter: blur(4px);
|
|
7822
7882
|
animation: ${fadeIn} 0.15s ease-out forwards;
|
|
@@ -7825,7 +7885,7 @@ var scrollLayerStyles = import_react49.css`
|
|
|
7825
7885
|
animation: none;
|
|
7826
7886
|
}
|
|
7827
7887
|
`;
|
|
7828
|
-
var
|
|
7888
|
+
var containerStyles3 = import_react51.css`
|
|
7829
7889
|
background-color: var(--surface-primary, #ffffff);
|
|
7830
7890
|
border-radius: var(--radius-lg, 12px);
|
|
7831
7891
|
max-height: calc(100dvh - var(--spacing-8));
|
|
@@ -7837,17 +7897,17 @@ var containerStyles2 = import_react49.css`
|
|
|
7837
7897
|
}
|
|
7838
7898
|
`;
|
|
7839
7899
|
var sizeStyles3 = {
|
|
7840
|
-
sm:
|
|
7900
|
+
sm: import_react51.css`
|
|
7841
7901
|
width: 100%;
|
|
7842
7902
|
max-width: 24rem; /* 384px */
|
|
7843
7903
|
padding: var(--spacing-5);
|
|
7844
7904
|
`,
|
|
7845
|
-
md:
|
|
7905
|
+
md: import_react51.css`
|
|
7846
7906
|
width: 100%;
|
|
7847
7907
|
max-width: 32rem; /* 512px */
|
|
7848
7908
|
padding: var(--spacing-6);
|
|
7849
7909
|
`,
|
|
7850
|
-
lg:
|
|
7910
|
+
lg: import_react51.css`
|
|
7851
7911
|
width: 100%;
|
|
7852
7912
|
max-width: 48rem; /* 768px */
|
|
7853
7913
|
padding: var(--spacing-6);
|
|
@@ -7856,7 +7916,7 @@ var sizeStyles3 = {
|
|
|
7856
7916
|
padding: var(--spacing-8);
|
|
7857
7917
|
}
|
|
7858
7918
|
`,
|
|
7859
|
-
xl:
|
|
7919
|
+
xl: import_react51.css`
|
|
7860
7920
|
width: 100%;
|
|
7861
7921
|
max-width: 64rem; /* 1024px */
|
|
7862
7922
|
padding: var(--spacing-6);
|
|
@@ -7865,7 +7925,7 @@ var sizeStyles3 = {
|
|
|
7865
7925
|
padding: var(--spacing-8);
|
|
7866
7926
|
}
|
|
7867
7927
|
`,
|
|
7868
|
-
full:
|
|
7928
|
+
full: import_react51.css`
|
|
7869
7929
|
width: calc(100vw - var(--spacing-8));
|
|
7870
7930
|
height: calc(100dvh - var(--spacing-8));
|
|
7871
7931
|
max-width: none;
|
|
@@ -7874,13 +7934,13 @@ var sizeStyles3 = {
|
|
|
7874
7934
|
border-radius: var(--radius-md, 8px);
|
|
7875
7935
|
`
|
|
7876
7936
|
};
|
|
7877
|
-
var closeButtonStyles =
|
|
7937
|
+
var closeButtonStyles = import_react51.css`
|
|
7878
7938
|
position: absolute;
|
|
7879
7939
|
top: var(--spacing-4);
|
|
7880
7940
|
right: var(--spacing-4);
|
|
7881
7941
|
z-index: 1;
|
|
7882
7942
|
`;
|
|
7883
|
-
var closeButtonFullStyles =
|
|
7943
|
+
var closeButtonFullStyles = import_react51.css`
|
|
7884
7944
|
top: var(--spacing-3);
|
|
7885
7945
|
right: var(--spacing-3);
|
|
7886
7946
|
background-color: rgba(255, 255, 255, 0.9);
|
|
@@ -7893,7 +7953,7 @@ var closeButtonFullStyles = import_react49.css`
|
|
|
7893
7953
|
`;
|
|
7894
7954
|
|
|
7895
7955
|
// src/Modal/Modal.tsx
|
|
7896
|
-
var
|
|
7956
|
+
var import_jsx_runtime242 = require("@emotion/react/jsx-runtime");
|
|
7897
7957
|
var Modal = ({
|
|
7898
7958
|
id,
|
|
7899
7959
|
isOpen,
|
|
@@ -7912,10 +7972,10 @@ var Modal = ({
|
|
|
7912
7972
|
ariaLabel,
|
|
7913
7973
|
ariaDescribedBy
|
|
7914
7974
|
}) => {
|
|
7915
|
-
const containerRef = (0,
|
|
7916
|
-
const previousScrollY = (0,
|
|
7917
|
-
const previousActiveElement = (0,
|
|
7918
|
-
const handleKeyDown = (0,
|
|
7975
|
+
const containerRef = (0, import_react52.useRef)(null);
|
|
7976
|
+
const previousScrollY = (0, import_react52.useRef)(0);
|
|
7977
|
+
const previousActiveElement = (0, import_react52.useRef)(null);
|
|
7978
|
+
const handleKeyDown = (0, import_react52.useCallback)(
|
|
7919
7979
|
(event) => {
|
|
7920
7980
|
if (closeOnEscape && event.key === "Escape" && onClose) {
|
|
7921
7981
|
onClose(event);
|
|
@@ -7923,7 +7983,7 @@ var Modal = ({
|
|
|
7923
7983
|
},
|
|
7924
7984
|
[closeOnEscape, onClose]
|
|
7925
7985
|
);
|
|
7926
|
-
(0,
|
|
7986
|
+
(0, import_react52.useEffect)(() => {
|
|
7927
7987
|
if (isOpen) {
|
|
7928
7988
|
previousScrollY.current = window.scrollY;
|
|
7929
7989
|
previousActiveElement.current = document.activeElement;
|
|
@@ -7953,7 +8013,7 @@ var Modal = ({
|
|
|
7953
8013
|
document.body.style.top = "";
|
|
7954
8014
|
};
|
|
7955
8015
|
}, [isOpen, handleKeyDown]);
|
|
7956
|
-
const handleClose = (0,
|
|
8016
|
+
const handleClose = (0, import_react52.useCallback)(
|
|
7957
8017
|
(event) => {
|
|
7958
8018
|
if (onClose) {
|
|
7959
8019
|
onClose(event);
|
|
@@ -7961,7 +8021,7 @@ var Modal = ({
|
|
|
7961
8021
|
},
|
|
7962
8022
|
[onClose]
|
|
7963
8023
|
);
|
|
7964
|
-
const handleBackdropClick = (0,
|
|
8024
|
+
const handleBackdropClick = (0, import_react52.useCallback)(
|
|
7965
8025
|
(event) => {
|
|
7966
8026
|
if (!closeOnOutsideClick || !containerRef.current || containerRef.current.contains(event.target)) {
|
|
7967
8027
|
return;
|
|
@@ -7976,7 +8036,7 @@ var Modal = ({
|
|
|
7976
8036
|
if (typeof document === "undefined") {
|
|
7977
8037
|
return null;
|
|
7978
8038
|
}
|
|
7979
|
-
const closeButton = showCloseButton && /* @__PURE__ */ (0,
|
|
8039
|
+
const closeButton = showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
7980
8040
|
Button_default,
|
|
7981
8041
|
{
|
|
7982
8042
|
onClick: handleClose,
|
|
@@ -7989,7 +8049,7 @@ var Modal = ({
|
|
|
7989
8049
|
"aria-label": "Close modal",
|
|
7990
8050
|
variant: "text",
|
|
7991
8051
|
size: "xs",
|
|
7992
|
-
children: /* @__PURE__ */ (0,
|
|
8052
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
|
|
7993
8053
|
Box_default,
|
|
7994
8054
|
{
|
|
7995
8055
|
as: "span",
|
|
@@ -7997,15 +8057,15 @@ var Modal = ({
|
|
|
7997
8057
|
alignItems: "center",
|
|
7998
8058
|
gap: "var(--spacing-2)",
|
|
7999
8059
|
children: [
|
|
8000
|
-
/* @__PURE__ */ (0,
|
|
8001
|
-
/* @__PURE__ */ (0,
|
|
8060
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Icon_default, { variant: closeButtonIcon, size: "medium" }),
|
|
8061
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)("span", { children: "Close" })
|
|
8002
8062
|
]
|
|
8003
8063
|
}
|
|
8004
8064
|
)
|
|
8005
8065
|
}
|
|
8006
8066
|
);
|
|
8007
8067
|
return import_react_dom3.default.createPortal(
|
|
8008
|
-
/* @__PURE__ */ (0,
|
|
8068
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8009
8069
|
Box_default,
|
|
8010
8070
|
{
|
|
8011
8071
|
display: "flex",
|
|
@@ -8020,7 +8080,7 @@ var Modal = ({
|
|
|
8020
8080
|
className,
|
|
8021
8081
|
role: "presentation",
|
|
8022
8082
|
"data-testid": `modal-${id}`,
|
|
8023
|
-
children: /* @__PURE__ */ (0,
|
|
8083
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8024
8084
|
Box_default,
|
|
8025
8085
|
{
|
|
8026
8086
|
display: "flex",
|
|
@@ -8034,7 +8094,7 @@ var Modal = ({
|
|
|
8034
8094
|
onKeyDown: (e) => e.key === "Escape" && handleClose(e),
|
|
8035
8095
|
role: "presentation",
|
|
8036
8096
|
"data-testid": `modal-backdrop-${id}`,
|
|
8037
|
-
children: /* @__PURE__ */ (0,
|
|
8097
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
|
|
8038
8098
|
Box_default,
|
|
8039
8099
|
{
|
|
8040
8100
|
ref: containerRef,
|
|
@@ -8043,7 +8103,7 @@ var Modal = ({
|
|
|
8043
8103
|
position: "relative",
|
|
8044
8104
|
overflow: "hidden",
|
|
8045
8105
|
css: [
|
|
8046
|
-
|
|
8106
|
+
containerStyles3,
|
|
8047
8107
|
sizeStyles3[size],
|
|
8048
8108
|
customContainerStyles
|
|
8049
8109
|
],
|
|
@@ -8054,7 +8114,7 @@ var Modal = ({
|
|
|
8054
8114
|
tabIndex: -1,
|
|
8055
8115
|
children: [
|
|
8056
8116
|
closeButton,
|
|
8057
|
-
/* @__PURE__ */ (0,
|
|
8117
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Box_default, { flex: "1", overflow: "auto", css: customContentStyles, children })
|
|
8058
8118
|
]
|
|
8059
8119
|
}
|
|
8060
8120
|
)
|
|
@@ -8069,11 +8129,11 @@ Modal.displayName = "Modal";
|
|
|
8069
8129
|
var Modal_default = Modal;
|
|
8070
8130
|
|
|
8071
8131
|
// src/ImageGalleryModal/ImageGalleryModal.styles.ts
|
|
8072
|
-
var
|
|
8073
|
-
var galleryBackgroundStyles =
|
|
8132
|
+
var import_react53 = require("@emotion/react");
|
|
8133
|
+
var galleryBackgroundStyles = import_react53.css`
|
|
8074
8134
|
background-color: var(--color-base-black, #000000);
|
|
8075
8135
|
`;
|
|
8076
|
-
var imageStyles2 =
|
|
8136
|
+
var imageStyles2 = import_react53.css`
|
|
8077
8137
|
max-width: 100%;
|
|
8078
8138
|
max-height: 100%;
|
|
8079
8139
|
width: auto;
|
|
@@ -8085,14 +8145,14 @@ var imageStyles2 = import_react51.css`
|
|
|
8085
8145
|
max-height: calc(100vh - var(--spacing-32));
|
|
8086
8146
|
}
|
|
8087
8147
|
`;
|
|
8088
|
-
var counterStyles =
|
|
8148
|
+
var counterStyles = import_react53.css`
|
|
8089
8149
|
transform: translateX(-50%);
|
|
8090
8150
|
color: var(--color-base-white, #ffffff);
|
|
8091
8151
|
background-color: rgba(0, 0, 0, 0.5);
|
|
8092
8152
|
padding: var(--spacing-2) var(--spacing-4);
|
|
8093
8153
|
border-radius: var(--radius-full, 9999px);
|
|
8094
8154
|
`;
|
|
8095
|
-
var captionStyles =
|
|
8155
|
+
var captionStyles = import_react53.css`
|
|
8096
8156
|
transform: translateX(-50%);
|
|
8097
8157
|
color: var(--color-base-white, #ffffff);
|
|
8098
8158
|
text-align: center;
|
|
@@ -8101,7 +8161,7 @@ var captionStyles = import_react51.css`
|
|
|
8101
8161
|
border-radius: var(--radius-md, 8px);
|
|
8102
8162
|
max-width: 80%;
|
|
8103
8163
|
`;
|
|
8104
|
-
var navigationButtonStyles =
|
|
8164
|
+
var navigationButtonStyles = import_react53.css`
|
|
8105
8165
|
position: absolute;
|
|
8106
8166
|
top: 50%;
|
|
8107
8167
|
transform: translateY(-50%);
|
|
@@ -8132,18 +8192,18 @@ var navigationButtonStyles = import_react51.css`
|
|
|
8132
8192
|
outline-offset: 2px;
|
|
8133
8193
|
}
|
|
8134
8194
|
`;
|
|
8135
|
-
var prevButtonStyles =
|
|
8195
|
+
var prevButtonStyles = import_react53.css`
|
|
8136
8196
|
${navigationButtonStyles}
|
|
8137
8197
|
left: var(--spacing-4);
|
|
8138
8198
|
`;
|
|
8139
|
-
var nextButtonStyles =
|
|
8199
|
+
var nextButtonStyles = import_react53.css`
|
|
8140
8200
|
${navigationButtonStyles}
|
|
8141
8201
|
right: var(--spacing-4);
|
|
8142
8202
|
`;
|
|
8143
|
-
var dotsContainerPositionStyles =
|
|
8203
|
+
var dotsContainerPositionStyles = import_react53.css`
|
|
8144
8204
|
transform: translateX(-50%);
|
|
8145
8205
|
`;
|
|
8146
|
-
var dotStyles =
|
|
8206
|
+
var dotStyles = import_react53.css`
|
|
8147
8207
|
width: var(--spacing-2);
|
|
8148
8208
|
height: var(--spacing-2);
|
|
8149
8209
|
border-radius: var(--radius-round, 50%);
|
|
@@ -8158,11 +8218,11 @@ var dotStyles = import_react51.css`
|
|
|
8158
8218
|
transform: scale(1.2);
|
|
8159
8219
|
}
|
|
8160
8220
|
`;
|
|
8161
|
-
var dotActiveStyles =
|
|
8221
|
+
var dotActiveStyles = import_react53.css`
|
|
8162
8222
|
background-color: var(--color-base-white, #ffffff);
|
|
8163
8223
|
transform: scale(1.2);
|
|
8164
8224
|
`;
|
|
8165
|
-
var closeButtonOverrideStyles =
|
|
8225
|
+
var closeButtonOverrideStyles = import_react53.css`
|
|
8166
8226
|
top: var(--spacing-4);
|
|
8167
8227
|
right: var(--spacing-4);
|
|
8168
8228
|
z-index: 20;
|
|
@@ -8174,23 +8234,23 @@ var closeButtonOverrideStyles = import_react51.css`
|
|
|
8174
8234
|
background-color: var(--color-base-white, #ffffff);
|
|
8175
8235
|
}
|
|
8176
8236
|
`;
|
|
8177
|
-
var scrollLayerOverrideStyles =
|
|
8237
|
+
var scrollLayerOverrideStyles = import_react53.css`
|
|
8178
8238
|
padding: 0;
|
|
8179
8239
|
background-color: rgba(0, 0, 0, 0.95);
|
|
8180
8240
|
`;
|
|
8181
|
-
var containerOverrideStyles =
|
|
8241
|
+
var containerOverrideStyles = import_react53.css`
|
|
8182
8242
|
background-color: transparent;
|
|
8183
8243
|
box-shadow: none;
|
|
8184
8244
|
border-radius: 0;
|
|
8185
8245
|
max-height: 100dvh;
|
|
8186
8246
|
`;
|
|
8187
|
-
var contentOverrideStyles =
|
|
8247
|
+
var contentOverrideStyles = import_react53.css`
|
|
8188
8248
|
height: 100%;
|
|
8189
8249
|
padding: 0;
|
|
8190
8250
|
`;
|
|
8191
8251
|
|
|
8192
8252
|
// src/ImageGalleryModal/ImageGalleryModal.tsx
|
|
8193
|
-
var
|
|
8253
|
+
var import_jsx_runtime243 = require("@emotion/react/jsx-runtime");
|
|
8194
8254
|
var ImageGalleryModal = ({
|
|
8195
8255
|
id,
|
|
8196
8256
|
isOpen,
|
|
@@ -8203,30 +8263,30 @@ var ImageGalleryModal = ({
|
|
|
8203
8263
|
className,
|
|
8204
8264
|
ariaLabel = "Image gallery"
|
|
8205
8265
|
}) => {
|
|
8206
|
-
const [currentIndex, setCurrentIndex] = (0,
|
|
8207
|
-
(0,
|
|
8266
|
+
const [currentIndex, setCurrentIndex] = (0, import_react54.useState)(initialIndex);
|
|
8267
|
+
(0, import_react54.useEffect)(() => {
|
|
8208
8268
|
if (isOpen) {
|
|
8209
8269
|
setCurrentIndex(initialIndex);
|
|
8210
8270
|
}
|
|
8211
8271
|
}, [isOpen, initialIndex]);
|
|
8212
|
-
const handlePrev = (0,
|
|
8272
|
+
const handlePrev = (0, import_react54.useCallback)(
|
|
8213
8273
|
(e) => {
|
|
8214
8274
|
e == null ? void 0 : e.stopPropagation();
|
|
8215
8275
|
setCurrentIndex((prev) => prev > 0 ? prev - 1 : images.length - 1);
|
|
8216
8276
|
},
|
|
8217
8277
|
[images.length]
|
|
8218
8278
|
);
|
|
8219
|
-
const handleNext = (0,
|
|
8279
|
+
const handleNext = (0, import_react54.useCallback)(
|
|
8220
8280
|
(e) => {
|
|
8221
8281
|
e == null ? void 0 : e.stopPropagation();
|
|
8222
8282
|
setCurrentIndex((prev) => prev < images.length - 1 ? prev + 1 : 0);
|
|
8223
8283
|
},
|
|
8224
8284
|
[images.length]
|
|
8225
8285
|
);
|
|
8226
|
-
const handleGoTo = (0,
|
|
8286
|
+
const handleGoTo = (0, import_react54.useCallback)((index) => {
|
|
8227
8287
|
setCurrentIndex(index);
|
|
8228
8288
|
}, []);
|
|
8229
|
-
(0,
|
|
8289
|
+
(0, import_react54.useEffect)(() => {
|
|
8230
8290
|
if (!isOpen)
|
|
8231
8291
|
return;
|
|
8232
8292
|
const handleKeyDown = (e) => {
|
|
@@ -8243,7 +8303,7 @@ var ImageGalleryModal = ({
|
|
|
8243
8303
|
}, [isOpen, handlePrev, handleNext]);
|
|
8244
8304
|
const currentImage = images[currentIndex];
|
|
8245
8305
|
const hasMultipleImages = images.length > 1;
|
|
8246
|
-
return /* @__PURE__ */ (0,
|
|
8306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8247
8307
|
Modal_default,
|
|
8248
8308
|
{
|
|
8249
8309
|
id: `image-gallery-${id}`,
|
|
@@ -8259,7 +8319,7 @@ var ImageGalleryModal = ({
|
|
|
8259
8319
|
contentStyles: contentOverrideStyles,
|
|
8260
8320
|
className,
|
|
8261
8321
|
ariaLabel,
|
|
8262
|
-
children: /* @__PURE__ */ (0,
|
|
8322
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
|
|
8263
8323
|
Box_default,
|
|
8264
8324
|
{
|
|
8265
8325
|
display: "flex",
|
|
@@ -8269,7 +8329,7 @@ var ImageGalleryModal = ({
|
|
|
8269
8329
|
position: "relative",
|
|
8270
8330
|
css: galleryBackgroundStyles,
|
|
8271
8331
|
children: [
|
|
8272
|
-
showCounter && hasMultipleImages && /* @__PURE__ */ (0,
|
|
8332
|
+
showCounter && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8273
8333
|
Box_default,
|
|
8274
8334
|
{
|
|
8275
8335
|
position: "absolute",
|
|
@@ -8277,14 +8337,14 @@ var ImageGalleryModal = ({
|
|
|
8277
8337
|
left: "50%",
|
|
8278
8338
|
zIndex: 10,
|
|
8279
8339
|
css: counterStyles,
|
|
8280
|
-
children: /* @__PURE__ */ (0,
|
|
8340
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(Text_default, { size: "sm", color: "inherit", children: [
|
|
8281
8341
|
currentIndex + 1,
|
|
8282
8342
|
" / ",
|
|
8283
8343
|
images.length
|
|
8284
8344
|
] })
|
|
8285
8345
|
}
|
|
8286
8346
|
),
|
|
8287
|
-
/* @__PURE__ */ (0,
|
|
8347
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
|
|
8288
8348
|
Box_default,
|
|
8289
8349
|
{
|
|
8290
8350
|
display: "flex",
|
|
@@ -8294,17 +8354,17 @@ var ImageGalleryModal = ({
|
|
|
8294
8354
|
overflow: "hidden",
|
|
8295
8355
|
position: "relative",
|
|
8296
8356
|
children: [
|
|
8297
|
-
showArrows && hasMultipleImages && /* @__PURE__ */ (0,
|
|
8357
|
+
showArrows && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8298
8358
|
"button",
|
|
8299
8359
|
{
|
|
8300
8360
|
type: "button",
|
|
8301
8361
|
onClick: handlePrev,
|
|
8302
8362
|
css: prevButtonStyles,
|
|
8303
8363
|
"aria-label": "Previous image",
|
|
8304
|
-
children: /* @__PURE__ */ (0,
|
|
8364
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Icon_default, { variant: "AngleLeft", size: "medium" })
|
|
8305
8365
|
}
|
|
8306
8366
|
),
|
|
8307
|
-
/* @__PURE__ */ (0,
|
|
8367
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8308
8368
|
Box_default,
|
|
8309
8369
|
{
|
|
8310
8370
|
display: "flex",
|
|
@@ -8313,7 +8373,7 @@ var ImageGalleryModal = ({
|
|
|
8313
8373
|
width: "100%",
|
|
8314
8374
|
height: "100%",
|
|
8315
8375
|
p: "var(--spacing-4)",
|
|
8316
|
-
children: currentImage && /* @__PURE__ */ (0,
|
|
8376
|
+
children: currentImage && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8317
8377
|
"img",
|
|
8318
8378
|
{
|
|
8319
8379
|
src: currentImage.src,
|
|
@@ -8323,20 +8383,20 @@ var ImageGalleryModal = ({
|
|
|
8323
8383
|
)
|
|
8324
8384
|
}
|
|
8325
8385
|
),
|
|
8326
|
-
showArrows && hasMultipleImages && /* @__PURE__ */ (0,
|
|
8386
|
+
showArrows && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8327
8387
|
"button",
|
|
8328
8388
|
{
|
|
8329
8389
|
type: "button",
|
|
8330
8390
|
onClick: handleNext,
|
|
8331
8391
|
css: nextButtonStyles,
|
|
8332
8392
|
"aria-label": "Next image",
|
|
8333
|
-
children: /* @__PURE__ */ (0,
|
|
8393
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Icon_default, { variant: "AngleRight", size: "medium" })
|
|
8334
8394
|
}
|
|
8335
8395
|
)
|
|
8336
8396
|
]
|
|
8337
8397
|
}
|
|
8338
8398
|
),
|
|
8339
|
-
(currentImage == null ? void 0 : currentImage.caption) && /* @__PURE__ */ (0,
|
|
8399
|
+
(currentImage == null ? void 0 : currentImage.caption) && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8340
8400
|
Box_default,
|
|
8341
8401
|
{
|
|
8342
8402
|
position: "absolute",
|
|
@@ -8344,10 +8404,10 @@ var ImageGalleryModal = ({
|
|
|
8344
8404
|
left: "50%",
|
|
8345
8405
|
zIndex: 10,
|
|
8346
8406
|
css: captionStyles,
|
|
8347
|
-
children: /* @__PURE__ */ (0,
|
|
8407
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Text_default, { size: "sm", color: "inherit", children: currentImage.caption })
|
|
8348
8408
|
}
|
|
8349
8409
|
),
|
|
8350
|
-
showDots && hasMultipleImages && /* @__PURE__ */ (0,
|
|
8410
|
+
showDots && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8351
8411
|
Box_default,
|
|
8352
8412
|
{
|
|
8353
8413
|
display: "flex",
|
|
@@ -8357,7 +8417,7 @@ var ImageGalleryModal = ({
|
|
|
8357
8417
|
gap: "var(--spacing-2)",
|
|
8358
8418
|
zIndex: 10,
|
|
8359
8419
|
css: dotsContainerPositionStyles,
|
|
8360
|
-
children: images.map((_, index) => /* @__PURE__ */ (0,
|
|
8420
|
+
children: images.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8361
8421
|
"button",
|
|
8362
8422
|
{
|
|
8363
8423
|
type: "button",
|
|
@@ -8383,9 +8443,9 @@ ImageGalleryModal.displayName = "ImageGalleryModal";
|
|
|
8383
8443
|
var ImageGalleryModal_default = ImageGalleryModal;
|
|
8384
8444
|
|
|
8385
8445
|
// src/InfoBox/InfoBox.tsx
|
|
8386
|
-
var
|
|
8446
|
+
var import_jsx_runtime244 = require("@emotion/react/jsx-runtime");
|
|
8387
8447
|
var InfoBox = ({ heading, features, className }) => {
|
|
8388
|
-
return /* @__PURE__ */ (0,
|
|
8448
|
+
return /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(
|
|
8389
8449
|
Box_default,
|
|
8390
8450
|
{
|
|
8391
8451
|
display: "flex",
|
|
@@ -8394,8 +8454,8 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
8394
8454
|
className,
|
|
8395
8455
|
color: "var(--text-primary)",
|
|
8396
8456
|
children: [
|
|
8397
|
-
/* @__PURE__ */ (0,
|
|
8398
|
-
/* @__PURE__ */ (0,
|
|
8457
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
8458
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
8399
8459
|
Box_default,
|
|
8400
8460
|
{
|
|
8401
8461
|
display: "flex",
|
|
@@ -8405,7 +8465,7 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
8405
8465
|
borderRadius: "var(--radius-lg)",
|
|
8406
8466
|
bg: "var(--surface-neutral)",
|
|
8407
8467
|
className,
|
|
8408
|
-
children: features.map((section, index) => /* @__PURE__ */ (0,
|
|
8468
|
+
children: features.map((section, index) => /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
8409
8469
|
FeatureList_default,
|
|
8410
8470
|
{
|
|
8411
8471
|
heading: section.heading,
|
|
@@ -8422,16 +8482,16 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
8422
8482
|
var InfoBox_default = InfoBox;
|
|
8423
8483
|
|
|
8424
8484
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
8425
|
-
var
|
|
8485
|
+
var import_react58 = require("react");
|
|
8426
8486
|
|
|
8427
8487
|
// src/ProgressBar/ProgressBar.styles.ts
|
|
8428
|
-
var
|
|
8429
|
-
var progressStyles =
|
|
8488
|
+
var import_react55 = require("@emotion/react");
|
|
8489
|
+
var progressStyles = import_react55.css`
|
|
8430
8490
|
transition: width 0.3s ease-in-out;
|
|
8431
8491
|
`;
|
|
8432
8492
|
|
|
8433
8493
|
// src/ProgressBar/ProgressBar.tsx
|
|
8434
|
-
var
|
|
8494
|
+
var import_jsx_runtime245 = require("@emotion/react/jsx-runtime");
|
|
8435
8495
|
var ProgressBar = ({
|
|
8436
8496
|
progress,
|
|
8437
8497
|
className,
|
|
@@ -8439,7 +8499,7 @@ var ProgressBar = ({
|
|
|
8439
8499
|
height = "10px"
|
|
8440
8500
|
}) => {
|
|
8441
8501
|
const clampedProgress = Math.min(100, Math.max(0, progress));
|
|
8442
|
-
return /* @__PURE__ */ (0,
|
|
8502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
8443
8503
|
Box_default,
|
|
8444
8504
|
{
|
|
8445
8505
|
width: "100%",
|
|
@@ -8449,7 +8509,7 @@ var ProgressBar = ({
|
|
|
8449
8509
|
overflow: "hidden",
|
|
8450
8510
|
position: "relative",
|
|
8451
8511
|
className,
|
|
8452
|
-
children: /* @__PURE__ */ (0,
|
|
8512
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
8453
8513
|
Box_default,
|
|
8454
8514
|
{
|
|
8455
8515
|
height: "100%",
|
|
@@ -8470,17 +8530,17 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
8470
8530
|
var ProgressBar_default = ProgressBar;
|
|
8471
8531
|
|
|
8472
8532
|
// src/Timer/Timer.tsx
|
|
8473
|
-
var
|
|
8533
|
+
var import_react57 = require("react");
|
|
8474
8534
|
|
|
8475
8535
|
// src/Timer/Timer.styles.ts
|
|
8476
|
-
var
|
|
8477
|
-
var rootStyles2 =
|
|
8536
|
+
var import_react56 = require("@emotion/react");
|
|
8537
|
+
var rootStyles2 = import_react56.css`
|
|
8478
8538
|
display: inline-flex;
|
|
8479
8539
|
font-variant-numeric: tabular-nums;
|
|
8480
8540
|
`;
|
|
8481
8541
|
|
|
8482
8542
|
// src/Timer/Timer.tsx
|
|
8483
|
-
var
|
|
8543
|
+
var import_jsx_runtime246 = require("@emotion/react/jsx-runtime");
|
|
8484
8544
|
var calculateTimeLeft = (expirationTimestamp) => {
|
|
8485
8545
|
const now = Math.floor(Date.now() / 1e3);
|
|
8486
8546
|
const diff = expirationTimestamp - now;
|
|
@@ -8508,10 +8568,10 @@ var Timer = ({
|
|
|
8508
8568
|
fontWeight = "bold",
|
|
8509
8569
|
showSeconds = false
|
|
8510
8570
|
}) => {
|
|
8511
|
-
const [timeLeft, setTimeLeft] = (0,
|
|
8571
|
+
const [timeLeft, setTimeLeft] = (0, import_react57.useState)(
|
|
8512
8572
|
() => calculateTimeLeft(expirationTimestamp)
|
|
8513
8573
|
);
|
|
8514
|
-
const updateTime = (0,
|
|
8574
|
+
const updateTime = (0, import_react57.useCallback)(() => {
|
|
8515
8575
|
const newTimeLeft = calculateTimeLeft(expirationTimestamp);
|
|
8516
8576
|
setTimeLeft(newTimeLeft);
|
|
8517
8577
|
if (newTimeLeft) {
|
|
@@ -8521,7 +8581,7 @@ var Timer = ({
|
|
|
8521
8581
|
}
|
|
8522
8582
|
return newTimeLeft;
|
|
8523
8583
|
}, [expirationTimestamp, onTimeUpdate, onExpire]);
|
|
8524
|
-
(0,
|
|
8584
|
+
(0, import_react57.useEffect)(() => {
|
|
8525
8585
|
const initialTime = updateTime();
|
|
8526
8586
|
if (!initialTime)
|
|
8527
8587
|
return;
|
|
@@ -8536,8 +8596,8 @@ var Timer = ({
|
|
|
8536
8596
|
if (!timeLeft) {
|
|
8537
8597
|
return null;
|
|
8538
8598
|
}
|
|
8539
|
-
return /* @__PURE__ */ (0,
|
|
8540
|
-
/* @__PURE__ */ (0,
|
|
8599
|
+
return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(Box_default, { css: rootStyles2, className, children: [
|
|
8600
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(Text_default, { as: "span", fontWeight, size: fontSize, children: [
|
|
8541
8601
|
timeLeft.days,
|
|
8542
8602
|
"d : ",
|
|
8543
8603
|
timeLeft.hours,
|
|
@@ -8545,7 +8605,7 @@ var Timer = ({
|
|
|
8545
8605
|
timeLeft.minutes,
|
|
8546
8606
|
"m"
|
|
8547
8607
|
] }),
|
|
8548
|
-
showSeconds && /* @__PURE__ */ (0,
|
|
8608
|
+
showSeconds && /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(Text_default, { as: "span", fontWeight, size: fontSize, children: [
|
|
8549
8609
|
"\xA0: ",
|
|
8550
8610
|
timeLeft.seconds,
|
|
8551
8611
|
"s"
|
|
@@ -8556,7 +8616,7 @@ Timer.displayName = "Timer";
|
|
|
8556
8616
|
var Timer_default = Timer;
|
|
8557
8617
|
|
|
8558
8618
|
// src/StarRating/StarRating.tsx
|
|
8559
|
-
var
|
|
8619
|
+
var import_jsx_runtime247 = require("@emotion/react/jsx-runtime");
|
|
8560
8620
|
var starSize = {
|
|
8561
8621
|
sm: {
|
|
8562
8622
|
size: "medium",
|
|
@@ -8604,10 +8664,10 @@ var StarRating = ({
|
|
|
8604
8664
|
fill = "var(--color-neutral-100)";
|
|
8605
8665
|
}
|
|
8606
8666
|
stars.push(
|
|
8607
|
-
/* @__PURE__ */ (0,
|
|
8667
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Icon_default, { variant, size: starSize[size].size, fill }, i)
|
|
8608
8668
|
);
|
|
8609
8669
|
}
|
|
8610
|
-
return /* @__PURE__ */ (0,
|
|
8670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8611
8671
|
Box_default,
|
|
8612
8672
|
{
|
|
8613
8673
|
className,
|
|
@@ -8621,7 +8681,7 @@ var StarRating = ({
|
|
|
8621
8681
|
var StarRating_default = StarRating;
|
|
8622
8682
|
|
|
8623
8683
|
// src/UserCard/UserCard.tsx
|
|
8624
|
-
var
|
|
8684
|
+
var import_jsx_runtime248 = require("@emotion/react/jsx-runtime");
|
|
8625
8685
|
var UserCard = ({
|
|
8626
8686
|
avatarSrc,
|
|
8627
8687
|
title,
|
|
@@ -8631,7 +8691,7 @@ var UserCard = ({
|
|
|
8631
8691
|
isVerified = false,
|
|
8632
8692
|
className
|
|
8633
8693
|
}) => {
|
|
8634
|
-
return /* @__PURE__ */ (0,
|
|
8694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
|
|
8635
8695
|
Box_default,
|
|
8636
8696
|
{
|
|
8637
8697
|
display: "flex",
|
|
@@ -8640,8 +8700,8 @@ var UserCard = ({
|
|
|
8640
8700
|
gap: "var(--spacing-4)",
|
|
8641
8701
|
className,
|
|
8642
8702
|
children: [
|
|
8643
|
-
/* @__PURE__ */ (0,
|
|
8644
|
-
/* @__PURE__ */ (0,
|
|
8703
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(Box_default, { display: "flex", alignItems: "flex-start", gap: "var(--spacing-4)", children: [
|
|
8704
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
|
|
8645
8705
|
Avatar_default,
|
|
8646
8706
|
{
|
|
8647
8707
|
type: avatarSrc ? "image" : "text",
|
|
@@ -8650,13 +8710,13 @@ var UserCard = ({
|
|
|
8650
8710
|
alt: `${title}'s avatar`
|
|
8651
8711
|
}
|
|
8652
8712
|
),
|
|
8653
|
-
/* @__PURE__ */ (0,
|
|
8654
|
-
/* @__PURE__ */ (0,
|
|
8655
|
-
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0,
|
|
8656
|
-
showRating && rating !== void 0 && /* @__PURE__ */ (0,
|
|
8713
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
8714
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
|
|
8715
|
+
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }) : subtitle),
|
|
8716
|
+
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(StarRating_default, { rating })
|
|
8657
8717
|
] })
|
|
8658
8718
|
] }),
|
|
8659
|
-
isVerified && /* @__PURE__ */ (0,
|
|
8719
|
+
isVerified && /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
|
|
8660
8720
|
Box_default,
|
|
8661
8721
|
{
|
|
8662
8722
|
display: "flex",
|
|
@@ -8665,8 +8725,8 @@ var UserCard = ({
|
|
|
8665
8725
|
gap: "var(--spacing-1)",
|
|
8666
8726
|
flexShrink: 0,
|
|
8667
8727
|
children: [
|
|
8668
|
-
/* @__PURE__ */ (0,
|
|
8669
|
-
/* @__PURE__ */ (0,
|
|
8728
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Icon_default, { variant: "ShieldCheckSolid", fill: "var(--icon-success)" }),
|
|
8729
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Text_default, { size: "xs", fontWeight: "bold", color: "text-primary", children: "Verified" })
|
|
8670
8730
|
]
|
|
8671
8731
|
}
|
|
8672
8732
|
)
|
|
@@ -8677,19 +8737,19 @@ var UserCard = ({
|
|
|
8677
8737
|
var UserCard_default = UserCard;
|
|
8678
8738
|
|
|
8679
8739
|
// src/LandownerProfile/components/ProfileSubtitle.tsx
|
|
8680
|
-
var
|
|
8740
|
+
var import_jsx_runtime249 = require("@emotion/react/jsx-runtime");
|
|
8681
8741
|
var ProfileSubtitle = ({
|
|
8682
8742
|
yearsHosting = 1,
|
|
8683
8743
|
featureReviewItem
|
|
8684
8744
|
}) => {
|
|
8685
|
-
return /* @__PURE__ */ (0,
|
|
8686
|
-
yearsHosting && yearsHosting > 0 && /* @__PURE__ */ (0,
|
|
8745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
8746
|
+
yearsHosting && yearsHosting > 0 && /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
8687
8747
|
yearsHosting,
|
|
8688
8748
|
" ",
|
|
8689
8749
|
yearsHosting === 1 ? "Year" : "Years",
|
|
8690
8750
|
" Hosting"
|
|
8691
8751
|
] }),
|
|
8692
|
-
featureReviewItem && /* @__PURE__ */ (0,
|
|
8752
|
+
featureReviewItem && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(FeatureListItem_default, { ...featureReviewItem })
|
|
8693
8753
|
] });
|
|
8694
8754
|
};
|
|
8695
8755
|
var ProfileSubtitle_default = ProfileSubtitle;
|
|
@@ -8704,7 +8764,7 @@ var hasTextContent = (html) => {
|
|
|
8704
8764
|
};
|
|
8705
8765
|
|
|
8706
8766
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
8707
|
-
var
|
|
8767
|
+
var import_jsx_runtime250 = require("@emotion/react/jsx-runtime");
|
|
8708
8768
|
var LandownerProfile = ({
|
|
8709
8769
|
heading,
|
|
8710
8770
|
avatarSrc,
|
|
@@ -8732,7 +8792,7 @@ var LandownerProfile = ({
|
|
|
8732
8792
|
const progressPercentage = (totalDuration - timeLeft.totalSeconds) / totalDuration * 100;
|
|
8733
8793
|
return Math.min(100, Math.max(0, progressPercentage));
|
|
8734
8794
|
};
|
|
8735
|
-
const [progress, setProgress] = (0,
|
|
8795
|
+
const [progress, setProgress] = (0, import_react58.useState)(0);
|
|
8736
8796
|
const handleTimeUpdate = (timeLeft) => {
|
|
8737
8797
|
setProgress(calculateProgress(timeLeft));
|
|
8738
8798
|
onEarlyAccessTimeUpdate == null ? void 0 : onEarlyAccessTimeUpdate(timeLeft);
|
|
@@ -8745,7 +8805,7 @@ var LandownerProfile = ({
|
|
|
8745
8805
|
iconVariant: "Bolt",
|
|
8746
8806
|
label: `Response Time: ${responseTime}`
|
|
8747
8807
|
} : void 0;
|
|
8748
|
-
return /* @__PURE__ */ (0,
|
|
8808
|
+
return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8749
8809
|
Box_default,
|
|
8750
8810
|
{
|
|
8751
8811
|
display: "flex",
|
|
@@ -8754,8 +8814,8 @@ var LandownerProfile = ({
|
|
|
8754
8814
|
color: "var(--text-primary)",
|
|
8755
8815
|
className,
|
|
8756
8816
|
children: [
|
|
8757
|
-
heading && /* @__PURE__ */ (0,
|
|
8758
|
-
/* @__PURE__ */ (0,
|
|
8817
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
8818
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8759
8819
|
Box_default,
|
|
8760
8820
|
{
|
|
8761
8821
|
display: "flex",
|
|
@@ -8765,12 +8825,12 @@ var LandownerProfile = ({
|
|
|
8765
8825
|
p: "var(--spacing-4)",
|
|
8766
8826
|
borderRadius: "var(--radius-lg)",
|
|
8767
8827
|
children: [
|
|
8768
|
-
/* @__PURE__ */ (0,
|
|
8828
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8769
8829
|
UserCard_default,
|
|
8770
8830
|
{
|
|
8771
8831
|
avatarSrc,
|
|
8772
8832
|
title: name,
|
|
8773
|
-
subtitle: /* @__PURE__ */ (0,
|
|
8833
|
+
subtitle: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8774
8834
|
ProfileSubtitle_default,
|
|
8775
8835
|
{
|
|
8776
8836
|
yearsHosting,
|
|
@@ -8781,9 +8841,9 @@ var LandownerProfile = ({
|
|
|
8781
8841
|
isVerified
|
|
8782
8842
|
}
|
|
8783
8843
|
),
|
|
8784
|
-
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0,
|
|
8785
|
-
/* @__PURE__ */ (0,
|
|
8786
|
-
/* @__PURE__ */ (0,
|
|
8844
|
+
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
8845
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Text_default, { fontWeight: "bold", children: "Bio" }),
|
|
8846
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8787
8847
|
Text_default,
|
|
8788
8848
|
{
|
|
8789
8849
|
dangerouslySetInnerHTML: {
|
|
@@ -8792,14 +8852,14 @@ var LandownerProfile = ({
|
|
|
8792
8852
|
}
|
|
8793
8853
|
)
|
|
8794
8854
|
] }),
|
|
8795
|
-
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0,
|
|
8796
|
-
/* @__PURE__ */ (0,
|
|
8797
|
-
/* @__PURE__ */ (0,
|
|
8798
|
-
!!responseRateFeature && /* @__PURE__ */ (0,
|
|
8799
|
-
!!responseTimeFeature && /* @__PURE__ */ (0,
|
|
8855
|
+
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
8856
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Text_default, { fontWeight: "bold", children: "Landowner Details" }),
|
|
8857
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
8858
|
+
!!responseRateFeature && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(FeatureListItem_default, { ...responseRateFeature }),
|
|
8859
|
+
!!responseTimeFeature && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(FeatureListItem_default, { ...responseTimeFeature })
|
|
8800
8860
|
] })
|
|
8801
8861
|
] }),
|
|
8802
|
-
/* @__PURE__ */ (0,
|
|
8862
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { alignSelf: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8803
8863
|
Button_default,
|
|
8804
8864
|
{
|
|
8805
8865
|
variant: "secondary",
|
|
@@ -8808,9 +8868,9 @@ var LandownerProfile = ({
|
|
|
8808
8868
|
children: messageButtonText
|
|
8809
8869
|
}
|
|
8810
8870
|
) }),
|
|
8811
|
-
earlyAccessTimer && /* @__PURE__ */ (0,
|
|
8812
|
-
/* @__PURE__ */ (0,
|
|
8813
|
-
/* @__PURE__ */ (0,
|
|
8871
|
+
earlyAccessTimer && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: [
|
|
8872
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(ProgressBar_default, { progress }),
|
|
8873
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8814
8874
|
Box_default,
|
|
8815
8875
|
{
|
|
8816
8876
|
display: "flex",
|
|
@@ -8818,9 +8878,9 @@ var LandownerProfile = ({
|
|
|
8818
8878
|
gap: "var(--spacing-1)",
|
|
8819
8879
|
textAlign: "center",
|
|
8820
8880
|
children: [
|
|
8821
|
-
/* @__PURE__ */ (0,
|
|
8822
|
-
/* @__PURE__ */ (0,
|
|
8823
|
-
/* @__PURE__ */ (0,
|
|
8881
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Text_default, { size: "xs", textAlign: "center", children: earlyAccessTimer.labelText }),
|
|
8882
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Text_default, { size: "sm", textAlign: "center", children: earlyAccessTimer.descriptionText }),
|
|
8883
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8824
8884
|
Timer_default,
|
|
8825
8885
|
{
|
|
8826
8886
|
expirationTimestamp: earlyAccessTimer.expirationTimestamp,
|
|
@@ -8842,11 +8902,11 @@ var LandownerProfile = ({
|
|
|
8842
8902
|
var LandownerProfile_default = LandownerProfile;
|
|
8843
8903
|
|
|
8844
8904
|
// src/ListingChat/ListingChat.tsx
|
|
8845
|
-
var
|
|
8905
|
+
var import_react60 = require("react");
|
|
8846
8906
|
|
|
8847
8907
|
// src/ListingChat/ListingChat.styles.ts
|
|
8848
|
-
var
|
|
8849
|
-
var
|
|
8908
|
+
var import_react59 = require("@emotion/react");
|
|
8909
|
+
var containerStyles4 = import_react59.css`
|
|
8850
8910
|
display: flex;
|
|
8851
8911
|
flex-direction: column;
|
|
8852
8912
|
gap: var(--spacing-4);
|
|
@@ -8854,13 +8914,13 @@ var containerStyles3 = import_react57.css`
|
|
|
8854
8914
|
border-radius: var(--radius-lg);
|
|
8855
8915
|
background: var(--surface-success);
|
|
8856
8916
|
`;
|
|
8857
|
-
var headerStyles =
|
|
8917
|
+
var headerStyles = import_react59.css`
|
|
8858
8918
|
display: flex;
|
|
8859
8919
|
align-items: flex-start;
|
|
8860
8920
|
justify-content: space-between;
|
|
8861
8921
|
gap: var(--spacing-2);
|
|
8862
8922
|
`;
|
|
8863
|
-
var chipsContainerStyles =
|
|
8923
|
+
var chipsContainerStyles = import_react59.css`
|
|
8864
8924
|
display: flex;
|
|
8865
8925
|
flex-wrap: wrap;
|
|
8866
8926
|
gap: var(--spacing-4);
|
|
@@ -8873,15 +8933,15 @@ var chipsContainerStyles = import_react57.css`
|
|
|
8873
8933
|
cursor: pointer;
|
|
8874
8934
|
}
|
|
8875
8935
|
`;
|
|
8876
|
-
var textAreaStyles =
|
|
8936
|
+
var textAreaStyles = import_react59.css`
|
|
8877
8937
|
min-height: 62px;
|
|
8878
8938
|
`;
|
|
8879
|
-
var inputWrapperStyles2 =
|
|
8939
|
+
var inputWrapperStyles2 = import_react59.css`
|
|
8880
8940
|
position: relative;
|
|
8881
8941
|
`;
|
|
8882
8942
|
|
|
8883
8943
|
// src/ListingChat/ListingChat.tsx
|
|
8884
|
-
var
|
|
8944
|
+
var import_jsx_runtime251 = require("@emotion/react/jsx-runtime");
|
|
8885
8945
|
var ListingChat = ({
|
|
8886
8946
|
onSubmit,
|
|
8887
8947
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -8891,15 +8951,15 @@ var ListingChat = ({
|
|
|
8891
8951
|
disabled = false,
|
|
8892
8952
|
...rest
|
|
8893
8953
|
}) => {
|
|
8894
|
-
const [value, setValue] = (0,
|
|
8895
|
-
const handleSubmit = (0,
|
|
8954
|
+
const [value, setValue] = (0, import_react60.useState)("");
|
|
8955
|
+
const handleSubmit = (0, import_react60.useCallback)(() => {
|
|
8896
8956
|
const trimmed = value.trim();
|
|
8897
8957
|
if (!trimmed)
|
|
8898
8958
|
return;
|
|
8899
8959
|
onSubmit(trimmed);
|
|
8900
8960
|
setValue("");
|
|
8901
8961
|
}, [onSubmit, value]);
|
|
8902
|
-
const handleTagClick = (0,
|
|
8962
|
+
const handleTagClick = (0, import_react60.useCallback)(
|
|
8903
8963
|
(tag) => () => {
|
|
8904
8964
|
const trimmed = tag.trim();
|
|
8905
8965
|
if (!trimmed)
|
|
@@ -8908,18 +8968,18 @@ var ListingChat = ({
|
|
|
8908
8968
|
},
|
|
8909
8969
|
[onSubmit]
|
|
8910
8970
|
);
|
|
8911
|
-
return /* @__PURE__ */ (0,
|
|
8912
|
-
/* @__PURE__ */ (0,
|
|
8913
|
-
/* @__PURE__ */ (0,
|
|
8914
|
-
/* @__PURE__ */ (0,
|
|
8915
|
-
/* @__PURE__ */ (0,
|
|
8971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { css: containerStyles4, className, ...rest, children: [
|
|
8972
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { css: headerStyles, children: [
|
|
8973
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { children: [
|
|
8974
|
+
/* @__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 }) }),
|
|
8975
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
8916
8976
|
] }),
|
|
8917
|
-
/* @__PURE__ */ (0,
|
|
8918
|
-
/* @__PURE__ */ (0,
|
|
8919
|
-
/* @__PURE__ */ (0,
|
|
8977
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
8978
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
|
|
8979
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
8920
8980
|
] })
|
|
8921
8981
|
] }),
|
|
8922
|
-
/* @__PURE__ */ (0,
|
|
8982
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8923
8983
|
TextArea,
|
|
8924
8984
|
{
|
|
8925
8985
|
rows: 1,
|
|
@@ -8934,14 +8994,14 @@ var ListingChat = ({
|
|
|
8934
8994
|
css: textAreaStyles
|
|
8935
8995
|
}
|
|
8936
8996
|
) }),
|
|
8937
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
8938
|
-
/* @__PURE__ */ (0,
|
|
8939
|
-
/* @__PURE__ */ (0,
|
|
8997
|
+
tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(import_jsx_runtime251.Fragment, { children: [
|
|
8998
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Text_default, { as: "div", size: "sm", fontWeight: "bold", children: "Try one of these" }),
|
|
8999
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Box_default, { css: chipsContainerStyles, children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8940
9000
|
"button",
|
|
8941
9001
|
{
|
|
8942
9002
|
onClick: handleTagClick(tag),
|
|
8943
9003
|
disabled,
|
|
8944
|
-
children: /* @__PURE__ */ (0,
|
|
9004
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(TagChip_default, { children: tag })
|
|
8945
9005
|
},
|
|
8946
9006
|
tag
|
|
8947
9007
|
)) })
|
|
@@ -8951,11 +9011,11 @@ var ListingChat = ({
|
|
|
8951
9011
|
var ListingChat_default = ListingChat;
|
|
8952
9012
|
|
|
8953
9013
|
// src/Logo/Logo.tsx
|
|
8954
|
-
var
|
|
9014
|
+
var import_react61 = require("@emotion/react");
|
|
8955
9015
|
|
|
8956
9016
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
8957
|
-
var
|
|
8958
|
-
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0,
|
|
9017
|
+
var import_jsx_runtime252 = require("@emotion/react/jsx-runtime");
|
|
9018
|
+
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
8959
9019
|
"svg",
|
|
8960
9020
|
{
|
|
8961
9021
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8963,14 +9023,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.
|
|
|
8963
9023
|
fill: "none",
|
|
8964
9024
|
...props,
|
|
8965
9025
|
children: [
|
|
8966
|
-
/* @__PURE__ */ (0,
|
|
9026
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8967
9027
|
"path",
|
|
8968
9028
|
{
|
|
8969
9029
|
fill: "#000",
|
|
8970
9030
|
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"
|
|
8971
9031
|
}
|
|
8972
9032
|
) }),
|
|
8973
|
-
/* @__PURE__ */ (0,
|
|
9033
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8974
9034
|
"path",
|
|
8975
9035
|
{
|
|
8976
9036
|
fill: "#FAD44E",
|
|
@@ -8979,14 +9039,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.
|
|
|
8979
9039
|
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"
|
|
8980
9040
|
}
|
|
8981
9041
|
),
|
|
8982
|
-
/* @__PURE__ */ (0,
|
|
9042
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8983
9043
|
"path",
|
|
8984
9044
|
{
|
|
8985
9045
|
fill: "#fff",
|
|
8986
9046
|
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"
|
|
8987
9047
|
}
|
|
8988
9048
|
),
|
|
8989
|
-
/* @__PURE__ */ (0,
|
|
9049
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
8990
9050
|
"filter",
|
|
8991
9051
|
{
|
|
8992
9052
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -8997,8 +9057,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.
|
|
|
8997
9057
|
colorInterpolationFilters: "sRGB",
|
|
8998
9058
|
filterUnits: "userSpaceOnUse",
|
|
8999
9059
|
children: [
|
|
9000
|
-
/* @__PURE__ */ (0,
|
|
9001
|
-
/* @__PURE__ */ (0,
|
|
9060
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
9061
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9002
9062
|
"feColorMatrix",
|
|
9003
9063
|
{
|
|
9004
9064
|
in: "SourceAlpha",
|
|
@@ -9006,18 +9066,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.
|
|
|
9006
9066
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
9007
9067
|
}
|
|
9008
9068
|
),
|
|
9009
|
-
/* @__PURE__ */ (0,
|
|
9010
|
-
/* @__PURE__ */ (0,
|
|
9011
|
-
/* @__PURE__ */ (0,
|
|
9012
|
-
/* @__PURE__ */ (0,
|
|
9013
|
-
/* @__PURE__ */ (0,
|
|
9069
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feOffset", { dy: 1 }),
|
|
9070
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
9071
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
9072
|
+
/* @__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" }),
|
|
9073
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9014
9074
|
"feBlend",
|
|
9015
9075
|
{
|
|
9016
9076
|
in2: "BackgroundImageFix",
|
|
9017
9077
|
result: "effect1_dropShadow_257_2540"
|
|
9018
9078
|
}
|
|
9019
9079
|
),
|
|
9020
|
-
/* @__PURE__ */ (0,
|
|
9080
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9021
9081
|
"feBlend",
|
|
9022
9082
|
{
|
|
9023
9083
|
in: "SourceGraphic",
|
|
@@ -9034,8 +9094,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.
|
|
|
9034
9094
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
9035
9095
|
|
|
9036
9096
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
9037
|
-
var
|
|
9038
|
-
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0,
|
|
9097
|
+
var import_jsx_runtime253 = require("@emotion/react/jsx-runtime");
|
|
9098
|
+
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
9039
9099
|
"svg",
|
|
9040
9100
|
{
|
|
9041
9101
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9043,14 +9103,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252
|
|
|
9043
9103
|
fill: "none",
|
|
9044
9104
|
...props,
|
|
9045
9105
|
children: [
|
|
9046
|
-
/* @__PURE__ */ (0,
|
|
9106
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9047
9107
|
"path",
|
|
9048
9108
|
{
|
|
9049
9109
|
fill: "#000",
|
|
9050
9110
|
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"
|
|
9051
9111
|
}
|
|
9052
9112
|
) }),
|
|
9053
|
-
/* @__PURE__ */ (0,
|
|
9113
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9054
9114
|
"path",
|
|
9055
9115
|
{
|
|
9056
9116
|
fill: "#FAD44E",
|
|
@@ -9059,14 +9119,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252
|
|
|
9059
9119
|
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"
|
|
9060
9120
|
}
|
|
9061
9121
|
),
|
|
9062
|
-
/* @__PURE__ */ (0,
|
|
9122
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9063
9123
|
"path",
|
|
9064
9124
|
{
|
|
9065
9125
|
fill: "#1A202C",
|
|
9066
9126
|
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"
|
|
9067
9127
|
}
|
|
9068
9128
|
),
|
|
9069
|
-
/* @__PURE__ */ (0,
|
|
9129
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
9070
9130
|
"filter",
|
|
9071
9131
|
{
|
|
9072
9132
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -9077,8 +9137,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252
|
|
|
9077
9137
|
colorInterpolationFilters: "sRGB",
|
|
9078
9138
|
filterUnits: "userSpaceOnUse",
|
|
9079
9139
|
children: [
|
|
9080
|
-
/* @__PURE__ */ (0,
|
|
9081
|
-
/* @__PURE__ */ (0,
|
|
9140
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
9141
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9082
9142
|
"feColorMatrix",
|
|
9083
9143
|
{
|
|
9084
9144
|
in: "SourceAlpha",
|
|
@@ -9086,18 +9146,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252
|
|
|
9086
9146
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
9087
9147
|
}
|
|
9088
9148
|
),
|
|
9089
|
-
/* @__PURE__ */ (0,
|
|
9090
|
-
/* @__PURE__ */ (0,
|
|
9091
|
-
/* @__PURE__ */ (0,
|
|
9092
|
-
/* @__PURE__ */ (0,
|
|
9093
|
-
/* @__PURE__ */ (0,
|
|
9149
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("feOffset", { dy: 1 }),
|
|
9150
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
9151
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
9152
|
+
/* @__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" }),
|
|
9153
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9094
9154
|
"feBlend",
|
|
9095
9155
|
{
|
|
9096
9156
|
in2: "BackgroundImageFix",
|
|
9097
9157
|
result: "effect1_dropShadow_257_2538"
|
|
9098
9158
|
}
|
|
9099
9159
|
),
|
|
9100
|
-
/* @__PURE__ */ (0,
|
|
9160
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9101
9161
|
"feBlend",
|
|
9102
9162
|
{
|
|
9103
9163
|
in: "SourceGraphic",
|
|
@@ -9114,8 +9174,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252
|
|
|
9114
9174
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
9115
9175
|
|
|
9116
9176
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
9117
|
-
var
|
|
9118
|
-
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0,
|
|
9177
|
+
var import_jsx_runtime254 = require("@emotion/react/jsx-runtime");
|
|
9178
|
+
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
|
|
9119
9179
|
"svg",
|
|
9120
9180
|
{
|
|
9121
9181
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9123,14 +9183,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
9123
9183
|
fill: "none",
|
|
9124
9184
|
...props,
|
|
9125
9185
|
children: [
|
|
9126
|
-
/* @__PURE__ */ (0,
|
|
9186
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
9127
9187
|
"path",
|
|
9128
9188
|
{
|
|
9129
9189
|
fill: "#E2430C",
|
|
9130
9190
|
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"
|
|
9131
9191
|
}
|
|
9132
9192
|
),
|
|
9133
|
-
/* @__PURE__ */ (0,
|
|
9193
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
9134
9194
|
"path",
|
|
9135
9195
|
{
|
|
9136
9196
|
fill: "#fff",
|
|
@@ -9143,8 +9203,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
9143
9203
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
9144
9204
|
|
|
9145
9205
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
9146
|
-
var
|
|
9147
|
-
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0,
|
|
9206
|
+
var import_jsx_runtime255 = require("@emotion/react/jsx-runtime");
|
|
9207
|
+
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(
|
|
9148
9208
|
"svg",
|
|
9149
9209
|
{
|
|
9150
9210
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9152,14 +9212,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
9152
9212
|
fill: "none",
|
|
9153
9213
|
...props,
|
|
9154
9214
|
children: [
|
|
9155
|
-
/* @__PURE__ */ (0,
|
|
9215
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
|
|
9156
9216
|
"path",
|
|
9157
9217
|
{
|
|
9158
9218
|
fill: "#E2430C",
|
|
9159
9219
|
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"
|
|
9160
9220
|
}
|
|
9161
9221
|
),
|
|
9162
|
-
/* @__PURE__ */ (0,
|
|
9222
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
|
|
9163
9223
|
"path",
|
|
9164
9224
|
{
|
|
9165
9225
|
fill: "#000",
|
|
@@ -9172,8 +9232,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
9172
9232
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
9173
9233
|
|
|
9174
9234
|
// src/Logo/Logo.tsx
|
|
9175
|
-
var
|
|
9176
|
-
var logoStyles = (size) =>
|
|
9235
|
+
var import_jsx_runtime256 = require("@emotion/react/jsx-runtime");
|
|
9236
|
+
var logoStyles = (size) => import_react61.css`
|
|
9177
9237
|
width: ${space[size]};
|
|
9178
9238
|
height: auto;
|
|
9179
9239
|
display: block;
|
|
@@ -9201,18 +9261,18 @@ var Logo = ({
|
|
|
9201
9261
|
return LandtrustStandardLight_default;
|
|
9202
9262
|
};
|
|
9203
9263
|
const LogoComponent = getLogoComponent();
|
|
9204
|
-
return /* @__PURE__ */ (0,
|
|
9264
|
+
return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
9205
9265
|
};
|
|
9206
9266
|
var Logo_default = Logo;
|
|
9207
9267
|
|
|
9208
9268
|
// src/Navigation/Navigation.styles.ts
|
|
9209
|
-
var
|
|
9210
|
-
var navigationStyles =
|
|
9269
|
+
var import_react62 = require("@emotion/react");
|
|
9270
|
+
var navigationStyles = import_react62.css`
|
|
9211
9271
|
width: 100%;
|
|
9212
9272
|
background-color: white;
|
|
9213
9273
|
border-bottom: 1px solid #e5e5e5;
|
|
9214
9274
|
`;
|
|
9215
|
-
var hamburgerButtonStyles =
|
|
9275
|
+
var hamburgerButtonStyles = import_react62.css`
|
|
9216
9276
|
cursor: pointer;
|
|
9217
9277
|
&:focus {
|
|
9218
9278
|
outline: 2px solid #4f46e5;
|
|
@@ -9223,7 +9283,7 @@ var hamburgerButtonStyles = import_react60.css`
|
|
|
9223
9283
|
display: none;
|
|
9224
9284
|
}
|
|
9225
9285
|
`;
|
|
9226
|
-
var centeredLogoStyles =
|
|
9286
|
+
var centeredLogoStyles = import_react62.css`
|
|
9227
9287
|
transform: translate(-50%, -50%);
|
|
9228
9288
|
max-width: 150px;
|
|
9229
9289
|
|
|
@@ -9231,27 +9291,27 @@ var centeredLogoStyles = import_react60.css`
|
|
|
9231
9291
|
display: none;
|
|
9232
9292
|
}
|
|
9233
9293
|
`;
|
|
9234
|
-
var desktopLogoStyles =
|
|
9294
|
+
var desktopLogoStyles = import_react62.css`
|
|
9235
9295
|
display: none;
|
|
9236
9296
|
|
|
9237
9297
|
@media (min-width: 768px) {
|
|
9238
9298
|
display: block;
|
|
9239
9299
|
}
|
|
9240
9300
|
`;
|
|
9241
|
-
var
|
|
9301
|
+
var containerStyles5 = import_react62.css`
|
|
9242
9302
|
@media (min-width: 768px) {
|
|
9243
9303
|
justify-content: space-between;
|
|
9244
9304
|
position: static;
|
|
9245
9305
|
}
|
|
9246
9306
|
`;
|
|
9247
|
-
var logoStyles2 =
|
|
9307
|
+
var logoStyles2 = import_react62.css`
|
|
9248
9308
|
width: 100%;
|
|
9249
9309
|
|
|
9250
9310
|
@media (min-width: 768px) {
|
|
9251
9311
|
width: initial;
|
|
9252
9312
|
}
|
|
9253
9313
|
`;
|
|
9254
|
-
var desktopNavStyles =
|
|
9314
|
+
var desktopNavStyles = import_react62.css`
|
|
9255
9315
|
display: none;
|
|
9256
9316
|
|
|
9257
9317
|
@media (min-width: 768px) {
|
|
@@ -9260,7 +9320,7 @@ var desktopNavStyles = import_react60.css`
|
|
|
9260
9320
|
gap: 32px;
|
|
9261
9321
|
}
|
|
9262
9322
|
`;
|
|
9263
|
-
var navLinksStyles =
|
|
9323
|
+
var navLinksStyles = import_react62.css`
|
|
9264
9324
|
display: flex;
|
|
9265
9325
|
align-items: center;
|
|
9266
9326
|
gap: 24px;
|
|
@@ -9268,7 +9328,7 @@ var navLinksStyles = import_react60.css`
|
|
|
9268
9328
|
margin: 0;
|
|
9269
9329
|
padding: 0;
|
|
9270
9330
|
`;
|
|
9271
|
-
var navLinkStyles =
|
|
9331
|
+
var navLinkStyles = import_react62.css`
|
|
9272
9332
|
text-decoration: none;
|
|
9273
9333
|
color: #374151;
|
|
9274
9334
|
font-weight: 500;
|
|
@@ -9284,7 +9344,7 @@ var navLinkStyles = import_react60.css`
|
|
|
9284
9344
|
outline-offset: 2px;
|
|
9285
9345
|
}
|
|
9286
9346
|
`;
|
|
9287
|
-
var avatarPlaceholderStyles =
|
|
9347
|
+
var avatarPlaceholderStyles = import_react62.css`
|
|
9288
9348
|
width: 32px;
|
|
9289
9349
|
height: 32px;
|
|
9290
9350
|
border-radius: 50%;
|
|
@@ -9309,7 +9369,7 @@ var avatarPlaceholderStyles = import_react60.css`
|
|
|
9309
9369
|
`;
|
|
9310
9370
|
|
|
9311
9371
|
// src/Navigation/Navigation.tsx
|
|
9312
|
-
var
|
|
9372
|
+
var import_jsx_runtime257 = require("@emotion/react/jsx-runtime");
|
|
9313
9373
|
var Navigation = ({
|
|
9314
9374
|
onMenuToggle,
|
|
9315
9375
|
className,
|
|
@@ -9323,16 +9383,16 @@ var Navigation = ({
|
|
|
9323
9383
|
onAvatarClick,
|
|
9324
9384
|
...rest
|
|
9325
9385
|
}) => {
|
|
9326
|
-
return /* @__PURE__ */ (0,
|
|
9386
|
+
return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
|
|
9327
9387
|
Box_default,
|
|
9328
9388
|
{
|
|
9329
9389
|
display: "flex",
|
|
9330
9390
|
alignItems: "center",
|
|
9331
9391
|
padding: space[4],
|
|
9332
9392
|
position: "relative",
|
|
9333
|
-
css:
|
|
9393
|
+
css: containerStyles5,
|
|
9334
9394
|
children: [
|
|
9335
|
-
/* @__PURE__ */ (0,
|
|
9395
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9336
9396
|
Box_default,
|
|
9337
9397
|
{
|
|
9338
9398
|
as: "button",
|
|
@@ -9344,11 +9404,11 @@ var Navigation = ({
|
|
|
9344
9404
|
border: "none",
|
|
9345
9405
|
padding: space[2],
|
|
9346
9406
|
css: hamburgerButtonStyles,
|
|
9347
|
-
children: /* @__PURE__ */ (0,
|
|
9407
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
9348
9408
|
}
|
|
9349
9409
|
),
|
|
9350
|
-
/* @__PURE__ */ (0,
|
|
9351
|
-
/* @__PURE__ */ (0,
|
|
9410
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
9411
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { position: "absolute", left: "50%", top: "50%", css: centeredLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9352
9412
|
Logo_default,
|
|
9353
9413
|
{
|
|
9354
9414
|
variant: logoVariant,
|
|
@@ -9357,8 +9417,8 @@ var Navigation = ({
|
|
|
9357
9417
|
css: logoStyles2
|
|
9358
9418
|
}
|
|
9359
9419
|
) }),
|
|
9360
|
-
/* @__PURE__ */ (0,
|
|
9361
|
-
/* @__PURE__ */ (0,
|
|
9420
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(Box_default, { css: desktopNavStyles, children: [
|
|
9421
|
+
/* @__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)(
|
|
9362
9422
|
"a",
|
|
9363
9423
|
{
|
|
9364
9424
|
href: link.href,
|
|
@@ -9367,7 +9427,7 @@ var Navigation = ({
|
|
|
9367
9427
|
children: link.label
|
|
9368
9428
|
}
|
|
9369
9429
|
) }, link.href)) }) }),
|
|
9370
|
-
/* @__PURE__ */ (0,
|
|
9430
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9371
9431
|
Box_default,
|
|
9372
9432
|
{
|
|
9373
9433
|
as: "button",
|
|
@@ -9386,21 +9446,21 @@ var Navigation = ({
|
|
|
9386
9446
|
var Navigation_default = Navigation;
|
|
9387
9447
|
|
|
9388
9448
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
9389
|
-
var
|
|
9449
|
+
var import_react65 = require("react");
|
|
9390
9450
|
var import_react_intersection_observer = require("react-intersection-observer");
|
|
9391
9451
|
|
|
9392
9452
|
// src/ScrollingCarousel/context/CarouselContext.tsx
|
|
9393
|
-
var
|
|
9394
|
-
var CarouselContext =
|
|
9453
|
+
var import_react63 = __toESM(require("react"));
|
|
9454
|
+
var CarouselContext = import_react63.default.createContext(
|
|
9395
9455
|
null
|
|
9396
9456
|
);
|
|
9397
9457
|
|
|
9398
9458
|
// src/ScrollingCarousel/ScrollingCarousel.styles.ts
|
|
9399
|
-
var
|
|
9400
|
-
var carouselRoot =
|
|
9459
|
+
var import_react64 = require("@emotion/react");
|
|
9460
|
+
var carouselRoot = import_react64.css`
|
|
9401
9461
|
position: relative;
|
|
9402
9462
|
`;
|
|
9403
|
-
var carousel =
|
|
9463
|
+
var carousel = import_react64.css`
|
|
9404
9464
|
display: flex;
|
|
9405
9465
|
overflow-y: hidden;
|
|
9406
9466
|
overflow-x: scroll;
|
|
@@ -9412,7 +9472,7 @@ var carousel = import_react62.css`
|
|
|
9412
9472
|
display: none;
|
|
9413
9473
|
}
|
|
9414
9474
|
`;
|
|
9415
|
-
var step =
|
|
9475
|
+
var step = import_react64.css`
|
|
9416
9476
|
scroll-snap-align: center;
|
|
9417
9477
|
flex-basis: 100%;
|
|
9418
9478
|
flex-shrink: 0;
|
|
@@ -9425,7 +9485,7 @@ var step = import_react62.css`
|
|
|
9425
9485
|
flex-basis: 100%;
|
|
9426
9486
|
}
|
|
9427
9487
|
`;
|
|
9428
|
-
var controls = (position2) =>
|
|
9488
|
+
var controls = (position2) => import_react64.css`
|
|
9429
9489
|
${(position2 === "left-right" || position2 === "top-right") && `
|
|
9430
9490
|
display: none;
|
|
9431
9491
|
|
|
@@ -9434,7 +9494,7 @@ var controls = (position2) => import_react62.css`
|
|
|
9434
9494
|
}
|
|
9435
9495
|
`}
|
|
9436
9496
|
`;
|
|
9437
|
-
var iconWrapper =
|
|
9497
|
+
var iconWrapper = import_react64.css`
|
|
9438
9498
|
display: flex;
|
|
9439
9499
|
width: var(--spacing-7);
|
|
9440
9500
|
height: var(--spacing-7);
|
|
@@ -9444,7 +9504,7 @@ var iconWrapper = import_react62.css`
|
|
|
9444
9504
|
justify-content: center;
|
|
9445
9505
|
box-shadow: var(--shadow-md);
|
|
9446
9506
|
`;
|
|
9447
|
-
var button = (position2) =>
|
|
9507
|
+
var button = (position2) => import_react64.css`
|
|
9448
9508
|
background: transparent;
|
|
9449
9509
|
border-color: transparent;
|
|
9450
9510
|
outline: none;
|
|
@@ -9476,7 +9536,7 @@ var button = (position2) => import_react62.css`
|
|
|
9476
9536
|
bottom: calc(-1 * var(--spacing-1));
|
|
9477
9537
|
`}
|
|
9478
9538
|
`;
|
|
9479
|
-
var buttonLeft = (position2) =>
|
|
9539
|
+
var buttonLeft = (position2) => import_react64.css`
|
|
9480
9540
|
${button(position2)}
|
|
9481
9541
|
|
|
9482
9542
|
${position2 === "left-right" && `
|
|
@@ -9496,7 +9556,7 @@ var buttonLeft = (position2) => import_react62.css`
|
|
|
9496
9556
|
left: calc(50% - var(--spacing-16));
|
|
9497
9557
|
`}
|
|
9498
9558
|
`;
|
|
9499
|
-
var customButtonLeft = (position2) =>
|
|
9559
|
+
var customButtonLeft = (position2) => import_react64.css`
|
|
9500
9560
|
${button(position2)}
|
|
9501
9561
|
|
|
9502
9562
|
${position2 === "left-right" && `
|
|
@@ -9516,7 +9576,7 @@ var customButtonLeft = (position2) => import_react62.css`
|
|
|
9516
9576
|
left: calc(50% - var(--spacing-16));
|
|
9517
9577
|
`}
|
|
9518
9578
|
`;
|
|
9519
|
-
var buttonRight = (position2) =>
|
|
9579
|
+
var buttonRight = (position2) => import_react64.css`
|
|
9520
9580
|
${button(position2)}
|
|
9521
9581
|
|
|
9522
9582
|
${position2 === "left-right" && `
|
|
@@ -9536,12 +9596,12 @@ var buttonRight = (position2) => import_react62.css`
|
|
|
9536
9596
|
right: calc(50% - var(--spacing-16));
|
|
9537
9597
|
`}
|
|
9538
9598
|
`;
|
|
9539
|
-
var icon =
|
|
9599
|
+
var icon = import_react64.css`
|
|
9540
9600
|
width: var(--spacing-3);
|
|
9541
9601
|
height: var(--spacing-3);
|
|
9542
9602
|
color: var(--color-base-black);
|
|
9543
9603
|
`;
|
|
9544
|
-
var dots =
|
|
9604
|
+
var dots = import_react64.css`
|
|
9545
9605
|
position: absolute;
|
|
9546
9606
|
bottom: var(--spacing-2);
|
|
9547
9607
|
left: 0;
|
|
@@ -9551,11 +9611,11 @@ var dots = import_react62.css`
|
|
|
9551
9611
|
align-items: center;
|
|
9552
9612
|
justify-content: center;
|
|
9553
9613
|
`;
|
|
9554
|
-
var dotsInner =
|
|
9614
|
+
var dotsInner = import_react64.css`
|
|
9555
9615
|
display: flex;
|
|
9556
9616
|
overflow: hidden;
|
|
9557
9617
|
`;
|
|
9558
|
-
var dot = (dotsColor) =>
|
|
9618
|
+
var dot = (dotsColor) => import_react64.css`
|
|
9559
9619
|
position: relative;
|
|
9560
9620
|
flex-shrink: 0;
|
|
9561
9621
|
flex-grow: 0;
|
|
@@ -9594,22 +9654,22 @@ var dot = (dotsColor) => import_react62.css`
|
|
|
9594
9654
|
`}
|
|
9595
9655
|
}
|
|
9596
9656
|
`;
|
|
9597
|
-
var dotDistance2 =
|
|
9657
|
+
var dotDistance2 = import_react64.css`
|
|
9598
9658
|
&::after {
|
|
9599
9659
|
transform: translate(-50%, -50%) scale(0.9);
|
|
9600
9660
|
}
|
|
9601
9661
|
`;
|
|
9602
|
-
var dotDistance3 =
|
|
9662
|
+
var dotDistance3 = import_react64.css`
|
|
9603
9663
|
&::after {
|
|
9604
9664
|
transform: translate(-50%, -50%) scale(0.8);
|
|
9605
9665
|
}
|
|
9606
9666
|
`;
|
|
9607
|
-
var dotDistanceGreaterThan3 =
|
|
9667
|
+
var dotDistanceGreaterThan3 = import_react64.css`
|
|
9608
9668
|
&::after {
|
|
9609
9669
|
transform: translate(-50%, -50%) scale(0.7);
|
|
9610
9670
|
}
|
|
9611
9671
|
`;
|
|
9612
|
-
var dotVisible =
|
|
9672
|
+
var dotVisible = import_react64.css`
|
|
9613
9673
|
&::after {
|
|
9614
9674
|
opacity: 1;
|
|
9615
9675
|
transform: translate(-50%, -50%) scale(1.2);
|
|
@@ -9617,7 +9677,7 @@ var dotVisible = import_react62.css`
|
|
|
9617
9677
|
`;
|
|
9618
9678
|
|
|
9619
9679
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
9620
|
-
var
|
|
9680
|
+
var import_jsx_runtime258 = require("@emotion/react/jsx-runtime");
|
|
9621
9681
|
var ScrollingCarouselStep = ({
|
|
9622
9682
|
children,
|
|
9623
9683
|
index,
|
|
@@ -9625,7 +9685,7 @@ var ScrollingCarouselStep = ({
|
|
|
9625
9685
|
parentId,
|
|
9626
9686
|
onClick
|
|
9627
9687
|
}) => {
|
|
9628
|
-
const context = (0,
|
|
9688
|
+
const context = (0, import_react65.useContext)(CarouselContext);
|
|
9629
9689
|
if (!context) {
|
|
9630
9690
|
throw new Error(
|
|
9631
9691
|
"ScrollingCarouselStep must be used within ScrollingCarousel"
|
|
@@ -9636,7 +9696,7 @@ var ScrollingCarouselStep = ({
|
|
|
9636
9696
|
threshold: 0.75,
|
|
9637
9697
|
root: carousel2.current
|
|
9638
9698
|
});
|
|
9639
|
-
(0,
|
|
9699
|
+
(0, import_react65.useEffect)(() => {
|
|
9640
9700
|
if (typeof index !== "undefined") {
|
|
9641
9701
|
dispatch({
|
|
9642
9702
|
type: "set_child_visibility",
|
|
@@ -9644,7 +9704,7 @@ var ScrollingCarouselStep = ({
|
|
|
9644
9704
|
});
|
|
9645
9705
|
}
|
|
9646
9706
|
}, [inView, index, dispatch]);
|
|
9647
|
-
return /* @__PURE__ */ (0,
|
|
9707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
9648
9708
|
"div",
|
|
9649
9709
|
{
|
|
9650
9710
|
ref,
|
|
@@ -9662,10 +9722,10 @@ var ScrollingCarouselStep = ({
|
|
|
9662
9722
|
ScrollingCarouselStep.displayName = "ScrollingCarouselStep";
|
|
9663
9723
|
|
|
9664
9724
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
9665
|
-
var
|
|
9725
|
+
var import_react69 = __toESM(require("react"));
|
|
9666
9726
|
|
|
9667
9727
|
// src/ScrollingCarousel/hooks/useCarouselDots.ts
|
|
9668
|
-
var
|
|
9728
|
+
var import_react66 = require("react");
|
|
9669
9729
|
|
|
9670
9730
|
// src/ScrollingCarousel/ScrollingCarousel.helpers.ts
|
|
9671
9731
|
var childVisibilityReducer = (state, action) => {
|
|
@@ -9696,7 +9756,7 @@ var useCarouselDots = ({
|
|
|
9696
9756
|
anyItemsVisible,
|
|
9697
9757
|
numberOfDots
|
|
9698
9758
|
}) => {
|
|
9699
|
-
const dotOffset = (0,
|
|
9759
|
+
const dotOffset = (0, import_react66.useRef)(0);
|
|
9700
9760
|
const dotWidth = 12;
|
|
9701
9761
|
const totalDots = childVisibility.length;
|
|
9702
9762
|
const dotToCenterIndex = Math.round(
|
|
@@ -9728,7 +9788,7 @@ var useCarouselDots = ({
|
|
|
9728
9788
|
};
|
|
9729
9789
|
|
|
9730
9790
|
// src/ScrollingCarousel/hooks/useCarouselNavigation.ts
|
|
9731
|
-
var
|
|
9791
|
+
var import_react67 = require("react");
|
|
9732
9792
|
|
|
9733
9793
|
// src/shared/helpers.ts
|
|
9734
9794
|
var import_seamless_scroll_polyfill = require("seamless-scroll-polyfill");
|
|
@@ -9762,7 +9822,7 @@ var useCarouselNavigation = ({
|
|
|
9762
9822
|
infiniteScroll,
|
|
9763
9823
|
childVisibilityLength
|
|
9764
9824
|
}) => {
|
|
9765
|
-
const getStepEl = (0,
|
|
9825
|
+
const getStepEl = (0, import_react67.useCallback)(
|
|
9766
9826
|
(index) => {
|
|
9767
9827
|
if (carousel2.current) {
|
|
9768
9828
|
const selector = `[data-carousel-id="${id}"][data-carousel-index="${index}"]`;
|
|
@@ -9772,7 +9832,7 @@ var useCarouselNavigation = ({
|
|
|
9772
9832
|
},
|
|
9773
9833
|
[carousel2, id]
|
|
9774
9834
|
);
|
|
9775
|
-
const next = (0,
|
|
9835
|
+
const next = (0, import_react67.useCallback)(
|
|
9776
9836
|
(e) => {
|
|
9777
9837
|
e.preventDefault();
|
|
9778
9838
|
if (lastItemIsVisible && !infiniteScroll)
|
|
@@ -9800,7 +9860,7 @@ var useCarouselNavigation = ({
|
|
|
9800
9860
|
carousel2
|
|
9801
9861
|
]
|
|
9802
9862
|
);
|
|
9803
|
-
const back = (0,
|
|
9863
|
+
const back = (0, import_react67.useCallback)(
|
|
9804
9864
|
(e) => {
|
|
9805
9865
|
e.preventDefault();
|
|
9806
9866
|
if (firstItemIsVisible && !infiniteScroll)
|
|
@@ -9828,7 +9888,7 @@ var useCarouselNavigation = ({
|
|
|
9828
9888
|
carousel2
|
|
9829
9889
|
]
|
|
9830
9890
|
);
|
|
9831
|
-
const goTo = (0,
|
|
9891
|
+
const goTo = (0, import_react67.useCallback)(
|
|
9832
9892
|
(e, i) => {
|
|
9833
9893
|
e.preventDefault();
|
|
9834
9894
|
const el = getStepEl(i);
|
|
@@ -9846,12 +9906,12 @@ var useCarouselNavigation = ({
|
|
|
9846
9906
|
};
|
|
9847
9907
|
|
|
9848
9908
|
// src/ScrollingCarousel/hooks/useCarouselVisibility.ts
|
|
9849
|
-
var
|
|
9909
|
+
var import_react68 = require("react");
|
|
9850
9910
|
var useCarouselVisibility = (carousel2) => {
|
|
9851
|
-
const [state, dispatch] = (0,
|
|
9911
|
+
const [state, dispatch] = (0, import_react68.useReducer)(childVisibilityReducer, {
|
|
9852
9912
|
childVisibility: []
|
|
9853
9913
|
});
|
|
9854
|
-
const carouselContextApi = (0,
|
|
9914
|
+
const carouselContextApi = (0, import_react68.useMemo)(
|
|
9855
9915
|
() => ({ carousel: carousel2, dispatch }),
|
|
9856
9916
|
[carousel2]
|
|
9857
9917
|
);
|
|
@@ -9872,7 +9932,7 @@ var useCarouselVisibility = (carousel2) => {
|
|
|
9872
9932
|
};
|
|
9873
9933
|
|
|
9874
9934
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
9875
|
-
var
|
|
9935
|
+
var import_jsx_runtime259 = require("@emotion/react/jsx-runtime");
|
|
9876
9936
|
var ScrollingCarousel = ({
|
|
9877
9937
|
className,
|
|
9878
9938
|
children,
|
|
@@ -9889,8 +9949,8 @@ var ScrollingCarousel = ({
|
|
|
9889
9949
|
id,
|
|
9890
9950
|
current
|
|
9891
9951
|
}) => {
|
|
9892
|
-
const carousel2 = (0,
|
|
9893
|
-
const [isHovering, setIsHovering] = (0,
|
|
9952
|
+
const carousel2 = (0, import_react69.useRef)(null);
|
|
9953
|
+
const [isHovering, setIsHovering] = (0, import_react69.useState)(false);
|
|
9894
9954
|
const {
|
|
9895
9955
|
state,
|
|
9896
9956
|
carouselContextApi,
|
|
@@ -9910,7 +9970,7 @@ var ScrollingCarousel = ({
|
|
|
9910
9970
|
infiniteScroll,
|
|
9911
9971
|
childVisibilityLength: state.childVisibility.length
|
|
9912
9972
|
});
|
|
9913
|
-
(0,
|
|
9973
|
+
(0, import_react69.useEffect)(() => {
|
|
9914
9974
|
if (carousel2.current && typeof current === "number" && current >= 0) {
|
|
9915
9975
|
const childrenArray = Array.from(carousel2.current.children);
|
|
9916
9976
|
const selectedItem = childrenArray[current];
|
|
@@ -9925,9 +9985,9 @@ var ScrollingCarousel = ({
|
|
|
9925
9985
|
}
|
|
9926
9986
|
}
|
|
9927
9987
|
}, [current]);
|
|
9928
|
-
const childrenWithIndex =
|
|
9988
|
+
const childrenWithIndex = import_react69.default.Children.map(
|
|
9929
9989
|
children,
|
|
9930
|
-
(child, index) =>
|
|
9990
|
+
(child, index) => import_react69.default.cloneElement(child, { index })
|
|
9931
9991
|
);
|
|
9932
9992
|
const { dotOffset, dotDistances, dotWidth } = useCarouselDots({
|
|
9933
9993
|
childVisibility: state.childVisibility,
|
|
@@ -9938,7 +9998,7 @@ var ScrollingCarousel = ({
|
|
|
9938
9998
|
});
|
|
9939
9999
|
const hasMultipleChildren = state.childVisibility.length > 1;
|
|
9940
10000
|
const shouldShowNavigation = showNavigationOnHover ? isHovering : true;
|
|
9941
|
-
return /* @__PURE__ */ (0,
|
|
10001
|
+
return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
9942
10002
|
"div",
|
|
9943
10003
|
{
|
|
9944
10004
|
css: carouselRoot,
|
|
@@ -9946,7 +10006,7 @@ var ScrollingCarousel = ({
|
|
|
9946
10006
|
onMouseEnter: () => setIsHovering(true),
|
|
9947
10007
|
onMouseLeave: () => setIsHovering(false),
|
|
9948
10008
|
children: [
|
|
9949
|
-
/* @__PURE__ */ (0,
|
|
10009
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9950
10010
|
"div",
|
|
9951
10011
|
{
|
|
9952
10012
|
css: carousel,
|
|
@@ -9955,11 +10015,11 @@ var ScrollingCarousel = ({
|
|
|
9955
10015
|
role: "region",
|
|
9956
10016
|
"aria-roledescription": "carousel",
|
|
9957
10017
|
"aria-label": "Scrolling carousel",
|
|
9958
|
-
children: /* @__PURE__ */ (0,
|
|
10018
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(CarouselContext.Provider, { value: carouselContextApi, children: childrenWithIndex })
|
|
9959
10019
|
}
|
|
9960
10020
|
),
|
|
9961
|
-
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0,
|
|
9962
|
-
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
10021
|
+
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("div", { css: controls(buttonsPosition), children: [
|
|
10022
|
+
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9963
10023
|
"button",
|
|
9964
10024
|
{
|
|
9965
10025
|
"aria-label": "Previous",
|
|
@@ -9971,10 +10031,10 @@ var ScrollingCarousel = ({
|
|
|
9971
10031
|
},
|
|
9972
10032
|
css: customLeftButton ? customButtonLeft(buttonsPosition) : buttonLeft(buttonsPosition),
|
|
9973
10033
|
"data-testid": `scrolling-carousel-button-back-${id}`,
|
|
9974
|
-
children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0,
|
|
10034
|
+
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 }) })
|
|
9975
10035
|
}
|
|
9976
10036
|
),
|
|
9977
|
-
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
10037
|
+
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9978
10038
|
"button",
|
|
9979
10039
|
{
|
|
9980
10040
|
"aria-label": "Next",
|
|
@@ -9986,11 +10046,11 @@ var ScrollingCarousel = ({
|
|
|
9986
10046
|
},
|
|
9987
10047
|
css: buttonRight(buttonsPosition),
|
|
9988
10048
|
"data-testid": `scrolling-carousel-button-next-${id}`,
|
|
9989
|
-
children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0,
|
|
10049
|
+
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 }) })
|
|
9990
10050
|
}
|
|
9991
10051
|
)
|
|
9992
10052
|
] }),
|
|
9993
|
-
showDots && /* @__PURE__ */ (0,
|
|
10053
|
+
showDots && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("div", { css: dots, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9994
10054
|
"div",
|
|
9995
10055
|
{
|
|
9996
10056
|
css: dotsInner,
|
|
@@ -9998,7 +10058,7 @@ var ScrollingCarousel = ({
|
|
|
9998
10058
|
children: state.childVisibility.map((childVisibility, i) => {
|
|
9999
10059
|
var _a;
|
|
10000
10060
|
const distance = (_a = dotDistances[i]) != null ? _a : 0;
|
|
10001
|
-
return /* @__PURE__ */ (0,
|
|
10061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
10002
10062
|
"button",
|
|
10003
10063
|
{
|
|
10004
10064
|
type: "button",
|
|
@@ -10029,8 +10089,8 @@ var ScrollingCarousel = ({
|
|
|
10029
10089
|
ScrollingCarousel.displayName = "ScrollingCarousel";
|
|
10030
10090
|
|
|
10031
10091
|
// src/PackageCard/PackageCard.styles.ts
|
|
10032
|
-
var
|
|
10033
|
-
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) =>
|
|
10092
|
+
var import_react70 = require("@emotion/react");
|
|
10093
|
+
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) => import_react70.css`
|
|
10034
10094
|
${hasClickHandler && `
|
|
10035
10095
|
cursor: pointer;
|
|
10036
10096
|
`}
|
|
@@ -10048,7 +10108,7 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
10048
10108
|
flex-direction: column;
|
|
10049
10109
|
gap: var(--spacing-2);
|
|
10050
10110
|
|
|
10051
|
-
${orientation === "horizontal" &&
|
|
10111
|
+
${orientation === "horizontal" && import_react70.css`
|
|
10052
10112
|
/* Apply horizontal layout only on tablet and up */
|
|
10053
10113
|
${media.md} {
|
|
10054
10114
|
flex-direction: row;
|
|
@@ -10076,60 +10136,60 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
10076
10136
|
}
|
|
10077
10137
|
`}
|
|
10078
10138
|
`;
|
|
10079
|
-
var imageContainerStyles = (orientation) =>
|
|
10139
|
+
var imageContainerStyles = (orientation) => import_react70.css`
|
|
10080
10140
|
width: 100%;
|
|
10081
10141
|
height: 260px;
|
|
10082
10142
|
|
|
10083
|
-
${orientation === "horizontal" &&
|
|
10143
|
+
${orientation === "horizontal" && import_react70.css`
|
|
10084
10144
|
${media.md} {
|
|
10085
10145
|
width: 40%;
|
|
10086
10146
|
height: 200px;
|
|
10087
10147
|
}
|
|
10088
10148
|
`}
|
|
10089
10149
|
`;
|
|
10090
|
-
var imageBoxStyles = (orientation) =>
|
|
10150
|
+
var imageBoxStyles = (orientation) => import_react70.css`
|
|
10091
10151
|
height: 260px;
|
|
10092
10152
|
|
|
10093
|
-
${orientation === "horizontal" &&
|
|
10153
|
+
${orientation === "horizontal" && import_react70.css`
|
|
10094
10154
|
${media.md} {
|
|
10095
10155
|
height: 200px;
|
|
10096
10156
|
}
|
|
10097
10157
|
`}
|
|
10098
10158
|
`;
|
|
10099
|
-
var contentContainerStyles = (orientation, hasContentBackground) =>
|
|
10159
|
+
var contentContainerStyles = (orientation, hasContentBackground) => import_react70.css`
|
|
10100
10160
|
${hasContentBackground ? contentWithBackgroundStyles : contentWithoutBackgroundStyles}
|
|
10101
10161
|
width: 100%;
|
|
10102
10162
|
display: flex;
|
|
10103
10163
|
flex-direction: column;
|
|
10104
10164
|
justify-content: flex-start;
|
|
10105
10165
|
|
|
10106
|
-
${orientation === "horizontal" &&
|
|
10166
|
+
${orientation === "horizontal" && import_react70.css`
|
|
10107
10167
|
${media.md} {
|
|
10108
10168
|
width: 60%;
|
|
10109
10169
|
justify-content: center;
|
|
10110
10170
|
}
|
|
10111
10171
|
`}
|
|
10112
10172
|
`;
|
|
10113
|
-
var imageStyles3 =
|
|
10173
|
+
var imageStyles3 = import_react70.css`
|
|
10114
10174
|
background-size: cover;
|
|
10115
10175
|
background-position: center;
|
|
10116
10176
|
background-repeat: no-repeat;
|
|
10117
10177
|
position: relative;
|
|
10118
10178
|
background-color: lightgray;
|
|
10119
10179
|
`;
|
|
10120
|
-
var badgeTopLeftStyles =
|
|
10180
|
+
var badgeTopLeftStyles = import_react70.css`
|
|
10121
10181
|
position: absolute;
|
|
10122
10182
|
top: var(--spacing-3);
|
|
10123
10183
|
left: var(--spacing-3);
|
|
10124
10184
|
z-index: 2;
|
|
10125
10185
|
`;
|
|
10126
|
-
var badgeBottomRightStyles =
|
|
10186
|
+
var badgeBottomRightStyles = import_react70.css`
|
|
10127
10187
|
position: absolute;
|
|
10128
10188
|
bottom: var(--spacing-3);
|
|
10129
10189
|
right: var(--spacing-3);
|
|
10130
10190
|
z-index: 2;
|
|
10131
10191
|
`;
|
|
10132
|
-
var heartIconStyles =
|
|
10192
|
+
var heartIconStyles = import_react70.css`
|
|
10133
10193
|
position: absolute;
|
|
10134
10194
|
top: var(--spacing-3);
|
|
10135
10195
|
right: var(--spacing-3);
|
|
@@ -10151,20 +10211,20 @@ var heartIconStyles = import_react68.css`
|
|
|
10151
10211
|
transform: scale(1.1);
|
|
10152
10212
|
}
|
|
10153
10213
|
`;
|
|
10154
|
-
var actionMenuStyles =
|
|
10214
|
+
var actionMenuStyles = import_react70.css`
|
|
10155
10215
|
position: absolute;
|
|
10156
10216
|
top: var(--spacing-3);
|
|
10157
10217
|
right: var(--spacing-3);
|
|
10158
10218
|
z-index: 3;
|
|
10159
10219
|
`;
|
|
10160
|
-
var contentWithBackgroundStyles =
|
|
10220
|
+
var contentWithBackgroundStyles = import_react70.css`
|
|
10161
10221
|
padding: 0 var(--spacing-3) var(--spacing-4) var(--spacing-3);
|
|
10162
10222
|
background-color: var(--surface-page);
|
|
10163
10223
|
`;
|
|
10164
|
-
var contentWithoutBackgroundStyles =
|
|
10224
|
+
var contentWithoutBackgroundStyles = import_react70.css`
|
|
10165
10225
|
padding-top: 0 var(--spacing-2) var(--spacing-2) var(--spacing-2);
|
|
10166
10226
|
`;
|
|
10167
|
-
var overlayStyles =
|
|
10227
|
+
var overlayStyles = import_react70.css`
|
|
10168
10228
|
position: absolute;
|
|
10169
10229
|
top: 0;
|
|
10170
10230
|
left: 0;
|
|
@@ -10178,7 +10238,7 @@ var overlayStyles = import_react68.css`
|
|
|
10178
10238
|
`;
|
|
10179
10239
|
|
|
10180
10240
|
// src/PackageCard/PackageCard.tsx
|
|
10181
|
-
var
|
|
10241
|
+
var import_jsx_runtime260 = require("@emotion/react/jsx-runtime");
|
|
10182
10242
|
var PackageCard = ({
|
|
10183
10243
|
images,
|
|
10184
10244
|
title,
|
|
@@ -10200,7 +10260,7 @@ var PackageCard = ({
|
|
|
10200
10260
|
const shouldShowOverlay = availabilityBadges == null ? void 0 : availabilityBadges.some(
|
|
10201
10261
|
(badge2) => badge2.showOverlay
|
|
10202
10262
|
);
|
|
10203
|
-
return /* @__PURE__ */ (0,
|
|
10263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
10204
10264
|
Box_default,
|
|
10205
10265
|
{
|
|
10206
10266
|
position: "relative",
|
|
@@ -10209,7 +10269,7 @@ var PackageCard = ({
|
|
|
10209
10269
|
onClick,
|
|
10210
10270
|
...rest,
|
|
10211
10271
|
children: [
|
|
10212
|
-
/* @__PURE__ */ (0,
|
|
10272
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
10213
10273
|
Box_default,
|
|
10214
10274
|
{
|
|
10215
10275
|
position: "relative",
|
|
@@ -10217,7 +10277,7 @@ var PackageCard = ({
|
|
|
10217
10277
|
borderRadius: "var(--spacing-4)",
|
|
10218
10278
|
css: imageContainerStyles(orientation),
|
|
10219
10279
|
children: [
|
|
10220
|
-
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
10280
|
+
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10221
10281
|
AvailabilityBadge_default,
|
|
10222
10282
|
{
|
|
10223
10283
|
variant: badge2.variant,
|
|
@@ -10226,18 +10286,18 @@ var PackageCard = ({
|
|
|
10226
10286
|
},
|
|
10227
10287
|
`availability-${index}`
|
|
10228
10288
|
)),
|
|
10229
|
-
shouldShowOverlay && /* @__PURE__ */ (0,
|
|
10230
|
-
/* @__PURE__ */ (0,
|
|
10289
|
+
shouldShowOverlay && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { css: overlayStyles }),
|
|
10290
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10231
10291
|
ScrollingCarousel,
|
|
10232
10292
|
{
|
|
10233
10293
|
showDots: images.length > 1,
|
|
10234
10294
|
showNavigationOnHover: true,
|
|
10235
10295
|
id: carouselId,
|
|
10236
|
-
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0,
|
|
10296
|
+
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10237
10297
|
ScrollingCarouselStep,
|
|
10238
10298
|
{
|
|
10239
10299
|
parentId: carouselId,
|
|
10240
|
-
children: /* @__PURE__ */ (0,
|
|
10300
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10241
10301
|
Box_default,
|
|
10242
10302
|
{
|
|
10243
10303
|
width: "100%",
|
|
@@ -10255,7 +10315,7 @@ var PackageCard = ({
|
|
|
10255
10315
|
))
|
|
10256
10316
|
}
|
|
10257
10317
|
),
|
|
10258
|
-
onFavoriteClick && /* @__PURE__ */ (0,
|
|
10318
|
+
onFavoriteClick && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10259
10319
|
Box_default,
|
|
10260
10320
|
{
|
|
10261
10321
|
css: heartIconStyles,
|
|
@@ -10264,14 +10324,14 @@ var PackageCard = ({
|
|
|
10264
10324
|
e.stopPropagation();
|
|
10265
10325
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
10266
10326
|
},
|
|
10267
|
-
children: isFavorited ? /* @__PURE__ */ (0,
|
|
10327
|
+
children: isFavorited ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10268
10328
|
Icon_default,
|
|
10269
10329
|
{
|
|
10270
10330
|
variant: "HeartSolid",
|
|
10271
10331
|
size: "small",
|
|
10272
10332
|
fill: "var(--color-error-500)"
|
|
10273
10333
|
}
|
|
10274
|
-
) : /* @__PURE__ */ (0,
|
|
10334
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10275
10335
|
Icon_default,
|
|
10276
10336
|
{
|
|
10277
10337
|
variant: "Heart",
|
|
@@ -10281,13 +10341,13 @@ var PackageCard = ({
|
|
|
10281
10341
|
)
|
|
10282
10342
|
}
|
|
10283
10343
|
),
|
|
10284
|
-
actions && actions.length > 0 && orientation === "vertical" && /* @__PURE__ */ (0,
|
|
10344
|
+
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 }) })
|
|
10285
10345
|
]
|
|
10286
10346
|
}
|
|
10287
10347
|
),
|
|
10288
|
-
actions && actions.length > 0 && orientation === "horizontal" && /* @__PURE__ */ (0,
|
|
10289
|
-
/* @__PURE__ */ (0,
|
|
10290
|
-
/* @__PURE__ */ (0,
|
|
10348
|
+
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 }) }),
|
|
10349
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Box_default, { css: contentContainerStyles(orientation, hasContentBackground), children: [
|
|
10350
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
10291
10351
|
Box_default,
|
|
10292
10352
|
{
|
|
10293
10353
|
display: "flex",
|
|
@@ -10295,9 +10355,9 @@ var PackageCard = ({
|
|
|
10295
10355
|
gap: "var(--spacing-1)",
|
|
10296
10356
|
mb: "var(--spacing-1)",
|
|
10297
10357
|
children: [
|
|
10298
|
-
/* @__PURE__ */ (0,
|
|
10299
|
-
/* @__PURE__ */ (0,
|
|
10300
|
-
startingPrice && /* @__PURE__ */ (0,
|
|
10358
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }) }),
|
|
10359
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Text_default, { size: "sm", fontWeight: "bold", children: subtitle }) }),
|
|
10360
|
+
startingPrice && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Text_default, { size: "sm", fontWeight: "normal", children: [
|
|
10301
10361
|
"Starting Price ",
|
|
10302
10362
|
startingPrice,
|
|
10303
10363
|
" / Guest"
|
|
@@ -10305,14 +10365,14 @@ var PackageCard = ({
|
|
|
10305
10365
|
]
|
|
10306
10366
|
}
|
|
10307
10367
|
),
|
|
10308
|
-
badges && badges.length > 0 && /* @__PURE__ */ (0,
|
|
10368
|
+
badges && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10309
10369
|
Box_default,
|
|
10310
10370
|
{
|
|
10311
10371
|
display: "flex",
|
|
10312
10372
|
gap: "var(--spacing-2) var(--spacing-4)",
|
|
10313
10373
|
alignItems: "center",
|
|
10314
10374
|
flexWrap: "wrap",
|
|
10315
|
-
children: badges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
10375
|
+
children: badges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10316
10376
|
IconLabel_default,
|
|
10317
10377
|
{
|
|
10318
10378
|
iconSize: badge2.iconSize || "medium",
|
|
@@ -10331,14 +10391,14 @@ var PackageCard = ({
|
|
|
10331
10391
|
var PackageCard_default = PackageCard;
|
|
10332
10392
|
|
|
10333
10393
|
// src/PackageHeader/PackageHeader.tsx
|
|
10334
|
-
var
|
|
10394
|
+
var import_jsx_runtime261 = require("@emotion/react/jsx-runtime");
|
|
10335
10395
|
var PackageHeader = ({
|
|
10336
10396
|
header,
|
|
10337
10397
|
subheader,
|
|
10338
10398
|
features,
|
|
10339
10399
|
className
|
|
10340
10400
|
}) => {
|
|
10341
|
-
return /* @__PURE__ */ (0,
|
|
10401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
|
|
10342
10402
|
Box_default,
|
|
10343
10403
|
{
|
|
10344
10404
|
display: "flex",
|
|
@@ -10347,9 +10407,9 @@ var PackageHeader = ({
|
|
|
10347
10407
|
color: "var(--text-primary)",
|
|
10348
10408
|
className,
|
|
10349
10409
|
children: [
|
|
10350
|
-
/* @__PURE__ */ (0,
|
|
10351
|
-
subheader && /* @__PURE__ */ (0,
|
|
10352
|
-
features && /* @__PURE__ */ (0,
|
|
10410
|
+
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Heading_default, { size: "xs", fontWeight: "bold", children: header }),
|
|
10411
|
+
subheader && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Text_default, { children: subheader }),
|
|
10412
|
+
features && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(FeatureList_default, { items: features })
|
|
10353
10413
|
]
|
|
10354
10414
|
}
|
|
10355
10415
|
);
|
|
@@ -10357,8 +10417,8 @@ var PackageHeader = ({
|
|
|
10357
10417
|
var PackageHeader_default = PackageHeader;
|
|
10358
10418
|
|
|
10359
10419
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
10360
|
-
var
|
|
10361
|
-
var imageStyles4 =
|
|
10420
|
+
var import_react71 = require("@emotion/react");
|
|
10421
|
+
var imageStyles4 = import_react71.css`
|
|
10362
10422
|
flex: 1;
|
|
10363
10423
|
min-width: 0;
|
|
10364
10424
|
max-width: 100%;
|
|
@@ -10369,13 +10429,13 @@ var imageStyles4 = import_react69.css`
|
|
|
10369
10429
|
`;
|
|
10370
10430
|
|
|
10371
10431
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
10372
|
-
var
|
|
10432
|
+
var import_jsx_runtime262 = require("@emotion/react/jsx-runtime");
|
|
10373
10433
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
10374
10434
|
const displayImages = images.slice(0, maxImages);
|
|
10375
10435
|
if (displayImages.length === 0) {
|
|
10376
10436
|
return null;
|
|
10377
10437
|
}
|
|
10378
|
-
return /* @__PURE__ */ (0,
|
|
10438
|
+
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)(
|
|
10379
10439
|
"img",
|
|
10380
10440
|
{
|
|
10381
10441
|
src: image,
|
|
@@ -10388,7 +10448,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
10388
10448
|
var ReviewImages_default = ReviewImages;
|
|
10389
10449
|
|
|
10390
10450
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
10391
|
-
var
|
|
10451
|
+
var import_jsx_runtime263 = require("@emotion/react/jsx-runtime");
|
|
10392
10452
|
var ReviewReply = ({
|
|
10393
10453
|
avatarSrc,
|
|
10394
10454
|
name,
|
|
@@ -10397,7 +10457,7 @@ var ReviewReply = ({
|
|
|
10397
10457
|
label,
|
|
10398
10458
|
rating
|
|
10399
10459
|
}) => {
|
|
10400
|
-
return /* @__PURE__ */ (0,
|
|
10460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
|
|
10401
10461
|
Box_default,
|
|
10402
10462
|
{
|
|
10403
10463
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -10407,7 +10467,7 @@ var ReviewReply = ({
|
|
|
10407
10467
|
flexDirection: "column",
|
|
10408
10468
|
gap: "var(--spacing-3)",
|
|
10409
10469
|
children: [
|
|
10410
|
-
/* @__PURE__ */ (0,
|
|
10470
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
|
|
10411
10471
|
Box_default,
|
|
10412
10472
|
{
|
|
10413
10473
|
display: "flex",
|
|
@@ -10415,7 +10475,7 @@ var ReviewReply = ({
|
|
|
10415
10475
|
justifyContent: "space-between",
|
|
10416
10476
|
gap: "var(--spacing-2)",
|
|
10417
10477
|
children: [
|
|
10418
|
-
/* @__PURE__ */ (0,
|
|
10478
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
|
|
10419
10479
|
UserCard_default,
|
|
10420
10480
|
{
|
|
10421
10481
|
avatarSrc,
|
|
@@ -10424,11 +10484,11 @@ var ReviewReply = ({
|
|
|
10424
10484
|
rating
|
|
10425
10485
|
}
|
|
10426
10486
|
),
|
|
10427
|
-
/* @__PURE__ */ (0,
|
|
10487
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
10428
10488
|
]
|
|
10429
10489
|
}
|
|
10430
10490
|
),
|
|
10431
|
-
/* @__PURE__ */ (0,
|
|
10491
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Text_default, { children: content })
|
|
10432
10492
|
]
|
|
10433
10493
|
}
|
|
10434
10494
|
);
|
|
@@ -10436,7 +10496,7 @@ var ReviewReply = ({
|
|
|
10436
10496
|
var ReviewReply_default = ReviewReply;
|
|
10437
10497
|
|
|
10438
10498
|
// src/ReviewCard/ReviewCard.tsx
|
|
10439
|
-
var
|
|
10499
|
+
var import_jsx_runtime264 = require("@emotion/react/jsx-runtime");
|
|
10440
10500
|
var ReviewCard = ({
|
|
10441
10501
|
avatarSrc,
|
|
10442
10502
|
name,
|
|
@@ -10448,7 +10508,7 @@ var ReviewCard = ({
|
|
|
10448
10508
|
replies = [],
|
|
10449
10509
|
className
|
|
10450
10510
|
}) => {
|
|
10451
|
-
return /* @__PURE__ */ (0,
|
|
10511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
|
|
10452
10512
|
Box_default,
|
|
10453
10513
|
{
|
|
10454
10514
|
backgroundColor: "white",
|
|
@@ -10459,7 +10519,7 @@ var ReviewCard = ({
|
|
|
10459
10519
|
gap: "var(--spacing-4)",
|
|
10460
10520
|
className,
|
|
10461
10521
|
children: [
|
|
10462
|
-
/* @__PURE__ */ (0,
|
|
10522
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
10463
10523
|
UserCard_default,
|
|
10464
10524
|
{
|
|
10465
10525
|
avatarSrc,
|
|
@@ -10468,10 +10528,10 @@ var ReviewCard = ({
|
|
|
10468
10528
|
rating
|
|
10469
10529
|
}
|
|
10470
10530
|
),
|
|
10471
|
-
availabilityBadge && /* @__PURE__ */ (0,
|
|
10472
|
-
/* @__PURE__ */ (0,
|
|
10473
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
10474
|
-
replies.length > 0 && /* @__PURE__ */ (0,
|
|
10531
|
+
availabilityBadge && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(AvailabilityBadge_default, { variant: availabilityBadge.variant, children: availabilityBadge.text }) }),
|
|
10532
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Text_default, { size: "md", children: content }),
|
|
10533
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(ReviewImages_default, { images }),
|
|
10534
|
+
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)(
|
|
10475
10535
|
ReviewReply_default,
|
|
10476
10536
|
{
|
|
10477
10537
|
avatarSrc: reply.avatarSrc,
|
|
@@ -10490,12 +10550,12 @@ var ReviewCard = ({
|
|
|
10490
10550
|
var ReviewCard_default = ReviewCard;
|
|
10491
10551
|
|
|
10492
10552
|
// src/Reviews/Reviews.tsx
|
|
10493
|
-
var
|
|
10553
|
+
var import_react72 = require("@emotion/react");
|
|
10494
10554
|
|
|
10495
10555
|
// src/Reviews/components/ReviewItem.tsx
|
|
10496
|
-
var
|
|
10556
|
+
var import_jsx_runtime265 = require("@emotion/react/jsx-runtime");
|
|
10497
10557
|
var ReviewItem = ({ label, rating }) => {
|
|
10498
|
-
return /* @__PURE__ */ (0,
|
|
10558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
|
|
10499
10559
|
Box_default,
|
|
10500
10560
|
{
|
|
10501
10561
|
display: "flex",
|
|
@@ -10503,10 +10563,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
10503
10563
|
alignItems: "center",
|
|
10504
10564
|
width: "100%",
|
|
10505
10565
|
children: [
|
|
10506
|
-
/* @__PURE__ */ (0,
|
|
10507
|
-
/* @__PURE__ */ (0,
|
|
10508
|
-
/* @__PURE__ */ (0,
|
|
10509
|
-
/* @__PURE__ */ (0,
|
|
10566
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Text_default, { fontWeight: "semibold", children: label }),
|
|
10567
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
10568
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Icon_default, { variant: "StarSolid", size: "large", fill: "var(--surface-action-2)" }),
|
|
10569
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Text_default, { fontWeight: "semibold", children: rating.toFixed(1) })
|
|
10510
10570
|
] })
|
|
10511
10571
|
]
|
|
10512
10572
|
}
|
|
@@ -10515,14 +10575,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
10515
10575
|
var ReviewItem_default = ReviewItem;
|
|
10516
10576
|
|
|
10517
10577
|
// src/Reviews/Reviews.tsx
|
|
10518
|
-
var
|
|
10578
|
+
var import_jsx_runtime266 = require("@emotion/react/jsx-runtime");
|
|
10519
10579
|
var Reviews = ({
|
|
10520
10580
|
averageRating,
|
|
10521
10581
|
totalReviews,
|
|
10522
10582
|
items,
|
|
10523
10583
|
className
|
|
10524
10584
|
}) => {
|
|
10525
|
-
return /* @__PURE__ */ (0,
|
|
10585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
|
|
10526
10586
|
Box_default,
|
|
10527
10587
|
{
|
|
10528
10588
|
width: "100%",
|
|
@@ -10535,7 +10595,7 @@ var Reviews = ({
|
|
|
10535
10595
|
p: "var(--spacing-4)",
|
|
10536
10596
|
className,
|
|
10537
10597
|
children: [
|
|
10538
|
-
/* @__PURE__ */ (0,
|
|
10598
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
|
|
10539
10599
|
Box_default,
|
|
10540
10600
|
{
|
|
10541
10601
|
display: "flex",
|
|
@@ -10543,12 +10603,12 @@ var Reviews = ({
|
|
|
10543
10603
|
alignItems: "center",
|
|
10544
10604
|
gap: "var(--spacing-2)",
|
|
10545
10605
|
children: [
|
|
10546
|
-
/* @__PURE__ */ (0,
|
|
10547
|
-
/* @__PURE__ */ (0,
|
|
10606
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
10607
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
|
|
10548
10608
|
StarRating_default,
|
|
10549
10609
|
{
|
|
10550
10610
|
rating: averageRating,
|
|
10551
|
-
css:
|
|
10611
|
+
css: import_react72.css`
|
|
10552
10612
|
> svg {
|
|
10553
10613
|
height: 40px;
|
|
10554
10614
|
width: 40px;
|
|
@@ -10556,7 +10616,7 @@ var Reviews = ({
|
|
|
10556
10616
|
`
|
|
10557
10617
|
}
|
|
10558
10618
|
),
|
|
10559
|
-
/* @__PURE__ */ (0,
|
|
10619
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
10560
10620
|
"Overall Rating \u2022 ",
|
|
10561
10621
|
totalReviews,
|
|
10562
10622
|
" Review",
|
|
@@ -10565,14 +10625,14 @@ var Reviews = ({
|
|
|
10565
10625
|
]
|
|
10566
10626
|
}
|
|
10567
10627
|
),
|
|
10568
|
-
/* @__PURE__ */ (0,
|
|
10628
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
|
|
10569
10629
|
Box_default,
|
|
10570
10630
|
{
|
|
10571
10631
|
display: "flex",
|
|
10572
10632
|
flexDirection: "column",
|
|
10573
10633
|
gap: "var(--spacing-2)",
|
|
10574
10634
|
width: "100%",
|
|
10575
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
10635
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(ReviewItem_default, { label: item.label, rating: item.rating }, index))
|
|
10576
10636
|
}
|
|
10577
10637
|
)
|
|
10578
10638
|
]
|
|
@@ -10582,7 +10642,7 @@ var Reviews = ({
|
|
|
10582
10642
|
var Reviews_default = Reviews;
|
|
10583
10643
|
|
|
10584
10644
|
// src/Reviews/ReviewsShowcase.tsx
|
|
10585
|
-
var
|
|
10645
|
+
var import_jsx_runtime267 = require("@emotion/react/jsx-runtime");
|
|
10586
10646
|
var ReviewsShowcase = () => {
|
|
10587
10647
|
const sampleData = {
|
|
10588
10648
|
averageRating: 4,
|
|
@@ -10604,7 +10664,7 @@ var ReviewsShowcase = () => {
|
|
|
10604
10664
|
{ label: "Game Abundance", rating: 5 }
|
|
10605
10665
|
]
|
|
10606
10666
|
};
|
|
10607
|
-
return /* @__PURE__ */ (0,
|
|
10667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(
|
|
10608
10668
|
Box_default,
|
|
10609
10669
|
{
|
|
10610
10670
|
display: "flex",
|
|
@@ -10612,24 +10672,24 @@ var ReviewsShowcase = () => {
|
|
|
10612
10672
|
gap: "var(--spacing-8)",
|
|
10613
10673
|
p: "var(--spacing-6)",
|
|
10614
10674
|
children: [
|
|
10615
|
-
/* @__PURE__ */ (0,
|
|
10616
|
-
/* @__PURE__ */ (0,
|
|
10617
|
-
/* @__PURE__ */ (0,
|
|
10618
|
-
/* @__PURE__ */ (0,
|
|
10675
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Heading_default, { size: "lg", children: "Reviews Component Showcase" }),
|
|
10676
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
10677
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Heading_default, { size: "md", children: "Default Reviews" }),
|
|
10678
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Reviews_default, { ...sampleData }) })
|
|
10619
10679
|
] }),
|
|
10620
|
-
/* @__PURE__ */ (0,
|
|
10621
|
-
/* @__PURE__ */ (0,
|
|
10622
|
-
/* @__PURE__ */ (0,
|
|
10680
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
10681
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Heading_default, { size: "md", children: "High Rating Reviews" }),
|
|
10682
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Reviews_default, { ...highRatingData }) })
|
|
10623
10683
|
] }),
|
|
10624
|
-
/* @__PURE__ */ (0,
|
|
10625
|
-
/* @__PURE__ */ (0,
|
|
10626
|
-
/* @__PURE__ */ (0,
|
|
10684
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
10685
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Heading_default, { size: "md", children: "Mobile Layout (320px width)" }),
|
|
10686
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
|
|
10627
10687
|
Box_default,
|
|
10628
10688
|
{
|
|
10629
10689
|
maxWidth: "320px",
|
|
10630
10690
|
border: "1px solid var(--color-neutral-200)",
|
|
10631
10691
|
p: "var(--spacing-4)",
|
|
10632
|
-
children: /* @__PURE__ */ (0,
|
|
10692
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Reviews_default, { ...sampleData })
|
|
10633
10693
|
}
|
|
10634
10694
|
)
|
|
10635
10695
|
] })
|
|
@@ -10652,6 +10712,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
10652
10712
|
Column,
|
|
10653
10713
|
ContactLandownerButton,
|
|
10654
10714
|
Container,
|
|
10715
|
+
CtaCard,
|
|
10655
10716
|
Divider,
|
|
10656
10717
|
FeatureList,
|
|
10657
10718
|
FeatureListItem,
|