myshell-react-lib 0.2.44 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +276 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -10
- package/dist/index.d.ts +20 -10
- package/dist/index.js +322 -142
- package/dist/index.js.map +1 -1
- package/dist/styles/components-dark-v2.scss +220 -0
- package/dist/styles/components-light-v2.scss +220 -0
- package/dist/styles/design2-dark-v2.scss +443 -0
- package/dist/styles/design2-light-v2.scss +443 -0
- package/dist/styles/global.scss +5 -5
- package/dist/styles/new-tokens-v2.scss +518 -0
- package/package.json +2 -2
- package/dist/styles/components-dark.scss +0 -210
- package/dist/styles/components-light.scss +0 -208
- package/dist/styles/design2-dark.scss +0 -332
- package/dist/styles/design2-light.scss +0 -366
- package/dist/styles/new-tokens.scss +0 -264
package/dist/index.js
CHANGED
|
@@ -6301,6 +6301,13 @@ var iconVariants = cva("inline-flex shrink-0", {
|
|
|
6301
6301
|
color: "default"
|
|
6302
6302
|
}
|
|
6303
6303
|
});
|
|
6304
|
+
var SMALL_ICON_SIZES = /* @__PURE__ */ new Set([
|
|
6305
|
+
"2xs",
|
|
6306
|
+
"xs",
|
|
6307
|
+
"sm",
|
|
6308
|
+
"md",
|
|
6309
|
+
"lg"
|
|
6310
|
+
]);
|
|
6304
6311
|
var Icon = React.forwardRef(function(props, ref) {
|
|
6305
6312
|
var children = props.children, component = props.component, size = props.size, color = props.color, rotate = props.rotate, className = props.className, passProps = _object_without_properties(props, [
|
|
6306
6313
|
"children",
|
|
@@ -6311,10 +6318,11 @@ var Icon = React.forwardRef(function(props, ref) {
|
|
|
6311
6318
|
"className"
|
|
6312
6319
|
]);
|
|
6313
6320
|
var Com = component || "span";
|
|
6321
|
+
var strokeWidth = SMALL_ICON_SIZES.has(size) ? 1.25 : 1.5;
|
|
6314
6322
|
return /* @__PURE__ */ jsx(Com, _object_spread_props(_object_spread({
|
|
6315
6323
|
ref: ref
|
|
6316
6324
|
}, passProps), {
|
|
6317
|
-
strokeWidth:
|
|
6325
|
+
strokeWidth: strokeWidth,
|
|
6318
6326
|
className: cn(iconVariants({
|
|
6319
6327
|
size: size,
|
|
6320
6328
|
color: color,
|
|
@@ -6354,21 +6362,27 @@ var lineClampMap = {
|
|
|
6354
6362
|
5: "line-clamp-5",
|
|
6355
6363
|
6: "line-clamp-6"
|
|
6356
6364
|
};
|
|
6357
|
-
var displayVariants = cva2("
|
|
6365
|
+
var displayVariants = cva2("display-font-style font-ABCDiatype", {
|
|
6358
6366
|
variants: {
|
|
6359
6367
|
size: {
|
|
6360
|
-
"
|
|
6368
|
+
"3xl": "text-7xl",
|
|
6369
|
+
"2xl": "text-6xl",
|
|
6361
6370
|
xl: "text-5xl",
|
|
6362
6371
|
lg: "text-3xl",
|
|
6363
6372
|
md: "text-2xl",
|
|
6364
6373
|
sm: "text-xl",
|
|
6365
6374
|
xs: "text-lg"
|
|
6366
6375
|
},
|
|
6376
|
+
weight: {
|
|
6377
|
+
medium: "font-medium",
|
|
6378
|
+
semibold: "font-semibold"
|
|
6379
|
+
},
|
|
6367
6380
|
color: colorMap,
|
|
6368
6381
|
lineClamp: lineClampMap
|
|
6369
6382
|
},
|
|
6370
6383
|
defaultVariants: {
|
|
6371
6384
|
size: "lg",
|
|
6385
|
+
weight: "medium",
|
|
6372
6386
|
color: "default"
|
|
6373
6387
|
}
|
|
6374
6388
|
});
|
|
@@ -6530,9 +6544,10 @@ var Heading = React2.forwardRef(function(props, ref) {
|
|
|
6530
6544
|
}));
|
|
6531
6545
|
});
|
|
6532
6546
|
var Display = React2.forwardRef(function(props, ref) {
|
|
6533
|
-
var className = props.className, size = props.size, color = props.color, lineClamp = props.lineClamp, underline = props.underline, strikethrough = props.strikethrough, strong = props.strong, italic = props.italic, children = props.children, dangerous = props.dangerous, passProps = _object_without_properties(props, [
|
|
6547
|
+
var className = props.className, size = props.size, weight = props.weight, color = props.color, lineClamp = props.lineClamp, underline = props.underline, strikethrough = props.strikethrough, strong = props.strong, italic = props.italic, children = props.children, dangerous = props.dangerous, passProps = _object_without_properties(props, [
|
|
6534
6548
|
"className",
|
|
6535
6549
|
"size",
|
|
6550
|
+
"weight",
|
|
6536
6551
|
"color",
|
|
6537
6552
|
"lineClamp",
|
|
6538
6553
|
"underline",
|
|
@@ -6553,6 +6568,7 @@ var Display = React2.forwardRef(function(props, ref) {
|
|
|
6553
6568
|
ref: ref,
|
|
6554
6569
|
className: cn(displayVariants({
|
|
6555
6570
|
size: size,
|
|
6571
|
+
weight: weight,
|
|
6556
6572
|
color: color,
|
|
6557
6573
|
lineClamp: lineClamp
|
|
6558
6574
|
}), className)
|
|
@@ -6720,23 +6736,24 @@ import { jsx as jsx4, jsxs } from "react/jsx-runtime";
|
|
|
6720
6736
|
var CircleErrorIcon = React4.forwardRef(function(props, ref) {
|
|
6721
6737
|
return /* @__PURE__ */ jsx4(Icon, _object_spread_props(_object_spread({}, props), {
|
|
6722
6738
|
children: /* @__PURE__ */ jsxs("svg", {
|
|
6723
|
-
className: "w-full h-full",
|
|
6724
|
-
viewBox: "0 0 20 20",
|
|
6725
|
-
fill: "currentColor",
|
|
6726
6739
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6740
|
+
width: "20",
|
|
6741
|
+
height: "20",
|
|
6742
|
+
viewBox: "0 0 20 20",
|
|
6743
|
+
fill: "none",
|
|
6727
6744
|
children: [
|
|
6728
6745
|
/* @__PURE__ */ jsx4("circle", {
|
|
6729
6746
|
cx: "10",
|
|
6730
6747
|
cy: "10",
|
|
6731
6748
|
r: "8",
|
|
6732
|
-
fill: "#
|
|
6749
|
+
fill: "#EF3B2E"
|
|
6733
6750
|
}),
|
|
6734
6751
|
/* @__PURE__ */ jsx4("path", {
|
|
6735
|
-
d: "M12
|
|
6736
|
-
stroke: "
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6752
|
+
d: "M12.5 7.5L7.5 12.5M7.5 7.5L12.5 12.5",
|
|
6753
|
+
stroke: "white",
|
|
6754
|
+
"stroke-width": "1.04167",
|
|
6755
|
+
"stroke-linecap": "round",
|
|
6756
|
+
"stroke-linejoin": "round"
|
|
6740
6757
|
})
|
|
6741
6758
|
]
|
|
6742
6759
|
})
|
|
@@ -6748,23 +6765,24 @@ import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
|
6748
6765
|
var CircleInfoIcon = React5.forwardRef(function(props, ref) {
|
|
6749
6766
|
return /* @__PURE__ */ jsx5(Icon, _object_spread_props(_object_spread({}, props), {
|
|
6750
6767
|
children: /* @__PURE__ */ jsxs2("svg", {
|
|
6751
|
-
className: "w-full h-full",
|
|
6752
|
-
viewBox: "0 0 20 20",
|
|
6753
|
-
fill: "currentColor",
|
|
6754
6768
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6769
|
+
width: "20",
|
|
6770
|
+
height: "20",
|
|
6771
|
+
viewBox: "0 0 20 20",
|
|
6772
|
+
fill: "none",
|
|
6755
6773
|
children: [
|
|
6756
6774
|
/* @__PURE__ */ jsx5("circle", {
|
|
6757
6775
|
cx: "10",
|
|
6758
6776
|
cy: "10",
|
|
6759
6777
|
r: "8",
|
|
6760
|
-
fill: "#
|
|
6778
|
+
fill: "#357FE9"
|
|
6761
6779
|
}),
|
|
6762
6780
|
/* @__PURE__ */ jsx5("path", {
|
|
6763
|
-
d: "M10
|
|
6764
|
-
stroke: "
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6781
|
+
d: "M10.01 13.3333L10.01 9.66666M10.01 6.99999L10.0033 6.99999",
|
|
6782
|
+
stroke: "white",
|
|
6783
|
+
"stroke-width": "1.25",
|
|
6784
|
+
"stroke-linecap": "round",
|
|
6785
|
+
"stroke-linejoin": "round"
|
|
6768
6786
|
})
|
|
6769
6787
|
]
|
|
6770
6788
|
})
|
|
@@ -6776,23 +6794,24 @@ import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
|
6776
6794
|
var CircleWarningIcon = React6.forwardRef(function(props, ref) {
|
|
6777
6795
|
return /* @__PURE__ */ jsx6(Icon, _object_spread_props(_object_spread({}, props), {
|
|
6778
6796
|
children: /* @__PURE__ */ jsxs3("svg", {
|
|
6779
|
-
className: "w-full h-full",
|
|
6780
|
-
viewBox: "0 0 20 20",
|
|
6781
|
-
fill: "currentColor",
|
|
6782
6797
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6798
|
+
width: "20",
|
|
6799
|
+
height: "20",
|
|
6800
|
+
viewBox: "0 0 20 20",
|
|
6801
|
+
fill: "none",
|
|
6783
6802
|
children: [
|
|
6784
6803
|
/* @__PURE__ */ jsx6("circle", {
|
|
6785
6804
|
cx: "10",
|
|
6786
6805
|
cy: "10",
|
|
6787
6806
|
r: "8",
|
|
6788
|
-
fill: "#
|
|
6807
|
+
fill: "#ED9908"
|
|
6789
6808
|
}),
|
|
6790
6809
|
/* @__PURE__ */ jsx6("path", {
|
|
6791
|
-
d: "M9.99994
|
|
6792
|
-
stroke: "
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6810
|
+
d: "M9.99994 7V10.6667M9.99994 13.3333H10.0066",
|
|
6811
|
+
stroke: "white",
|
|
6812
|
+
"stroke-width": "1.25",
|
|
6813
|
+
"stroke-linecap": "round",
|
|
6814
|
+
"stroke-linejoin": "round"
|
|
6796
6815
|
})
|
|
6797
6816
|
]
|
|
6798
6817
|
})
|
|
@@ -6804,23 +6823,24 @@ import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
|
6804
6823
|
var CircleSuccessIcon = React7.forwardRef(function(props, ref) {
|
|
6805
6824
|
return /* @__PURE__ */ jsx7(Icon, _object_spread_props(_object_spread({}, props), {
|
|
6806
6825
|
children: /* @__PURE__ */ jsxs4("svg", {
|
|
6807
|
-
className: "w-full h-full",
|
|
6808
|
-
viewBox: "0 0 20 20",
|
|
6809
|
-
fill: "currentColor",
|
|
6810
6826
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6827
|
+
width: "20",
|
|
6828
|
+
height: "20",
|
|
6829
|
+
viewBox: "0 0 20 20",
|
|
6830
|
+
fill: "none",
|
|
6811
6831
|
children: [
|
|
6812
6832
|
/* @__PURE__ */ jsx7("circle", {
|
|
6813
6833
|
cx: "10",
|
|
6814
6834
|
cy: "10",
|
|
6815
6835
|
r: "8",
|
|
6816
|
-
fill: "#
|
|
6836
|
+
fill: "#17A966"
|
|
6817
6837
|
}),
|
|
6818
6838
|
/* @__PURE__ */ jsx7("path", {
|
|
6819
|
-
d: "
|
|
6820
|
-
stroke: "
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6839
|
+
d: "M7 10.3333L9 12.3333L13 8.33334",
|
|
6840
|
+
stroke: "white",
|
|
6841
|
+
"stroke-width": "1.25",
|
|
6842
|
+
"stroke-linecap": "round",
|
|
6843
|
+
"stroke-linejoin": "round"
|
|
6824
6844
|
})
|
|
6825
6845
|
]
|
|
6826
6846
|
})
|
|
@@ -10492,7 +10512,7 @@ var renderIcon2 = function(icon, direction, param) {
|
|
|
10492
10512
|
};
|
|
10493
10513
|
LinkButton.displayName = "LinkButton";
|
|
10494
10514
|
// src/components/cascader.tsx
|
|
10495
|
-
import { useState as
|
|
10515
|
+
import { useState as useState6, useRef as useRef5, Fragment as Fragment5 } from "react";
|
|
10496
10516
|
import { Check as Check2, ChevronDown, X } from "lucide-react";
|
|
10497
10517
|
import { cva as cva8 } from "class-variance-authority";
|
|
10498
10518
|
// src/components/dropdown-menu.tsx
|
|
@@ -10501,7 +10521,107 @@ import { Check, ChevronRight, Circle } from "lucide-react";
|
|
|
10501
10521
|
import * as React21 from "react";
|
|
10502
10522
|
import { jsx as jsx27, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
10503
10523
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
10504
|
-
var
|
|
10524
|
+
var DropdownMenuHoverContext = React21.createContext(null);
|
|
10525
|
+
var DropdownMenuHover = function(_param) {
|
|
10526
|
+
var children = _param.children, _param_openDelay = _param.openDelay, openDelay = _param_openDelay === void 0 ? 200 : _param_openDelay, _param_closeDelay = _param.closeDelay, closeDelay = _param_closeDelay === void 0 ? 300 : _param_closeDelay, _param_modal = _param.modal, modal = _param_modal === void 0 ? false : _param_modal, props = _object_without_properties(_param, [
|
|
10527
|
+
"children",
|
|
10528
|
+
"openDelay",
|
|
10529
|
+
"closeDelay",
|
|
10530
|
+
"modal"
|
|
10531
|
+
]);
|
|
10532
|
+
var _React21_useState = _sliced_to_array(React21.useState(false), 2), open = _React21_useState[0], setOpen = _React21_useState[1];
|
|
10533
|
+
var openTimeoutRef = React21.useRef();
|
|
10534
|
+
var closeTimeoutRef = React21.useRef();
|
|
10535
|
+
var openStateRef = React21.useRef(false);
|
|
10536
|
+
React21.useEffect(function() {
|
|
10537
|
+
openStateRef.current = open;
|
|
10538
|
+
}, [
|
|
10539
|
+
open
|
|
10540
|
+
]);
|
|
10541
|
+
var clearAllTimeouts = React21.useCallback(function() {
|
|
10542
|
+
if (openTimeoutRef.current) {
|
|
10543
|
+
clearTimeout(openTimeoutRef.current);
|
|
10544
|
+
openTimeoutRef.current = void 0;
|
|
10545
|
+
}
|
|
10546
|
+
if (closeTimeoutRef.current) {
|
|
10547
|
+
clearTimeout(closeTimeoutRef.current);
|
|
10548
|
+
closeTimeoutRef.current = void 0;
|
|
10549
|
+
}
|
|
10550
|
+
}, []);
|
|
10551
|
+
var handleMouseEnter = React21.useCallback(function() {
|
|
10552
|
+
if (closeTimeoutRef.current) {
|
|
10553
|
+
clearTimeout(closeTimeoutRef.current);
|
|
10554
|
+
closeTimeoutRef.current = void 0;
|
|
10555
|
+
}
|
|
10556
|
+
if (openTimeoutRef.current || openStateRef.current) {
|
|
10557
|
+
return;
|
|
10558
|
+
}
|
|
10559
|
+
openTimeoutRef.current = setTimeout(function() {
|
|
10560
|
+
setOpen(true);
|
|
10561
|
+
openTimeoutRef.current = void 0;
|
|
10562
|
+
}, openDelay);
|
|
10563
|
+
}, [
|
|
10564
|
+
openDelay
|
|
10565
|
+
]);
|
|
10566
|
+
var handleMouseLeave = React21.useCallback(function() {
|
|
10567
|
+
if (openTimeoutRef.current) {
|
|
10568
|
+
clearTimeout(openTimeoutRef.current);
|
|
10569
|
+
openTimeoutRef.current = void 0;
|
|
10570
|
+
}
|
|
10571
|
+
if (closeTimeoutRef.current || !openStateRef.current) {
|
|
10572
|
+
return;
|
|
10573
|
+
}
|
|
10574
|
+
closeTimeoutRef.current = setTimeout(function() {
|
|
10575
|
+
setOpen(false);
|
|
10576
|
+
closeTimeoutRef.current = void 0;
|
|
10577
|
+
}, closeDelay);
|
|
10578
|
+
}, [
|
|
10579
|
+
closeDelay
|
|
10580
|
+
]);
|
|
10581
|
+
React21.useEffect(function() {
|
|
10582
|
+
return function() {
|
|
10583
|
+
clearAllTimeouts();
|
|
10584
|
+
};
|
|
10585
|
+
}, [
|
|
10586
|
+
clearAllTimeouts
|
|
10587
|
+
]);
|
|
10588
|
+
var contextValue = React21.useMemo(function() {
|
|
10589
|
+
return {
|
|
10590
|
+
handleMouseEnter: handleMouseEnter,
|
|
10591
|
+
handleMouseLeave: handleMouseLeave
|
|
10592
|
+
};
|
|
10593
|
+
}, [
|
|
10594
|
+
handleMouseEnter,
|
|
10595
|
+
handleMouseLeave
|
|
10596
|
+
]);
|
|
10597
|
+
return /* @__PURE__ */ jsx27(DropdownMenuHoverContext.Provider, {
|
|
10598
|
+
value: contextValue,
|
|
10599
|
+
children: /* @__PURE__ */ jsx27(DropdownMenuPrimitive.Root, _object_spread_props(_object_spread({
|
|
10600
|
+
open: open,
|
|
10601
|
+
modal: modal,
|
|
10602
|
+
onOpenChange: function(newOpen) {
|
|
10603
|
+
if (!newOpen) {
|
|
10604
|
+
setOpen(false);
|
|
10605
|
+
clearAllTimeouts();
|
|
10606
|
+
} else {
|
|
10607
|
+
setOpen(true);
|
|
10608
|
+
}
|
|
10609
|
+
}
|
|
10610
|
+
}, props), {
|
|
10611
|
+
children: children
|
|
10612
|
+
}))
|
|
10613
|
+
});
|
|
10614
|
+
};
|
|
10615
|
+
var DropdownMenuTriggerPrimitive = DropdownMenuPrimitive.Trigger;
|
|
10616
|
+
var DropdownMenuTrigger = React21.forwardRef(function(props, ref) {
|
|
10617
|
+
var hoverContext = React21.useContext(DropdownMenuHoverContext);
|
|
10618
|
+
return /* @__PURE__ */ jsx27(DropdownMenuTriggerPrimitive, _object_spread({
|
|
10619
|
+
ref: ref,
|
|
10620
|
+
onMouseEnter: hoverContext === null || hoverContext === void 0 ? void 0 : hoverContext.handleMouseEnter,
|
|
10621
|
+
onMouseLeave: hoverContext === null || hoverContext === void 0 ? void 0 : hoverContext.handleMouseLeave
|
|
10622
|
+
}, props));
|
|
10623
|
+
});
|
|
10624
|
+
DropdownMenuTrigger.displayName = DropdownMenuPrimitive.Trigger.displayName;
|
|
10505
10625
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
10506
10626
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
10507
10627
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
@@ -10514,7 +10634,7 @@ var DropdownMenuSubTrigger = React21.forwardRef(function(_param, ref) {
|
|
|
10514
10634
|
]);
|
|
10515
10635
|
return /* @__PURE__ */ jsxs16(DropdownMenuPrimitive.SubTrigger, _object_spread_props(_object_spread({
|
|
10516
10636
|
ref: ref,
|
|
10517
|
-
className: cn("flex cursor-pointer select-none items-center rounded-sm px-3 py-2 outline-none focus:bg-
|
|
10637
|
+
className: cn("flex cursor-pointer select-none items-center rounded-sm px-3 py-2 outline-none focus:bg-cc-Dropdown-bg-hover data-[state=open]:bg-cc-Dropdown-bg-hover", inset && "pl-8", className)
|
|
10518
10638
|
}, props), {
|
|
10519
10639
|
children: [
|
|
10520
10640
|
children,
|
|
@@ -10526,24 +10646,77 @@ var DropdownMenuSubTrigger = React21.forwardRef(function(_param, ref) {
|
|
|
10526
10646
|
});
|
|
10527
10647
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
10528
10648
|
var DropdownMenuSubContent = React21.forwardRef(function(_param, ref) {
|
|
10529
|
-
var className = _param.className, props = _object_without_properties(_param, [
|
|
10530
|
-
"className"
|
|
10649
|
+
var className = _param.className, _param_sideOffset = _param.sideOffset, sideOffset = _param_sideOffset === void 0 ? 4 : _param_sideOffset, onMouseEnter = _param.onMouseEnter, onMouseLeave = _param.onMouseLeave, props = _object_without_properties(_param, [
|
|
10650
|
+
"className",
|
|
10651
|
+
"sideOffset",
|
|
10652
|
+
"onMouseEnter",
|
|
10653
|
+
"onMouseLeave"
|
|
10654
|
+
]);
|
|
10655
|
+
var hoverContext = React21.useContext(DropdownMenuHoverContext);
|
|
10656
|
+
var handleMouseEnter = React21.useCallback(function(event) {
|
|
10657
|
+
onMouseEnter === null || onMouseEnter === void 0 ? void 0 : onMouseEnter(event);
|
|
10658
|
+
if (hoverContext) {
|
|
10659
|
+
hoverContext.handleMouseEnter();
|
|
10660
|
+
}
|
|
10661
|
+
}, [
|
|
10662
|
+
hoverContext,
|
|
10663
|
+
onMouseEnter
|
|
10664
|
+
]);
|
|
10665
|
+
var handleMouseLeave = React21.useCallback(function(event) {
|
|
10666
|
+
onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(event);
|
|
10667
|
+
if (hoverContext) {
|
|
10668
|
+
hoverContext.handleMouseLeave();
|
|
10669
|
+
}
|
|
10670
|
+
}, [
|
|
10671
|
+
hoverContext,
|
|
10672
|
+
onMouseLeave
|
|
10531
10673
|
]);
|
|
10532
10674
|
return /* @__PURE__ */ jsx27(DropdownMenuPrimitive.SubContent, _object_spread({
|
|
10533
10675
|
ref: ref,
|
|
10534
|
-
|
|
10676
|
+
sideOffset: sideOffset,
|
|
10677
|
+
className: cn("z-50 min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Default bg-cc-Dropdown-bg-default p-2 text-Colors-Text-Default shadow-modal-default data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
|
|
10678
|
+
onMouseEnter: hoverContext ? handleMouseEnter : onMouseEnter,
|
|
10679
|
+
onMouseLeave: hoverContext ? handleMouseLeave : onMouseLeave
|
|
10535
10680
|
}, props));
|
|
10536
10681
|
});
|
|
10537
10682
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
10538
10683
|
var DropdownMenuContent = React21.forwardRef(function(_param, ref) {
|
|
10539
|
-
var className = _param.className, _param_sideOffset = _param.sideOffset, sideOffset = _param_sideOffset === void 0 ? 4 : _param_sideOffset, props = _object_without_properties(_param, [
|
|
10684
|
+
var className = _param.className, _param_sideOffset = _param.sideOffset, sideOffset = _param_sideOffset === void 0 ? 4 : _param_sideOffset, onMouseEnter = _param.onMouseEnter, onMouseLeave = _param.onMouseLeave, props = _object_without_properties(_param, [
|
|
10540
10685
|
"className",
|
|
10541
|
-
"sideOffset"
|
|
10686
|
+
"sideOffset",
|
|
10687
|
+
"onMouseEnter",
|
|
10688
|
+
"onMouseLeave"
|
|
10689
|
+
]);
|
|
10690
|
+
var hoverContext = React21.useContext(DropdownMenuHoverContext);
|
|
10691
|
+
var handleMouseEnter = React21.useCallback(function(event) {
|
|
10692
|
+
onMouseEnter === null || onMouseEnter === void 0 ? void 0 : onMouseEnter(event);
|
|
10693
|
+
if (hoverContext) {
|
|
10694
|
+
hoverContext.handleMouseEnter();
|
|
10695
|
+
}
|
|
10696
|
+
}, [
|
|
10697
|
+
hoverContext,
|
|
10698
|
+
onMouseEnter
|
|
10699
|
+
]);
|
|
10700
|
+
var handleMouseLeave = React21.useCallback(function(event) {
|
|
10701
|
+
onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(event);
|
|
10702
|
+
var relatedTarget = event.relatedTarget;
|
|
10703
|
+
var currentTarget = event.currentTarget;
|
|
10704
|
+
if (relatedTarget && currentTarget.contains(relatedTarget)) {
|
|
10705
|
+
return;
|
|
10706
|
+
}
|
|
10707
|
+
if (hoverContext) {
|
|
10708
|
+
hoverContext.handleMouseLeave();
|
|
10709
|
+
}
|
|
10710
|
+
}, [
|
|
10711
|
+
hoverContext,
|
|
10712
|
+
onMouseLeave
|
|
10542
10713
|
]);
|
|
10543
10714
|
return /* @__PURE__ */ jsx27(DropdownMenuPrimitive.Content, _object_spread({
|
|
10544
10715
|
ref: ref,
|
|
10545
10716
|
sideOffset: sideOffset,
|
|
10546
|
-
className: cn("z-[100] min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Opaque bg-
|
|
10717
|
+
className: cn("z-[100] min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Opaque bg-cc-Dropdown-bg-default p-1 text-Colors-Text-Default shadow-modal-default data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
|
|
10718
|
+
onMouseEnter: hoverContext ? handleMouseEnter : onMouseEnter,
|
|
10719
|
+
onMouseLeave: hoverContext ? handleMouseLeave : onMouseLeave
|
|
10547
10720
|
}, props));
|
|
10548
10721
|
});
|
|
10549
10722
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
@@ -10554,7 +10727,7 @@ var DropdownMenuItem = React21.forwardRef(function(_param, ref) {
|
|
|
10554
10727
|
]);
|
|
10555
10728
|
return /* @__PURE__ */ jsx27(DropdownMenuPrimitive.Item, _object_spread({
|
|
10556
10729
|
ref: ref,
|
|
10557
|
-
className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1 outline-none transition-colors focus:bg-
|
|
10730
|
+
className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1 outline-none transition-colors focus:bg-cc-Dropdown-bg-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-30", inset && "pl-8", className)
|
|
10558
10731
|
}, props));
|
|
10559
10732
|
});
|
|
10560
10733
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
@@ -10566,7 +10739,7 @@ var DropdownMenuCheckboxItem = React21.forwardRef(function(_param, ref) {
|
|
|
10566
10739
|
]);
|
|
10567
10740
|
return /* @__PURE__ */ jsxs16(DropdownMenuPrimitive.CheckboxItem, _object_spread_props(_object_spread({
|
|
10568
10741
|
ref: ref,
|
|
10569
|
-
className: cn("relative flex cursor-pointer select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-
|
|
10742
|
+
className: cn("relative flex cursor-pointer select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-cc-Dropdown-bg-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-30", className),
|
|
10570
10743
|
checked: checked
|
|
10571
10744
|
}, props), {
|
|
10572
10745
|
children: [
|
|
@@ -10707,9 +10880,9 @@ function CascaderContent(param) {
|
|
|
10707
10880
|
}
|
|
10708
10881
|
function Cascader(props) {
|
|
10709
10882
|
var options = props.options, className = props.className, value1 = props.value, defaultValue = props.defaultValue, onValueChange = props.onValueChange, clearByDefault = props.clearByDefault, showParentLabel = props.showParentLabel, placeholder = props.placeholder, emptyText = props.emptyText, _props_rounded = props.rounded, rounded = _props_rounded === void 0 ? "default" : _props_rounded, _props_size = props.size, size = _props_size === void 0 ? "sm" : _props_size, _props_border = props.border, border = _props_border === void 0 ? "default" : _props_border, _props_outline = props.outline, outline = _props_outline === void 0 ? "default" : _props_outline, _props_background = props.background, background = _props_background === void 0 ? "default" : _props_background, _props_disabled = props.disabled, disabled = _props_disabled === void 0 ? false : _props_disabled;
|
|
10710
|
-
var
|
|
10711
|
-
var conRef =
|
|
10712
|
-
var buttonRef =
|
|
10883
|
+
var _useState6 = _sliced_to_array(useState6(false), 2), open = _useState6[0], setOpen = _useState6[1];
|
|
10884
|
+
var conRef = useRef5(null);
|
|
10885
|
+
var buttonRef = useRef5(null);
|
|
10713
10886
|
var inputVariants = cva8("", {
|
|
10714
10887
|
variants: {
|
|
10715
10888
|
rounded: {
|
|
@@ -11240,7 +11413,7 @@ var CommandItem = React26.forwardRef(function(_param, ref) {
|
|
|
11240
11413
|
]);
|
|
11241
11414
|
return /* @__PURE__ */ jsx32(CommandPrimitive.Item, _object_spread({
|
|
11242
11415
|
ref: ref,
|
|
11243
|
-
className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-
|
|
11416
|
+
className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-cc-Dropdown-bg-hover aria-selected:text-Colors-Text-Default data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className)
|
|
11244
11417
|
}, props));
|
|
11245
11418
|
});
|
|
11246
11419
|
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
@@ -11398,7 +11571,7 @@ ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
|
11398
11571
|
import dayjs from "dayjs";
|
|
11399
11572
|
import duration from "dayjs/plugin/duration";
|
|
11400
11573
|
import utc from "dayjs/plugin/utc";
|
|
11401
|
-
import { useMemo, useEffect as
|
|
11574
|
+
import { useMemo as useMemo2, useEffect as useEffect6, useState as useState7 } from "react";
|
|
11402
11575
|
import { jsx as jsx34, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
11403
11576
|
dayjs.extend(duration);
|
|
11404
11577
|
dayjs.extend(utc);
|
|
@@ -11654,12 +11827,12 @@ FormMessage.displayName = "FormMessage";
|
|
|
11654
11827
|
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
11655
11828
|
// src/components/guide.tsx
|
|
11656
11829
|
import { driver } from "driver.js";
|
|
11657
|
-
import { useEffect as
|
|
11830
|
+
import { useEffect as useEffect7, useMemo as useMemo3, useRef as useRef6 } from "react";
|
|
11658
11831
|
import "driver.js/dist/driver.css";
|
|
11659
11832
|
var Guide = function(param) {
|
|
11660
11833
|
var steps = param.steps, _param_showProgress = param.showProgress, showProgress = _param_showProgress === void 0 ? true : _param_showProgress, _param_showOverlay = param.showOverlay, showOverlay = _param_showOverlay === void 0 ? false : _param_showOverlay, _param_hasSkip = param.hasSkip, hasSkip = _param_hasSkip === void 0 ? true : _param_hasSkip, _param_hasCloseBtn = param.hasCloseBtn, hasCloseBtn = _param_hasCloseBtn === void 0 ? true : _param_hasCloseBtn, _param_hasPrevBtn = param.hasPrevBtn, hasPrevBtn = _param_hasPrevBtn === void 0 ? false : _param_hasPrevBtn, _param_hasNextBtn = param.hasNextBtn, hasNextBtn = _param_hasNextBtn === void 0 ? true : _param_hasNextBtn, _param_allowClose = param.allowClose, allowClose = _param_allowClose === void 0 ? false : _param_allowClose, _param_skipText = param.skipText, skipText = _param_skipText === void 0 ? "Skip" : _param_skipText, _param_prevBtnText = param.prevBtnText, prevBtnText = _param_prevBtnText === void 0 ? "Previous" : _param_prevBtnText, _param_nextBtnText = param.nextBtnText, nextBtnText = _param_nextBtnText === void 0 ? "Next" : _param_nextBtnText, _param_doneBtnText = param.doneBtnText, doneBtnText = _param_doneBtnText === void 0 ? "Done" : _param_doneBtnText, className = param.className, onComplete = param.onComplete, onSkip = param.onSkip;
|
|
11661
|
-
var driverRef =
|
|
11662
|
-
var buttons =
|
|
11834
|
+
var driverRef = useRef6(null);
|
|
11835
|
+
var buttons = useMemo3(function() {
|
|
11663
11836
|
var buttons2 = [];
|
|
11664
11837
|
if (hasPrevBtn) {
|
|
11665
11838
|
buttons2.push("previous");
|
|
@@ -11676,7 +11849,7 @@ var Guide = function(param) {
|
|
|
11676
11849
|
hasPrevBtn,
|
|
11677
11850
|
hasCloseBtn
|
|
11678
11851
|
]);
|
|
11679
|
-
|
|
11852
|
+
useEffect7(function() {
|
|
11680
11853
|
driverRef.current = driver({
|
|
11681
11854
|
overlayOpacity: showOverlay ? 0.8 : 0,
|
|
11682
11855
|
animate: true,
|
|
@@ -11702,7 +11875,7 @@ var Guide = function(param) {
|
|
|
11702
11875
|
}
|
|
11703
11876
|
var content = popover.wrapper;
|
|
11704
11877
|
if (content) {
|
|
11705
|
-
content.className = cn("!bg-Colors-
|
|
11878
|
+
content.className = cn("!bg-Colors-Background-Info-Alt !p-3 !shadow-modal-default", content.className);
|
|
11706
11879
|
var arrow = popover.arrow;
|
|
11707
11880
|
if (arrow) {
|
|
11708
11881
|
arrow.className = cn("border-t-Colors-Utility-Lake-Blue-50", arrow.className);
|
|
@@ -11894,11 +12067,11 @@ var Input = React31.forwardRef(function(_param, ref) {
|
|
|
11894
12067
|
Input.displayName = "Input";
|
|
11895
12068
|
// src/components/link.tsx
|
|
11896
12069
|
import LinkComponent from "next/link";
|
|
11897
|
-
import { useMemo as
|
|
12070
|
+
import { useMemo as useMemo4 } from "react";
|
|
11898
12071
|
// src/common/hooks/useNativeBridge.ts
|
|
11899
|
-
import { useCallback as
|
|
12072
|
+
import { useCallback as useCallback3 } from "react";
|
|
11900
12073
|
function useNativeBridge() {
|
|
11901
|
-
var callNative =
|
|
12074
|
+
var callNative = useCallback3(function(action, data) {
|
|
11902
12075
|
var _window_webkit_messageHandlers, _window_webkit;
|
|
11903
12076
|
if (isIosApp() && ((_window_webkit = window.webkit) === null || _window_webkit === void 0 ? void 0 : (_window_webkit_messageHandlers = _window_webkit.messageHandlers) === null || _window_webkit_messageHandlers === void 0 ? void 0 : _window_webkit_messageHandlers.reactNative)) {
|
|
11904
12077
|
window.webkit.messageHandlers.reactNative.postMessage({
|
|
@@ -11913,10 +12086,10 @@ function useNativeBridge() {
|
|
|
11913
12086
|
}));
|
|
11914
12087
|
}
|
|
11915
12088
|
}, []);
|
|
11916
|
-
var getIosUrl =
|
|
12089
|
+
var getIosUrl = useCallback3(function(path) {
|
|
11917
12090
|
return path;
|
|
11918
12091
|
}, []);
|
|
11919
|
-
var nativeGoBack =
|
|
12092
|
+
var nativeGoBack = useCallback3(function() {
|
|
11920
12093
|
callNative("goBack");
|
|
11921
12094
|
}, [
|
|
11922
12095
|
callNative
|
|
@@ -11949,7 +12122,7 @@ function Link(_param) {
|
|
|
11949
12122
|
var isIos = isClient() && isIosApp();
|
|
11950
12123
|
var componentIsMobile = useMedia3("(max-width: 768px)");
|
|
11951
12124
|
var isMob = isMobile2 !== null && isMobile2 !== void 0 ? isMobile2 : componentIsMobile;
|
|
11952
|
-
var pathname =
|
|
12125
|
+
var pathname = useMemo4(function() {
|
|
11953
12126
|
if (externalLink) return path;
|
|
11954
12127
|
var formatPath = path;
|
|
11955
12128
|
var isMobPath = path.startsWith("/m/") || path === "/m";
|
|
@@ -11987,7 +12160,7 @@ function Link(_param) {
|
|
|
11987
12160
|
var link_default = Link;
|
|
11988
12161
|
// src/components/masonry.tsx
|
|
11989
12162
|
import { indexOf, min as min2 } from "lodash-es";
|
|
11990
|
-
import { Children, useEffect as
|
|
12163
|
+
import { Children, useEffect as useEffect8, useState as useState8 } from "react";
|
|
11991
12164
|
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
11992
12165
|
import { createElement } from "react";
|
|
11993
12166
|
var Masonry = function(param) {
|
|
@@ -11998,7 +12171,7 @@ var Masonry = function(param) {
|
|
|
11998
12171
|
1439: 3,
|
|
11999
12172
|
1199: 2
|
|
12000
12173
|
} : _param_breakpointCols, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, _param_columnClassName = param.columnClassName, columnClassName = _param_columnClassName === void 0 ? "" : _param_columnClassName, children = param.children, _param_columnAttrs = param.columnAttrs, columnAttrs = _param_columnAttrs === void 0 ? {} : _param_columnAttrs, heights = param.heights;
|
|
12001
|
-
var
|
|
12174
|
+
var _useState8 = _sliced_to_array(useState8(typeof breakpointCols === "number" ? breakpointCols : breakpointCols.default), 2), columnCount = _useState8[0], setColumnCount = _useState8[1];
|
|
12002
12175
|
var reCalculateColumnCount = function() {
|
|
12003
12176
|
var _window;
|
|
12004
12177
|
var windowWidth = ((_window = window) === null || _window === void 0 ? void 0 : _window.innerWidth) || Infinity;
|
|
@@ -12019,7 +12192,7 @@ var Masonry = function(param) {
|
|
|
12019
12192
|
setColumnCount(newColumnCount);
|
|
12020
12193
|
}
|
|
12021
12194
|
};
|
|
12022
|
-
|
|
12195
|
+
useEffect8(function() {
|
|
12023
12196
|
var handleResize = function() {
|
|
12024
12197
|
reCalculateColumnCount();
|
|
12025
12198
|
};
|
|
@@ -12241,7 +12414,7 @@ var MenubarShortcut = function(_param) {
|
|
|
12241
12414
|
};
|
|
12242
12415
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
12243
12416
|
// src/components/modal.tsx
|
|
12244
|
-
import { CircleCheckIcon, CircleXIcon, InfoIcon, XIcon, TriangleAlertIcon } from "lucide-react";
|
|
12417
|
+
import { CircleCheckIcon, CircleXIcon, InfoIcon, UserPenIcon, XIcon, TriangleAlertIcon } from "lucide-react";
|
|
12245
12418
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
12246
12419
|
// node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
12247
12420
|
import * as React36 from "react";
|
|
@@ -12700,7 +12873,7 @@ var modalVariants = cva13("focus-visible:outline-none", {
|
|
|
12700
12873
|
}
|
|
12701
12874
|
});
|
|
12702
12875
|
var Modal = function(_param) {
|
|
12703
|
-
var title = _param.title, description = _param.description, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, _param_zIndex = _param.zIndex, zIndex = _param_zIndex === void 0 ? 99 : _param_zIndex, _param_hideClose = _param.hideClose, hideClose = _param_hideClose === void 0 ? false : _param_hideClose, _param_overlayClose = _param.overlayClose, overlayClose = _param_overlayClose === void 0 ? true : _param_overlayClose, _param_modalOnly = _param.modalOnly, modalOnly = _param_modalOnly === void 0 ? true : _param_modalOnly, contentClassName = _param.contentClassName, overlayClassName = _param.overlayClassName, iconClassName = _param.iconClassName, closeClassName = _param.closeClassName, _param_fullScreen = _param.fullScreen, fullScreen = _param_fullScreen === void 0 ? false : _param_fullScreen, focusScopeOptions = _param.focusScopeOptions, _param_isLogin = _param.isLogin, isLogin = _param_isLogin === void 0 ? false : _param_isLogin, _param_isNotification = _param.isNotification, isNotification = _param_isNotification === void 0 ? false : _param_isNotification, _param_isHorizontal = _param.isHorizontal, isHorizontal = _param_isHorizontal === void 0 ? false : _param_isHorizontal, state = _param.state, _param_showCancel = _param.showCancel, showCancel = _param_showCancel === void 0 ? true : _param_showCancel, _param_confirmLoading = _param.confirmLoading, confirmLoading = _param_confirmLoading === void 0 ? false : _param_confirmLoading, cancelText = _param.cancelText, confirmText = _param.confirmText, children = _param.children, _param_autoFocus = _param.autoFocus, autoFocus = _param_autoFocus === void 0 ? false : _param_autoFocus, onClose = _param.onClose, onConfirm = _param.onConfirm, props = _object_without_properties(_param, [
|
|
12876
|
+
var title = _param.title, description = _param.description, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, _param_zIndex = _param.zIndex, zIndex = _param_zIndex === void 0 ? 99 : _param_zIndex, _param_hideClose = _param.hideClose, hideClose = _param_hideClose === void 0 ? false : _param_hideClose, _param_overlayClose = _param.overlayClose, overlayClose = _param_overlayClose === void 0 ? true : _param_overlayClose, _param_modalOnly = _param.modalOnly, modalOnly = _param_modalOnly === void 0 ? true : _param_modalOnly, contentClassName = _param.contentClassName, overlayClassName = _param.overlayClassName, iconClassName = _param.iconClassName, closeClassName = _param.closeClassName, _param_fullScreen = _param.fullScreen, fullScreen = _param_fullScreen === void 0 ? false : _param_fullScreen, focusScopeOptions = _param.focusScopeOptions, _param_isLogin = _param.isLogin, isLogin = _param_isLogin === void 0 ? false : _param_isLogin, _param_isNotification = _param.isNotification, isNotification = _param_isNotification === void 0 ? false : _param_isNotification, _param_isHorizontal = _param.isHorizontal, isHorizontal = _param_isHorizontal === void 0 ? false : _param_isHorizontal, state = _param.state, icon = _param.icon, _param_showCancel = _param.showCancel, showCancel = _param_showCancel === void 0 ? true : _param_showCancel, _param_confirmLoading = _param.confirmLoading, confirmLoading = _param_confirmLoading === void 0 ? false : _param_confirmLoading, cancelText = _param.cancelText, confirmText = _param.confirmText, children = _param.children, _param_autoFocus = _param.autoFocus, autoFocus = _param_autoFocus === void 0 ? false : _param_autoFocus, onClose = _param.onClose, onConfirm = _param.onConfirm, props = _object_without_properties(_param, [
|
|
12704
12877
|
"title",
|
|
12705
12878
|
"description",
|
|
12706
12879
|
"size",
|
|
@@ -12718,6 +12891,7 @@ var Modal = function(_param) {
|
|
|
12718
12891
|
"isNotification",
|
|
12719
12892
|
"isHorizontal",
|
|
12720
12893
|
"state",
|
|
12894
|
+
"icon",
|
|
12721
12895
|
"showCancel",
|
|
12722
12896
|
"confirmLoading",
|
|
12723
12897
|
"cancelText",
|
|
@@ -12730,7 +12904,7 @@ var Modal = function(_param) {
|
|
|
12730
12904
|
var isMobile2 = useMedia4("(max-width: 768px)");
|
|
12731
12905
|
if (isMobile2 && !modalOnly && !isNotification) {
|
|
12732
12906
|
var drawerContent = /* @__PURE__ */ jsxs27(DrawerPrimitive2.Content, {
|
|
12733
|
-
className: cn("fixed inset-x-0 bottom-0 z-50 h-auto overflow-hidden no-scrollbar border-Colors-Border-Opaque bg-Colors-Background-Utilities-Modal shadow-modal-default focus:outline-none", fullScreen ? "rounded-t-none max-h-full" : "rounded-t-md max-h-[85vh]", contentClassName),
|
|
12907
|
+
className: cn("fixed inset-x-0 bottom-0 z-50 h-auto overflow-hidden no-scrollbar border-Colors-Border-Opaque bg-Colors-Background-Utilities-Modal shadow-modal-default backdrop-blur-xl focus:outline-none", fullScreen ? "rounded-t-none max-h-full" : "rounded-t-md max-h-[85vh]", contentClassName),
|
|
12734
12908
|
onOpenAutoFocus: function(e) {
|
|
12735
12909
|
!autoFocus && e.preventDefault();
|
|
12736
12910
|
},
|
|
@@ -12794,6 +12968,10 @@ var Modal = function(_param) {
|
|
|
12794
12968
|
}
|
|
12795
12969
|
var renderIcon3 = function(state2) {
|
|
12796
12970
|
switch(state2){
|
|
12971
|
+
case "basic":
|
|
12972
|
+
return /* @__PURE__ */ jsx44(UserPenIcon, {
|
|
12973
|
+
className: "text-Colors-Foreground-Default w-6 h-6"
|
|
12974
|
+
});
|
|
12797
12975
|
case "info":
|
|
12798
12976
|
return /* @__PURE__ */ jsx44(InfoIcon, {
|
|
12799
12977
|
className: "text-cc-Icon-Featured-icon-fg-Info w-6 h-6"
|
|
@@ -12814,18 +12992,20 @@ var Modal = function(_param) {
|
|
|
12814
12992
|
};
|
|
12815
12993
|
var getBackgroundColor = function(state2) {
|
|
12816
12994
|
switch(state2){
|
|
12995
|
+
case "basic":
|
|
12996
|
+
return "bg-Colors-Background-Surface-Subtle";
|
|
12817
12997
|
case "info":
|
|
12818
|
-
return "bg-
|
|
12998
|
+
return "bg-cc-Icon-Featured-icon-bg-Info";
|
|
12819
12999
|
case "success":
|
|
12820
|
-
return "bg-
|
|
13000
|
+
return "bg-cc-Icon-Featured-icon-bg-Success";
|
|
12821
13001
|
case "warning":
|
|
12822
|
-
return "bg-
|
|
13002
|
+
return "bg-cc-Icon-Featured-icon-bg-Warning";
|
|
12823
13003
|
case "error":
|
|
12824
|
-
return "bg-
|
|
13004
|
+
return "bg-cc-Icon-Featured-icon-bg-Error";
|
|
12825
13005
|
}
|
|
12826
13006
|
};
|
|
12827
13007
|
var dialogContent = /* @__PURE__ */ jsxs27(ModalContent, {
|
|
12828
|
-
className: cn("rounded-md border-Colors-Border-Opaque bg-Colors-Background-Utilities-Modal shadow-modal-default overflow-hidden", !isMobile2 ? modalVariants({
|
|
13008
|
+
className: cn("rounded-md border-Colors-Border-Opaque bg-Colors-Background-Utilities-Modal shadow-modal-default backdrop-blur-xl overflow-hidden", !isMobile2 ? modalVariants({
|
|
12829
13009
|
size: size,
|
|
12830
13010
|
zIndex: zIndex
|
|
12831
13011
|
}) : isLogin ? "w-[90%]" : "w-[80%]", isNotification && "w-[312px] md:w-[380px]", contentClassName),
|
|
@@ -12843,7 +13023,7 @@ var Modal = function(_param) {
|
|
|
12843
13023
|
className: cn(isNotification && "border-none !pb-3"),
|
|
12844
13024
|
children: state && /* @__PURE__ */ jsx44("div", {
|
|
12845
13025
|
className: cn("flex items-center justify-center w-10 h-10 rounded-full flex-shrink-0 flex-grow-0", getBackgroundColor(state)),
|
|
12846
|
-
children: renderIcon3(state)
|
|
13026
|
+
children: icon || renderIcon3(state)
|
|
12847
13027
|
})
|
|
12848
13028
|
}),
|
|
12849
13029
|
/* @__PURE__ */ jsxs27("div", {
|
|
@@ -12976,7 +13156,7 @@ ModalBody.displayName = "ModalBody";
|
|
|
12976
13156
|
import { XIcon as XIcon2, SearchIcon } from "lucide-react";
|
|
12977
13157
|
import { cva as cva14 } from "class-variance-authority";
|
|
12978
13158
|
import * as React38 from "react";
|
|
12979
|
-
import { useEffect as
|
|
13159
|
+
import { useEffect as useEffect11 } from "react";
|
|
12980
13160
|
import { jsx as jsx45, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
12981
13161
|
var searchBarVariants = cva14("rounded-sm", {
|
|
12982
13162
|
variants: {
|
|
@@ -13005,7 +13185,7 @@ function SearchBar(_param) {
|
|
|
13005
13185
|
"defaultSearchByChange"
|
|
13006
13186
|
]);
|
|
13007
13187
|
var _React38_useState = _sliced_to_array(React38.useState(""), 2), value1 = _React38_useState[0], setValue = _React38_useState[1];
|
|
13008
|
-
|
|
13188
|
+
useEffect11(function() {
|
|
13009
13189
|
setValue(searchValue || "");
|
|
13010
13190
|
}, [
|
|
13011
13191
|
searchValue
|
|
@@ -13029,7 +13209,7 @@ function SearchBar(_param) {
|
|
|
13029
13209
|
hasEnter: true,
|
|
13030
13210
|
rounded: roundedFill ? "full" : "sm",
|
|
13031
13211
|
size: size,
|
|
13032
|
-
className: cn("relative w-full px-9 flex space-x-2 text-base shadow-none placeholder:text-Colors-Text-Subtlest", "
|
|
13212
|
+
className: cn("relative w-full px-9 flex space-x-2 text-base shadow-none placeholder:text-Colors-Text-Subtlest", "focus-visible-style", {
|
|
13033
13213
|
"focus-visible:ring-transparent": readOnly
|
|
13034
13214
|
}, inputClassName),
|
|
13035
13215
|
value: value1,
|
|
@@ -13375,7 +13555,7 @@ var ScrollBar = React41.forwardRef(function(_param, ref) {
|
|
|
13375
13555
|
});
|
|
13376
13556
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
13377
13557
|
// src/components/top-navigation-bar.tsx
|
|
13378
|
-
import { useEffect as
|
|
13558
|
+
import { useEffect as useEffect12, useRef as useRef9, useState as useState11 } from "react";
|
|
13379
13559
|
import { useMedia as useMedia5 } from "react-use";
|
|
13380
13560
|
import { ArrowLeftIcon } from "lucide-react";
|
|
13381
13561
|
import { jsx as jsx53, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
@@ -13383,9 +13563,9 @@ function TopNavigationBar(param) {
|
|
|
13383
13563
|
var searchElement = param.searchElement, title = param.title, border = param.border, backUrl = param.backUrl, children = param.children, _param_hasBackground = param.hasBackground, hasBackground = _param_hasBackground === void 0 ? false : _param_hasBackground, avatar = param.avatar, onBack = param.onBack, _param_pageType = param.pageType, pageType = _param_pageType === void 0 ? 2 : _param_pageType, className = param.className, isMobile2 = param.isMobile;
|
|
13384
13564
|
var componentIsMobile = useMedia5("(max-width: 768px)");
|
|
13385
13565
|
var isMob = isMobile2 !== null && isMobile2 !== void 0 ? isMobile2 : componentIsMobile;
|
|
13386
|
-
var navbarRef =
|
|
13387
|
-
var
|
|
13388
|
-
|
|
13566
|
+
var navbarRef = useRef9(null);
|
|
13567
|
+
var _useState11 = _sliced_to_array(useState11(hasBackground), 2), showBackground = _useState11[0], setShowBackground = _useState11[1];
|
|
13568
|
+
useEffect12(function() {
|
|
13389
13569
|
if (hasBackground) {
|
|
13390
13570
|
setShowBackground(true);
|
|
13391
13571
|
return;
|
|
@@ -13611,7 +13791,7 @@ var SelectContent = React42.forwardRef(function(_param, ref) {
|
|
|
13611
13791
|
]);
|
|
13612
13792
|
var Content13 = /* @__PURE__ */ jsx54(SelectPrimitive.Content, _object_spread_props(_object_spread({
|
|
13613
13793
|
ref: ref,
|
|
13614
|
-
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Default bg-
|
|
13794
|
+
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Default bg-cc-Dropdown-bg-default text-Colors-Text-Default shadow-modal-default data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
|
|
13615
13795
|
position: position
|
|
13616
13796
|
}, props), {
|
|
13617
13797
|
children: /* @__PURE__ */ jsx54(SelectPrimitive.Viewport, {
|
|
@@ -13672,7 +13852,7 @@ var SelectItem = React42.forwardRef(function(_param, ref) {
|
|
|
13672
13852
|
]);
|
|
13673
13853
|
return /* @__PURE__ */ jsxs36(SelectPrimitive.Item, _object_spread_props(_object_spread({
|
|
13674
13854
|
ref: ref,
|
|
13675
|
-
className: cn("relative flex justify-between w-full cursor-pointer select-none items-center rounded-sm py-1 px-1.5 outline-none text-base", "hover:bg-
|
|
13855
|
+
className: cn("relative flex justify-between w-full cursor-pointer select-none items-center rounded-sm py-1 px-1.5 outline-none text-base", "hover:bg-cc-Dropdown-bg-hover focus:bg-cc-Dropdown-bg-hover data-[disabled]:opacity-30 data-[disabled]:cursor-not-allowed space-x-1.5", critical ? "text-Colors-Text-Critical-Default" : "focus:text-Colors-Text-Default", className)
|
|
13676
13856
|
}, props), {
|
|
13677
13857
|
children: [
|
|
13678
13858
|
/* @__PURE__ */ jsxs36("span", {
|
|
@@ -13713,11 +13893,11 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
|
13713
13893
|
import { Command as CommandPrimitive2, useCommandState } from "cmdk";
|
|
13714
13894
|
import { ChevronDown as ChevronDown3, X as X3 } from "lucide-react";
|
|
13715
13895
|
import * as React43 from "react";
|
|
13716
|
-
import { forwardRef as forwardRef39, useEffect as
|
|
13896
|
+
import { forwardRef as forwardRef39, useEffect as useEffect13 } from "react";
|
|
13717
13897
|
import { Fragment as Fragment11, jsx as jsx55, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
13718
13898
|
function useDebounce(value1, delay) {
|
|
13719
13899
|
var _React43_useState = _sliced_to_array(React43.useState(value1), 2), debouncedValue = _React43_useState[0], setDebouncedValue = _React43_useState[1];
|
|
13720
|
-
|
|
13900
|
+
useEffect13(function() {
|
|
13721
13901
|
var timer = setTimeout(function() {
|
|
13722
13902
|
return setDebouncedValue(value1);
|
|
13723
13903
|
}, delay || 500);
|
|
@@ -13888,7 +14068,7 @@ var MultipleSelector = React43.forwardRef(function(param, ref) {
|
|
|
13888
14068
|
handleUnselect,
|
|
13889
14069
|
selected
|
|
13890
14070
|
]);
|
|
13891
|
-
|
|
14071
|
+
useEffect13(function() {
|
|
13892
14072
|
if (open) {
|
|
13893
14073
|
document.addEventListener("mousedown", handleClickOutside);
|
|
13894
14074
|
document.addEventListener("touchend", handleClickOutside);
|
|
@@ -13903,7 +14083,7 @@ var MultipleSelector = React43.forwardRef(function(param, ref) {
|
|
|
13903
14083
|
}, [
|
|
13904
14084
|
open
|
|
13905
14085
|
]);
|
|
13906
|
-
|
|
14086
|
+
useEffect13(function() {
|
|
13907
14087
|
if (value1) {
|
|
13908
14088
|
setSelected((arrayOptions === null || arrayOptions === void 0 ? void 0 : arrayOptions.filter(function(item) {
|
|
13909
14089
|
return value1 === null || value1 === void 0 ? void 0 : value1.includes(item.value);
|
|
@@ -13912,7 +14092,7 @@ var MultipleSelector = React43.forwardRef(function(param, ref) {
|
|
|
13912
14092
|
}, [
|
|
13913
14093
|
value1
|
|
13914
14094
|
]);
|
|
13915
|
-
|
|
14095
|
+
useEffect13(function() {
|
|
13916
14096
|
if (!arrayOptions || onSearch) {
|
|
13917
14097
|
return;
|
|
13918
14098
|
}
|
|
@@ -13926,7 +14106,7 @@ var MultipleSelector = React43.forwardRef(function(param, ref) {
|
|
|
13926
14106
|
onSearch,
|
|
13927
14107
|
options
|
|
13928
14108
|
]);
|
|
13929
|
-
|
|
14109
|
+
useEffect13(function() {
|
|
13930
14110
|
var doSearchSync = function() {
|
|
13931
14111
|
var res = onSearchSync === null || onSearchSync === void 0 ? void 0 : onSearchSync(debouncedSearchTerm);
|
|
13932
14112
|
setOptions(transToGroupOption(res || [], groupBy));
|
|
@@ -13956,7 +14136,7 @@ var MultipleSelector = React43.forwardRef(function(param, ref) {
|
|
|
13956
14136
|
open,
|
|
13957
14137
|
triggerSearchOnFocus
|
|
13958
14138
|
]);
|
|
13959
|
-
|
|
14139
|
+
useEffect13(function() {
|
|
13960
14140
|
var doSearch = function() {
|
|
13961
14141
|
return _async_to_generator(function() {
|
|
13962
14142
|
var res;
|
|
@@ -14247,7 +14427,7 @@ var MultipleSelector = React43.forwardRef(function(param, ref) {
|
|
|
14247
14427
|
return e.stopPropagation();
|
|
14248
14428
|
},
|
|
14249
14429
|
children: open && /* @__PURE__ */ jsx55(CommandList, {
|
|
14250
|
-
className: "no-scrollbar text-Colors-Text-Default absolute top-1 z-10 max-h-60 w-full min-w-[8rem] rounded-sm border border-cc-Input-bg-default bg-
|
|
14430
|
+
className: "no-scrollbar text-Colors-Text-Default absolute top-1 z-10 max-h-60 w-full min-w-[8rem] rounded-sm border border-cc-Input-bg-default bg-cc-Dropdown-bg-default shadow-modal-default",
|
|
14251
14431
|
onMouseLeave: function() {
|
|
14252
14432
|
setOnScrollbar(false);
|
|
14253
14433
|
},
|
|
@@ -14445,7 +14625,7 @@ function Skeleton(_param) {
|
|
|
14445
14625
|
"animate"
|
|
14446
14626
|
]);
|
|
14447
14627
|
return /* @__PURE__ */ jsx57("div", _object_spread({
|
|
14448
|
-
className: cn("rounded-sm bg-Colors-Background-
|
|
14628
|
+
className: cn("rounded-sm bg-Colors-Background-Surface-Muted", className, animate && "animate-pulse")
|
|
14449
14629
|
}, props));
|
|
14450
14630
|
}
|
|
14451
14631
|
// src/components/slider.tsx
|
|
@@ -15329,7 +15509,7 @@ var NoPageState = function(args) {
|
|
|
15329
15509
|
// src/components/logo-loading.tsx
|
|
15330
15510
|
import lottie from "lottie-web";
|
|
15331
15511
|
import { useTheme } from "next-themes";
|
|
15332
|
-
import { useEffect as
|
|
15512
|
+
import { useEffect as useEffect14, useRef as useRef11, useState as useState13 } from "react";
|
|
15333
15513
|
// src/common/assets/animationData.json
|
|
15334
15514
|
var animationData_default = {
|
|
15335
15515
|
v: "5.12.1",
|
|
@@ -24854,11 +25034,11 @@ var animationDataDark_default = {
|
|
|
24854
25034
|
import { jsx as jsx67, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
24855
25035
|
function LogoLoading(param) {
|
|
24856
25036
|
var className = param.className, containerClassName = param.containerClassName;
|
|
24857
|
-
var lottieContainer =
|
|
24858
|
-
var
|
|
25037
|
+
var lottieContainer = useRef11(null);
|
|
25038
|
+
var _useState13 = _sliced_to_array(useState13(false), 2), isLottieLoaded = _useState13[0], setIsLottieLoaded = _useState13[1];
|
|
24859
25039
|
var resolvedTheme = useTheme().resolvedTheme;
|
|
24860
25040
|
var isDark = resolvedTheme === "dark";
|
|
24861
|
-
|
|
25041
|
+
useEffect14(function() {
|
|
24862
25042
|
if (!lottieContainer.current) return;
|
|
24863
25043
|
var anim = lottie.loadAnimation({
|
|
24864
25044
|
container: lottieContainer.current,
|
|
@@ -24931,13 +25111,13 @@ var ToastViewport = React51.forwardRef(function(_param, ref) {
|
|
|
24931
25111
|
}, props));
|
|
24932
25112
|
});
|
|
24933
25113
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
24934
|
-
var toastVariants = cva21("group pointer-events-auto relative flex w-
|
|
25114
|
+
var toastVariants = cva21("group pointer-events-auto relative flex w-[286px] min-w-[286px] max-w-[286px] items-start gap-3 overflow-hidden rounded-lg border border-cc-Toast-border bg-cc-Toast-bg-default p-3 backdrop-blur-[20px] shadow-modal-default transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80", {
|
|
24935
25115
|
variants: {
|
|
24936
25116
|
variant: {
|
|
24937
|
-
info: "
|
|
24938
|
-
warning: "
|
|
24939
|
-
error: "
|
|
24940
|
-
success: "
|
|
25117
|
+
info: "",
|
|
25118
|
+
warning: "",
|
|
25119
|
+
error: "",
|
|
25120
|
+
success: ""
|
|
24941
25121
|
},
|
|
24942
25122
|
position: {
|
|
24943
25123
|
"top-left": "data-[state=open]:slide-in-from-left-full data-[state=closed]:slide-out-to-left-full",
|
|
@@ -24987,11 +25167,11 @@ var ToastClose = React51.forwardRef(function(_param, ref) {
|
|
|
24987
25167
|
]);
|
|
24988
25168
|
return /* @__PURE__ */ jsx68(ToastPrimitives.Close, _object_spread_props(_object_spread({
|
|
24989
25169
|
ref: ref,
|
|
24990
|
-
className: cn("absolute right-
|
|
25170
|
+
className: cn("absolute size-5 right-3 top-3 rounded-full p-1 text-cc-Button-Tertiary-fg-default hover:text-cc-Button-Tertiary-fg-alt bg-cc-Button-Tertiary-bg-default hover:bg-cc-Button-Tertiary-bg-hover transition-opacity outline-none focus:outline-none focus:ring-2 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 ", className),
|
|
24991
25171
|
"toast-close": ""
|
|
24992
25172
|
}, props), {
|
|
24993
25173
|
children: /* @__PURE__ */ jsx68(XIcon3, {
|
|
24994
|
-
className: "h-
|
|
25174
|
+
className: "h-3 w-3 text-cc-Button-Tertiary-fg-default"
|
|
24995
25175
|
})
|
|
24996
25176
|
}));
|
|
24997
25177
|
});
|
|
@@ -25224,37 +25404,37 @@ function Toaster() {
|
|
|
25224
25404
|
position
|
|
25225
25405
|
]);
|
|
25226
25406
|
var renderToast = function(toast4) {
|
|
25227
|
-
var id = toast4.id, title = toast4.title, description = toast4.description, action = toast4.action, variant = toast4.variant, toastPosition = toast4.position;
|
|
25407
|
+
var id = toast4.id, title = toast4.title, description = toast4.description, action = toast4.action, variant = toast4.variant, icon = toast4.icon, toastPosition = toast4.position;
|
|
25228
25408
|
var renderIcon3 = function(variant2) {
|
|
25229
25409
|
switch(variant2){
|
|
25230
25410
|
case "info":
|
|
25231
25411
|
return /* @__PURE__ */ jsx70(InfoIcon2, {
|
|
25232
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
25412
|
+
className: "h-6 w-6 sm:h-4.5 sm:w-4.5 text-cc-Icon-Featured-icon-fg-Info"
|
|
25233
25413
|
});
|
|
25234
25414
|
case "success":
|
|
25235
25415
|
return /* @__PURE__ */ jsx70(CircleCheckIcon2, {
|
|
25236
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
25416
|
+
className: "h-6 w-6 sm:h-4.5 sm:w-4.5 text-cc-Icon-Featured-icon-fg-Success"
|
|
25237
25417
|
});
|
|
25238
25418
|
case "warning":
|
|
25239
25419
|
return /* @__PURE__ */ jsx70(TriangleAlertIcon2, {
|
|
25240
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
25420
|
+
className: "h-6 w-6 sm:h-4.5 sm:w-4.5 text-cc-Icon-Featured-icon-fg-Warning"
|
|
25241
25421
|
});
|
|
25242
25422
|
case "error":
|
|
25243
25423
|
return /* @__PURE__ */ jsx70(CircleXIcon2, {
|
|
25244
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
25424
|
+
className: "h-6 w-6 sm:h-4.5 sm:w-4.5 text-cc-Icon-Featured-icon-fg-Error"
|
|
25245
25425
|
});
|
|
25246
25426
|
}
|
|
25247
25427
|
};
|
|
25248
25428
|
var getBackgroundColor = function(variant2) {
|
|
25249
25429
|
switch(variant2){
|
|
25250
25430
|
case "info":
|
|
25251
|
-
return "bg-
|
|
25431
|
+
return "bg-cc-Icon-Featured-icon-bg-Info";
|
|
25252
25432
|
case "success":
|
|
25253
|
-
return "bg-
|
|
25433
|
+
return "bg-cc-Icon-Featured-icon-bg-Success";
|
|
25254
25434
|
case "warning":
|
|
25255
|
-
return "bg-
|
|
25435
|
+
return "bg-cc-Icon-Featured-icon-bg-Warning";
|
|
25256
25436
|
case "error":
|
|
25257
|
-
return "bg-
|
|
25437
|
+
return "bg-cc-Icon-Featured-icon-bg-Error";
|
|
25258
25438
|
}
|
|
25259
25439
|
};
|
|
25260
25440
|
return /* @__PURE__ */ jsxs47(Toast, _object_spread_props(_object_spread({}, toast4), {
|
|
@@ -25266,18 +25446,18 @@ function Toaster() {
|
|
|
25266
25446
|
className: "flex items-start gap-3",
|
|
25267
25447
|
children: [
|
|
25268
25448
|
/* @__PURE__ */ jsx70("div", {
|
|
25269
|
-
className: cn("flex h-10 w-10 flex-shrink-0 flex-grow-0 items-center justify-center rounded-full", getBackgroundColor(variant)),
|
|
25270
|
-
children: renderIcon3(variant)
|
|
25449
|
+
className: cn("flex h-10 w-10 sm:h-8 sm:w-8 flex-shrink-0 flex-grow-0 items-center justify-center rounded-full", getBackgroundColor(variant)),
|
|
25450
|
+
children: icon || renderIcon3(variant)
|
|
25271
25451
|
}),
|
|
25272
25452
|
/* @__PURE__ */ jsxs47("div", {
|
|
25273
25453
|
className: "grid gap-1",
|
|
25274
25454
|
children: [
|
|
25275
25455
|
title && /* @__PURE__ */ jsx70(ToastTitle, {
|
|
25276
|
-
className: "text-base text-
|
|
25456
|
+
className: "text-base text-cc-Toast-fg-default",
|
|
25277
25457
|
children: title
|
|
25278
25458
|
}),
|
|
25279
25459
|
description && /* @__PURE__ */ jsx70(ToastDescription, {
|
|
25280
|
-
className: "text-sm text-
|
|
25460
|
+
className: "text-sm text-cc-Toast-fg-subtle",
|
|
25281
25461
|
children: description
|
|
25282
25462
|
}),
|
|
25283
25463
|
action
|
|
@@ -25306,7 +25486,7 @@ function Toaster() {
|
|
|
25306
25486
|
}
|
|
25307
25487
|
// src/components/swiper/index.tsx
|
|
25308
25488
|
import { cva as cva22 } from "class-variance-authority";
|
|
25309
|
-
import { useEffect as
|
|
25489
|
+
import { useEffect as useEffect16, useMemo as useMemo7, useRef as useRef12, useState as useState15 } from "react";
|
|
25310
25490
|
import { useRouter as useRouter2 } from "next/navigation";
|
|
25311
25491
|
import { Autoplay, Navigation, FreeMode, Scrollbar, Mousewheel, Grid } from "swiper/modules";
|
|
25312
25492
|
import { Swiper as SwiperComponent, SwiperSlide } from "swiper/react";
|
|
@@ -25316,7 +25496,7 @@ import "swiper/css/free-mode";
|
|
|
25316
25496
|
import "swiper/css/grid";
|
|
25317
25497
|
import "swiper/css/pagination";
|
|
25318
25498
|
// src/components/swiper/index.module.scss
|
|
25319
|
-
var index_module_default = '.swiperBox {\n @apply w-full h-fit;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev) {\n @apply bg-contain bg-no-repeat;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iIzQxNDM0NSIgY2xhc3M9InNpemUtNSI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzggNS4yMmEuNzUuNzUgMCAwIDEgMCAxLjA2TDguMDYgMTBsMy43MiAzLjcyYS43NS43NSAwIDEgMS0xLjA2IDEuMDZsLTQuMjUtNC4yNWEuNzUuNzUgMCAwIDEgMC0xLjA2bDQuMjUtNC4yNWEuNzUuNzUgMCAwIDEgMS4wNiAwWiIgY2xpcC1ydWxlPSJldmVub2RkIiAvPgo8L3N2Zz4K");\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next) {\n @apply bg-contain bg-no-repeat;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iIzQxNDM0NSIgY2xhc3M9InNpemUtNSI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOC4yMiA1LjIyYS43NS43NSAwIDAgMSAxLjA2IDBsNC4yNSA0LjI1YS43NS43NSAwIDAgMSAwIDEuMDZsLTQuMjUgNC4yNWEuNzUuNzUgMCAwIDEtMS4wNi0xLjA2TDExLjk0IDEwIDguMjIgNi4yOGEuNzUuNzUgMCAwIDEgMC0xLjA2WiIgY2xpcC1ydWxlPSJldmVub2RkIiAvPgo8L3N2Zz4KCg==");\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev::after) {\n @apply text-Colors-Foreground-Default content-none;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next::after) {\n @apply text-Colors-Foreground-Default content-none;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.banner-swiper-slide.swiper-slide-prev) {\n @apply origin-right;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.banner-swiper-slide.swiper-slide-next) {\n @apply origin-left;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-slide-active) {\n @apply opacity-100;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-button-next) {\n @apply -right-4 md:right-0 3xl:right-[calc((100%-1200px)/2-16px)];\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-button-prev) {\n @apply -left-4 md:left-0 3xl:left-[calc((100%-1200px)/2-16px)];\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-next) {\n @apply right-0;\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-prev) {\n @apply left-0;\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-disabled) {\n @apply hidden;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-next) {\n @apply right-0;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-prev) {\n @apply left-0;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-disabled) {\n @apply hidden;\n}\n.swiperBox :global(.swiper.grid-swiper) :global(.swiper-wrapper) {\n @apply w-[100vw] md:w-full flex-wrap flex-col m-0;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next) {\n @apply hidden md:flex justify-center items-center absolute top-[50%] w-8 h-8 font-semibold text-Colors-Foreground-Default border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Default rounded-full cursor-pointer hover:bg-Colors-Background-Normal-Primary-Hover active:bg-Colors-Background-Normal-Primary-Active;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next)::after {\n @apply text-Colors-Foreground-Default text-xs font-bold;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev) {\n @apply hidden md:flex justify-center items-center absolute top-[50%] w-8 h-8 font-semibold text-Colors-Foreground-Default border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Default rounded-full cursor-pointer hover:bg-Colors-Background-Normal-Primary-Hover active:bg-Colors-Background-Normal-Primary-Active;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev)::after {\n @apply text-Colors-Foreground-Default text-xs font-bold;\n}\n\n.animate :global(.swiper-slide) {\n transition: transform 500ms linear;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
25499
|
+
var index_module_default = '.swiperBox {\n @apply w-full h-fit;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev) {\n @apply bg-contain bg-no-repeat;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iIzQxNDM0NSIgY2xhc3M9InNpemUtNSI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzggNS4yMmEuNzUuNzUgMCAwIDEgMCAxLjA2TDguMDYgMTBsMy43MiAzLjcyYS43NS43NSAwIDEgMS0xLjA2IDEuMDZsLTQuMjUtNC4yNWEuNzUuNzUgMCAwIDEgMC0xLjA2bDQuMjUtNC4yNWEuNzUuNzUgMCAwIDEgMS4wNiAwWiIgY2xpcC1ydWxlPSJldmVub2RkIiAvPgo8L3N2Zz4K");\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next) {\n @apply bg-contain bg-no-repeat;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iIzQxNDM0NSIgY2xhc3M9InNpemUtNSI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOC4yMiA1LjIyYS43NS43NSAwIDAgMSAxLjA2IDBsNC4yNSA0LjI1YS43NS43NSAwIDAgMSAwIDEuMDZsLTQuMjUgNC4yNWEuNzUuNzUgMCAwIDEtMS4wNi0xLjA2TDExLjk0IDEwIDguMjIgNi4yOGEuNzUuNzUgMCAwIDEgMC0xLjA2WiIgY2xpcC1ydWxlPSJldmVub2RkIiAvPgo8L3N2Zz4KCg==");\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev::after) {\n @apply text-Colors-Foreground-Default content-none;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next::after) {\n @apply text-Colors-Foreground-Default content-none;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.banner-swiper-slide.swiper-slide-prev) {\n @apply origin-right;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.banner-swiper-slide.swiper-slide-next) {\n @apply origin-left;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-slide-active) {\n @apply opacity-100;\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-button-next) {\n @apply -right-4 md:right-0 3xl:right-[calc((100%-1200px)/2-16px)];\n}\n.swiperBox :global(.swiper.banner-swiper) :global(.swiper-button-prev) {\n @apply -left-4 md:left-0 3xl:left-[calc((100%-1200px)/2-16px)];\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-next) {\n @apply right-0;\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-prev) {\n @apply left-0;\n}\n.swiperBox :global(.swiper.feature-swiper) :global(.swiper-button-disabled) {\n @apply hidden;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-next) {\n @apply right-0;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-prev) {\n @apply left-0;\n}\n.swiperBox :global(.swiper.patron-badge-swiper) :global(.swiper-button-disabled) {\n @apply hidden;\n}\n.swiperBox :global(.swiper.grid-swiper) :global(.swiper-wrapper) {\n @apply w-[100vw] md:w-full flex-wrap flex-col m-0;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next) {\n @apply hidden md:flex justify-center items-center absolute top-[50%] w-8 h-8 font-semibold text-Colors-Foreground-Default border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Default rounded-full cursor-pointer hover:bg-Colors-Background-Normal-Primary-Hover active:bg-Colors-Background-Normal-Primary-Active;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-next)::after {\n @apply text-Colors-Foreground-Default text-xs font-bold;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev) {\n @apply hidden md:flex justify-center items-center absolute top-[50%] w-8 h-8 font-semibold text-Colors-Foreground-Default border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Default rounded-full cursor-pointer hover:bg-Colors-Background-Normal-Primary-Hover active:bg-Colors-Background-Normal-Primary-Active;\n}\n.swiperBox :global(.swiper) :global(.swiper-button-prev)::after {\n @apply text-Colors-Foreground-Default text-xs font-bold;\n}\n\n.animate :global(.swiper-slide) {\n transition: transform 500ms linear;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL1VzZXJzL21vbmljYS9EZXNrdG9wL215c2hlbGwvbXlzaGVsbC1yZWFjdC1saWIvc3JjL2NvbXBvbmVudHMvc3dpcGVyIiwic291cmNlcyI6WyJpbmRleC5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFOztBQUdFO0VBQ0U7RUFDQTs7QUFFRjtFQUNFO0VBQ0E7O0FBRUY7RUFDRTs7QUFFRjtFQUNFOztBQUlGO0VBRUU7O0FBRUY7RUFFRTs7QUFFRjtFQUNFOztBQUdGO0VBQ0U7O0FBRUY7RUFDRTs7QUFJRjtFQUNFOztBQUVGO0VBQ0U7O0FBRUY7RUFDRTs7QUFJRjtFQUNFOztBQUVGO0VBQ0U7O0FBRUY7RUFDRTs7QUFJRjtFQUNFOztBQUtGO0VBQ0U7O0FBQ0U7RUFDRTs7QUFHTjtFQUNFOztBQUNFO0VBQ0U7OztBQU9SO0VBQ0UiLCJzb3VyY2VzQ29udGVudCI6WyIuc3dpcGVyQm94e1xuICBAYXBwbHkgdy1mdWxsIGgtZml0O1xuICBcbiAgOmdsb2JhbCguc3dpcGVyKSB7XG4gICAgOmdsb2JhbCguc3dpcGVyLWJ1dHRvbi1wcmV2KXtcbiAgICAgIEBhcHBseSBiZy1jb250YWluIGJnLW5vLXJlcGVhdDtcbiAgICAgIGJhY2tncm91bmQtaW1hZ2U6IHVybCgnZGF0YTppbWFnZS9zdmcreG1sO2Jhc2U2NCxQSE4yWnlCNGJXeHVjejBpYUhSMGNEb3ZMM2QzZHk1M015NXZjbWN2TWpBd01DOXpkbWNpSUhacFpYZENiM2c5SWpBZ01DQXlNQ0F5TUNJZ1ptbHNiRDBpSXpReE5ETTBOU0lnWTJ4aGMzTTlJbk5wZW1VdE5TSStDaUFnUEhCaGRHZ2dabWxzYkMxeWRXeGxQU0psZG1WdWIyUmtJaUJrUFNKTk1URXVOemdnTlM0eU1tRXVOelV1TnpVZ01DQXdJREVnTUNBeExqQTJURGd1TURZZ01UQnNNeTQzTWlBekxqY3lZUzQzTlM0M05TQXdJREVnTVMweExqQTJJREV1TURac0xUUXVNalV0TkM0eU5XRXVOelV1TnpVZ01DQXdJREVnTUMweExqQTJiRFF1TWpVdE5DNHlOV0V1TnpVdU56VWdNQ0F3SURFZ01TNHdOaUF3V2lJZ1kyeHBjQzF5ZFd4bFBTSmxkbVZ1YjJSa0lpQXZQZ284TDNOMlp6NEsnKTsgXG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tbmV4dCl7XG4gICAgICBAYXBwbHkgYmctY29udGFpbiBiZy1uby1yZXBlYXQ7XG4gICAgICBiYWNrZ3JvdW5kLWltYWdlOiB1cmwoJ2RhdGE6aW1hZ2Uvc3ZnK3htbDtiYXNlNjQsUEhOMlp5QjRiV3h1Y3owaWFIUjBjRG92TDNkM2R5NTNNeTV2Y21jdk1qQXdNQzl6ZG1jaUlIWnBaWGRDYjNnOUlqQWdNQ0F5TUNBeU1DSWdabWxzYkQwaUl6UXhORE0wTlNJZ1kyeGhjM005SW5OcGVtVXROU0krQ2lBZ1BIQmhkR2dnWm1sc2JDMXlkV3hsUFNKbGRtVnViMlJrSWlCa1BTSk5PQzR5TWlBMUxqSXlZUzQzTlM0M05TQXdJREFnTVNBeExqQTJJREJzTkM0eU5TQTBMakkxWVM0M05TNDNOU0F3SURBZ01TQXdJREV1TURac0xUUXVNalVnTkM0eU5XRXVOelV1TnpVZ01DQXdJREV0TVM0d05pMHhMakEyVERFeExqazBJREV3SURndU1qSWdOaTR5T0dFdU56VXVOelVnTUNBd0lERWdNQzB4TGpBMldpSWdZMnhwY0MxeWRXeGxQU0psZG1WdWIyUmtJaUF2UGdvOEwzTjJaejRLQ2c9PScpOyBcbiAgICB9XG4gICAgOmdsb2JhbCguc3dpcGVyLWJ1dHRvbi1wcmV2OjphZnRlcil7XG4gICAgICBAYXBwbHkgdGV4dC1Db2xvcnMtRm9yZWdyb3VuZC1EZWZhdWx0IGNvbnRlbnQtbm9uZTtcbiAgICB9XG4gICAgOmdsb2JhbCguc3dpcGVyLWJ1dHRvbi1uZXh0OjphZnRlcil7XG4gICAgICBAYXBwbHkgdGV4dC1Db2xvcnMtRm9yZWdyb3VuZC1EZWZhdWx0IGNvbnRlbnQtbm9uZTtcbiAgICB9XG4gIH1cbiAgOmdsb2JhbCguc3dpcGVyLmJhbm5lci1zd2lwZXIpIHtcbiAgICA6Z2xvYmFsKC5iYW5uZXItc3dpcGVyLXNsaWRlLnN3aXBlci1zbGlkZS1wcmV2KSB7XG4gICAgICAvLyB0cmFuc2Zvcm06IHNjYWxlKDAuOCk7XG4gICAgICBAYXBwbHkgb3JpZ2luLXJpZ2h0O1xuICAgIH1cbiAgICA6Z2xvYmFsKC5iYW5uZXItc3dpcGVyLXNsaWRlLnN3aXBlci1zbGlkZS1uZXh0KSB7XG4gICAgICAvLyB0cmFuc2Zvcm06IHNjYWxlKDAuOCk7XG4gICAgICBAYXBwbHkgb3JpZ2luLWxlZnQ7XG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1zbGlkZS1hY3RpdmUpIHtcbiAgICAgIEBhcHBseSBvcGFjaXR5LTEwMDtcbiAgICAgIC8vIHRyYW5zZm9ybTogc2NhbGUoMSkgdHJhbnNsYXRlWCgwKTtcbiAgICB9XG4gICAgOmdsb2JhbCguc3dpcGVyLWJ1dHRvbi1uZXh0KXtcbiAgICAgIEBhcHBseSAtcmlnaHQtNCBtZDpyaWdodC0wIDN4bDpyaWdodC1bY2FsYygoMTAwJS0xMjAwcHgpLzItMTZweCldO1xuICAgIH1cbiAgICA6Z2xvYmFsKC5zd2lwZXItYnV0dG9uLXByZXYpe1xuICAgICAgQGFwcGx5IC1sZWZ0LTQgbWQ6bGVmdC0wIDN4bDpsZWZ0LVtjYWxjKCgxMDAlLTEyMDBweCkvMi0xNnB4KV07XG4gICAgfVxuICB9XG4gIDpnbG9iYWwoLnN3aXBlci5mZWF0dXJlLXN3aXBlcikge1xuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tbmV4dCl7XG4gICAgICBAYXBwbHkgcmlnaHQtMDtcbiAgICB9XG4gICAgOmdsb2JhbCguc3dpcGVyLWJ1dHRvbi1wcmV2KXtcbiAgICAgIEBhcHBseSBsZWZ0LTA7XG4gICAgfVxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tZGlzYWJsZWQpIHtcbiAgICAgIEBhcHBseSBoaWRkZW47XG4gICAgfVxuICB9XG4gIDpnbG9iYWwoLnN3aXBlci5wYXRyb24tYmFkZ2Utc3dpcGVyKSB7XG4gICAgOmdsb2JhbCguc3dpcGVyLWJ1dHRvbi1uZXh0KXtcbiAgICAgIEBhcHBseSByaWdodC0wO1xuICAgIH1cbiAgICA6Z2xvYmFsKC5zd2lwZXItYnV0dG9uLXByZXYpe1xuICAgICAgQGFwcGx5IGxlZnQtMDtcbiAgICB9XG4gICAgOmdsb2JhbCguc3dpcGVyLWJ1dHRvbi1kaXNhYmxlZCkge1xuICAgICAgQGFwcGx5IGhpZGRlbjtcbiAgICB9XG4gIH1cbiAgOmdsb2JhbCguc3dpcGVyLmdyaWQtc3dpcGVyKSB7XG4gICAgOmdsb2JhbCguc3dpcGVyLXdyYXBwZXIpIHtcbiAgICAgIEBhcHBseSB3LVsxMDB2d10gbWQ6dy1mdWxsIGZsZXgtd3JhcCBmbGV4LWNvbCBtLTA7XG4gICAgfVxuICB9XG4gIDpnbG9iYWwoLnN3aXBlcikge1xuICAgIFxuICAgIDpnbG9iYWwoLnN3aXBlci1idXR0b24tbmV4dCl7XG4gICAgICBAYXBwbHkgaGlkZGVuIG1kOmZsZXgganVzdGlmeS1jZW50ZXIgaXRlbXMtY2VudGVyIGFic29sdXRlIHRvcC1bNTAlXSB3LTggaC04IGZvbnQtc2VtaWJvbGQgdGV4dC1Db2xvcnMtRm9yZWdyb3VuZC1EZWZhdWx0IGJvcmRlciBib3JkZXItQ29sb3JzLUJvcmRlci1EZWZhdWx0IGJnLUNvbG9ycy1CYWNrZ3JvdW5kLU5vcm1hbC1QcmltYXJ5LURlZmF1bHQgcm91bmRlZC1mdWxsIGN1cnNvci1wb2ludGVyIGhvdmVyOmJnLUNvbG9ycy1CYWNrZ3JvdW5kLU5vcm1hbC1QcmltYXJ5LUhvdmVyIGFjdGl2ZTpiZy1Db2xvcnMtQmFja2dyb3VuZC1Ob3JtYWwtUHJpbWFyeS1BY3RpdmU7XG4gICAgICAgICY6OmFmdGVyIHtcbiAgICAgICAgICBAYXBwbHkgdGV4dC1Db2xvcnMtRm9yZWdyb3VuZC1EZWZhdWx0IHRleHQteHMgZm9udC1ib2xkO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgOmdsb2JhbCguc3dpcGVyLWJ1dHRvbi1wcmV2KXtcbiAgICAgIEBhcHBseSBoaWRkZW4gbWQ6ZmxleCBqdXN0aWZ5LWNlbnRlciBpdGVtcy1jZW50ZXIgYWJzb2x1dGUgdG9wLVs1MCVdIHctOCBoLTggZm9udC1zZW1pYm9sZCB0ZXh0LUNvbG9ycy1Gb3JlZ3JvdW5kLURlZmF1bHQgYm9yZGVyIGJvcmRlci1Db2xvcnMtQm9yZGVyLURlZmF1bHQgYmctQ29sb3JzLUJhY2tncm91bmQtTm9ybWFsLVByaW1hcnktRGVmYXVsdCByb3VuZGVkLWZ1bGwgY3Vyc29yLXBvaW50ZXIgaG92ZXI6YmctQ29sb3JzLUJhY2tncm91bmQtTm9ybWFsLVByaW1hcnktSG92ZXIgYWN0aXZlOmJnLUNvbG9ycy1CYWNrZ3JvdW5kLU5vcm1hbC1QcmltYXJ5LUFjdGl2ZTtcbiAgICAgICAgJjo6YWZ0ZXIge1xuICAgICAgICAgIEBhcHBseSB0ZXh0LUNvbG9ycy1Gb3JlZ3JvdW5kLURlZmF1bHQgdGV4dC14cyBmb250LWJvbGQ7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG5cbi5hbmltYXRlIHtcbiAgOmdsb2JhbCguc3dpcGVyLXNsaWRlKSB7XG4gICAgdHJhbnNpdGlvbjogdHJhbnNmb3JtIDUwMG1zIGxpbmVhcjtcbiAgfVxufVxuIl19 */';
|
|
25320
25500
|
// src/components/swiper/index.tsx
|
|
25321
25501
|
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
25322
25502
|
var swiperVariants = cva22("", {
|
|
@@ -25344,7 +25524,7 @@ function Swiper(props) {
|
|
|
25344
25524
|
var isGrid = swiperType === "grid";
|
|
25345
25525
|
var router = useRouter2();
|
|
25346
25526
|
var Com = component || "div";
|
|
25347
|
-
var swiperList =
|
|
25527
|
+
var swiperList = useMemo7(function() {
|
|
25348
25528
|
var length = dataList.length;
|
|
25349
25529
|
if (length < 2 || isGrid || isFeatured) {
|
|
25350
25530
|
return dataList;
|
|
@@ -25359,7 +25539,7 @@ function Swiper(props) {
|
|
|
25359
25539
|
var autoPlayOptions = {
|
|
25360
25540
|
delay: delay
|
|
25361
25541
|
};
|
|
25362
|
-
var swiperRef =
|
|
25542
|
+
var swiperRef = useRef12();
|
|
25363
25543
|
var fgconfigs = {
|
|
25364
25544
|
0: {
|
|
25365
25545
|
slidesPerView: 1.014,
|
|
@@ -25423,8 +25603,8 @@ function Swiper(props) {
|
|
|
25423
25603
|
Grid
|
|
25424
25604
|
]
|
|
25425
25605
|
});
|
|
25426
|
-
var
|
|
25427
|
-
|
|
25606
|
+
var _useState15 = _sliced_to_array(useState15(false), 2), animate = _useState15[0], setAnimate = _useState15[1];
|
|
25607
|
+
useEffect16(function() {
|
|
25428
25608
|
setTimeout(function() {
|
|
25429
25609
|
setAnimate(true);
|
|
25430
25610
|
}, 200);
|
|
@@ -25494,25 +25674,25 @@ function CustomNotification(param) {
|
|
|
25494
25674
|
return /* @__PURE__ */ jsx72("div", {
|
|
25495
25675
|
children: /* @__PURE__ */ jsx72("div", {
|
|
25496
25676
|
id: id,
|
|
25497
|
-
className: "z-[10000000] min-h-10 w-fit max-w-[90vw] rounded-full border border-
|
|
25677
|
+
className: "z-[10000000] min-h-10 w-fit max-w-[90vw] rounded-full border border-cc-Popover-border bg-Colors-Background-Utilities-Modal px-3 py-2 shadow-modal-default md:max-w-[560px]",
|
|
25498
25678
|
children: /* @__PURE__ */ jsxs48("div", {
|
|
25499
25679
|
className: "flex w-full items-center justify-center gap-2",
|
|
25500
25680
|
children: [
|
|
25501
25681
|
loading && /* @__PURE__ */ jsx72(Spinner, {}),
|
|
25502
25682
|
!loading && type && /* @__PURE__ */ jsxs48("div", {
|
|
25503
|
-
className: "flex flex-shrink-0 items-center",
|
|
25683
|
+
className: "flex flex-shrink-0 items-center justify-center",
|
|
25504
25684
|
children: [
|
|
25505
25685
|
type === "info" && /* @__PURE__ */ jsx72(CircleInfoIcon, {
|
|
25506
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info"
|
|
25686
|
+
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Info items-center justify-center"
|
|
25507
25687
|
}),
|
|
25508
25688
|
type === "success" && /* @__PURE__ */ jsx72(CircleSuccessIcon, {
|
|
25509
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success"
|
|
25689
|
+
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Success items-center justify-center"
|
|
25510
25690
|
}),
|
|
25511
25691
|
type === "warning" && /* @__PURE__ */ jsx72(CircleWarningIcon, {
|
|
25512
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning"
|
|
25692
|
+
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Warning items-center justify-center"
|
|
25513
25693
|
}),
|
|
25514
25694
|
type === "error" && /* @__PURE__ */ jsx72(CircleErrorIcon, {
|
|
25515
|
-
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error"
|
|
25695
|
+
className: "h-6 w-6 text-cc-Icon-Featured-icon-fg-Error items-center justify-center"
|
|
25516
25696
|
})
|
|
25517
25697
|
]
|
|
25518
25698
|
}),
|
|
@@ -25559,11 +25739,11 @@ function CustomNotification(param) {
|
|
|
25559
25739
|
});
|
|
25560
25740
|
}
|
|
25561
25741
|
// src/common/hooks/useNotification.tsx
|
|
25562
|
-
import { useCallback as
|
|
25742
|
+
import { useCallback as useCallback7 } from "react";
|
|
25563
25743
|
import { toast as toast3 } from "react-hot-toast";
|
|
25564
25744
|
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
25565
25745
|
function useNotification() {
|
|
25566
|
-
var addToast =
|
|
25746
|
+
var addToast = useCallback7(function(config2, duration2) {
|
|
25567
25747
|
if (config2.id) {
|
|
25568
25748
|
toast3.remove(config2.id);
|
|
25569
25749
|
}
|
|
@@ -25579,30 +25759,30 @@ function useNotification() {
|
|
|
25579
25759
|
duration: duration2
|
|
25580
25760
|
});
|
|
25581
25761
|
}, []);
|
|
25582
|
-
var message =
|
|
25762
|
+
var message = useCallback7(function(config2, duration2) {
|
|
25583
25763
|
return addToast(_object_spread({}, config2), duration2);
|
|
25584
25764
|
}, []);
|
|
25585
|
-
var success =
|
|
25765
|
+
var success = useCallback7(function(config2, duration2) {
|
|
25586
25766
|
return addToast(_object_spread_props(_object_spread({}, config2), {
|
|
25587
25767
|
type: "success"
|
|
25588
25768
|
}), duration2);
|
|
25589
25769
|
}, []);
|
|
25590
|
-
var error =
|
|
25770
|
+
var error = useCallback7(function(config2, duration2) {
|
|
25591
25771
|
return addToast(_object_spread_props(_object_spread({}, config2), {
|
|
25592
25772
|
type: "error"
|
|
25593
25773
|
}), duration2);
|
|
25594
25774
|
}, []);
|
|
25595
|
-
var warning =
|
|
25775
|
+
var warning = useCallback7(function(config2, duration2) {
|
|
25596
25776
|
return addToast(_object_spread_props(_object_spread({}, config2), {
|
|
25597
25777
|
type: "warning"
|
|
25598
25778
|
}), duration2);
|
|
25599
25779
|
}, []);
|
|
25600
|
-
var info =
|
|
25780
|
+
var info = useCallback7(function(config2, duration2) {
|
|
25601
25781
|
return addToast(_object_spread_props(_object_spread({}, config2), {
|
|
25602
25782
|
type: "info"
|
|
25603
25783
|
}), duration2);
|
|
25604
25784
|
}, []);
|
|
25605
|
-
var close =
|
|
25785
|
+
var close = useCallback7(function(id) {
|
|
25606
25786
|
toast3.dismiss(id);
|
|
25607
25787
|
}, []);
|
|
25608
25788
|
return {
|
|
@@ -25684,7 +25864,7 @@ var Message = /*#__PURE__*/ function() {
|
|
|
25684
25864
|
]);
|
|
25685
25865
|
return Message;
|
|
25686
25866
|
}();
|
|
25687
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AspectRatio, AudioPlayer, AudioPlaying, Avatar, AvatarImage, AvatarRoot, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CaretDownIcon, Cascader, CascaderContent, Checkbox, Chips, CircleErrorIcon, CircleInfoIcon, CircleSuccessIcon, CircleWarningIcon, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Controller, DataEmptyState, Description, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Display, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ErrorIcon, ErrorState, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormProvider, Guide, Heading, Icon, IconButton, Image2 as Image, ImgEmptyState, Input, Label3 as Label, Link, LinkButton, LogoIcon, LogoLoading, Masonry, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MiddleBar, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, ModalRoot, ModalTitle, MultipleSelector, NetworkErrorIcon, NetworkErrorState, NoPageIcon, NoPageState, NumberInput, Paragraph, Popover, PopoverAnchor, PopoverContent, PopoverRoot, Progress, ProgressIndicator, ProgressRoot, RadioGroup4 as RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, SearchBar, SearchEmptyState, Select, SelectContent, SelectGroup, SelectIcon, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, SliderPrimitive, SliderSingle, Spinner, State2 as State, SubHeading, SubTitle, Swiper, Switch, Tab, Tabs2 as Tabs, TabsContent, TabsList, TabsRoot, TabsTrigger, Text, Textarea, Title, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipProvider, TopNavigationBar, WalletEmptyState, buttonVariants, dangerouText, iconButtonVariants, reducer, toast, toggleVariants, useDebounce, useDevice, useForm, useFormContext, useFormField, useIsMobileByWindowWidth, useNativeBridge, useNotification, useToast, useWatch, useWindowWidth }; /*! Bundled license information:
|
|
25867
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AspectRatio, AudioPlayer, AudioPlaying, Avatar, AvatarImage, AvatarRoot, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CaretDownIcon, Cascader, CascaderContent, Checkbox, Chips, CircleErrorIcon, CircleInfoIcon, CircleSuccessIcon, CircleWarningIcon, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Controller, DataEmptyState, Description, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Display, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuHover, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ErrorIcon, ErrorState, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormProvider, Guide, Heading, Icon, IconButton, Image2 as Image, ImgEmptyState, Input, Label3 as Label, Link, LinkButton, LogoIcon, LogoLoading, Masonry, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MiddleBar, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, ModalRoot, ModalTitle, MultipleSelector, NetworkErrorIcon, NetworkErrorState, NoPageIcon, NoPageState, NumberInput, Paragraph, Popover, PopoverAnchor, PopoverContent, PopoverRoot, Progress, ProgressIndicator, ProgressRoot, RadioGroup4 as RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, SearchBar, SearchEmptyState, Select, SelectContent, SelectGroup, SelectIcon, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, SliderPrimitive, SliderSingle, Spinner, State2 as State, SubHeading, SubTitle, Swiper, Switch, Tab, Tabs2 as Tabs, TabsContent, TabsList, TabsRoot, TabsTrigger, Text, Textarea, Title, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipProvider, TopNavigationBar, WalletEmptyState, buttonVariants, dangerouText, iconButtonVariants, reducer, toast, toggleVariants, useDebounce, useDevice, useForm, useFormContext, useFormField, useIsMobileByWindowWidth, useNativeBridge, useNotification, useToast, useWatch, useWindowWidth }; /*! Bundled license information:
|
|
25688
25868
|
|
|
25689
25869
|
decimal.js/decimal.mjs:
|
|
25690
25870
|
(*!
|