@landtrustinc/design-system 1.2.71 → 1.2.72
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.js +315 -302
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6198,8 +6198,8 @@ function useBottomDrawer(options) {
|
|
|
6198
6198
|
var useBottomDrawer_default = useBottomDrawer;
|
|
6199
6199
|
|
|
6200
6200
|
// src/ChatWidget/ChatWidget.tsx
|
|
6201
|
-
var
|
|
6202
|
-
var
|
|
6201
|
+
var import_react43 = require("@emotion/react");
|
|
6202
|
+
var import_react44 = __toESM(require("react"));
|
|
6203
6203
|
|
|
6204
6204
|
// src/Divider/Divider.tsx
|
|
6205
6205
|
var import_styled4 = __toESM(require("@emotion/styled"));
|
|
@@ -6574,11 +6574,32 @@ var TagChip = ({
|
|
|
6574
6574
|
var TagChip_default = TagChip;
|
|
6575
6575
|
|
|
6576
6576
|
// src/Widget/Widget.tsx
|
|
6577
|
-
var
|
|
6577
|
+
var import_react36 = require("react");
|
|
6578
|
+
|
|
6579
|
+
// src/Widget/hooks/useWidgetScrollLock.ts
|
|
6580
|
+
var import_react34 = require("react");
|
|
6581
|
+
var useWidgetScrollLock = (isExpanded, containerRef) => {
|
|
6582
|
+
(0, import_react34.useEffect)(() => {
|
|
6583
|
+
if (!isExpanded)
|
|
6584
|
+
return;
|
|
6585
|
+
const scrollY = window.scrollY;
|
|
6586
|
+
const html = document.documentElement;
|
|
6587
|
+
const originalOverflow = html.style.overflow;
|
|
6588
|
+
const originalOverscrollBehavior = html.style.overscrollBehavior;
|
|
6589
|
+
html.style.overflow = "hidden";
|
|
6590
|
+
html.style.overscrollBehavior = "none";
|
|
6591
|
+
return () => {
|
|
6592
|
+
html.style.overflow = originalOverflow;
|
|
6593
|
+
html.style.overscrollBehavior = originalOverscrollBehavior;
|
|
6594
|
+
window.scrollTo(0, scrollY);
|
|
6595
|
+
};
|
|
6596
|
+
}, [isExpanded, containerRef]);
|
|
6597
|
+
};
|
|
6598
|
+
var useWidgetScrollLock_default = useWidgetScrollLock;
|
|
6578
6599
|
|
|
6579
6600
|
// src/Widget/Widget.styles.ts
|
|
6580
|
-
var
|
|
6581
|
-
var panelContainer =
|
|
6601
|
+
var import_react35 = require("@emotion/react");
|
|
6602
|
+
var panelContainer = import_react35.css`
|
|
6582
6603
|
position: absolute;
|
|
6583
6604
|
right: 0;
|
|
6584
6605
|
bottom: calc(100% + var(--spacing-2));
|
|
@@ -6587,12 +6608,14 @@ var panelContainer = import_react34.css`
|
|
|
6587
6608
|
@media (max-width: calc(${screens.lg} - 1px)) {
|
|
6588
6609
|
position: fixed;
|
|
6589
6610
|
inset: 0;
|
|
6611
|
+
background: var(--surface-page);
|
|
6612
|
+
overscroll-behavior: contain;
|
|
6590
6613
|
display: flex;
|
|
6614
|
+
flex-direction: column;
|
|
6591
6615
|
align-items: stretch;
|
|
6592
|
-
justify-content: stretch;
|
|
6593
6616
|
}
|
|
6594
6617
|
`;
|
|
6595
|
-
var panelCard = (width2) =>
|
|
6618
|
+
var panelCard = (width2) => import_react35.css`
|
|
6596
6619
|
background: var(--surface-page);
|
|
6597
6620
|
color: var(--text-primary);
|
|
6598
6621
|
border: 1px solid var(--border-primary);
|
|
@@ -6619,8 +6642,9 @@ var panelCard = (width2) => import_react34.css`
|
|
|
6619
6642
|
|
|
6620
6643
|
@media (max-width: calc(${screens.lg} - 1px)) {
|
|
6621
6644
|
width: 100%;
|
|
6622
|
-
height: 100
|
|
6645
|
+
height: var(--widget-panel-height, 100%);
|
|
6623
6646
|
max-height: none;
|
|
6647
|
+
margin-top: var(--widget-panel-top, 0px);
|
|
6624
6648
|
border-radius: 0;
|
|
6625
6649
|
padding: var(--spacing-4);
|
|
6626
6650
|
padding-bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom));
|
|
@@ -6628,16 +6652,16 @@ var panelCard = (width2) => import_react34.css`
|
|
|
6628
6652
|
animation: none;
|
|
6629
6653
|
}
|
|
6630
6654
|
`;
|
|
6631
|
-
var widgetTrigger =
|
|
6655
|
+
var widgetTrigger = import_react35.css`
|
|
6632
6656
|
margin: var(--spacing-1);
|
|
6633
6657
|
box-shadow: var(--shadow-2xl);
|
|
6634
6658
|
`;
|
|
6635
6659
|
|
|
6636
6660
|
// src/Widget/Widget.tsx
|
|
6637
6661
|
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6638
|
-
var WidgetContext = (0,
|
|
6662
|
+
var WidgetContext = (0, import_react36.createContext)(null);
|
|
6639
6663
|
var useWidgetContext = () => {
|
|
6640
|
-
const ctx = (0,
|
|
6664
|
+
const ctx = (0, import_react36.useContext)(WidgetContext);
|
|
6641
6665
|
if (!ctx)
|
|
6642
6666
|
throw new Error("Widget subcomponents must be used within <Widget>");
|
|
6643
6667
|
return ctx;
|
|
@@ -6660,8 +6684,8 @@ var WidgetTrigger = () => {
|
|
|
6660
6684
|
};
|
|
6661
6685
|
var WidgetPanel = ({ className, style, children }) => {
|
|
6662
6686
|
const { expanded, panelWidth } = useWidgetContext();
|
|
6663
|
-
const panelRef = (0,
|
|
6664
|
-
(0,
|
|
6687
|
+
const panelRef = (0, import_react36.useRef)(null);
|
|
6688
|
+
(0, import_react36.useEffect)(() => {
|
|
6665
6689
|
if (!expanded)
|
|
6666
6690
|
return;
|
|
6667
6691
|
const vv = window.visualViewport;
|
|
@@ -6675,14 +6699,20 @@ var WidgetPanel = ({ className, style, children }) => {
|
|
|
6675
6699
|
`(max-width: calc(${screens.lg} - 1px))`
|
|
6676
6700
|
).matches;
|
|
6677
6701
|
if (!isMobile) {
|
|
6678
|
-
el.style.height
|
|
6702
|
+
el.style.removeProperty("--widget-panel-height");
|
|
6703
|
+
el.style.removeProperty("--widget-panel-top");
|
|
6679
6704
|
return;
|
|
6680
6705
|
}
|
|
6681
|
-
el.style.height
|
|
6706
|
+
el.style.setProperty("--widget-panel-height", `${vv.height}px`);
|
|
6707
|
+
el.style.setProperty("--widget-panel-top", `${vv.offsetTop}px`);
|
|
6682
6708
|
};
|
|
6683
6709
|
vv.addEventListener("resize", onResize);
|
|
6710
|
+
vv.addEventListener("scroll", onResize);
|
|
6684
6711
|
onResize();
|
|
6685
|
-
return () =>
|
|
6712
|
+
return () => {
|
|
6713
|
+
vv.removeEventListener("resize", onResize);
|
|
6714
|
+
vv.removeEventListener("scroll", onResize);
|
|
6715
|
+
};
|
|
6686
6716
|
}, [expanded]);
|
|
6687
6717
|
if (!expanded)
|
|
6688
6718
|
return null;
|
|
@@ -6719,12 +6749,12 @@ var WidgetRoot = ({
|
|
|
6719
6749
|
containerProps,
|
|
6720
6750
|
closeOnClickOutside = true
|
|
6721
6751
|
}) => {
|
|
6722
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
6752
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react36.useState)(defaultExpanded);
|
|
6723
6753
|
const isControlled = typeof expanded === "boolean";
|
|
6724
6754
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
6725
|
-
const triggerRef = (0,
|
|
6726
|
-
const containerRef = (0,
|
|
6727
|
-
const setExpanded = (0,
|
|
6755
|
+
const triggerRef = (0, import_react36.useRef)(null);
|
|
6756
|
+
const containerRef = (0, import_react36.useRef)(null);
|
|
6757
|
+
const setExpanded = (0, import_react36.useCallback)(
|
|
6728
6758
|
(next) => {
|
|
6729
6759
|
if (!isControlled)
|
|
6730
6760
|
setInternalExpanded(next);
|
|
@@ -6738,11 +6768,11 @@ var WidgetRoot = ({
|
|
|
6738
6768
|
},
|
|
6739
6769
|
[isControlled, onExpandedChange]
|
|
6740
6770
|
);
|
|
6741
|
-
const toggle = (0,
|
|
6771
|
+
const toggle = (0, import_react36.useCallback)(
|
|
6742
6772
|
() => setExpanded(!isExpanded),
|
|
6743
6773
|
[isExpanded, setExpanded]
|
|
6744
6774
|
);
|
|
6745
|
-
(0,
|
|
6775
|
+
(0, import_react36.useEffect)(() => {
|
|
6746
6776
|
if (!isExpanded || !closeOnClickOutside)
|
|
6747
6777
|
return;
|
|
6748
6778
|
const onDocClick = (e) => {
|
|
@@ -6756,7 +6786,7 @@ var WidgetRoot = ({
|
|
|
6756
6786
|
document.addEventListener("mousedown", onDocClick);
|
|
6757
6787
|
return () => document.removeEventListener("mousedown", onDocClick);
|
|
6758
6788
|
}, [isExpanded, setExpanded, closeOnClickOutside]);
|
|
6759
|
-
(0,
|
|
6789
|
+
(0, import_react36.useEffect)(() => {
|
|
6760
6790
|
if (!isExpanded)
|
|
6761
6791
|
return;
|
|
6762
6792
|
const onKey = (e) => {
|
|
@@ -6766,25 +6796,8 @@ var WidgetRoot = ({
|
|
|
6766
6796
|
document.addEventListener("keydown", onKey);
|
|
6767
6797
|
return () => document.removeEventListener("keydown", onKey);
|
|
6768
6798
|
}, [isExpanded, setExpanded]);
|
|
6769
|
-
(
|
|
6770
|
-
|
|
6771
|
-
return;
|
|
6772
|
-
const mql = window.matchMedia(`(max-width: calc(${screens.lg} - 1px))`);
|
|
6773
|
-
const originalOverflow = document.body.style.overflow;
|
|
6774
|
-
const applyScrollLock = (isMobile) => {
|
|
6775
|
-
document.body.style.overflow = isMobile ? "hidden" : originalOverflow;
|
|
6776
|
-
};
|
|
6777
|
-
const handleChange = (e) => {
|
|
6778
|
-
applyScrollLock(e.matches);
|
|
6779
|
-
};
|
|
6780
|
-
applyScrollLock(mql.matches);
|
|
6781
|
-
mql.addEventListener("change", handleChange);
|
|
6782
|
-
return () => {
|
|
6783
|
-
mql.removeEventListener("change", handleChange);
|
|
6784
|
-
document.body.style.overflow = originalOverflow;
|
|
6785
|
-
};
|
|
6786
|
-
}, [isExpanded]);
|
|
6787
|
-
const value = (0, import_react35.useMemo)(
|
|
6799
|
+
useWidgetScrollLock_default(isExpanded, containerRef);
|
|
6800
|
+
const value = (0, import_react36.useMemo)(
|
|
6788
6801
|
() => ({
|
|
6789
6802
|
expanded: isExpanded,
|
|
6790
6803
|
toggle,
|
|
@@ -6817,8 +6830,8 @@ var Widget = Object.assign(WidgetRoot, {
|
|
|
6817
6830
|
var Widget_default = Widget;
|
|
6818
6831
|
|
|
6819
6832
|
// src/ChatWidget/ChatWidget.styles.ts
|
|
6820
|
-
var
|
|
6821
|
-
var sentWrapperStyles =
|
|
6833
|
+
var import_react37 = require("@emotion/react");
|
|
6834
|
+
var sentWrapperStyles = import_react37.css`
|
|
6822
6835
|
align-self: flex-end;
|
|
6823
6836
|
max-width: 90%;
|
|
6824
6837
|
width: 100%;
|
|
@@ -6830,14 +6843,14 @@ var sentWrapperStyles = import_react36.css`
|
|
|
6830
6843
|
padding-top: var(--spacing-4);
|
|
6831
6844
|
}
|
|
6832
6845
|
`;
|
|
6833
|
-
var receivedWrapperStyles =
|
|
6846
|
+
var receivedWrapperStyles = import_react37.css`
|
|
6834
6847
|
align-self: flex-start;
|
|
6835
6848
|
width: 100%;
|
|
6836
6849
|
min-width: 0;
|
|
6837
6850
|
overflow-wrap: anywhere;
|
|
6838
6851
|
padding-top: var(--spacing-4);
|
|
6839
6852
|
`;
|
|
6840
|
-
var containerStyles2 =
|
|
6853
|
+
var containerStyles2 = import_react37.css`
|
|
6841
6854
|
display: flex;
|
|
6842
6855
|
flex-direction: column;
|
|
6843
6856
|
min-height: 0;
|
|
@@ -6849,13 +6862,13 @@ var containerStyles2 = import_react36.css`
|
|
|
6849
6862
|
max-height: 80vh;
|
|
6850
6863
|
}
|
|
6851
6864
|
`;
|
|
6852
|
-
var thinkingRowStyles =
|
|
6865
|
+
var thinkingRowStyles = import_react37.css`
|
|
6853
6866
|
display: flex;
|
|
6854
6867
|
align-items: center;
|
|
6855
6868
|
gap: var(--spacing-2);
|
|
6856
6869
|
color: var(--text-primary);
|
|
6857
6870
|
`;
|
|
6858
|
-
var thinkingTextStyles =
|
|
6871
|
+
var thinkingTextStyles = import_react37.css`
|
|
6859
6872
|
animation: ltchat-pulse 1.6s ease-in-out infinite;
|
|
6860
6873
|
|
|
6861
6874
|
@keyframes ltchat-pulse {
|
|
@@ -6868,7 +6881,7 @@ var thinkingTextStyles = import_react36.css`
|
|
|
6868
6881
|
}
|
|
6869
6882
|
}
|
|
6870
6883
|
`;
|
|
6871
|
-
var badge =
|
|
6884
|
+
var badge = import_react37.css`
|
|
6872
6885
|
width: var(--spacing-11);
|
|
6873
6886
|
height: var(--spacing-11);
|
|
6874
6887
|
border-radius: var(--radius-round);
|
|
@@ -6878,12 +6891,12 @@ var badge = import_react36.css`
|
|
|
6878
6891
|
background-color: var(--color-primary-500);
|
|
6879
6892
|
color: var(--color-base-white);
|
|
6880
6893
|
`;
|
|
6881
|
-
var closeButtonContent =
|
|
6894
|
+
var closeButtonContent = import_react37.css`
|
|
6882
6895
|
display: inline-flex;
|
|
6883
6896
|
align-items: center;
|
|
6884
6897
|
gap: var(--spacing-2);
|
|
6885
6898
|
`;
|
|
6886
|
-
var scrollToBottomButtonStyles =
|
|
6899
|
+
var scrollToBottomButtonStyles = import_react37.css`
|
|
6887
6900
|
position: absolute;
|
|
6888
6901
|
bottom: var(--spacing-4);
|
|
6889
6902
|
left: 50%;
|
|
@@ -6900,11 +6913,11 @@ var scrollToBottomButtonStyles = import_react36.css`
|
|
|
6900
6913
|
`;
|
|
6901
6914
|
|
|
6902
6915
|
// src/ChatWidget/components/AskBuckButton.tsx
|
|
6903
|
-
var
|
|
6916
|
+
var import_react39 = __toESM(require("react"));
|
|
6904
6917
|
|
|
6905
6918
|
// src/ChatWidget/components/AskBuckButton.styles.ts
|
|
6906
|
-
var
|
|
6907
|
-
var rotateGradient =
|
|
6919
|
+
var import_react38 = require("@emotion/react");
|
|
6920
|
+
var rotateGradient = import_react38.keyframes`
|
|
6908
6921
|
0% {
|
|
6909
6922
|
--gradient-angle: 0deg;
|
|
6910
6923
|
}
|
|
@@ -6912,7 +6925,7 @@ var rotateGradient = import_react37.keyframes`
|
|
|
6912
6925
|
--gradient-angle: 360deg;
|
|
6913
6926
|
}
|
|
6914
6927
|
`;
|
|
6915
|
-
var triggerWrapperStyles = (isAnimating) =>
|
|
6928
|
+
var triggerWrapperStyles = (isAnimating) => import_react38.css`
|
|
6916
6929
|
position: relative;
|
|
6917
6930
|
display: inline-block;
|
|
6918
6931
|
|
|
@@ -6926,7 +6939,7 @@ var triggerWrapperStyles = (isAnimating) => import_react37.css`
|
|
|
6926
6939
|
box-shadow: 0px 0px var(--shadow-blur-lg, 24px)
|
|
6927
6940
|
var(--shadow-spread-xs, -4px) rgba(17, 17, 17, 0.1);
|
|
6928
6941
|
|
|
6929
|
-
${isAnimating ?
|
|
6942
|
+
${isAnimating ? import_react38.css`
|
|
6930
6943
|
/* Register the custom property */
|
|
6931
6944
|
@property --gradient-angle {
|
|
6932
6945
|
syntax: '<angle>';
|
|
@@ -6944,13 +6957,13 @@ var triggerWrapperStyles = (isAnimating) => import_react37.css`
|
|
|
6944
6957
|
var(--color-primary-600) 100%
|
|
6945
6958
|
);
|
|
6946
6959
|
animation: ${rotateGradient} 3s linear infinite;
|
|
6947
|
-
` :
|
|
6960
|
+
` : import_react38.css`
|
|
6948
6961
|
/* Static border when not animating */
|
|
6949
6962
|
background: var(--color-primary-600);
|
|
6950
6963
|
`}
|
|
6951
6964
|
}
|
|
6952
6965
|
`;
|
|
6953
|
-
var badgeStyles =
|
|
6966
|
+
var badgeStyles = import_react38.css`
|
|
6954
6967
|
display: inline-flex;
|
|
6955
6968
|
align-items: center;
|
|
6956
6969
|
justify-content: center;
|
|
@@ -6965,7 +6978,7 @@ var badgeStyles = import_react37.css`
|
|
|
6965
6978
|
flex-shrink: 0;
|
|
6966
6979
|
margin-right: var(--spacing-1);
|
|
6967
6980
|
`;
|
|
6968
|
-
var buttonOverrideStyles =
|
|
6981
|
+
var buttonOverrideStyles = import_react38.css`
|
|
6969
6982
|
background: var(--surface-page);
|
|
6970
6983
|
border: none;
|
|
6971
6984
|
border-radius: var(--radius-round);
|
|
@@ -6994,10 +7007,10 @@ var buttonOverrideStyles = import_react37.css`
|
|
|
6994
7007
|
|
|
6995
7008
|
// src/ChatWidget/components/AskBuckButton.tsx
|
|
6996
7009
|
var import_jsx_runtime232 = require("@emotion/react/jsx-runtime");
|
|
6997
|
-
var AskBuckButton =
|
|
7010
|
+
var AskBuckButton = import_react39.default.forwardRef(
|
|
6998
7011
|
({ isAnimating = true, children = "Ask Buck", badgeCount }, ref) => {
|
|
6999
7012
|
var _a;
|
|
7000
|
-
const widgetContext = (0,
|
|
7013
|
+
const widgetContext = (0, import_react39.useContext)(WidgetContext);
|
|
7001
7014
|
const isExpanded = (_a = widgetContext == null ? void 0 : widgetContext.expanded) != null ? _a : false;
|
|
7002
7015
|
const showBadge = !isExpanded && badgeCount !== void 0 && badgeCount > 0;
|
|
7003
7016
|
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", { css: triggerWrapperStyles(isAnimating), children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
@@ -7027,10 +7040,10 @@ AskBuckButton.displayName = "AskBuckButton";
|
|
|
7027
7040
|
var AskBuckButton_default = AskBuckButton;
|
|
7028
7041
|
|
|
7029
7042
|
// src/ChatWidget/components/ThinkingIndicator.tsx
|
|
7030
|
-
var
|
|
7043
|
+
var import_react41 = require("@emotion/react");
|
|
7031
7044
|
|
|
7032
7045
|
// src/LottieAnimations/LottieAnimations.tsx
|
|
7033
|
-
var
|
|
7046
|
+
var import_react40 = require("react");
|
|
7034
7047
|
|
|
7035
7048
|
// src/LottieAnimations/animations/loading.ts
|
|
7036
7049
|
var loadingAnimationData = {
|
|
@@ -7526,8 +7539,8 @@ var LottieAnimations = ({
|
|
|
7526
7539
|
style,
|
|
7527
7540
|
...props
|
|
7528
7541
|
}) => {
|
|
7529
|
-
const [LottieComponent, setLottieComponent] = (0,
|
|
7530
|
-
(0,
|
|
7542
|
+
const [LottieComponent, setLottieComponent] = (0, import_react40.useState)(null);
|
|
7543
|
+
(0, import_react40.useEffect)(() => {
|
|
7531
7544
|
let isMounted = true;
|
|
7532
7545
|
import("lottie-react").then((module2) => {
|
|
7533
7546
|
if (isMounted) {
|
|
@@ -7566,7 +7579,7 @@ var ThinkingIndicator = ({ thinkingText }) => {
|
|
|
7566
7579
|
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7567
7580
|
"div",
|
|
7568
7581
|
{
|
|
7569
|
-
css:
|
|
7582
|
+
css: import_react41.css`
|
|
7570
7583
|
width: 48px;
|
|
7571
7584
|
height: 24px;
|
|
7572
7585
|
overflow: hidden;
|
|
@@ -7592,25 +7605,25 @@ var ThinkingIndicator = ({ thinkingText }) => {
|
|
|
7592
7605
|
var ThinkingIndicator_default = ThinkingIndicator;
|
|
7593
7606
|
|
|
7594
7607
|
// src/ChatWidget/hooks/useChatScrollControl.ts
|
|
7595
|
-
var
|
|
7608
|
+
var import_react42 = require("react");
|
|
7596
7609
|
var useChatScrollControl = ({
|
|
7597
7610
|
messages,
|
|
7598
7611
|
isThinking,
|
|
7599
7612
|
isExpanded,
|
|
7600
7613
|
enableScrollToBottomControl
|
|
7601
7614
|
}) => {
|
|
7602
|
-
const scrollRef = (0,
|
|
7603
|
-
const savedScrollPosition = (0,
|
|
7604
|
-
const previousMessagesLengthRef = (0,
|
|
7605
|
-
const previousIsThinkingRef = (0,
|
|
7606
|
-
const userJustSentMessageRef = (0,
|
|
7607
|
-
const [isAtBottom, setIsAtBottom] = (0,
|
|
7608
|
-
const [showScrollButton, setShowScrollButton] = (0,
|
|
7609
|
-
const isScrolledToBottom = (0,
|
|
7615
|
+
const scrollRef = (0, import_react42.useRef)(null);
|
|
7616
|
+
const savedScrollPosition = (0, import_react42.useRef)(0);
|
|
7617
|
+
const previousMessagesLengthRef = (0, import_react42.useRef)(messages.length);
|
|
7618
|
+
const previousIsThinkingRef = (0, import_react42.useRef)(isThinking);
|
|
7619
|
+
const userJustSentMessageRef = (0, import_react42.useRef)(false);
|
|
7620
|
+
const [isAtBottom, setIsAtBottom] = (0, import_react42.useState)(true);
|
|
7621
|
+
const [showScrollButton, setShowScrollButton] = (0, import_react42.useState)(false);
|
|
7622
|
+
const isScrolledToBottom = (0, import_react42.useCallback)((el) => {
|
|
7610
7623
|
const threshold = 50;
|
|
7611
7624
|
return el.scrollTop + el.clientHeight >= el.scrollHeight - threshold;
|
|
7612
7625
|
}, []);
|
|
7613
|
-
const scrollToBottom = (0,
|
|
7626
|
+
const scrollToBottom = (0, import_react42.useCallback)((behavior = "smooth") => {
|
|
7614
7627
|
const el = scrollRef.current;
|
|
7615
7628
|
if (!el)
|
|
7616
7629
|
return;
|
|
@@ -7619,15 +7632,15 @@ var useChatScrollControl = ({
|
|
|
7619
7632
|
setIsAtBottom(true);
|
|
7620
7633
|
setShowScrollButton(false);
|
|
7621
7634
|
}, []);
|
|
7622
|
-
const saveCurrentScrollPosition = (0,
|
|
7635
|
+
const saveCurrentScrollPosition = (0, import_react42.useCallback)(() => {
|
|
7623
7636
|
if (!scrollRef.current)
|
|
7624
7637
|
return;
|
|
7625
7638
|
savedScrollPosition.current = scrollRef.current.scrollTop;
|
|
7626
7639
|
}, []);
|
|
7627
|
-
const markUserMessageSubmitted = (0,
|
|
7640
|
+
const markUserMessageSubmitted = (0, import_react42.useCallback)(() => {
|
|
7628
7641
|
userJustSentMessageRef.current = true;
|
|
7629
7642
|
}, []);
|
|
7630
|
-
(0,
|
|
7643
|
+
(0, import_react42.useEffect)(() => {
|
|
7631
7644
|
const el = scrollRef.current;
|
|
7632
7645
|
if (!el || !isExpanded)
|
|
7633
7646
|
return;
|
|
@@ -7640,7 +7653,7 @@ var useChatScrollControl = ({
|
|
|
7640
7653
|
setShowScrollButton(enableScrollToBottomControl && !atBottom);
|
|
7641
7654
|
});
|
|
7642
7655
|
}, [isExpanded, isScrolledToBottom, enableScrollToBottomControl]);
|
|
7643
|
-
(0,
|
|
7656
|
+
(0, import_react42.useEffect)(() => {
|
|
7644
7657
|
const el = scrollRef.current;
|
|
7645
7658
|
if (!el || !isExpanded)
|
|
7646
7659
|
return;
|
|
@@ -7654,7 +7667,7 @@ var useChatScrollControl = ({
|
|
|
7654
7667
|
el.addEventListener("scroll", handleScroll);
|
|
7655
7668
|
return () => el.removeEventListener("scroll", handleScroll);
|
|
7656
7669
|
}, [isExpanded, isScrolledToBottom, enableScrollToBottomControl]);
|
|
7657
|
-
(0,
|
|
7670
|
+
(0, import_react42.useEffect)(() => {
|
|
7658
7671
|
const el = scrollRef.current;
|
|
7659
7672
|
if (!el || !isExpanded)
|
|
7660
7673
|
return;
|
|
@@ -7737,9 +7750,9 @@ var ChatWidget = ({
|
|
|
7737
7750
|
closeOnClickOutside = true,
|
|
7738
7751
|
enableScrollToBottomControl = true
|
|
7739
7752
|
}) => {
|
|
7740
|
-
const [value, setValue] = (0,
|
|
7753
|
+
const [value, setValue] = (0, import_react44.useState)("");
|
|
7741
7754
|
const isControlled = typeof expanded === "boolean";
|
|
7742
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
7755
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react44.useState)(defaultExpanded);
|
|
7743
7756
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
7744
7757
|
const {
|
|
7745
7758
|
scrollRef,
|
|
@@ -7753,7 +7766,7 @@ var ChatWidget = ({
|
|
|
7753
7766
|
isExpanded,
|
|
7754
7767
|
enableScrollToBottomControl
|
|
7755
7768
|
});
|
|
7756
|
-
const setExpanded = (0,
|
|
7769
|
+
const setExpanded = (0, import_react44.useCallback)(
|
|
7757
7770
|
(next) => {
|
|
7758
7771
|
if (!next)
|
|
7759
7772
|
saveCurrentScrollPosition();
|
|
@@ -7768,21 +7781,21 @@ var ChatWidget = ({
|
|
|
7768
7781
|
const firstAIResponseIndex = messagesToRender.findIndex(
|
|
7769
7782
|
(element) => element.type === AIResponse_default
|
|
7770
7783
|
);
|
|
7771
|
-
const renderedMessages = (0,
|
|
7784
|
+
const renderedMessages = (0, import_react44.useMemo)(
|
|
7772
7785
|
() => messagesToRender.map((element, index) => {
|
|
7773
7786
|
var _a, _b;
|
|
7774
7787
|
const key = (_a = element.key) != null ? _a : index;
|
|
7775
7788
|
if (element.type === AIResponse_default) {
|
|
7776
7789
|
const aiElement = element;
|
|
7777
7790
|
const shouldShowTitleOnElement = index === firstAIResponseIndex ? (_b = aiElement.props.showTitle) != null ? _b : true : false;
|
|
7778
|
-
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Box_default, { css: receivedWrapperStyles, children:
|
|
7791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Box_default, { css: receivedWrapperStyles, children: import_react44.default.cloneElement(aiElement, {
|
|
7779
7792
|
showTitle: shouldShowTitleOnElement
|
|
7780
7793
|
}) }, key);
|
|
7781
7794
|
}
|
|
7782
7795
|
if (element.type === MessageBubble_default) {
|
|
7783
7796
|
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Box_default, { css: sentWrapperStyles, children: element }, key);
|
|
7784
7797
|
}
|
|
7785
|
-
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(import_react44.default.Fragment, { children: element }, key);
|
|
7786
7799
|
}),
|
|
7787
7800
|
[messagesToRender, firstAIResponseIndex]
|
|
7788
7801
|
);
|
|
@@ -7856,7 +7869,7 @@ var ChatWidget = ({
|
|
|
7856
7869
|
display: "flex",
|
|
7857
7870
|
flexDirection: "column",
|
|
7858
7871
|
gap: "var(--spacing-2)",
|
|
7859
|
-
css:
|
|
7872
|
+
css: import_react43.css`
|
|
7860
7873
|
overscroll-behavior: contain;
|
|
7861
7874
|
`,
|
|
7862
7875
|
children: [
|
|
@@ -7919,7 +7932,7 @@ var ChatWidget = ({
|
|
|
7919
7932
|
icon: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Icon_default, { variant: "AngleDownSharp" }),
|
|
7920
7933
|
onClick: () => scrollToBottom("smooth"),
|
|
7921
7934
|
"aria-label": "Scroll to bottom",
|
|
7922
|
-
css:
|
|
7935
|
+
css: import_react43.css`
|
|
7923
7936
|
background-color: var(--color-base-white);
|
|
7924
7937
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
7925
7938
|
`
|
|
@@ -7951,7 +7964,7 @@ var ChatWidget = ({
|
|
|
7951
7964
|
var ChatWidget_default = ChatWidget;
|
|
7952
7965
|
|
|
7953
7966
|
// src/CtaCard/CtaCard.tsx
|
|
7954
|
-
var
|
|
7967
|
+
var import_react45 = require("react");
|
|
7955
7968
|
var import_jsx_runtime236 = require("@emotion/react/jsx-runtime");
|
|
7956
7969
|
var CtaCard = ({
|
|
7957
7970
|
title,
|
|
@@ -7963,7 +7976,7 @@ var CtaCard = ({
|
|
|
7963
7976
|
onCtaClick,
|
|
7964
7977
|
className
|
|
7965
7978
|
}) => {
|
|
7966
|
-
(0,
|
|
7979
|
+
(0, import_react45.useEffect)(() => {
|
|
7967
7980
|
onDisplay == null ? void 0 : onDisplay();
|
|
7968
7981
|
}, [onDisplay]);
|
|
7969
7982
|
const showButton = ctaUrl || onCtaClick;
|
|
@@ -8013,7 +8026,7 @@ CtaCard.displayName = "CtaCard";
|
|
|
8013
8026
|
var CtaCard_default = CtaCard;
|
|
8014
8027
|
|
|
8015
8028
|
// src/FeatureList/components/FeatureListItem.tsx
|
|
8016
|
-
var
|
|
8029
|
+
var import_react46 = require("@emotion/react");
|
|
8017
8030
|
var import_react_loading_skeleton = __toESM(require("react-loading-skeleton"));
|
|
8018
8031
|
var import_jsx_runtime237 = require("@emotion/react/jsx-runtime");
|
|
8019
8032
|
var FeatureListItem = ({
|
|
@@ -8082,7 +8095,7 @@ var FeatureListItem = ({
|
|
|
8082
8095
|
variant: iconVariant,
|
|
8083
8096
|
size: iconSize,
|
|
8084
8097
|
fill: iconColor,
|
|
8085
|
-
css:
|
|
8098
|
+
css: import_react46.css`
|
|
8086
8099
|
flex-shrink: 0;
|
|
8087
8100
|
`
|
|
8088
8101
|
}
|
|
@@ -8119,8 +8132,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
8119
8132
|
var FeatureList_default = FeatureList;
|
|
8120
8133
|
|
|
8121
8134
|
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
8122
|
-
var
|
|
8123
|
-
var cardContainerStyles =
|
|
8135
|
+
var import_react47 = require("@emotion/react");
|
|
8136
|
+
var cardContainerStyles = import_react47.css`
|
|
8124
8137
|
position: relative;
|
|
8125
8138
|
height: 335px;
|
|
8126
8139
|
|
|
@@ -8128,12 +8141,12 @@ var cardContainerStyles = import_react46.css`
|
|
|
8128
8141
|
height: 480px;
|
|
8129
8142
|
}
|
|
8130
8143
|
`;
|
|
8131
|
-
var cardContentStyles =
|
|
8144
|
+
var cardContentStyles = import_react47.css`
|
|
8132
8145
|
position: relative;
|
|
8133
8146
|
border-radius: var(--spacing-4);
|
|
8134
8147
|
overflow: hidden;
|
|
8135
8148
|
`;
|
|
8136
|
-
var getBackgroundWithGradient = (imageUrl) =>
|
|
8149
|
+
var getBackgroundWithGradient = (imageUrl) => import_react47.css`
|
|
8137
8150
|
background-image: linear-gradient(
|
|
8138
8151
|
180deg,
|
|
8139
8152
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -8183,14 +8196,14 @@ var FieldNoteCard = ({
|
|
|
8183
8196
|
var FieldNoteCard_default = FieldNoteCard;
|
|
8184
8197
|
|
|
8185
8198
|
// src/Form/FormField.tsx
|
|
8186
|
-
var
|
|
8199
|
+
var import_react48 = require("@emotion/react");
|
|
8187
8200
|
var import_jsx_runtime240 = require("@emotion/react/jsx-runtime");
|
|
8188
|
-
var fieldContainerStyles =
|
|
8201
|
+
var fieldContainerStyles = import_react48.css`
|
|
8189
8202
|
display: flex;
|
|
8190
8203
|
flex-direction: column;
|
|
8191
8204
|
gap: ${space["2"]};
|
|
8192
8205
|
`;
|
|
8193
|
-
var labelStyles2 =
|
|
8206
|
+
var labelStyles2 = import_react48.css`
|
|
8194
8207
|
font-family: ${fonts.base};
|
|
8195
8208
|
font-size: ${fontSizes.sm};
|
|
8196
8209
|
font-weight: ${fontWeights.medium};
|
|
@@ -8198,17 +8211,17 @@ var labelStyles2 = import_react47.css`
|
|
|
8198
8211
|
color: ${colors.gray["900"]};
|
|
8199
8212
|
margin-bottom: ${space["1"]};
|
|
8200
8213
|
`;
|
|
8201
|
-
var requiredIndicatorStyles =
|
|
8214
|
+
var requiredIndicatorStyles = import_react48.css`
|
|
8202
8215
|
color: ${colors.red["500"]};
|
|
8203
8216
|
margin-left: ${space["1"]};
|
|
8204
8217
|
`;
|
|
8205
|
-
var helpTextStyles =
|
|
8218
|
+
var helpTextStyles = import_react48.css`
|
|
8206
8219
|
font-family: ${fonts.base};
|
|
8207
8220
|
font-size: ${fontSizes.sm};
|
|
8208
8221
|
line-height: ${lineHeights.tight};
|
|
8209
8222
|
color: ${colors.gray["600"]};
|
|
8210
8223
|
`;
|
|
8211
|
-
var errorTextStyles =
|
|
8224
|
+
var errorTextStyles = import_react48.css`
|
|
8212
8225
|
font-family: ${fonts.base};
|
|
8213
8226
|
font-size: ${fontSizes.sm};
|
|
8214
8227
|
line-height: ${lineHeights.tight};
|
|
@@ -8217,7 +8230,7 @@ var errorTextStyles = import_react47.css`
|
|
|
8217
8230
|
align-items: center;
|
|
8218
8231
|
gap: ${space["1"]};
|
|
8219
8232
|
`;
|
|
8220
|
-
var successTextStyles =
|
|
8233
|
+
var successTextStyles = import_react48.css`
|
|
8221
8234
|
font-family: ${fonts.base};
|
|
8222
8235
|
font-size: ${fontSizes.sm};
|
|
8223
8236
|
line-height: ${lineHeights.tight};
|
|
@@ -8226,7 +8239,7 @@ var successTextStyles = import_react47.css`
|
|
|
8226
8239
|
align-items: center;
|
|
8227
8240
|
gap: ${space["1"]};
|
|
8228
8241
|
`;
|
|
8229
|
-
var visuallyHiddenStyles =
|
|
8242
|
+
var visuallyHiddenStyles = import_react48.css`
|
|
8230
8243
|
position: absolute;
|
|
8231
8244
|
width: 1px;
|
|
8232
8245
|
height: 1px;
|
|
@@ -8291,10 +8304,10 @@ var FormField = ({
|
|
|
8291
8304
|
};
|
|
8292
8305
|
|
|
8293
8306
|
// src/Form/Input.tsx
|
|
8294
|
-
var
|
|
8295
|
-
var
|
|
8307
|
+
var import_react49 = require("@emotion/react");
|
|
8308
|
+
var import_react50 = require("react");
|
|
8296
8309
|
var import_jsx_runtime241 = require("@emotion/react/jsx-runtime");
|
|
8297
|
-
var inputStyles =
|
|
8310
|
+
var inputStyles = import_react49.css`
|
|
8298
8311
|
position: relative;
|
|
8299
8312
|
width: 100%;
|
|
8300
8313
|
font-family: ${fonts.base};
|
|
@@ -8331,19 +8344,19 @@ var inputStyles = import_react48.css`
|
|
|
8331
8344
|
}
|
|
8332
8345
|
`;
|
|
8333
8346
|
var sizeStyles = {
|
|
8334
|
-
sm:
|
|
8347
|
+
sm: import_react49.css`
|
|
8335
8348
|
padding: ${space["2"]} ${space["3"]};
|
|
8336
8349
|
font-size: ${fontSizes.sm};
|
|
8337
8350
|
line-height: ${lineHeights.tight};
|
|
8338
8351
|
height: ${space["8"]};
|
|
8339
8352
|
`,
|
|
8340
|
-
md:
|
|
8353
|
+
md: import_react49.css`
|
|
8341
8354
|
padding: ${space["3"]} ${space["4"]};
|
|
8342
8355
|
font-size: ${fontSizes.base};
|
|
8343
8356
|
line-height: ${lineHeights.normal};
|
|
8344
8357
|
height: ${space["10"]};
|
|
8345
8358
|
`,
|
|
8346
|
-
lg:
|
|
8359
|
+
lg: import_react49.css`
|
|
8347
8360
|
padding: ${space["4"]} ${space["5"]};
|
|
8348
8361
|
font-size: ${fontSizes.lg};
|
|
8349
8362
|
line-height: ${lineHeights.normal};
|
|
@@ -8351,8 +8364,8 @@ var sizeStyles = {
|
|
|
8351
8364
|
`
|
|
8352
8365
|
};
|
|
8353
8366
|
var variantStyles = {
|
|
8354
|
-
default:
|
|
8355
|
-
error:
|
|
8367
|
+
default: import_react49.css``,
|
|
8368
|
+
error: import_react49.css`
|
|
8356
8369
|
border-color: ${colors.red["500"]};
|
|
8357
8370
|
|
|
8358
8371
|
&:focus {
|
|
@@ -8360,7 +8373,7 @@ var variantStyles = {
|
|
|
8360
8373
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
8361
8374
|
}
|
|
8362
8375
|
`,
|
|
8363
|
-
success:
|
|
8376
|
+
success: import_react49.css`
|
|
8364
8377
|
border-color: ${colors.accent.green};
|
|
8365
8378
|
|
|
8366
8379
|
&:focus {
|
|
@@ -8369,7 +8382,7 @@ var variantStyles = {
|
|
|
8369
8382
|
}
|
|
8370
8383
|
`
|
|
8371
8384
|
};
|
|
8372
|
-
var inputWithIconStyles =
|
|
8385
|
+
var inputWithIconStyles = import_react49.css`
|
|
8373
8386
|
padding-left: ${space["10"]};
|
|
8374
8387
|
|
|
8375
8388
|
&.has-end-icon {
|
|
@@ -8380,7 +8393,7 @@ var inputWithIconStyles = import_react48.css`
|
|
|
8380
8393
|
padding-left: ${space["10"]};
|
|
8381
8394
|
}
|
|
8382
8395
|
`;
|
|
8383
|
-
var iconContainerStyles =
|
|
8396
|
+
var iconContainerStyles = import_react49.css`
|
|
8384
8397
|
position: absolute;
|
|
8385
8398
|
top: 50%;
|
|
8386
8399
|
transform: translateY(-50%);
|
|
@@ -8391,20 +8404,20 @@ var iconContainerStyles = import_react48.css`
|
|
|
8391
8404
|
pointer-events: none;
|
|
8392
8405
|
z-index: 1;
|
|
8393
8406
|
`;
|
|
8394
|
-
var startIconStyles =
|
|
8407
|
+
var startIconStyles = import_react49.css`
|
|
8395
8408
|
${iconContainerStyles}
|
|
8396
8409
|
left: ${space["3"]};
|
|
8397
8410
|
`;
|
|
8398
|
-
var endIconStyles =
|
|
8411
|
+
var endIconStyles = import_react49.css`
|
|
8399
8412
|
${iconContainerStyles}
|
|
8400
8413
|
right: ${space["3"]};
|
|
8401
8414
|
`;
|
|
8402
|
-
var inputWrapperStyles =
|
|
8415
|
+
var inputWrapperStyles = import_react49.css`
|
|
8403
8416
|
position: relative;
|
|
8404
8417
|
display: inline-block;
|
|
8405
8418
|
width: 100%;
|
|
8406
8419
|
`;
|
|
8407
|
-
var Input = (0,
|
|
8420
|
+
var Input = (0, import_react50.forwardRef)(
|
|
8408
8421
|
({
|
|
8409
8422
|
size = "md",
|
|
8410
8423
|
variant = "default",
|
|
@@ -8449,10 +8462,10 @@ var Input = (0, import_react49.forwardRef)(
|
|
|
8449
8462
|
Input.displayName = "Input";
|
|
8450
8463
|
|
|
8451
8464
|
// src/Form/Select.tsx
|
|
8452
|
-
var
|
|
8453
|
-
var
|
|
8465
|
+
var import_react51 = require("@emotion/react");
|
|
8466
|
+
var import_react52 = require("react");
|
|
8454
8467
|
var import_jsx_runtime242 = require("@emotion/react/jsx-runtime");
|
|
8455
|
-
var selectStyles =
|
|
8468
|
+
var selectStyles = import_react51.css`
|
|
8456
8469
|
position: relative;
|
|
8457
8470
|
width: 100%;
|
|
8458
8471
|
font-family: ${fonts.base};
|
|
@@ -8491,19 +8504,19 @@ var selectStyles = import_react50.css`
|
|
|
8491
8504
|
}
|
|
8492
8505
|
`;
|
|
8493
8506
|
var sizeStyles2 = {
|
|
8494
|
-
sm:
|
|
8507
|
+
sm: import_react51.css`
|
|
8495
8508
|
padding: ${space["2"]} ${space["3"]};
|
|
8496
8509
|
font-size: ${fontSizes.sm};
|
|
8497
8510
|
line-height: ${lineHeights.tight};
|
|
8498
8511
|
height: ${space["8"]};
|
|
8499
8512
|
`,
|
|
8500
|
-
md:
|
|
8513
|
+
md: import_react51.css`
|
|
8501
8514
|
padding: ${space["3"]} ${space["4"]};
|
|
8502
8515
|
font-size: ${fontSizes.base};
|
|
8503
8516
|
line-height: ${lineHeights.normal};
|
|
8504
8517
|
height: ${space["10"]};
|
|
8505
8518
|
`,
|
|
8506
|
-
lg:
|
|
8519
|
+
lg: import_react51.css`
|
|
8507
8520
|
padding: ${space["4"]} ${space["5"]};
|
|
8508
8521
|
font-size: ${fontSizes.lg};
|
|
8509
8522
|
line-height: ${lineHeights.normal};
|
|
@@ -8511,8 +8524,8 @@ var sizeStyles2 = {
|
|
|
8511
8524
|
`
|
|
8512
8525
|
};
|
|
8513
8526
|
var variantStyles2 = {
|
|
8514
|
-
default:
|
|
8515
|
-
error:
|
|
8527
|
+
default: import_react51.css``,
|
|
8528
|
+
error: import_react51.css`
|
|
8516
8529
|
border-color: ${colors.red["500"]};
|
|
8517
8530
|
|
|
8518
8531
|
&:focus {
|
|
@@ -8520,7 +8533,7 @@ var variantStyles2 = {
|
|
|
8520
8533
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
8521
8534
|
}
|
|
8522
8535
|
`,
|
|
8523
|
-
success:
|
|
8536
|
+
success: import_react51.css`
|
|
8524
8537
|
border-color: ${colors.accent.green};
|
|
8525
8538
|
|
|
8526
8539
|
&:focus {
|
|
@@ -8529,7 +8542,7 @@ var variantStyles2 = {
|
|
|
8529
8542
|
}
|
|
8530
8543
|
`
|
|
8531
8544
|
};
|
|
8532
|
-
var optionStyles =
|
|
8545
|
+
var optionStyles = import_react51.css`
|
|
8533
8546
|
background-color: ${colors.light["100"]};
|
|
8534
8547
|
color: ${colors.gray["900"]};
|
|
8535
8548
|
|
|
@@ -8538,7 +8551,7 @@ var optionStyles = import_react50.css`
|
|
|
8538
8551
|
background-color: ${colors.gray["100"]};
|
|
8539
8552
|
}
|
|
8540
8553
|
`;
|
|
8541
|
-
var Select = (0,
|
|
8554
|
+
var Select = (0, import_react52.forwardRef)(
|
|
8542
8555
|
({
|
|
8543
8556
|
size = "md",
|
|
8544
8557
|
variant = "default",
|
|
@@ -8576,10 +8589,10 @@ var Select = (0, import_react51.forwardRef)(
|
|
|
8576
8589
|
Select.displayName = "Select";
|
|
8577
8590
|
|
|
8578
8591
|
// src/Grid/Column.tsx
|
|
8579
|
-
var
|
|
8592
|
+
var import_react54 = require("@emotion/react");
|
|
8580
8593
|
|
|
8581
8594
|
// src/Grid/utils.ts
|
|
8582
|
-
var
|
|
8595
|
+
var import_react53 = require("@emotion/react");
|
|
8583
8596
|
var LayoutTokens = {
|
|
8584
8597
|
containers: {
|
|
8585
8598
|
sm: screens.sm,
|
|
@@ -8619,11 +8632,11 @@ var getResponsiveValue = (value) => {
|
|
|
8619
8632
|
var generateGridColumns = (columns) => {
|
|
8620
8633
|
const baseColumns = getResponsiveValue(columns);
|
|
8621
8634
|
if (typeof columns === "number") {
|
|
8622
|
-
return
|
|
8635
|
+
return import_react53.css`
|
|
8623
8636
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
8624
8637
|
`;
|
|
8625
8638
|
}
|
|
8626
|
-
return
|
|
8639
|
+
return import_react53.css`
|
|
8627
8640
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
8628
8641
|
|
|
8629
8642
|
${media.sm} {
|
|
@@ -8655,11 +8668,11 @@ var generateGridColumns = (columns) => {
|
|
|
8655
8668
|
var generateGapStyles = (gap2) => {
|
|
8656
8669
|
const baseGap = getResponsiveValue(gap2);
|
|
8657
8670
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
8658
|
-
return
|
|
8671
|
+
return import_react53.css`
|
|
8659
8672
|
gap: ${space[gap2]};
|
|
8660
8673
|
`;
|
|
8661
8674
|
}
|
|
8662
|
-
return
|
|
8675
|
+
return import_react53.css`
|
|
8663
8676
|
gap: ${space[baseGap]};
|
|
8664
8677
|
|
|
8665
8678
|
${media.sm} {
|
|
@@ -8682,11 +8695,11 @@ var generateGapStyles = (gap2) => {
|
|
|
8682
8695
|
var generateRowGapStyles = (rowGap) => {
|
|
8683
8696
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
8684
8697
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
8685
|
-
return
|
|
8698
|
+
return import_react53.css`
|
|
8686
8699
|
row-gap: ${space[rowGap]};
|
|
8687
8700
|
`;
|
|
8688
8701
|
}
|
|
8689
|
-
return
|
|
8702
|
+
return import_react53.css`
|
|
8690
8703
|
row-gap: ${space[baseRowGap]};
|
|
8691
8704
|
|
|
8692
8705
|
${media.sm} {
|
|
@@ -8709,11 +8722,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
8709
8722
|
var generateColumnGapStyles = (columnGap) => {
|
|
8710
8723
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
8711
8724
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
8712
|
-
return
|
|
8725
|
+
return import_react53.css`
|
|
8713
8726
|
column-gap: ${space[columnGap]};
|
|
8714
8727
|
`;
|
|
8715
8728
|
}
|
|
8716
|
-
return
|
|
8729
|
+
return import_react53.css`
|
|
8717
8730
|
column-gap: ${space[baseColumnGap]};
|
|
8718
8731
|
|
|
8719
8732
|
${media.sm} {
|
|
@@ -8736,11 +8749,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
8736
8749
|
var generateColumnSpan = (span) => {
|
|
8737
8750
|
const baseSpan = getResponsiveValue(span);
|
|
8738
8751
|
if (typeof span === "string" || typeof span === "number") {
|
|
8739
|
-
return
|
|
8752
|
+
return import_react53.css`
|
|
8740
8753
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
8741
8754
|
`;
|
|
8742
8755
|
}
|
|
8743
|
-
return
|
|
8756
|
+
return import_react53.css`
|
|
8744
8757
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
8745
8758
|
|
|
8746
8759
|
${media.sm} {
|
|
@@ -8763,11 +8776,11 @@ var generateColumnSpan = (span) => {
|
|
|
8763
8776
|
var generateAlignItems = (alignItems) => {
|
|
8764
8777
|
const baseAlign = getResponsiveValue(alignItems);
|
|
8765
8778
|
if (typeof alignItems === "string") {
|
|
8766
|
-
return
|
|
8779
|
+
return import_react53.css`
|
|
8767
8780
|
align-items: ${alignItems};
|
|
8768
8781
|
`;
|
|
8769
8782
|
}
|
|
8770
|
-
return
|
|
8783
|
+
return import_react53.css`
|
|
8771
8784
|
align-items: ${baseAlign};
|
|
8772
8785
|
|
|
8773
8786
|
${media.sm} {
|
|
@@ -8790,11 +8803,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
8790
8803
|
var generateJustifyItems = (justifyItems) => {
|
|
8791
8804
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
8792
8805
|
if (typeof justifyItems === "string") {
|
|
8793
|
-
return
|
|
8806
|
+
return import_react53.css`
|
|
8794
8807
|
justify-items: ${justifyItems};
|
|
8795
8808
|
`;
|
|
8796
8809
|
}
|
|
8797
|
-
return
|
|
8810
|
+
return import_react53.css`
|
|
8798
8811
|
justify-items: ${baseJustify};
|
|
8799
8812
|
|
|
8800
8813
|
${media.sm} {
|
|
@@ -8829,19 +8842,19 @@ var Column = ({
|
|
|
8829
8842
|
}) => {
|
|
8830
8843
|
const columnStyles = [
|
|
8831
8844
|
span && generateColumnSpan(span),
|
|
8832
|
-
start &&
|
|
8845
|
+
start && import_react54.css`
|
|
8833
8846
|
grid-column-start: ${start};
|
|
8834
8847
|
`,
|
|
8835
|
-
end &&
|
|
8848
|
+
end && import_react54.css`
|
|
8836
8849
|
grid-column-end: ${end};
|
|
8837
8850
|
`,
|
|
8838
|
-
row &&
|
|
8851
|
+
row && import_react54.css`
|
|
8839
8852
|
grid-row: ${row};
|
|
8840
8853
|
`,
|
|
8841
|
-
rowSpan &&
|
|
8854
|
+
rowSpan && import_react54.css`
|
|
8842
8855
|
grid-row: span ${rowSpan};
|
|
8843
8856
|
`,
|
|
8844
|
-
area &&
|
|
8857
|
+
area && import_react54.css`
|
|
8845
8858
|
grid-area: ${area};
|
|
8846
8859
|
`
|
|
8847
8860
|
].filter(Boolean);
|
|
@@ -8850,9 +8863,9 @@ var Column = ({
|
|
|
8850
8863
|
var Column_default = Column;
|
|
8851
8864
|
|
|
8852
8865
|
// src/Grid/Grid.tsx
|
|
8853
|
-
var
|
|
8866
|
+
var import_react55 = require("@emotion/react");
|
|
8854
8867
|
var import_jsx_runtime244 = require("@emotion/react/jsx-runtime");
|
|
8855
|
-
var baseGridStyles =
|
|
8868
|
+
var baseGridStyles = import_react55.css`
|
|
8856
8869
|
display: grid;
|
|
8857
8870
|
`;
|
|
8858
8871
|
var Grid = ({
|
|
@@ -8877,16 +8890,16 @@ var Grid = ({
|
|
|
8877
8890
|
columnGap && generateColumnGapStyles(columnGap),
|
|
8878
8891
|
alignItems && generateAlignItems(alignItems),
|
|
8879
8892
|
justifyItems && generateJustifyItems(justifyItems),
|
|
8880
|
-
autoRows &&
|
|
8893
|
+
autoRows && import_react55.css`
|
|
8881
8894
|
grid-auto-rows: ${autoRows};
|
|
8882
8895
|
`,
|
|
8883
|
-
autoColumns &&
|
|
8896
|
+
autoColumns && import_react55.css`
|
|
8884
8897
|
grid-auto-columns: ${autoColumns};
|
|
8885
8898
|
`,
|
|
8886
|
-
templateAreas &&
|
|
8899
|
+
templateAreas && import_react55.css`
|
|
8887
8900
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
8888
8901
|
`,
|
|
8889
|
-
justifyContent &&
|
|
8902
|
+
justifyContent && import_react55.css`
|
|
8890
8903
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
8891
8904
|
`
|
|
8892
8905
|
].filter(Boolean);
|
|
@@ -8895,9 +8908,9 @@ var Grid = ({
|
|
|
8895
8908
|
var Grid_default = Grid;
|
|
8896
8909
|
|
|
8897
8910
|
// src/Grid/GridContainer.tsx
|
|
8898
|
-
var
|
|
8911
|
+
var import_react56 = require("@emotion/react");
|
|
8899
8912
|
var import_jsx_runtime245 = require("@emotion/react/jsx-runtime");
|
|
8900
|
-
var baseContainerStyles =
|
|
8913
|
+
var baseContainerStyles = import_react56.css`
|
|
8901
8914
|
width: 100%;
|
|
8902
8915
|
margin: 0 auto;
|
|
8903
8916
|
padding-left: 1rem;
|
|
@@ -8905,14 +8918,14 @@ var baseContainerStyles = import_react55.css`
|
|
|
8905
8918
|
`;
|
|
8906
8919
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
8907
8920
|
if (maxWidth === "full") {
|
|
8908
|
-
return
|
|
8921
|
+
return import_react56.css`
|
|
8909
8922
|
max-width: 100%;
|
|
8910
8923
|
padding-left: 0;
|
|
8911
8924
|
padding-right: 0;
|
|
8912
8925
|
`;
|
|
8913
8926
|
}
|
|
8914
8927
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
8915
|
-
return
|
|
8928
|
+
return import_react56.css`
|
|
8916
8929
|
max-width: ${width2};
|
|
8917
8930
|
|
|
8918
8931
|
${media.sm} {
|
|
@@ -8946,8 +8959,8 @@ var GridContainer = ({
|
|
|
8946
8959
|
var GridContainer_default = GridContainer;
|
|
8947
8960
|
|
|
8948
8961
|
// src/HuntCard/HuntCard.styles.ts
|
|
8949
|
-
var
|
|
8950
|
-
var cardContainerStyles2 =
|
|
8962
|
+
var import_react57 = require("@emotion/react");
|
|
8963
|
+
var cardContainerStyles2 = import_react57.css`
|
|
8951
8964
|
position: relative;
|
|
8952
8965
|
height: 335px;
|
|
8953
8966
|
|
|
@@ -8955,12 +8968,12 @@ var cardContainerStyles2 = import_react56.css`
|
|
|
8955
8968
|
height: 480px;
|
|
8956
8969
|
}
|
|
8957
8970
|
`;
|
|
8958
|
-
var cardContentStyles2 =
|
|
8971
|
+
var cardContentStyles2 = import_react57.css`
|
|
8959
8972
|
position: relative;
|
|
8960
8973
|
border-radius: var(--spacing-4);
|
|
8961
8974
|
overflow: hidden;
|
|
8962
8975
|
`;
|
|
8963
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
8976
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react57.css`
|
|
8964
8977
|
background-image: linear-gradient(
|
|
8965
8978
|
180deg,
|
|
8966
8979
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -9010,15 +9023,15 @@ var HuntCard = ({
|
|
|
9010
9023
|
var HuntCard_default = HuntCard;
|
|
9011
9024
|
|
|
9012
9025
|
// src/ImageGalleryModal/ImageGalleryModal.tsx
|
|
9013
|
-
var
|
|
9026
|
+
var import_react61 = require("react");
|
|
9014
9027
|
|
|
9015
9028
|
// src/Modal/Modal.tsx
|
|
9016
|
-
var
|
|
9029
|
+
var import_react59 = require("react");
|
|
9017
9030
|
var import_react_dom4 = __toESM(require("react-dom"));
|
|
9018
9031
|
|
|
9019
9032
|
// src/Modal/Modal.styles.ts
|
|
9020
|
-
var
|
|
9021
|
-
var fadeIn2 =
|
|
9033
|
+
var import_react58 = require("@emotion/react");
|
|
9034
|
+
var fadeIn2 = import_react58.keyframes`
|
|
9022
9035
|
from {
|
|
9023
9036
|
opacity: 0;
|
|
9024
9037
|
}
|
|
@@ -9026,7 +9039,7 @@ var fadeIn2 = import_react57.keyframes`
|
|
|
9026
9039
|
opacity: 1;
|
|
9027
9040
|
}
|
|
9028
9041
|
`;
|
|
9029
|
-
var fadeInScale2 =
|
|
9042
|
+
var fadeInScale2 = import_react58.keyframes`
|
|
9030
9043
|
from {
|
|
9031
9044
|
opacity: 0;
|
|
9032
9045
|
transform: scale(0.95);
|
|
@@ -9036,7 +9049,7 @@ var fadeInScale2 = import_react57.keyframes`
|
|
|
9036
9049
|
transform: scale(1);
|
|
9037
9050
|
}
|
|
9038
9051
|
`;
|
|
9039
|
-
var scrollLayerStyles =
|
|
9052
|
+
var scrollLayerStyles = import_react58.css`
|
|
9040
9053
|
background-color: rgba(0, 0, 0, 0.6);
|
|
9041
9054
|
backdrop-filter: blur(4px);
|
|
9042
9055
|
animation: ${fadeIn2} 0.15s ease-out forwards;
|
|
@@ -9045,7 +9058,7 @@ var scrollLayerStyles = import_react57.css`
|
|
|
9045
9058
|
animation: none;
|
|
9046
9059
|
}
|
|
9047
9060
|
`;
|
|
9048
|
-
var containerStyles3 =
|
|
9061
|
+
var containerStyles3 = import_react58.css`
|
|
9049
9062
|
background-color: var(--surface-primary, #ffffff);
|
|
9050
9063
|
border-radius: var(--radius-lg, 12px);
|
|
9051
9064
|
max-height: calc(100dvh - var(--spacing-8));
|
|
@@ -9057,17 +9070,17 @@ var containerStyles3 = import_react57.css`
|
|
|
9057
9070
|
}
|
|
9058
9071
|
`;
|
|
9059
9072
|
var sizeStyles3 = {
|
|
9060
|
-
sm:
|
|
9073
|
+
sm: import_react58.css`
|
|
9061
9074
|
width: 100%;
|
|
9062
9075
|
max-width: 24rem; /* 384px */
|
|
9063
9076
|
padding: var(--spacing-5);
|
|
9064
9077
|
`,
|
|
9065
|
-
md:
|
|
9078
|
+
md: import_react58.css`
|
|
9066
9079
|
width: 100%;
|
|
9067
9080
|
max-width: 32rem; /* 512px */
|
|
9068
9081
|
padding: var(--spacing-6);
|
|
9069
9082
|
`,
|
|
9070
|
-
lg:
|
|
9083
|
+
lg: import_react58.css`
|
|
9071
9084
|
width: 100%;
|
|
9072
9085
|
max-width: 48rem; /* 768px */
|
|
9073
9086
|
padding: var(--spacing-6);
|
|
@@ -9076,7 +9089,7 @@ var sizeStyles3 = {
|
|
|
9076
9089
|
padding: var(--spacing-8);
|
|
9077
9090
|
}
|
|
9078
9091
|
`,
|
|
9079
|
-
xl:
|
|
9092
|
+
xl: import_react58.css`
|
|
9080
9093
|
width: 100%;
|
|
9081
9094
|
max-width: 64rem; /* 1024px */
|
|
9082
9095
|
padding: var(--spacing-6);
|
|
@@ -9085,7 +9098,7 @@ var sizeStyles3 = {
|
|
|
9085
9098
|
padding: var(--spacing-8);
|
|
9086
9099
|
}
|
|
9087
9100
|
`,
|
|
9088
|
-
full:
|
|
9101
|
+
full: import_react58.css`
|
|
9089
9102
|
width: calc(100vw - var(--spacing-8));
|
|
9090
9103
|
height: calc(100dvh - var(--spacing-8));
|
|
9091
9104
|
max-width: none;
|
|
@@ -9094,13 +9107,13 @@ var sizeStyles3 = {
|
|
|
9094
9107
|
border-radius: var(--radius-md, 8px);
|
|
9095
9108
|
`
|
|
9096
9109
|
};
|
|
9097
|
-
var closeButtonStyles2 =
|
|
9110
|
+
var closeButtonStyles2 = import_react58.css`
|
|
9098
9111
|
position: absolute;
|
|
9099
9112
|
top: var(--spacing-4);
|
|
9100
9113
|
right: var(--spacing-4);
|
|
9101
9114
|
z-index: 1;
|
|
9102
9115
|
`;
|
|
9103
|
-
var closeButtonFullStyles =
|
|
9116
|
+
var closeButtonFullStyles = import_react58.css`
|
|
9104
9117
|
top: var(--spacing-3);
|
|
9105
9118
|
right: var(--spacing-3);
|
|
9106
9119
|
background-color: rgba(255, 255, 255, 0.9);
|
|
@@ -9132,10 +9145,10 @@ var Modal = ({
|
|
|
9132
9145
|
ariaLabel,
|
|
9133
9146
|
ariaDescribedBy
|
|
9134
9147
|
}) => {
|
|
9135
|
-
const containerRef = (0,
|
|
9136
|
-
const previousScrollY = (0,
|
|
9137
|
-
const previousActiveElement = (0,
|
|
9138
|
-
const handleKeyDown = (0,
|
|
9148
|
+
const containerRef = (0, import_react59.useRef)(null);
|
|
9149
|
+
const previousScrollY = (0, import_react59.useRef)(0);
|
|
9150
|
+
const previousActiveElement = (0, import_react59.useRef)(null);
|
|
9151
|
+
const handleKeyDown = (0, import_react59.useCallback)(
|
|
9139
9152
|
(event) => {
|
|
9140
9153
|
if (closeOnEscape && event.key === "Escape" && onClose) {
|
|
9141
9154
|
onClose(event);
|
|
@@ -9143,7 +9156,7 @@ var Modal = ({
|
|
|
9143
9156
|
},
|
|
9144
9157
|
[closeOnEscape, onClose]
|
|
9145
9158
|
);
|
|
9146
|
-
(0,
|
|
9159
|
+
(0, import_react59.useEffect)(() => {
|
|
9147
9160
|
if (isOpen) {
|
|
9148
9161
|
previousScrollY.current = window.scrollY;
|
|
9149
9162
|
previousActiveElement.current = document.activeElement;
|
|
@@ -9173,7 +9186,7 @@ var Modal = ({
|
|
|
9173
9186
|
document.body.style.top = "";
|
|
9174
9187
|
};
|
|
9175
9188
|
}, [isOpen, handleKeyDown]);
|
|
9176
|
-
const handleClose = (0,
|
|
9189
|
+
const handleClose = (0, import_react59.useCallback)(
|
|
9177
9190
|
(event) => {
|
|
9178
9191
|
if (onClose) {
|
|
9179
9192
|
onClose(event);
|
|
@@ -9181,7 +9194,7 @@ var Modal = ({
|
|
|
9181
9194
|
},
|
|
9182
9195
|
[onClose]
|
|
9183
9196
|
);
|
|
9184
|
-
const handleBackdropClick = (0,
|
|
9197
|
+
const handleBackdropClick = (0, import_react59.useCallback)(
|
|
9185
9198
|
(event) => {
|
|
9186
9199
|
if (!closeOnOutsideClick || !containerRef.current || containerRef.current.contains(event.target)) {
|
|
9187
9200
|
return;
|
|
@@ -9289,11 +9302,11 @@ Modal.displayName = "Modal";
|
|
|
9289
9302
|
var Modal_default = Modal;
|
|
9290
9303
|
|
|
9291
9304
|
// src/ImageGalleryModal/ImageGalleryModal.styles.ts
|
|
9292
|
-
var
|
|
9293
|
-
var galleryBackgroundStyles =
|
|
9305
|
+
var import_react60 = require("@emotion/react");
|
|
9306
|
+
var galleryBackgroundStyles = import_react60.css`
|
|
9294
9307
|
background-color: var(--color-base-black, #000000);
|
|
9295
9308
|
`;
|
|
9296
|
-
var imageStyles2 =
|
|
9309
|
+
var imageStyles2 = import_react60.css`
|
|
9297
9310
|
max-width: 100%;
|
|
9298
9311
|
max-height: 100%;
|
|
9299
9312
|
width: auto;
|
|
@@ -9305,14 +9318,14 @@ var imageStyles2 = import_react59.css`
|
|
|
9305
9318
|
max-height: calc(100vh - var(--spacing-32));
|
|
9306
9319
|
}
|
|
9307
9320
|
`;
|
|
9308
|
-
var counterStyles =
|
|
9321
|
+
var counterStyles = import_react60.css`
|
|
9309
9322
|
transform: translateX(-50%);
|
|
9310
9323
|
color: var(--color-base-white, #ffffff);
|
|
9311
9324
|
background-color: rgba(0, 0, 0, 0.5);
|
|
9312
9325
|
padding: var(--spacing-2) var(--spacing-4);
|
|
9313
9326
|
border-radius: var(--radius-full, 9999px);
|
|
9314
9327
|
`;
|
|
9315
|
-
var captionStyles =
|
|
9328
|
+
var captionStyles = import_react60.css`
|
|
9316
9329
|
transform: translateX(-50%);
|
|
9317
9330
|
color: var(--color-base-white, #ffffff);
|
|
9318
9331
|
text-align: center;
|
|
@@ -9321,7 +9334,7 @@ var captionStyles = import_react59.css`
|
|
|
9321
9334
|
border-radius: var(--radius-md, 8px);
|
|
9322
9335
|
max-width: 80%;
|
|
9323
9336
|
`;
|
|
9324
|
-
var navigationButtonStyles =
|
|
9337
|
+
var navigationButtonStyles = import_react60.css`
|
|
9325
9338
|
position: absolute;
|
|
9326
9339
|
top: 50%;
|
|
9327
9340
|
transform: translateY(-50%);
|
|
@@ -9352,18 +9365,18 @@ var navigationButtonStyles = import_react59.css`
|
|
|
9352
9365
|
outline-offset: 2px;
|
|
9353
9366
|
}
|
|
9354
9367
|
`;
|
|
9355
|
-
var prevButtonStyles =
|
|
9368
|
+
var prevButtonStyles = import_react60.css`
|
|
9356
9369
|
${navigationButtonStyles}
|
|
9357
9370
|
left: var(--spacing-4);
|
|
9358
9371
|
`;
|
|
9359
|
-
var nextButtonStyles =
|
|
9372
|
+
var nextButtonStyles = import_react60.css`
|
|
9360
9373
|
${navigationButtonStyles}
|
|
9361
9374
|
right: var(--spacing-4);
|
|
9362
9375
|
`;
|
|
9363
|
-
var dotsContainerPositionStyles =
|
|
9376
|
+
var dotsContainerPositionStyles = import_react60.css`
|
|
9364
9377
|
transform: translateX(-50%);
|
|
9365
9378
|
`;
|
|
9366
|
-
var dotStyles =
|
|
9379
|
+
var dotStyles = import_react60.css`
|
|
9367
9380
|
width: var(--spacing-2);
|
|
9368
9381
|
height: var(--spacing-2);
|
|
9369
9382
|
border-radius: var(--radius-round, 50%);
|
|
@@ -9378,11 +9391,11 @@ var dotStyles = import_react59.css`
|
|
|
9378
9391
|
transform: scale(1.2);
|
|
9379
9392
|
}
|
|
9380
9393
|
`;
|
|
9381
|
-
var dotActiveStyles =
|
|
9394
|
+
var dotActiveStyles = import_react60.css`
|
|
9382
9395
|
background-color: var(--color-base-white, #ffffff);
|
|
9383
9396
|
transform: scale(1.2);
|
|
9384
9397
|
`;
|
|
9385
|
-
var closeButtonOverrideStyles =
|
|
9398
|
+
var closeButtonOverrideStyles = import_react60.css`
|
|
9386
9399
|
top: var(--spacing-4);
|
|
9387
9400
|
right: var(--spacing-4);
|
|
9388
9401
|
z-index: 20;
|
|
@@ -9394,17 +9407,17 @@ var closeButtonOverrideStyles = import_react59.css`
|
|
|
9394
9407
|
background-color: var(--color-base-white, #ffffff);
|
|
9395
9408
|
}
|
|
9396
9409
|
`;
|
|
9397
|
-
var scrollLayerOverrideStyles =
|
|
9410
|
+
var scrollLayerOverrideStyles = import_react60.css`
|
|
9398
9411
|
padding: 0;
|
|
9399
9412
|
background-color: rgba(0, 0, 0, 0.95);
|
|
9400
9413
|
`;
|
|
9401
|
-
var containerOverrideStyles =
|
|
9414
|
+
var containerOverrideStyles = import_react60.css`
|
|
9402
9415
|
background-color: transparent;
|
|
9403
9416
|
box-shadow: none;
|
|
9404
9417
|
border-radius: 0;
|
|
9405
9418
|
max-height: 100dvh;
|
|
9406
9419
|
`;
|
|
9407
|
-
var contentOverrideStyles =
|
|
9420
|
+
var contentOverrideStyles = import_react60.css`
|
|
9408
9421
|
height: 100%;
|
|
9409
9422
|
padding: 0;
|
|
9410
9423
|
`;
|
|
@@ -9423,30 +9436,30 @@ var ImageGalleryModal = ({
|
|
|
9423
9436
|
className,
|
|
9424
9437
|
ariaLabel = "Image gallery"
|
|
9425
9438
|
}) => {
|
|
9426
|
-
const [currentIndex, setCurrentIndex] = (0,
|
|
9427
|
-
(0,
|
|
9439
|
+
const [currentIndex, setCurrentIndex] = (0, import_react61.useState)(initialIndex);
|
|
9440
|
+
(0, import_react61.useEffect)(() => {
|
|
9428
9441
|
if (isOpen) {
|
|
9429
9442
|
setCurrentIndex(initialIndex);
|
|
9430
9443
|
}
|
|
9431
9444
|
}, [isOpen, initialIndex]);
|
|
9432
|
-
const handlePrev = (0,
|
|
9445
|
+
const handlePrev = (0, import_react61.useCallback)(
|
|
9433
9446
|
(e) => {
|
|
9434
9447
|
e == null ? void 0 : e.stopPropagation();
|
|
9435
9448
|
setCurrentIndex((prev) => prev > 0 ? prev - 1 : images.length - 1);
|
|
9436
9449
|
},
|
|
9437
9450
|
[images.length]
|
|
9438
9451
|
);
|
|
9439
|
-
const handleNext = (0,
|
|
9452
|
+
const handleNext = (0, import_react61.useCallback)(
|
|
9440
9453
|
(e) => {
|
|
9441
9454
|
e == null ? void 0 : e.stopPropagation();
|
|
9442
9455
|
setCurrentIndex((prev) => prev < images.length - 1 ? prev + 1 : 0);
|
|
9443
9456
|
},
|
|
9444
9457
|
[images.length]
|
|
9445
9458
|
);
|
|
9446
|
-
const handleGoTo = (0,
|
|
9459
|
+
const handleGoTo = (0, import_react61.useCallback)((index) => {
|
|
9447
9460
|
setCurrentIndex(index);
|
|
9448
9461
|
}, []);
|
|
9449
|
-
(0,
|
|
9462
|
+
(0, import_react61.useEffect)(() => {
|
|
9450
9463
|
if (!isOpen)
|
|
9451
9464
|
return;
|
|
9452
9465
|
const handleKeyDown = (e) => {
|
|
@@ -9642,11 +9655,11 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
9642
9655
|
var InfoBox_default = InfoBox;
|
|
9643
9656
|
|
|
9644
9657
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
9645
|
-
var
|
|
9658
|
+
var import_react65 = require("react");
|
|
9646
9659
|
|
|
9647
9660
|
// src/ProgressBar/ProgressBar.styles.ts
|
|
9648
|
-
var
|
|
9649
|
-
var progressStyles =
|
|
9661
|
+
var import_react62 = require("@emotion/react");
|
|
9662
|
+
var progressStyles = import_react62.css`
|
|
9650
9663
|
transition: width 0.3s ease-in-out;
|
|
9651
9664
|
`;
|
|
9652
9665
|
|
|
@@ -9690,11 +9703,11 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
9690
9703
|
var ProgressBar_default = ProgressBar;
|
|
9691
9704
|
|
|
9692
9705
|
// src/Timer/Timer.tsx
|
|
9693
|
-
var
|
|
9706
|
+
var import_react64 = require("react");
|
|
9694
9707
|
|
|
9695
9708
|
// src/Timer/Timer.styles.ts
|
|
9696
|
-
var
|
|
9697
|
-
var rootStyles2 =
|
|
9709
|
+
var import_react63 = require("@emotion/react");
|
|
9710
|
+
var rootStyles2 = import_react63.css`
|
|
9698
9711
|
display: inline-flex;
|
|
9699
9712
|
font-variant-numeric: tabular-nums;
|
|
9700
9713
|
`;
|
|
@@ -9728,10 +9741,10 @@ var Timer = ({
|
|
|
9728
9741
|
fontWeight = "bold",
|
|
9729
9742
|
showSeconds = false
|
|
9730
9743
|
}) => {
|
|
9731
|
-
const [timeLeft, setTimeLeft] = (0,
|
|
9744
|
+
const [timeLeft, setTimeLeft] = (0, import_react64.useState)(
|
|
9732
9745
|
() => calculateTimeLeft(expirationTimestamp)
|
|
9733
9746
|
);
|
|
9734
|
-
const updateTime = (0,
|
|
9747
|
+
const updateTime = (0, import_react64.useCallback)(() => {
|
|
9735
9748
|
const newTimeLeft = calculateTimeLeft(expirationTimestamp);
|
|
9736
9749
|
setTimeLeft(newTimeLeft);
|
|
9737
9750
|
if (newTimeLeft) {
|
|
@@ -9741,7 +9754,7 @@ var Timer = ({
|
|
|
9741
9754
|
}
|
|
9742
9755
|
return newTimeLeft;
|
|
9743
9756
|
}, [expirationTimestamp, onTimeUpdate, onExpire]);
|
|
9744
|
-
(0,
|
|
9757
|
+
(0, import_react64.useEffect)(() => {
|
|
9745
9758
|
const initialTime = updateTime();
|
|
9746
9759
|
if (!initialTime)
|
|
9747
9760
|
return;
|
|
@@ -9988,7 +10001,7 @@ var LandownerProfile = ({
|
|
|
9988
10001
|
const progressPercentage = (totalDuration - timeLeft.totalSeconds) / totalDuration * 100;
|
|
9989
10002
|
return Math.min(100, Math.max(0, progressPercentage));
|
|
9990
10003
|
};
|
|
9991
|
-
const [progress, setProgress] = (0,
|
|
10004
|
+
const [progress, setProgress] = (0, import_react65.useState)(0);
|
|
9992
10005
|
const handleTimeUpdate = (timeLeft) => {
|
|
9993
10006
|
setProgress(calculateProgress(timeLeft));
|
|
9994
10007
|
onEarlyAccessTimeUpdate == null ? void 0 : onEarlyAccessTimeUpdate(timeLeft);
|
|
@@ -10098,11 +10111,11 @@ var LandownerProfile = ({
|
|
|
10098
10111
|
var LandownerProfile_default = LandownerProfile;
|
|
10099
10112
|
|
|
10100
10113
|
// src/ListingChat/ListingChat.tsx
|
|
10101
|
-
var
|
|
10114
|
+
var import_react67 = require("react");
|
|
10102
10115
|
|
|
10103
10116
|
// src/ListingChat/ListingChat.styles.ts
|
|
10104
|
-
var
|
|
10105
|
-
var containerStyles4 =
|
|
10117
|
+
var import_react66 = require("@emotion/react");
|
|
10118
|
+
var containerStyles4 = import_react66.css`
|
|
10106
10119
|
display: flex;
|
|
10107
10120
|
flex-direction: column;
|
|
10108
10121
|
gap: var(--spacing-4);
|
|
@@ -10110,12 +10123,12 @@ var containerStyles4 = import_react65.css`
|
|
|
10110
10123
|
border-radius: var(--radius-lg);
|
|
10111
10124
|
background: var(--surface-success);
|
|
10112
10125
|
`;
|
|
10113
|
-
var headerStyles =
|
|
10126
|
+
var headerStyles = import_react66.css`
|
|
10114
10127
|
display: flex;
|
|
10115
10128
|
flex-direction: column;
|
|
10116
10129
|
gap: var(--spacing-2);
|
|
10117
10130
|
`;
|
|
10118
|
-
var chipsContainerStyles =
|
|
10131
|
+
var chipsContainerStyles = import_react66.css`
|
|
10119
10132
|
display: flex;
|
|
10120
10133
|
flex-wrap: wrap;
|
|
10121
10134
|
gap: var(--spacing-4);
|
|
@@ -10128,10 +10141,10 @@ var chipsContainerStyles = import_react65.css`
|
|
|
10128
10141
|
cursor: pointer;
|
|
10129
10142
|
}
|
|
10130
10143
|
`;
|
|
10131
|
-
var textAreaStyles =
|
|
10144
|
+
var textAreaStyles = import_react66.css`
|
|
10132
10145
|
min-height: 62px;
|
|
10133
10146
|
`;
|
|
10134
|
-
var inputWrapperStyles2 =
|
|
10147
|
+
var inputWrapperStyles2 = import_react66.css`
|
|
10135
10148
|
position: relative;
|
|
10136
10149
|
`;
|
|
10137
10150
|
|
|
@@ -10146,15 +10159,15 @@ var ListingChat = ({
|
|
|
10146
10159
|
disabled = false,
|
|
10147
10160
|
...rest
|
|
10148
10161
|
}) => {
|
|
10149
|
-
const [value, setValue] = (0,
|
|
10150
|
-
const handleSubmit = (0,
|
|
10162
|
+
const [value, setValue] = (0, import_react67.useState)("");
|
|
10163
|
+
const handleSubmit = (0, import_react67.useCallback)(() => {
|
|
10151
10164
|
const trimmed = value.trim();
|
|
10152
10165
|
if (!trimmed)
|
|
10153
10166
|
return;
|
|
10154
10167
|
onSubmit(trimmed);
|
|
10155
10168
|
setValue("");
|
|
10156
10169
|
}, [onSubmit, value]);
|
|
10157
|
-
const handleTagClick = (0,
|
|
10170
|
+
const handleTagClick = (0, import_react67.useCallback)(
|
|
10158
10171
|
(tag) => () => {
|
|
10159
10172
|
const trimmed = tag.trim();
|
|
10160
10173
|
if (!trimmed)
|
|
@@ -10206,7 +10219,7 @@ var ListingChat = ({
|
|
|
10206
10219
|
var ListingChat_default = ListingChat;
|
|
10207
10220
|
|
|
10208
10221
|
// src/Logo/Logo.tsx
|
|
10209
|
-
var
|
|
10222
|
+
var import_react68 = require("@emotion/react");
|
|
10210
10223
|
|
|
10211
10224
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
10212
10225
|
var import_jsx_runtime257 = require("@emotion/react/jsx-runtime");
|
|
@@ -10428,7 +10441,7 @@ var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
|
10428
10441
|
|
|
10429
10442
|
// src/Logo/Logo.tsx
|
|
10430
10443
|
var import_jsx_runtime261 = require("@emotion/react/jsx-runtime");
|
|
10431
|
-
var logoStyles = (size) =>
|
|
10444
|
+
var logoStyles = (size) => import_react68.css`
|
|
10432
10445
|
width: ${space[size]};
|
|
10433
10446
|
height: auto;
|
|
10434
10447
|
display: block;
|
|
@@ -10461,13 +10474,13 @@ var Logo = ({
|
|
|
10461
10474
|
var Logo_default = Logo;
|
|
10462
10475
|
|
|
10463
10476
|
// src/Navigation/Navigation.styles.ts
|
|
10464
|
-
var
|
|
10465
|
-
var navigationStyles =
|
|
10477
|
+
var import_react69 = require("@emotion/react");
|
|
10478
|
+
var navigationStyles = import_react69.css`
|
|
10466
10479
|
width: 100%;
|
|
10467
10480
|
background-color: white;
|
|
10468
10481
|
border-bottom: 1px solid #e5e5e5;
|
|
10469
10482
|
`;
|
|
10470
|
-
var hamburgerButtonStyles =
|
|
10483
|
+
var hamburgerButtonStyles = import_react69.css`
|
|
10471
10484
|
cursor: pointer;
|
|
10472
10485
|
&:focus {
|
|
10473
10486
|
outline: 2px solid #4f46e5;
|
|
@@ -10478,7 +10491,7 @@ var hamburgerButtonStyles = import_react68.css`
|
|
|
10478
10491
|
display: none;
|
|
10479
10492
|
}
|
|
10480
10493
|
`;
|
|
10481
|
-
var centeredLogoStyles =
|
|
10494
|
+
var centeredLogoStyles = import_react69.css`
|
|
10482
10495
|
transform: translate(-50%, -50%);
|
|
10483
10496
|
max-width: 150px;
|
|
10484
10497
|
|
|
@@ -10486,27 +10499,27 @@ var centeredLogoStyles = import_react68.css`
|
|
|
10486
10499
|
display: none;
|
|
10487
10500
|
}
|
|
10488
10501
|
`;
|
|
10489
|
-
var desktopLogoStyles =
|
|
10502
|
+
var desktopLogoStyles = import_react69.css`
|
|
10490
10503
|
display: none;
|
|
10491
10504
|
|
|
10492
10505
|
@media (min-width: 768px) {
|
|
10493
10506
|
display: block;
|
|
10494
10507
|
}
|
|
10495
10508
|
`;
|
|
10496
|
-
var containerStyles5 =
|
|
10509
|
+
var containerStyles5 = import_react69.css`
|
|
10497
10510
|
@media (min-width: 768px) {
|
|
10498
10511
|
justify-content: space-between;
|
|
10499
10512
|
position: static;
|
|
10500
10513
|
}
|
|
10501
10514
|
`;
|
|
10502
|
-
var logoStyles2 =
|
|
10515
|
+
var logoStyles2 = import_react69.css`
|
|
10503
10516
|
width: 100%;
|
|
10504
10517
|
|
|
10505
10518
|
@media (min-width: 768px) {
|
|
10506
10519
|
width: initial;
|
|
10507
10520
|
}
|
|
10508
10521
|
`;
|
|
10509
|
-
var desktopNavStyles =
|
|
10522
|
+
var desktopNavStyles = import_react69.css`
|
|
10510
10523
|
display: none;
|
|
10511
10524
|
|
|
10512
10525
|
@media (min-width: 768px) {
|
|
@@ -10515,7 +10528,7 @@ var desktopNavStyles = import_react68.css`
|
|
|
10515
10528
|
gap: 32px;
|
|
10516
10529
|
}
|
|
10517
10530
|
`;
|
|
10518
|
-
var navLinksStyles =
|
|
10531
|
+
var navLinksStyles = import_react69.css`
|
|
10519
10532
|
display: flex;
|
|
10520
10533
|
align-items: center;
|
|
10521
10534
|
gap: 24px;
|
|
@@ -10523,7 +10536,7 @@ var navLinksStyles = import_react68.css`
|
|
|
10523
10536
|
margin: 0;
|
|
10524
10537
|
padding: 0;
|
|
10525
10538
|
`;
|
|
10526
|
-
var navLinkStyles =
|
|
10539
|
+
var navLinkStyles = import_react69.css`
|
|
10527
10540
|
text-decoration: none;
|
|
10528
10541
|
color: #374151;
|
|
10529
10542
|
font-weight: 500;
|
|
@@ -10539,7 +10552,7 @@ var navLinkStyles = import_react68.css`
|
|
|
10539
10552
|
outline-offset: 2px;
|
|
10540
10553
|
}
|
|
10541
10554
|
`;
|
|
10542
|
-
var avatarPlaceholderStyles =
|
|
10555
|
+
var avatarPlaceholderStyles = import_react69.css`
|
|
10543
10556
|
width: 32px;
|
|
10544
10557
|
height: 32px;
|
|
10545
10558
|
border-radius: 50%;
|
|
@@ -10644,21 +10657,21 @@ var Navigation_default = Navigation;
|
|
|
10644
10657
|
var import_react_loading_skeleton2 = __toESM(require("react-loading-skeleton"));
|
|
10645
10658
|
|
|
10646
10659
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
10647
|
-
var
|
|
10660
|
+
var import_react72 = require("react");
|
|
10648
10661
|
var import_react_intersection_observer = require("react-intersection-observer");
|
|
10649
10662
|
|
|
10650
10663
|
// src/ScrollingCarousel/context/CarouselContext.tsx
|
|
10651
|
-
var
|
|
10652
|
-
var CarouselContext =
|
|
10664
|
+
var import_react70 = __toESM(require("react"));
|
|
10665
|
+
var CarouselContext = import_react70.default.createContext(
|
|
10653
10666
|
null
|
|
10654
10667
|
);
|
|
10655
10668
|
|
|
10656
10669
|
// src/ScrollingCarousel/ScrollingCarousel.styles.ts
|
|
10657
|
-
var
|
|
10658
|
-
var carouselRoot =
|
|
10670
|
+
var import_react71 = require("@emotion/react");
|
|
10671
|
+
var carouselRoot = import_react71.css`
|
|
10659
10672
|
position: relative;
|
|
10660
10673
|
`;
|
|
10661
|
-
var carousel = (gap2) =>
|
|
10674
|
+
var carousel = (gap2) => import_react71.css`
|
|
10662
10675
|
display: flex;
|
|
10663
10676
|
overflow-y: hidden;
|
|
10664
10677
|
overflow-x: scroll;
|
|
@@ -10671,7 +10684,7 @@ var carousel = (gap2) => import_react70.css`
|
|
|
10671
10684
|
display: none;
|
|
10672
10685
|
}
|
|
10673
10686
|
`;
|
|
10674
|
-
var step = (itemWidth) =>
|
|
10687
|
+
var step = (itemWidth) => import_react71.css`
|
|
10675
10688
|
scroll-snap-align: center;
|
|
10676
10689
|
flex-basis: ${itemWidth || "100%"};
|
|
10677
10690
|
flex-shrink: 0;
|
|
@@ -10681,7 +10694,7 @@ var step = (itemWidth) => import_react70.css`
|
|
|
10681
10694
|
flex-basis: ${itemWidth || "100%"};
|
|
10682
10695
|
}
|
|
10683
10696
|
`;
|
|
10684
|
-
var controls = (position2) =>
|
|
10697
|
+
var controls = (position2) => import_react71.css`
|
|
10685
10698
|
${(position2 === "left-right" || position2 === "top-right") && `
|
|
10686
10699
|
display: none;
|
|
10687
10700
|
|
|
@@ -10690,7 +10703,7 @@ var controls = (position2) => import_react70.css`
|
|
|
10690
10703
|
}
|
|
10691
10704
|
`}
|
|
10692
10705
|
`;
|
|
10693
|
-
var iconWrapper =
|
|
10706
|
+
var iconWrapper = import_react71.css`
|
|
10694
10707
|
display: flex;
|
|
10695
10708
|
width: var(--spacing-7);
|
|
10696
10709
|
height: var(--spacing-7);
|
|
@@ -10700,7 +10713,7 @@ var iconWrapper = import_react70.css`
|
|
|
10700
10713
|
justify-content: center;
|
|
10701
10714
|
box-shadow: var(--shadow-md);
|
|
10702
10715
|
`;
|
|
10703
|
-
var button = (position2) =>
|
|
10716
|
+
var button = (position2) => import_react71.css`
|
|
10704
10717
|
background: transparent;
|
|
10705
10718
|
border-color: transparent;
|
|
10706
10719
|
outline: none;
|
|
@@ -10732,7 +10745,7 @@ var button = (position2) => import_react70.css`
|
|
|
10732
10745
|
bottom: calc(-1 * var(--spacing-1));
|
|
10733
10746
|
`}
|
|
10734
10747
|
`;
|
|
10735
|
-
var buttonLeft = (position2) =>
|
|
10748
|
+
var buttonLeft = (position2) => import_react71.css`
|
|
10736
10749
|
${button(position2)}
|
|
10737
10750
|
|
|
10738
10751
|
${position2 === "left-right" && `
|
|
@@ -10752,7 +10765,7 @@ var buttonLeft = (position2) => import_react70.css`
|
|
|
10752
10765
|
left: calc(50% - var(--spacing-16));
|
|
10753
10766
|
`}
|
|
10754
10767
|
`;
|
|
10755
|
-
var customButtonLeft = (position2) =>
|
|
10768
|
+
var customButtonLeft = (position2) => import_react71.css`
|
|
10756
10769
|
${button(position2)}
|
|
10757
10770
|
|
|
10758
10771
|
${position2 === "left-right" && `
|
|
@@ -10772,7 +10785,7 @@ var customButtonLeft = (position2) => import_react70.css`
|
|
|
10772
10785
|
left: calc(50% - var(--spacing-16));
|
|
10773
10786
|
`}
|
|
10774
10787
|
`;
|
|
10775
|
-
var buttonRight = (position2) =>
|
|
10788
|
+
var buttonRight = (position2) => import_react71.css`
|
|
10776
10789
|
${button(position2)}
|
|
10777
10790
|
|
|
10778
10791
|
${position2 === "left-right" && `
|
|
@@ -10792,12 +10805,12 @@ var buttonRight = (position2) => import_react70.css`
|
|
|
10792
10805
|
right: calc(50% - var(--spacing-16));
|
|
10793
10806
|
`}
|
|
10794
10807
|
`;
|
|
10795
|
-
var icon =
|
|
10808
|
+
var icon = import_react71.css`
|
|
10796
10809
|
width: var(--spacing-3);
|
|
10797
10810
|
height: var(--spacing-3);
|
|
10798
10811
|
color: var(--color-base-black);
|
|
10799
10812
|
`;
|
|
10800
|
-
var dots =
|
|
10813
|
+
var dots = import_react71.css`
|
|
10801
10814
|
position: absolute;
|
|
10802
10815
|
bottom: var(--spacing-2);
|
|
10803
10816
|
left: 0;
|
|
@@ -10807,11 +10820,11 @@ var dots = import_react70.css`
|
|
|
10807
10820
|
align-items: center;
|
|
10808
10821
|
justify-content: center;
|
|
10809
10822
|
`;
|
|
10810
|
-
var dotsInner =
|
|
10823
|
+
var dotsInner = import_react71.css`
|
|
10811
10824
|
display: flex;
|
|
10812
10825
|
overflow: hidden;
|
|
10813
10826
|
`;
|
|
10814
|
-
var dot = (dotsColor) =>
|
|
10827
|
+
var dot = (dotsColor) => import_react71.css`
|
|
10815
10828
|
position: relative;
|
|
10816
10829
|
flex-shrink: 0;
|
|
10817
10830
|
flex-grow: 0;
|
|
@@ -10850,22 +10863,22 @@ var dot = (dotsColor) => import_react70.css`
|
|
|
10850
10863
|
`}
|
|
10851
10864
|
}
|
|
10852
10865
|
`;
|
|
10853
|
-
var dotDistance2 =
|
|
10866
|
+
var dotDistance2 = import_react71.css`
|
|
10854
10867
|
&::after {
|
|
10855
10868
|
transform: translate(-50%, -50%) scale(0.9);
|
|
10856
10869
|
}
|
|
10857
10870
|
`;
|
|
10858
|
-
var dotDistance3 =
|
|
10871
|
+
var dotDistance3 = import_react71.css`
|
|
10859
10872
|
&::after {
|
|
10860
10873
|
transform: translate(-50%, -50%) scale(0.8);
|
|
10861
10874
|
}
|
|
10862
10875
|
`;
|
|
10863
|
-
var dotDistanceGreaterThan3 =
|
|
10876
|
+
var dotDistanceGreaterThan3 = import_react71.css`
|
|
10864
10877
|
&::after {
|
|
10865
10878
|
transform: translate(-50%, -50%) scale(0.7);
|
|
10866
10879
|
}
|
|
10867
10880
|
`;
|
|
10868
|
-
var dotVisible =
|
|
10881
|
+
var dotVisible = import_react71.css`
|
|
10869
10882
|
&::after {
|
|
10870
10883
|
opacity: 1;
|
|
10871
10884
|
transform: translate(-50%, -50%) scale(1.2);
|
|
@@ -10882,7 +10895,7 @@ var ScrollingCarouselStep = ({
|
|
|
10882
10895
|
onClick,
|
|
10883
10896
|
itemWidth
|
|
10884
10897
|
}) => {
|
|
10885
|
-
const context = (0,
|
|
10898
|
+
const context = (0, import_react72.useContext)(CarouselContext);
|
|
10886
10899
|
if (!context) {
|
|
10887
10900
|
throw new Error(
|
|
10888
10901
|
"ScrollingCarouselStep must be used within ScrollingCarousel"
|
|
@@ -10893,7 +10906,7 @@ var ScrollingCarouselStep = ({
|
|
|
10893
10906
|
threshold: 0.75,
|
|
10894
10907
|
root: carousel2.current
|
|
10895
10908
|
});
|
|
10896
|
-
(0,
|
|
10909
|
+
(0, import_react72.useEffect)(() => {
|
|
10897
10910
|
if (typeof index !== "undefined") {
|
|
10898
10911
|
dispatch({
|
|
10899
10912
|
type: "set_child_visibility",
|
|
@@ -10919,10 +10932,10 @@ var ScrollingCarouselStep = ({
|
|
|
10919
10932
|
ScrollingCarouselStep.displayName = "ScrollingCarouselStep";
|
|
10920
10933
|
|
|
10921
10934
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
10922
|
-
var
|
|
10935
|
+
var import_react76 = __toESM(require("react"));
|
|
10923
10936
|
|
|
10924
10937
|
// src/ScrollingCarousel/hooks/useCarouselDots.ts
|
|
10925
|
-
var
|
|
10938
|
+
var import_react73 = require("react");
|
|
10926
10939
|
|
|
10927
10940
|
// src/ScrollingCarousel/ScrollingCarousel.helpers.ts
|
|
10928
10941
|
var childVisibilityReducer = (state, action) => {
|
|
@@ -10953,7 +10966,7 @@ var useCarouselDots = ({
|
|
|
10953
10966
|
anyItemsVisible,
|
|
10954
10967
|
numberOfDots
|
|
10955
10968
|
}) => {
|
|
10956
|
-
const dotOffset = (0,
|
|
10969
|
+
const dotOffset = (0, import_react73.useRef)(0);
|
|
10957
10970
|
const dotWidth = 12;
|
|
10958
10971
|
const totalDots = childVisibility.length;
|
|
10959
10972
|
const dotToCenterIndex = Math.round(
|
|
@@ -10985,7 +10998,7 @@ var useCarouselDots = ({
|
|
|
10985
10998
|
};
|
|
10986
10999
|
|
|
10987
11000
|
// src/ScrollingCarousel/hooks/useCarouselNavigation.ts
|
|
10988
|
-
var
|
|
11001
|
+
var import_react74 = require("react");
|
|
10989
11002
|
|
|
10990
11003
|
// src/shared/helpers.ts
|
|
10991
11004
|
var import_seamless_scroll_polyfill = require("seamless-scroll-polyfill");
|
|
@@ -11019,7 +11032,7 @@ var useCarouselNavigation = ({
|
|
|
11019
11032
|
infiniteScroll,
|
|
11020
11033
|
childVisibilityLength
|
|
11021
11034
|
}) => {
|
|
11022
|
-
const getStepEl = (0,
|
|
11035
|
+
const getStepEl = (0, import_react74.useCallback)(
|
|
11023
11036
|
(index) => {
|
|
11024
11037
|
if (carousel2.current) {
|
|
11025
11038
|
const selector = `[data-carousel-id="${id}"][data-carousel-index="${index}"]`;
|
|
@@ -11029,7 +11042,7 @@ var useCarouselNavigation = ({
|
|
|
11029
11042
|
},
|
|
11030
11043
|
[carousel2, id]
|
|
11031
11044
|
);
|
|
11032
|
-
const next = (0,
|
|
11045
|
+
const next = (0, import_react74.useCallback)(
|
|
11033
11046
|
(e) => {
|
|
11034
11047
|
e.preventDefault();
|
|
11035
11048
|
if (lastItemIsVisible && !infiniteScroll)
|
|
@@ -11057,7 +11070,7 @@ var useCarouselNavigation = ({
|
|
|
11057
11070
|
carousel2
|
|
11058
11071
|
]
|
|
11059
11072
|
);
|
|
11060
|
-
const back = (0,
|
|
11073
|
+
const back = (0, import_react74.useCallback)(
|
|
11061
11074
|
(e) => {
|
|
11062
11075
|
e.preventDefault();
|
|
11063
11076
|
if (firstItemIsVisible && !infiniteScroll)
|
|
@@ -11085,7 +11098,7 @@ var useCarouselNavigation = ({
|
|
|
11085
11098
|
carousel2
|
|
11086
11099
|
]
|
|
11087
11100
|
);
|
|
11088
|
-
const goTo = (0,
|
|
11101
|
+
const goTo = (0, import_react74.useCallback)(
|
|
11089
11102
|
(e, i) => {
|
|
11090
11103
|
e.preventDefault();
|
|
11091
11104
|
const el = getStepEl(i);
|
|
@@ -11103,12 +11116,12 @@ var useCarouselNavigation = ({
|
|
|
11103
11116
|
};
|
|
11104
11117
|
|
|
11105
11118
|
// src/ScrollingCarousel/hooks/useCarouselVisibility.ts
|
|
11106
|
-
var
|
|
11119
|
+
var import_react75 = require("react");
|
|
11107
11120
|
var useCarouselVisibility = (carousel2) => {
|
|
11108
|
-
const [state, dispatch] = (0,
|
|
11121
|
+
const [state, dispatch] = (0, import_react75.useReducer)(childVisibilityReducer, {
|
|
11109
11122
|
childVisibility: []
|
|
11110
11123
|
});
|
|
11111
|
-
const carouselContextApi = (0,
|
|
11124
|
+
const carouselContextApi = (0, import_react75.useMemo)(
|
|
11112
11125
|
() => ({ carousel: carousel2, dispatch }),
|
|
11113
11126
|
[carousel2]
|
|
11114
11127
|
);
|
|
@@ -11148,8 +11161,8 @@ var ScrollingCarousel = ({
|
|
|
11148
11161
|
itemWidth,
|
|
11149
11162
|
gap: gap2
|
|
11150
11163
|
}) => {
|
|
11151
|
-
const carousel2 = (0,
|
|
11152
|
-
const [isHovering, setIsHovering] = (0,
|
|
11164
|
+
const carousel2 = (0, import_react76.useRef)(null);
|
|
11165
|
+
const [isHovering, setIsHovering] = (0, import_react76.useState)(false);
|
|
11153
11166
|
const {
|
|
11154
11167
|
state,
|
|
11155
11168
|
carouselContextApi,
|
|
@@ -11169,7 +11182,7 @@ var ScrollingCarousel = ({
|
|
|
11169
11182
|
infiniteScroll,
|
|
11170
11183
|
childVisibilityLength: state.childVisibility.length
|
|
11171
11184
|
});
|
|
11172
|
-
(0,
|
|
11185
|
+
(0, import_react76.useEffect)(() => {
|
|
11173
11186
|
if (carousel2.current && typeof current === "number" && current >= 0) {
|
|
11174
11187
|
const childrenArray = Array.from(carousel2.current.children);
|
|
11175
11188
|
const selectedItem = childrenArray[current];
|
|
@@ -11184,9 +11197,9 @@ var ScrollingCarousel = ({
|
|
|
11184
11197
|
}
|
|
11185
11198
|
}
|
|
11186
11199
|
}, [current]);
|
|
11187
|
-
const childrenWithIndex =
|
|
11200
|
+
const childrenWithIndex = import_react76.default.Children.map(
|
|
11188
11201
|
children,
|
|
11189
|
-
(child, index) =>
|
|
11202
|
+
(child, index) => import_react76.default.cloneElement(child, { index, itemWidth })
|
|
11190
11203
|
);
|
|
11191
11204
|
const { dotOffset, dotDistances, dotWidth } = useCarouselDots({
|
|
11192
11205
|
childVisibility: state.childVisibility,
|
|
@@ -11288,8 +11301,8 @@ var ScrollingCarousel = ({
|
|
|
11288
11301
|
ScrollingCarousel.displayName = "ScrollingCarousel";
|
|
11289
11302
|
|
|
11290
11303
|
// src/PackageCard/PackageCard.styles.ts
|
|
11291
|
-
var
|
|
11292
|
-
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) =>
|
|
11304
|
+
var import_react77 = require("@emotion/react");
|
|
11305
|
+
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) => import_react77.css`
|
|
11293
11306
|
${hasClickHandler && `
|
|
11294
11307
|
cursor: pointer;
|
|
11295
11308
|
`}
|
|
@@ -11307,7 +11320,7 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
11307
11320
|
flex-direction: column;
|
|
11308
11321
|
gap: var(--spacing-2);
|
|
11309
11322
|
|
|
11310
|
-
${orientation === "horizontal" &&
|
|
11323
|
+
${orientation === "horizontal" && import_react77.css`
|
|
11311
11324
|
/* Apply horizontal layout only on tablet and up */
|
|
11312
11325
|
${media.md} {
|
|
11313
11326
|
flex-direction: row;
|
|
@@ -11335,58 +11348,58 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
11335
11348
|
}
|
|
11336
11349
|
`}
|
|
11337
11350
|
`;
|
|
11338
|
-
var imageContainerStyles = (orientation) =>
|
|
11351
|
+
var imageContainerStyles = (orientation) => import_react77.css`
|
|
11339
11352
|
width: 100%;
|
|
11340
11353
|
height: 260px;
|
|
11341
11354
|
|
|
11342
|
-
${orientation === "horizontal" &&
|
|
11355
|
+
${orientation === "horizontal" && import_react77.css`
|
|
11343
11356
|
${media.md} {
|
|
11344
11357
|
width: 40%;
|
|
11345
11358
|
height: 200px;
|
|
11346
11359
|
`}
|
|
11347
11360
|
`;
|
|
11348
|
-
var imageBoxStyles = (orientation) =>
|
|
11361
|
+
var imageBoxStyles = (orientation) => import_react77.css`
|
|
11349
11362
|
height: 260px;
|
|
11350
|
-
${orientation === "horizontal" &&
|
|
11363
|
+
${orientation === "horizontal" && import_react77.css`
|
|
11351
11364
|
${media.md} {
|
|
11352
11365
|
height: 200px;
|
|
11353
11366
|
}
|
|
11354
11367
|
`}
|
|
11355
11368
|
`;
|
|
11356
|
-
var contentContainerStyles = (orientation, hasContentBackground) =>
|
|
11369
|
+
var contentContainerStyles = (orientation, hasContentBackground) => import_react77.css`
|
|
11357
11370
|
${hasContentBackground ? contentWithBackgroundStyles : contentWithoutBackgroundStyles}
|
|
11358
11371
|
width: 100%;
|
|
11359
11372
|
display: flex;
|
|
11360
11373
|
flex-direction: column;
|
|
11361
11374
|
justify-content: flex-start;
|
|
11362
11375
|
|
|
11363
|
-
${orientation === "horizontal" &&
|
|
11376
|
+
${orientation === "horizontal" && import_react77.css`
|
|
11364
11377
|
${media.md} {
|
|
11365
11378
|
width: 60%;
|
|
11366
11379
|
justify-content: center;
|
|
11367
11380
|
}
|
|
11368
11381
|
`}
|
|
11369
11382
|
`;
|
|
11370
|
-
var imageStyles3 =
|
|
11383
|
+
var imageStyles3 = import_react77.css`
|
|
11371
11384
|
background-size: cover;
|
|
11372
11385
|
background-position: center;
|
|
11373
11386
|
background-repeat: no-repeat;
|
|
11374
11387
|
position: relative;
|
|
11375
11388
|
background-color: lightgray;
|
|
11376
11389
|
`;
|
|
11377
|
-
var badgeTopLeftStyles =
|
|
11390
|
+
var badgeTopLeftStyles = import_react77.css`
|
|
11378
11391
|
position: absolute;
|
|
11379
11392
|
top: var(--spacing-3);
|
|
11380
11393
|
left: var(--spacing-3);
|
|
11381
11394
|
z-index: 2;
|
|
11382
11395
|
`;
|
|
11383
|
-
var badgeBottomRightStyles =
|
|
11396
|
+
var badgeBottomRightStyles = import_react77.css`
|
|
11384
11397
|
position: absolute;
|
|
11385
11398
|
bottom: var(--spacing-3);
|
|
11386
11399
|
right: var(--spacing-3);
|
|
11387
11400
|
z-index: 2;
|
|
11388
11401
|
`;
|
|
11389
|
-
var heartIconStyles =
|
|
11402
|
+
var heartIconStyles = import_react77.css`
|
|
11390
11403
|
position: absolute;
|
|
11391
11404
|
top: var(--spacing-3);
|
|
11392
11405
|
right: var(--spacing-3);
|
|
@@ -11408,20 +11421,20 @@ var heartIconStyles = import_react76.css`
|
|
|
11408
11421
|
transform: scale(1.1);
|
|
11409
11422
|
}
|
|
11410
11423
|
`;
|
|
11411
|
-
var actionMenuStyles =
|
|
11424
|
+
var actionMenuStyles = import_react77.css`
|
|
11412
11425
|
position: absolute;
|
|
11413
11426
|
top: var(--spacing-3);
|
|
11414
11427
|
right: var(--spacing-3);
|
|
11415
11428
|
z-index: 3;
|
|
11416
11429
|
`;
|
|
11417
|
-
var contentWithBackgroundStyles =
|
|
11430
|
+
var contentWithBackgroundStyles = import_react77.css`
|
|
11418
11431
|
padding: 0 var(--spacing-3) var(--spacing-4) var(--spacing-3);
|
|
11419
11432
|
background-color: var(--surface-page);
|
|
11420
11433
|
`;
|
|
11421
|
-
var contentWithoutBackgroundStyles =
|
|
11434
|
+
var contentWithoutBackgroundStyles = import_react77.css`
|
|
11422
11435
|
padding-top: 0 var(--spacing-2) var(--spacing-2) var(--spacing-2);
|
|
11423
11436
|
`;
|
|
11424
|
-
var overlayStyles =
|
|
11437
|
+
var overlayStyles = import_react77.css`
|
|
11425
11438
|
position: absolute;
|
|
11426
11439
|
top: 0;
|
|
11427
11440
|
left: 0;
|
|
@@ -11433,7 +11446,7 @@ var overlayStyles = import_react76.css`
|
|
|
11433
11446
|
display: block;
|
|
11434
11447
|
pointer-events: none;
|
|
11435
11448
|
`;
|
|
11436
|
-
var titleStyles =
|
|
11449
|
+
var titleStyles = import_react77.css`
|
|
11437
11450
|
text-wrap: wrap;
|
|
11438
11451
|
word-break: break-word;
|
|
11439
11452
|
white-space: pre-wrap;
|
|
@@ -11664,8 +11677,8 @@ var PackageHeader = ({
|
|
|
11664
11677
|
var PackageHeader_default = PackageHeader;
|
|
11665
11678
|
|
|
11666
11679
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
11667
|
-
var
|
|
11668
|
-
var imageStyles4 =
|
|
11680
|
+
var import_react78 = require("@emotion/react");
|
|
11681
|
+
var imageStyles4 = import_react78.css`
|
|
11669
11682
|
flex: 1;
|
|
11670
11683
|
min-width: 0;
|
|
11671
11684
|
max-width: 100%;
|
|
@@ -11797,7 +11810,7 @@ var ReviewCard = ({
|
|
|
11797
11810
|
var ReviewCard_default = ReviewCard;
|
|
11798
11811
|
|
|
11799
11812
|
// src/Reviews/Reviews.tsx
|
|
11800
|
-
var
|
|
11813
|
+
var import_react79 = require("@emotion/react");
|
|
11801
11814
|
|
|
11802
11815
|
// src/Reviews/components/ReviewItem.tsx
|
|
11803
11816
|
var import_jsx_runtime270 = require("@emotion/react/jsx-runtime");
|
|
@@ -11855,7 +11868,7 @@ var Reviews = ({
|
|
|
11855
11868
|
StarRating_default,
|
|
11856
11869
|
{
|
|
11857
11870
|
rating: averageRating,
|
|
11858
|
-
css:
|
|
11871
|
+
css: import_react79.css`
|
|
11859
11872
|
> svg {
|
|
11860
11873
|
height: 40px;
|
|
11861
11874
|
width: 40px;
|