@landtrustinc/design-system 1.2.44 → 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 +154 -2
- package/dist/index.js +891 -290
- 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,16 +8422,16 @@ 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
|
|
8434
|
+
var import_jsx_runtime244 = require("@emotion/react/jsx-runtime");
|
|
7838
8435
|
var ProgressBar = ({
|
|
7839
8436
|
progress,
|
|
7840
8437
|
className,
|
|
@@ -7842,7 +8439,7 @@ var ProgressBar = ({
|
|
|
7842
8439
|
height = "10px"
|
|
7843
8440
|
}) => {
|
|
7844
8441
|
const clampedProgress = Math.min(100, Math.max(0, progress));
|
|
7845
|
-
return /* @__PURE__ */ (0,
|
|
8442
|
+
return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
7846
8443
|
Box_default,
|
|
7847
8444
|
{
|
|
7848
8445
|
width: "100%",
|
|
@@ -7852,7 +8449,7 @@ var ProgressBar = ({
|
|
|
7852
8449
|
overflow: "hidden",
|
|
7853
8450
|
position: "relative",
|
|
7854
8451
|
className,
|
|
7855
|
-
children: /* @__PURE__ */ (0,
|
|
8452
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
7856
8453
|
Box_default,
|
|
7857
8454
|
{
|
|
7858
8455
|
height: "100%",
|
|
@@ -7873,17 +8470,17 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
7873
8470
|
var ProgressBar_default = ProgressBar;
|
|
7874
8471
|
|
|
7875
8472
|
// src/Timer/Timer.tsx
|
|
7876
|
-
var
|
|
8473
|
+
var import_react55 = require("react");
|
|
7877
8474
|
|
|
7878
8475
|
// src/Timer/Timer.styles.ts
|
|
7879
|
-
var
|
|
7880
|
-
var rootStyles2 =
|
|
8476
|
+
var import_react54 = require("@emotion/react");
|
|
8477
|
+
var rootStyles2 = import_react54.css`
|
|
7881
8478
|
display: inline-flex;
|
|
7882
8479
|
font-variant-numeric: tabular-nums;
|
|
7883
8480
|
`;
|
|
7884
8481
|
|
|
7885
8482
|
// src/Timer/Timer.tsx
|
|
7886
|
-
var
|
|
8483
|
+
var import_jsx_runtime245 = require("@emotion/react/jsx-runtime");
|
|
7887
8484
|
var calculateTimeLeft = (expirationTimestamp) => {
|
|
7888
8485
|
const now = Math.floor(Date.now() / 1e3);
|
|
7889
8486
|
const diff = expirationTimestamp - now;
|
|
@@ -7911,10 +8508,10 @@ var Timer = ({
|
|
|
7911
8508
|
fontWeight = "bold",
|
|
7912
8509
|
showSeconds = false
|
|
7913
8510
|
}) => {
|
|
7914
|
-
const [timeLeft, setTimeLeft] = (0,
|
|
8511
|
+
const [timeLeft, setTimeLeft] = (0, import_react55.useState)(
|
|
7915
8512
|
() => calculateTimeLeft(expirationTimestamp)
|
|
7916
8513
|
);
|
|
7917
|
-
const updateTime = (0,
|
|
8514
|
+
const updateTime = (0, import_react55.useCallback)(() => {
|
|
7918
8515
|
const newTimeLeft = calculateTimeLeft(expirationTimestamp);
|
|
7919
8516
|
setTimeLeft(newTimeLeft);
|
|
7920
8517
|
if (newTimeLeft) {
|
|
@@ -7924,7 +8521,7 @@ var Timer = ({
|
|
|
7924
8521
|
}
|
|
7925
8522
|
return newTimeLeft;
|
|
7926
8523
|
}, [expirationTimestamp, onTimeUpdate, onExpire]);
|
|
7927
|
-
(0,
|
|
8524
|
+
(0, import_react55.useEffect)(() => {
|
|
7928
8525
|
const initialTime = updateTime();
|
|
7929
8526
|
if (!initialTime)
|
|
7930
8527
|
return;
|
|
@@ -7939,8 +8536,8 @@ var Timer = ({
|
|
|
7939
8536
|
if (!timeLeft) {
|
|
7940
8537
|
return null;
|
|
7941
8538
|
}
|
|
7942
|
-
return /* @__PURE__ */ (0,
|
|
7943
|
-
/* @__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: [
|
|
7944
8541
|
timeLeft.days,
|
|
7945
8542
|
"d : ",
|
|
7946
8543
|
timeLeft.hours,
|
|
@@ -7948,7 +8545,7 @@ var Timer = ({
|
|
|
7948
8545
|
timeLeft.minutes,
|
|
7949
8546
|
"m"
|
|
7950
8547
|
] }),
|
|
7951
|
-
showSeconds && /* @__PURE__ */ (0,
|
|
8548
|
+
showSeconds && /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(Text_default, { as: "span", fontWeight, size: fontSize, children: [
|
|
7952
8549
|
"\xA0: ",
|
|
7953
8550
|
timeLeft.seconds,
|
|
7954
8551
|
"s"
|
|
@@ -7959,7 +8556,7 @@ Timer.displayName = "Timer";
|
|
|
7959
8556
|
var Timer_default = Timer;
|
|
7960
8557
|
|
|
7961
8558
|
// src/StarRating/StarRating.tsx
|
|
7962
|
-
var
|
|
8559
|
+
var import_jsx_runtime246 = require("@emotion/react/jsx-runtime");
|
|
7963
8560
|
var starSize = {
|
|
7964
8561
|
sm: {
|
|
7965
8562
|
size: "medium",
|
|
@@ -8007,10 +8604,10 @@ var StarRating = ({
|
|
|
8007
8604
|
fill = "var(--color-neutral-100)";
|
|
8008
8605
|
}
|
|
8009
8606
|
stars.push(
|
|
8010
|
-
/* @__PURE__ */ (0,
|
|
8607
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Icon_default, { variant, size: starSize[size].size, fill }, i)
|
|
8011
8608
|
);
|
|
8012
8609
|
}
|
|
8013
|
-
return /* @__PURE__ */ (0,
|
|
8610
|
+
return /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
8014
8611
|
Box_default,
|
|
8015
8612
|
{
|
|
8016
8613
|
className,
|
|
@@ -8024,7 +8621,7 @@ var StarRating = ({
|
|
|
8024
8621
|
var StarRating_default = StarRating;
|
|
8025
8622
|
|
|
8026
8623
|
// src/UserCard/UserCard.tsx
|
|
8027
|
-
var
|
|
8624
|
+
var import_jsx_runtime247 = require("@emotion/react/jsx-runtime");
|
|
8028
8625
|
var UserCard = ({
|
|
8029
8626
|
avatarSrc,
|
|
8030
8627
|
title,
|
|
@@ -8034,7 +8631,7 @@ var UserCard = ({
|
|
|
8034
8631
|
isVerified = false,
|
|
8035
8632
|
className
|
|
8036
8633
|
}) => {
|
|
8037
|
-
return /* @__PURE__ */ (0,
|
|
8634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
|
|
8038
8635
|
Box_default,
|
|
8039
8636
|
{
|
|
8040
8637
|
display: "flex",
|
|
@@ -8043,8 +8640,8 @@ var UserCard = ({
|
|
|
8043
8640
|
gap: "var(--spacing-4)",
|
|
8044
8641
|
className,
|
|
8045
8642
|
children: [
|
|
8046
|
-
/* @__PURE__ */ (0,
|
|
8047
|
-
/* @__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)(
|
|
8048
8645
|
Avatar_default,
|
|
8049
8646
|
{
|
|
8050
8647
|
type: avatarSrc ? "image" : "text",
|
|
@@ -8053,13 +8650,13 @@ var UserCard = ({
|
|
|
8053
8650
|
alt: `${title}'s avatar`
|
|
8054
8651
|
}
|
|
8055
8652
|
),
|
|
8056
|
-
/* @__PURE__ */ (0,
|
|
8057
|
-
/* @__PURE__ */ (0,
|
|
8058
|
-
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0,
|
|
8059
|
-
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 })
|
|
8060
8657
|
] })
|
|
8061
8658
|
] }),
|
|
8062
|
-
isVerified && /* @__PURE__ */ (0,
|
|
8659
|
+
isVerified && /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
|
|
8063
8660
|
Box_default,
|
|
8064
8661
|
{
|
|
8065
8662
|
display: "flex",
|
|
@@ -8068,8 +8665,8 @@ var UserCard = ({
|
|
|
8068
8665
|
gap: "var(--spacing-1)",
|
|
8069
8666
|
flexShrink: 0,
|
|
8070
8667
|
children: [
|
|
8071
|
-
/* @__PURE__ */ (0,
|
|
8072
|
-
/* @__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" })
|
|
8073
8670
|
]
|
|
8074
8671
|
}
|
|
8075
8672
|
)
|
|
@@ -8080,19 +8677,19 @@ var UserCard = ({
|
|
|
8080
8677
|
var UserCard_default = UserCard;
|
|
8081
8678
|
|
|
8082
8679
|
// src/LandownerProfile/components/ProfileSubtitle.tsx
|
|
8083
|
-
var
|
|
8680
|
+
var import_jsx_runtime248 = require("@emotion/react/jsx-runtime");
|
|
8084
8681
|
var ProfileSubtitle = ({
|
|
8085
8682
|
yearsHosting = 1,
|
|
8086
8683
|
featureReviewItem
|
|
8087
8684
|
}) => {
|
|
8088
|
-
return /* @__PURE__ */ (0,
|
|
8089
|
-
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: [
|
|
8090
8687
|
yearsHosting,
|
|
8091
8688
|
" ",
|
|
8092
8689
|
yearsHosting === 1 ? "Year" : "Years",
|
|
8093
8690
|
" Hosting"
|
|
8094
8691
|
] }),
|
|
8095
|
-
featureReviewItem && /* @__PURE__ */ (0,
|
|
8692
|
+
featureReviewItem && /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(FeatureListItem_default, { ...featureReviewItem })
|
|
8096
8693
|
] });
|
|
8097
8694
|
};
|
|
8098
8695
|
var ProfileSubtitle_default = ProfileSubtitle;
|
|
@@ -8107,7 +8704,7 @@ var hasTextContent = (html) => {
|
|
|
8107
8704
|
};
|
|
8108
8705
|
|
|
8109
8706
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
8110
|
-
var
|
|
8707
|
+
var import_jsx_runtime249 = require("@emotion/react/jsx-runtime");
|
|
8111
8708
|
var LandownerProfile = ({
|
|
8112
8709
|
heading,
|
|
8113
8710
|
avatarSrc,
|
|
@@ -8135,7 +8732,7 @@ var LandownerProfile = ({
|
|
|
8135
8732
|
const progressPercentage = (totalDuration - timeLeft.totalSeconds) / totalDuration * 100;
|
|
8136
8733
|
return Math.min(100, Math.max(0, progressPercentage));
|
|
8137
8734
|
};
|
|
8138
|
-
const [progress, setProgress] = (0,
|
|
8735
|
+
const [progress, setProgress] = (0, import_react56.useState)(0);
|
|
8139
8736
|
const handleTimeUpdate = (timeLeft) => {
|
|
8140
8737
|
setProgress(calculateProgress(timeLeft));
|
|
8141
8738
|
onEarlyAccessTimeUpdate == null ? void 0 : onEarlyAccessTimeUpdate(timeLeft);
|
|
@@ -8148,7 +8745,7 @@ var LandownerProfile = ({
|
|
|
8148
8745
|
iconVariant: "Bolt",
|
|
8149
8746
|
label: `Response Time: ${responseTime}`
|
|
8150
8747
|
} : void 0;
|
|
8151
|
-
return /* @__PURE__ */ (0,
|
|
8748
|
+
return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
|
|
8152
8749
|
Box_default,
|
|
8153
8750
|
{
|
|
8154
8751
|
display: "flex",
|
|
@@ -8157,8 +8754,8 @@ var LandownerProfile = ({
|
|
|
8157
8754
|
color: "var(--text-primary)",
|
|
8158
8755
|
className,
|
|
8159
8756
|
children: [
|
|
8160
|
-
heading && /* @__PURE__ */ (0,
|
|
8161
|
-
/* @__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)(
|
|
8162
8759
|
Box_default,
|
|
8163
8760
|
{
|
|
8164
8761
|
display: "flex",
|
|
@@ -8168,12 +8765,12 @@ var LandownerProfile = ({
|
|
|
8168
8765
|
p: "var(--spacing-4)",
|
|
8169
8766
|
borderRadius: "var(--radius-lg)",
|
|
8170
8767
|
children: [
|
|
8171
|
-
/* @__PURE__ */ (0,
|
|
8768
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
8172
8769
|
UserCard_default,
|
|
8173
8770
|
{
|
|
8174
8771
|
avatarSrc,
|
|
8175
8772
|
title: name,
|
|
8176
|
-
subtitle: /* @__PURE__ */ (0,
|
|
8773
|
+
subtitle: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
8177
8774
|
ProfileSubtitle_default,
|
|
8178
8775
|
{
|
|
8179
8776
|
yearsHosting,
|
|
@@ -8184,9 +8781,9 @@ var LandownerProfile = ({
|
|
|
8184
8781
|
isVerified
|
|
8185
8782
|
}
|
|
8186
8783
|
),
|
|
8187
|
-
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0,
|
|
8188
|
-
/* @__PURE__ */ (0,
|
|
8189
|
-
/* @__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)(
|
|
8190
8787
|
Text_default,
|
|
8191
8788
|
{
|
|
8192
8789
|
dangerouslySetInnerHTML: {
|
|
@@ -8195,14 +8792,14 @@ var LandownerProfile = ({
|
|
|
8195
8792
|
}
|
|
8196
8793
|
)
|
|
8197
8794
|
] }),
|
|
8198
|
-
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0,
|
|
8199
|
-
/* @__PURE__ */ (0,
|
|
8200
|
-
/* @__PURE__ */ (0,
|
|
8201
|
-
!!responseRateFeature && /* @__PURE__ */ (0,
|
|
8202
|
-
!!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 })
|
|
8203
8800
|
] })
|
|
8204
8801
|
] }),
|
|
8205
|
-
/* @__PURE__ */ (0,
|
|
8802
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Box_default, { alignSelf: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
8206
8803
|
Button_default,
|
|
8207
8804
|
{
|
|
8208
8805
|
variant: "secondary",
|
|
@@ -8211,9 +8808,9 @@ var LandownerProfile = ({
|
|
|
8211
8808
|
children: messageButtonText
|
|
8212
8809
|
}
|
|
8213
8810
|
) }),
|
|
8214
|
-
earlyAccessTimer && /* @__PURE__ */ (0,
|
|
8215
|
-
/* @__PURE__ */ (0,
|
|
8216
|
-
/* @__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)(
|
|
8217
8814
|
Box_default,
|
|
8218
8815
|
{
|
|
8219
8816
|
display: "flex",
|
|
@@ -8221,9 +8818,9 @@ var LandownerProfile = ({
|
|
|
8221
8818
|
gap: "var(--spacing-1)",
|
|
8222
8819
|
textAlign: "center",
|
|
8223
8820
|
children: [
|
|
8224
|
-
/* @__PURE__ */ (0,
|
|
8225
|
-
/* @__PURE__ */ (0,
|
|
8226
|
-
/* @__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)(
|
|
8227
8824
|
Timer_default,
|
|
8228
8825
|
{
|
|
8229
8826
|
expirationTimestamp: earlyAccessTimer.expirationTimestamp,
|
|
@@ -8245,11 +8842,11 @@ var LandownerProfile = ({
|
|
|
8245
8842
|
var LandownerProfile_default = LandownerProfile;
|
|
8246
8843
|
|
|
8247
8844
|
// src/ListingChat/ListingChat.tsx
|
|
8248
|
-
var
|
|
8845
|
+
var import_react58 = require("react");
|
|
8249
8846
|
|
|
8250
8847
|
// src/ListingChat/ListingChat.styles.ts
|
|
8251
|
-
var
|
|
8252
|
-
var
|
|
8848
|
+
var import_react57 = require("@emotion/react");
|
|
8849
|
+
var containerStyles3 = import_react57.css`
|
|
8253
8850
|
display: flex;
|
|
8254
8851
|
flex-direction: column;
|
|
8255
8852
|
gap: var(--spacing-4);
|
|
@@ -8257,13 +8854,13 @@ var containerStyles2 = import_react53.css`
|
|
|
8257
8854
|
border-radius: var(--radius-lg);
|
|
8258
8855
|
background: var(--surface-success);
|
|
8259
8856
|
`;
|
|
8260
|
-
var headerStyles =
|
|
8857
|
+
var headerStyles = import_react57.css`
|
|
8261
8858
|
display: flex;
|
|
8262
8859
|
align-items: flex-start;
|
|
8263
8860
|
justify-content: space-between;
|
|
8264
8861
|
gap: var(--spacing-2);
|
|
8265
8862
|
`;
|
|
8266
|
-
var chipsContainerStyles =
|
|
8863
|
+
var chipsContainerStyles = import_react57.css`
|
|
8267
8864
|
display: flex;
|
|
8268
8865
|
flex-wrap: wrap;
|
|
8269
8866
|
gap: var(--spacing-4);
|
|
@@ -8276,15 +8873,15 @@ var chipsContainerStyles = import_react53.css`
|
|
|
8276
8873
|
cursor: pointer;
|
|
8277
8874
|
}
|
|
8278
8875
|
`;
|
|
8279
|
-
var textAreaStyles =
|
|
8876
|
+
var textAreaStyles = import_react57.css`
|
|
8280
8877
|
min-height: 62px;
|
|
8281
8878
|
`;
|
|
8282
|
-
var inputWrapperStyles2 =
|
|
8879
|
+
var inputWrapperStyles2 = import_react57.css`
|
|
8283
8880
|
position: relative;
|
|
8284
8881
|
`;
|
|
8285
8882
|
|
|
8286
8883
|
// src/ListingChat/ListingChat.tsx
|
|
8287
|
-
var
|
|
8884
|
+
var import_jsx_runtime250 = require("@emotion/react/jsx-runtime");
|
|
8288
8885
|
var ListingChat = ({
|
|
8289
8886
|
onSubmit,
|
|
8290
8887
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -8294,15 +8891,15 @@ var ListingChat = ({
|
|
|
8294
8891
|
disabled = false,
|
|
8295
8892
|
...rest
|
|
8296
8893
|
}) => {
|
|
8297
|
-
const [value, setValue] = (0,
|
|
8298
|
-
const handleSubmit = (0,
|
|
8894
|
+
const [value, setValue] = (0, import_react58.useState)("");
|
|
8895
|
+
const handleSubmit = (0, import_react58.useCallback)(() => {
|
|
8299
8896
|
const trimmed = value.trim();
|
|
8300
8897
|
if (!trimmed)
|
|
8301
8898
|
return;
|
|
8302
8899
|
onSubmit(trimmed);
|
|
8303
8900
|
setValue("");
|
|
8304
8901
|
}, [onSubmit, value]);
|
|
8305
|
-
const handleTagClick = (0,
|
|
8902
|
+
const handleTagClick = (0, import_react58.useCallback)(
|
|
8306
8903
|
(tag) => () => {
|
|
8307
8904
|
const trimmed = tag.trim();
|
|
8308
8905
|
if (!trimmed)
|
|
@@ -8311,18 +8908,18 @@ var ListingChat = ({
|
|
|
8311
8908
|
},
|
|
8312
8909
|
[onSubmit]
|
|
8313
8910
|
);
|
|
8314
|
-
return /* @__PURE__ */ (0,
|
|
8315
|
-
/* @__PURE__ */ (0,
|
|
8316
|
-
/* @__PURE__ */ (0,
|
|
8317
|
-
/* @__PURE__ */ (0,
|
|
8318
|
-
/* @__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." })
|
|
8319
8916
|
] }),
|
|
8320
|
-
/* @__PURE__ */ (0,
|
|
8321
|
-
/* @__PURE__ */ (0,
|
|
8322
|
-
/* @__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" })
|
|
8323
8920
|
] })
|
|
8324
8921
|
] }),
|
|
8325
|
-
/* @__PURE__ */ (0,
|
|
8922
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8326
8923
|
TextArea,
|
|
8327
8924
|
{
|
|
8328
8925
|
rows: 1,
|
|
@@ -8337,14 +8934,14 @@ var ListingChat = ({
|
|
|
8337
8934
|
css: textAreaStyles
|
|
8338
8935
|
}
|
|
8339
8936
|
) }),
|
|
8340
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
8341
|
-
/* @__PURE__ */ (0,
|
|
8342
|
-
/* @__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)(
|
|
8343
8940
|
"button",
|
|
8344
8941
|
{
|
|
8345
8942
|
onClick: handleTagClick(tag),
|
|
8346
8943
|
disabled,
|
|
8347
|
-
children: /* @__PURE__ */ (0,
|
|
8944
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(TagChip_default, { children: tag })
|
|
8348
8945
|
},
|
|
8349
8946
|
tag
|
|
8350
8947
|
)) })
|
|
@@ -8354,11 +8951,11 @@ var ListingChat = ({
|
|
|
8354
8951
|
var ListingChat_default = ListingChat;
|
|
8355
8952
|
|
|
8356
8953
|
// src/Logo/Logo.tsx
|
|
8357
|
-
var
|
|
8954
|
+
var import_react59 = require("@emotion/react");
|
|
8358
8955
|
|
|
8359
8956
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
8360
|
-
var
|
|
8361
|
-
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)(
|
|
8362
8959
|
"svg",
|
|
8363
8960
|
{
|
|
8364
8961
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8366,14 +8963,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime249.
|
|
|
8366
8963
|
fill: "none",
|
|
8367
8964
|
...props,
|
|
8368
8965
|
children: [
|
|
8369
|
-
/* @__PURE__ */ (0,
|
|
8966
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8370
8967
|
"path",
|
|
8371
8968
|
{
|
|
8372
8969
|
fill: "#000",
|
|
8373
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"
|
|
8374
8971
|
}
|
|
8375
8972
|
) }),
|
|
8376
|
-
/* @__PURE__ */ (0,
|
|
8973
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8377
8974
|
"path",
|
|
8378
8975
|
{
|
|
8379
8976
|
fill: "#FAD44E",
|
|
@@ -8382,14 +8979,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime249.
|
|
|
8382
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"
|
|
8383
8980
|
}
|
|
8384
8981
|
),
|
|
8385
|
-
/* @__PURE__ */ (0,
|
|
8982
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8386
8983
|
"path",
|
|
8387
8984
|
{
|
|
8388
8985
|
fill: "#fff",
|
|
8389
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"
|
|
8390
8987
|
}
|
|
8391
8988
|
),
|
|
8392
|
-
/* @__PURE__ */ (0,
|
|
8989
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
|
|
8393
8990
|
"filter",
|
|
8394
8991
|
{
|
|
8395
8992
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -8400,8 +8997,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime249.
|
|
|
8400
8997
|
colorInterpolationFilters: "sRGB",
|
|
8401
8998
|
filterUnits: "userSpaceOnUse",
|
|
8402
8999
|
children: [
|
|
8403
|
-
/* @__PURE__ */ (0,
|
|
8404
|
-
/* @__PURE__ */ (0,
|
|
9000
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
9001
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8405
9002
|
"feColorMatrix",
|
|
8406
9003
|
{
|
|
8407
9004
|
in: "SourceAlpha",
|
|
@@ -8409,18 +9006,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime249.
|
|
|
8409
9006
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
8410
9007
|
}
|
|
8411
9008
|
),
|
|
8412
|
-
/* @__PURE__ */ (0,
|
|
8413
|
-
/* @__PURE__ */ (0,
|
|
8414
|
-
/* @__PURE__ */ (0,
|
|
8415
|
-
/* @__PURE__ */ (0,
|
|
8416
|
-
/* @__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)(
|
|
8417
9014
|
"feBlend",
|
|
8418
9015
|
{
|
|
8419
9016
|
in2: "BackgroundImageFix",
|
|
8420
9017
|
result: "effect1_dropShadow_257_2540"
|
|
8421
9018
|
}
|
|
8422
9019
|
),
|
|
8423
|
-
/* @__PURE__ */ (0,
|
|
9020
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8424
9021
|
"feBlend",
|
|
8425
9022
|
{
|
|
8426
9023
|
in: "SourceGraphic",
|
|
@@ -8437,8 +9034,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime249.
|
|
|
8437
9034
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
8438
9035
|
|
|
8439
9036
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
8440
|
-
var
|
|
8441
|
-
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)(
|
|
8442
9039
|
"svg",
|
|
8443
9040
|
{
|
|
8444
9041
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8446,14 +9043,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime250
|
|
|
8446
9043
|
fill: "none",
|
|
8447
9044
|
...props,
|
|
8448
9045
|
children: [
|
|
8449
|
-
/* @__PURE__ */ (0,
|
|
9046
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8450
9047
|
"path",
|
|
8451
9048
|
{
|
|
8452
9049
|
fill: "#000",
|
|
8453
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"
|
|
8454
9051
|
}
|
|
8455
9052
|
) }),
|
|
8456
|
-
/* @__PURE__ */ (0,
|
|
9053
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8457
9054
|
"path",
|
|
8458
9055
|
{
|
|
8459
9056
|
fill: "#FAD44E",
|
|
@@ -8462,14 +9059,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime250
|
|
|
8462
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"
|
|
8463
9060
|
}
|
|
8464
9061
|
),
|
|
8465
|
-
/* @__PURE__ */ (0,
|
|
9062
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8466
9063
|
"path",
|
|
8467
9064
|
{
|
|
8468
9065
|
fill: "#1A202C",
|
|
8469
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"
|
|
8470
9067
|
}
|
|
8471
9068
|
),
|
|
8472
|
-
/* @__PURE__ */ (0,
|
|
9069
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
8473
9070
|
"filter",
|
|
8474
9071
|
{
|
|
8475
9072
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -8480,8 +9077,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime250
|
|
|
8480
9077
|
colorInterpolationFilters: "sRGB",
|
|
8481
9078
|
filterUnits: "userSpaceOnUse",
|
|
8482
9079
|
children: [
|
|
8483
|
-
/* @__PURE__ */ (0,
|
|
8484
|
-
/* @__PURE__ */ (0,
|
|
9080
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
9081
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8485
9082
|
"feColorMatrix",
|
|
8486
9083
|
{
|
|
8487
9084
|
in: "SourceAlpha",
|
|
@@ -8489,18 +9086,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime250
|
|
|
8489
9086
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
8490
9087
|
}
|
|
8491
9088
|
),
|
|
8492
|
-
/* @__PURE__ */ (0,
|
|
8493
|
-
/* @__PURE__ */ (0,
|
|
8494
|
-
/* @__PURE__ */ (0,
|
|
8495
|
-
/* @__PURE__ */ (0,
|
|
8496
|
-
/* @__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)(
|
|
8497
9094
|
"feBlend",
|
|
8498
9095
|
{
|
|
8499
9096
|
in2: "BackgroundImageFix",
|
|
8500
9097
|
result: "effect1_dropShadow_257_2538"
|
|
8501
9098
|
}
|
|
8502
9099
|
),
|
|
8503
|
-
/* @__PURE__ */ (0,
|
|
9100
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8504
9101
|
"feBlend",
|
|
8505
9102
|
{
|
|
8506
9103
|
in: "SourceGraphic",
|
|
@@ -8517,8 +9114,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime250
|
|
|
8517
9114
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
8518
9115
|
|
|
8519
9116
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
8520
|
-
var
|
|
8521
|
-
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)(
|
|
8522
9119
|
"svg",
|
|
8523
9120
|
{
|
|
8524
9121
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8526,14 +9123,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
8526
9123
|
fill: "none",
|
|
8527
9124
|
...props,
|
|
8528
9125
|
children: [
|
|
8529
|
-
/* @__PURE__ */ (0,
|
|
9126
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8530
9127
|
"path",
|
|
8531
9128
|
{
|
|
8532
9129
|
fill: "#E2430C",
|
|
8533
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"
|
|
8534
9131
|
}
|
|
8535
9132
|
),
|
|
8536
|
-
/* @__PURE__ */ (0,
|
|
9133
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8537
9134
|
"path",
|
|
8538
9135
|
{
|
|
8539
9136
|
fill: "#fff",
|
|
@@ -8546,8 +9143,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
8546
9143
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
8547
9144
|
|
|
8548
9145
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
8549
|
-
var
|
|
8550
|
-
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)(
|
|
8551
9148
|
"svg",
|
|
8552
9149
|
{
|
|
8553
9150
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8555,14 +9152,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
8555
9152
|
fill: "none",
|
|
8556
9153
|
...props,
|
|
8557
9154
|
children: [
|
|
8558
|
-
/* @__PURE__ */ (0,
|
|
9155
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
8559
9156
|
"path",
|
|
8560
9157
|
{
|
|
8561
9158
|
fill: "#E2430C",
|
|
8562
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"
|
|
8563
9160
|
}
|
|
8564
9161
|
),
|
|
8565
|
-
/* @__PURE__ */ (0,
|
|
9162
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
8566
9163
|
"path",
|
|
8567
9164
|
{
|
|
8568
9165
|
fill: "#000",
|
|
@@ -8575,8 +9172,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
8575
9172
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
8576
9173
|
|
|
8577
9174
|
// src/Logo/Logo.tsx
|
|
8578
|
-
var
|
|
8579
|
-
var logoStyles = (size) =>
|
|
9175
|
+
var import_jsx_runtime255 = require("@emotion/react/jsx-runtime");
|
|
9176
|
+
var logoStyles = (size) => import_react59.css`
|
|
8580
9177
|
width: ${space[size]};
|
|
8581
9178
|
height: auto;
|
|
8582
9179
|
display: block;
|
|
@@ -8604,18 +9201,18 @@ var Logo = ({
|
|
|
8604
9201
|
return LandtrustStandardLight_default;
|
|
8605
9202
|
};
|
|
8606
9203
|
const LogoComponent = getLogoComponent();
|
|
8607
|
-
return /* @__PURE__ */ (0,
|
|
9204
|
+
return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
8608
9205
|
};
|
|
8609
9206
|
var Logo_default = Logo;
|
|
8610
9207
|
|
|
8611
9208
|
// src/Navigation/Navigation.styles.ts
|
|
8612
|
-
var
|
|
8613
|
-
var navigationStyles =
|
|
9209
|
+
var import_react60 = require("@emotion/react");
|
|
9210
|
+
var navigationStyles = import_react60.css`
|
|
8614
9211
|
width: 100%;
|
|
8615
9212
|
background-color: white;
|
|
8616
9213
|
border-bottom: 1px solid #e5e5e5;
|
|
8617
9214
|
`;
|
|
8618
|
-
var hamburgerButtonStyles =
|
|
9215
|
+
var hamburgerButtonStyles = import_react60.css`
|
|
8619
9216
|
cursor: pointer;
|
|
8620
9217
|
&:focus {
|
|
8621
9218
|
outline: 2px solid #4f46e5;
|
|
@@ -8626,7 +9223,7 @@ var hamburgerButtonStyles = import_react56.css`
|
|
|
8626
9223
|
display: none;
|
|
8627
9224
|
}
|
|
8628
9225
|
`;
|
|
8629
|
-
var centeredLogoStyles =
|
|
9226
|
+
var centeredLogoStyles = import_react60.css`
|
|
8630
9227
|
transform: translate(-50%, -50%);
|
|
8631
9228
|
max-width: 150px;
|
|
8632
9229
|
|
|
@@ -8634,27 +9231,27 @@ var centeredLogoStyles = import_react56.css`
|
|
|
8634
9231
|
display: none;
|
|
8635
9232
|
}
|
|
8636
9233
|
`;
|
|
8637
|
-
var desktopLogoStyles =
|
|
9234
|
+
var desktopLogoStyles = import_react60.css`
|
|
8638
9235
|
display: none;
|
|
8639
9236
|
|
|
8640
9237
|
@media (min-width: 768px) {
|
|
8641
9238
|
display: block;
|
|
8642
9239
|
}
|
|
8643
9240
|
`;
|
|
8644
|
-
var
|
|
9241
|
+
var containerStyles4 = import_react60.css`
|
|
8645
9242
|
@media (min-width: 768px) {
|
|
8646
9243
|
justify-content: space-between;
|
|
8647
9244
|
position: static;
|
|
8648
9245
|
}
|
|
8649
9246
|
`;
|
|
8650
|
-
var logoStyles2 =
|
|
9247
|
+
var logoStyles2 = import_react60.css`
|
|
8651
9248
|
width: 100%;
|
|
8652
9249
|
|
|
8653
9250
|
@media (min-width: 768px) {
|
|
8654
9251
|
width: initial;
|
|
8655
9252
|
}
|
|
8656
9253
|
`;
|
|
8657
|
-
var desktopNavStyles =
|
|
9254
|
+
var desktopNavStyles = import_react60.css`
|
|
8658
9255
|
display: none;
|
|
8659
9256
|
|
|
8660
9257
|
@media (min-width: 768px) {
|
|
@@ -8663,7 +9260,7 @@ var desktopNavStyles = import_react56.css`
|
|
|
8663
9260
|
gap: 32px;
|
|
8664
9261
|
}
|
|
8665
9262
|
`;
|
|
8666
|
-
var navLinksStyles =
|
|
9263
|
+
var navLinksStyles = import_react60.css`
|
|
8667
9264
|
display: flex;
|
|
8668
9265
|
align-items: center;
|
|
8669
9266
|
gap: 24px;
|
|
@@ -8671,7 +9268,7 @@ var navLinksStyles = import_react56.css`
|
|
|
8671
9268
|
margin: 0;
|
|
8672
9269
|
padding: 0;
|
|
8673
9270
|
`;
|
|
8674
|
-
var navLinkStyles =
|
|
9271
|
+
var navLinkStyles = import_react60.css`
|
|
8675
9272
|
text-decoration: none;
|
|
8676
9273
|
color: #374151;
|
|
8677
9274
|
font-weight: 500;
|
|
@@ -8687,7 +9284,7 @@ var navLinkStyles = import_react56.css`
|
|
|
8687
9284
|
outline-offset: 2px;
|
|
8688
9285
|
}
|
|
8689
9286
|
`;
|
|
8690
|
-
var avatarPlaceholderStyles =
|
|
9287
|
+
var avatarPlaceholderStyles = import_react60.css`
|
|
8691
9288
|
width: 32px;
|
|
8692
9289
|
height: 32px;
|
|
8693
9290
|
border-radius: 50%;
|
|
@@ -8712,7 +9309,7 @@ var avatarPlaceholderStyles = import_react56.css`
|
|
|
8712
9309
|
`;
|
|
8713
9310
|
|
|
8714
9311
|
// src/Navigation/Navigation.tsx
|
|
8715
|
-
var
|
|
9312
|
+
var import_jsx_runtime256 = require("@emotion/react/jsx-runtime");
|
|
8716
9313
|
var Navigation = ({
|
|
8717
9314
|
onMenuToggle,
|
|
8718
9315
|
className,
|
|
@@ -8726,16 +9323,16 @@ var Navigation = ({
|
|
|
8726
9323
|
onAvatarClick,
|
|
8727
9324
|
...rest
|
|
8728
9325
|
}) => {
|
|
8729
|
-
return /* @__PURE__ */ (0,
|
|
9326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
|
|
8730
9327
|
Box_default,
|
|
8731
9328
|
{
|
|
8732
9329
|
display: "flex",
|
|
8733
9330
|
alignItems: "center",
|
|
8734
9331
|
padding: space[4],
|
|
8735
9332
|
position: "relative",
|
|
8736
|
-
css:
|
|
9333
|
+
css: containerStyles4,
|
|
8737
9334
|
children: [
|
|
8738
|
-
/* @__PURE__ */ (0,
|
|
9335
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
8739
9336
|
Box_default,
|
|
8740
9337
|
{
|
|
8741
9338
|
as: "button",
|
|
@@ -8747,11 +9344,11 @@ var Navigation = ({
|
|
|
8747
9344
|
border: "none",
|
|
8748
9345
|
padding: space[2],
|
|
8749
9346
|
css: hamburgerButtonStyles,
|
|
8750
|
-
children: /* @__PURE__ */ (0,
|
|
9347
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
8751
9348
|
}
|
|
8752
9349
|
),
|
|
8753
|
-
/* @__PURE__ */ (0,
|
|
8754
|
-
/* @__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)(
|
|
8755
9352
|
Logo_default,
|
|
8756
9353
|
{
|
|
8757
9354
|
variant: logoVariant,
|
|
@@ -8760,8 +9357,8 @@ var Navigation = ({
|
|
|
8760
9357
|
css: logoStyles2
|
|
8761
9358
|
}
|
|
8762
9359
|
) }),
|
|
8763
|
-
/* @__PURE__ */ (0,
|
|
8764
|
-
/* @__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)(
|
|
8765
9362
|
"a",
|
|
8766
9363
|
{
|
|
8767
9364
|
href: link.href,
|
|
@@ -8770,7 +9367,7 @@ var Navigation = ({
|
|
|
8770
9367
|
children: link.label
|
|
8771
9368
|
}
|
|
8772
9369
|
) }, link.href)) }) }),
|
|
8773
|
-
/* @__PURE__ */ (0,
|
|
9370
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
8774
9371
|
Box_default,
|
|
8775
9372
|
{
|
|
8776
9373
|
as: "button",
|
|
@@ -8789,21 +9386,21 @@ var Navigation = ({
|
|
|
8789
9386
|
var Navigation_default = Navigation;
|
|
8790
9387
|
|
|
8791
9388
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
8792
|
-
var
|
|
9389
|
+
var import_react63 = require("react");
|
|
8793
9390
|
var import_react_intersection_observer = require("react-intersection-observer");
|
|
8794
9391
|
|
|
8795
9392
|
// src/ScrollingCarousel/context/CarouselContext.tsx
|
|
8796
|
-
var
|
|
8797
|
-
var CarouselContext =
|
|
9393
|
+
var import_react61 = __toESM(require("react"));
|
|
9394
|
+
var CarouselContext = import_react61.default.createContext(
|
|
8798
9395
|
null
|
|
8799
9396
|
);
|
|
8800
9397
|
|
|
8801
9398
|
// src/ScrollingCarousel/ScrollingCarousel.styles.ts
|
|
8802
|
-
var
|
|
8803
|
-
var carouselRoot =
|
|
9399
|
+
var import_react62 = require("@emotion/react");
|
|
9400
|
+
var carouselRoot = import_react62.css`
|
|
8804
9401
|
position: relative;
|
|
8805
9402
|
`;
|
|
8806
|
-
var carousel =
|
|
9403
|
+
var carousel = import_react62.css`
|
|
8807
9404
|
display: flex;
|
|
8808
9405
|
overflow-y: hidden;
|
|
8809
9406
|
overflow-x: scroll;
|
|
@@ -8815,7 +9412,7 @@ var carousel = import_react58.css`
|
|
|
8815
9412
|
display: none;
|
|
8816
9413
|
}
|
|
8817
9414
|
`;
|
|
8818
|
-
var step =
|
|
9415
|
+
var step = import_react62.css`
|
|
8819
9416
|
scroll-snap-align: center;
|
|
8820
9417
|
flex-basis: 100%;
|
|
8821
9418
|
flex-shrink: 0;
|
|
@@ -8828,7 +9425,7 @@ var step = import_react58.css`
|
|
|
8828
9425
|
flex-basis: 100%;
|
|
8829
9426
|
}
|
|
8830
9427
|
`;
|
|
8831
|
-
var controls = (position2) =>
|
|
9428
|
+
var controls = (position2) => import_react62.css`
|
|
8832
9429
|
${(position2 === "left-right" || position2 === "top-right") && `
|
|
8833
9430
|
display: none;
|
|
8834
9431
|
|
|
@@ -8837,7 +9434,7 @@ var controls = (position2) => import_react58.css`
|
|
|
8837
9434
|
}
|
|
8838
9435
|
`}
|
|
8839
9436
|
`;
|
|
8840
|
-
var iconWrapper =
|
|
9437
|
+
var iconWrapper = import_react62.css`
|
|
8841
9438
|
display: flex;
|
|
8842
9439
|
width: var(--spacing-7);
|
|
8843
9440
|
height: var(--spacing-7);
|
|
@@ -8847,7 +9444,7 @@ var iconWrapper = import_react58.css`
|
|
|
8847
9444
|
justify-content: center;
|
|
8848
9445
|
box-shadow: var(--shadow-md);
|
|
8849
9446
|
`;
|
|
8850
|
-
var button = (position2) =>
|
|
9447
|
+
var button = (position2) => import_react62.css`
|
|
8851
9448
|
background: transparent;
|
|
8852
9449
|
border-color: transparent;
|
|
8853
9450
|
outline: none;
|
|
@@ -8879,7 +9476,7 @@ var button = (position2) => import_react58.css`
|
|
|
8879
9476
|
bottom: calc(-1 * var(--spacing-1));
|
|
8880
9477
|
`}
|
|
8881
9478
|
`;
|
|
8882
|
-
var buttonLeft = (position2) =>
|
|
9479
|
+
var buttonLeft = (position2) => import_react62.css`
|
|
8883
9480
|
${button(position2)}
|
|
8884
9481
|
|
|
8885
9482
|
${position2 === "left-right" && `
|
|
@@ -8899,7 +9496,7 @@ var buttonLeft = (position2) => import_react58.css`
|
|
|
8899
9496
|
left: calc(50% - var(--spacing-16));
|
|
8900
9497
|
`}
|
|
8901
9498
|
`;
|
|
8902
|
-
var customButtonLeft = (position2) =>
|
|
9499
|
+
var customButtonLeft = (position2) => import_react62.css`
|
|
8903
9500
|
${button(position2)}
|
|
8904
9501
|
|
|
8905
9502
|
${position2 === "left-right" && `
|
|
@@ -8919,7 +9516,7 @@ var customButtonLeft = (position2) => import_react58.css`
|
|
|
8919
9516
|
left: calc(50% - var(--spacing-16));
|
|
8920
9517
|
`}
|
|
8921
9518
|
`;
|
|
8922
|
-
var buttonRight = (position2) =>
|
|
9519
|
+
var buttonRight = (position2) => import_react62.css`
|
|
8923
9520
|
${button(position2)}
|
|
8924
9521
|
|
|
8925
9522
|
${position2 === "left-right" && `
|
|
@@ -8939,12 +9536,12 @@ var buttonRight = (position2) => import_react58.css`
|
|
|
8939
9536
|
right: calc(50% - var(--spacing-16));
|
|
8940
9537
|
`}
|
|
8941
9538
|
`;
|
|
8942
|
-
var icon =
|
|
9539
|
+
var icon = import_react62.css`
|
|
8943
9540
|
width: var(--spacing-3);
|
|
8944
9541
|
height: var(--spacing-3);
|
|
8945
9542
|
color: var(--color-base-black);
|
|
8946
9543
|
`;
|
|
8947
|
-
var dots =
|
|
9544
|
+
var dots = import_react62.css`
|
|
8948
9545
|
position: absolute;
|
|
8949
9546
|
bottom: var(--spacing-2);
|
|
8950
9547
|
left: 0;
|
|
@@ -8954,11 +9551,11 @@ var dots = import_react58.css`
|
|
|
8954
9551
|
align-items: center;
|
|
8955
9552
|
justify-content: center;
|
|
8956
9553
|
`;
|
|
8957
|
-
var dotsInner =
|
|
9554
|
+
var dotsInner = import_react62.css`
|
|
8958
9555
|
display: flex;
|
|
8959
9556
|
overflow: hidden;
|
|
8960
9557
|
`;
|
|
8961
|
-
var dot = (dotsColor) =>
|
|
9558
|
+
var dot = (dotsColor) => import_react62.css`
|
|
8962
9559
|
position: relative;
|
|
8963
9560
|
flex-shrink: 0;
|
|
8964
9561
|
flex-grow: 0;
|
|
@@ -8997,22 +9594,22 @@ var dot = (dotsColor) => import_react58.css`
|
|
|
8997
9594
|
`}
|
|
8998
9595
|
}
|
|
8999
9596
|
`;
|
|
9000
|
-
var dotDistance2 =
|
|
9597
|
+
var dotDistance2 = import_react62.css`
|
|
9001
9598
|
&::after {
|
|
9002
9599
|
transform: translate(-50%, -50%) scale(0.9);
|
|
9003
9600
|
}
|
|
9004
9601
|
`;
|
|
9005
|
-
var dotDistance3 =
|
|
9602
|
+
var dotDistance3 = import_react62.css`
|
|
9006
9603
|
&::after {
|
|
9007
9604
|
transform: translate(-50%, -50%) scale(0.8);
|
|
9008
9605
|
}
|
|
9009
9606
|
`;
|
|
9010
|
-
var dotDistanceGreaterThan3 =
|
|
9607
|
+
var dotDistanceGreaterThan3 = import_react62.css`
|
|
9011
9608
|
&::after {
|
|
9012
9609
|
transform: translate(-50%, -50%) scale(0.7);
|
|
9013
9610
|
}
|
|
9014
9611
|
`;
|
|
9015
|
-
var dotVisible =
|
|
9612
|
+
var dotVisible = import_react62.css`
|
|
9016
9613
|
&::after {
|
|
9017
9614
|
opacity: 1;
|
|
9018
9615
|
transform: translate(-50%, -50%) scale(1.2);
|
|
@@ -9020,7 +9617,7 @@ var dotVisible = import_react58.css`
|
|
|
9020
9617
|
`;
|
|
9021
9618
|
|
|
9022
9619
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
9023
|
-
var
|
|
9620
|
+
var import_jsx_runtime257 = require("@emotion/react/jsx-runtime");
|
|
9024
9621
|
var ScrollingCarouselStep = ({
|
|
9025
9622
|
children,
|
|
9026
9623
|
index,
|
|
@@ -9028,7 +9625,7 @@ var ScrollingCarouselStep = ({
|
|
|
9028
9625
|
parentId,
|
|
9029
9626
|
onClick
|
|
9030
9627
|
}) => {
|
|
9031
|
-
const context = (0,
|
|
9628
|
+
const context = (0, import_react63.useContext)(CarouselContext);
|
|
9032
9629
|
if (!context) {
|
|
9033
9630
|
throw new Error(
|
|
9034
9631
|
"ScrollingCarouselStep must be used within ScrollingCarousel"
|
|
@@ -9039,7 +9636,7 @@ var ScrollingCarouselStep = ({
|
|
|
9039
9636
|
threshold: 0.75,
|
|
9040
9637
|
root: carousel2.current
|
|
9041
9638
|
});
|
|
9042
|
-
(0,
|
|
9639
|
+
(0, import_react63.useEffect)(() => {
|
|
9043
9640
|
if (typeof index !== "undefined") {
|
|
9044
9641
|
dispatch({
|
|
9045
9642
|
type: "set_child_visibility",
|
|
@@ -9047,7 +9644,7 @@ var ScrollingCarouselStep = ({
|
|
|
9047
9644
|
});
|
|
9048
9645
|
}
|
|
9049
9646
|
}, [inView, index, dispatch]);
|
|
9050
|
-
return /* @__PURE__ */ (0,
|
|
9647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9051
9648
|
"div",
|
|
9052
9649
|
{
|
|
9053
9650
|
ref,
|
|
@@ -9065,10 +9662,10 @@ var ScrollingCarouselStep = ({
|
|
|
9065
9662
|
ScrollingCarouselStep.displayName = "ScrollingCarouselStep";
|
|
9066
9663
|
|
|
9067
9664
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
9068
|
-
var
|
|
9665
|
+
var import_react67 = __toESM(require("react"));
|
|
9069
9666
|
|
|
9070
9667
|
// src/ScrollingCarousel/hooks/useCarouselDots.ts
|
|
9071
|
-
var
|
|
9668
|
+
var import_react64 = require("react");
|
|
9072
9669
|
|
|
9073
9670
|
// src/ScrollingCarousel/ScrollingCarousel.helpers.ts
|
|
9074
9671
|
var childVisibilityReducer = (state, action) => {
|
|
@@ -9099,7 +9696,7 @@ var useCarouselDots = ({
|
|
|
9099
9696
|
anyItemsVisible,
|
|
9100
9697
|
numberOfDots
|
|
9101
9698
|
}) => {
|
|
9102
|
-
const dotOffset = (0,
|
|
9699
|
+
const dotOffset = (0, import_react64.useRef)(0);
|
|
9103
9700
|
const dotWidth = 12;
|
|
9104
9701
|
const totalDots = childVisibility.length;
|
|
9105
9702
|
const dotToCenterIndex = Math.round(
|
|
@@ -9131,7 +9728,7 @@ var useCarouselDots = ({
|
|
|
9131
9728
|
};
|
|
9132
9729
|
|
|
9133
9730
|
// src/ScrollingCarousel/hooks/useCarouselNavigation.ts
|
|
9134
|
-
var
|
|
9731
|
+
var import_react65 = require("react");
|
|
9135
9732
|
|
|
9136
9733
|
// src/shared/helpers.ts
|
|
9137
9734
|
var import_seamless_scroll_polyfill = require("seamless-scroll-polyfill");
|
|
@@ -9165,7 +9762,7 @@ var useCarouselNavigation = ({
|
|
|
9165
9762
|
infiniteScroll,
|
|
9166
9763
|
childVisibilityLength
|
|
9167
9764
|
}) => {
|
|
9168
|
-
const getStepEl = (0,
|
|
9765
|
+
const getStepEl = (0, import_react65.useCallback)(
|
|
9169
9766
|
(index) => {
|
|
9170
9767
|
if (carousel2.current) {
|
|
9171
9768
|
const selector = `[data-carousel-id="${id}"][data-carousel-index="${index}"]`;
|
|
@@ -9175,7 +9772,7 @@ var useCarouselNavigation = ({
|
|
|
9175
9772
|
},
|
|
9176
9773
|
[carousel2, id]
|
|
9177
9774
|
);
|
|
9178
|
-
const next = (0,
|
|
9775
|
+
const next = (0, import_react65.useCallback)(
|
|
9179
9776
|
(e) => {
|
|
9180
9777
|
e.preventDefault();
|
|
9181
9778
|
if (lastItemIsVisible && !infiniteScroll)
|
|
@@ -9203,7 +9800,7 @@ var useCarouselNavigation = ({
|
|
|
9203
9800
|
carousel2
|
|
9204
9801
|
]
|
|
9205
9802
|
);
|
|
9206
|
-
const back = (0,
|
|
9803
|
+
const back = (0, import_react65.useCallback)(
|
|
9207
9804
|
(e) => {
|
|
9208
9805
|
e.preventDefault();
|
|
9209
9806
|
if (firstItemIsVisible && !infiniteScroll)
|
|
@@ -9231,7 +9828,7 @@ var useCarouselNavigation = ({
|
|
|
9231
9828
|
carousel2
|
|
9232
9829
|
]
|
|
9233
9830
|
);
|
|
9234
|
-
const goTo = (0,
|
|
9831
|
+
const goTo = (0, import_react65.useCallback)(
|
|
9235
9832
|
(e, i) => {
|
|
9236
9833
|
e.preventDefault();
|
|
9237
9834
|
const el = getStepEl(i);
|
|
@@ -9249,12 +9846,12 @@ var useCarouselNavigation = ({
|
|
|
9249
9846
|
};
|
|
9250
9847
|
|
|
9251
9848
|
// src/ScrollingCarousel/hooks/useCarouselVisibility.ts
|
|
9252
|
-
var
|
|
9849
|
+
var import_react66 = require("react");
|
|
9253
9850
|
var useCarouselVisibility = (carousel2) => {
|
|
9254
|
-
const [state, dispatch] = (0,
|
|
9851
|
+
const [state, dispatch] = (0, import_react66.useReducer)(childVisibilityReducer, {
|
|
9255
9852
|
childVisibility: []
|
|
9256
9853
|
});
|
|
9257
|
-
const carouselContextApi = (0,
|
|
9854
|
+
const carouselContextApi = (0, import_react66.useMemo)(
|
|
9258
9855
|
() => ({ carousel: carousel2, dispatch }),
|
|
9259
9856
|
[carousel2]
|
|
9260
9857
|
);
|
|
@@ -9275,7 +9872,7 @@ var useCarouselVisibility = (carousel2) => {
|
|
|
9275
9872
|
};
|
|
9276
9873
|
|
|
9277
9874
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
9278
|
-
var
|
|
9875
|
+
var import_jsx_runtime258 = require("@emotion/react/jsx-runtime");
|
|
9279
9876
|
var ScrollingCarousel = ({
|
|
9280
9877
|
className,
|
|
9281
9878
|
children,
|
|
@@ -9292,8 +9889,8 @@ var ScrollingCarousel = ({
|
|
|
9292
9889
|
id,
|
|
9293
9890
|
current
|
|
9294
9891
|
}) => {
|
|
9295
|
-
const carousel2 = (0,
|
|
9296
|
-
const [isHovering, setIsHovering] = (0,
|
|
9892
|
+
const carousel2 = (0, import_react67.useRef)(null);
|
|
9893
|
+
const [isHovering, setIsHovering] = (0, import_react67.useState)(false);
|
|
9297
9894
|
const {
|
|
9298
9895
|
state,
|
|
9299
9896
|
carouselContextApi,
|
|
@@ -9313,7 +9910,7 @@ var ScrollingCarousel = ({
|
|
|
9313
9910
|
infiniteScroll,
|
|
9314
9911
|
childVisibilityLength: state.childVisibility.length
|
|
9315
9912
|
});
|
|
9316
|
-
(0,
|
|
9913
|
+
(0, import_react67.useEffect)(() => {
|
|
9317
9914
|
if (carousel2.current && typeof current === "number" && current >= 0) {
|
|
9318
9915
|
const childrenArray = Array.from(carousel2.current.children);
|
|
9319
9916
|
const selectedItem = childrenArray[current];
|
|
@@ -9328,9 +9925,9 @@ var ScrollingCarousel = ({
|
|
|
9328
9925
|
}
|
|
9329
9926
|
}
|
|
9330
9927
|
}, [current]);
|
|
9331
|
-
const childrenWithIndex =
|
|
9928
|
+
const childrenWithIndex = import_react67.default.Children.map(
|
|
9332
9929
|
children,
|
|
9333
|
-
(child, index) =>
|
|
9930
|
+
(child, index) => import_react67.default.cloneElement(child, { index })
|
|
9334
9931
|
);
|
|
9335
9932
|
const { dotOffset, dotDistances, dotWidth } = useCarouselDots({
|
|
9336
9933
|
childVisibility: state.childVisibility,
|
|
@@ -9341,7 +9938,7 @@ var ScrollingCarousel = ({
|
|
|
9341
9938
|
});
|
|
9342
9939
|
const hasMultipleChildren = state.childVisibility.length > 1;
|
|
9343
9940
|
const shouldShowNavigation = showNavigationOnHover ? isHovering : true;
|
|
9344
|
-
return /* @__PURE__ */ (0,
|
|
9941
|
+
return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
|
|
9345
9942
|
"div",
|
|
9346
9943
|
{
|
|
9347
9944
|
css: carouselRoot,
|
|
@@ -9349,7 +9946,7 @@ var ScrollingCarousel = ({
|
|
|
9349
9946
|
onMouseEnter: () => setIsHovering(true),
|
|
9350
9947
|
onMouseLeave: () => setIsHovering(false),
|
|
9351
9948
|
children: [
|
|
9352
|
-
/* @__PURE__ */ (0,
|
|
9949
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
9353
9950
|
"div",
|
|
9354
9951
|
{
|
|
9355
9952
|
css: carousel,
|
|
@@ -9358,11 +9955,11 @@ var ScrollingCarousel = ({
|
|
|
9358
9955
|
role: "region",
|
|
9359
9956
|
"aria-roledescription": "carousel",
|
|
9360
9957
|
"aria-label": "Scrolling carousel",
|
|
9361
|
-
children: /* @__PURE__ */ (0,
|
|
9958
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(CarouselContext.Provider, { value: carouselContextApi, children: childrenWithIndex })
|
|
9362
9959
|
}
|
|
9363
9960
|
),
|
|
9364
|
-
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0,
|
|
9365
|
-
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)(
|
|
9366
9963
|
"button",
|
|
9367
9964
|
{
|
|
9368
9965
|
"aria-label": "Previous",
|
|
@@ -9374,10 +9971,10 @@ var ScrollingCarousel = ({
|
|
|
9374
9971
|
},
|
|
9375
9972
|
css: customLeftButton ? customButtonLeft(buttonsPosition) : buttonLeft(buttonsPosition),
|
|
9376
9973
|
"data-testid": `scrolling-carousel-button-back-${id}`,
|
|
9377
|
-
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 }) })
|
|
9378
9975
|
}
|
|
9379
9976
|
),
|
|
9380
|
-
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
9977
|
+
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
9381
9978
|
"button",
|
|
9382
9979
|
{
|
|
9383
9980
|
"aria-label": "Next",
|
|
@@ -9389,11 +9986,11 @@ var ScrollingCarousel = ({
|
|
|
9389
9986
|
},
|
|
9390
9987
|
css: buttonRight(buttonsPosition),
|
|
9391
9988
|
"data-testid": `scrolling-carousel-button-next-${id}`,
|
|
9392
|
-
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 }) })
|
|
9393
9990
|
}
|
|
9394
9991
|
)
|
|
9395
9992
|
] }),
|
|
9396
|
-
showDots && /* @__PURE__ */ (0,
|
|
9993
|
+
showDots && /* @__PURE__ */ (0, import_jsx_runtime258.jsx)("div", { css: dots, children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
9397
9994
|
"div",
|
|
9398
9995
|
{
|
|
9399
9996
|
css: dotsInner,
|
|
@@ -9401,7 +9998,7 @@ var ScrollingCarousel = ({
|
|
|
9401
9998
|
children: state.childVisibility.map((childVisibility, i) => {
|
|
9402
9999
|
var _a;
|
|
9403
10000
|
const distance = (_a = dotDistances[i]) != null ? _a : 0;
|
|
9404
|
-
return /* @__PURE__ */ (0,
|
|
10001
|
+
return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
9405
10002
|
"button",
|
|
9406
10003
|
{
|
|
9407
10004
|
type: "button",
|
|
@@ -9432,8 +10029,8 @@ var ScrollingCarousel = ({
|
|
|
9432
10029
|
ScrollingCarousel.displayName = "ScrollingCarousel";
|
|
9433
10030
|
|
|
9434
10031
|
// src/PackageCard/PackageCard.styles.ts
|
|
9435
|
-
var
|
|
9436
|
-
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) =>
|
|
10032
|
+
var import_react68 = require("@emotion/react");
|
|
10033
|
+
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) => import_react68.css`
|
|
9437
10034
|
${hasClickHandler && `
|
|
9438
10035
|
cursor: pointer;
|
|
9439
10036
|
`}
|
|
@@ -9451,7 +10048,7 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
9451
10048
|
flex-direction: column;
|
|
9452
10049
|
gap: var(--spacing-2);
|
|
9453
10050
|
|
|
9454
|
-
${orientation === "horizontal" &&
|
|
10051
|
+
${orientation === "horizontal" && import_react68.css`
|
|
9455
10052
|
/* Apply horizontal layout only on tablet and up */
|
|
9456
10053
|
${media.md} {
|
|
9457
10054
|
flex-direction: row;
|
|
@@ -9479,60 +10076,60 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
9479
10076
|
}
|
|
9480
10077
|
`}
|
|
9481
10078
|
`;
|
|
9482
|
-
var imageContainerStyles = (orientation) =>
|
|
10079
|
+
var imageContainerStyles = (orientation) => import_react68.css`
|
|
9483
10080
|
width: 100%;
|
|
9484
10081
|
height: 260px;
|
|
9485
10082
|
|
|
9486
|
-
${orientation === "horizontal" &&
|
|
10083
|
+
${orientation === "horizontal" && import_react68.css`
|
|
9487
10084
|
${media.md} {
|
|
9488
10085
|
width: 40%;
|
|
9489
10086
|
height: 200px;
|
|
9490
10087
|
}
|
|
9491
10088
|
`}
|
|
9492
10089
|
`;
|
|
9493
|
-
var imageBoxStyles = (orientation) =>
|
|
10090
|
+
var imageBoxStyles = (orientation) => import_react68.css`
|
|
9494
10091
|
height: 260px;
|
|
9495
10092
|
|
|
9496
|
-
${orientation === "horizontal" &&
|
|
10093
|
+
${orientation === "horizontal" && import_react68.css`
|
|
9497
10094
|
${media.md} {
|
|
9498
10095
|
height: 200px;
|
|
9499
10096
|
}
|
|
9500
10097
|
`}
|
|
9501
10098
|
`;
|
|
9502
|
-
var contentContainerStyles = (orientation, hasContentBackground) =>
|
|
10099
|
+
var contentContainerStyles = (orientation, hasContentBackground) => import_react68.css`
|
|
9503
10100
|
${hasContentBackground ? contentWithBackgroundStyles : contentWithoutBackgroundStyles}
|
|
9504
10101
|
width: 100%;
|
|
9505
10102
|
display: flex;
|
|
9506
10103
|
flex-direction: column;
|
|
9507
10104
|
justify-content: flex-start;
|
|
9508
10105
|
|
|
9509
|
-
${orientation === "horizontal" &&
|
|
10106
|
+
${orientation === "horizontal" && import_react68.css`
|
|
9510
10107
|
${media.md} {
|
|
9511
10108
|
width: 60%;
|
|
9512
10109
|
justify-content: center;
|
|
9513
10110
|
}
|
|
9514
10111
|
`}
|
|
9515
10112
|
`;
|
|
9516
|
-
var
|
|
10113
|
+
var imageStyles3 = import_react68.css`
|
|
9517
10114
|
background-size: cover;
|
|
9518
10115
|
background-position: center;
|
|
9519
10116
|
background-repeat: no-repeat;
|
|
9520
10117
|
position: relative;
|
|
9521
10118
|
background-color: lightgray;
|
|
9522
10119
|
`;
|
|
9523
|
-
var badgeTopLeftStyles =
|
|
10120
|
+
var badgeTopLeftStyles = import_react68.css`
|
|
9524
10121
|
position: absolute;
|
|
9525
10122
|
top: var(--spacing-3);
|
|
9526
10123
|
left: var(--spacing-3);
|
|
9527
10124
|
z-index: 2;
|
|
9528
10125
|
`;
|
|
9529
|
-
var badgeBottomRightStyles =
|
|
10126
|
+
var badgeBottomRightStyles = import_react68.css`
|
|
9530
10127
|
position: absolute;
|
|
9531
10128
|
bottom: var(--spacing-3);
|
|
9532
10129
|
right: var(--spacing-3);
|
|
9533
10130
|
z-index: 2;
|
|
9534
10131
|
`;
|
|
9535
|
-
var heartIconStyles =
|
|
10132
|
+
var heartIconStyles = import_react68.css`
|
|
9536
10133
|
position: absolute;
|
|
9537
10134
|
top: var(--spacing-3);
|
|
9538
10135
|
right: var(--spacing-3);
|
|
@@ -9554,20 +10151,20 @@ var heartIconStyles = import_react64.css`
|
|
|
9554
10151
|
transform: scale(1.1);
|
|
9555
10152
|
}
|
|
9556
10153
|
`;
|
|
9557
|
-
var actionMenuStyles =
|
|
10154
|
+
var actionMenuStyles = import_react68.css`
|
|
9558
10155
|
position: absolute;
|
|
9559
10156
|
top: var(--spacing-3);
|
|
9560
10157
|
right: var(--spacing-3);
|
|
9561
10158
|
z-index: 3;
|
|
9562
10159
|
`;
|
|
9563
|
-
var contentWithBackgroundStyles =
|
|
10160
|
+
var contentWithBackgroundStyles = import_react68.css`
|
|
9564
10161
|
padding: 0 var(--spacing-3) var(--spacing-4) var(--spacing-3);
|
|
9565
10162
|
background-color: var(--surface-page);
|
|
9566
10163
|
`;
|
|
9567
|
-
var contentWithoutBackgroundStyles =
|
|
10164
|
+
var contentWithoutBackgroundStyles = import_react68.css`
|
|
9568
10165
|
padding-top: 0 var(--spacing-2) var(--spacing-2) var(--spacing-2);
|
|
9569
10166
|
`;
|
|
9570
|
-
var overlayStyles =
|
|
10167
|
+
var overlayStyles = import_react68.css`
|
|
9571
10168
|
position: absolute;
|
|
9572
10169
|
top: 0;
|
|
9573
10170
|
left: 0;
|
|
@@ -9581,7 +10178,7 @@ var overlayStyles = import_react64.css`
|
|
|
9581
10178
|
`;
|
|
9582
10179
|
|
|
9583
10180
|
// src/PackageCard/PackageCard.tsx
|
|
9584
|
-
var
|
|
10181
|
+
var import_jsx_runtime259 = require("@emotion/react/jsx-runtime");
|
|
9585
10182
|
var PackageCard = ({
|
|
9586
10183
|
images,
|
|
9587
10184
|
title,
|
|
@@ -9603,7 +10200,7 @@ var PackageCard = ({
|
|
|
9603
10200
|
const shouldShowOverlay = availabilityBadges == null ? void 0 : availabilityBadges.some(
|
|
9604
10201
|
(badge2) => badge2.showOverlay
|
|
9605
10202
|
);
|
|
9606
|
-
return /* @__PURE__ */ (0,
|
|
10203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
9607
10204
|
Box_default,
|
|
9608
10205
|
{
|
|
9609
10206
|
position: "relative",
|
|
@@ -9612,7 +10209,7 @@ var PackageCard = ({
|
|
|
9612
10209
|
onClick,
|
|
9613
10210
|
...rest,
|
|
9614
10211
|
children: [
|
|
9615
|
-
/* @__PURE__ */ (0,
|
|
10212
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
9616
10213
|
Box_default,
|
|
9617
10214
|
{
|
|
9618
10215
|
position: "relative",
|
|
@@ -9620,7 +10217,7 @@ var PackageCard = ({
|
|
|
9620
10217
|
borderRadius: "var(--spacing-4)",
|
|
9621
10218
|
css: imageContainerStyles(orientation),
|
|
9622
10219
|
children: [
|
|
9623
|
-
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)(
|
|
9624
10221
|
AvailabilityBadge_default,
|
|
9625
10222
|
{
|
|
9626
10223
|
variant: badge2.variant,
|
|
@@ -9629,23 +10226,23 @@ var PackageCard = ({
|
|
|
9629
10226
|
},
|
|
9630
10227
|
`availability-${index}`
|
|
9631
10228
|
)),
|
|
9632
|
-
shouldShowOverlay && /* @__PURE__ */ (0,
|
|
9633
|
-
/* @__PURE__ */ (0,
|
|
10229
|
+
shouldShowOverlay && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Box_default, { css: overlayStyles }),
|
|
10230
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9634
10231
|
ScrollingCarousel,
|
|
9635
10232
|
{
|
|
9636
10233
|
showDots: images.length > 1,
|
|
9637
10234
|
showNavigationOnHover: true,
|
|
9638
10235
|
id: carouselId,
|
|
9639
|
-
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)(
|
|
9640
10237
|
ScrollingCarouselStep,
|
|
9641
10238
|
{
|
|
9642
10239
|
parentId: carouselId,
|
|
9643
|
-
children: /* @__PURE__ */ (0,
|
|
10240
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9644
10241
|
Box_default,
|
|
9645
10242
|
{
|
|
9646
10243
|
width: "100%",
|
|
9647
10244
|
css: [
|
|
9648
|
-
|
|
10245
|
+
imageStyles3,
|
|
9649
10246
|
imageBoxStyles(orientation),
|
|
9650
10247
|
{
|
|
9651
10248
|
backgroundImage: `linear-gradient(181deg, rgba(0, 0, 0, 0.00) 75.32%, rgba(0, 0, 0, 0.40) 99.41%), url(${image})`
|
|
@@ -9658,7 +10255,7 @@ var PackageCard = ({
|
|
|
9658
10255
|
))
|
|
9659
10256
|
}
|
|
9660
10257
|
),
|
|
9661
|
-
onFavoriteClick && /* @__PURE__ */ (0,
|
|
10258
|
+
onFavoriteClick && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9662
10259
|
Box_default,
|
|
9663
10260
|
{
|
|
9664
10261
|
css: heartIconStyles,
|
|
@@ -9667,14 +10264,14 @@ var PackageCard = ({
|
|
|
9667
10264
|
e.stopPropagation();
|
|
9668
10265
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
9669
10266
|
},
|
|
9670
|
-
children: isFavorited ? /* @__PURE__ */ (0,
|
|
10267
|
+
children: isFavorited ? /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9671
10268
|
Icon_default,
|
|
9672
10269
|
{
|
|
9673
10270
|
variant: "HeartSolid",
|
|
9674
10271
|
size: "small",
|
|
9675
10272
|
fill: "var(--color-error-500)"
|
|
9676
10273
|
}
|
|
9677
|
-
) : /* @__PURE__ */ (0,
|
|
10274
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9678
10275
|
Icon_default,
|
|
9679
10276
|
{
|
|
9680
10277
|
variant: "Heart",
|
|
@@ -9684,13 +10281,13 @@ var PackageCard = ({
|
|
|
9684
10281
|
)
|
|
9685
10282
|
}
|
|
9686
10283
|
),
|
|
9687
|
-
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 }) })
|
|
9688
10285
|
]
|
|
9689
10286
|
}
|
|
9690
10287
|
),
|
|
9691
|
-
actions && actions.length > 0 && orientation === "horizontal" && /* @__PURE__ */ (0,
|
|
9692
|
-
/* @__PURE__ */ (0,
|
|
9693
|
-
/* @__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)(
|
|
9694
10291
|
Box_default,
|
|
9695
10292
|
{
|
|
9696
10293
|
display: "flex",
|
|
@@ -9698,9 +10295,9 @@ var PackageCard = ({
|
|
|
9698
10295
|
gap: "var(--spacing-1)",
|
|
9699
10296
|
mb: "var(--spacing-1)",
|
|
9700
10297
|
children: [
|
|
9701
|
-
/* @__PURE__ */ (0,
|
|
9702
|
-
/* @__PURE__ */ (0,
|
|
9703
|
-
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: [
|
|
9704
10301
|
"Starting Price ",
|
|
9705
10302
|
startingPrice,
|
|
9706
10303
|
" / Guest"
|
|
@@ -9708,14 +10305,14 @@ var PackageCard = ({
|
|
|
9708
10305
|
]
|
|
9709
10306
|
}
|
|
9710
10307
|
),
|
|
9711
|
-
badges && badges.length > 0 && /* @__PURE__ */ (0,
|
|
10308
|
+
badges && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9712
10309
|
Box_default,
|
|
9713
10310
|
{
|
|
9714
10311
|
display: "flex",
|
|
9715
10312
|
gap: "var(--spacing-2) var(--spacing-4)",
|
|
9716
10313
|
alignItems: "center",
|
|
9717
10314
|
flexWrap: "wrap",
|
|
9718
|
-
children: badges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
10315
|
+
children: badges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9719
10316
|
IconLabel_default,
|
|
9720
10317
|
{
|
|
9721
10318
|
iconSize: badge2.iconSize || "medium",
|
|
@@ -9734,14 +10331,14 @@ var PackageCard = ({
|
|
|
9734
10331
|
var PackageCard_default = PackageCard;
|
|
9735
10332
|
|
|
9736
10333
|
// src/PackageHeader/PackageHeader.tsx
|
|
9737
|
-
var
|
|
10334
|
+
var import_jsx_runtime260 = require("@emotion/react/jsx-runtime");
|
|
9738
10335
|
var PackageHeader = ({
|
|
9739
10336
|
header,
|
|
9740
10337
|
subheader,
|
|
9741
10338
|
features,
|
|
9742
10339
|
className
|
|
9743
10340
|
}) => {
|
|
9744
|
-
return /* @__PURE__ */ (0,
|
|
10341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
9745
10342
|
Box_default,
|
|
9746
10343
|
{
|
|
9747
10344
|
display: "flex",
|
|
@@ -9750,9 +10347,9 @@ var PackageHeader = ({
|
|
|
9750
10347
|
color: "var(--text-primary)",
|
|
9751
10348
|
className,
|
|
9752
10349
|
children: [
|
|
9753
|
-
/* @__PURE__ */ (0,
|
|
9754
|
-
subheader && /* @__PURE__ */ (0,
|
|
9755
|
-
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 })
|
|
9756
10353
|
]
|
|
9757
10354
|
}
|
|
9758
10355
|
);
|
|
@@ -9760,8 +10357,8 @@ var PackageHeader = ({
|
|
|
9760
10357
|
var PackageHeader_default = PackageHeader;
|
|
9761
10358
|
|
|
9762
10359
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
9763
|
-
var
|
|
9764
|
-
var
|
|
10360
|
+
var import_react69 = require("@emotion/react");
|
|
10361
|
+
var imageStyles4 = import_react69.css`
|
|
9765
10362
|
flex: 1;
|
|
9766
10363
|
min-width: 0;
|
|
9767
10364
|
max-width: 100%;
|
|
@@ -9772,18 +10369,18 @@ var imageStyles3 = import_react65.css`
|
|
|
9772
10369
|
`;
|
|
9773
10370
|
|
|
9774
10371
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
9775
|
-
var
|
|
10372
|
+
var import_jsx_runtime261 = require("@emotion/react/jsx-runtime");
|
|
9776
10373
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
9777
10374
|
const displayImages = images.slice(0, maxImages);
|
|
9778
10375
|
if (displayImages.length === 0) {
|
|
9779
10376
|
return null;
|
|
9780
10377
|
}
|
|
9781
|
-
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)(
|
|
9782
10379
|
"img",
|
|
9783
10380
|
{
|
|
9784
10381
|
src: image,
|
|
9785
10382
|
alt: `Review ${index + 1}`,
|
|
9786
|
-
css:
|
|
10383
|
+
css: imageStyles4
|
|
9787
10384
|
},
|
|
9788
10385
|
index
|
|
9789
10386
|
)) });
|
|
@@ -9791,7 +10388,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
9791
10388
|
var ReviewImages_default = ReviewImages;
|
|
9792
10389
|
|
|
9793
10390
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
9794
|
-
var
|
|
10391
|
+
var import_jsx_runtime262 = require("@emotion/react/jsx-runtime");
|
|
9795
10392
|
var ReviewReply = ({
|
|
9796
10393
|
avatarSrc,
|
|
9797
10394
|
name,
|
|
@@ -9800,7 +10397,7 @@ var ReviewReply = ({
|
|
|
9800
10397
|
label,
|
|
9801
10398
|
rating
|
|
9802
10399
|
}) => {
|
|
9803
|
-
return /* @__PURE__ */ (0,
|
|
10400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
|
|
9804
10401
|
Box_default,
|
|
9805
10402
|
{
|
|
9806
10403
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -9810,7 +10407,7 @@ var ReviewReply = ({
|
|
|
9810
10407
|
flexDirection: "column",
|
|
9811
10408
|
gap: "var(--spacing-3)",
|
|
9812
10409
|
children: [
|
|
9813
|
-
/* @__PURE__ */ (0,
|
|
10410
|
+
/* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
|
|
9814
10411
|
Box_default,
|
|
9815
10412
|
{
|
|
9816
10413
|
display: "flex",
|
|
@@ -9818,7 +10415,7 @@ var ReviewReply = ({
|
|
|
9818
10415
|
justifyContent: "space-between",
|
|
9819
10416
|
gap: "var(--spacing-2)",
|
|
9820
10417
|
children: [
|
|
9821
|
-
/* @__PURE__ */ (0,
|
|
10418
|
+
/* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
|
|
9822
10419
|
UserCard_default,
|
|
9823
10420
|
{
|
|
9824
10421
|
avatarSrc,
|
|
@@ -9827,11 +10424,11 @@ var ReviewReply = ({
|
|
|
9827
10424
|
rating
|
|
9828
10425
|
}
|
|
9829
10426
|
),
|
|
9830
|
-
/* @__PURE__ */ (0,
|
|
10427
|
+
/* @__PURE__ */ (0, import_jsx_runtime262.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
9831
10428
|
]
|
|
9832
10429
|
}
|
|
9833
10430
|
),
|
|
9834
|
-
/* @__PURE__ */ (0,
|
|
10431
|
+
/* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Text_default, { children: content })
|
|
9835
10432
|
]
|
|
9836
10433
|
}
|
|
9837
10434
|
);
|
|
@@ -9839,7 +10436,7 @@ var ReviewReply = ({
|
|
|
9839
10436
|
var ReviewReply_default = ReviewReply;
|
|
9840
10437
|
|
|
9841
10438
|
// src/ReviewCard/ReviewCard.tsx
|
|
9842
|
-
var
|
|
10439
|
+
var import_jsx_runtime263 = require("@emotion/react/jsx-runtime");
|
|
9843
10440
|
var ReviewCard = ({
|
|
9844
10441
|
avatarSrc,
|
|
9845
10442
|
name,
|
|
@@ -9851,7 +10448,7 @@ var ReviewCard = ({
|
|
|
9851
10448
|
replies = [],
|
|
9852
10449
|
className
|
|
9853
10450
|
}) => {
|
|
9854
|
-
return /* @__PURE__ */ (0,
|
|
10451
|
+
return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
|
|
9855
10452
|
Box_default,
|
|
9856
10453
|
{
|
|
9857
10454
|
backgroundColor: "white",
|
|
@@ -9862,7 +10459,7 @@ var ReviewCard = ({
|
|
|
9862
10459
|
gap: "var(--spacing-4)",
|
|
9863
10460
|
className,
|
|
9864
10461
|
children: [
|
|
9865
|
-
/* @__PURE__ */ (0,
|
|
10462
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
|
|
9866
10463
|
UserCard_default,
|
|
9867
10464
|
{
|
|
9868
10465
|
avatarSrc,
|
|
@@ -9871,10 +10468,10 @@ var ReviewCard = ({
|
|
|
9871
10468
|
rating
|
|
9872
10469
|
}
|
|
9873
10470
|
),
|
|
9874
|
-
availabilityBadge && /* @__PURE__ */ (0,
|
|
9875
|
-
/* @__PURE__ */ (0,
|
|
9876
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
9877
|
-
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)(
|
|
9878
10475
|
ReviewReply_default,
|
|
9879
10476
|
{
|
|
9880
10477
|
avatarSrc: reply.avatarSrc,
|
|
@@ -9893,12 +10490,12 @@ var ReviewCard = ({
|
|
|
9893
10490
|
var ReviewCard_default = ReviewCard;
|
|
9894
10491
|
|
|
9895
10492
|
// src/Reviews/Reviews.tsx
|
|
9896
|
-
var
|
|
10493
|
+
var import_react70 = require("@emotion/react");
|
|
9897
10494
|
|
|
9898
10495
|
// src/Reviews/components/ReviewItem.tsx
|
|
9899
|
-
var
|
|
10496
|
+
var import_jsx_runtime264 = require("@emotion/react/jsx-runtime");
|
|
9900
10497
|
var ReviewItem = ({ label, rating }) => {
|
|
9901
|
-
return /* @__PURE__ */ (0,
|
|
10498
|
+
return /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
|
|
9902
10499
|
Box_default,
|
|
9903
10500
|
{
|
|
9904
10501
|
display: "flex",
|
|
@@ -9906,10 +10503,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
9906
10503
|
alignItems: "center",
|
|
9907
10504
|
width: "100%",
|
|
9908
10505
|
children: [
|
|
9909
|
-
/* @__PURE__ */ (0,
|
|
9910
|
-
/* @__PURE__ */ (0,
|
|
9911
|
-
/* @__PURE__ */ (0,
|
|
9912
|
-
/* @__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) })
|
|
9913
10510
|
] })
|
|
9914
10511
|
]
|
|
9915
10512
|
}
|
|
@@ -9918,14 +10515,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
9918
10515
|
var ReviewItem_default = ReviewItem;
|
|
9919
10516
|
|
|
9920
10517
|
// src/Reviews/Reviews.tsx
|
|
9921
|
-
var
|
|
10518
|
+
var import_jsx_runtime265 = require("@emotion/react/jsx-runtime");
|
|
9922
10519
|
var Reviews = ({
|
|
9923
10520
|
averageRating,
|
|
9924
10521
|
totalReviews,
|
|
9925
10522
|
items,
|
|
9926
10523
|
className
|
|
9927
10524
|
}) => {
|
|
9928
|
-
return /* @__PURE__ */ (0,
|
|
10525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
|
|
9929
10526
|
Box_default,
|
|
9930
10527
|
{
|
|
9931
10528
|
width: "100%",
|
|
@@ -9938,7 +10535,7 @@ var Reviews = ({
|
|
|
9938
10535
|
p: "var(--spacing-4)",
|
|
9939
10536
|
className,
|
|
9940
10537
|
children: [
|
|
9941
|
-
/* @__PURE__ */ (0,
|
|
10538
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
|
|
9942
10539
|
Box_default,
|
|
9943
10540
|
{
|
|
9944
10541
|
display: "flex",
|
|
@@ -9946,12 +10543,12 @@ var Reviews = ({
|
|
|
9946
10543
|
alignItems: "center",
|
|
9947
10544
|
gap: "var(--spacing-2)",
|
|
9948
10545
|
children: [
|
|
9949
|
-
/* @__PURE__ */ (0,
|
|
9950
|
-
/* @__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)(
|
|
9951
10548
|
StarRating_default,
|
|
9952
10549
|
{
|
|
9953
10550
|
rating: averageRating,
|
|
9954
|
-
css:
|
|
10551
|
+
css: import_react70.css`
|
|
9955
10552
|
> svg {
|
|
9956
10553
|
height: 40px;
|
|
9957
10554
|
width: 40px;
|
|
@@ -9959,7 +10556,7 @@ var Reviews = ({
|
|
|
9959
10556
|
`
|
|
9960
10557
|
}
|
|
9961
10558
|
),
|
|
9962
|
-
/* @__PURE__ */ (0,
|
|
10559
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
9963
10560
|
"Overall Rating \u2022 ",
|
|
9964
10561
|
totalReviews,
|
|
9965
10562
|
" Review",
|
|
@@ -9968,14 +10565,14 @@ var Reviews = ({
|
|
|
9968
10565
|
]
|
|
9969
10566
|
}
|
|
9970
10567
|
),
|
|
9971
|
-
/* @__PURE__ */ (0,
|
|
10568
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
|
|
9972
10569
|
Box_default,
|
|
9973
10570
|
{
|
|
9974
10571
|
display: "flex",
|
|
9975
10572
|
flexDirection: "column",
|
|
9976
10573
|
gap: "var(--spacing-2)",
|
|
9977
10574
|
width: "100%",
|
|
9978
|
-
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))
|
|
9979
10576
|
}
|
|
9980
10577
|
)
|
|
9981
10578
|
]
|
|
@@ -9985,7 +10582,7 @@ var Reviews = ({
|
|
|
9985
10582
|
var Reviews_default = Reviews;
|
|
9986
10583
|
|
|
9987
10584
|
// src/Reviews/ReviewsShowcase.tsx
|
|
9988
|
-
var
|
|
10585
|
+
var import_jsx_runtime266 = require("@emotion/react/jsx-runtime");
|
|
9989
10586
|
var ReviewsShowcase = () => {
|
|
9990
10587
|
const sampleData = {
|
|
9991
10588
|
averageRating: 4,
|
|
@@ -10007,7 +10604,7 @@ var ReviewsShowcase = () => {
|
|
|
10007
10604
|
{ label: "Game Abundance", rating: 5 }
|
|
10008
10605
|
]
|
|
10009
10606
|
};
|
|
10010
|
-
return /* @__PURE__ */ (0,
|
|
10607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
|
|
10011
10608
|
Box_default,
|
|
10012
10609
|
{
|
|
10013
10610
|
display: "flex",
|
|
@@ -10015,24 +10612,24 @@ var ReviewsShowcase = () => {
|
|
|
10015
10612
|
gap: "var(--spacing-8)",
|
|
10016
10613
|
p: "var(--spacing-6)",
|
|
10017
10614
|
children: [
|
|
10018
|
-
/* @__PURE__ */ (0,
|
|
10019
|
-
/* @__PURE__ */ (0,
|
|
10020
|
-
/* @__PURE__ */ (0,
|
|
10021
|
-
/* @__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 }) })
|
|
10022
10619
|
] }),
|
|
10023
|
-
/* @__PURE__ */ (0,
|
|
10024
|
-
/* @__PURE__ */ (0,
|
|
10025
|
-
/* @__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 }) })
|
|
10026
10623
|
] }),
|
|
10027
|
-
/* @__PURE__ */ (0,
|
|
10028
|
-
/* @__PURE__ */ (0,
|
|
10029
|
-
/* @__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)(
|
|
10030
10627
|
Box_default,
|
|
10031
10628
|
{
|
|
10032
10629
|
maxWidth: "320px",
|
|
10033
10630
|
border: "1px solid var(--color-neutral-200)",
|
|
10034
10631
|
p: "var(--spacing-4)",
|
|
10035
|
-
children: /* @__PURE__ */ (0,
|
|
10632
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Reviews_default, { ...sampleData })
|
|
10036
10633
|
}
|
|
10037
10634
|
)
|
|
10038
10635
|
] })
|
|
@@ -10068,6 +10665,8 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
10068
10665
|
Icon,
|
|
10069
10666
|
IconLabel,
|
|
10070
10667
|
IconSizeMap,
|
|
10668
|
+
ImageGalleryModal,
|
|
10669
|
+
ImageGalleryModalComponent,
|
|
10071
10670
|
InfoBox,
|
|
10072
10671
|
Input,
|
|
10073
10672
|
LandownerProfile,
|
|
@@ -10076,6 +10675,8 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
10076
10675
|
Logo,
|
|
10077
10676
|
MarkdownContent,
|
|
10078
10677
|
MessageBubble,
|
|
10678
|
+
Modal,
|
|
10679
|
+
ModalComponent,
|
|
10079
10680
|
Navigation,
|
|
10080
10681
|
PackageCard,
|
|
10081
10682
|
PackageHeader,
|