@landtrustinc/design-system 1.2.43 → 1.2.45
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 +163 -3
- package/dist/index.js +900 -294
- 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,
|
|
@@ -7713,11 +7717,11 @@ var GridContainer = ({
|
|
|
7713
7717
|
className,
|
|
7714
7718
|
...props
|
|
7715
7719
|
}) => {
|
|
7716
|
-
const
|
|
7720
|
+
const containerStyles5 = [
|
|
7717
7721
|
baseContainerStyles,
|
|
7718
7722
|
generateMaxWidthStyles(maxWidth)
|
|
7719
7723
|
];
|
|
7720
|
-
return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Box_default, { css:
|
|
7724
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Box_default, { css: containerStyles5, className, ...props, children });
|
|
7721
7725
|
};
|
|
7722
7726
|
var GridContainer_default = GridContainer;
|
|
7723
7727
|
|
|
@@ -7785,10 +7789,603 @@ var HuntCard = ({
|
|
|
7785
7789
|
};
|
|
7786
7790
|
var HuntCard_default = HuntCard;
|
|
7787
7791
|
|
|
7788
|
-
// src/
|
|
7792
|
+
// src/ImageGalleryModal/ImageGalleryModal.tsx
|
|
7793
|
+
var import_react52 = require("react");
|
|
7794
|
+
|
|
7795
|
+
// src/Modal/Modal.tsx
|
|
7796
|
+
var import_react50 = require("react");
|
|
7797
|
+
var import_react_dom3 = __toESM(require("react-dom"));
|
|
7798
|
+
|
|
7799
|
+
// src/Modal/Modal.styles.ts
|
|
7800
|
+
var import_react49 = require("@emotion/react");
|
|
7801
|
+
var fadeIn = import_react49.keyframes`
|
|
7802
|
+
from {
|
|
7803
|
+
opacity: 0;
|
|
7804
|
+
}
|
|
7805
|
+
to {
|
|
7806
|
+
opacity: 1;
|
|
7807
|
+
}
|
|
7808
|
+
`;
|
|
7809
|
+
var fadeInScale = import_react49.keyframes`
|
|
7810
|
+
from {
|
|
7811
|
+
opacity: 0;
|
|
7812
|
+
transform: scale(0.95);
|
|
7813
|
+
}
|
|
7814
|
+
to {
|
|
7815
|
+
opacity: 1;
|
|
7816
|
+
transform: scale(1);
|
|
7817
|
+
}
|
|
7818
|
+
`;
|
|
7819
|
+
var scrollLayerStyles = import_react49.css`
|
|
7820
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
7821
|
+
backdrop-filter: blur(4px);
|
|
7822
|
+
animation: ${fadeIn} 0.15s ease-out forwards;
|
|
7823
|
+
|
|
7824
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7825
|
+
animation: none;
|
|
7826
|
+
}
|
|
7827
|
+
`;
|
|
7828
|
+
var containerStyles2 = import_react49.css`
|
|
7829
|
+
background-color: var(--surface-primary, #ffffff);
|
|
7830
|
+
border-radius: var(--radius-lg, 12px);
|
|
7831
|
+
max-height: calc(100dvh - var(--spacing-8));
|
|
7832
|
+
box-shadow: var(--shadow-xl, 0 20px 40px 0 rgba(0, 0, 0, 0.3));
|
|
7833
|
+
animation: ${fadeInScale} 0.2s ease-out 0.05s both;
|
|
7834
|
+
|
|
7835
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7836
|
+
animation: none;
|
|
7837
|
+
}
|
|
7838
|
+
`;
|
|
7839
|
+
var sizeStyles3 = {
|
|
7840
|
+
sm: import_react49.css`
|
|
7841
|
+
width: 100%;
|
|
7842
|
+
max-width: 24rem; /* 384px */
|
|
7843
|
+
padding: var(--spacing-5);
|
|
7844
|
+
`,
|
|
7845
|
+
md: import_react49.css`
|
|
7846
|
+
width: 100%;
|
|
7847
|
+
max-width: 32rem; /* 512px */
|
|
7848
|
+
padding: var(--spacing-6);
|
|
7849
|
+
`,
|
|
7850
|
+
lg: import_react49.css`
|
|
7851
|
+
width: 100%;
|
|
7852
|
+
max-width: 48rem; /* 768px */
|
|
7853
|
+
padding: var(--spacing-6);
|
|
7854
|
+
|
|
7855
|
+
${media.lg} {
|
|
7856
|
+
padding: var(--spacing-8);
|
|
7857
|
+
}
|
|
7858
|
+
`,
|
|
7859
|
+
xl: import_react49.css`
|
|
7860
|
+
width: 100%;
|
|
7861
|
+
max-width: 64rem; /* 1024px */
|
|
7862
|
+
padding: var(--spacing-6);
|
|
7863
|
+
|
|
7864
|
+
${media.lg} {
|
|
7865
|
+
padding: var(--spacing-8);
|
|
7866
|
+
}
|
|
7867
|
+
`,
|
|
7868
|
+
full: import_react49.css`
|
|
7869
|
+
width: calc(100vw - var(--spacing-8));
|
|
7870
|
+
height: calc(100dvh - var(--spacing-8));
|
|
7871
|
+
max-width: none;
|
|
7872
|
+
max-height: none;
|
|
7873
|
+
padding: 0;
|
|
7874
|
+
border-radius: var(--radius-md, 8px);
|
|
7875
|
+
`
|
|
7876
|
+
};
|
|
7877
|
+
var closeButtonStyles = import_react49.css`
|
|
7878
|
+
position: absolute;
|
|
7879
|
+
top: var(--spacing-4);
|
|
7880
|
+
right: var(--spacing-4);
|
|
7881
|
+
z-index: 1;
|
|
7882
|
+
`;
|
|
7883
|
+
var closeButtonFullStyles = import_react49.css`
|
|
7884
|
+
top: var(--spacing-3);
|
|
7885
|
+
right: var(--spacing-3);
|
|
7886
|
+
background-color: rgba(255, 255, 255, 0.9);
|
|
7887
|
+
border-radius: var(--radius-xxl, 25px);
|
|
7888
|
+
padding: var(--spacing-2) var(--spacing-4);
|
|
7889
|
+
|
|
7890
|
+
&:hover {
|
|
7891
|
+
background-color: var(--color-base-white, #ffffff);
|
|
7892
|
+
}
|
|
7893
|
+
`;
|
|
7894
|
+
|
|
7895
|
+
// src/Modal/Modal.tsx
|
|
7789
7896
|
var import_jsx_runtime241 = require("@emotion/react/jsx-runtime");
|
|
7897
|
+
var Modal = ({
|
|
7898
|
+
id,
|
|
7899
|
+
isOpen,
|
|
7900
|
+
onClose,
|
|
7901
|
+
children,
|
|
7902
|
+
size = "md",
|
|
7903
|
+
closeOnOutsideClick = true,
|
|
7904
|
+
closeOnEscape = true,
|
|
7905
|
+
showCloseButton = true,
|
|
7906
|
+
closeButtonIcon = "Xmark",
|
|
7907
|
+
scrollLayerStyles: customScrollLayerStyles,
|
|
7908
|
+
containerStyles: customContainerStyles,
|
|
7909
|
+
contentStyles: customContentStyles,
|
|
7910
|
+
closeButtonStyles: customCloseButtonStyles,
|
|
7911
|
+
className,
|
|
7912
|
+
ariaLabel,
|
|
7913
|
+
ariaDescribedBy
|
|
7914
|
+
}) => {
|
|
7915
|
+
const containerRef = (0, import_react50.useRef)(null);
|
|
7916
|
+
const previousScrollY = (0, import_react50.useRef)(0);
|
|
7917
|
+
const previousActiveElement = (0, import_react50.useRef)(null);
|
|
7918
|
+
const handleKeyDown = (0, import_react50.useCallback)(
|
|
7919
|
+
(event) => {
|
|
7920
|
+
if (closeOnEscape && event.key === "Escape" && onClose) {
|
|
7921
|
+
onClose(event);
|
|
7922
|
+
}
|
|
7923
|
+
},
|
|
7924
|
+
[closeOnEscape, onClose]
|
|
7925
|
+
);
|
|
7926
|
+
(0, import_react50.useEffect)(() => {
|
|
7927
|
+
if (isOpen) {
|
|
7928
|
+
previousScrollY.current = window.scrollY;
|
|
7929
|
+
previousActiveElement.current = document.activeElement;
|
|
7930
|
+
document.body.style.position = "fixed";
|
|
7931
|
+
document.body.style.top = `-${previousScrollY.current}px`;
|
|
7932
|
+
document.body.style.width = "100%";
|
|
7933
|
+
document.body.style.overflow = "hidden";
|
|
7934
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
7935
|
+
if (containerRef.current) {
|
|
7936
|
+
containerRef.current.focus();
|
|
7937
|
+
}
|
|
7938
|
+
} else {
|
|
7939
|
+
document.body.style.position = "";
|
|
7940
|
+
document.body.style.overflow = "";
|
|
7941
|
+
document.body.style.width = "";
|
|
7942
|
+
document.body.style.top = "";
|
|
7943
|
+
window.scrollTo(0, previousScrollY.current);
|
|
7944
|
+
if (previousActiveElement.current instanceof HTMLElement) {
|
|
7945
|
+
previousActiveElement.current.focus();
|
|
7946
|
+
}
|
|
7947
|
+
}
|
|
7948
|
+
return () => {
|
|
7949
|
+
document.removeEventListener("keydown", handleKeyDown);
|
|
7950
|
+
document.body.style.position = "";
|
|
7951
|
+
document.body.style.overflow = "";
|
|
7952
|
+
document.body.style.width = "";
|
|
7953
|
+
document.body.style.top = "";
|
|
7954
|
+
};
|
|
7955
|
+
}, [isOpen, handleKeyDown]);
|
|
7956
|
+
const handleClose = (0, import_react50.useCallback)(
|
|
7957
|
+
(event) => {
|
|
7958
|
+
if (onClose) {
|
|
7959
|
+
onClose(event);
|
|
7960
|
+
}
|
|
7961
|
+
},
|
|
7962
|
+
[onClose]
|
|
7963
|
+
);
|
|
7964
|
+
const handleBackdropClick = (0, import_react50.useCallback)(
|
|
7965
|
+
(event) => {
|
|
7966
|
+
if (!closeOnOutsideClick || !containerRef.current || containerRef.current.contains(event.target)) {
|
|
7967
|
+
return;
|
|
7968
|
+
}
|
|
7969
|
+
handleClose(event);
|
|
7970
|
+
},
|
|
7971
|
+
[closeOnOutsideClick, handleClose]
|
|
7972
|
+
);
|
|
7973
|
+
if (!isOpen) {
|
|
7974
|
+
return null;
|
|
7975
|
+
}
|
|
7976
|
+
if (typeof document === "undefined") {
|
|
7977
|
+
return null;
|
|
7978
|
+
}
|
|
7979
|
+
const closeButton = showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
7980
|
+
Button_default,
|
|
7981
|
+
{
|
|
7982
|
+
onClick: handleClose,
|
|
7983
|
+
css: [
|
|
7984
|
+
closeButtonStyles,
|
|
7985
|
+
size === "full" && closeButtonFullStyles,
|
|
7986
|
+
customCloseButtonStyles
|
|
7987
|
+
],
|
|
7988
|
+
"data-testid": `modal-close-button-${id}`,
|
|
7989
|
+
"aria-label": "Close modal",
|
|
7990
|
+
variant: "text",
|
|
7991
|
+
size: "xs",
|
|
7992
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
7993
|
+
Box_default,
|
|
7994
|
+
{
|
|
7995
|
+
as: "span",
|
|
7996
|
+
display: "inline-flex",
|
|
7997
|
+
alignItems: "center",
|
|
7998
|
+
gap: "var(--spacing-2)",
|
|
7999
|
+
children: [
|
|
8000
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Icon_default, { variant: closeButtonIcon, size: "medium" }),
|
|
8001
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)("span", { children: "Close" })
|
|
8002
|
+
]
|
|
8003
|
+
}
|
|
8004
|
+
)
|
|
8005
|
+
}
|
|
8006
|
+
);
|
|
8007
|
+
return import_react_dom3.default.createPortal(
|
|
8008
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
8009
|
+
Box_default,
|
|
8010
|
+
{
|
|
8011
|
+
display: "flex",
|
|
8012
|
+
flexDirection: "column",
|
|
8013
|
+
position: "fixed",
|
|
8014
|
+
top: 0,
|
|
8015
|
+
right: 0,
|
|
8016
|
+
bottom: 0,
|
|
8017
|
+
left: 0,
|
|
8018
|
+
width: "100%",
|
|
8019
|
+
zIndex: 9999,
|
|
8020
|
+
className,
|
|
8021
|
+
role: "presentation",
|
|
8022
|
+
"data-testid": `modal-${id}`,
|
|
8023
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
8024
|
+
Box_default,
|
|
8025
|
+
{
|
|
8026
|
+
display: "flex",
|
|
8027
|
+
justifyContent: "center",
|
|
8028
|
+
alignItems: "center",
|
|
8029
|
+
flex: "1",
|
|
8030
|
+
overflow: "auto",
|
|
8031
|
+
p: "var(--spacing-4)",
|
|
8032
|
+
css: [scrollLayerStyles, customScrollLayerStyles],
|
|
8033
|
+
onClick: handleBackdropClick,
|
|
8034
|
+
onKeyDown: (e) => e.key === "Escape" && handleClose(e),
|
|
8035
|
+
role: "presentation",
|
|
8036
|
+
"data-testid": `modal-backdrop-${id}`,
|
|
8037
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
8038
|
+
Box_default,
|
|
8039
|
+
{
|
|
8040
|
+
ref: containerRef,
|
|
8041
|
+
display: "flex",
|
|
8042
|
+
flexDirection: "column",
|
|
8043
|
+
position: "relative",
|
|
8044
|
+
overflow: "hidden",
|
|
8045
|
+
css: [
|
|
8046
|
+
containerStyles2,
|
|
8047
|
+
sizeStyles3[size],
|
|
8048
|
+
customContainerStyles
|
|
8049
|
+
],
|
|
8050
|
+
role: "dialog",
|
|
8051
|
+
"aria-modal": "true",
|
|
8052
|
+
"aria-label": ariaLabel,
|
|
8053
|
+
"aria-describedby": ariaDescribedBy,
|
|
8054
|
+
tabIndex: -1,
|
|
8055
|
+
children: [
|
|
8056
|
+
closeButton,
|
|
8057
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Box_default, { flex: "1", overflow: "auto", css: customContentStyles, children })
|
|
8058
|
+
]
|
|
8059
|
+
}
|
|
8060
|
+
)
|
|
8061
|
+
}
|
|
8062
|
+
)
|
|
8063
|
+
}
|
|
8064
|
+
),
|
|
8065
|
+
document.body
|
|
8066
|
+
);
|
|
8067
|
+
};
|
|
8068
|
+
Modal.displayName = "Modal";
|
|
8069
|
+
var Modal_default = Modal;
|
|
8070
|
+
|
|
8071
|
+
// src/ImageGalleryModal/ImageGalleryModal.styles.ts
|
|
8072
|
+
var import_react51 = require("@emotion/react");
|
|
8073
|
+
var galleryBackgroundStyles = import_react51.css`
|
|
8074
|
+
background-color: var(--color-base-black, #000000);
|
|
8075
|
+
`;
|
|
8076
|
+
var imageStyles2 = import_react51.css`
|
|
8077
|
+
max-width: 100%;
|
|
8078
|
+
max-height: 100%;
|
|
8079
|
+
width: auto;
|
|
8080
|
+
height: auto;
|
|
8081
|
+
object-fit: contain;
|
|
8082
|
+
border-radius: var(--radius-md, 8px);
|
|
8083
|
+
|
|
8084
|
+
${media.md} {
|
|
8085
|
+
max-height: calc(100vh - var(--spacing-32));
|
|
8086
|
+
}
|
|
8087
|
+
`;
|
|
8088
|
+
var counterStyles = import_react51.css`
|
|
8089
|
+
transform: translateX(-50%);
|
|
8090
|
+
color: var(--color-base-white, #ffffff);
|
|
8091
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
8092
|
+
padding: var(--spacing-2) var(--spacing-4);
|
|
8093
|
+
border-radius: var(--radius-full, 9999px);
|
|
8094
|
+
`;
|
|
8095
|
+
var captionStyles = import_react51.css`
|
|
8096
|
+
transform: translateX(-50%);
|
|
8097
|
+
color: var(--color-base-white, #ffffff);
|
|
8098
|
+
text-align: center;
|
|
8099
|
+
padding: var(--spacing-2) var(--spacing-4);
|
|
8100
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
8101
|
+
border-radius: var(--radius-md, 8px);
|
|
8102
|
+
max-width: 80%;
|
|
8103
|
+
`;
|
|
8104
|
+
var navigationButtonStyles = import_react51.css`
|
|
8105
|
+
position: absolute;
|
|
8106
|
+
top: 50%;
|
|
8107
|
+
transform: translateY(-50%);
|
|
8108
|
+
width: var(--spacing-12);
|
|
8109
|
+
height: var(--spacing-12);
|
|
8110
|
+
background-color: rgba(255, 255, 255, 0.9);
|
|
8111
|
+
border: none;
|
|
8112
|
+
border-radius: var(--radius-round, 50%);
|
|
8113
|
+
display: flex;
|
|
8114
|
+
align-items: center;
|
|
8115
|
+
justify-content: center;
|
|
8116
|
+
cursor: pointer;
|
|
8117
|
+
z-index: 10;
|
|
8118
|
+
transition: background-color 0.15s ease, transform 0.15s ease;
|
|
8119
|
+
box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
|
|
8120
|
+
|
|
8121
|
+
&:hover {
|
|
8122
|
+
background-color: var(--color-base-white, #ffffff);
|
|
8123
|
+
transform: translateY(-50%) scale(1.05);
|
|
8124
|
+
}
|
|
8125
|
+
|
|
8126
|
+
&:active {
|
|
8127
|
+
transform: translateY(-50%) scale(0.95);
|
|
8128
|
+
}
|
|
8129
|
+
|
|
8130
|
+
&:focus {
|
|
8131
|
+
outline: 2px solid var(--border-focus, #3e704b);
|
|
8132
|
+
outline-offset: 2px;
|
|
8133
|
+
}
|
|
8134
|
+
`;
|
|
8135
|
+
var prevButtonStyles = import_react51.css`
|
|
8136
|
+
${navigationButtonStyles}
|
|
8137
|
+
left: var(--spacing-4);
|
|
8138
|
+
`;
|
|
8139
|
+
var nextButtonStyles = import_react51.css`
|
|
8140
|
+
${navigationButtonStyles}
|
|
8141
|
+
right: var(--spacing-4);
|
|
8142
|
+
`;
|
|
8143
|
+
var dotsContainerPositionStyles = import_react51.css`
|
|
8144
|
+
transform: translateX(-50%);
|
|
8145
|
+
`;
|
|
8146
|
+
var dotStyles = import_react51.css`
|
|
8147
|
+
width: var(--spacing-2);
|
|
8148
|
+
height: var(--spacing-2);
|
|
8149
|
+
border-radius: var(--radius-round, 50%);
|
|
8150
|
+
background-color: rgba(255, 255, 255, 0.5);
|
|
8151
|
+
border: none;
|
|
8152
|
+
padding: 0;
|
|
8153
|
+
cursor: pointer;
|
|
8154
|
+
transition: background-color 0.15s ease, transform 0.15s ease;
|
|
8155
|
+
|
|
8156
|
+
&:hover {
|
|
8157
|
+
background-color: rgba(255, 255, 255, 0.8);
|
|
8158
|
+
transform: scale(1.2);
|
|
8159
|
+
}
|
|
8160
|
+
`;
|
|
8161
|
+
var dotActiveStyles = import_react51.css`
|
|
8162
|
+
background-color: var(--color-base-white, #ffffff);
|
|
8163
|
+
transform: scale(1.2);
|
|
8164
|
+
`;
|
|
8165
|
+
var closeButtonOverrideStyles = import_react51.css`
|
|
8166
|
+
top: var(--spacing-4);
|
|
8167
|
+
right: var(--spacing-4);
|
|
8168
|
+
z-index: 20;
|
|
8169
|
+
background-color: rgba(255, 255, 255, 0.9);
|
|
8170
|
+
border-radius: var(--radius-xxl, 25px);
|
|
8171
|
+
padding: var(--spacing-2) var(--spacing-4);
|
|
8172
|
+
|
|
8173
|
+
&:hover {
|
|
8174
|
+
background-color: var(--color-base-white, #ffffff);
|
|
8175
|
+
}
|
|
8176
|
+
`;
|
|
8177
|
+
var scrollLayerOverrideStyles = import_react51.css`
|
|
8178
|
+
padding: 0;
|
|
8179
|
+
background-color: rgba(0, 0, 0, 0.95);
|
|
8180
|
+
`;
|
|
8181
|
+
var containerOverrideStyles = import_react51.css`
|
|
8182
|
+
background-color: transparent;
|
|
8183
|
+
box-shadow: none;
|
|
8184
|
+
border-radius: 0;
|
|
8185
|
+
max-height: 100dvh;
|
|
8186
|
+
`;
|
|
8187
|
+
var contentOverrideStyles = import_react51.css`
|
|
8188
|
+
height: 100%;
|
|
8189
|
+
padding: 0;
|
|
8190
|
+
`;
|
|
8191
|
+
|
|
8192
|
+
// src/ImageGalleryModal/ImageGalleryModal.tsx
|
|
8193
|
+
var import_jsx_runtime242 = require("@emotion/react/jsx-runtime");
|
|
8194
|
+
var ImageGalleryModal = ({
|
|
8195
|
+
id,
|
|
8196
|
+
isOpen,
|
|
8197
|
+
onClose,
|
|
8198
|
+
images,
|
|
8199
|
+
initialIndex = 0,
|
|
8200
|
+
showDots = true,
|
|
8201
|
+
showArrows = true,
|
|
8202
|
+
showCounter = true,
|
|
8203
|
+
className,
|
|
8204
|
+
ariaLabel = "Image gallery"
|
|
8205
|
+
}) => {
|
|
8206
|
+
const [currentIndex, setCurrentIndex] = (0, import_react52.useState)(initialIndex);
|
|
8207
|
+
(0, import_react52.useEffect)(() => {
|
|
8208
|
+
if (isOpen) {
|
|
8209
|
+
setCurrentIndex(initialIndex);
|
|
8210
|
+
}
|
|
8211
|
+
}, [isOpen, initialIndex]);
|
|
8212
|
+
const handlePrev = (0, import_react52.useCallback)(
|
|
8213
|
+
(e) => {
|
|
8214
|
+
e == null ? void 0 : e.stopPropagation();
|
|
8215
|
+
setCurrentIndex((prev) => prev > 0 ? prev - 1 : images.length - 1);
|
|
8216
|
+
},
|
|
8217
|
+
[images.length]
|
|
8218
|
+
);
|
|
8219
|
+
const handleNext = (0, import_react52.useCallback)(
|
|
8220
|
+
(e) => {
|
|
8221
|
+
e == null ? void 0 : e.stopPropagation();
|
|
8222
|
+
setCurrentIndex((prev) => prev < images.length - 1 ? prev + 1 : 0);
|
|
8223
|
+
},
|
|
8224
|
+
[images.length]
|
|
8225
|
+
);
|
|
8226
|
+
const handleGoTo = (0, import_react52.useCallback)((index) => {
|
|
8227
|
+
setCurrentIndex(index);
|
|
8228
|
+
}, []);
|
|
8229
|
+
(0, import_react52.useEffect)(() => {
|
|
8230
|
+
if (!isOpen)
|
|
8231
|
+
return;
|
|
8232
|
+
const handleKeyDown = (e) => {
|
|
8233
|
+
if (e.key === "ArrowLeft") {
|
|
8234
|
+
e.preventDefault();
|
|
8235
|
+
handlePrev();
|
|
8236
|
+
} else if (e.key === "ArrowRight") {
|
|
8237
|
+
e.preventDefault();
|
|
8238
|
+
handleNext();
|
|
8239
|
+
}
|
|
8240
|
+
};
|
|
8241
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
8242
|
+
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
8243
|
+
}, [isOpen, handlePrev, handleNext]);
|
|
8244
|
+
const currentImage = images[currentIndex];
|
|
8245
|
+
const hasMultipleImages = images.length > 1;
|
|
8246
|
+
return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8247
|
+
Modal_default,
|
|
8248
|
+
{
|
|
8249
|
+
id: `image-gallery-${id}`,
|
|
8250
|
+
isOpen,
|
|
8251
|
+
onClose,
|
|
8252
|
+
size: "full",
|
|
8253
|
+
closeOnOutsideClick: true,
|
|
8254
|
+
closeOnEscape: true,
|
|
8255
|
+
showCloseButton: true,
|
|
8256
|
+
closeButtonStyles: closeButtonOverrideStyles,
|
|
8257
|
+
scrollLayerStyles: scrollLayerOverrideStyles,
|
|
8258
|
+
containerStyles: containerOverrideStyles,
|
|
8259
|
+
contentStyles: contentOverrideStyles,
|
|
8260
|
+
className,
|
|
8261
|
+
ariaLabel,
|
|
8262
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
|
|
8263
|
+
Box_default,
|
|
8264
|
+
{
|
|
8265
|
+
display: "flex",
|
|
8266
|
+
flexDirection: "column",
|
|
8267
|
+
width: "100%",
|
|
8268
|
+
height: "100%",
|
|
8269
|
+
position: "relative",
|
|
8270
|
+
css: galleryBackgroundStyles,
|
|
8271
|
+
children: [
|
|
8272
|
+
showCounter && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8273
|
+
Box_default,
|
|
8274
|
+
{
|
|
8275
|
+
position: "absolute",
|
|
8276
|
+
top: "var(--spacing-4)",
|
|
8277
|
+
left: "50%",
|
|
8278
|
+
zIndex: 10,
|
|
8279
|
+
css: counterStyles,
|
|
8280
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(Text_default, { size: "sm", color: "inherit", children: [
|
|
8281
|
+
currentIndex + 1,
|
|
8282
|
+
" / ",
|
|
8283
|
+
images.length
|
|
8284
|
+
] })
|
|
8285
|
+
}
|
|
8286
|
+
),
|
|
8287
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
|
|
8288
|
+
Box_default,
|
|
8289
|
+
{
|
|
8290
|
+
display: "flex",
|
|
8291
|
+
alignItems: "center",
|
|
8292
|
+
justifyContent: "center",
|
|
8293
|
+
flex: "1",
|
|
8294
|
+
overflow: "hidden",
|
|
8295
|
+
position: "relative",
|
|
8296
|
+
children: [
|
|
8297
|
+
showArrows && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8298
|
+
"button",
|
|
8299
|
+
{
|
|
8300
|
+
type: "button",
|
|
8301
|
+
onClick: handlePrev,
|
|
8302
|
+
css: prevButtonStyles,
|
|
8303
|
+
"aria-label": "Previous image",
|
|
8304
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Icon_default, { variant: "AngleLeft", size: "medium" })
|
|
8305
|
+
}
|
|
8306
|
+
),
|
|
8307
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8308
|
+
Box_default,
|
|
8309
|
+
{
|
|
8310
|
+
display: "flex",
|
|
8311
|
+
alignItems: "center",
|
|
8312
|
+
justifyContent: "center",
|
|
8313
|
+
width: "100%",
|
|
8314
|
+
height: "100%",
|
|
8315
|
+
p: "var(--spacing-4)",
|
|
8316
|
+
children: currentImage && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8317
|
+
"img",
|
|
8318
|
+
{
|
|
8319
|
+
src: currentImage.src,
|
|
8320
|
+
alt: currentImage.alt || `Image ${currentIndex + 1}`,
|
|
8321
|
+
css: imageStyles2
|
|
8322
|
+
}
|
|
8323
|
+
)
|
|
8324
|
+
}
|
|
8325
|
+
),
|
|
8326
|
+
showArrows && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8327
|
+
"button",
|
|
8328
|
+
{
|
|
8329
|
+
type: "button",
|
|
8330
|
+
onClick: handleNext,
|
|
8331
|
+
css: nextButtonStyles,
|
|
8332
|
+
"aria-label": "Next image",
|
|
8333
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Icon_default, { variant: "AngleRight", size: "medium" })
|
|
8334
|
+
}
|
|
8335
|
+
)
|
|
8336
|
+
]
|
|
8337
|
+
}
|
|
8338
|
+
),
|
|
8339
|
+
(currentImage == null ? void 0 : currentImage.caption) && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8340
|
+
Box_default,
|
|
8341
|
+
{
|
|
8342
|
+
position: "absolute",
|
|
8343
|
+
bottom: "var(--spacing-16)",
|
|
8344
|
+
left: "50%",
|
|
8345
|
+
zIndex: 10,
|
|
8346
|
+
css: captionStyles,
|
|
8347
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Text_default, { size: "sm", color: "inherit", children: currentImage.caption })
|
|
8348
|
+
}
|
|
8349
|
+
),
|
|
8350
|
+
showDots && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8351
|
+
Box_default,
|
|
8352
|
+
{
|
|
8353
|
+
display: "flex",
|
|
8354
|
+
position: "absolute",
|
|
8355
|
+
bottom: "var(--spacing-4)",
|
|
8356
|
+
left: "50%",
|
|
8357
|
+
gap: "var(--spacing-2)",
|
|
8358
|
+
zIndex: 10,
|
|
8359
|
+
css: dotsContainerPositionStyles,
|
|
8360
|
+
children: images.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8361
|
+
"button",
|
|
8362
|
+
{
|
|
8363
|
+
type: "button",
|
|
8364
|
+
onClick: () => handleGoTo(index),
|
|
8365
|
+
css: [
|
|
8366
|
+
dotStyles,
|
|
8367
|
+
index === currentIndex && dotActiveStyles
|
|
8368
|
+
],
|
|
8369
|
+
"aria-label": `Go to image ${index + 1}`,
|
|
8370
|
+
"aria-current": index === currentIndex ? "true" : void 0
|
|
8371
|
+
},
|
|
8372
|
+
`dot-${index}`
|
|
8373
|
+
))
|
|
8374
|
+
}
|
|
8375
|
+
)
|
|
8376
|
+
]
|
|
8377
|
+
}
|
|
8378
|
+
)
|
|
8379
|
+
}
|
|
8380
|
+
);
|
|
8381
|
+
};
|
|
8382
|
+
ImageGalleryModal.displayName = "ImageGalleryModal";
|
|
8383
|
+
var ImageGalleryModal_default = ImageGalleryModal;
|
|
8384
|
+
|
|
8385
|
+
// src/InfoBox/InfoBox.tsx
|
|
8386
|
+
var import_jsx_runtime243 = require("@emotion/react/jsx-runtime");
|
|
7790
8387
|
var InfoBox = ({ heading, features, className }) => {
|
|
7791
|
-
return /* @__PURE__ */ (0,
|
|
8388
|
+
return /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
|
|
7792
8389
|
Box_default,
|
|
7793
8390
|
{
|
|
7794
8391
|
display: "flex",
|
|
@@ -7797,8 +8394,8 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
7797
8394
|
className,
|
|
7798
8395
|
color: "var(--text-primary)",
|
|
7799
8396
|
children: [
|
|
7800
|
-
/* @__PURE__ */ (0,
|
|
7801
|
-
/* @__PURE__ */ (0,
|
|
8397
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
8398
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
7802
8399
|
Box_default,
|
|
7803
8400
|
{
|
|
7804
8401
|
display: "flex",
|
|
@@ -7808,7 +8405,7 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
7808
8405
|
borderRadius: "var(--radius-lg)",
|
|
7809
8406
|
bg: "var(--surface-neutral)",
|
|
7810
8407
|
className,
|
|
7811
|
-
children: features.map((section, index) => /* @__PURE__ */ (0,
|
|
8408
|
+
children: features.map((section, index) => /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
7812
8409
|
FeatureList_default,
|
|
7813
8410
|
{
|
|
7814
8411
|
heading: section.heading,
|
|
@@ -7825,33 +8422,38 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
7825
8422
|
var InfoBox_default = InfoBox;
|
|
7826
8423
|
|
|
7827
8424
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
7828
|
-
var
|
|
8425
|
+
var import_react56 = require("react");
|
|
7829
8426
|
|
|
7830
8427
|
// src/ProgressBar/ProgressBar.styles.ts
|
|
7831
|
-
var
|
|
7832
|
-
var progressStyles =
|
|
8428
|
+
var import_react53 = require("@emotion/react");
|
|
8429
|
+
var progressStyles = import_react53.css`
|
|
7833
8430
|
transition: width 0.3s ease-in-out;
|
|
7834
8431
|
`;
|
|
7835
8432
|
|
|
7836
8433
|
// src/ProgressBar/ProgressBar.tsx
|
|
7837
|
-
var
|
|
7838
|
-
var ProgressBar = ({
|
|
8434
|
+
var import_jsx_runtime244 = require("@emotion/react/jsx-runtime");
|
|
8435
|
+
var ProgressBar = ({
|
|
8436
|
+
progress,
|
|
8437
|
+
className,
|
|
8438
|
+
kind = "rounded",
|
|
8439
|
+
height = "10px"
|
|
8440
|
+
}) => {
|
|
7839
8441
|
const clampedProgress = Math.min(100, Math.max(0, progress));
|
|
7840
|
-
return /* @__PURE__ */ (0,
|
|
8442
|
+
return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
7841
8443
|
Box_default,
|
|
7842
8444
|
{
|
|
7843
8445
|
width: "100%",
|
|
7844
|
-
height
|
|
8446
|
+
height,
|
|
7845
8447
|
backgroundColor: "var(--color-primary-100)",
|
|
7846
|
-
borderRadius: "48px",
|
|
8448
|
+
borderRadius: kind === "rounded" ? "48px" : "0px",
|
|
7847
8449
|
overflow: "hidden",
|
|
7848
8450
|
position: "relative",
|
|
7849
8451
|
className,
|
|
7850
|
-
children: /* @__PURE__ */ (0,
|
|
8452
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
7851
8453
|
Box_default,
|
|
7852
8454
|
{
|
|
7853
8455
|
height: "100%",
|
|
7854
|
-
borderRadius: "48px",
|
|
8456
|
+
borderRadius: kind === "rounded" ? "48px" : "0px",
|
|
7855
8457
|
backgroundColor: "var(--color-primary-900)",
|
|
7856
8458
|
css: progressStyles,
|
|
7857
8459
|
style: { width: `${clampedProgress}%` },
|
|
@@ -7868,17 +8470,17 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
7868
8470
|
var ProgressBar_default = ProgressBar;
|
|
7869
8471
|
|
|
7870
8472
|
// src/Timer/Timer.tsx
|
|
7871
|
-
var
|
|
8473
|
+
var import_react55 = require("react");
|
|
7872
8474
|
|
|
7873
8475
|
// src/Timer/Timer.styles.ts
|
|
7874
|
-
var
|
|
7875
|
-
var rootStyles2 =
|
|
8476
|
+
var import_react54 = require("@emotion/react");
|
|
8477
|
+
var rootStyles2 = import_react54.css`
|
|
7876
8478
|
display: inline-flex;
|
|
7877
8479
|
font-variant-numeric: tabular-nums;
|
|
7878
8480
|
`;
|
|
7879
8481
|
|
|
7880
8482
|
// src/Timer/Timer.tsx
|
|
7881
|
-
var
|
|
8483
|
+
var import_jsx_runtime245 = require("@emotion/react/jsx-runtime");
|
|
7882
8484
|
var calculateTimeLeft = (expirationTimestamp) => {
|
|
7883
8485
|
const now = Math.floor(Date.now() / 1e3);
|
|
7884
8486
|
const diff = expirationTimestamp - now;
|
|
@@ -7906,10 +8508,10 @@ var Timer = ({
|
|
|
7906
8508
|
fontWeight = "bold",
|
|
7907
8509
|
showSeconds = false
|
|
7908
8510
|
}) => {
|
|
7909
|
-
const [timeLeft, setTimeLeft] = (0,
|
|
8511
|
+
const [timeLeft, setTimeLeft] = (0, import_react55.useState)(
|
|
7910
8512
|
() => calculateTimeLeft(expirationTimestamp)
|
|
7911
8513
|
);
|
|
7912
|
-
const updateTime = (0,
|
|
8514
|
+
const updateTime = (0, import_react55.useCallback)(() => {
|
|
7913
8515
|
const newTimeLeft = calculateTimeLeft(expirationTimestamp);
|
|
7914
8516
|
setTimeLeft(newTimeLeft);
|
|
7915
8517
|
if (newTimeLeft) {
|
|
@@ -7919,7 +8521,7 @@ var Timer = ({
|
|
|
7919
8521
|
}
|
|
7920
8522
|
return newTimeLeft;
|
|
7921
8523
|
}, [expirationTimestamp, onTimeUpdate, onExpire]);
|
|
7922
|
-
(0,
|
|
8524
|
+
(0, import_react55.useEffect)(() => {
|
|
7923
8525
|
const initialTime = updateTime();
|
|
7924
8526
|
if (!initialTime)
|
|
7925
8527
|
return;
|
|
@@ -7934,8 +8536,8 @@ var Timer = ({
|
|
|
7934
8536
|
if (!timeLeft) {
|
|
7935
8537
|
return null;
|
|
7936
8538
|
}
|
|
7937
|
-
return /* @__PURE__ */ (0,
|
|
7938
|
-
/* @__PURE__ */ (0,
|
|
8539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(Box_default, { css: rootStyles2, className, children: [
|
|
8540
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(Text_default, { as: "span", fontWeight, size: fontSize, children: [
|
|
7939
8541
|
timeLeft.days,
|
|
7940
8542
|
"d : ",
|
|
7941
8543
|
timeLeft.hours,
|
|
@@ -7943,7 +8545,7 @@ var Timer = ({
|
|
|
7943
8545
|
timeLeft.minutes,
|
|
7944
8546
|
"m"
|
|
7945
8547
|
] }),
|
|
7946
|
-
showSeconds && /* @__PURE__ */ (0,
|
|
8548
|
+
showSeconds && /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(Text_default, { as: "span", fontWeight, size: fontSize, children: [
|
|
7947
8549
|
"\xA0: ",
|
|
7948
8550
|
timeLeft.seconds,
|
|
7949
8551
|
"s"
|
|
@@ -7954,7 +8556,7 @@ Timer.displayName = "Timer";
|
|
|
7954
8556
|
var Timer_default = Timer;
|
|
7955
8557
|
|
|
7956
8558
|
// src/StarRating/StarRating.tsx
|
|
7957
|
-
var
|
|
8559
|
+
var import_jsx_runtime246 = require("@emotion/react/jsx-runtime");
|
|
7958
8560
|
var starSize = {
|
|
7959
8561
|
sm: {
|
|
7960
8562
|
size: "medium",
|
|
@@ -8002,10 +8604,10 @@ var StarRating = ({
|
|
|
8002
8604
|
fill = "var(--color-neutral-100)";
|
|
8003
8605
|
}
|
|
8004
8606
|
stars.push(
|
|
8005
|
-
/* @__PURE__ */ (0,
|
|
8607
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Icon_default, { variant, size: starSize[size].size, fill }, i)
|
|
8006
8608
|
);
|
|
8007
8609
|
}
|
|
8008
|
-
return /* @__PURE__ */ (0,
|
|
8610
|
+
return /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
8009
8611
|
Box_default,
|
|
8010
8612
|
{
|
|
8011
8613
|
className,
|
|
@@ -8019,7 +8621,7 @@ var StarRating = ({
|
|
|
8019
8621
|
var StarRating_default = StarRating;
|
|
8020
8622
|
|
|
8021
8623
|
// src/UserCard/UserCard.tsx
|
|
8022
|
-
var
|
|
8624
|
+
var import_jsx_runtime247 = require("@emotion/react/jsx-runtime");
|
|
8023
8625
|
var UserCard = ({
|
|
8024
8626
|
avatarSrc,
|
|
8025
8627
|
title,
|
|
@@ -8029,7 +8631,7 @@ var UserCard = ({
|
|
|
8029
8631
|
isVerified = false,
|
|
8030
8632
|
className
|
|
8031
8633
|
}) => {
|
|
8032
|
-
return /* @__PURE__ */ (0,
|
|
8634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
|
|
8033
8635
|
Box_default,
|
|
8034
8636
|
{
|
|
8035
8637
|
display: "flex",
|
|
@@ -8038,8 +8640,8 @@ var UserCard = ({
|
|
|
8038
8640
|
gap: "var(--spacing-4)",
|
|
8039
8641
|
className,
|
|
8040
8642
|
children: [
|
|
8041
|
-
/* @__PURE__ */ (0,
|
|
8042
|
-
/* @__PURE__ */ (0,
|
|
8643
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(Box_default, { display: "flex", alignItems: "flex-start", gap: "var(--spacing-4)", children: [
|
|
8644
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8043
8645
|
Avatar_default,
|
|
8044
8646
|
{
|
|
8045
8647
|
type: avatarSrc ? "image" : "text",
|
|
@@ -8048,13 +8650,13 @@ var UserCard = ({
|
|
|
8048
8650
|
alt: `${title}'s avatar`
|
|
8049
8651
|
}
|
|
8050
8652
|
),
|
|
8051
|
-
/* @__PURE__ */ (0,
|
|
8052
|
-
/* @__PURE__ */ (0,
|
|
8053
|
-
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0,
|
|
8054
|
-
showRating && rating !== void 0 && /* @__PURE__ */ (0,
|
|
8653
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
8654
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
|
|
8655
|
+
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }) : subtitle),
|
|
8656
|
+
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(StarRating_default, { rating })
|
|
8055
8657
|
] })
|
|
8056
8658
|
] }),
|
|
8057
|
-
isVerified && /* @__PURE__ */ (0,
|
|
8659
|
+
isVerified && /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
|
|
8058
8660
|
Box_default,
|
|
8059
8661
|
{
|
|
8060
8662
|
display: "flex",
|
|
@@ -8063,8 +8665,8 @@ var UserCard = ({
|
|
|
8063
8665
|
gap: "var(--spacing-1)",
|
|
8064
8666
|
flexShrink: 0,
|
|
8065
8667
|
children: [
|
|
8066
|
-
/* @__PURE__ */ (0,
|
|
8067
|
-
/* @__PURE__ */ (0,
|
|
8668
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Icon_default, { variant: "ShieldCheckSolid", fill: "var(--icon-success)" }),
|
|
8669
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Text_default, { size: "xs", fontWeight: "bold", color: "text-primary", children: "Verified" })
|
|
8068
8670
|
]
|
|
8069
8671
|
}
|
|
8070
8672
|
)
|
|
@@ -8075,19 +8677,19 @@ var UserCard = ({
|
|
|
8075
8677
|
var UserCard_default = UserCard;
|
|
8076
8678
|
|
|
8077
8679
|
// src/LandownerProfile/components/ProfileSubtitle.tsx
|
|
8078
|
-
var
|
|
8680
|
+
var import_jsx_runtime248 = require("@emotion/react/jsx-runtime");
|
|
8079
8681
|
var ProfileSubtitle = ({
|
|
8080
8682
|
yearsHosting = 1,
|
|
8081
8683
|
featureReviewItem
|
|
8082
8684
|
}) => {
|
|
8083
|
-
return /* @__PURE__ */ (0,
|
|
8084
|
-
yearsHosting && yearsHosting > 0 && /* @__PURE__ */ (0,
|
|
8685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
8686
|
+
yearsHosting && yearsHosting > 0 && /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
8085
8687
|
yearsHosting,
|
|
8086
8688
|
" ",
|
|
8087
8689
|
yearsHosting === 1 ? "Year" : "Years",
|
|
8088
8690
|
" Hosting"
|
|
8089
8691
|
] }),
|
|
8090
|
-
featureReviewItem && /* @__PURE__ */ (0,
|
|
8692
|
+
featureReviewItem && /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(FeatureListItem_default, { ...featureReviewItem })
|
|
8091
8693
|
] });
|
|
8092
8694
|
};
|
|
8093
8695
|
var ProfileSubtitle_default = ProfileSubtitle;
|
|
@@ -8102,7 +8704,7 @@ var hasTextContent = (html) => {
|
|
|
8102
8704
|
};
|
|
8103
8705
|
|
|
8104
8706
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
8105
|
-
var
|
|
8707
|
+
var import_jsx_runtime249 = require("@emotion/react/jsx-runtime");
|
|
8106
8708
|
var LandownerProfile = ({
|
|
8107
8709
|
heading,
|
|
8108
8710
|
avatarSrc,
|
|
@@ -8130,7 +8732,7 @@ var LandownerProfile = ({
|
|
|
8130
8732
|
const progressPercentage = (totalDuration - timeLeft.totalSeconds) / totalDuration * 100;
|
|
8131
8733
|
return Math.min(100, Math.max(0, progressPercentage));
|
|
8132
8734
|
};
|
|
8133
|
-
const [progress, setProgress] = (0,
|
|
8735
|
+
const [progress, setProgress] = (0, import_react56.useState)(0);
|
|
8134
8736
|
const handleTimeUpdate = (timeLeft) => {
|
|
8135
8737
|
setProgress(calculateProgress(timeLeft));
|
|
8136
8738
|
onEarlyAccessTimeUpdate == null ? void 0 : onEarlyAccessTimeUpdate(timeLeft);
|
|
@@ -8143,7 +8745,7 @@ var LandownerProfile = ({
|
|
|
8143
8745
|
iconVariant: "Bolt",
|
|
8144
8746
|
label: `Response Time: ${responseTime}`
|
|
8145
8747
|
} : void 0;
|
|
8146
|
-
return /* @__PURE__ */ (0,
|
|
8748
|
+
return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
|
|
8147
8749
|
Box_default,
|
|
8148
8750
|
{
|
|
8149
8751
|
display: "flex",
|
|
@@ -8152,8 +8754,8 @@ var LandownerProfile = ({
|
|
|
8152
8754
|
color: "var(--text-primary)",
|
|
8153
8755
|
className,
|
|
8154
8756
|
children: [
|
|
8155
|
-
heading && /* @__PURE__ */ (0,
|
|
8156
|
-
/* @__PURE__ */ (0,
|
|
8757
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
8758
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
|
|
8157
8759
|
Box_default,
|
|
8158
8760
|
{
|
|
8159
8761
|
display: "flex",
|
|
@@ -8163,12 +8765,12 @@ var LandownerProfile = ({
|
|
|
8163
8765
|
p: "var(--spacing-4)",
|
|
8164
8766
|
borderRadius: "var(--radius-lg)",
|
|
8165
8767
|
children: [
|
|
8166
|
-
/* @__PURE__ */ (0,
|
|
8768
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
8167
8769
|
UserCard_default,
|
|
8168
8770
|
{
|
|
8169
8771
|
avatarSrc,
|
|
8170
8772
|
title: name,
|
|
8171
|
-
subtitle: /* @__PURE__ */ (0,
|
|
8773
|
+
subtitle: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
8172
8774
|
ProfileSubtitle_default,
|
|
8173
8775
|
{
|
|
8174
8776
|
yearsHosting,
|
|
@@ -8179,9 +8781,9 @@ var LandownerProfile = ({
|
|
|
8179
8781
|
isVerified
|
|
8180
8782
|
}
|
|
8181
8783
|
),
|
|
8182
|
-
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0,
|
|
8183
|
-
/* @__PURE__ */ (0,
|
|
8184
|
-
/* @__PURE__ */ (0,
|
|
8784
|
+
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
8785
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Text_default, { fontWeight: "bold", children: "Bio" }),
|
|
8786
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
8185
8787
|
Text_default,
|
|
8186
8788
|
{
|
|
8187
8789
|
dangerouslySetInnerHTML: {
|
|
@@ -8190,14 +8792,14 @@ var LandownerProfile = ({
|
|
|
8190
8792
|
}
|
|
8191
8793
|
)
|
|
8192
8794
|
] }),
|
|
8193
|
-
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0,
|
|
8194
|
-
/* @__PURE__ */ (0,
|
|
8195
|
-
/* @__PURE__ */ (0,
|
|
8196
|
-
!!responseRateFeature && /* @__PURE__ */ (0,
|
|
8197
|
-
!!responseTimeFeature && /* @__PURE__ */ (0,
|
|
8795
|
+
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
8796
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Text_default, { fontWeight: "bold", children: "Landowner Details" }),
|
|
8797
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
8798
|
+
!!responseRateFeature && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(FeatureListItem_default, { ...responseRateFeature }),
|
|
8799
|
+
!!responseTimeFeature && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(FeatureListItem_default, { ...responseTimeFeature })
|
|
8198
8800
|
] })
|
|
8199
8801
|
] }),
|
|
8200
|
-
/* @__PURE__ */ (0,
|
|
8802
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Box_default, { alignSelf: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
8201
8803
|
Button_default,
|
|
8202
8804
|
{
|
|
8203
8805
|
variant: "secondary",
|
|
@@ -8206,9 +8808,9 @@ var LandownerProfile = ({
|
|
|
8206
8808
|
children: messageButtonText
|
|
8207
8809
|
}
|
|
8208
8810
|
) }),
|
|
8209
|
-
earlyAccessTimer && /* @__PURE__ */ (0,
|
|
8210
|
-
/* @__PURE__ */ (0,
|
|
8211
|
-
/* @__PURE__ */ (0,
|
|
8811
|
+
earlyAccessTimer && /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: [
|
|
8812
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(ProgressBar_default, { progress }),
|
|
8813
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
|
|
8212
8814
|
Box_default,
|
|
8213
8815
|
{
|
|
8214
8816
|
display: "flex",
|
|
@@ -8216,9 +8818,9 @@ var LandownerProfile = ({
|
|
|
8216
8818
|
gap: "var(--spacing-1)",
|
|
8217
8819
|
textAlign: "center",
|
|
8218
8820
|
children: [
|
|
8219
|
-
/* @__PURE__ */ (0,
|
|
8220
|
-
/* @__PURE__ */ (0,
|
|
8221
|
-
/* @__PURE__ */ (0,
|
|
8821
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Text_default, { size: "xs", textAlign: "center", children: earlyAccessTimer.labelText }),
|
|
8822
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Text_default, { size: "sm", textAlign: "center", children: earlyAccessTimer.descriptionText }),
|
|
8823
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Box_default, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
8222
8824
|
Timer_default,
|
|
8223
8825
|
{
|
|
8224
8826
|
expirationTimestamp: earlyAccessTimer.expirationTimestamp,
|
|
@@ -8240,11 +8842,11 @@ var LandownerProfile = ({
|
|
|
8240
8842
|
var LandownerProfile_default = LandownerProfile;
|
|
8241
8843
|
|
|
8242
8844
|
// src/ListingChat/ListingChat.tsx
|
|
8243
|
-
var
|
|
8845
|
+
var import_react58 = require("react");
|
|
8244
8846
|
|
|
8245
8847
|
// src/ListingChat/ListingChat.styles.ts
|
|
8246
|
-
var
|
|
8247
|
-
var
|
|
8848
|
+
var import_react57 = require("@emotion/react");
|
|
8849
|
+
var containerStyles3 = import_react57.css`
|
|
8248
8850
|
display: flex;
|
|
8249
8851
|
flex-direction: column;
|
|
8250
8852
|
gap: var(--spacing-4);
|
|
@@ -8252,13 +8854,13 @@ var containerStyles2 = import_react53.css`
|
|
|
8252
8854
|
border-radius: var(--radius-lg);
|
|
8253
8855
|
background: var(--surface-success);
|
|
8254
8856
|
`;
|
|
8255
|
-
var headerStyles =
|
|
8857
|
+
var headerStyles = import_react57.css`
|
|
8256
8858
|
display: flex;
|
|
8257
8859
|
align-items: flex-start;
|
|
8258
8860
|
justify-content: space-between;
|
|
8259
8861
|
gap: var(--spacing-2);
|
|
8260
8862
|
`;
|
|
8261
|
-
var chipsContainerStyles =
|
|
8863
|
+
var chipsContainerStyles = import_react57.css`
|
|
8262
8864
|
display: flex;
|
|
8263
8865
|
flex-wrap: wrap;
|
|
8264
8866
|
gap: var(--spacing-4);
|
|
@@ -8271,15 +8873,15 @@ var chipsContainerStyles = import_react53.css`
|
|
|
8271
8873
|
cursor: pointer;
|
|
8272
8874
|
}
|
|
8273
8875
|
`;
|
|
8274
|
-
var textAreaStyles =
|
|
8876
|
+
var textAreaStyles = import_react57.css`
|
|
8275
8877
|
min-height: 62px;
|
|
8276
8878
|
`;
|
|
8277
|
-
var inputWrapperStyles2 =
|
|
8879
|
+
var inputWrapperStyles2 = import_react57.css`
|
|
8278
8880
|
position: relative;
|
|
8279
8881
|
`;
|
|
8280
8882
|
|
|
8281
8883
|
// src/ListingChat/ListingChat.tsx
|
|
8282
|
-
var
|
|
8884
|
+
var import_jsx_runtime250 = require("@emotion/react/jsx-runtime");
|
|
8283
8885
|
var ListingChat = ({
|
|
8284
8886
|
onSubmit,
|
|
8285
8887
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -8289,15 +8891,15 @@ var ListingChat = ({
|
|
|
8289
8891
|
disabled = false,
|
|
8290
8892
|
...rest
|
|
8291
8893
|
}) => {
|
|
8292
|
-
const [value, setValue] = (0,
|
|
8293
|
-
const handleSubmit = (0,
|
|
8894
|
+
const [value, setValue] = (0, import_react58.useState)("");
|
|
8895
|
+
const handleSubmit = (0, import_react58.useCallback)(() => {
|
|
8294
8896
|
const trimmed = value.trim();
|
|
8295
8897
|
if (!trimmed)
|
|
8296
8898
|
return;
|
|
8297
8899
|
onSubmit(trimmed);
|
|
8298
8900
|
setValue("");
|
|
8299
8901
|
}, [onSubmit, value]);
|
|
8300
|
-
const handleTagClick = (0,
|
|
8902
|
+
const handleTagClick = (0, import_react58.useCallback)(
|
|
8301
8903
|
(tag) => () => {
|
|
8302
8904
|
const trimmed = tag.trim();
|
|
8303
8905
|
if (!trimmed)
|
|
@@ -8306,18 +8908,18 @@ var ListingChat = ({
|
|
|
8306
8908
|
},
|
|
8307
8909
|
[onSubmit]
|
|
8308
8910
|
);
|
|
8309
|
-
return /* @__PURE__ */ (0,
|
|
8310
|
-
/* @__PURE__ */ (0,
|
|
8311
|
-
/* @__PURE__ */ (0,
|
|
8312
|
-
/* @__PURE__ */ (0,
|
|
8313
|
-
/* @__PURE__ */ (0,
|
|
8911
|
+
return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { css: containerStyles3, className, ...rest, children: [
|
|
8912
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { css: headerStyles, children: [
|
|
8913
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { children: [
|
|
8914
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { mb: "var(--spacing-2)", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: title }) }),
|
|
8915
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
8314
8916
|
] }),
|
|
8315
|
-
/* @__PURE__ */ (0,
|
|
8316
|
-
/* @__PURE__ */ (0,
|
|
8317
|
-
/* @__PURE__ */ (0,
|
|
8917
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
8918
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
|
|
8919
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
8318
8920
|
] })
|
|
8319
8921
|
] }),
|
|
8320
|
-
/* @__PURE__ */ (0,
|
|
8922
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8321
8923
|
TextArea,
|
|
8322
8924
|
{
|
|
8323
8925
|
rows: 1,
|
|
@@ -8332,14 +8934,14 @@ var ListingChat = ({
|
|
|
8332
8934
|
css: textAreaStyles
|
|
8333
8935
|
}
|
|
8334
8936
|
) }),
|
|
8335
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
8336
|
-
/* @__PURE__ */ (0,
|
|
8337
|
-
/* @__PURE__ */ (0,
|
|
8937
|
+
tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(import_jsx_runtime250.Fragment, { children: [
|
|
8938
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Text_default, { as: "div", size: "sm", fontWeight: "bold", children: "Try one of these" }),
|
|
8939
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { css: chipsContainerStyles, children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8338
8940
|
"button",
|
|
8339
8941
|
{
|
|
8340
8942
|
onClick: handleTagClick(tag),
|
|
8341
8943
|
disabled,
|
|
8342
|
-
children: /* @__PURE__ */ (0,
|
|
8944
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(TagChip_default, { children: tag })
|
|
8343
8945
|
},
|
|
8344
8946
|
tag
|
|
8345
8947
|
)) })
|
|
@@ -8349,11 +8951,11 @@ var ListingChat = ({
|
|
|
8349
8951
|
var ListingChat_default = ListingChat;
|
|
8350
8952
|
|
|
8351
8953
|
// src/Logo/Logo.tsx
|
|
8352
|
-
var
|
|
8954
|
+
var import_react59 = require("@emotion/react");
|
|
8353
8955
|
|
|
8354
8956
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
8355
|
-
var
|
|
8356
|
-
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0,
|
|
8957
|
+
var import_jsx_runtime251 = require("@emotion/react/jsx-runtime");
|
|
8958
|
+
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
|
|
8357
8959
|
"svg",
|
|
8358
8960
|
{
|
|
8359
8961
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8361,14 +8963,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime249.
|
|
|
8361
8963
|
fill: "none",
|
|
8362
8964
|
...props,
|
|
8363
8965
|
children: [
|
|
8364
|
-
/* @__PURE__ */ (0,
|
|
8966
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8365
8967
|
"path",
|
|
8366
8968
|
{
|
|
8367
8969
|
fill: "#000",
|
|
8368
8970
|
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"
|
|
8369
8971
|
}
|
|
8370
8972
|
) }),
|
|
8371
|
-
/* @__PURE__ */ (0,
|
|
8973
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8372
8974
|
"path",
|
|
8373
8975
|
{
|
|
8374
8976
|
fill: "#FAD44E",
|
|
@@ -8377,14 +8979,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime249.
|
|
|
8377
8979
|
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"
|
|
8378
8980
|
}
|
|
8379
8981
|
),
|
|
8380
|
-
/* @__PURE__ */ (0,
|
|
8982
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8381
8983
|
"path",
|
|
8382
8984
|
{
|
|
8383
8985
|
fill: "#fff",
|
|
8384
8986
|
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"
|
|
8385
8987
|
}
|
|
8386
8988
|
),
|
|
8387
|
-
/* @__PURE__ */ (0,
|
|
8989
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
|
|
8388
8990
|
"filter",
|
|
8389
8991
|
{
|
|
8390
8992
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -8395,8 +8997,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime249.
|
|
|
8395
8997
|
colorInterpolationFilters: "sRGB",
|
|
8396
8998
|
filterUnits: "userSpaceOnUse",
|
|
8397
8999
|
children: [
|
|
8398
|
-
/* @__PURE__ */ (0,
|
|
8399
|
-
/* @__PURE__ */ (0,
|
|
9000
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
9001
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8400
9002
|
"feColorMatrix",
|
|
8401
9003
|
{
|
|
8402
9004
|
in: "SourceAlpha",
|
|
@@ -8404,18 +9006,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime249.
|
|
|
8404
9006
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
8405
9007
|
}
|
|
8406
9008
|
),
|
|
8407
|
-
/* @__PURE__ */ (0,
|
|
8408
|
-
/* @__PURE__ */ (0,
|
|
8409
|
-
/* @__PURE__ */ (0,
|
|
8410
|
-
/* @__PURE__ */ (0,
|
|
8411
|
-
/* @__PURE__ */ (0,
|
|
9009
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)("feOffset", { dy: 1 }),
|
|
9010
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
9011
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
9012
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
9013
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8412
9014
|
"feBlend",
|
|
8413
9015
|
{
|
|
8414
9016
|
in2: "BackgroundImageFix",
|
|
8415
9017
|
result: "effect1_dropShadow_257_2540"
|
|
8416
9018
|
}
|
|
8417
9019
|
),
|
|
8418
|
-
/* @__PURE__ */ (0,
|
|
9020
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8419
9021
|
"feBlend",
|
|
8420
9022
|
{
|
|
8421
9023
|
in: "SourceGraphic",
|
|
@@ -8432,8 +9034,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime249.
|
|
|
8432
9034
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
8433
9035
|
|
|
8434
9036
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
8435
|
-
var
|
|
8436
|
-
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0,
|
|
9037
|
+
var import_jsx_runtime252 = require("@emotion/react/jsx-runtime");
|
|
9038
|
+
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
8437
9039
|
"svg",
|
|
8438
9040
|
{
|
|
8439
9041
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8441,14 +9043,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime250
|
|
|
8441
9043
|
fill: "none",
|
|
8442
9044
|
...props,
|
|
8443
9045
|
children: [
|
|
8444
|
-
/* @__PURE__ */ (0,
|
|
9046
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8445
9047
|
"path",
|
|
8446
9048
|
{
|
|
8447
9049
|
fill: "#000",
|
|
8448
9050
|
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"
|
|
8449
9051
|
}
|
|
8450
9052
|
) }),
|
|
8451
|
-
/* @__PURE__ */ (0,
|
|
9053
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8452
9054
|
"path",
|
|
8453
9055
|
{
|
|
8454
9056
|
fill: "#FAD44E",
|
|
@@ -8457,14 +9059,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime250
|
|
|
8457
9059
|
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"
|
|
8458
9060
|
}
|
|
8459
9061
|
),
|
|
8460
|
-
/* @__PURE__ */ (0,
|
|
9062
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8461
9063
|
"path",
|
|
8462
9064
|
{
|
|
8463
9065
|
fill: "#1A202C",
|
|
8464
9066
|
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"
|
|
8465
9067
|
}
|
|
8466
9068
|
),
|
|
8467
|
-
/* @__PURE__ */ (0,
|
|
9069
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
8468
9070
|
"filter",
|
|
8469
9071
|
{
|
|
8470
9072
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -8475,8 +9077,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime250
|
|
|
8475
9077
|
colorInterpolationFilters: "sRGB",
|
|
8476
9078
|
filterUnits: "userSpaceOnUse",
|
|
8477
9079
|
children: [
|
|
8478
|
-
/* @__PURE__ */ (0,
|
|
8479
|
-
/* @__PURE__ */ (0,
|
|
9080
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
9081
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8480
9082
|
"feColorMatrix",
|
|
8481
9083
|
{
|
|
8482
9084
|
in: "SourceAlpha",
|
|
@@ -8484,18 +9086,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime250
|
|
|
8484
9086
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
8485
9087
|
}
|
|
8486
9088
|
),
|
|
8487
|
-
/* @__PURE__ */ (0,
|
|
8488
|
-
/* @__PURE__ */ (0,
|
|
8489
|
-
/* @__PURE__ */ (0,
|
|
8490
|
-
/* @__PURE__ */ (0,
|
|
8491
|
-
/* @__PURE__ */ (0,
|
|
9089
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feOffset", { dy: 1 }),
|
|
9090
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
9091
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
9092
|
+
/* @__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" }),
|
|
9093
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8492
9094
|
"feBlend",
|
|
8493
9095
|
{
|
|
8494
9096
|
in2: "BackgroundImageFix",
|
|
8495
9097
|
result: "effect1_dropShadow_257_2538"
|
|
8496
9098
|
}
|
|
8497
9099
|
),
|
|
8498
|
-
/* @__PURE__ */ (0,
|
|
9100
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8499
9101
|
"feBlend",
|
|
8500
9102
|
{
|
|
8501
9103
|
in: "SourceGraphic",
|
|
@@ -8512,8 +9114,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime250
|
|
|
8512
9114
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
8513
9115
|
|
|
8514
9116
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
8515
|
-
var
|
|
8516
|
-
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0,
|
|
9117
|
+
var import_jsx_runtime253 = require("@emotion/react/jsx-runtime");
|
|
9118
|
+
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
8517
9119
|
"svg",
|
|
8518
9120
|
{
|
|
8519
9121
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8521,14 +9123,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
8521
9123
|
fill: "none",
|
|
8522
9124
|
...props,
|
|
8523
9125
|
children: [
|
|
8524
|
-
/* @__PURE__ */ (0,
|
|
9126
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8525
9127
|
"path",
|
|
8526
9128
|
{
|
|
8527
9129
|
fill: "#E2430C",
|
|
8528
9130
|
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"
|
|
8529
9131
|
}
|
|
8530
9132
|
),
|
|
8531
|
-
/* @__PURE__ */ (0,
|
|
9133
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8532
9134
|
"path",
|
|
8533
9135
|
{
|
|
8534
9136
|
fill: "#fff",
|
|
@@ -8541,8 +9143,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
8541
9143
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
8542
9144
|
|
|
8543
9145
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
8544
|
-
var
|
|
8545
|
-
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0,
|
|
9146
|
+
var import_jsx_runtime254 = require("@emotion/react/jsx-runtime");
|
|
9147
|
+
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
|
|
8546
9148
|
"svg",
|
|
8547
9149
|
{
|
|
8548
9150
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8550,14 +9152,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
8550
9152
|
fill: "none",
|
|
8551
9153
|
...props,
|
|
8552
9154
|
children: [
|
|
8553
|
-
/* @__PURE__ */ (0,
|
|
9155
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
8554
9156
|
"path",
|
|
8555
9157
|
{
|
|
8556
9158
|
fill: "#E2430C",
|
|
8557
9159
|
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"
|
|
8558
9160
|
}
|
|
8559
9161
|
),
|
|
8560
|
-
/* @__PURE__ */ (0,
|
|
9162
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
8561
9163
|
"path",
|
|
8562
9164
|
{
|
|
8563
9165
|
fill: "#000",
|
|
@@ -8570,8 +9172,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
8570
9172
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
8571
9173
|
|
|
8572
9174
|
// src/Logo/Logo.tsx
|
|
8573
|
-
var
|
|
8574
|
-
var logoStyles = (size) =>
|
|
9175
|
+
var import_jsx_runtime255 = require("@emotion/react/jsx-runtime");
|
|
9176
|
+
var logoStyles = (size) => import_react59.css`
|
|
8575
9177
|
width: ${space[size]};
|
|
8576
9178
|
height: auto;
|
|
8577
9179
|
display: block;
|
|
@@ -8599,18 +9201,18 @@ var Logo = ({
|
|
|
8599
9201
|
return LandtrustStandardLight_default;
|
|
8600
9202
|
};
|
|
8601
9203
|
const LogoComponent = getLogoComponent();
|
|
8602
|
-
return /* @__PURE__ */ (0,
|
|
9204
|
+
return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
8603
9205
|
};
|
|
8604
9206
|
var Logo_default = Logo;
|
|
8605
9207
|
|
|
8606
9208
|
// src/Navigation/Navigation.styles.ts
|
|
8607
|
-
var
|
|
8608
|
-
var navigationStyles =
|
|
9209
|
+
var import_react60 = require("@emotion/react");
|
|
9210
|
+
var navigationStyles = import_react60.css`
|
|
8609
9211
|
width: 100%;
|
|
8610
9212
|
background-color: white;
|
|
8611
9213
|
border-bottom: 1px solid #e5e5e5;
|
|
8612
9214
|
`;
|
|
8613
|
-
var hamburgerButtonStyles =
|
|
9215
|
+
var hamburgerButtonStyles = import_react60.css`
|
|
8614
9216
|
cursor: pointer;
|
|
8615
9217
|
&:focus {
|
|
8616
9218
|
outline: 2px solid #4f46e5;
|
|
@@ -8621,7 +9223,7 @@ var hamburgerButtonStyles = import_react56.css`
|
|
|
8621
9223
|
display: none;
|
|
8622
9224
|
}
|
|
8623
9225
|
`;
|
|
8624
|
-
var centeredLogoStyles =
|
|
9226
|
+
var centeredLogoStyles = import_react60.css`
|
|
8625
9227
|
transform: translate(-50%, -50%);
|
|
8626
9228
|
max-width: 150px;
|
|
8627
9229
|
|
|
@@ -8629,27 +9231,27 @@ var centeredLogoStyles = import_react56.css`
|
|
|
8629
9231
|
display: none;
|
|
8630
9232
|
}
|
|
8631
9233
|
`;
|
|
8632
|
-
var desktopLogoStyles =
|
|
9234
|
+
var desktopLogoStyles = import_react60.css`
|
|
8633
9235
|
display: none;
|
|
8634
9236
|
|
|
8635
9237
|
@media (min-width: 768px) {
|
|
8636
9238
|
display: block;
|
|
8637
9239
|
}
|
|
8638
9240
|
`;
|
|
8639
|
-
var
|
|
9241
|
+
var containerStyles4 = import_react60.css`
|
|
8640
9242
|
@media (min-width: 768px) {
|
|
8641
9243
|
justify-content: space-between;
|
|
8642
9244
|
position: static;
|
|
8643
9245
|
}
|
|
8644
9246
|
`;
|
|
8645
|
-
var logoStyles2 =
|
|
9247
|
+
var logoStyles2 = import_react60.css`
|
|
8646
9248
|
width: 100%;
|
|
8647
9249
|
|
|
8648
9250
|
@media (min-width: 768px) {
|
|
8649
9251
|
width: initial;
|
|
8650
9252
|
}
|
|
8651
9253
|
`;
|
|
8652
|
-
var desktopNavStyles =
|
|
9254
|
+
var desktopNavStyles = import_react60.css`
|
|
8653
9255
|
display: none;
|
|
8654
9256
|
|
|
8655
9257
|
@media (min-width: 768px) {
|
|
@@ -8658,7 +9260,7 @@ var desktopNavStyles = import_react56.css`
|
|
|
8658
9260
|
gap: 32px;
|
|
8659
9261
|
}
|
|
8660
9262
|
`;
|
|
8661
|
-
var navLinksStyles =
|
|
9263
|
+
var navLinksStyles = import_react60.css`
|
|
8662
9264
|
display: flex;
|
|
8663
9265
|
align-items: center;
|
|
8664
9266
|
gap: 24px;
|
|
@@ -8666,7 +9268,7 @@ var navLinksStyles = import_react56.css`
|
|
|
8666
9268
|
margin: 0;
|
|
8667
9269
|
padding: 0;
|
|
8668
9270
|
`;
|
|
8669
|
-
var navLinkStyles =
|
|
9271
|
+
var navLinkStyles = import_react60.css`
|
|
8670
9272
|
text-decoration: none;
|
|
8671
9273
|
color: #374151;
|
|
8672
9274
|
font-weight: 500;
|
|
@@ -8682,7 +9284,7 @@ var navLinkStyles = import_react56.css`
|
|
|
8682
9284
|
outline-offset: 2px;
|
|
8683
9285
|
}
|
|
8684
9286
|
`;
|
|
8685
|
-
var avatarPlaceholderStyles =
|
|
9287
|
+
var avatarPlaceholderStyles = import_react60.css`
|
|
8686
9288
|
width: 32px;
|
|
8687
9289
|
height: 32px;
|
|
8688
9290
|
border-radius: 50%;
|
|
@@ -8707,7 +9309,7 @@ var avatarPlaceholderStyles = import_react56.css`
|
|
|
8707
9309
|
`;
|
|
8708
9310
|
|
|
8709
9311
|
// src/Navigation/Navigation.tsx
|
|
8710
|
-
var
|
|
9312
|
+
var import_jsx_runtime256 = require("@emotion/react/jsx-runtime");
|
|
8711
9313
|
var Navigation = ({
|
|
8712
9314
|
onMenuToggle,
|
|
8713
9315
|
className,
|
|
@@ -8721,16 +9323,16 @@ var Navigation = ({
|
|
|
8721
9323
|
onAvatarClick,
|
|
8722
9324
|
...rest
|
|
8723
9325
|
}) => {
|
|
8724
|
-
return /* @__PURE__ */ (0,
|
|
9326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
|
|
8725
9327
|
Box_default,
|
|
8726
9328
|
{
|
|
8727
9329
|
display: "flex",
|
|
8728
9330
|
alignItems: "center",
|
|
8729
9331
|
padding: space[4],
|
|
8730
9332
|
position: "relative",
|
|
8731
|
-
css:
|
|
9333
|
+
css: containerStyles4,
|
|
8732
9334
|
children: [
|
|
8733
|
-
/* @__PURE__ */ (0,
|
|
9335
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
8734
9336
|
Box_default,
|
|
8735
9337
|
{
|
|
8736
9338
|
as: "button",
|
|
@@ -8742,11 +9344,11 @@ var Navigation = ({
|
|
|
8742
9344
|
border: "none",
|
|
8743
9345
|
padding: space[2],
|
|
8744
9346
|
css: hamburgerButtonStyles,
|
|
8745
|
-
children: /* @__PURE__ */ (0,
|
|
9347
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
8746
9348
|
}
|
|
8747
9349
|
),
|
|
8748
|
-
/* @__PURE__ */ (0,
|
|
8749
|
-
/* @__PURE__ */ (0,
|
|
9350
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
9351
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Box_default, { position: "absolute", left: "50%", top: "50%", css: centeredLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
8750
9352
|
Logo_default,
|
|
8751
9353
|
{
|
|
8752
9354
|
variant: logoVariant,
|
|
@@ -8755,8 +9357,8 @@ var Navigation = ({
|
|
|
8755
9357
|
css: logoStyles2
|
|
8756
9358
|
}
|
|
8757
9359
|
) }),
|
|
8758
|
-
/* @__PURE__ */ (0,
|
|
8759
|
-
/* @__PURE__ */ (0,
|
|
9360
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(Box_default, { css: desktopNavStyles, children: [
|
|
9361
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Box_default, { as: "nav", children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Box_default, { as: "ul", css: navLinksStyles, children: navLinks.map((link) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Box_default, { as: "li", children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
8760
9362
|
"a",
|
|
8761
9363
|
{
|
|
8762
9364
|
href: link.href,
|
|
@@ -8765,7 +9367,7 @@ var Navigation = ({
|
|
|
8765
9367
|
children: link.label
|
|
8766
9368
|
}
|
|
8767
9369
|
) }, link.href)) }) }),
|
|
8768
|
-
/* @__PURE__ */ (0,
|
|
9370
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
8769
9371
|
Box_default,
|
|
8770
9372
|
{
|
|
8771
9373
|
as: "button",
|
|
@@ -8784,21 +9386,21 @@ var Navigation = ({
|
|
|
8784
9386
|
var Navigation_default = Navigation;
|
|
8785
9387
|
|
|
8786
9388
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
8787
|
-
var
|
|
9389
|
+
var import_react63 = require("react");
|
|
8788
9390
|
var import_react_intersection_observer = require("react-intersection-observer");
|
|
8789
9391
|
|
|
8790
9392
|
// src/ScrollingCarousel/context/CarouselContext.tsx
|
|
8791
|
-
var
|
|
8792
|
-
var CarouselContext =
|
|
9393
|
+
var import_react61 = __toESM(require("react"));
|
|
9394
|
+
var CarouselContext = import_react61.default.createContext(
|
|
8793
9395
|
null
|
|
8794
9396
|
);
|
|
8795
9397
|
|
|
8796
9398
|
// src/ScrollingCarousel/ScrollingCarousel.styles.ts
|
|
8797
|
-
var
|
|
8798
|
-
var carouselRoot =
|
|
9399
|
+
var import_react62 = require("@emotion/react");
|
|
9400
|
+
var carouselRoot = import_react62.css`
|
|
8799
9401
|
position: relative;
|
|
8800
9402
|
`;
|
|
8801
|
-
var carousel =
|
|
9403
|
+
var carousel = import_react62.css`
|
|
8802
9404
|
display: flex;
|
|
8803
9405
|
overflow-y: hidden;
|
|
8804
9406
|
overflow-x: scroll;
|
|
@@ -8810,7 +9412,7 @@ var carousel = import_react58.css`
|
|
|
8810
9412
|
display: none;
|
|
8811
9413
|
}
|
|
8812
9414
|
`;
|
|
8813
|
-
var step =
|
|
9415
|
+
var step = import_react62.css`
|
|
8814
9416
|
scroll-snap-align: center;
|
|
8815
9417
|
flex-basis: 100%;
|
|
8816
9418
|
flex-shrink: 0;
|
|
@@ -8823,7 +9425,7 @@ var step = import_react58.css`
|
|
|
8823
9425
|
flex-basis: 100%;
|
|
8824
9426
|
}
|
|
8825
9427
|
`;
|
|
8826
|
-
var controls = (position2) =>
|
|
9428
|
+
var controls = (position2) => import_react62.css`
|
|
8827
9429
|
${(position2 === "left-right" || position2 === "top-right") && `
|
|
8828
9430
|
display: none;
|
|
8829
9431
|
|
|
@@ -8832,7 +9434,7 @@ var controls = (position2) => import_react58.css`
|
|
|
8832
9434
|
}
|
|
8833
9435
|
`}
|
|
8834
9436
|
`;
|
|
8835
|
-
var iconWrapper =
|
|
9437
|
+
var iconWrapper = import_react62.css`
|
|
8836
9438
|
display: flex;
|
|
8837
9439
|
width: var(--spacing-7);
|
|
8838
9440
|
height: var(--spacing-7);
|
|
@@ -8842,7 +9444,7 @@ var iconWrapper = import_react58.css`
|
|
|
8842
9444
|
justify-content: center;
|
|
8843
9445
|
box-shadow: var(--shadow-md);
|
|
8844
9446
|
`;
|
|
8845
|
-
var button = (position2) =>
|
|
9447
|
+
var button = (position2) => import_react62.css`
|
|
8846
9448
|
background: transparent;
|
|
8847
9449
|
border-color: transparent;
|
|
8848
9450
|
outline: none;
|
|
@@ -8874,7 +9476,7 @@ var button = (position2) => import_react58.css`
|
|
|
8874
9476
|
bottom: calc(-1 * var(--spacing-1));
|
|
8875
9477
|
`}
|
|
8876
9478
|
`;
|
|
8877
|
-
var buttonLeft = (position2) =>
|
|
9479
|
+
var buttonLeft = (position2) => import_react62.css`
|
|
8878
9480
|
${button(position2)}
|
|
8879
9481
|
|
|
8880
9482
|
${position2 === "left-right" && `
|
|
@@ -8894,7 +9496,7 @@ var buttonLeft = (position2) => import_react58.css`
|
|
|
8894
9496
|
left: calc(50% - var(--spacing-16));
|
|
8895
9497
|
`}
|
|
8896
9498
|
`;
|
|
8897
|
-
var customButtonLeft = (position2) =>
|
|
9499
|
+
var customButtonLeft = (position2) => import_react62.css`
|
|
8898
9500
|
${button(position2)}
|
|
8899
9501
|
|
|
8900
9502
|
${position2 === "left-right" && `
|
|
@@ -8914,7 +9516,7 @@ var customButtonLeft = (position2) => import_react58.css`
|
|
|
8914
9516
|
left: calc(50% - var(--spacing-16));
|
|
8915
9517
|
`}
|
|
8916
9518
|
`;
|
|
8917
|
-
var buttonRight = (position2) =>
|
|
9519
|
+
var buttonRight = (position2) => import_react62.css`
|
|
8918
9520
|
${button(position2)}
|
|
8919
9521
|
|
|
8920
9522
|
${position2 === "left-right" && `
|
|
@@ -8934,12 +9536,12 @@ var buttonRight = (position2) => import_react58.css`
|
|
|
8934
9536
|
right: calc(50% - var(--spacing-16));
|
|
8935
9537
|
`}
|
|
8936
9538
|
`;
|
|
8937
|
-
var icon =
|
|
9539
|
+
var icon = import_react62.css`
|
|
8938
9540
|
width: var(--spacing-3);
|
|
8939
9541
|
height: var(--spacing-3);
|
|
8940
9542
|
color: var(--color-base-black);
|
|
8941
9543
|
`;
|
|
8942
|
-
var dots =
|
|
9544
|
+
var dots = import_react62.css`
|
|
8943
9545
|
position: absolute;
|
|
8944
9546
|
bottom: var(--spacing-2);
|
|
8945
9547
|
left: 0;
|
|
@@ -8949,11 +9551,11 @@ var dots = import_react58.css`
|
|
|
8949
9551
|
align-items: center;
|
|
8950
9552
|
justify-content: center;
|
|
8951
9553
|
`;
|
|
8952
|
-
var dotsInner =
|
|
9554
|
+
var dotsInner = import_react62.css`
|
|
8953
9555
|
display: flex;
|
|
8954
9556
|
overflow: hidden;
|
|
8955
9557
|
`;
|
|
8956
|
-
var dot = (dotsColor) =>
|
|
9558
|
+
var dot = (dotsColor) => import_react62.css`
|
|
8957
9559
|
position: relative;
|
|
8958
9560
|
flex-shrink: 0;
|
|
8959
9561
|
flex-grow: 0;
|
|
@@ -8992,22 +9594,22 @@ var dot = (dotsColor) => import_react58.css`
|
|
|
8992
9594
|
`}
|
|
8993
9595
|
}
|
|
8994
9596
|
`;
|
|
8995
|
-
var dotDistance2 =
|
|
9597
|
+
var dotDistance2 = import_react62.css`
|
|
8996
9598
|
&::after {
|
|
8997
9599
|
transform: translate(-50%, -50%) scale(0.9);
|
|
8998
9600
|
}
|
|
8999
9601
|
`;
|
|
9000
|
-
var dotDistance3 =
|
|
9602
|
+
var dotDistance3 = import_react62.css`
|
|
9001
9603
|
&::after {
|
|
9002
9604
|
transform: translate(-50%, -50%) scale(0.8);
|
|
9003
9605
|
}
|
|
9004
9606
|
`;
|
|
9005
|
-
var dotDistanceGreaterThan3 =
|
|
9607
|
+
var dotDistanceGreaterThan3 = import_react62.css`
|
|
9006
9608
|
&::after {
|
|
9007
9609
|
transform: translate(-50%, -50%) scale(0.7);
|
|
9008
9610
|
}
|
|
9009
9611
|
`;
|
|
9010
|
-
var dotVisible =
|
|
9612
|
+
var dotVisible = import_react62.css`
|
|
9011
9613
|
&::after {
|
|
9012
9614
|
opacity: 1;
|
|
9013
9615
|
transform: translate(-50%, -50%) scale(1.2);
|
|
@@ -9015,7 +9617,7 @@ var dotVisible = import_react58.css`
|
|
|
9015
9617
|
`;
|
|
9016
9618
|
|
|
9017
9619
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
9018
|
-
var
|
|
9620
|
+
var import_jsx_runtime257 = require("@emotion/react/jsx-runtime");
|
|
9019
9621
|
var ScrollingCarouselStep = ({
|
|
9020
9622
|
children,
|
|
9021
9623
|
index,
|
|
@@ -9023,7 +9625,7 @@ var ScrollingCarouselStep = ({
|
|
|
9023
9625
|
parentId,
|
|
9024
9626
|
onClick
|
|
9025
9627
|
}) => {
|
|
9026
|
-
const context = (0,
|
|
9628
|
+
const context = (0, import_react63.useContext)(CarouselContext);
|
|
9027
9629
|
if (!context) {
|
|
9028
9630
|
throw new Error(
|
|
9029
9631
|
"ScrollingCarouselStep must be used within ScrollingCarousel"
|
|
@@ -9034,7 +9636,7 @@ var ScrollingCarouselStep = ({
|
|
|
9034
9636
|
threshold: 0.75,
|
|
9035
9637
|
root: carousel2.current
|
|
9036
9638
|
});
|
|
9037
|
-
(0,
|
|
9639
|
+
(0, import_react63.useEffect)(() => {
|
|
9038
9640
|
if (typeof index !== "undefined") {
|
|
9039
9641
|
dispatch({
|
|
9040
9642
|
type: "set_child_visibility",
|
|
@@ -9042,7 +9644,7 @@ var ScrollingCarouselStep = ({
|
|
|
9042
9644
|
});
|
|
9043
9645
|
}
|
|
9044
9646
|
}, [inView, index, dispatch]);
|
|
9045
|
-
return /* @__PURE__ */ (0,
|
|
9647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9046
9648
|
"div",
|
|
9047
9649
|
{
|
|
9048
9650
|
ref,
|
|
@@ -9060,10 +9662,10 @@ var ScrollingCarouselStep = ({
|
|
|
9060
9662
|
ScrollingCarouselStep.displayName = "ScrollingCarouselStep";
|
|
9061
9663
|
|
|
9062
9664
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
9063
|
-
var
|
|
9665
|
+
var import_react67 = __toESM(require("react"));
|
|
9064
9666
|
|
|
9065
9667
|
// src/ScrollingCarousel/hooks/useCarouselDots.ts
|
|
9066
|
-
var
|
|
9668
|
+
var import_react64 = require("react");
|
|
9067
9669
|
|
|
9068
9670
|
// src/ScrollingCarousel/ScrollingCarousel.helpers.ts
|
|
9069
9671
|
var childVisibilityReducer = (state, action) => {
|
|
@@ -9094,7 +9696,7 @@ var useCarouselDots = ({
|
|
|
9094
9696
|
anyItemsVisible,
|
|
9095
9697
|
numberOfDots
|
|
9096
9698
|
}) => {
|
|
9097
|
-
const dotOffset = (0,
|
|
9699
|
+
const dotOffset = (0, import_react64.useRef)(0);
|
|
9098
9700
|
const dotWidth = 12;
|
|
9099
9701
|
const totalDots = childVisibility.length;
|
|
9100
9702
|
const dotToCenterIndex = Math.round(
|
|
@@ -9126,7 +9728,7 @@ var useCarouselDots = ({
|
|
|
9126
9728
|
};
|
|
9127
9729
|
|
|
9128
9730
|
// src/ScrollingCarousel/hooks/useCarouselNavigation.ts
|
|
9129
|
-
var
|
|
9731
|
+
var import_react65 = require("react");
|
|
9130
9732
|
|
|
9131
9733
|
// src/shared/helpers.ts
|
|
9132
9734
|
var import_seamless_scroll_polyfill = require("seamless-scroll-polyfill");
|
|
@@ -9160,7 +9762,7 @@ var useCarouselNavigation = ({
|
|
|
9160
9762
|
infiniteScroll,
|
|
9161
9763
|
childVisibilityLength
|
|
9162
9764
|
}) => {
|
|
9163
|
-
const getStepEl = (0,
|
|
9765
|
+
const getStepEl = (0, import_react65.useCallback)(
|
|
9164
9766
|
(index) => {
|
|
9165
9767
|
if (carousel2.current) {
|
|
9166
9768
|
const selector = `[data-carousel-id="${id}"][data-carousel-index="${index}"]`;
|
|
@@ -9170,7 +9772,7 @@ var useCarouselNavigation = ({
|
|
|
9170
9772
|
},
|
|
9171
9773
|
[carousel2, id]
|
|
9172
9774
|
);
|
|
9173
|
-
const next = (0,
|
|
9775
|
+
const next = (0, import_react65.useCallback)(
|
|
9174
9776
|
(e) => {
|
|
9175
9777
|
e.preventDefault();
|
|
9176
9778
|
if (lastItemIsVisible && !infiniteScroll)
|
|
@@ -9198,7 +9800,7 @@ var useCarouselNavigation = ({
|
|
|
9198
9800
|
carousel2
|
|
9199
9801
|
]
|
|
9200
9802
|
);
|
|
9201
|
-
const back = (0,
|
|
9803
|
+
const back = (0, import_react65.useCallback)(
|
|
9202
9804
|
(e) => {
|
|
9203
9805
|
e.preventDefault();
|
|
9204
9806
|
if (firstItemIsVisible && !infiniteScroll)
|
|
@@ -9226,7 +9828,7 @@ var useCarouselNavigation = ({
|
|
|
9226
9828
|
carousel2
|
|
9227
9829
|
]
|
|
9228
9830
|
);
|
|
9229
|
-
const goTo = (0,
|
|
9831
|
+
const goTo = (0, import_react65.useCallback)(
|
|
9230
9832
|
(e, i) => {
|
|
9231
9833
|
e.preventDefault();
|
|
9232
9834
|
const el = getStepEl(i);
|
|
@@ -9244,12 +9846,12 @@ var useCarouselNavigation = ({
|
|
|
9244
9846
|
};
|
|
9245
9847
|
|
|
9246
9848
|
// src/ScrollingCarousel/hooks/useCarouselVisibility.ts
|
|
9247
|
-
var
|
|
9849
|
+
var import_react66 = require("react");
|
|
9248
9850
|
var useCarouselVisibility = (carousel2) => {
|
|
9249
|
-
const [state, dispatch] = (0,
|
|
9851
|
+
const [state, dispatch] = (0, import_react66.useReducer)(childVisibilityReducer, {
|
|
9250
9852
|
childVisibility: []
|
|
9251
9853
|
});
|
|
9252
|
-
const carouselContextApi = (0,
|
|
9854
|
+
const carouselContextApi = (0, import_react66.useMemo)(
|
|
9253
9855
|
() => ({ carousel: carousel2, dispatch }),
|
|
9254
9856
|
[carousel2]
|
|
9255
9857
|
);
|
|
@@ -9270,7 +9872,7 @@ var useCarouselVisibility = (carousel2) => {
|
|
|
9270
9872
|
};
|
|
9271
9873
|
|
|
9272
9874
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
9273
|
-
var
|
|
9875
|
+
var import_jsx_runtime258 = require("@emotion/react/jsx-runtime");
|
|
9274
9876
|
var ScrollingCarousel = ({
|
|
9275
9877
|
className,
|
|
9276
9878
|
children,
|
|
@@ -9287,8 +9889,8 @@ var ScrollingCarousel = ({
|
|
|
9287
9889
|
id,
|
|
9288
9890
|
current
|
|
9289
9891
|
}) => {
|
|
9290
|
-
const carousel2 = (0,
|
|
9291
|
-
const [isHovering, setIsHovering] = (0,
|
|
9892
|
+
const carousel2 = (0, import_react67.useRef)(null);
|
|
9893
|
+
const [isHovering, setIsHovering] = (0, import_react67.useState)(false);
|
|
9292
9894
|
const {
|
|
9293
9895
|
state,
|
|
9294
9896
|
carouselContextApi,
|
|
@@ -9308,7 +9910,7 @@ var ScrollingCarousel = ({
|
|
|
9308
9910
|
infiniteScroll,
|
|
9309
9911
|
childVisibilityLength: state.childVisibility.length
|
|
9310
9912
|
});
|
|
9311
|
-
(0,
|
|
9913
|
+
(0, import_react67.useEffect)(() => {
|
|
9312
9914
|
if (carousel2.current && typeof current === "number" && current >= 0) {
|
|
9313
9915
|
const childrenArray = Array.from(carousel2.current.children);
|
|
9314
9916
|
const selectedItem = childrenArray[current];
|
|
@@ -9323,9 +9925,9 @@ var ScrollingCarousel = ({
|
|
|
9323
9925
|
}
|
|
9324
9926
|
}
|
|
9325
9927
|
}, [current]);
|
|
9326
|
-
const childrenWithIndex =
|
|
9928
|
+
const childrenWithIndex = import_react67.default.Children.map(
|
|
9327
9929
|
children,
|
|
9328
|
-
(child, index) =>
|
|
9930
|
+
(child, index) => import_react67.default.cloneElement(child, { index })
|
|
9329
9931
|
);
|
|
9330
9932
|
const { dotOffset, dotDistances, dotWidth } = useCarouselDots({
|
|
9331
9933
|
childVisibility: state.childVisibility,
|
|
@@ -9336,7 +9938,7 @@ var ScrollingCarousel = ({
|
|
|
9336
9938
|
});
|
|
9337
9939
|
const hasMultipleChildren = state.childVisibility.length > 1;
|
|
9338
9940
|
const shouldShowNavigation = showNavigationOnHover ? isHovering : true;
|
|
9339
|
-
return /* @__PURE__ */ (0,
|
|
9941
|
+
return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
|
|
9340
9942
|
"div",
|
|
9341
9943
|
{
|
|
9342
9944
|
css: carouselRoot,
|
|
@@ -9344,7 +9946,7 @@ var ScrollingCarousel = ({
|
|
|
9344
9946
|
onMouseEnter: () => setIsHovering(true),
|
|
9345
9947
|
onMouseLeave: () => setIsHovering(false),
|
|
9346
9948
|
children: [
|
|
9347
|
-
/* @__PURE__ */ (0,
|
|
9949
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
9348
9950
|
"div",
|
|
9349
9951
|
{
|
|
9350
9952
|
css: carousel,
|
|
@@ -9353,11 +9955,11 @@ var ScrollingCarousel = ({
|
|
|
9353
9955
|
role: "region",
|
|
9354
9956
|
"aria-roledescription": "carousel",
|
|
9355
9957
|
"aria-label": "Scrolling carousel",
|
|
9356
|
-
children: /* @__PURE__ */ (0,
|
|
9958
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(CarouselContext.Provider, { value: carouselContextApi, children: childrenWithIndex })
|
|
9357
9959
|
}
|
|
9358
9960
|
),
|
|
9359
|
-
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0,
|
|
9360
|
-
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
9961
|
+
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)("div", { css: controls(buttonsPosition), children: [
|
|
9962
|
+
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
9361
9963
|
"button",
|
|
9362
9964
|
{
|
|
9363
9965
|
"aria-label": "Previous",
|
|
@@ -9369,10 +9971,10 @@ var ScrollingCarousel = ({
|
|
|
9369
9971
|
},
|
|
9370
9972
|
css: customLeftButton ? customButtonLeft(buttonsPosition) : buttonLeft(buttonsPosition),
|
|
9371
9973
|
"data-testid": `scrolling-carousel-button-back-${id}`,
|
|
9372
|
-
children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0,
|
|
9974
|
+
children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0, import_jsx_runtime258.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(Icon_default, { variant: "AngleLeft", css: icon }) })
|
|
9373
9975
|
}
|
|
9374
9976
|
),
|
|
9375
|
-
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
9977
|
+
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
9376
9978
|
"button",
|
|
9377
9979
|
{
|
|
9378
9980
|
"aria-label": "Next",
|
|
@@ -9384,11 +9986,11 @@ var ScrollingCarousel = ({
|
|
|
9384
9986
|
},
|
|
9385
9987
|
css: buttonRight(buttonsPosition),
|
|
9386
9988
|
"data-testid": `scrolling-carousel-button-next-${id}`,
|
|
9387
|
-
children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0,
|
|
9989
|
+
children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0, import_jsx_runtime258.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(Icon_default, { variant: "AngleRight", css: icon }) })
|
|
9388
9990
|
}
|
|
9389
9991
|
)
|
|
9390
9992
|
] }),
|
|
9391
|
-
showDots && /* @__PURE__ */ (0,
|
|
9993
|
+
showDots && /* @__PURE__ */ (0, import_jsx_runtime258.jsx)("div", { css: dots, children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
9392
9994
|
"div",
|
|
9393
9995
|
{
|
|
9394
9996
|
css: dotsInner,
|
|
@@ -9396,7 +9998,7 @@ var ScrollingCarousel = ({
|
|
|
9396
9998
|
children: state.childVisibility.map((childVisibility, i) => {
|
|
9397
9999
|
var _a;
|
|
9398
10000
|
const distance = (_a = dotDistances[i]) != null ? _a : 0;
|
|
9399
|
-
return /* @__PURE__ */ (0,
|
|
10001
|
+
return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
9400
10002
|
"button",
|
|
9401
10003
|
{
|
|
9402
10004
|
type: "button",
|
|
@@ -9427,8 +10029,8 @@ var ScrollingCarousel = ({
|
|
|
9427
10029
|
ScrollingCarousel.displayName = "ScrollingCarousel";
|
|
9428
10030
|
|
|
9429
10031
|
// src/PackageCard/PackageCard.styles.ts
|
|
9430
|
-
var
|
|
9431
|
-
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) =>
|
|
10032
|
+
var import_react68 = require("@emotion/react");
|
|
10033
|
+
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) => import_react68.css`
|
|
9432
10034
|
${hasClickHandler && `
|
|
9433
10035
|
cursor: pointer;
|
|
9434
10036
|
`}
|
|
@@ -9446,7 +10048,7 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
9446
10048
|
flex-direction: column;
|
|
9447
10049
|
gap: var(--spacing-2);
|
|
9448
10050
|
|
|
9449
|
-
${orientation === "horizontal" &&
|
|
10051
|
+
${orientation === "horizontal" && import_react68.css`
|
|
9450
10052
|
/* Apply horizontal layout only on tablet and up */
|
|
9451
10053
|
${media.md} {
|
|
9452
10054
|
flex-direction: row;
|
|
@@ -9474,60 +10076,60 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
9474
10076
|
}
|
|
9475
10077
|
`}
|
|
9476
10078
|
`;
|
|
9477
|
-
var imageContainerStyles = (orientation) =>
|
|
10079
|
+
var imageContainerStyles = (orientation) => import_react68.css`
|
|
9478
10080
|
width: 100%;
|
|
9479
10081
|
height: 260px;
|
|
9480
10082
|
|
|
9481
|
-
${orientation === "horizontal" &&
|
|
10083
|
+
${orientation === "horizontal" && import_react68.css`
|
|
9482
10084
|
${media.md} {
|
|
9483
10085
|
width: 40%;
|
|
9484
10086
|
height: 200px;
|
|
9485
10087
|
}
|
|
9486
10088
|
`}
|
|
9487
10089
|
`;
|
|
9488
|
-
var imageBoxStyles = (orientation) =>
|
|
10090
|
+
var imageBoxStyles = (orientation) => import_react68.css`
|
|
9489
10091
|
height: 260px;
|
|
9490
10092
|
|
|
9491
|
-
${orientation === "horizontal" &&
|
|
10093
|
+
${orientation === "horizontal" && import_react68.css`
|
|
9492
10094
|
${media.md} {
|
|
9493
10095
|
height: 200px;
|
|
9494
10096
|
}
|
|
9495
10097
|
`}
|
|
9496
10098
|
`;
|
|
9497
|
-
var contentContainerStyles = (orientation, hasContentBackground) =>
|
|
10099
|
+
var contentContainerStyles = (orientation, hasContentBackground) => import_react68.css`
|
|
9498
10100
|
${hasContentBackground ? contentWithBackgroundStyles : contentWithoutBackgroundStyles}
|
|
9499
10101
|
width: 100%;
|
|
9500
10102
|
display: flex;
|
|
9501
10103
|
flex-direction: column;
|
|
9502
10104
|
justify-content: flex-start;
|
|
9503
10105
|
|
|
9504
|
-
${orientation === "horizontal" &&
|
|
10106
|
+
${orientation === "horizontal" && import_react68.css`
|
|
9505
10107
|
${media.md} {
|
|
9506
10108
|
width: 60%;
|
|
9507
10109
|
justify-content: center;
|
|
9508
10110
|
}
|
|
9509
10111
|
`}
|
|
9510
10112
|
`;
|
|
9511
|
-
var
|
|
10113
|
+
var imageStyles3 = import_react68.css`
|
|
9512
10114
|
background-size: cover;
|
|
9513
10115
|
background-position: center;
|
|
9514
10116
|
background-repeat: no-repeat;
|
|
9515
10117
|
position: relative;
|
|
9516
10118
|
background-color: lightgray;
|
|
9517
10119
|
`;
|
|
9518
|
-
var badgeTopLeftStyles =
|
|
10120
|
+
var badgeTopLeftStyles = import_react68.css`
|
|
9519
10121
|
position: absolute;
|
|
9520
10122
|
top: var(--spacing-3);
|
|
9521
10123
|
left: var(--spacing-3);
|
|
9522
10124
|
z-index: 2;
|
|
9523
10125
|
`;
|
|
9524
|
-
var badgeBottomRightStyles =
|
|
10126
|
+
var badgeBottomRightStyles = import_react68.css`
|
|
9525
10127
|
position: absolute;
|
|
9526
10128
|
bottom: var(--spacing-3);
|
|
9527
10129
|
right: var(--spacing-3);
|
|
9528
10130
|
z-index: 2;
|
|
9529
10131
|
`;
|
|
9530
|
-
var heartIconStyles =
|
|
10132
|
+
var heartIconStyles = import_react68.css`
|
|
9531
10133
|
position: absolute;
|
|
9532
10134
|
top: var(--spacing-3);
|
|
9533
10135
|
right: var(--spacing-3);
|
|
@@ -9549,20 +10151,20 @@ var heartIconStyles = import_react64.css`
|
|
|
9549
10151
|
transform: scale(1.1);
|
|
9550
10152
|
}
|
|
9551
10153
|
`;
|
|
9552
|
-
var actionMenuStyles =
|
|
10154
|
+
var actionMenuStyles = import_react68.css`
|
|
9553
10155
|
position: absolute;
|
|
9554
10156
|
top: var(--spacing-3);
|
|
9555
10157
|
right: var(--spacing-3);
|
|
9556
10158
|
z-index: 3;
|
|
9557
10159
|
`;
|
|
9558
|
-
var contentWithBackgroundStyles =
|
|
10160
|
+
var contentWithBackgroundStyles = import_react68.css`
|
|
9559
10161
|
padding: 0 var(--spacing-3) var(--spacing-4) var(--spacing-3);
|
|
9560
10162
|
background-color: var(--surface-page);
|
|
9561
10163
|
`;
|
|
9562
|
-
var contentWithoutBackgroundStyles =
|
|
10164
|
+
var contentWithoutBackgroundStyles = import_react68.css`
|
|
9563
10165
|
padding-top: 0 var(--spacing-2) var(--spacing-2) var(--spacing-2);
|
|
9564
10166
|
`;
|
|
9565
|
-
var overlayStyles =
|
|
10167
|
+
var overlayStyles = import_react68.css`
|
|
9566
10168
|
position: absolute;
|
|
9567
10169
|
top: 0;
|
|
9568
10170
|
left: 0;
|
|
@@ -9576,7 +10178,7 @@ var overlayStyles = import_react64.css`
|
|
|
9576
10178
|
`;
|
|
9577
10179
|
|
|
9578
10180
|
// src/PackageCard/PackageCard.tsx
|
|
9579
|
-
var
|
|
10181
|
+
var import_jsx_runtime259 = require("@emotion/react/jsx-runtime");
|
|
9580
10182
|
var PackageCard = ({
|
|
9581
10183
|
images,
|
|
9582
10184
|
title,
|
|
@@ -9598,7 +10200,7 @@ var PackageCard = ({
|
|
|
9598
10200
|
const shouldShowOverlay = availabilityBadges == null ? void 0 : availabilityBadges.some(
|
|
9599
10201
|
(badge2) => badge2.showOverlay
|
|
9600
10202
|
);
|
|
9601
|
-
return /* @__PURE__ */ (0,
|
|
10203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
9602
10204
|
Box_default,
|
|
9603
10205
|
{
|
|
9604
10206
|
position: "relative",
|
|
@@ -9607,7 +10209,7 @@ var PackageCard = ({
|
|
|
9607
10209
|
onClick,
|
|
9608
10210
|
...rest,
|
|
9609
10211
|
children: [
|
|
9610
|
-
/* @__PURE__ */ (0,
|
|
10212
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
9611
10213
|
Box_default,
|
|
9612
10214
|
{
|
|
9613
10215
|
position: "relative",
|
|
@@ -9615,7 +10217,7 @@ var PackageCard = ({
|
|
|
9615
10217
|
borderRadius: "var(--spacing-4)",
|
|
9616
10218
|
css: imageContainerStyles(orientation),
|
|
9617
10219
|
children: [
|
|
9618
|
-
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
10220
|
+
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9619
10221
|
AvailabilityBadge_default,
|
|
9620
10222
|
{
|
|
9621
10223
|
variant: badge2.variant,
|
|
@@ -9624,23 +10226,23 @@ var PackageCard = ({
|
|
|
9624
10226
|
},
|
|
9625
10227
|
`availability-${index}`
|
|
9626
10228
|
)),
|
|
9627
|
-
shouldShowOverlay && /* @__PURE__ */ (0,
|
|
9628
|
-
/* @__PURE__ */ (0,
|
|
10229
|
+
shouldShowOverlay && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Box_default, { css: overlayStyles }),
|
|
10230
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9629
10231
|
ScrollingCarousel,
|
|
9630
10232
|
{
|
|
9631
10233
|
showDots: images.length > 1,
|
|
9632
10234
|
showNavigationOnHover: true,
|
|
9633
10235
|
id: carouselId,
|
|
9634
|
-
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0,
|
|
10236
|
+
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9635
10237
|
ScrollingCarouselStep,
|
|
9636
10238
|
{
|
|
9637
10239
|
parentId: carouselId,
|
|
9638
|
-
children: /* @__PURE__ */ (0,
|
|
10240
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9639
10241
|
Box_default,
|
|
9640
10242
|
{
|
|
9641
10243
|
width: "100%",
|
|
9642
10244
|
css: [
|
|
9643
|
-
|
|
10245
|
+
imageStyles3,
|
|
9644
10246
|
imageBoxStyles(orientation),
|
|
9645
10247
|
{
|
|
9646
10248
|
backgroundImage: `linear-gradient(181deg, rgba(0, 0, 0, 0.00) 75.32%, rgba(0, 0, 0, 0.40) 99.41%), url(${image})`
|
|
@@ -9653,7 +10255,7 @@ var PackageCard = ({
|
|
|
9653
10255
|
))
|
|
9654
10256
|
}
|
|
9655
10257
|
),
|
|
9656
|
-
onFavoriteClick && /* @__PURE__ */ (0,
|
|
10258
|
+
onFavoriteClick && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9657
10259
|
Box_default,
|
|
9658
10260
|
{
|
|
9659
10261
|
css: heartIconStyles,
|
|
@@ -9662,14 +10264,14 @@ var PackageCard = ({
|
|
|
9662
10264
|
e.stopPropagation();
|
|
9663
10265
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
9664
10266
|
},
|
|
9665
|
-
children: isFavorited ? /* @__PURE__ */ (0,
|
|
10267
|
+
children: isFavorited ? /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9666
10268
|
Icon_default,
|
|
9667
10269
|
{
|
|
9668
10270
|
variant: "HeartSolid",
|
|
9669
10271
|
size: "small",
|
|
9670
10272
|
fill: "var(--color-error-500)"
|
|
9671
10273
|
}
|
|
9672
|
-
) : /* @__PURE__ */ (0,
|
|
10274
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9673
10275
|
Icon_default,
|
|
9674
10276
|
{
|
|
9675
10277
|
variant: "Heart",
|
|
@@ -9679,13 +10281,13 @@ var PackageCard = ({
|
|
|
9679
10281
|
)
|
|
9680
10282
|
}
|
|
9681
10283
|
),
|
|
9682
|
-
actions && actions.length > 0 && orientation === "vertical" && /* @__PURE__ */ (0,
|
|
10284
|
+
actions && actions.length > 0 && orientation === "vertical" && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Box_default, { css: actionMenuStyles, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(ActionMenu_default, { actions }) })
|
|
9683
10285
|
]
|
|
9684
10286
|
}
|
|
9685
10287
|
),
|
|
9686
|
-
actions && actions.length > 0 && orientation === "horizontal" && /* @__PURE__ */ (0,
|
|
9687
|
-
/* @__PURE__ */ (0,
|
|
9688
|
-
/* @__PURE__ */ (0,
|
|
10288
|
+
actions && actions.length > 0 && orientation === "horizontal" && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Box_default, { css: actionMenuStyles, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(ActionMenu_default, { actions }) }),
|
|
10289
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(Box_default, { css: contentContainerStyles(orientation, hasContentBackground), children: [
|
|
10290
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
9689
10291
|
Box_default,
|
|
9690
10292
|
{
|
|
9691
10293
|
display: "flex",
|
|
@@ -9693,9 +10295,9 @@ var PackageCard = ({
|
|
|
9693
10295
|
gap: "var(--spacing-1)",
|
|
9694
10296
|
mb: "var(--spacing-1)",
|
|
9695
10297
|
children: [
|
|
9696
|
-
/* @__PURE__ */ (0,
|
|
9697
|
-
/* @__PURE__ */ (0,
|
|
9698
|
-
startingPrice && /* @__PURE__ */ (0,
|
|
10298
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }) }),
|
|
10299
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Text_default, { size: "sm", fontWeight: "bold", children: subtitle }) }),
|
|
10300
|
+
startingPrice && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(Text_default, { size: "sm", fontWeight: "normal", children: [
|
|
9699
10301
|
"Starting Price ",
|
|
9700
10302
|
startingPrice,
|
|
9701
10303
|
" / Guest"
|
|
@@ -9703,14 +10305,14 @@ var PackageCard = ({
|
|
|
9703
10305
|
]
|
|
9704
10306
|
}
|
|
9705
10307
|
),
|
|
9706
|
-
badges && badges.length > 0 && /* @__PURE__ */ (0,
|
|
10308
|
+
badges && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9707
10309
|
Box_default,
|
|
9708
10310
|
{
|
|
9709
10311
|
display: "flex",
|
|
9710
10312
|
gap: "var(--spacing-2) var(--spacing-4)",
|
|
9711
10313
|
alignItems: "center",
|
|
9712
10314
|
flexWrap: "wrap",
|
|
9713
|
-
children: badges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
10315
|
+
children: badges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9714
10316
|
IconLabel_default,
|
|
9715
10317
|
{
|
|
9716
10318
|
iconSize: badge2.iconSize || "medium",
|
|
@@ -9729,14 +10331,14 @@ var PackageCard = ({
|
|
|
9729
10331
|
var PackageCard_default = PackageCard;
|
|
9730
10332
|
|
|
9731
10333
|
// src/PackageHeader/PackageHeader.tsx
|
|
9732
|
-
var
|
|
10334
|
+
var import_jsx_runtime260 = require("@emotion/react/jsx-runtime");
|
|
9733
10335
|
var PackageHeader = ({
|
|
9734
10336
|
header,
|
|
9735
10337
|
subheader,
|
|
9736
10338
|
features,
|
|
9737
10339
|
className
|
|
9738
10340
|
}) => {
|
|
9739
|
-
return /* @__PURE__ */ (0,
|
|
10341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
9740
10342
|
Box_default,
|
|
9741
10343
|
{
|
|
9742
10344
|
display: "flex",
|
|
@@ -9745,9 +10347,9 @@ var PackageHeader = ({
|
|
|
9745
10347
|
color: "var(--text-primary)",
|
|
9746
10348
|
className,
|
|
9747
10349
|
children: [
|
|
9748
|
-
/* @__PURE__ */ (0,
|
|
9749
|
-
subheader && /* @__PURE__ */ (0,
|
|
9750
|
-
features && /* @__PURE__ */ (0,
|
|
10350
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Heading_default, { size: "xs", fontWeight: "bold", children: header }),
|
|
10351
|
+
subheader && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Text_default, { children: subheader }),
|
|
10352
|
+
features && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(FeatureList_default, { items: features })
|
|
9751
10353
|
]
|
|
9752
10354
|
}
|
|
9753
10355
|
);
|
|
@@ -9755,8 +10357,8 @@ var PackageHeader = ({
|
|
|
9755
10357
|
var PackageHeader_default = PackageHeader;
|
|
9756
10358
|
|
|
9757
10359
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
9758
|
-
var
|
|
9759
|
-
var
|
|
10360
|
+
var import_react69 = require("@emotion/react");
|
|
10361
|
+
var imageStyles4 = import_react69.css`
|
|
9760
10362
|
flex: 1;
|
|
9761
10363
|
min-width: 0;
|
|
9762
10364
|
max-width: 100%;
|
|
@@ -9767,18 +10369,18 @@ var imageStyles3 = import_react65.css`
|
|
|
9767
10369
|
`;
|
|
9768
10370
|
|
|
9769
10371
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
9770
|
-
var
|
|
10372
|
+
var import_jsx_runtime261 = require("@emotion/react/jsx-runtime");
|
|
9771
10373
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
9772
10374
|
const displayImages = images.slice(0, maxImages);
|
|
9773
10375
|
if (displayImages.length === 0) {
|
|
9774
10376
|
return null;
|
|
9775
10377
|
}
|
|
9776
|
-
return /* @__PURE__ */ (0,
|
|
10378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Box_default, { display: "flex", gap: "var(--spacing-2)", flexWrap: "wrap", children: displayImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
|
|
9777
10379
|
"img",
|
|
9778
10380
|
{
|
|
9779
10381
|
src: image,
|
|
9780
10382
|
alt: `Review ${index + 1}`,
|
|
9781
|
-
css:
|
|
10383
|
+
css: imageStyles4
|
|
9782
10384
|
},
|
|
9783
10385
|
index
|
|
9784
10386
|
)) });
|
|
@@ -9786,7 +10388,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
9786
10388
|
var ReviewImages_default = ReviewImages;
|
|
9787
10389
|
|
|
9788
10390
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
9789
|
-
var
|
|
10391
|
+
var import_jsx_runtime262 = require("@emotion/react/jsx-runtime");
|
|
9790
10392
|
var ReviewReply = ({
|
|
9791
10393
|
avatarSrc,
|
|
9792
10394
|
name,
|
|
@@ -9795,7 +10397,7 @@ var ReviewReply = ({
|
|
|
9795
10397
|
label,
|
|
9796
10398
|
rating
|
|
9797
10399
|
}) => {
|
|
9798
|
-
return /* @__PURE__ */ (0,
|
|
10400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
|
|
9799
10401
|
Box_default,
|
|
9800
10402
|
{
|
|
9801
10403
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -9805,7 +10407,7 @@ var ReviewReply = ({
|
|
|
9805
10407
|
flexDirection: "column",
|
|
9806
10408
|
gap: "var(--spacing-3)",
|
|
9807
10409
|
children: [
|
|
9808
|
-
/* @__PURE__ */ (0,
|
|
10410
|
+
/* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
|
|
9809
10411
|
Box_default,
|
|
9810
10412
|
{
|
|
9811
10413
|
display: "flex",
|
|
@@ -9813,7 +10415,7 @@ var ReviewReply = ({
|
|
|
9813
10415
|
justifyContent: "space-between",
|
|
9814
10416
|
gap: "var(--spacing-2)",
|
|
9815
10417
|
children: [
|
|
9816
|
-
/* @__PURE__ */ (0,
|
|
10418
|
+
/* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
|
|
9817
10419
|
UserCard_default,
|
|
9818
10420
|
{
|
|
9819
10421
|
avatarSrc,
|
|
@@ -9822,11 +10424,11 @@ var ReviewReply = ({
|
|
|
9822
10424
|
rating
|
|
9823
10425
|
}
|
|
9824
10426
|
),
|
|
9825
|
-
/* @__PURE__ */ (0,
|
|
10427
|
+
/* @__PURE__ */ (0, import_jsx_runtime262.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
9826
10428
|
]
|
|
9827
10429
|
}
|
|
9828
10430
|
),
|
|
9829
|
-
/* @__PURE__ */ (0,
|
|
10431
|
+
/* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Text_default, { children: content })
|
|
9830
10432
|
]
|
|
9831
10433
|
}
|
|
9832
10434
|
);
|
|
@@ -9834,7 +10436,7 @@ var ReviewReply = ({
|
|
|
9834
10436
|
var ReviewReply_default = ReviewReply;
|
|
9835
10437
|
|
|
9836
10438
|
// src/ReviewCard/ReviewCard.tsx
|
|
9837
|
-
var
|
|
10439
|
+
var import_jsx_runtime263 = require("@emotion/react/jsx-runtime");
|
|
9838
10440
|
var ReviewCard = ({
|
|
9839
10441
|
avatarSrc,
|
|
9840
10442
|
name,
|
|
@@ -9846,7 +10448,7 @@ var ReviewCard = ({
|
|
|
9846
10448
|
replies = [],
|
|
9847
10449
|
className
|
|
9848
10450
|
}) => {
|
|
9849
|
-
return /* @__PURE__ */ (0,
|
|
10451
|
+
return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
|
|
9850
10452
|
Box_default,
|
|
9851
10453
|
{
|
|
9852
10454
|
backgroundColor: "white",
|
|
@@ -9857,7 +10459,7 @@ var ReviewCard = ({
|
|
|
9857
10459
|
gap: "var(--spacing-4)",
|
|
9858
10460
|
className,
|
|
9859
10461
|
children: [
|
|
9860
|
-
/* @__PURE__ */ (0,
|
|
10462
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
|
|
9861
10463
|
UserCard_default,
|
|
9862
10464
|
{
|
|
9863
10465
|
avatarSrc,
|
|
@@ -9866,10 +10468,10 @@ var ReviewCard = ({
|
|
|
9866
10468
|
rating
|
|
9867
10469
|
}
|
|
9868
10470
|
),
|
|
9869
|
-
availabilityBadge && /* @__PURE__ */ (0,
|
|
9870
|
-
/* @__PURE__ */ (0,
|
|
9871
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
9872
|
-
replies.length > 0 && /* @__PURE__ */ (0,
|
|
10471
|
+
availabilityBadge && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(AvailabilityBadge_default, { variant: availabilityBadge.variant, children: availabilityBadge.text }) }),
|
|
10472
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Text_default, { size: "md", children: content }),
|
|
10473
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(ReviewImages_default, { images }),
|
|
10474
|
+
replies.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: replies.map((reply, index) => /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
|
|
9873
10475
|
ReviewReply_default,
|
|
9874
10476
|
{
|
|
9875
10477
|
avatarSrc: reply.avatarSrc,
|
|
@@ -9888,12 +10490,12 @@ var ReviewCard = ({
|
|
|
9888
10490
|
var ReviewCard_default = ReviewCard;
|
|
9889
10491
|
|
|
9890
10492
|
// src/Reviews/Reviews.tsx
|
|
9891
|
-
var
|
|
10493
|
+
var import_react70 = require("@emotion/react");
|
|
9892
10494
|
|
|
9893
10495
|
// src/Reviews/components/ReviewItem.tsx
|
|
9894
|
-
var
|
|
10496
|
+
var import_jsx_runtime264 = require("@emotion/react/jsx-runtime");
|
|
9895
10497
|
var ReviewItem = ({ label, rating }) => {
|
|
9896
|
-
return /* @__PURE__ */ (0,
|
|
10498
|
+
return /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
|
|
9897
10499
|
Box_default,
|
|
9898
10500
|
{
|
|
9899
10501
|
display: "flex",
|
|
@@ -9901,10 +10503,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
9901
10503
|
alignItems: "center",
|
|
9902
10504
|
width: "100%",
|
|
9903
10505
|
children: [
|
|
9904
|
-
/* @__PURE__ */ (0,
|
|
9905
|
-
/* @__PURE__ */ (0,
|
|
9906
|
-
/* @__PURE__ */ (0,
|
|
9907
|
-
/* @__PURE__ */ (0,
|
|
10506
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Text_default, { fontWeight: "semibold", children: label }),
|
|
10507
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
10508
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Icon_default, { variant: "StarSolid", size: "large", fill: "var(--surface-action-2)" }),
|
|
10509
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Text_default, { fontWeight: "semibold", children: rating.toFixed(1) })
|
|
9908
10510
|
] })
|
|
9909
10511
|
]
|
|
9910
10512
|
}
|
|
@@ -9913,14 +10515,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
9913
10515
|
var ReviewItem_default = ReviewItem;
|
|
9914
10516
|
|
|
9915
10517
|
// src/Reviews/Reviews.tsx
|
|
9916
|
-
var
|
|
10518
|
+
var import_jsx_runtime265 = require("@emotion/react/jsx-runtime");
|
|
9917
10519
|
var Reviews = ({
|
|
9918
10520
|
averageRating,
|
|
9919
10521
|
totalReviews,
|
|
9920
10522
|
items,
|
|
9921
10523
|
className
|
|
9922
10524
|
}) => {
|
|
9923
|
-
return /* @__PURE__ */ (0,
|
|
10525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
|
|
9924
10526
|
Box_default,
|
|
9925
10527
|
{
|
|
9926
10528
|
width: "100%",
|
|
@@ -9933,7 +10535,7 @@ var Reviews = ({
|
|
|
9933
10535
|
p: "var(--spacing-4)",
|
|
9934
10536
|
className,
|
|
9935
10537
|
children: [
|
|
9936
|
-
/* @__PURE__ */ (0,
|
|
10538
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
|
|
9937
10539
|
Box_default,
|
|
9938
10540
|
{
|
|
9939
10541
|
display: "flex",
|
|
@@ -9941,12 +10543,12 @@ var Reviews = ({
|
|
|
9941
10543
|
alignItems: "center",
|
|
9942
10544
|
gap: "var(--spacing-2)",
|
|
9943
10545
|
children: [
|
|
9944
|
-
/* @__PURE__ */ (0,
|
|
9945
|
-
/* @__PURE__ */ (0,
|
|
10546
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
10547
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
|
|
9946
10548
|
StarRating_default,
|
|
9947
10549
|
{
|
|
9948
10550
|
rating: averageRating,
|
|
9949
|
-
css:
|
|
10551
|
+
css: import_react70.css`
|
|
9950
10552
|
> svg {
|
|
9951
10553
|
height: 40px;
|
|
9952
10554
|
width: 40px;
|
|
@@ -9954,7 +10556,7 @@ var Reviews = ({
|
|
|
9954
10556
|
`
|
|
9955
10557
|
}
|
|
9956
10558
|
),
|
|
9957
|
-
/* @__PURE__ */ (0,
|
|
10559
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
9958
10560
|
"Overall Rating \u2022 ",
|
|
9959
10561
|
totalReviews,
|
|
9960
10562
|
" Review",
|
|
@@ -9963,14 +10565,14 @@ var Reviews = ({
|
|
|
9963
10565
|
]
|
|
9964
10566
|
}
|
|
9965
10567
|
),
|
|
9966
|
-
/* @__PURE__ */ (0,
|
|
10568
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
|
|
9967
10569
|
Box_default,
|
|
9968
10570
|
{
|
|
9969
10571
|
display: "flex",
|
|
9970
10572
|
flexDirection: "column",
|
|
9971
10573
|
gap: "var(--spacing-2)",
|
|
9972
10574
|
width: "100%",
|
|
9973
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
10575
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(ReviewItem_default, { label: item.label, rating: item.rating }, index))
|
|
9974
10576
|
}
|
|
9975
10577
|
)
|
|
9976
10578
|
]
|
|
@@ -9980,7 +10582,7 @@ var Reviews = ({
|
|
|
9980
10582
|
var Reviews_default = Reviews;
|
|
9981
10583
|
|
|
9982
10584
|
// src/Reviews/ReviewsShowcase.tsx
|
|
9983
|
-
var
|
|
10585
|
+
var import_jsx_runtime266 = require("@emotion/react/jsx-runtime");
|
|
9984
10586
|
var ReviewsShowcase = () => {
|
|
9985
10587
|
const sampleData = {
|
|
9986
10588
|
averageRating: 4,
|
|
@@ -10002,7 +10604,7 @@ var ReviewsShowcase = () => {
|
|
|
10002
10604
|
{ label: "Game Abundance", rating: 5 }
|
|
10003
10605
|
]
|
|
10004
10606
|
};
|
|
10005
|
-
return /* @__PURE__ */ (0,
|
|
10607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
|
|
10006
10608
|
Box_default,
|
|
10007
10609
|
{
|
|
10008
10610
|
display: "flex",
|
|
@@ -10010,24 +10612,24 @@ var ReviewsShowcase = () => {
|
|
|
10010
10612
|
gap: "var(--spacing-8)",
|
|
10011
10613
|
p: "var(--spacing-6)",
|
|
10012
10614
|
children: [
|
|
10013
|
-
/* @__PURE__ */ (0,
|
|
10014
|
-
/* @__PURE__ */ (0,
|
|
10015
|
-
/* @__PURE__ */ (0,
|
|
10016
|
-
/* @__PURE__ */ (0,
|
|
10615
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Heading_default, { size: "lg", children: "Reviews Component Showcase" }),
|
|
10616
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
10617
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Heading_default, { size: "md", children: "Default Reviews" }),
|
|
10618
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Reviews_default, { ...sampleData }) })
|
|
10017
10619
|
] }),
|
|
10018
|
-
/* @__PURE__ */ (0,
|
|
10019
|
-
/* @__PURE__ */ (0,
|
|
10020
|
-
/* @__PURE__ */ (0,
|
|
10620
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
10621
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Heading_default, { size: "md", children: "High Rating Reviews" }),
|
|
10622
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Reviews_default, { ...highRatingData }) })
|
|
10021
10623
|
] }),
|
|
10022
|
-
/* @__PURE__ */ (0,
|
|
10023
|
-
/* @__PURE__ */ (0,
|
|
10024
|
-
/* @__PURE__ */ (0,
|
|
10624
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
10625
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Heading_default, { size: "md", children: "Mobile Layout (320px width)" }),
|
|
10626
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
|
|
10025
10627
|
Box_default,
|
|
10026
10628
|
{
|
|
10027
10629
|
maxWidth: "320px",
|
|
10028
10630
|
border: "1px solid var(--color-neutral-200)",
|
|
10029
10631
|
p: "var(--spacing-4)",
|
|
10030
|
-
children: /* @__PURE__ */ (0,
|
|
10632
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Reviews_default, { ...sampleData })
|
|
10031
10633
|
}
|
|
10032
10634
|
)
|
|
10033
10635
|
] })
|
|
@@ -10063,6 +10665,8 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
10063
10665
|
Icon,
|
|
10064
10666
|
IconLabel,
|
|
10065
10667
|
IconSizeMap,
|
|
10668
|
+
ImageGalleryModal,
|
|
10669
|
+
ImageGalleryModalComponent,
|
|
10066
10670
|
InfoBox,
|
|
10067
10671
|
Input,
|
|
10068
10672
|
LandownerProfile,
|
|
@@ -10071,6 +10675,8 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
10071
10675
|
Logo,
|
|
10072
10676
|
MarkdownContent,
|
|
10073
10677
|
MessageBubble,
|
|
10678
|
+
Modal,
|
|
10679
|
+
ModalComponent,
|
|
10074
10680
|
Navigation,
|
|
10075
10681
|
PackageCard,
|
|
10076
10682
|
PackageHeader,
|