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