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